import{s as ne,n as ae,o as se}from"../chunks/scheduler.e4ff9b64.js";import{S as pe,i as oe,e as s,s as n,c as k,h as ue,a as p,d as l,b as a,f as ie,g as x,j as v,k as N,l as re,m as i,n as T,t as b,o as w,p as C}from"../chunks/index.09f1bca0.js";import{C as fe,H as J,E as me}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.b71282d6.js";function $e(V){let o,B,H,S,r,y,f,E,u,W="<p>模块化Diffusers正在积极开发中，其API可能会发生变化。</p>",U,m,X="模块化Diffusers是一个统一的管道系统，通过<em>管道块</em>简化您的工作流程。",A,$,Y="<li>块是可重用的，您只需要为您的管道创建独特的块。</li> <li>块可以混合搭配，以适应或为特定工作流程或多个工作流程创建管道。</li>",D,c,Z="模块化Diffusers文档的组织如下所示。",z,d,O,_,ee='<li>一个<a href="./quickstart">快速开始</a>演示了如何使用模块化Diffusers实现一个示例工作流程。</li>',j,h,G,M,te='<li><a href="./modular_diffusers_states">States</a>解释了数据如何在块和<code>ModularPipeline</code>之间共享和通信。</li> <li><a href="./pipeline_block">ModularPipelineBlocks</a>是<code>ModularPipeline</code>最基本的单位，本指南向您展示如何创建一个。</li> <li><a href="./sequential_pipeline_blocks">SequentialPipelineBlocks</a>是一种类型的块，它将多个块链接起来，使它们一个接一个地运行，沿着链传递数据。本指南向您展示如何创建<code>SequentialPipelineBlocks</code>以及它们如何连接和一起工作。</li> <li><a href="./loop_sequential_pipeline_blocks">LoopSequentialPipelineBlocks</a>是一种类型的块，它在循环中运行一系列块。本指南向您展示如何创建<code>LoopSequentialPipelineBlocks</code>。</li> <li><a href="./auto_pipeline_blocks">AutoPipelineBlocks</a>是一种类型的块，它根据输入自动选择要运行的块。本指南向您展示如何创建<code>AutoPipelineBlocks</code>。</li>',I,P,K,L,le='<li><a href="./modular_pipeline">ModularPipeline</a>向您展示如何创建并将管道块转换为可执行的<code>ModularPipeline</code>。</li> <li><a href="./components_manager">ComponentsManager</a>向您展示如何跨多个管道管理和重用组件。</li> <li><a href="./guiders">Guiders</a>向您展示如何在管道中使用不同的指导方法。</li>',Q,g,R,q,F;return r=new fe({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),f=new J({props:{title:"概述",local:"概述",headingTag:"h1"}}),d=new J({props:{title:"快速开始",local:"快速开始",headingTag:"h2"}}),h=new J({props:{title:"ModularPipelineBlocks",local:"modularpipelineblocks",headingTag:"h2"}}),P=new J({props:{title:"ModularPipeline",local:"modularpipeline",headingTag:"h2"}}),g=new me({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/zh/modular_diffusers/overview.md"}}),{c(){o=s("meta"),B=n(),H=s("p"),S=n(),k(r.$$.fragment),y=n(),k(f.$$.fragment),E=n(),u=s("blockquote"),u.innerHTML=W,U=n(),m=s("p"),m.innerHTML=X,A=n(),$=s("ul"),$.innerHTML=Y,D=n(),c=s("p"),c.textContent=Z,z=n(),k(d.$$.fragment),O=n(),_=s("ul"),_.innerHTML=ee,j=n(),k(h.$$.fragment),G=n(),M=s("ul"),M.innerHTML=te,I=n(),k(P.$$.fragment),K=n(),L=s("ul"),L.innerHTML=le,Q=n(),k(g.$$.fragment),R=n(),q=s("p"),this.h()},l(e){const t=ue("svelte-u9bgzb",document.head);o=p(t,"META",{name:!0,content:!0}),t.forEach(l),B=a(e),H=p(e,"P",{}),ie(H).forEach(l),S=a(e),x(r.$$.fragment,e),y=a(e),x(f.$$.fragment,e),E=a(e),u=p(e,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),v(u)!=="svelte-lal14m"&&(u.innerHTML=W),U=a(e),m=p(e,"P",{"data-svelte-h":!0}),v(m)!=="svelte-62y3xh"&&(m.innerHTML=X),A=a(e),$=p(e,"UL",{"data-svelte-h":!0}),v($)!=="svelte-tssmp1"&&($.innerHTML=Y),D=a(e),c=p(e,"P",{"data-svelte-h":!0}),v(c)!=="svelte-dsxsc9"&&(c.textContent=Z),z=a(e),x(d.$$.fragment,e),O=a(e),_=p(e,"UL",{"data-svelte-h":!0}),v(_)!=="svelte-tgwpic"&&(_.innerHTML=ee),j=a(e),x(h.$$.fragment,e),G=a(e),M=p(e,"UL",{"data-svelte-h":!0}),v(M)!=="svelte-2hi4j7"&&(M.innerHTML=te),I=a(e),x(P.$$.fragment,e),K=a(e),L=p(e,"UL",{"data-svelte-h":!0}),v(L)!=="svelte-1f3lw3f"&&(L.innerHTML=le),Q=a(e),x(g.$$.fragment,e),R=a(e),q=p(e,"P",{}),ie(q).forEach(l),this.h()},h(){N(o,"name","hf:doc:metadata"),N(o,"content",ce),N(u,"class","warning")},m(e,t){re(document.head,o),i(e,B,t),i(e,H,t),i(e,S,t),T(r,e,t),i(e,y,t),T(f,e,t),i(e,E,t),i(e,u,t),i(e,U,t),i(e,m,t),i(e,A,t),i(e,$,t),i(e,D,t),i(e,c,t),i(e,z,t),T(d,e,t),i(e,O,t),i(e,_,t),i(e,j,t),T(h,e,t),i(e,G,t),i(e,M,t),i(e,I,t),T(P,e,t),i(e,K,t),i(e,L,t),i(e,Q,t),T(g,e,t),i(e,R,t),i(e,q,t),F=!0},p:ae,i(e){F||(b(r.$$.fragment,e),b(f.$$.fragment,e),b(d.$$.fragment,e),b(h.$$.fragment,e),b(P.$$.fragment,e),b(g.$$.fragment,e),F=!0)},o(e){w(r.$$.fragment,e),w(f.$$.fragment,e),w(d.$$.fragment,e),w(h.$$.fragment,e),w(P.$$.fragment,e),w(g.$$.fragment,e),F=!1},d(e){e&&(l(B),l(H),l(S),l(y),l(E),l(u),l(U),l(m),l(A),l($),l(D),l(c),l(z),l(O),l(_),l(j),l(G),l(M),l(I),l(K),l(L),l(Q),l(R),l(q)),l(o),C(r,e),C(f,e),C(d,e),C(h,e),C(P,e),C(g,e)}}}const ce='{"title":"概述","local":"概述","sections":[{"title":"快速开始","local":"快速开始","sections":[],"depth":2},{"title":"ModularPipelineBlocks","local":"modularpipelineblocks","sections":[],"depth":2},{"title":"ModularPipeline","local":"modularpipeline","sections":[],"depth":2}],"depth":1}';function de(V){return se(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Pe extends pe{constructor(o){super(),oe(this,o,de,$e,ne,{})}}export{Pe as component};
