Buckets:
hf-doc-build/doc / deep-rl-course /main /en /_app /immutable /chunks /CourseFloatingBanner.9c5d96ce.js
| import{s as Q,c as V,j as we,u as W,g as U,d as F,o as Me,b as $,n as B,z as Ne,f as R}from"./scheduler.37c15a92.js";import{S as Z,i as X,g as j,h as z,j as S,f as w,k as u,a as p,o as E,E as x,d as h,t as g,C as ee,D as te,l as je,s as H,c as J,q as T,b as G,u as y,v as P,w as A,x as Y,m as ke,e as O,n as Ce,p as Le,r as q,z as ve}from"./index.b01106c0.js";import{e as K}from"./each.e59479a4.js";const ze=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function Ie(s){let e,n,l,t,a,o;const i=s[7].default,r=V(i,s,s[6],null);return{c(){e=j("div"),n=j("ul"),r&&r.c(),this.h()},l(c){e=z(c,"DIV",{class:!0});var m=S(e);n=z(m,"UL",{class:!0});var L=S(n);r&&r.l(L),L.forEach(w),m.forEach(w),this.h()},h(){u(n,"class","min-w-full w-auto"),u(e,"class",l="absolute top-full mt-1 min-w-full w-auto bg-white rounded-xl overflow-hidden shadow-lg z-10 border border-gray-100 "+(s[2]==="right"?"right-0":"left-0")+" "+s[0])},m(c,m){p(c,e,m),E(e,n),r&&r.m(n,null),s[8](e),t=!0,a||(o=x(e,"click",function(){we(s[1])&&s[1].apply(this,arguments)}),a=!0)},p(c,[m]){s=c,r&&r.p&&(!t||m&64)&&W(r,i,s,s[6],t?F(i,s[6],m,null):U(s[6]),null),(!t||m&5&&l!==(l="absolute top-full mt-1 min-w-full w-auto bg-white rounded-xl overflow-hidden shadow-lg z-10 border border-gray-100 "+(s[2]==="right"?"right-0":"left-0")+" "+s[0]))&&u(e,"class",l)},i(c){t||(h(r,c),t=!0)},o(c){g(r,c),t=!1},d(c){c&&w(e),r&&r.d(c),s[8](null),a=!1,o()}}}function Se(s,e,n){let{$$slots:l={},$$scope:t}=e,{classNames:a=""}=e,{dropdownElement:o=void 0}=e,{forceAlignement:i=void 0}=e,{onClose:r}=e,c=i??"left",m;Me(()=>{if(document.addEventListener("click",L),!i){const d=document.documentElement.clientWidth,f=m==null?void 0:m.getBoundingClientRect(),_=(f==null?void 0:f.left)??0,M=(f==null?void 0:f.width)??0;n(2,c=_+M>d?"right":"left")}return()=>{document.removeEventListener("click",L)}});function L(d){const f=d.target;f!==o&&!(o!=null&&o.contains(f))&&r()}function N(d){$[d?"unshift":"push"](()=>{m=d,n(3,m)})}return s.$$set=d=>{"classNames"in d&&n(0,a=d.classNames),"dropdownElement"in d&&n(4,o=d.dropdownElement),"forceAlignement"in d&&n(5,i=d.forceAlignement),"onClose"in d&&n(1,r=d.onClose),"$$scope"in d&&n(6,t=d.$$scope)},[a,r,c,m,o,i,t,l,N]}class Ee extends Z{constructor(e){super(),X(this,e,Se,Ie,Q,{classNames:0,dropdownElement:4,forceAlignement:5,onClose:1})}}function ye(s){let e,n;return{c(){e=ee("svg"),n=ee("path"),this.h()},l(l){e=te(l,"svg",{class:!0,xmlns:!0,"xmlns:xlink":!0,"aria-hidden":!0,focusable:!0,role:!0,width:!0,height:!0,preserveAspectRatio:!0,viewBox:!0,style:!0});var t=S(e);n=te(t,"path",{d:!0,fill:!0}),S(n).forEach(w),t.forEach(w),this.h()},h(){u(n,"d","M7 10l5 5l5-5z"),u(n,"fill","currentColor"),u(e,"class",s[0]),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),u(e,"aria-hidden","true"),u(e,"focusable","false"),u(e,"role","img"),u(e,"width","1em"),u(e,"height","1em"),u(e,"preserveAspectRatio","xMidYMid meet"),u(e,"viewBox","0 0 24 24"),je(e,"transform","rotate(360deg)")},m(l,t){p(l,e,t),E(e,n)},p(l,[t]){t&1&&u(e,"class",l[0])},i:B,o:B,d(l){l&&w(e)}}}function Ae(s,e,n){let{classNames:l=""}=e;return s.$$set=t=>{"classNames"in t&&n(0,l=t.classNames)},[l]}class Ye extends Z{constructor(e){super(),X(this,e,Ae,ye,Q,{classNames:0})}}const Be=s=>({}),le=s=>({}),Te=s=>({}),ne=s=>({});function Ge(s){let e,n,l,t,a,o,i=s[2]&&se(s),r=s[9]&&ae();return{c(){i&&i.c(),e=H(),n=j("p"),l=ke(s[4]),t=H(),r&&r.c(),a=O()},l(c){i&&i.l(c),e=J(c),n=z(c,"P",{});var m=S(n);l=Ce(m,s[4]),m.forEach(w),t=J(c),r&&r.l(c),a=O()},m(c,m){i&&i.m(c,m),p(c,e,m),p(c,n,m),E(n,l),p(c,t,m),r&&r.m(c,m),p(c,a,m),o=!0},p(c,m){c[2]?i?(i.p(c,m),m&4&&h(i,1)):(i=se(c),i.c(),h(i,1),i.m(e.parentNode,e)):i&&(T(),g(i,1,1,()=>{i=null}),G()),(!o||m&16)&&Le(l,c[4]),c[9]?r?m&512&&h(r,1):(r=ae(),r.c(),h(r,1),r.m(a.parentNode,a)):r&&(T(),g(r,1,1,()=>{r=null}),G())},i(c){o||(h(i),h(r),o=!0)},o(c){g(i),g(r),o=!1},d(c){c&&(w(e),w(n),w(t),w(a)),i&&i.d(c),r&&r.d(c)}}}function Oe(s){let e;const n=s[14].button,l=V(n,s,s[18],ne);return{c(){l&&l.c()},l(t){l&&l.l(t)},m(t,a){l&&l.m(t,a),e=!0},p(t,a){l&&l.p&&(!e||a&262144)&&W(l,n,t,t[18],e?F(n,t[18],a,Te):U(t[18]),ne)},i(t){e||(h(l,t),e=!0)},o(t){g(l,t),e=!1},d(t){l&&l.d(t)}}}function se(s){let e,n,l;var t=s[2];function a(o,i){return{props:{classNames:"mr-1.5 "+o[3]}}}return t&&(e=q(t,a(s))),{c(){e&&y(e.$$.fragment),n=O()},l(o){e&&P(e.$$.fragment,o),n=O()},m(o,i){e&&A(e,o,i),p(o,n,i),l=!0},p(o,i){if(i&4&&t!==(t=o[2])){if(e){T();const r=e;g(r.$$.fragment,1,0,()=>{Y(r,1)}),G()}t?(e=q(t,a(o)),y(e.$$.fragment),h(e.$$.fragment,1),A(e,n.parentNode,n)):e=null}else if(t){const r={};i&8&&(r.classNames="mr-1.5 "+o[3]),e.$set(r)}},i(o){l||(e&&h(e.$$.fragment,o),l=!0)},o(o){e&&g(e.$$.fragment,o),l=!1},d(o){o&&w(n),e&&Y(e,o)}}}function ae(s){let e,n;return e=new Ye({props:{classNames:"-mr-1 text-gray-500"}}),{c(){y(e.$$.fragment)},l(l){P(e.$$.fragment,l)},m(l,t){A(e,l,t),n=!0},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){Y(e,l)}}}function oe(s){let e,n;return e=new Ee({props:{classNames:s[6]+" "+(s[8]?"v2-dropdown-menu hidden":""),dropdownElement:s[10],forceAlignement:s[5],onClose:s[16],$$slots:{default:[Ve]},$$scope:{ctx:s}}}),{c(){y(e.$$.fragment)},l(l){P(e.$$.fragment,l)},m(l,t){A(e,l,t),n=!0},p(l,t){const a={};t&320&&(a.classNames=l[6]+" "+(l[8]?"v2-dropdown-menu hidden":"")),t&1024&&(a.dropdownElement=l[10]),t&32&&(a.forceAlignement=l[5]),t&2048&&(a.onClose=l[16]),t&262144&&(a.$$scope={dirty:t,ctx:l}),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){Y(e,l)}}}function Ve(s){let e;const n=s[14].menu,l=V(n,s,s[18],le);return{c(){l&&l.c()},l(t){l&&l.l(t)},m(t,a){l&&l.m(t,a),e=!0},p(t,a){l&&l.p&&(!e||a&262144)&&W(l,n,t,t[18],e?F(n,t[18],a,Be):U(t[18]),le)},i(t){e||(h(l,t),e=!0)},o(t){g(l,t),e=!1},d(t){l&&l.d(t)}}}function We(s){let e,n,l,t,a,o,i,r,c,m;const L=[Oe,Ge],N=[];function d(_,M){return _[12].button?0:1}l=d(s),t=N[l]=L[l](s);let f=(s[11]||s[8])&&oe(s);return{c(){e=j("div"),n=j("button"),t.c(),o=H(),f&&f.c(),this.h()},l(_){e=z(_,"DIV",{class:!0});var M=S(e);n=z(M,"BUTTON",{class:!0,type:!0});var D=S(n);t.l(D),D.forEach(w),o=J(M),f&&f.l(M),M.forEach(w),this.h()},h(){u(n,"class",a=""+s[1]+" "+(s[7]?"":"cursor-pointer w-full btn text-sm")+" "+(s[8]?"v2-dropdown-button":"")),u(n,"type","button"),u(e,"class",i="relative "+s[0]+" "+(s[8]?"v2-dropdown":""))},m(_,M){p(_,e,M),E(e,n),N[l].m(n,null),E(e,o),f&&f.m(e,null),s[17](e),r=!0,c||(m=x(n,"click",s[15]),c=!0)},p(_,[M]){let D=l;l=d(_),l===D?N[l].p(_,M):(T(),g(N[D],1,1,()=>{N[D]=null}),G(),t=N[l],t?t.p(_,M):(t=N[l]=L[l](_),t.c()),h(t,1),t.m(n,null)),(!r||M&386&&a!==(a=""+_[1]+" "+(_[7]?"":"cursor-pointer w-full btn text-sm")+" "+(_[8]?"v2-dropdown-button":"")))&&u(n,"class",a),_[11]||_[8]?f?(f.p(_,M),M&2304&&h(f,1)):(f=oe(_),f.c(),h(f,1),f.m(e,null)):f&&(T(),g(f,1,1,()=>{f=null}),G()),(!r||M&257&&i!==(i="relative "+_[0]+" "+(_[8]?"v2-dropdown":"")))&&u(e,"class",i)},i(_){r||(h(t),h(f),r=!0)},o(_){g(t),g(f),r=!1},d(_){_&&w(e),N[l].d(),f&&f.d(),s[17](null),c=!1,m()}}}function Ue(s,e,n){let{$$slots:l={},$$scope:t}=e;const a=Ne(l);let{classNames:o=""}=e,{btnClassNames:i=""}=e,{btnIcon:r=void 0}=e,{btnIconClassNames:c=""}=e,{btnLabel:m=""}=e,{forceMenuAlignement:L=void 0}=e,{menuClassNames:N=""}=e,{noBtnClass:d=void 0}=e,{selectedValue:f=void 0}=e,{useDeprecatedJS:_=!0}=e,{withBtnCaret:M=!1}=e,D,I=!1;const b=()=>n(11,I=!I),k=()=>n(11,I=!1);function v(C){$[C?"unshift":"push"](()=>{D=C,n(10,D)})}return s.$$set=C=>{"classNames"in C&&n(0,o=C.classNames),"btnClassNames"in C&&n(1,i=C.btnClassNames),"btnIcon"in C&&n(2,r=C.btnIcon),"btnIconClassNames"in C&&n(3,c=C.btnIconClassNames),"btnLabel"in C&&n(4,m=C.btnLabel),"forceMenuAlignement"in C&&n(5,L=C.forceMenuAlignement),"menuClassNames"in C&&n(6,N=C.menuClassNames),"noBtnClass"in C&&n(7,d=C.noBtnClass),"selectedValue"in C&&n(13,f=C.selectedValue),"useDeprecatedJS"in C&&n(8,_=C.useDeprecatedJS),"withBtnCaret"in C&&n(9,M=C.withBtnCaret),"$$scope"in C&&n(18,t=C.$$scope)},[o,i,r,c,m,L,N,d,_,M,D,I,a,f,l,b,k,v,t]}class pe extends Z{constructor(e){super(),X(this,e,Ue,We,Q,{classNames:0,btnClassNames:1,btnIcon:2,btnIconClassNames:3,btnLabel:4,forceMenuAlignement:5,menuClassNames:6,noBtnClass:7,selectedValue:13,useDeprecatedJS:8,withBtnCaret:9})}}function Fe(s){let e,n,l,t,a=s[5]&&ie(s);return{c(){a&&a.c(),e=H(),n=j("p"),l=ke(s[7])},l(o){a&&a.l(o),e=J(o),n=z(o,"P",{});var i=S(n);l=Ce(i,s[7]),i.forEach(w)},m(o,i){a&&a.m(o,i),p(o,e,i),p(o,n,i),E(n,l),t=!0},p(o,i){o[5]?a?(a.p(o,i),i&32&&h(a,1)):(a=ie(o),a.c(),h(a,1),a.m(e.parentNode,e)):a&&(T(),g(a,1,1,()=>{a=null}),G()),(!t||i&128)&&Le(l,o[7])},i(o){t||(h(a),t=!0)},o(o){g(a),t=!1},d(o){o&&(w(e),w(n)),a&&a.d(o)}}}function Pe(s){let e;const n=s[15].default,l=V(n,s,s[14],null);return{c(){l&&l.c()},l(t){l&&l.l(t)},m(t,a){l&&l.m(t,a),e=!0},p(t,a){l&&l.p&&(!e||a&16384)&&W(l,n,t,t[14],e?F(n,t[14],a,null):U(t[14]),null)},i(t){e||(h(l,t),e=!0)},o(t){g(l,t),e=!1},d(t){l&&l.d(t)}}}function ie(s){let e,n,l;var t=s[5];function a(o,i){return{props:{classNames:"mr-1.5 "+o[6]}}}return t&&(e=q(t,a(s))),{c(){e&&y(e.$$.fragment),n=O()},l(o){e&&P(e.$$.fragment,o),n=O()},m(o,i){e&&A(e,o,i),p(o,n,i),l=!0},p(o,i){if(i&32&&t!==(t=o[5])){if(e){T();const r=e;g(r.$$.fragment,1,0,()=>{Y(r,1)}),G()}t?(e=q(t,a(o)),y(e.$$.fragment),h(e.$$.fragment,1),A(e,n.parentNode,n)):e=null}else if(t){const r={};i&64&&(r.classNames="mr-1.5 "+o[6]),e.$set(r)}},i(o){l||(e&&h(e.$$.fragment,o),l=!0)},o(o){e&&g(e.$$.fragment,o),l=!1},d(o){o&&w(n),e&&Y(e,o)}}}function He(s){let e,n,l,t,a,o,i,r,c,m;const L=[Pe,Fe],N=[];function d(f,_){return f[13].default?0:1}return l=d(s),t=N[l]=L[l](s),{c(){e=j("li"),n=j("a"),t.c(),this.h()},l(f){e=z(f,"LI",{class:!0});var _=S(e);n=z(_,"A",{class:!0,"data-label":!0,"data-url":!0,"data-value":!0,href:!0,rel:!0,target:!0});var M=S(n);t.l(M),M.forEach(w),_.forEach(w),this.h()},h(){u(n,"class",a="flex items-center hover:bg-gray-50 dark:hover:bg-gray-800 cursor-pointer px-3 py-1.5 whitespace-nowrap "+s[0]+" "+(s[9]?"hover:underline":"")+" "+(s[12]?"v2-dropdown-entry":"")),u(n,"data-label",s[1]),u(n,"data-url",s[2]),u(n,"data-value",s[3]),u(n,"href",s[4]),u(n,"rel",o=s[8]?"nofollow":void 0),u(n,"target",i=s[11]?"_blank":void 0),u(e,"class","not-prose")},m(f,_){p(f,e,_),E(e,n),N[l].m(n,null),r=!0,c||(m=x(n,"click",function(){we(s[10])&&s[10].apply(this,arguments)}),c=!0)},p(f,[_]){s=f;let M=l;l=d(s),l===M?N[l].p(s,_):(T(),g(N[M],1,1,()=>{N[M]=null}),G(),t=N[l],t?t.p(s,_):(t=N[l]=L[l](s),t.c()),h(t,1),t.m(n,null)),(!r||_&4609&&a!==(a="flex items-center hover:bg-gray-50 dark:hover:bg-gray-800 cursor-pointer px-3 py-1.5 whitespace-nowrap "+s[0]+" "+(s[9]?"hover:underline":"")+" "+(s[12]?"v2-dropdown-entry":"")))&&u(n,"class",a),(!r||_&2)&&u(n,"data-label",s[1]),(!r||_&4)&&u(n,"data-url",s[2]),(!r||_&8)&&u(n,"data-value",s[3]),(!r||_&16)&&u(n,"href",s[4]),(!r||_&256&&o!==(o=s[8]?"nofollow":void 0))&&u(n,"rel",o),(!r||_&2048&&i!==(i=s[11]?"_blank":void 0))&&u(n,"target",i)},i(f){r||(h(t),r=!0)},o(f){g(t),r=!1},d(f){f&&w(e),N[l].d(),c=!1,m()}}}function Je(s,e,n){let{$$slots:l={},$$scope:t}=e;const a=Ne(l);let{classNames:o=""}=e,{dataLabel:i=void 0}=e,{dataUrl:r=void 0}=e,{dataValue:c=void 0}=e,{href:m=void 0}=e,{icon:L=void 0}=e,{iconClassNames:N=""}=e,{label:d=""}=e,{noFollow:f=!1}=e,{underline:_=!1}=e,{onClick:M=()=>{}}=e,{targetBlank:D=!1}=e,{useDeprecatedJS:I=!0}=e;return s.$$set=b=>{"classNames"in b&&n(0,o=b.classNames),"dataLabel"in b&&n(1,i=b.dataLabel),"dataUrl"in b&&n(2,r=b.dataUrl),"dataValue"in b&&n(3,c=b.dataValue),"href"in b&&n(4,m=b.href),"icon"in b&&n(5,L=b.icon),"iconClassNames"in b&&n(6,N=b.iconClassNames),"label"in b&&n(7,d=b.label),"noFollow"in b&&n(8,f=b.noFollow),"underline"in b&&n(9,_=b.underline),"onClick"in b&&n(10,M=b.onClick),"targetBlank"in b&&n(11,D=b.targetBlank),"useDeprecatedJS"in b&&n(12,I=b.useDeprecatedJS),"$$scope"in b&&n(14,t=b.$$scope)},[o,i,r,c,m,L,N,d,f,_,M,D,I,a,t,l]}class De extends Z{constructor(e){super(),X(this,e,Je,He,Q,{classNames:0,dataLabel:1,dataUrl:2,dataValue:3,href:4,icon:5,iconClassNames:6,label:7,noFollow:8,underline:9,onClick:10,targetBlank:11,useDeprecatedJS:12})}}const{window:Qe}=ze,Ze=s=>({}),re=s=>({slot:"button"});function fe(s,e,n){const l=s.slice();return l[11]=e[n].label,l[12]=e[n].value,l}const Xe=s=>({}),ce=s=>({slot:"menu"}),Re=s=>({}),ue=s=>({slot:"button"});function _e(s,e,n){const l=s.slice();return l[11]=e[n].label,l[12]=e[n].value,l}const qe=s=>({}),me=s=>({slot:"menu"}),Ke=s=>({}),de=s=>({});function xe(s){let e,n;return e=new pe({props:{btnLabel:"",classNames:"colab-dropdown",noBtnClass:!0,useDeprecatedJS:!1,$$slots:{menu:[nt],button:[tt]},$$scope:{ctx:s}}}),{c(){y(e.$$.fragment)},l(l){P(e.$$.fragment,l)},m(l,t){A(e,l,t),n=!0},p(l,t){const a={};t&1024&&(a.$$scope={dirty:t,ctx:l}),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){Y(e,l)}}}function $e(s){let e,n,l;return{c(){e=j("a"),n=j("img"),this.h()},l(t){e=z(t,"A",{href:!0,target:!0});var a=S(e);n=z(a,"IMG",{alt:!0,class:!0,src:!0}),a.forEach(w),this.h()},h(){u(n,"alt","Open In Colab"),u(n,"class","!m-0"),R(n.src,l="https://colab.research.google.com/assets/colab-badge.svg")||u(n,"src",l),u(e,"href",s[2][0].value),u(e,"target","_blank")},m(t,a){p(t,e,a),E(e,n)},p:B,i:B,o:B,d(t){t&&w(e)}}}function et(s){let e,n;return{c(){e=j("img"),this.h()},l(l){e=z(l,"IMG",{alt:!0,class:!0,src:!0}),this.h()},h(){u(e,"alt","Open In Colab"),u(e,"class","!m-0"),R(e.src,n="https://colab.research.google.com/assets/colab-badge.svg")||u(e,"src",n)},m(l,t){p(l,e,t)},p:B,d(l){l&&w(e)}}}function tt(s){let e;const n=s[6].default,l=V(n,s,s[10],ue),t=l||et();return{c(){t&&t.c()},l(a){t&&t.l(a)},m(a,o){t&&t.m(a,o),e=!0},p(a,o){l&&l.p&&(!e||o&1024)&&W(l,n,a,a[10],e?F(n,a[10],o,Re):U(a[10]),ue)},i(a){e||(h(t,a),e=!0)},o(a){g(t,a),e=!1},d(a){t&&t.d(a)}}}function he(s){let e,n;function l(){return s[7](s[12])}return e=new De({props:{classNames:"text-sm !no-underline",iconClassNames:"text-gray-500",label:s[11],onClick:l,useDeprecatedJS:!1}}),{c(){y(e.$$.fragment)},l(t){P(e.$$.fragment,t)},m(t,a){A(e,t,a),n=!0},p(t,a){s=t},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){g(e.$$.fragment,t),n=!1},d(t){Y(e,t)}}}function lt(s){let e,n,l=K(s[2]),t=[];for(let o=0;o<l.length;o+=1)t[o]=he(_e(s,l,o));const a=o=>g(t[o],1,1,()=>{t[o]=null});return{c(){for(let o=0;o<t.length;o+=1)t[o].c();e=O()},l(o){for(let i=0;i<t.length;i+=1)t[i].l(o);e=O()},m(o,i){for(let r=0;r<t.length;r+=1)t[r]&&t[r].m(o,i);p(o,e,i),n=!0},p(o,i){if(i&4){l=K(o[2]);let r;for(r=0;r<l.length;r+=1){const c=_e(o,l,r);t[r]?(t[r].p(c,i),h(t[r],1)):(t[r]=he(c),t[r].c(),h(t[r],1),t[r].m(e.parentNode,e))}for(T(),r=l.length;r<t.length;r+=1)a(r);G()}},i(o){if(!n){for(let i=0;i<l.length;i+=1)h(t[i]);n=!0}},o(o){t=t.filter(Boolean);for(let i=0;i<t.length;i+=1)g(t[i]);n=!1},d(o){o&&w(e),ve(t,o)}}}function nt(s){let e;const n=s[6].default,l=V(n,s,s[10],me),t=l||lt(s);return{c(){t&&t.c()},l(a){t&&t.l(a)},m(a,o){t&&t.m(a,o),e=!0},p(a,o){l&&l.p&&(!e||o&1024)&&W(l,n,a,a[10],e?F(n,a[10],o,qe):U(a[10]),me)},i(a){e||(h(t,a),e=!0)},o(a){g(t,a),e=!1},d(a){t&&t.d(a)}}}function st(s){let e,n;return e=new pe({props:{btnLabel:"",classNames:"colab-dropdown",noBtnClass:!0,useDeprecatedJS:!1,$$slots:{menu:[ft],button:[it]},$$scope:{ctx:s}}}),{c(){y(e.$$.fragment)},l(l){P(e.$$.fragment,l)},m(l,t){A(e,l,t),n=!0},p(l,t){const a={};t&1024&&(a.$$scope={dirty:t,ctx:l}),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){Y(e,l)}}}function at(s){let e,n,l;return{c(){e=j("a"),n=j("img"),this.h()},l(t){e=z(t,"A",{href:!0,target:!0});var a=S(e);n=z(a,"IMG",{alt:!0,class:!0,src:!0}),a.forEach(w),this.h()},h(){u(n,"alt","Open In Studio Lab"),u(n,"class","!m-0"),R(n.src,l="https://studiolab.sagemaker.aws/studiolab.svg")||u(n,"src",l),u(e,"href",s[3][0].value),u(e,"target","_blank")},m(t,a){p(t,e,a),E(e,n)},p:B,i:B,o:B,d(t){t&&w(e)}}}function ot(s){let e,n;return{c(){e=j("img"),this.h()},l(l){e=z(l,"IMG",{alt:!0,class:!0,src:!0}),this.h()},h(){u(e,"alt","Open In Studio Lab"),u(e,"class","!m-0"),R(e.src,n="https://studiolab.sagemaker.aws/studiolab.svg")||u(e,"src",n)},m(l,t){p(l,e,t)},p:B,d(l){l&&w(e)}}}function it(s){let e;const n=s[6].default,l=V(n,s,s[10],re),t=l||ot();return{c(){t&&t.c()},l(a){t&&t.l(a)},m(a,o){t&&t.m(a,o),e=!0},p(a,o){l&&l.p&&(!e||o&1024)&&W(l,n,a,a[10],e?F(n,a[10],o,Ze):U(a[10]),re)},i(a){e||(h(t,a),e=!0)},o(a){g(t,a),e=!1},d(a){t&&t.d(a)}}}function ge(s){let e,n;function l(){return s[8](s[12])}return e=new De({props:{classNames:"text-sm !no-underline",iconClassNames:"text-gray-500",label:s[11],onClick:l,useDeprecatedJS:!1}}),{c(){y(e.$$.fragment)},l(t){P(e.$$.fragment,t)},m(t,a){A(e,t,a),n=!0},p(t,a){s=t},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){g(e.$$.fragment,t),n=!1},d(t){Y(e,t)}}}function rt(s){let e,n,l=K(s[3]),t=[];for(let o=0;o<l.length;o+=1)t[o]=ge(fe(s,l,o));const a=o=>g(t[o],1,1,()=>{t[o]=null});return{c(){for(let o=0;o<t.length;o+=1)t[o].c();e=O()},l(o){for(let i=0;i<t.length;i+=1)t[i].l(o);e=O()},m(o,i){for(let r=0;r<t.length;r+=1)t[r]&&t[r].m(o,i);p(o,e,i),n=!0},p(o,i){if(i&8){l=K(o[3]);let r;for(r=0;r<l.length;r+=1){const c=fe(o,l,r);t[r]?(t[r].p(c,i),h(t[r],1)):(t[r]=ge(c),t[r].c(),h(t[r],1),t[r].m(e.parentNode,e))}for(T(),r=l.length;r<t.length;r+=1)a(r);G()}},i(o){if(!n){for(let i=0;i<l.length;i+=1)h(t[i]);n=!0}},o(o){t=t.filter(Boolean);for(let i=0;i<t.length;i+=1)g(t[i]);n=!1},d(o){o&&w(e),ve(t,o)}}}function ft(s){let e;const n=s[6].default,l=V(n,s,s[10],ce),t=l||rt(s);return{c(){t&&t.c()},l(a){t&&t.l(a)},m(a,o){t&&t.m(a,o),e=!0},p(a,o){l&&l.p&&(!e||o&1024)&&W(l,n,a,a[10],e?F(n,a[10],o,Xe):U(a[10]),ce)},i(a){e||(h(t,a),e=!0)},o(a){g(t,a),e=!1},d(a){t&&t.d(a)}}}function ct(s){let e,n,l,t,a,o,i,r,c,m,L;const N=s[6].alwaysVisible,d=V(N,s,s[10],de),f=[$e,xe],_=[];function M(k,v){return k[2].length===1?0:k[2].length>1?1:-1}~(l=M(s))&&(t=_[l]=f[l](s));const D=[at,st],I=[];function b(k,v){return k[3].length===1?0:k[3].length>1?1:-1}return~(o=b(s))&&(i=I[o]=D[o](s)),{c(){e=j("div"),d&&d.c(),n=H(),t&&t.c(),a=H(),i&&i.c(),this.h()},l(k){e=z(k,"DIV",{class:!0});var v=S(e);d&&d.l(v),n=J(v),t&&t.l(v),a=J(v),i&&i.l(v),v.forEach(w),this.h()},h(){u(e,"class",r="flex space-x-1 "+s[0])},m(k,v){p(k,e,v),d&&d.m(e,null),E(e,n),~l&&_[l].m(e,null),E(e,a),~o&&I[o].m(e,null),s[9](e),c=!0,m||(L=x(Qe,"resize",s[4]),m=!0)},p(k,[v]){d&&d.p&&(!c||v&1024)&&W(d,N,k,k[10],c?F(N,k[10],v,Ke):U(k[10]),de),t&&t.p(k,v),i&&i.p(k,v),(!c||v&1&&r!==(r="flex space-x-1 "+k[0]))&&u(e,"class",r)},i(k){c||(h(d,k),h(t),h(i),c=!0)},o(k){g(d,k),g(t),g(i),c=!1},d(k){k&&w(e),d&&d.d(k),~l&&_[l].d(),~o&&I[o].d(),s[9](null),m=!1,L()}}}function be(s){window.open(s)}function ut(s,e,n){let{$$slots:l={},$$scope:t}=e,{options:a=[]}=e,{classNames:o=""}=e,i;const r=a.filter(f=>f.value.includes("colab.research.google.com")),c=a.filter(f=>f.value.includes("studiolab.sagemaker.aws"));function m(){const f=document.querySelector(".prose-doc h1"),_=document.querySelector(".prose-doc h1 > span");if(f&&_){const{width:M}=f.getBoundingClientRect(),{width:D}=_.getBoundingClientRect();let I=0;for(let k=0;k<i.children.length;k++){const v=i.children.item(k);v&&(I+=v.clientWidth)}const b=20;M-D<I+b?i.classList.remove("absolute"):i.classList.add("absolute")}}Me(()=>{m()});const L=f=>be(f),N=f=>be(f);function d(f){$[f?"unshift":"push"](()=>{i=f,n(1,i)})}return s.$$set=f=>{"options"in f&&n(5,a=f.options),"classNames"in f&&n(0,o=f.classNames),"$$scope"in f&&n(10,t=f.$$scope)},[o,i,r,c,m,a,l,L,N,d,t]}class _t extends Z{constructor(e){super(),X(this,e,ut,ct,Q,{options:5,classNames:0})}}function mt(s){let e,n,l;return{c(){e=j("a"),n=j("img"),this.h()},l(t){e=z(t,"A",{href:!0,target:!0});var a=S(e);n=z(a,"IMG",{alt:!0,class:!0,src:!0}),a.forEach(w),this.h()},h(){u(n,"alt","Ask a Question"),u(n,"class","!m-0"),R(n.src,l="https://img.shields.io/badge/Ask%20a%20question-ffcb4c.svg?logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgLTEgMTA0IDEwNiI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiMyMzFmMjA7fS5jbHMtMntmaWxsOiNmZmY5YWU7fS5jbHMtM3tmaWxsOiMwMGFlZWY7fS5jbHMtNHtmaWxsOiMwMGE5NGY7fS5jbHMtNXtmaWxsOiNmMTVkMjI7fS5jbHMtNntmaWxsOiNlMzFiMjM7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5EaXNjb3Vyc2VfbG9nbzwvdGl0bGU+PGcgaWQ9IkxheWVyXzIiPjxnIGlkPSJMYXllcl8zIj48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik01MS44NywwQzIzLjcxLDAsMCwyMi44MywwLDUxYzAsLjkxLDAsNTIuODEsMCw1Mi44MWw1MS44Ni0uMDVjMjguMTYsMCw1MS0yMy43MSw1MS01MS44N1M4MCwwLDUxLjg3LDBaIi8+PHBhdGggY2xhc3M9ImNscy0yIiBkPSJNNTIuMzcsMTkuNzRBMzEuNjIsMzEuNjIsMCwwLDAsMjQuNTgsNjYuNDFsLTUuNzIsMTguNEwzOS40LDgwLjE3YTMxLjYxLDMxLjYxLDAsMSwwLDEzLTYwLjQzWiIvPjxwYXRoIGNsYXNzPSJjbHMtMyIgZD0iTTc3LjQ1LDMyLjEyYTMxLjYsMzEuNiwwLDAsMS0zOC4wNSw0OEwxOC44Niw4NC44MmwyMC45MS0yLjQ3QTMxLjYsMzEuNiwwLDAsMCw3Ny40NSwzMi4xMloiLz48cGF0aCBjbGFzcz0iY2xzLTQiIGQ9Ik03MS42MywyNi4yOUEzMS42LDMxLjYsMCwwLDEsMzguOCw3OEwxOC44Niw4NC44MiwzOS40LDgwLjE3QTMxLjYsMzEuNiwwLDAsMCw3MS42MywyNi4yOVoiLz48cGF0aCBjbGFzcz0iY2xzLTUiIGQ9Ik0yNi40Nyw2Ny4xMWEzMS42MSwzMS42MSwwLDAsMSw1MS0zNUEzMS42MSwzMS42MSwwLDAsMCwyNC41OCw2Ni40MWwtNS43MiwxOC40WiIvPjxwYXRoIGNsYXNzPSJjbHMtNiIgZD0iTTI0LjU4LDY2LjQxQTMxLjYxLDMxLjYxLDAsMCwxLDcxLjYzLDI2LjI5YTMxLjYxLDMxLjYxLDAsMCwwLTQ5LDM5LjYzbC0zLjc2LDE4LjlaIi8+PC9nPjwvZz48L3N2Zz4=")||u(n,"src",l),u(e,"href",s[2]),u(e,"target","_blank")},m(t,a){p(t,e,a),E(e,n)},p(t,a){a&4&&u(e,"href",t[2])},d(t){t&&w(e)}}}function dt(s){let e,n;return e=new _t({props:{options:s[0],classNames:s[1],$$slots:{alwaysVisible:[mt]},$$scope:{ctx:s}}}),{c(){y(e.$$.fragment)},l(l){P(e.$$.fragment,l)},m(l,t){A(e,l,t),n=!0},p(l,[t]){const a={};t&1&&(a.options=l[0]),t&2&&(a.classNames=l[1]),t&20&&(a.$$scope={dirty:t,ctx:l}),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){Y(e,l)}}}function ht(s,e,n){let{chapter:l}=e,{notebooks:t=[]}=e,{classNames:a=""}=e,{askForHelpUrl:o=`https://discuss.huggingface.co/t/chapter-${l}-questions`}=e;return s.$$set=i=>{"chapter"in i&&n(3,l=i.chapter),"notebooks"in i&&n(0,t=i.notebooks),"classNames"in i&&n(1,a=i.classNames),"askForHelpUrl"in i&&n(2,o=i.askForHelpUrl)},[t,a,o,l]}class Mt extends Z{constructor(e){super(),X(this,e,ht,dt,Q,{chapter:3,notebooks:0,classNames:1,askForHelpUrl:2})}}export{Mt as C}; | |
Xet Storage Details
- Size:
- 22.2 kB
- Xet hash:
- f782612f2ab85313bde172c05b864fb08edc1980db3bae5bf5b4c713c00223b0
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.