import{s as Lt,o as It,n as Ut}from"../chunks/scheduler.53228c21.js";import{S as Jt,i as Et,e as i,s as n,c as b,h as Nt,a as r,d as l,b as o,f as I,g as v,j as s,k as T,l as t,m as j,n as y,t as w,o as M,p as x}from"../chunks/index.100fac89.js";import{C as Bt}from"../chunks/CopyLLMTxtMenu.fb2ec027.js";import{D as B}from"../chunks/Docstring.86a664ae.js";import{C as Vt}from"../chunks/CodeBlock.d30a6509.js";import{E as Dt}from"../chunks/ExampleCodeBlock.15d6107c.js";import{H as Pt,E as Zt}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.09d4dba9.js";function Gt(ve){let g,V="Examples:",P,$,C;return $=new Vt({props:{code:"JTIzJTIwVXBkYXRlJTIwbXVsdGlwbGUlMjBjb21wb25lbnRzJTIwYXQlMjBvbmNlJTBBcGlwZWxpbmUudXBkYXRlX2NvbXBvbmVudHModW5ldCUzRG5ld191bmV0X21vZGVsJTJDJTIwdGV4dF9lbmNvZGVyJTNEbmV3X3RleHRfZW5jb2RlciklMEElMEElMjMlMjBVcGRhdGUlMjBjb25maWd1cmF0aW9uJTIwdmFsdWVzJTBBcGlwZWxpbmUudXBkYXRlX2NvbXBvbmVudHMocmVxdWlyZXNfc2FmZXR5X2NoZWNrZXIlM0RGYWxzZSklMEElMEElMjMlMjBVcGRhdGUlMjBib3RoJTIwY29tcG9uZW50cyUyMGFuZCUyMGNvbmZpZ3MlMjB0b2dldGhlciUwQXBpcGVsaW5lLnVwZGF0ZV9jb21wb25lbnRzKHVuZXQlM0RuZXdfdW5ldF9tb2RlbCUyQyUyMHJlcXVpcmVzX3NhZmV0eV9jaGVja2VyJTNERmFsc2UpJTBBJTBBJTIzJTIwVXBkYXRlJTIwd2l0aCUyMENvbXBvbmVudFNwZWMlMjBvYmplY3RzJTIwKGZyb21fY29uZmlnJTIwb25seSklMEFwaXBlbGluZS51cGRhdGVfY29tcG9uZW50cyglMEElMjAlMjAlMjAlMjBndWlkZXIlM0RDb21wb25lbnRTcGVjKCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMG5hbWUlM0QlMjJndWlkZXIlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjB0eXBlX2hpbnQlM0RDbGFzc2lmaWVyRnJlZUd1aWRhbmNlJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwY29uZmlnJTNEJTdCJTIyZ3VpZGFuY2Vfc2NhbGUlMjIlM0ElMjA1LjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBkZWZhdWx0X2NyZWF0aW9uX21ldGhvZCUzRCUyMmZyb21fY29uZmlnJTIyJTJDJTBBJTIwJTIwJTIwJTIwKSUwQSk=",highlighted:`<span class="hljs-comment"># Update multiple components at once</span>
pipeline.update_components(unet=new_unet_model, text_encoder=new_text_encoder)

<span class="hljs-comment"># Update configuration values</span>
pipeline.update_components(requires_safety_checker=<span class="hljs-literal">False</span>)

<span class="hljs-comment"># Update both components and configs together</span>
pipeline.update_components(unet=new_unet_model, requires_safety_checker=<span class="hljs-literal">False</span>)

