import{D as X,S as R,i as D,s as A,O as $,P as k,a as d,d as m,b as f,g as w,F as v,L as z,e as E,k as C,t as J,c as N,m as I,h as ee,Q as V,q as g,l as O,n as F,o as b,B as M,p as L,w as B,y as P,j as te,G as le,U as q,x,V as se,R as re,W as H,X as K}from"./vendor-4833417e.js";import{C as Y}from"./CopyButton-dacfbfaf.js";const S={};function Z(a){return S[a]||(S[a]=X("group1")),S[a]}function ne(a){let e,l,r,s,n,i;return{c(){e=$("svg"),l=$("defs"),r=$("clipPath"),s=$("rect"),n=$("g"),i=$("path"),this.h()},l(u){e=k(u,"svg",{class:!0,xmlns:!0,"xmlns:xlink":!0,"aria-hidden":!0,focusable:!0,role:!0,width:!0,height:!0,preserveAspectRatio:!0,viewBox:!0});var o=d(e);l=k(o,"defs",{});var t=d(l);r=k(t,"clipPath",{id:!0});var c=d(r);s=k(c,"rect",{x:!0,y:!0,width:!0,height:!0,fill:!0}),d(s).forEach(m),c.forEach(m),t.forEach(m),n=k(o,"g",{"clip-path":!0});var h=d(n);i=k(h,"path",{d:!0,fill:!0}),d(i).forEach(m),h.forEach(m),o.forEach(m),this.h()},h(){f(s,"x","3.05"),f(s,"y","0.5"),f(s,"width","25.73"),f(s,"height","31"),f(s,"fill","none"),f(r,"id","a"),f(i,"d","M24.94,9.51a12.81,12.81,0,0,1,0,18.16,12.68,12.68,0,0,1-18,0,12.81,12.81,0,0,1,0-18.16l9-9V5l-.84.83-6,6a9.58,9.58,0,1,0,13.55,0ZM20.44,9a1.68,1.68,0,1,1,1.67-1.67A1.68,1.68,0,0,1,20.44,9Z"),f(i,"fill","#ee4c2c"),f(n,"clip-path","url(#a)"),f(e,"class",a[0]),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),f(e,"aria-hidden","true"),f(e,"focusable","false"),f(e,"role","img"),f(e,"width","1em"),f(e,"height","1em"),f(e,"preserveAspectRatio","xMidYMid meet"),f(e,"viewBox","0 0 32 32")},m(u,o){w(u,e,o),v(e,l),v(l,r),v(r,s),v(e,n),v(n,i)},p(u,[o]){o&1&&f(e,"class",u[0])},i:z,o:z,d(u){u&&m(e)}}}function ae(a,e,l){let{classNames:r=""}=e;return a.$$set=s=>{"classNames"in s&&l(0,r=s.classNames)},[r]}class ie extends R{constructor(e){super();D(this,e,ae,ne,A,{classNames:0})}}function oe(a){let e,l,r,s;return{c(){e=$("svg"),l=$("path"),r=$("path"),s=$("path"),this.h()},l(n){e=k(n,"svg",{class:!0,xmlns:!0,"xmlns:xlink":!0,"aria-hidden":!0,focusable:!0,role:!0,width:!0,height:!0,preserveAspectRatio:!0,viewBox:!0});var i=d(e);l=k(i,"path",{d:!0,fill:!0}),d(l).forEach(m),r=k(i,"path",{d:!0,fill:!0}),d(r).forEach(m),s=k(i,"path",{d:!0,fill:!0}),d(s).forEach(m),i.forEach(m),this.h()},h(){f(l,"d","M145.726 42.065v42.07l72.861 42.07v-42.07l-72.86-42.07zM0 84.135v42.07l36.43 21.03V105.17L0 84.135zm109.291 21.035l-36.43 21.034v126.2l36.43 21.035v-84.135l36.435 21.035v-42.07l-36.435-21.034V105.17z"),f(l,"fill","#E55B2D"),f(r,"d","M145.726 42.065L36.43 105.17v42.065l72.861-42.065v42.065l36.435-21.03v-84.14zM255.022 63.1l-36.435 21.035v42.07l36.435-21.035V63.1zm-72.865 84.135l-36.43 21.035v42.07l36.43-21.036v-42.07zm-36.43 63.104l-36.436-21.035v84.135l36.435-21.035V210.34z"),f(r,"fill","#ED8E24"),f(s,"d","M145.726 0L0 84.135l36.43 21.035l109.296-63.105l72.861 42.07L255.022 63.1L145.726 0zm0 126.204l-36.435 21.03l36.435 21.036l36.43-21.035l-36.43-21.03z"),f(s,"fill","#F8BF3C"),f(e,"class",a[0]),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),f(e,"aria-hidden","true"),f(e,"focusable","false"),f(e,"role","img"),f(e,"width","0.94em"),f(e,"height","1em"),f(e,"preserveAspectRatio","xMidYMid meet"),f(e,"viewBox","0 0 256 274")},m(n,i){w(n,e,i),v(e,l),v(e,r),v(e,s)},p(n,[i]){i&1&&f(e,"class",n[0])},i:z,o:z,d(n){n&&m(e)}}}function ue(a,e,l){let{classNames:r=""}=e;return a.$$set=s=>{"classNames"in s&&l(0,r=s.classNames)},[r]}class ce extends R{constructor(e){super();D(this,e,ue,oe,A,{classNames:0})}}function T(a,e,l){const r=a.slice();return r[8]=e[l],r[10]=l,r}function G(a){let e,l,r;var s=a[8].icon;function n(i){return{props:{classNames:"mr-1.5"}}}return s&&(e=new s(n())),{c(){e&&B(e.$$.fragment),l=O()},l(i){e&&x(e.$$.fragment,i),l=O()},m(i,u){e&&P(e,i,u),w(i,l,u),r=!0},p(i,u){if(s!==(s=i[8].icon)){if(e){F();const o=e;b(o.$$.fragment,1,0,()=>{M(o,1)}),L()}s?(e=new s(n()),B(e.$$.fragment),g(e.$$.fragment,1),P(e,l.parentNode,l)):e=null}},i(i){r||(e&&g(e.$$.fragment,i),r=!0)},o(i){e&&b(e.$$.fragment,i),r=!1},d(i){i&&m(l),e&&M(e,i)}}}function U(a){let e,l,r,s=a[8].name+"",n,i,u,o,t,c,h,p=a[8].icon&&G(a);function W(){return a[6](a[8])}return{c(){e=E("button"),p&&p.c(),l=C(),r=E("p"),n=J(s),u=C(),this.h()},l(y){e=N(y,"BUTTON",{class:!0});var _=d(e);p&&p.l(_),l=I(_),r=N(_,"P",{class:!0});var j=d(r);n=ee(j,s),j.forEach(m),u=I(_),_.forEach(m),this.h()},h(){f(r,"class",i="!m-0 "+a[8].classNames),f(e,"class",o="flex justify-center py-1.5 px-2.5 focus:outline-none rounded-"+(a[10]?"r":"l")+" "+(a[8].group!==a[1]&&"text-gray-500 filter grayscale"))},m(y,_){w(y,e,_),p&&p.m(e,null),v(e,l),v(e,r),v(r,n),v(e,u),t=!0,c||(h=V(e,"click",W),c=!0)},p(y,_){a=y,a[8].icon?p?(p.p(a,_),_&1&&g(p,1)):(p=G(a),p.c(),g(p,1),p.m(e,l)):p&&(F(),b(p,1,1,()=>{p=null}),L()),(!t||_&1)&&s!==(s=a[8].name+"")&&te(n,s),(!t||_&1&&i!==(i="!m-0 "+a[8].classNames))&&f(r,"class",i),(!t||_&3&&o!==(o="flex justify-center py-1.5 px-2.5 focus:outline-none rounded-"+(a[10]?"r":"l")+" "+(a[8].group!==a[1]&&"text-gray-500 filter grayscale")))&&f(e,"class",o)},i(y){t||(g(p),t=!0)},o(y){b(p),t=!1},d(y){y&&m(e),p&&p.d(),c=!1,h()}}}function fe(a){let e,l,r,s=a[3].filter(a[5]),n=[];for(let u=0;u<s.length;u+=1)n[u]=U(T(a,s,u));const i=u=>b(n[u],1,1,()=>{n[u]=null});return{c(){e=E("div"),l=E("div");for(let u=0;u<n.length;u+=1)n[u].c();this.h()},l(u){e=N(u,"DIV",{});var o=d(e);l=N(o,"DIV",{class:!0});var t=d(l);for(let c=0;c<n.length;c+=1)n[c].l(t);t.forEach(m),o.forEach(m),this.h()},h(){f(l,"class","bg-white leading-none border border-gray-100 rounded-lg inline-flex p-0.5 text-sm mb-4 select-none")},m(u,o){w(u,e,o),v(e,l);for(let t=0;t<n.length;t+=1)n[t].m(l,null);r=!0},p(u,[o]){if(o&27){s=u[3].filter(u[5]);let t;for(t=0;t<s.length;t+=1){const c=T(u,s,t);n[t]?(n[t].p(c,o),g(n[t],1)):(n[t]=U(c),n[t].c(),g(n[t],1),n[t].m(l,null))}for(F(),t=s.length;t<n.length;t+=1)i(t);L()}},i(u){if(!r){for(let o=0;o<s.length;o+=1)g(n[o]);r=!0}},o(u){n=n.filter(Boolean);for(let o=0;o<n.length;o+=1)b(n[o]);r=!1},d(u){u&&m(e),le(n,u)}}}function he(a,e,l){let r,{ids:s}=e;const n=s.join("-"),i=Z(n);q(a,i,h=>l(1,r=h));const u=[{id:"pt",classNames:"",icon:ie,name:"Pytorch",group:"group1"},{id:"tf",classNames:"",icon:ce,name:"TensorFlow",group:"group2"},{id:"stringapi",classNames:"text-blue-600",name:"String API",group:"group1"},{id:"readinstruction",classNames:"text-blue-600",name:"ReadInstruction",group:"group2"}];function o(h){se(i,r=h,r)}const t=h=>s.includes(h.id),c=h=>o(h.group);return a.$$set=h=>{"ids"in h&&l(0,s=h.ids)},[s,r,i,u,o,t,c]}class Q extends R{constructor(e){super();D(this,e,he,fe,A,{ids:0})}}function pe(a){let e,l,r,s,n,i,u=a[1].highlighted+"",o;return l=new Y({props:{classNames:"transition duration-200 ease-in-out "+(a[2]&&"opacity-0"),title:"Copy code excerpt to clipboard",value:a[1].code}}),n=new Q({props:{ids:a[4]}}),{c(){e=E("div"),B(l.$$.fragment),r=C(),s=E("pre"),B(n.$$.fragment),i=new H,this.h()},l(t){e=N(t,"DIV",{class:!0});var c=d(e);x(l.$$.fragment,c),c.forEach(m),r=I(t),s=N(t,"PRE",{});var h=d(s);x(n.$$.fragment,h),i=K(h),h.forEach(m),this.h()},h(){f(e,"class","absolute top-2.5 right-4"),i.a=null},m(t,c){w(t,e,c),P(l,e,null),w(t,r,c),w(t,s,c),P(n,s,null),i.m(u,s),o=!0},p(t,c){const h={};c&4&&(h.classNames="transition duration-200 ease-in-out "+(t[2]&&"opacity-0")),c&2&&(h.value=t[1].code),l.$set(h),(!o||c&2)&&u!==(u=t[1].highlighted+"")&&i.p(u)},i(t){o||(g(l.$$.fragment,t),g(n.$$.fragment,t),o=!0)},o(t){b(l.$$.fragment,t),b(n.$$.fragment,t),o=!1},d(t){t&&m(e),M(l),t&&m(r),t&&m(s),M(n)}}}function me(a){let e,l,r,s,n,i,u=a[0].highlighted+"",o;return l=new Y({props:{classNames:"transition duration-200 ease-in-out "+(a[2]&&"opacity-0"),title:"Copy code excerpt to clipboard",value:a[0].code}}),n=new Q({props:{ids:a[4]}}),{c(){e=E("div"),B(l.$$.fragment),r=C(),s=E("pre"),B(n.$$.fragment),i=new H,this.h()},l(t){e=N(t,"DIV",{class:!0});var c=d(e);x(l.$$.fragment,c),c.forEach(m),r=I(t),s=N(t,"PRE",{});var h=d(s);x(n.$$.fragment,h),i=K(h),h.forEach(m),this.h()},h(){f(e,"class","absolute top-2.5 right-4"),i.a=null},m(t,c){w(t,e,c),P(l,e,null),w(t,r,c),w(t,s,c),P(n,s,null),i.m(u,s),o=!0},p(t,c){const h={};c&4&&(h.classNames="transition duration-200 ease-in-out "+(t[2]&&"opacity-0")),c&1&&(h.value=t[0].code),l.$set(h),(!o||c&1)&&u!==(u=t[0].highlighted+"")&&i.p(u)},i(t){o||(g(l.$$.fragment,t),g(n.$$.fragment,t),o=!0)},o(t){b(l.$$.fragment,t),b(n.$$.fragment,t),o=!1},d(t){t&&m(e),M(l),t&&m(r),t&&m(s),M(n)}}}function de(a){let e,l,r,s,n,i;const u=[me,pe],o=[];function t(c,h){return c[3]==="group1"?0:1}return l=t(a),r=o[l]=u[l](a),{c(){e=E("div"),r.c(),this.h()},l(c){e=N(c,"DIV",{class:!0});var h=d(e);r.l(h),h.forEach(m),this.h()},h(){f(e,"class","code-block relative")},m(c,h){w(c,e,h),o[l].m(e,null),s=!0,n||(i=[V(e,"mouseover",a[6]),V(e,"focus",a[6]),V(e,"mouseout",a[7]),V(e,"focus",a[7])],n=!0)},p(c,[h]){let p=l;l=t(c),l===p?o[l].p(c,h):(F(),b(o[p],1,1,()=>{o[p]=null}),L(),r=o[l],r?r.p(c,h):(r=o[l]=u[l](c),r.c()),g(r,1),r.m(e,null))},i(c){s||(g(r),s=!0)},o(c){b(r),s=!1},d(c){c&&m(e),o[l].d(),n=!1,re(i)}}}function ge(a,e,l){let r,{group1:s}=e,{group2:n}=e;const i=[s.id,n.id],u=i.join("-"),o=Z(u);q(a,o,p=>l(3,r=p));let t=!0;function c(){l(2,t=!1)}function h(){l(2,t=!0)}return a.$$set=p=>{"group1"in p&&l(0,s=p.group1),"group2"in p&&l(1,n=p.group2)},[s,n,t,r,i,o,c,h]}class we extends R{constructor(e){super();D(this,e,ge,de,A,{group1:0,group2:1})}}export{we as C};
