var he=Object.defineProperty,de=Object.defineProperties;var pe=Object.getOwnPropertyDescriptors;var B=Object.getOwnPropertySymbols;var ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable;var Z=(a,e,t)=>e in a?he(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,b=(a,e)=>{for(var t in e||(e={}))ee.call(e,t)&&Z(a,t,e[t]);if(B)for(var t of B(e))te.call(e,t)&&Z(a,t,e[t]);return a},W=(a,e)=>de(a,pe(e));var re=(a,e)=>{var t={};for(var s in a)ee.call(a,s)&&e.indexOf(s)<0&&(t[s]=a[s]);if(a!=null&&B)for(var s of B(a))e.indexOf(s)<0&&te.call(a,s)&&(t[s]=a[s]);return t};import{S as me,i as ge,s as ve,e as we,c as be,a as Ee,d as R,b as G,f as D,g as A,t as ye,h as $e,j as ke,k as Re,l as E,m as Le,n as x,o as y,p as U,q as $,r as Oe,u as Ae,v as F,w as P,x as C,y as T,z as j,A as q,B as V,C as z,D as Y,E as se}from"./chunks/vendor-hf-doc-builder.js";import{s as Pe,b as Te}from"./chunks/paths-hf-doc-builder.js";function Ve(a){let e,t,s;const o=[a[1]||{}];var i=a[0][0];function c(r){let n={};for(let u=0;u<o.length;u+=1)n=z(n,o[u]);return{props:n}}return i&&(e=new i(c())),{c(){e&&P(e.$$.fragment),t=E()},l(r){e&&C(e.$$.fragment,r),t=E()},m(r,n){e&&T(e,r,n),A(r,t,n),s=!0},p(r,n){const u=n&2?j(o,[q(r[1]||{})]):{};if(i!==(i=r[0][0])){if(e){x();const f=e;y(f.$$.fragment,1,0,()=>{V(f,1)}),U()}i?(e=new i(c()),P(e.$$.fragment),$(e.$$.fragment,1),T(e,t.parentNode,t)):e=null}else i&&e.$set(u)},i(r){s||(e&&$(e.$$.fragment,r),s=!0)},o(r){e&&y(e.$$.fragment,r),s=!1},d(r){r&&R(t),e&&V(e,r)}}}function Ie(a){let e,t,s;const o=[a[1]||{}];var i=a[0][0];function c(r){let n={$$slots:{default:[Ue]},$$scope:{ctx:r}};for(let u=0;u<o.length;u+=1)n=z(n,o[u]);return{props:n}}return i&&(e=new i(c(a))),{c(){e&&P(e.$$.fragment),t=E()},l(r){e&&C(e.$$.fragment,r),t=E()},m(r,n){e&&T(e,r,n),A(r,t,n),s=!0},p(r,n){const u=n&2?j(o,[q(r[1]||{})]):{};if(n&525&&(u.$$scope={dirty:n,ctx:r}),i!==(i=r[0][0])){if(e){x();const f=e;y(f.$$.fragment,1,0,()=>{V(f,1)}),U()}i?(e=new i(c(r)),P(e.$$.fragment),$(e.$$.fragment,1),T(e,t.parentNode,t)):e=null}else i&&e.$set(u)},i(r){s||(e&&$(e.$$.fragment,r),s=!0)},o(r){e&&y(e.$$.fragment,r),s=!1},d(r){r&&R(t),e&&V(e,r)}}}function De(a){let e,t,s;const o=[a[2]||{}];var i=a[0][1];function c(r){let n={};for(let u=0;u<o.length;u+=1)n=z(n,o[u]);return{props:n}}return i&&(e=new i(c())),{c(){e&&P(e.$$.fragment),t=E()},l(r){e&&C(e.$$.fragment,r),t=E()},m(r,n){e&&T(e,r,n),A(r,t,n),s=!0},p(r,n){const u=n&4?j(o,[q(r[2]||{})]):{};if(i!==(i=r[0][1])){if(e){x();const f=e;y(f.$$.fragment,1,0,()=>{V(f,1)}),U()}i?(e=new i(c()),P(e.$$.fragment),$(e.$$.fragment,1),T(e,t.parentNode,t)):e=null}else i&&e.$set(u)},i(r){s||(e&&$(e.$$.fragment,r),s=!0)},o(r){e&&y(e.$$.fragment,r),s=!1},d(r){r&&R(t),e&&V(e,r)}}}function Se(a){let e,t,s;const o=[a[2]||{}];var i=a[0][1];function c(r){let n={$$slots:{default:[xe]},$$scope:{ctx:r}};for(let u=0;u<o.length;u+=1)n=z(n,o[u]);return{props:n}}return i&&(e=new i(c(a))),{c(){e&&P(e.$$.fragment),t=E()},l(r){e&&C(e.$$.fragment,r),t=E()},m(r,n){e&&T(e,r,n),A(r,t,n),s=!0},p(r,n){const u=n&4?j(o,[q(r[2]||{})]):{};if(n&521&&(u.$$scope={dirty:n,ctx:r}),i!==(i=r[0][1])){if(e){x();const f=e;y(f.$$.fragment,1,0,()=>{V(f,1)}),U()}i?(e=new i(c(r)),P(e.$$.fragment),$(e.$$.fragment,1),T(e,t.parentNode,t)):e=null}else i&&e.$set(u)},i(r){s||(e&&$(e.$$.fragment,r),s=!0)},o(r){e&&y(e.$$.fragment,r),s=!1},d(r){r&&R(t),e&&V(e,r)}}}function xe(a){let e,t,s;const o=[a[3]||{}];var i=a[0][2];function c(r){let n={};for(let u=0;u<o.length;u+=1)n=z(n,o[u]);return{props:n}}return i&&(e=new i(c())),{c(){e&&P(e.$$.fragment),t=E()},l(r){e&&C(e.$$.fragment,r),t=E()},m(r,n){e&&T(e,r,n),A(r,t,n),s=!0},p(r,n){const u=n&8?j(o,[q(r[3]||{})]):{};if(i!==(i=r[0][2])){if(e){x();const f=e;y(f.$$.fragment,1,0,()=>{V(f,1)}),U()}i?(e=new i(c()),P(e.$$.fragment),$(e.$$.fragment,1),T(e,t.parentNode,t)):e=null}else i&&e.$set(u)},i(r){s||(e&&$(e.$$.fragment,r),s=!0)},o(r){e&&y(e.$$.fragment,r),s=!1},d(r){r&&R(t),e&&V(e,r)}}}function Ue(a){let e,t,s,o;const i=[Se,De],c=[];function r(n,u){return n[0][2]?0:1}return e=r(a),t=c[e]=i[e](a),{c(){t.c(),s=E()},l(n){t.l(n),s=E()},m(n,u){c[e].m(n,u),A(n,s,u),o=!0},p(n,u){let f=e;e=r(n),e===f?c[e].p(n,u):(x(),y(c[f],1,1,()=>{c[f]=null}),U(),t=c[e],t?t.p(n,u):(t=c[e]=i[e](n),t.c()),$(t,1),t.m(s.parentNode,s))},i(n){o||($(t),o=!0)},o(n){y(t),o=!1},d(n){c[e].d(n),n&&R(s)}}}function ie(a){let e,t=a[5]&&ne(a);return{c(){e=we("div"),t&&t.c(),this.h()},l(s){e=be(s,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var o=Ee(e);t&&t.l(o),o.forEach(R),this.h()},h(){G(e,"id","svelte-announcer"),G(e,"aria-live","assertive"),G(e,"aria-atomic","true"),D(e,"position","absolute"),D(e,"left","0"),D(e,"top","0"),D(e,"clip","rect(0 0 0 0)"),D(e,"clip-path","inset(50%)"),D(e,"overflow","hidden"),D(e,"white-space","nowrap"),D(e,"width","1px"),D(e,"height","1px")},m(s,o){A(s,e,o),t&&t.m(e,null)},p(s,o){s[5]?t?t.p(s,o):(t=ne(s),t.c(),t.m(e,null)):t&&(t.d(1),t=null)},d(s){s&&R(e),t&&t.d()}}}function ne(a){let e;return{c(){e=ye(a[6])},l(t){e=$e(t,a[6])},m(t,s){A(t,e,s)},p(t,s){s&64&&ke(e,t[6])},d(t){t&&R(e)}}}function Ne(a){let e,t,s,o,i;const c=[Ie,Ve],r=[];function n(f,h){return f[0][1]?0:1}e=n(a),t=r[e]=c[e](a);let u=a[4]&&ie(a);return{c(){t.c(),s=Re(),u&&u.c(),o=E()},l(f){t.l(f),s=Le(f),u&&u.l(f),o=E()},m(f,h){r[e].m(f,h),A(f,s,h),u&&u.m(f,h),A(f,o,h),i=!0},p(f,[h]){let _=e;e=n(f),e===_?r[e].p(f,h):(x(),y(r[_],1,1,()=>{r[_]=null}),U(),t=r[e],t?t.p(f,h):(t=r[e]=c[e](f),t.c()),$(t,1),t.m(s.parentNode,s)),f[4]?u?u.p(f,h):(u=ie(f),u.c(),u.m(o.parentNode,o)):u&&(u.d(1),u=null)},i(f){i||($(t),i=!0)},o(f){y(t),i=!1},d(f){r[e].d(f),f&&R(s),u&&u.d(f),f&&R(o)}}}function Ce(a,e,t){let{stores:s}=e,{page:o}=e,{components:i}=e,{props_0:c=null}=e,{props_1:r=null}=e,{props_2:n=null}=e;Oe("__svelte__",s),Ae(s.page.notify);let u=!1,f=!1,h=null;return F(()=>{const _=s.page.subscribe(()=>{u&&(t(5,f=!0),t(6,h=document.title||"untitled page"))});return t(4,u=!0),_}),a.$$set=_=>{"stores"in _&&t(7,s=_.stores),"page"in _&&t(8,o=_.page),"components"in _&&t(0,i=_.components),"props_0"in _&&t(1,c=_.props_0),"props_1"in _&&t(2,r=_.props_1),"props_2"in _&&t(3,n=_.props_2)},a.$$.update=()=>{a.$$.dirty&384&&s.page.set(o)},[i,c,r,n,u,f,h,s,o]}class je extends me{constructor(e){super();ge(this,e,Ce,Ne,ve,{stores:7,page:8,components:0,props_0:1,props_1:2,props_2:3})}}const qe="modulepreload",ae={},ze="/docs/course/pr_264/th/_app/",d=function(e,t){return!t||t.length===0?e():Promise.all(t.map(s=>{if(s=`${ze}${s}`,s in ae)return;ae[s]=!0;const o=s.endsWith(".css"),i=o?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${i}`))return;const c=document.createElement("link");if(c.rel=o?"stylesheet":qe,o||(c.as="script",c.crossOrigin=""),c.href=s,document.head.appendChild(c),o)return new Promise((r,n)=>{c.addEventListener("load",r),c.addEventListener("error",n)})})).then(()=>e())},l=[()=>d(()=>import("./pages/__layout.svelte-hf-doc-builder.js"),["pages/__layout.svelte-hf-doc-builder.js","assets/pages/__layout.svelte-hf-doc-builder.css","chunks/vendor-hf-doc-builder.js","chunks/paths-hf-doc-builder.js"]),()=>d(()=>import("./error.svelte-hf-doc-builder.js"),["error.svelte-hf-doc-builder.js","chunks/vendor-hf-doc-builder.js"]),()=>d(()=>import("./pages/chapter0/1.mdx-hf-doc-builder.js"),["pages/chapter0/1.mdx-hf-doc-builder.js","chunks/vendor-hf-doc-builder.js","chunks/IconCopyLink-hf-doc-builder.js","chunks/CodeBlock-hf-doc-builder.js"]),()=>d(()=>import("./pages/chapter1/10.mdx-hf-doc-builder.js"),["pages/chapter1/10.mdx-hf-doc-builder.js","chunks/vendor-hf-doc-builder.js","chunks/IconCopyLink-hf-doc-builder.js","chunks/CodeBlock-hf-doc-builder.js","chunks/Question-hf-doc-builder.js"]),()=>d(()=>import("./pages/chapter1/1.mdx-hf-doc-builder.js"),["pages/chapter1/1.mdx-hf-doc-builder.js","chunks/vendor-hf-doc-builder.js","chunks/Youtube-hf-doc-builder.js"]),()=>d(()=>import("./pages/chapter1/2.mdx-hf-doc-builder.js"),["pages/chapter1/2.mdx-hf-doc-builder.js","chunks/vendor-hf-doc-builder.js","chunks/IconCopyLink-hf-doc-builder.js"]),()=>d(()=>import("./pages/chapter1/3.mdx-hf-doc-builder.js"),["pages/chapter1/3.mdx-hf-doc-builder.js","chunks/vendor-hf-doc-builder.js","chunks/Tip-hf-doc-builder.js","chunks/Youtube-hf-doc-builder.js","chunks/IconCopyLink-hf-doc-builder.js","chunks/CodeBlock-hf-doc-builder.js","chunks/DocNotebookDropdown-hf-doc-builder.js"]),()=>d(()=>import("./pages/chapter1/4.mdx-hf-doc-builder.js"),["pages/chapter1/4.mdx-hf-doc-builder.js","chunks/vendor-hf-doc-builder.js","chunks/Youtube-hf-doc-builder.js","chunks/IconCopyLink-hf-doc-builder.js"]),()=>d(()=>import("./pages/chapter1/5.mdx-hf-doc-builder.js"),["pages/chapter1/5.mdx-hf-doc-builder.js","chunks/vendor-hf-doc-builder.js","chunks/Youtube-hf-doc-builder.js","chunks/IconCopyLink-hf-doc-builder.js"]),()=>d(()=>import("./pages/chapter1/6.mdx-hf-doc-builder.js"),["pages/chapter1/6.mdx-hf-doc-builder.js","chunks/vendor-hf-doc-builder.js","chunks/Youtube-hf-doc-builder.js","chunks/IconCopyLink-hf-doc-builder.js"]),()=>d(()=>import("./pages/chapter1/7.mdx-hf-doc-builder.js"),["pages/chapter1/7.mdx-hf-doc-builder.js","chunks/vendor-hf-doc-builder.js","chunks/Youtube-hf-doc-builder.js","chunks/IconCopyLink-hf-doc-builder.js"]),()=>d(()=>import("./pages/chapter1/8.mdx-hf-doc-builder.js"),["pages/chapter1/8.mdx-hf-doc-builder.js","chunks/vendor-hf-doc-builder.js","chunks/CodeBlock-hf-doc-builder.js","chunks/DocNotebookDropdown-hf-doc-builder.js"]),()=>d(()=>import("./pages/chapter1/9.mdx-hf-doc-builder.js"),["pages/chapter1/9.mdx-hf-doc-builder.js","chunks/vendor-hf-doc-builder.js"]),()=>d(()=>import("./pages/chapter2/1.mdx-hf-doc-builder.js"),["pages/chapter2/1.mdx-hf-doc-builder.js","chunks/vendor-hf-doc-builder.js","chunks/Tip-hf-doc-builder.js"]),()=>d(()=>import("./pages/chapter2/2.mdx-hf-doc-builder.js"),["pages/chapter2/2.mdx-hf-doc-builder.js","chunks/vendor-hf-doc-builder.js","chunks/Tip-hf-doc-builder.js","chunks/Youtube-hf-doc-builder.js","chunks/IconCopyLink-hf-doc-builder.js","chunks/CodeBlock-hf-doc-builder.js","chunks/DocNotebookDropdown-hf-doc-builder.js","chunks/FrameworkSwitchCourse-hf-doc-builder.js"]),()=>d(()=>import("./pages/chapter2/3.mdx-hf-doc-builder.js"),["pages/chapter2/3.mdx-hf-doc-builder.js","chunks/vendor-hf-doc-builder.js","chunks/Youtube-hf-doc-builder.js","chunks/IconCopyLink-hf-doc-builder.js","chunks/CodeBlock-hf-doc-builder.js","chunks/DocNotebookDropdown-hf-doc-builder.js","chunks/FrameworkSwitchCourse-hf-doc-builder.js"]),()=>d(()=>import("./pages/chapter2/4.mdx-hf-doc-builder.js"),["pages/chapter2/4.mdx-hf-doc-builder.js","chunks/vendor-hf-doc-builder.js","chunks/Tip-hf-doc-builder.js","chunks/Youtube-hf-doc-builder.js","chunks/IconCopyLink-hf-doc-builder.js","chunks/CodeBlock-hf-doc-builder.js","chunks/DocNotebookDropdown-hf-doc-builder.js","chunks/FrameworkSwitchCourse-hf-doc-builder.js"]),()=>d(()=>import("./pages/chapter2/5.mdx-hf-doc-builder.js"),["pages/chapter2/5.mdx-hf-doc-builder.js","chunks/vendor-hf-doc-builder.js","chunks/Tip-hf-doc-builder.js","chunks/Youtube-hf-doc-builder.js","chunks/IconCopyLink-hf-doc-builder.js","chunks/CodeBlock-hf-doc-builder.js","chunks/DocNotebookDropdown-hf-doc-builder.js","chunks/FrameworkSwitchCourse-hf-doc-builder.js"]),()=>d(()=>import("./pages/chapter2/6.mdx-hf-doc-builder.js"),["pages/chapter2/6.mdx-hf-doc-builder.js","chunks/vendor-hf-doc-builder.js","chunks/IconCopyLink-hf-doc-builder.js","chunks/CodeBlock-hf-doc-builder.js","chunks/DocNotebookDropdown-hf-doc-builder.js","chunks/FrameworkSwitchCourse-hf-doc-builder.js"]),()=>d(()=>import("./pages/chapter2/7.mdx-hf-doc-builder.js"),["pages/chapter2/7.mdx-hf-doc-builder.js","chunks/vendor-hf-doc-builder.js"]),()=>d(()=>import("./pages/chapter2/8.mdx-hf-doc-builder.js"),["pages/chapter2/8.mdx-hf-doc-builder.js","chunks/vendor-hf-doc-builder.js","chunks/IconCopyLink-hf-doc-builder.js","chunks/CodeBlock-hf-doc-builder.js","chunks/Question-hf-doc-builder.js","chunks/FrameworkSwitchCourse-hf-doc-builder.js"]),()=>d(()=>import("./pages/chapter3/3_tf.mdx-hf-doc-builder.js"),["pages/chapter3/3_tf.mdx-hf-doc-builder.js","chunks/vendor-hf-doc-builder.js","chunks/Tip-hf-doc-builder.js","chunks/Youtube-hf-doc-builder.js","chunks/IconCopyLink-hf-doc-builder.js","chunks/CodeBlock-hf-doc-builder.js","chunks/DocNotebookDropdown-hf-doc-builder.js","chunks/FrameworkSwitchCourse-hf-doc-builder.js"]),()=>d(()=>import("./pages/chapter3/1.mdx-hf-doc-builder.js"),["pages/chapter3/1.mdx-hf-doc-builder.js","chunks/vendor-hf-doc-builder.js","chunks/FrameworkSwitchCourse-hf-doc-builder.js"]),()=>d(()=>import("./pages/chapter3/2.mdx-hf-doc-builder.js"),["pages/chapter3/2.mdx-hf-doc-builder.js","chunks/vendor-hf-doc-builder.js","chunks/Tip-hf-doc-builder.js","chunks/Youtube-hf-doc-builder.js","chunks/IconCopyLink-hf-doc-builder.js","chunks/CodeBlock-hf-doc-builder.js","chunks/DocNotebookDropdown-hf-doc-builder.js","chunks/FrameworkSwitchCourse-hf-doc-builder.js"]),()=>d(()=>import("./pages/chapter3/3.mdx-hf-doc-builder.js"),["pages/chapter3/3.mdx-hf-doc-builder.js","chunks/vendor-hf-doc-builder.js","chunks/Tip-hf-doc-builder.js","chunks/Youtube-hf-doc-builder.js","chunks/IconCopyLink-hf-doc-builder.js","chunks/CodeBlock-hf-doc-builder.js","chunks/DocNotebookDropdown-hf-doc-builder.js","chunks/FrameworkSwitchCourse-hf-doc-builder.js"]),()=>d(()=>import("./pages/chapter3/4.mdx-hf-doc-builder.js"),["pages/chapter3/4.mdx-hf-doc-builder.js","chunks/vendor-hf-doc-builder.js","chunks/Tip-hf-doc-builder.js","chunks/Youtube-hf-doc-builder.js","chunks/IconCopyLink-hf-doc-builder.js","chunks/CodeBlock-hf-doc-builder.js","chunks/DocNotebookDropdown-hf-doc-builder.js"]),()=>d(()=>import("./pages/chapter3/5.mdx-hf-doc-builder.js"),["pages/chapter3/5.mdx-hf-doc-builder.js","chunks/vendor-hf-doc-builder.js","chunks/IconCopyLink-hf-doc-builder.js","chunks/FrameworkSwitchCourse-hf-doc-builder.js"]),()=>d(()=>import("./pages/chapter3/6.mdx-hf-doc-builder.js"),["pages/chapter3/6.mdx-hf-doc-builder.js","chunks/vendor-hf-doc-builder.js","chunks/IconCopyLink-hf-doc-builder.js","chunks/Question-hf-doc-builder.js","chunks/FrameworkSwitchCourse-hf-doc-builder.js"]),()=>d(()=>import("./pages/chapter4/1.mdx-hf-doc-builder.js"),["pages/chapter4/1.mdx-hf-doc-builder.js","chunks/vendor-hf-doc-builder.js","chunks/Youtube-hf-doc-builder.js","chunks/IconCopyLink-hf-doc-builder.js"]),()=>d(()=>import("./pages/chapter4/2.mdx-hf-doc-builder.js"),["pages/chapter4/2.mdx-hf-doc-builder.js","chunks/vendor-hf-doc-builder.js","chunks/Tip-hf-doc-builder.js","chunks/IconCopyLink-hf-doc-builder.js","chunks/CodeBlock-hf-doc-builder.js","chunks/DocNotebookDropdown-hf-doc-builder.js","chunks/FrameworkSwitchCourse-hf-doc-builder.js"]),()=>d(()=>import("./pages/chapter4/3.mdx-hf-doc-builder.js"),["pages/chapter4/3.mdx-hf-doc-builder.js","chunks/vendor-hf-doc-builder.js","chunks/Tip-hf-doc-builder.js","chunks/Youtube-hf-doc-builder.js","chunks/IconCopyLink-hf-doc-builder.js","chunks/CodeBlock-hf-doc-builder.js","chunks/DocNotebookDropdown-hf-doc-builder.js","chunks/FrameworkSwitchCourse-hf-doc-builder.js"]),()=>d(()=>import("./pages/chapter4/4.mdx-hf-doc-builder.js"),["pages/chapter4/4.mdx-hf-doc-builder.js","chunks/vendor-hf-doc-builder.js","chunks/IconCopyLink-hf-doc-builder.js","chunks/CodeBlock-hf-doc-builder.js"]),()=>d(()=>import("./pages/chapter4/5.mdx-hf-doc-builder.js"),["pages/chapter4/5.mdx-hf-doc-builder.js","chunks/vendor-hf-doc-builder.js","chunks/IconCopyLink-hf-doc-builder.js"]),()=>d(()=>import("./pages/chapter4/6.mdx-hf-doc-builder.js"),["pages/chapter4/6.mdx-hf-doc-builder.js","chunks/vendor-hf-doc-builder.js","chunks/IconCopyLink-hf-doc-builder.js","chunks/Question-hf-doc-builder.js","chunks/FrameworkSwitchCourse-hf-doc-builder.js"]),()=>d(()=>import("./pages/chapter6/1.mdx-hf-doc-builder.js"),["pages/chapter6/1.mdx-hf-doc-builder.js","chunks/vendor-hf-doc-builder.js"]),()=>d(()=>import("./pages/chapter6/2.mdx-hf-doc-builder.js"),["pages/chapter6/2.mdx-hf-doc-builder.js","chunks/vendor-hf-doc-builder.js","chunks/Tip-hf-doc-builder.js","chunks/Youtube-hf-doc-builder.js","chunks/IconCopyLink-hf-doc-builder.js","chunks/CodeBlock-hf-doc-builder.js","chunks/DocNotebookDropdown-hf-doc-builder.js"]),()=>d(()=>import("./pages/chapter6/3.mdx-hf-doc-builder.js"),["pages/chapter6/3.mdx-hf-doc-builder.js","chunks/vendor-hf-doc-builder.js","chunks/Tip-hf-doc-builder.js","chunks/Youtube-hf-doc-builder.js","chunks/IconCopyLink-hf-doc-builder.js","chunks/CodeBlock-hf-doc-builder.js","chunks/DocNotebookDropdown-hf-doc-builder.js","chunks/FrameworkSwitchCourse-hf-doc-builder.js"])],Je=[[/^\/chapter0\/1\/?$/,[l[0],l[2]],[l[1]]],[/^\/chapter1\/10\/?$/,[l[0],l[3]],[l[1]]],[/^\/chapter1\/1\/?$/,[l[0],l[4]],[l[1]]],[/^\/chapter1\/2\/?$/,[l[0],l[5]],[l[1]]],[/^\/chapter1\/3\/?$/,[l[0],l[6]],[l[1]]],[/^\/chapter1\/4\/?$/,[l[0],l[7]],[l[1]]],[/^\/chapter1\/5\/?$/,[l[0],l[8]],[l[1]]],[/^\/chapter1\/6\/?$/,[l[0],l[9]],[l[1]]],[/^\/chapter1\/7\/?$/,[l[0],l[10]],[l[1]]],[/^\/chapter1\/8\/?$/,[l[0],l[11]],[l[1]]],[/^\/chapter1\/9\/?$/,[l[0],l[12]],[l[1]]],[/^\/chapter2\/1\/?$/,[l[0],l[13]],[l[1]]],[/^\/chapter2\/2\/?$/,[l[0],l[14]],[l[1]]],[/^\/chapter2\/3\/?$/,[l[0],l[15]],[l[1]]],[/^\/chapter2\/4\/?$/,[l[0],l[16]],[l[1]]],[/^\/chapter2\/5\/?$/,[l[0],l[17]],[l[1]]],[/^\/chapter2\/6\/?$/,[l[0],l[18]],[l[1]]],[/^\/chapter2\/7\/?$/,[l[0],l[19]],[l[1]]],[/^\/chapter2\/8\/?$/,[l[0],l[20]],[l[1]]],[/^\/chapter3\/3_tf\/?$/,[l[0],l[21]],[l[1]]],[/^\/chapter3\/1\/?$/,[l[0],l[22]],[l[1]]],[/^\/chapter3\/2\/?$/,[l[0],l[23]],[l[1]]],[/^\/chapter3\/3\/?$/,[l[0],l[24]],[l[1]]],[/^\/chapter3\/4\/?$/,[l[0],l[25]],[l[1]]],[/^\/chapter3\/5\/?$/,[l[0],l[26]],[l[1]]],[/^\/chapter3\/6\/?$/,[l[0],l[27]],[l[1]]],[/^\/chapter4\/1\/?$/,[l[0],l[28]],[l[1]]],[/^\/chapter4\/2\/?$/,[l[0],l[29]],[l[1]]],[/^\/chapter4\/3\/?$/,[l[0],l[30]],[l[1]]],[/^\/chapter4\/4\/?$/,[l[0],l[31]],[l[1]]],[/^\/chapter4\/5\/?$/,[l[0],l[32]],[l[1]]],[/^\/chapter4\/6\/?$/,[l[0],l[33]],[l[1]]],[/^\/chapter6\/1\/?$/,[l[0],l[34]],[l[1]]],[/^\/chapter6\/2\/?$/,[l[0],l[35]],[l[1]]],[/^\/chapter6\/3\/?$/,[l[0],l[36]],[l[1]]]],Ke=[l[0](),l[1]()];function Be(a){let e=a.baseURI;if(!e){const t=a.getElementsByTagName("base");e=t.length?t[0].href:a.URL}return e}function We(a,e){return a==="/"||e==="ignore"?a:e==="never"?a.endsWith("/")?a.slice(0,-1):a:e==="always"&&/\/[^./]+$/.test(a)?a+"/":a}const _e="sveltekit:scroll";let N={};try{N=JSON.parse(sessionStorage[_e])}catch{}function M(a){N[a]=X()}function X(){return{x:pageXOffset,y:pageYOffset}}function oe(a){return a.composedPath().find(t=>t instanceof Node&&t.nodeName.toUpperCase()==="A")}function le(a){return a instanceof SVGAElement?new URL(a.href.baseVal,document.baseURI):new URL(a.href)}class Ye{constructor({base:e,routes:t,trailing_slash:s,renderer:o}){var c,r;this.base=e,this.routes=t,this.trailing_slash=s,this.navigating=0,this.renderer=o,o.router=this,this.enabled=!0,this.initialized=!1,document.body.setAttribute("tabindex","-1"),this.current_history_index=(r=(c=history.state)==null?void 0:c["sveltekit:index"])!=null?r:0,this.current_history_index===0&&history.replaceState(W(b({},history.state),{"sveltekit:index":0}),"",location.href);const i=N[this.current_history_index];i&&scrollTo(i.x,i.y),this.hash_navigating=!1,this.callbacks={before_navigate:[],after_navigate:[]}}init_listeners(){history.scrollRestoration="manual",addEventListener("beforeunload",o=>{let i=!1;const c={from:this.renderer.current.url,to:null,cancel:()=>i=!0};this.callbacks.before_navigate.forEach(r=>r(c)),i?(o.preventDefault(),o.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{if(document.visibilityState==="hidden"){M(this.current_history_index);try{sessionStorage[_e]=JSON.stringify(N)}catch{}}});const e=o=>{const i=oe(o);i&&i.href&&i.hasAttribute("sveltekit:prefetch")&&this.prefetch(le(i))};let t;const s=o=>{clearTimeout(t),t=setTimeout(()=>{var i;(i=o.target)==null||i.dispatchEvent(new CustomEvent("sveltekit:trigger_prefetch",{bubbles:!0}))},20)};addEventListener("touchstart",e),addEventListener("mousemove",s),addEventListener("sveltekit:trigger_prefetch",e),addEventListener("click",o=>{if(!this.enabled||o.button||o.which!==1||o.metaKey||o.ctrlKey||o.shiftKey||o.altKey||o.defaultPrevented)return;const i=oe(o);if(!i||!i.href)return;const c=i instanceof SVGAElement,r=le(i);if(r.toString()===location.href){location.hash||o.preventDefault();return}if(!c&&r.origin==="null")return;const u=(i.getAttribute("rel")||"").split(/\s+/);if(i.hasAttribute("download")||u&&u.includes("external")||(c?i.target.baseVal:i.target))return;const[f,h]=r.href.split("#");if(h!==void 0&&f===location.href.split("#")[0]){this.hash_navigating=!0,M(this.current_history_index),this.renderer.update_page_store(new URL(r.href));return}this._navigate({url:r,scroll:i.hasAttribute("sveltekit:noscroll")?X():null,keepfocus:!1,chain:[],details:{state:{},replaceState:!1},accepted:()=>o.preventDefault(),blocked:()=>o.preventDefault()})}),addEventListener("popstate",o=>{if(o.state&&this.enabled){if(o.state["sveltekit:index"]===this.current_history_index)return;this._navigate({url:new URL(location.href),scroll:N[o.state["sveltekit:index"]],keepfocus:!1,chain:[],details:null,accepted:()=>{this.current_history_index=o.state["sveltekit:index"]},blocked:()=>{const i=this.current_history_index-o.state["sveltekit:index"];history.go(i)}})}}),addEventListener("hashchange",()=>{this.hash_navigating&&(this.hash_navigating=!1,history.replaceState(W(b({},history.state),{"sveltekit:index":++this.current_history_index}),"",location.href))}),this.initialized=!0}owns(e){return e.origin===location.origin&&e.pathname.startsWith(this.base)}parse(e){if(this.owns(e)){const t=decodeURI(e.pathname.slice(this.base.length)||"/");return{id:e.pathname+e.search,routes:this.routes.filter(([s])=>s.test(t)),url:e,path:t,initial:!this.initialized}}}async goto(e,{noscroll:t=!1,replaceState:s=!1,keepfocus:o=!1,state:i={}}={},c){const r=new URL(e,Be(document));return this.enabled?this._navigate({url:r,scroll:t?X():null,keepfocus:o,chain:c,details:{state:i,replaceState:s},accepted:()=>{},blocked:()=>{}}):(location.href=r.href,new Promise(()=>{}))}enable(){this.enabled=!0}disable(){this.enabled=!1}async prefetch(e){const t=this.parse(e);if(!t)throw new Error("Attempted to prefetch a URL that does not belong to this app");return this.renderer.load(t)}after_navigate(e){F(()=>(this.callbacks.after_navigate.push(e),()=>{const t=this.callbacks.after_navigate.indexOf(e);this.callbacks.after_navigate.splice(t,1)}))}before_navigate(e){F(()=>(this.callbacks.before_navigate.push(e),()=>{const t=this.callbacks.before_navigate.indexOf(e);this.callbacks.before_navigate.splice(t,1)}))}async _navigate({url:e,scroll:t,keepfocus:s,chain:o,details:i,accepted:c,blocked:r}){const n=this.renderer.current.url;let u=!1;const f={from:n,to:e,cancel:()=>u=!0};if(this.callbacks.before_navigate.forEach(m=>m(f)),u){r();return}const h=this.parse(e);if(!h)return location.href=e.href,new Promise(()=>{});M(this.current_history_index),c(),this.navigating++;const _=We(e.pathname,this.trailing_slash);h.url=new URL(e.origin+_+e.search+e.hash);const p=this.navigating_token={};if(await this.renderer.handle_navigation(h,o,!1,{scroll:t,keepfocus:s}),this.navigating--,this.navigating_token===p){if(!this.navigating){const m={from:n,to:e};this.callbacks.after_navigate.forEach(I=>I(m))}if(i){const m=i.replaceState?0:1;i.state["sveltekit:index"]=this.current_history_index+=m,history[i.replaceState?"replaceState":"pushState"](i.state,"",h.url)}}}}function ce(a){return a instanceof Error||a&&a.name&&a.message?a:new Error(JSON.stringify(a))}function Ge(a){let e=5381,t=a.length;if(typeof a=="string")for(;t;)e=e*33^a.charCodeAt(--t);else for(;t;)e=e*33^a[--t];return(e>>>0).toString(36)}function ue(a){const e=a.status&&a.status>=400&&a.status<=599&&!a.redirect;if(a.error||e){const t=a.status;if(!a.error&&e)return{status:t||500,error:new Error};const s=typeof a.error=="string"?new Error(a.error):a.error;return s instanceof Error?!t||t<400||t>599?(console.warn('"error" returned from load() without a valid status code \u2014 defaulting to 500'),{status:500,error:s}):{status:t,error:s}:{status:500,error:new Error(`"error" property returned from load() must be a string or instance of Error, received type "${typeof s}"`)}}if(a.redirect){if(!a.status||Math.floor(a.status/100)!==3)return{status:500,error:new Error('"redirect" property returned from load() must be accompanied by a 3xx status code')};if(typeof a.redirect!="string")return{status:500,error:new Error('"redirect" property returned from load() must be a string')}}if(a.context)throw new Error('You are returning "context" from a load function. "context" was renamed to "stuff", please adjust your code accordingly.');return a}function fe(a){const e=Y(a);let t=!0;function s(){t=!0,e.update(c=>c)}function o(c){t=!1,e.set(c)}function i(c){let r;return e.subscribe(n=>{(r===void 0||t&&n!==r)&&c(r=n)})}return{notify:s,set:o,subscribe:i}}function Me(){const{set:a,subscribe:e}=Y(!1),t="1655984076502";let s;async function o(){clearTimeout(s);const c=await fetch(`${Te}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(c.ok){const{version:r}=await c.json(),n=r!==t;return n&&(a(!0),clearTimeout(s)),n}else throw new Error(`Version check failed: ${c.status}`)}return{subscribe:e,check:o}}function Fe(a,e){const t=typeof a=="string"?a:a.url;let s=`script[data-type="svelte-data"][data-url=${JSON.stringify(t)}]`;e&&typeof e.body=="string"&&(s+=`[data-body="${Ge(e.body)}"]`);const o=document.querySelector(s);if(o&&o.textContent){const i=JSON.parse(o.textContent),{body:c}=i,r=re(i,["body"]);return Promise.resolve(new Response(c,r))}return fetch(a,e)}class Xe{constructor({Root:e,fallback:t,target:s,session:o}){this.Root=e,this.fallback=t,this.router,this.target=s,this.started=!1,this.session_id=1,this.invalid=new Set,this.invalidating=null,this.autoscroll=!0,this.updating=!1,this.current={url:null,session_id:0,branch:[]},this.cache=new Map,this.loading={id:null,promise:null},this.stores={url:fe({}),page:fe({}),navigating:Y(null),session:Y(o),updated:Me()},this.$session=null,this.root=null;let i=!1;this.stores.session.subscribe(async c=>{if(this.$session=c,!i||!this.router)return;this.session_id+=1;const r=this.router.parse(new URL(location.href));r&&this.update(r,[],!0)}),i=!0}disable_scroll_handling(){(this.updating||!this.started)&&(this.autoscroll=!1)}async start({status:e,error:t,nodes:s,params:o}){const i=new URL(location.href),c=[];let r={},n,u;try{for(let f=0;f<s.length;f+=1){const h=f===s.length-1;let _;if(h){const m=document.querySelector('[data-type="svelte-props"]');m&&(_=JSON.parse(m.textContent))}const p=await this._load_node({module:await s[f],url:i,params:o,stuff:r,status:h?e:void 0,error:h?t:void 0,props:_});if(_&&(p.uses.dependencies.add(i.href),p.uses.url=!0),c.push(p),p&&p.loaded)if(p.loaded.error){if(t)throw p.loaded.error;u={status:p.loaded.status,error:p.loaded.error,url:i}}else p.loaded.stuff&&(r=b(b({},r),p.loaded.stuff))}n=u?await this._load_error(u):await this._get_navigation_result_from_branch({url:i,params:o,stuff:r,branch:c,status:e,error:t})}catch(f){if(t)throw f;n=await this._load_error({status:500,error:ce(f),url:i})}if(n.redirect){location.href=new URL(n.redirect,location.href).href;return}this._init(n)}async handle_navigation(e,t,s,o){this.started&&this.stores.navigating.set({from:this.current.url,to:e.url}),await this.update(e,t,s,o)}async update(e,t,s,o){var n,u,f;const i=this.token={};let c=await this._get_navigation_result(e,s);if(!c){location.href=e.url.href;return}if(i!==this.token)return;if(this.invalid.clear(),c.redirect)if(t.length>10||t.includes(e.url.pathname))c=await this._load_error({status:500,error:new Error("Redirect loop"),url:e.url});else{this.router?this.router.goto(new URL(c.redirect,e.url).href,{},[...t,e.url.pathname]):location.href=new URL(c.redirect,location.href).href;return}else if(((u=(n=c.props)==null?void 0:n.page)==null?void 0:u.status)>=400&&await this.stores.updated.check()){location.href=e.url.href;return}if(this.updating=!0,this.started?(this.current=c.state,this.root.$set(c.props),this.stores.navigating.set(null)):this._init(c),o){const{scroll:h,keepfocus:_}=o;if(_||((f=getSelection())==null||f.removeAllRanges(),document.body.focus()),await se(),this.autoscroll){const p=e.url.hash&&document.getElementById(e.url.hash.slice(1));h?scrollTo(h.x,h.y):p?p.scrollIntoView():scrollTo(0,0)}}else await se();if(this.loading.promise=null,this.loading.id=null,this.autoscroll=!0,this.updating=!1,c.props.page&&(this.page=c.props.page),!this.router)return;const r=c.state.branch[c.state.branch.length-1];r&&r.module.router===!1?this.router.disable():this.router.enable()}load(e){return this.loading.promise=this._get_navigation_result(e,!1),this.loading.id=e.id,this.loading.promise}invalidate(e){return this.invalid.add(e),this.invalidating||(this.invalidating=Promise.resolve().then(async()=>{const t=this.router&&this.router.parse(new URL(location.href));t&&await this.update(t,[],!0),this.invalidating=null})),this.invalidating}update_page_store(e){this.stores.page.set(W(b({},this.page),{url:e})),this.stores.page.notify()}_init(e){this.current=e.state;const t=document.querySelector("style[data-svelte]");if(t&&t.remove(),this.page=e.props.page,this.root=new this.Root({target:this.target,props:b({stores:this.stores},e.props),hydrate:!0}),this.started=!0,this.router){const s={from:null,to:new URL(location.href)};this.router.callbacks.after_navigate.forEach(o=>o(s))}}async _get_navigation_result(e,t){if(this.loading.id===e.id&&this.loading.promise)return this.loading.promise;for(let s=0;s<e.routes.length;s+=1){const o=e.routes[s];let i=s+1;for(;i<e.routes.length;){const r=e.routes[i];if(r[0].toString()===o[0].toString())r[1].forEach(n=>n()),i+=1;else break}const c=await this._load({route:o,info:e},t);if(c)return c}if(e.initial)return await this._load_error({status:404,error:new Error(`Not found: ${e.url.pathname}`),url:e.url})}async _get_navigation_result_from_branch({url:e,params:t,stuff:s,branch:o,status:i,error:c}){const r=o.filter(Boolean),n=r.find(_=>_.loaded&&_.loaded.redirect),u={redirect:n&&n.loaded?n.loaded.redirect:void 0,state:{url:e,params:t,branch:o,session_id:this.session_id},props:{components:r.map(_=>_.module.default)}};for(let _=0;_<r.length;_+=1){const p=r[_].loaded;u.props[`props_${_}`]=p?await p.props:null}if(!this.current.url||e.href!==this.current.url.href){u.props.page={url:e,params:t,status:i,error:c,stuff:s};const _=(p,m)=>{Object.defineProperty(u.props.page,p,{get:()=>{throw new Error(`$page.${p} has been replaced by $page.url.${m}`)}})};_("origin","origin"),_("path","pathname"),_("query","searchParams")}const f=r[r.length-1],h=f.loaded&&f.loaded.maxage;if(h){const _=e.pathname+e.search;let p=!1;const m=()=>{this.cache.get(_)===u&&this.cache.delete(_),L(),clearTimeout(I)},I=setTimeout(m,h*1e3),L=this.stores.session.subscribe(()=>{p&&m()});p=!0,this.cache.set(_,u)}return u}async _load_node({status:e,error:t,module:s,url:o,params:i,stuff:c,props:r}){const n={module:s,uses:{params:new Set,url:!1,session:!1,stuff:!1,dependencies:new Set},loaded:null,stuff:c};r&&n.uses.dependencies.add(o.href);const u={};for(const h in i)Object.defineProperty(u,h,{get(){return n.uses.params.add(h),i[h]},enumerable:!0});const f=this.$session;if(s.load){const{started:h}=this,_={params:u,props:r||{},get url(){return n.uses.url=!0,o},get session(){return n.uses.session=!0,f},get stuff(){return n.uses.stuff=!0,b({},c)},fetch(m,I){const L=typeof m=="string"?m:m.url,{href:O}=new URL(L,o);return n.uses.dependencies.add(O),h?fetch(m,I):Fe(m,I)}};t&&(_.status=e,_.error=t);const p=await s.load.call(null,_);if(!p)throw new Error("load function must return a value");n.loaded=ue(p),n.loaded.stuff&&(n.stuff=n.loaded.stuff)}else r&&(n.loaded=ue({props:r}));return n}async _load({route:e,info:{url:t,path:s}},o){const i=t.pathname+t.search;if(!o){const g=this.cache.get(i);if(g)return g}const[c,r,n,u,f]=e,h=u?u(c.exec(s)):{},_=this.current.url&&{url:i!==this.current.url.pathname+this.current.url.search,params:Object.keys(h).filter(g=>this.current.params[g]!==h[g]),session:this.session_id!==this.current.session_id};let p=[],m={},I=!1,L=200,O;r.forEach(g=>g());e:for(let g=0;g<r.length;g+=1){let v;try{if(!r[g])continue;const w=await r[g](),k=this.current.branch[g];if(!k||w!==k.module||_.url&&k.uses.url||_.params.some(S=>k.uses.params.has(S))||_.session&&k.uses.session||Array.from(k.uses.dependencies).some(S=>this.invalid.has(S))||I&&k.uses.stuff){let S={};const H=f&&g===r.length-1;if(H){const K=await fetch(`${t.pathname}${t.pathname.endsWith("/")?"":"/"}__data.json${t.search}`,{headers:{"x-sveltekit-load":"true"}});if(K.ok){const Q=K.headers.get("x-sveltekit-location");if(Q)return{redirect:Q,props:{},state:this.current};S=await K.json()}else L=K.status,O=new Error("Failed to load data")}if(O||(v=await this._load_node({module:w,url:t,params:h,props:S,stuff:m})),v&&(H&&(v.uses.url=!0),v.loaded)){if(v.loaded.fallthrough)return;if(v.loaded.error&&(L=v.loaded.status,O=v.loaded.error),v.loaded.redirect)return{redirect:v.loaded.redirect,props:{},state:this.current};v.loaded.stuff&&(I=!0)}}else v=k}catch(w){L=500,O=ce(w)}if(O){for(;g--;)if(n[g]){let w,k,J=g;for(;!(k=p[J]);)J-=1;try{if(w=await this._load_node({status:L,error:O,module:await n[g](),url:t,params:h,stuff:k.stuff}),w&&w.loaded&&w.loaded.error)continue;w&&w.loaded&&w.loaded.stuff&&(m=b(b({},m),w.loaded.stuff)),p=p.slice(0,J+1).concat(w);break e}catch{continue}}return await this._load_error({status:L,error:O,url:t})}else v&&v.loaded&&v.loaded.stuff&&(m=b(b({},m),v.loaded.stuff)),p.push(v)}return await this._get_navigation_result_from_branch({url:t,params:h,stuff:m,branch:p,status:L,error:O})}async _load_error({status:e,error:t,url:s}){var u,f;const o={},i=await this._load_node({module:await this.fallback[0],url:s,params:o,stuff:{}}),c=await this._load_node({status:e,error:t,module:await this.fallback[1],url:s,params:o,stuff:i&&i.loaded&&i.loaded.stuff||{}}),r=[i,c],n=b(b({},(u=i==null?void 0:i.loaded)==null?void 0:u.stuff),(f=c==null?void 0:c.loaded)==null?void 0:f.stuff);return await this._get_navigation_result_from_branch({url:s,params:o,stuff:n,branch:r,status:e,error:t})}}async function et({paths:a,target:e,session:t,route:s,spa:o,trailing_slash:i,hydrate:c}){const r=new Xe({Root:je,fallback:Ke,target:e,session:t}),n=s?new Ye({base:a.base,routes:Je,trailing_slash:i,renderer:r}):null;Pe(a),c&&await r.start(c),n&&(o&&n.goto(location.href,{replaceState:!0},[]),n.init_listeners()),dispatchEvent(new CustomEvent("sveltekit:start"))}export{et as start};
