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