<span class="hljs-comment"># Update with ComponentSpec objects (from_config only)</span>
pipeline.update_components(
    guider=ComponentSpec(
        name=<span class="hljs-string">&quot;guider&quot;</span>,
        type_hint=ClassifierFreeGuidance,
        config={<span class="hljs-string">&quot;guidance_scale&quot;</span>: <span class="hljs-number">5.0</span>},
        default_creation_method=<span class="hljs-string">&quot;from_config&quot;</span>,
    )
)`,wrap:!1}}),{c(){g=i("p"),g.textContent=V,P=n(),b($.$$.fragment)},l(u){g=r(u,"P",{"data-svelte-h":!0}),s(g)!=="svelte-kvfsh7"&&(g.textContent=V),P=o(u),v($.$$.fragment,u)},m(u,k){j(u,g,k),j(u,P,k),y($,u,k),C=!0},p:Ut,i(u){C||(w($.$$.fragment,u),C=!0)},o(u){M($.$$.fragment,u),C=!1},d(u){u&&(l(g),l(P)),x($,u)}}}function Xt(ve){let g,V,P,$,C,u,k,ye,D,we,a,Z,ke,O,rt="Base class for all Modular pipelines.",Pe,G,at="<p>&gt; This is an experimental feature and is likely to change in the future.</p>",Le,U,X,Ie,Y,st="Load a ModularPipeline from a huggingface hub repo.",Ue,Q,R,Je,J,H,Ee,K,lt="Load selected components from specs.",Ne,c,W,Be,ee,dt="Register components with their corresponding specifications.",Ve,te,pt="This method is responsible for:",De,ne,ct=`<li>Sets component objects as attributes on the loader (e.g., self.unet = unet)</li> <li>Updates the config dict, which will be saved as <code>modular_model_index.json</code> during <code>save_pretrained</code> (only
for from_pretrained components)</li> <li>Adds components to the component manager if one is attached (only for from_pretrained components)</li>`,Ze,oe,mt="This method is called when:",Ge,ie,ut=`<li>Components are first initialized in <strong>init</strong>:
<ul><li>from_pretrained components not loaded during <strong>init</strong> so they are registered as None;</li> <li>non from_pretrained components are created during <strong>init</strong> and registered as the object itself</li></ul></li> <li>Components are updated with the <code>update_components()</code> method: e.g. loader.update_components(unet=unet) or
loader.update_components(guider=guider_spec)</li> <li>(from_pretrained) Components are loaded with the <code>load_components()</code> method: e.g.
loader.load_components(names=[“unet”]) or loader.load_components() to load all default components</li>`,Xe,re,ft="Notes:",Re,ae,gt=`<li>When registering None for a component, it sets attribute to None but still syncs specs with the config
dict, which will be saved as <code>modular_model_index.json</code> during <code>save_pretrained</code></li> <li>component_specs are updated to match the new component outside of this method, e.g. in
<code>update_components()</code> method</li>`,He,E,q,We,se,ht="Save the pipeline to a directory. It does not save components, you need to save them separately.",qe,_,A,Ae,le,_t=`Performs Pipeline dtype and/or device conversion. A torch.dtype and torch.device are inferred from the
arguments of <code>self.to(*args, **kwargs).</code>`,Se,S,bt=`<p>&gt; If the pipeline already has the correct torch.dtype and torch.device, then it is returned as is.
Otherwise, &gt; the returned pipeline is a copy of self with the desired torch.dtype and torch.device.</p>`,Fe,de,vt="Here are the ways to call <code>to</code>:",ze,pe,yt=`<li><code>to(dtype, silence_dtype_warnings=False) → DiffusionPipeline</code> to return a pipeline with the specified
<a href="https://pytorch.org/docs/stable/tensor_attributes.html#torch.dtype" rel="nofollow"><code>dtype</code></a></li> <li><code>to(device, silence_dtype_warnings=False) → DiffusionPipeline</code> to return a pipeline with the specified
<a href="https://pytorch.org/docs/stable/tensor_attributes.html#torch.device" rel="nofollow"><code>device</code></a></li> <li><code>to(device=None, dtype=None, silence_dtype_warnings=False) → DiffusionPipeline</code> to return a pipeline with the
specified <a href="https://pytorch.org/docs/stable/tensor_attributes.html#torch.device" rel="nofollow"><code>device</code></a> and
<a href="https://pytorch.org/docs/stable/tensor_attributes.html#torch.dtype" rel="nofollow"><code>dtype</code></a></li>`,Oe,p,F,Ye,ce,wt="Update components and configuration values and specs after the pipeline has been instantiated.",Qe,me,Mt="This method allows you to:",Ke,ue,xt="<li>Replace existing components with new ones (e.g., updating <code>self.unet</code> or <code>self.text_encoder</code>)</li> <li>Update configuration values (e.g., changing <code>self.requires_safety_checker</code> flag)</li>",et,fe,$t=`In addition to updating the components and configuration values as pipeline attributes, the method also
updates:`,tt,ge,Ct="<li>the corresponding specs in <code>_component_specs</code> and <code>_config_specs</code></li> <li>the <code>config</code> dict, which will be saved as <code>modular_model_index.json</code> during <code>save_pretrained</code></li>",nt,N,ot,he,Tt="Notes:",it,_e,jt=`<li>Components with trained weights must be created using ComponentSpec.load(). If the component has not been
shared in huggingface hub and you don’t have loading specs, you can upload it using <code>push_to_hub()</code></li> <li>ConfigMixin objects without weights (e.g., schedulers, guiders) can be passed directly</li> <li>ComponentSpec objects with default_creation_method=“from_pretrained” are not supported in
update_components()</li>`,Me,z,xe,be,$e;return C=new Bt({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),k=new Pt({props:{title:"Pipeline",local:"pipeline",headingTag:"h1"}}),D=new Pt({props:{title:"ModularPipeline",local:"diffusers.ModularPipeline",headingTag:"h2"}}),Z=new B({props:{name:"class diffusers.ModularPipeline",anchor:"diffusers.ModularPipeline",parameters:[{name:"blocks",val:": typing.Optional[diffusers.modular_pipelines.modular_pipeline.ModularPipelineBlocks] = None"},{name:"pretrained_model_name_or_path",val:": typing.Union[str, os.PathLike, NoneType] = None"},{name:"components_manager",val:": typing.Optional[diffusers.modular_pipelines.components_manager.ComponentsManager] = None"},{name:"collection",val:": typing.Optional[str] = None"},{name:"modular_config_dict",val:": typing.Optional[typing.Dict[str, typing.Any]] = None"},{name:"config_dict",val:": typing.Optional[typing.Dict[str, typing.Any]] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.ModularPipeline.blocks",description:"<strong>blocks</strong> &#x2014; ModularPipelineBlocks, the blocks to be used in the pipeline",name:"blocks"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/modular_pipelines/modular_pipeline.py#L1423"}}),X=new B({props:{name:"from_pretrained",anchor:"diffusers.ModularPipeline.from_pretrained",parameters:[{name:"pretrained_model_name_or_path",val:": typing.Union[str, os.PathLike, NoneType]"},{name:"trust_remote_code",val:": typing.Optional[bool] = None"},{name:"components_manager",val:": typing.Optional[diffusers.modular_pipelines.components_manager.ComponentsManager] = None"},{name:"collection",val:": typing.Optional[str] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.ModularPipeline.from_pretrained.pretrained_model_name_or_path",description:`<strong>pretrained_model_name_or_path</strong> (<code>str</code> or <code>os.PathLike</code>, optional) &#x2014;
Path to a pretrained pipeline configuration. It will first try to load config from
<code>modular_model_index.json</code>, then fallback to <code>model_index.json</code> for compatibility with standard
non-modular repositories. If the repo does not contain any pipeline config, it will be set to None
during initialization.`,name:"pretrained_model_name_or_path"},{anchor:"diffusers.ModularPipeline.from_pretrained.trust_remote_code",description:`<strong>trust_remote_code</strong> (<code>bool</code>, optional) &#x2014;
Whether to trust remote code when loading the pipeline, need to be set to True if you want to create
pipeline blocks based on the custom code in <code>pretrained_model_name_or_path</code>`,name:"trust_remote_code"},{anchor:"diffusers.ModularPipeline.from_pretrained.components_manager",description:`<strong>components_manager</strong> (<code>ComponentsManager</code>, optional) &#x2014;
ComponentsManager instance for managing multiple component cross different pipelines and apply
offloading strategies.`,name:"components_manager"},{anchor:"diffusers.ModularPipeline.from_pretrained.collection",description:"<strong>collection</strong> (<code>str</code>, optional) &#x2014;`\nCollection name for organizing components in the ComponentsManager.",name:"collection"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/modular_pipelines/modular_pipeline.py#L1627"}}),R=new B({props:{name:"get_component_spec",anchor:"diffusers.ModularPipeline.get_component_spec",parameters:[{name:"name",val:": str"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/modular_pipelines/modular_pipeline.py#L1961",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li>a copy of the ComponentSpec object for the given component name</li>
</ul>
`}}),H=new B({props:{name:"load_components",anchor:"diffusers.ModularPipeline.load_components",parameters:[{name:"names",val:": typing.Union[str, typing.List[str], NoneType] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.ModularPipeline.load_components.names",description:`<strong>names</strong> &#x2014; List of component names to load. If None, will load all components with
default_creation_method == &#x201C;from_pretrained&#x201D;. If provided as a list or string, will load only the
specified components.`,name:"names"},{anchor:"diffusers.ModularPipeline.load_components.*kwargs",description:`*<strong>*kwargs</strong> &#x2014; additional kwargs to be passed to <code>from_pretrained()</code>.Can be:
<ul>
<li>a single value to be applied to all components to be loaded, e.g. torch_dtype=torch.bfloat16</li>
<li>a dict, e.g. torch_dtype={&#x201C;unet&#x201D;: torch.bfloat16, &#x201C;default&#x201D;: torch.float32}</li>
<li>if potentially override ComponentSpec if passed a different loading field in kwargs, e.g. <code>repo</code>,
<code>variant</code>, <code>revision</code>, etc.</li>
</ul>`,name:"*kwargs"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/modular_pipelines/modular_pipeline.py#L2099"}}),W=new B({props:{name:"register_components",anchor:"diffusers.ModularPipeline.register_components",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.ModularPipeline.register_components.*kwargs",description:`*<strong>*kwargs</strong> &#x2014; Keyword arguments where keys are component names and values are component objects.
E.g., register_components(unet=unet_model, text_encoder=encoder_model)`,name:"*kwargs"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/modular_pipelines/modular_pipeline.py#L1756"}}),q=new B({props:{name:"save_pretrained",anchor:"diffusers.ModularPipeline.save_pretrained",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"push_to_hub",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.ModularPipeline.save_pretrained.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Path to the directory where the pipeline will be saved.`,name:"save_directory"},{anchor:"diffusers.ModularPipeline.save_pretrained.push_to_hub",description:`<strong>push_to_hub</strong> (<code>bool</code>, optional) &#x2014;
Whether to push the pipeline to the huggingface hub.`,name:"push_to_hub"},{anchor:"diffusers.ModularPipeline.save_pretrained.*kwargs",description:"*<strong>*kwargs</strong> &#x2014; Additional arguments passed to <code>save_config()</code> method",name:"*kwargs"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/modular_pipelines/modular_pipeline.py#L1712"}}),A=new B({props:{name:"to",anchor:"diffusers.ModularPipeline.to",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.ModularPipeline.to.dtype",description:`<strong>dtype</strong> (<code>torch.dtype</code>, <em>optional</em>) &#x2014;
Returns a pipeline with the specified
<a href="https://pytorch.org/docs/stable/tensor_attributes.html#torch.dtype" rel="nofollow"><code>dtype</code></a>`,name:"dtype"},{anchor:"diffusers.ModularPipeline.to.device",description:`<strong>device</strong> (<code>torch.Device</code>, <em>optional</em>) &#x2014;
Returns a pipeline with the specified
<a href="https://pytorch.org/docs/stable/tensor_attributes.html#torch.device" rel="nofollow"><code>device</code></a>`,name:"device"},{anchor:"diffusers.ModularPipeline.to.silence_dtype_warnings",description:`<strong>silence_dtype_warnings</strong> (<code>str</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to omit warnings if the target <code>dtype</code> is not compatible with the target <code>device</code>.`,name:"silence_dtype_warnings"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/modular_pipelines/modular_pipeline.py#L2180",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The pipeline converted to specified <code>dtype</code> and/or <code>dtype</code>.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/diffusers/main/en/api/pipelines/overview#diffusers.DiffusionPipeline"
>DiffusionPipeline</a></p>
`}}),F=new B({props:{name:"update_components",anchor:"diffusers.ModularPipeline.update_components",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.ModularPipeline.update_components.*kwargs",description:`*<strong>*kwargs</strong> &#x2014; Component objects, ComponentSpec objects, or configuration values to update:
<ul>
<li>Component objects: Only supports components we can extract specs using
<code>ComponentSpec.from_component()</code> method i.e. components created with ComponentSpec.load() or
ConfigMixin subclasses that aren&#x2019;t nn.Modules (e.g., <code>unet=new_unet, text_encoder=new_encoder</code>)</li>
<li>ComponentSpec objects: Only supports default_creation_method == &#x201C;from_config&#x201D;, will call create()
method to create a new component (e.g., <code>guider=ComponentSpec(name=&quot;guider&quot;, type_hint=ClassifierFreeGuidance, config={...}, default_creation_method=&quot;from_config&quot;)</code>)</li>
<li>Configuration values: Simple values to update configuration settings (e.g.,
<code>requires_safety_checker=False</code>)</li>
</ul>`,name:"*kwargs"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/modular_pipelines/modular_pipeline.py#L1968",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><code>ValueError</code> — If a component object is not supported in ComponentSpec.from_component() method:
<ul>
<li>nn.Module components without a valid <code>_diffusers_load_id</code> attribute</li>
<li>Non-ConfigMixin components without a valid <code>_diffusers_load_id</code> attribute</li>
</ul>
</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>ValueError</code></p>
`}}),N=new Dt({props:{anchor:"diffusers.ModularPipeline.update_components.example",$$slots:{default:[Gt]},$$scope:{ctx:ve}}}),z=new Zt({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/modular_diffusers/pipeline.md"}}),{c(){g=i("meta"),V=n(),P=i("p"),$=n(),b(C.$$.fragment),u=n(),b(k.$$.fragment),ye=n(),b(D.$$.fragment),we=n(),a=i("div"),b(Z.$$.fragment),ke=n(),O=i("p"),O.textContent=rt,Pe=n(),G=i("blockquote"),G.innerHTML=at,Le=n(),U=i("div"),b(X.$$.fragment),Ie=n(),Y=i("p"),Y.textContent=st,Ue=n(),Q=i("div"),b(R.$$.fragment),Je=n(),J=i("div"),b(H.$$.fragment),Ee=n(),K=i("p"),K.textContent=lt,Ne=n(),c=i("div"),b(W.$$.fragment),Be=n(),ee=i("p"),ee.textContent=dt,Ve=n(),te=i("p"),te.textContent=pt,De=n(),ne=i("ol"),ne.innerHTML=ct,Ze=n(),oe=i("p"),oe.textContent=mt,Ge=n(),ie=i("ul"),ie.innerHTML=ut,Xe=n(),re=i("p"),re.textContent=ft,Re=n(),ae=i("ul"),ae.innerHTML=gt,He=n(),E=i("div"),b(q.$$.fragment),We=n(),se=i("p"),se.textContent=ht,qe=n(),_=i("div"),b(A.$$.fragment),Ae=n(),le=i("p"),le.innerHTML=_t,Se=n(),S=i("blockquote"),S.innerHTML=bt,Fe=n(),de=i("p"),de.innerHTML=vt,ze=n(),pe=i("ul"),pe.innerHTML=yt,Oe=n(),p=i("div"),b(F.$$.fragment),Ye=n(),ce=i("p"),ce.textContent=wt,Qe=n(),me=i("p"),me.textContent=Mt,Ke=n(),ue=i("ol"),ue.innerHTML=xt,et=n(),fe=i("p"),fe.textContent=$t,tt=n(),ge=i("ul"),ge.innerHTML=Ct,nt=n(),b(N.$$.fragment),ot=n(),he=i("p"),he.textContent=Tt,it=n(),_e=i("ul"),_e.innerHTML=jt,Me=n(),b(z.$$.fragment),xe=n(),be=i("p"),this.h()},l(e){const m=Nt("svelte-u9bgzb",document.head);g=r(m,"META",{name:!0,content:!0}),m.forEach(l),V=o(e),P=r(e,"P",{}),I(P).forEach(l),$=o(e),v(C.$$.fragment,e),u=o(e),v(k.$$.fragment,e),ye=o(e),v(D.$$.fragment,e),we=o(e),a=r(e,"DIV",{class:!0});var d=I(a);v(Z.$$.fragment,d),ke=o(d),O=r(d,"P",{"data-svelte-h":!0}),s(O)!=="svelte-gyuepy"&&(O.textContent=rt),Pe=o(d),G=r(d,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),s(G)!=="svelte-1o9sbyc"&&(G.innerHTML=at),Le=o(d),U=r(d,"DIV",{class:!0});var Ce=I(U);v(X.$$.fragment,Ce),Ie=o(Ce),Y=r(Ce,"P",{"data-svelte-h":!0}),s(Y)!=="svelte-1ii3iq9"&&(Y.textContent=st),Ce.forEach(l),Ue=o(d),Q=r(d,"DIV",{class:!0});var kt=I(Q);v(R.$$.fragment,kt),kt.forEach(l),Je=o(d),J=r(d,"DIV",{class:!0});var Te=I(J);v(H.$$.fragment,Te),Ee=o(Te),K=r(Te,"P",{"data-svelte-h":!0}),s(K)!=="svelte-1tx894b"&&(K.textContent=lt),Te.forEach(l),Ne=o(d),c=r(d,"DIV",{class:!0});var h=I(c);v(W.$$.fragment,h),Be=o(h),ee=r(h,"P",{"data-svelte-h":!0}),s(ee)!=="svelte-1ooq1qq"&&(ee.textContent=dt),Ve=o(h),te=r(h,"P",{"data-svelte-h":!0}),s(te)!=="svelte-cf9wby"&&(te.textContent=pt),De=o(h),ne=r(h,"OL",{"data-svelte-h":!0}),s(ne)!=="svelte-k19u0o"&&(ne.innerHTML=ct),Ze=o(h),oe=r(h,"P",{"data-svelte-h":!0}),s(oe)!=="svelte-1jlcxv6"&&(oe.textContent=mt),Ge=o(h),ie=r(h,"UL",{"data-svelte-h":!0}),s(ie)!=="svelte-18lippi"&&(ie.innerHTML=ut),Xe=o(h),re=r(h,"P",{"data-svelte-h":!0}),s(re)!=="svelte-1biq3pv"&&(re.textContent=ft),Re=o(h),ae=r(h,"UL",{"data-svelte-h":!0}),s(ae)!=="svelte-1n75vyc"&&(ae.innerHTML=gt),h.forEach(l),He=o(d),E=r(d,"DIV",{class:!0});var je=I(E);v(q.$$.fragment,je),We=o(je),se=r(je,"P",{"data-svelte-h":!0}),s(se)!=="svelte-1p6ifd4"&&(se.textContent=ht),je.forEach(l),qe=o(d),_=r(d,"DIV",{class:!0});var L=I(_);v(A.$$.fragment,L),Ae=o(L),le=r(L,"P",{"data-svelte-h":!0}),s(le)!=="svelte-1vbhnip"&&(le.innerHTML=_t),Se=o(L),S=r(L,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),s(S)!=="svelte-ja1ewp"&&(S.innerHTML=bt),Fe=o(L),de=r(L,"P",{"data-svelte-h":!0}),s(de)!=="svelte-5ul9n2"&&(de.innerHTML=vt),ze=o(L),pe=r(L,"UL",{"data-svelte-h":!0}),s(pe)!=="svelte-1icy6l9"&&(pe.innerHTML=yt),L.forEach(l),Oe=o(d),p=r(d,"DIV",{class:!0});var f=I(p);v(F.$$.fragment,f),Ye=o(f),ce=r(f,"P",{"data-svelte-h":!0}),s(ce)!=="svelte-r0j5xc"&&(ce.textContent=wt),Qe=o(f),me=r(f,"P",{"data-svelte-h":!0}),s(me)!=="svelte-1p350mx"&&(me.textContent=Mt),Ke=o(f),ue=r(f,"OL",{"data-svelte-h":!0}),s(ue)!=="svelte-z06v4z"&&(ue.innerHTML=xt),et=o(f),fe=r(f,"P",{"data-svelte-h":!0}),s(fe)!=="svelte-1x075vc"&&(fe.textContent=$t),tt=o(f),ge=r(f,"UL",{"data-svelte-h":!0}),s(ge)!=="svelte-1v9kzk0"&&(ge.innerHTML=Ct),nt=o(f),v(N.$$.fragment,f),ot=o(f),he=r(f,"P",{"data-svelte-h":!0}),s(he)!=="svelte-1biq3pv"&&(he.textContent=Tt),it=o(f),_e=r(f,"UL",{"data-svelte-h":!0}),s(_e)!=="svelte-v3x766"&&(_e.innerHTML=jt),f.forEach(l),d.forEach(l),Me=o(e),v(z.$$.fragment,e),xe=o(e),be=r(e,"P",{}),I(be).forEach(l),this.h()},h(){T(g,"name","hf:doc:metadata"),T(g,"content",Rt),T(G,"class","warning"),T(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(c,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(S,"class","tip"),T(_,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(p,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(a,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,m){t(document.head,g),j(e,V,m),j(e,P,m),j(e,$,m),y(C,e,m),j(e,u,m),y(k,e,m),j(e,ye,m),y(D,e,m),j(e,we,m),j(e,a,m),y(Z,a,null),t(a,ke),t(a,O),t(a,Pe),t(a,G),t(a,Le),t(a,U),y(X,U,null),t(U,Ie),t(U,Y),t(a,Ue),t(a,Q),y(R,Q,null),t(a,Je),t(a,J),y(H,J,null),t(J,Ee),t(J,K),t(a,Ne),t(a,c),y(W,c,null),t(c,Be),t(c,ee),t(c,Ve),t(c,te),t(c,De),t(c,ne),t(c,Ze),t(c,oe),t(c,Ge),t(c,ie),t(c,Xe),t(c,re),t(c,Re),t(c,ae),t(a,He),t(a,E),y(q,E,null),t(E,We),t(E,se),t(a,qe),t(a,_),y(A,_,null),t(_,Ae),t(_,le),t(_,Se),t(_,S),t(_,Fe),t(_,de),t(_,ze),t(_,pe),t(a,Oe),t(a,p),y(F,p,null),t(p,Ye),t(p,ce),t(p,Qe),t(p,me),t(p,Ke),t(p,ue),t(p,et),t(p,fe),t(p,tt),t(p,ge),t(p,nt),y(N,p,null),t(p,ot),t(p,he),t(p,it),t(p,_e),j(e,Me,m),y(z,e,m),j(e,xe,m),j(e,be,m),$e=!0},p(e,[m]){const d={};m&2&&(d.$$scope={dirty:m,ctx:e}),N.$set(d)},i(e){$e||(w(C.$$.fragment,e),w(k.$$.fragment,e),w(D.$$.fragment,e),w(Z.$$.fragment,e),w(X.$$.fragment,e),w(R.$$.fragment,e),w(H.$$.fragment,e),w(W.$$.fragment,e),w(q.$$.fragment,e),w(A.$$.fragment,e),w(F.$$.fragment,e),w(N.$$.fragment,e),w(z.$$.fragment,e),$e=!0)},o(e){M(C.$$.fragment,e),M(k.$$.fragment,e),M(D.$$.fragment,e),M(Z.$$.fragment,e),M(X.$$.fragment,e),M(R.$$.fragment,e),M(H.$$.fragment,e),M(W.$$.fragment,e),M(q.$$.fragment,e),M(A.$$.fragment,e),M(F.$$.fragment,e),M(N.$$.fragment,e),M(z.$$.fragment,e),$e=!1},d(e){e&&(l(V),l(P),l($),l(u),l(ye),l(we),l(a),l(Me),l(xe),l(be)),l(g),x(C,e),x(k,e),x(D,e),x(Z),x(X),x(R),x(H),x(W),x(q),x(A),x(F),x(N),x(z,e)}}}const Rt='{"title":"Pipeline","local":"pipeline","sections":[{"title":"ModularPipeline","local":"diffusers.ModularPipeline","sections":[],"depth":2}],"depth":1}';function Ht(ve){return It(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Yt extends Jt{constructor(g){super(),Et(this,g,Ht,Xt,Lt,{})}}export{Yt as component};
