import{s as L,n as U,o as j}from"../chunks/scheduler.5f3e6389.js";import{S as N,i as V,e as g,s as i,c as T,h as q,a as h,d as n,b as s,f as R,g as Z,j as X,k as Y,l as O,m as a,n as v,t as H,o as k,p as W}from"../chunks/index.373ab25c.js";import{C as S,H as z}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.972976e0.js";import{C as G}from"../chunks/CodeBlock.dc13e59c.js";function B(I){let l,d,c,w,o,x,m,M,p,P="To install Optimum ONNX, you can do:",_,u,C,r,E="Optimum ONNX is a fast-moving project, and you may want to install from source with the following command:",b,f,y,$,J;return o=new S({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),m=new z({props:{title:"Installation",local:"installation",headingTag:"h1"}}),u=new G({props:{code:"cGlwJTIwaW5zdGFsbCUyMCUyMm9wdGltdW0tb25ueCU1Qm9ubnhydW50aW1lJTVEJTIyJTQwZ2l0JTJCaHR0cHMlM0ElMkYlMkZnaXRodWIuY29tJTJGaHVnZ2luZ2ZhY2UlMkZvcHRpbXVtLW9ubnguZ2l0",highlighted:'pip install <span class="hljs-string">&quot;optimum-onnx[onnxruntime]&quot;</span>@git+https://github.com/huggingface/optimum-onnx.git',wrap:!1}}),f=new G({props:{code:"cHl0aG9uJTIwLW0lMjBwaXAlMjBpbnN0YWxsJTIwZ2l0JTJCaHR0cHMlM0ElMkYlMkZnaXRodWIuY29tJTJGaHVnZ2luZ2ZhY2UlMkZvcHRpbXVtLW9ubnguZ2l0",highlighted:"python -m pip install git+https://github.com/huggingface/optimum-onnx.git",wrap:!1}}),{c(){l=g("meta"),d=i(),c=g("p"),w=i(),T(o.$$.fragment),x=i(),T(m.$$.fragment),M=i(),p=g("p"),p.textContent=P,_=i(),T(u.$$.fragment),C=i(),r=g("p"),r.textContent=E,b=i(),T(f.$$.fragment),y=i(),$=g("p"),this.h()},l(t){const e=q("svelte-u9bgzb",document.head);l=h(e,"META",{name:!0,content:!0}),e.forEach(n),d=s(t),c=h(t,"P",{}),R(c).forEach(n),w=s(t),Z(o.$$.fragment,t),x=s(t),Z(m.$$.fragment,t),M=s(t),p=h(t,"P",{"data-svelte-h":!0}),X(p)!=="svelte-19nq0lu"&&(p.textContent=P),_=s(t),Z(u.$$.fragment,t),C=s(t),r=h(t,"P",{"data-svelte-h":!0}),X(r)!=="svelte-6wfe70"&&(r.textContent=E),b=s(t),Z(f.$$.fragment,t),y=s(t),$=h(t,"P",{}),R($).forEach(n),this.h()},h(){Y(l,"name","hf:doc:metadata"),Y(l,"content",A)},m(t,e){O(document.head,l),a(t,d,e),a(t,c,e),a(t,w,e),v(o,t,e),a(t,x,e),v(m,t,e),a(t,M,e),a(t,p,e),a(t,_,e),v(u,t,e),a(t,C,e),a(t,r,e),a(t,b,e),v(f,t,e),a(t,y,e),a(t,$,e),J=!0},p:U,i(t){J||(H(o.$$.fragment,t),H(m.$$.fragment,t),H(u.$$.fragment,t),H(f.$$.fragment,t),J=!0)},o(t){k(o.$$.fragment,t),k(m.$$.fragment,t),k(u.$$.fragment,t),k(f.$$.fragment,t),J=!1},d(t){t&&(n(d),n(c),n(w),n(x),n(M),n(p),n(_),n(C),n(r),n(b),n(y),n($)),n(l),W(o,t),W(m,t),W(u,t),W(f,t)}}}const A='{"title":"Installation","local":"installation","sections":[],"depth":1}';function Q(I){return j(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class et extends N{constructor(l){super(),V(this,l,Q,B,L,{})}}export{et as component};
