diff --git a/.gitattributes b/.gitattributes index 81a55734c35bb3930cea4bc4e33902b87c30f4ec..f43d785a74666ec85da274931712a2af3500febc 100644 --- a/.gitattributes +++ b/.gitattributes @@ -52,3 +52,4 @@ lecture-03/slides.pdf filter=lfs diff=lfs merge=lfs -text lecture-04/assets/polyp-segmentation-models-C6lMR4-c.jpeg filter=lfs diff=lfs merge=lfs -text lecture-04/assets/unet-architecture-CP_xtKpN.jpeg filter=lfs diff=lfs merge=lfs -text lecture-04/slides.pdf filter=lfs diff=lfs merge=lfs -text +lecture-06/slides.pdf filter=lfs diff=lfs merge=lfs -text diff --git a/lecture-06/assets/slidev/overview-BDL-WvEg.js b/lecture-06/assets/slidev/overview-BDL-WvEg.js new file mode 100644 index 0000000000000000000000000000000000000000..dfe16576697b9ed4664c9ed78c083f9ce4a0358e --- /dev/null +++ b/lecture-06/assets/slidev/overview-BDL-WvEg.js @@ -0,0 +1 @@ +import{L as e,N as t,Q as n,R as r,S as i,V as a,_ as o,_t as s,b as c,bt as l,ft as u,g as d,lt as f,m as p,st as m,v as h,vt as g,w as ee,xt as _,y as v,z as y}from"../modules/shiki-BFOesOFp.js";import{$ as te,B as b,G as ne,R as x,X as re,Y as S,t as ie}from"../useNav-BKmHNb0y.js";import{t as C}from"../_plugin-vue_export-helper-BDNMzG2s.js";import{B as ae,V as oe}from"../modules/vue-Ymwlffw_.js";import{l as w}from"./context-DrkI8qiD.js";import{f as se,h as ce,m as le,p as T}from"../index-Cpw8zVhj.js";import{n as ue,r as de}from"../modules/unplugin-icons-BIrNarL0.js";import{t as E}from"./IconButton-B5keGFol.js";import{n as D}from"./NoteDisplay-ym8deWTv.js";import{i as fe,o as pe,t as me}from"../SlideWrapper-Cejg6ZDn.js";import{t as he}from"./NoteEditable-B4j4c8ZZ.js";var ge={class:`h-screen w-screen of-hidden flex`},_e={key:0,class:`grid grid-rows-[auto_max-content] border-r border-main select-none max-h-full h-full`},ve={class:`relative`},ye={class:`absolute left-0 top-0 bottom-0 w-200 flex flex-col flex-auto items-end group p-6px md:p-10px gap-1 max-h-full of-x-visible of-y-auto`,style:{direction:`rtl`}},be=[`onClick`],xe={p2:``,border:`t main`},Se={class:`flex flex-col gap-1 mx-1 items-end`},Ce={key:0,class:`flex items-end gap-2`},we=[`onClick`],Te=[`onDblclick`],Ee={key:2,class:`select-none absolute bottom-0 right-0 bg-main rounded-tl p2 op35 text-xs`},De={key:1,class:`absolute z-2 top-0 right-0 px3 py1.5 border-b border-l rounded-lb bg-main/80 backdrop-blur border-main select-none`},Oe={class:`text-xs op50`},O=450,k=C(ee({__name:`overview`,setup(ee){ce({title:`Overview - ${te}`});let C=ae(),k=oe(),{openInEditor:ke,slides:A,isEmbedded:j}=ie(),M=d(()=>C.query.mode===`preview`),N=d(()=>M.value&&j.value),P=d(()=>M.value?N.value?Math.max(0,x.width.value-16):Math.min(900,Math.max(320,x.width.value-160)):O),Ae=d(()=>P.value/re.value),F=m(new Map),je=m(new Map),I=f([]),L=f(),R=f(null),z=0,B,V,H=d(()=>A.value.map(e=>Fe(e.meta?.slide?.note||``))),Me=d(()=>H.value.reduce((e,t)=>e+t,0)),Ne=d(()=>A.value.map(e=>K(e)).reduce((e,t)=>e+t,0)),Pe=d(()=>String(Math.max(1,A.value.length)).length),U=u(),W=new WeakMap;function G(e){return W.has(e)||W.set(e,ne(e,w)),W.get(e)}function K(e){return e.meta?.clicks||G(e)?.total}function q(e){U.value===e?U.value=void 0:U.value=e}function Fe(e){let t=e.match(/[\w`'\-\u0392-\u03C9\u00C0-\u00FF\u0600-\u06FF\u0400-\u04FF]+|[\u4E00-\u9FFF\u3400-\u4DBF\uF900-\uFAFF\u3040-\u309F\uAC00-\uD7AF]+/g),n=0;if(!t)return 0;for(let e=0;e=19968?n+=t[e].length:n+=1;return n}function J(){let e=window.innerHeight||document.documentElement.clientHeight,t,n=[];for(let[r,i]of F.entries()){let a=i.getBoundingClientRect(),o=Math.max(0,Math.min(a.bottom,e)-Math.max(a.top,0));o!==0&&(o>=a.height&&n.push(r),(!t||o>t.visibleHeight)&&(t={idx:r,visibleHeight:o}))}I.value=n.length?n:t?[t.idx]:[]}function Y(e){let t=document.createElement(`a`);t.target=`_blank`,t.href=S+e.slice(1),t.click()}function Ie(e){let t=new URL(S+e.slice(1),location.href).href;if(j.value){window.parent.postMessage({target:`slidev`,sender:`slidev`,type:`open-external`,url:t},`*`);return}Y(e)}function Le(e){let t=F.get(e);t&&t.scrollIntoView({behavior:`smooth`,block:`start`})}function X(e){let t=je.get(e)||F.get(e);if(!t||!L.value)return null;let n=L.value.getBoundingClientRect();return t.getBoundingClientRect().top-n.top+L.value.scrollTop}function Z(e){if(!L.value||A.value.length===0)return;let t=Math.min(Math.max(e,1),A.value.length),n=Math.floor(t)-1,r=t-(n+1),i=X(n),a=X(n+1);if(i==null)return;let o=i+(a==null?0:(a-i)*r)-L.value.clientHeight*.5;Math.abs(L.value.scrollTop-o)<1||L.value.scrollTo({top:o})}function Re(){let e=C.query.slideNo,t=Number(Array.isArray(e)?e[0]:e);return Number.isFinite(t)&&t>0?t:void 0}function Q(e){if(!N.value)return;let t=Number(e.toFixed(3)).toString();C.query.slideNo!==t&&k.replace({query:{...C.query,slideNo:t}})}function ze(){if(!L.value||A.value.length===0)return null;let e=L.value.scrollTop+L.value.clientHeight*.5,t=A.value.map((e,t)=>X(t)).filter(e=>e!=null);if(t.length===0)return null;if(t.length===1||e<=t[0])return 1;for(let n=1;n{V=void 0;let e=B;B=void 0,e!=null&&(Q(e),!(Date.now()0&&(z=Date.now()+300,B=void 0,Q(t),Z(t))}function He(e,t,n){let r=G(n);r.current=r.current===t?w:t,e.preventDefault()}function Ue(e,t){if(e.ctrlKey||e.metaKey){e.preventDefault(),Ie(b(t,!1));return}let n=t.meta?.slide;n&&window.parent.postMessage({target:`slidev`,type:`command`,command:`goto`,args:[n.filepath,n.sourceIndex]},`*`)}return e(()=>{window.addEventListener(`message`,$);let e=N.value?Re():void 0;e!=null&&(z=Date.now()+300,Z(e)),t(()=>{e!=null&&Z(e),J()})}),r(()=>{window.removeEventListener(`message`,$),V&&clearTimeout(V)}),(e,t)=>{let r=ue,u=de;return y(),c(`div`,ge,[s(j)?v(`v-if`,!0):(y(),c(`nav`,_e,[o(`div`,ve,[o(`div`,ye,[(y(!0),c(p,null,a(s(A),(e,t)=>(y(),c(`div`,{key:e.no,class:`relative`,style:{direction:`ltr`}},[o(`button`,{class:g([`relative transition duration-300 w-8 h-8 rounded hover:bg-active hover:op100`,I.value.includes(t)?`op100 text-primary bg-gray:5`:`op20`]),onClick:e=>Le(t)},[o(`div`,null,_(t+1),1)],10,be),e.meta?.slide?.title?(y(),c(`div`,{key:0,class:g([`pointer-events-none select-none absolute left-110% top-50% translate-y--50% ws-nowrap z-label px2 slidev-glass-effect transition duration-400 op0 group-hover:op100`,I.value.includes(t)?`text-primary`:`text-main important-text-op-50`])},_(e.meta?.slide?.title),3)):v(`v-if`,!0)]))),128))])]),o(`div`,xe,[s(se)?(y(),h(E,{key:1,title:s(T)?`Dark mode`:`Light mode`,"pointer-events-none":``,op50:``},{default:n(()=>[s(T)?(y(),h(r,{key:0})):(y(),h(u,{key:1}))]),_:1},8,[`title`])):(y(),h(E,{key:0,title:s(T)?`Switch to light mode theme`:`Switch to dark mode theme`,onClick:t[0]||=e=>s(le)()},{default:n(()=>[s(T)?(y(),h(r,{key:0})):(y(),h(u,{key:1}))]),_:1},8,[`title`]))])])),o(`main`,{ref_key:`scroller`,ref:L,class:`flex-1 h-full of-auto`,style:l(`grid-template-columns: repeat(auto-fit,minmax(${O}px,1fr))`),onScroll:Ve},[(y(!0),c(p,null,a(s(A),(e,r)=>(y(),c(`div`,{key:e.no,ref_for:!0,ref:e=>F.set(r,e),class:g([`overview-slide-block relative of-hidden flex gap-4 min-h-50`,[r===0&&!N.value?`pt2`:``,N.value?`justify-center`:`border-t border-main`]])},[N.value?v(`v-if`,!0):(y(),c(`div`,{key:0,class:g([`select-none text-right my5 flex flex-col justify-between items-end`,M.value?`w-9`:`w-13`]),style:l({height:`${Ae.value}px`})},[o(`div`,{class:`self-center text-3xl op20 mb2 text-center mr--14px tabular-nums`,style:l({width:`${Pe.value}ch`})},_(r+1),5),o(`div`,Se,[i(E,{class:g([`overview-slide-action mr--4 op0`,M.value?`text-lg`:``]),title:`Play in new tab`,onClick:t=>Y(s(b)(e,!1))},{default:n(()=>[...t[4]||=[o(`div`,{class:`i-carbon:presentation-file`},null,-1)]]),_:1},8,[`class`,`onClick`]),v(`v-if`,!0)])],6)),o(`div`,{class:g([`flex flex-col`,N.value?`my1 gap-0`:`my5 gap-2`]),style:l({width:`${P.value}px`})},[N.value?(y(),c(`div`,Ce,[o(`button`,{type:`button`,class:`select-none pl-1 text-lg leading-tight op60 tabular-nums hover:op90 hover:underline underline-offset-2`,onClick:t=>Ue(t,e)},_(r+1),9,we),K(e)?(y(),h(D,{key:0,active:U.value===e,"clicks-context":G(e),resettable:``,compact:``,attached:``,class:`ml-auto w-88 min-w-[70%] max-w-[calc(100%-3rem)]`,onDblclick:t=>q(e),onActivate:t=>U.value=e,onReset:t[1]||=e=>U.value=void 0},null,8,[`active`,`clicks-context`,`onDblclick`,`onActivate`])):v(`v-if`,!0)])):v(`v-if`,!0),o(`div`,{ref_for:!0,ref:e=>je.set(r,e),class:g([`border rounded border-main overflow-hidden bg-main h-max`,[N.value&&K(e)?`rounded-tr-0`:``,N.value?``:`select-none`]]),onDblclick:t=>!N.value&&Y(s(b)(e,!1))},[(y(),h(fe,{key:e.no,width:P.value,class:g(N.value?``:`pointer-events-none important:[&_*]:select-none`)},{default:n(()=>[i(me,{"clicks-context":G(e),route:e,"render-context":`overview`},null,8,[`clicks-context`,`route`]),i(pe,{page:e.no},null,8,[`page`])]),_:2},1032,[`width`,`class`]))],42,Te),K(e)&&!N.value?(y(),h(D,{key:1,active:U.value===e,"clicks-context":G(e),resettable:``,class:g([`ml-1 w-[calc(100%-0.25rem)]`,M.value?``:`mt-2`]),onDblclick:t=>q(e),onActivate:t=>U.value=e,onReset:t[2]||=e=>U.value=void 0},null,8,[`active`,`clicks-context`,`class`,`onDblclick`,`onActivate`])):v(`v-if`,!0)],6),M.value?v(`v-if`,!0):(y(),h(he,{key:1,no:e.no,class:`relative z-1 max-w-250 w-250 text-lg rounded p3`,"auto-height":!0,highlight:U.value===e,editing:R.value===e.no,"clicks-context":G(e),onDblclick:t=>R.value===e.no?null:R.value=e.no,"onUpdate:editing":t[3]||=e=>R.value=null,onMarkerClick:(t,n)=>He(t,n,e)},null,8,[`no`,`highlight`,`editing`,`clicks-context`,`onDblclick`,`onMarkerClick`])),!M.value&&H.value[r]>0?(y(),c(`div`,Ee,_(H.value[r])+` words `,1)):v(`v-if`,!0)],2))),128))],36),s(j)?v(`v-if`,!0):(y(),c(`div`,De,[o(`div`,Oe,_(s(A).length)+` slides · `+_(Ne.value+s(A).length-1)+` clicks · `+_(Me.value)+` words `,1)]))])}}}),[[`__scopeId`,`data-v-47f32601`]]);export{k as default}; \ No newline at end of file diff --git a/lecture-06/assets/slidev/play-CgReZXhX.js b/lecture-06/assets/slidev/play-CgReZXhX.js new file mode 100644 index 0000000000000000000000000000000000000000..a00187972bdcaff4789a7d7181085ca4f9fdd4bc --- /dev/null +++ b/lecture-06/assets/slidev/play-CgReZXhX.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DrawingControls-CNEr-2w_.js","../rolldown-runtime-hePW80VL.js","../modules/shiki-BFOesOFp.js","../modules/shiki-BrmBd2_v.css","../modules/vue-Ymwlffw_.js","../useDrawings-BgI2o36O.js","../useNav-BKmHNb0y.js","../_plugin-vue_export-helper-BDNMzG2s.js","./context-DrkI8qiD.js","../index-Cpw8zVhj.js","../syncState-BrWO1mSt.js","../index-DoO9FZlh.css","./IconButton-B5keGFol.js","./VerticalDivider-D_ScNBWw.js","../DrawingControls-Dhbx0szf.css"])))=>i.map(i=>d[i]); +import{Q as e,S as t,Y as n,_ as r,_t as i,b as a,bt as o,ft as s,g as c,it as l,lt as u,m as d,ot as f,v as p,vt as m,w as h,x as g,y as _,z as v}from"../modules/shiki-BFOesOFp.js";import{E as y,F as b,I as x,f as S,h as C,k as w,q as T,t as E,tt as D,v as O,w as k}from"../useNav-BKmHNb0y.js";import{C as A,m as j}from"../modules/vue-Ymwlffw_.js";import{o as M}from"../index-Cpw8zVhj.js";import{t as N}from"../useDrawings-BgI2o36O.js";import{t as P}from"../modules/unplugin-icons-BIrNarL0.js";import{t as F}from"./Modal-CjKJrPTu.js";import{i as I}from"../SlideWrapper-Cejg6ZDn.js";import{a as L,c as R,d as z,f as B,l as V,n as H,r as U,s as W,t as G,u as K}from"./shortcuts-CFipR0_i.js";var q=2e3;function J(e){let t=c(()=>e.value&&S.value);function r(){document.body.style.cursor=`none`}function i(){document.body.style.cursor=``}let a=null;n(t,e=>{e||(i(),a&&clearTimeout(a),a=null)}),f(()=>{i(),a&&clearTimeout(a),a=null}),j(document.body,[`pointermove`,`pointerdown`],()=>{i(),a&&clearTimeout(a),a=t.value?setTimeout(r,q):null},{passive:!0})}``+new URL(`../logo-BYkHSa_O.png`,import.meta.url).href;var Y={class:`slidev-info-dialog slidev-layout flex flex-col gap-4 text-base`},X=[`innerHTML`],Z=h({__name:`InfoDialog`,props:{modelValue:{default:!1}},emits:[`update:modelValue`],setup(t,{emit:n}){let o=A(t,`modelValue`,n),s=c(()=>typeof D.info==`string`);return(t,n)=>(v(),p(F,{modelValue:i(o),"onUpdate:modelValue":n[0]||=e=>l(o)?o.value=e:null,class:`px-6 py-4`},{default:e(()=>[r(`div`,Y,[s.value?(v(),a(`div`,{key:0,class:`mb-4`,innerHTML:i(D).info},null,8,X)):_(`v-if`,!0),n[1]||=r(`a`,{href:`https://github.com/slidevjs/slidev`,target:`_blank`,class:`!opacity-100 !border-none !text-current`},[r(`div`,{class:`flex gap-1 children:my-auto`},[r(`div`,{class:`opacity-50 text-sm mr-2`},`Powered by`),r(`img`,{class:`w-5 h-5`,src:``+new URL(`../logo-BYkHSa_O.png`,import.meta.url).href,alt:`Slidev logo`}),r(`div`,{style:{color:`#2082A6`}},[r(`b`,null,`Sli`),g(`dev `)])])],-1)])]),_:1},8,[`modelValue`]))}}),Q=h({__name:`Controls`,setup(e){let{isEmbedded:n}=E(),r=!D.drawings.presenterOnly&&!n.value,o=s();r&&T(()=>import(`./DrawingControls-CNEr-2w_.js`).then(e=>e.n).then(e=>o.value=e.default),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]),import.meta.url);let c=s(),u=s();return(e,n)=>(v(),a(d,null,[o.value?(v(),p(i(o),{key:0})):_(`v-if`,!0),t(W),t(R),c.value?(v(),p(i(c),{key:1})):_(`v-if`,!0),u.value?(v(),p(i(u),{key:2,modelValue:i(w),"onUpdate:modelValue":n[0]||=e=>l(w)?w.value=e:null},null,8,[`modelValue`])):_(`v-if`,!0),i(D).info?(v(),p(Z,{key:3,modelValue:i(y),"onUpdate:modelValue":n[1]||=e=>l(y)?y.value=e:null},null,8,[`modelValue`])):_(`v-if`,!0),t(V)],64))}}),$={key:0,class:`absolute top-0 left-0 right-0 bottom-0 pointer-events-none text-xl`},ee=h({__name:`PresenterMouse`,setup(e){return(e,n)=>{let r=P;return i(M).cursor?.style===`cursor`?(v(),a(`div`,$,[t(r,{class:`absolute stroke-white dark:stroke-black`,style:o({left:`${i(M).cursor.x}%`,top:`${i(M).cursor.y}%`,strokeWidth:16})},null,8,[`style`])])):_(`v-if`,!0)}}}),te=h({__name:`play`,setup(n){let{next:o,prev:l,isPrintMode:f,isPlaying:h,isEmbedded:g}=E(),{isDrawing:y}=N(),S=u();function w(e){k.value||e.button===0&&e.target?.id===`slide-container`&&(e.pageX/window.innerWidth>.5?o():l())}B(S),G(),z(),J(c(()=>h.value&&!g.value&&!k.value));let T=c(()=>O.value||k.value),D=s(),A=c(()=>{let e=``;return b.value.brightness!==x.brightness&&(e+=`brightness(${b.value.brightness}) `),b.value.contrast!==x.contrast&&(e+=`contrast(${b.value.contrast}) `),b.value.sepia!==x.sepia&&(e+=`sepia(${b.value.sepia}) `),b.value.hueRotate!==x.hueRotate&&(e+=`hue-rotate(${b.value.hueRotate}deg) `),b.value.invert&&(e+=`invert(1) `),{filter:e}});return(n,o)=>(v(),a(d,null,[r(`div`,{id:`page-root`,ref_key:`root`,ref:S,class:m([`grid`,i(C)?`grid-rows-[1fr_max-content]`:`grid-cols-[1fr_max-content]`])},[t(I,{style:{background:`var(--slidev-slide-container-background, black)`},"is-main":``,"content-style":A.value,onPointerdown:w,onContextmenu:i(K)},{default:e(()=>[t(H,{"render-context":`slide`}),t(ee),t(L)]),controls:e(()=>[i(f)?_(`v-if`,!0):(v(),a(`div`,{key:0,class:m([`absolute bottom-0 left-0 transition duration-300 opacity-0 hover:opacity-100 focus-within:opacity-100 focus-visible:opacity-100`,[T.value?`!opacity-100 right-0`:`opacity-0 p-2`,i(y)?`pointer-events-none`:``]])},[t(U,{persist:T.value},null,8,[`persist`])],2))]),_:1},8,[`content-style`,`onContextmenu`]),D.value&&i(k)?(v(),p(i(D),{key:0,resize:!0})):_(`v-if`,!0)],2),i(f)?_(`v-if`,!0):(v(),p(Q,{key:0})),o[0]||=r(`div`,{id:`twoslash-container`},null,-1)],64))}});export{te as default}; \ No newline at end of file diff --git a/lecture-06/assets/slidev/presenter-DL_E7IJt.js b/lecture-06/assets/slidev/presenter-DL_E7IJt.js new file mode 100644 index 0000000000000000000000000000000000000000..dec7b1e63c42c18b1a3a3dfca4d2b94313d0e917 --- /dev/null +++ b/lecture-06/assets/slidev/presenter-DL_E7IJt.js @@ -0,0 +1 @@ +import{$ as e,J as t,L as n,Q as r,S as i,X as a,Y as o,_ as s,_t as c,b as l,bt as u,ft as d,g as f,it as ee,lt as p,m as te,u as ne,v as m,vt as h,w as g,x as _,xt as v,y,z as b}from"../modules/shiki-BFOesOFp.js";import{$ as re,O as ie,W as ae,a as oe,b as x,m as se,o as ce,t as le,w as ue,x as de}from"../useNav-BKmHNb0y.js";import{t as S}from"../_plugin-vue_export-helper-BDNMzG2s.js";import{T as C,g as w,m as T,v as fe}from"../modules/vue-Ymwlffw_.js";import{h as pe,n as E,o as me}from"../index-Cpw8zVhj.js";import{t as he}from"../useDrawings-BgI2o36O.js";import{t as ge}from"./DrawingControls-CNEr-2w_.js";import{t as _e}from"./IconButton-B5keGFol.js";import{n as ve,t as D}from"./NoteDisplay-ym8deWTv.js";import{n as O,r as ye,t as be}from"./TimerBar-05p5nBrA.js";import{i as k,t as xe}from"../SlideWrapper-Cejg6ZDn.js";import"./NoteEditable-B4j4c8ZZ.js";import{a as Se,c as Ce,d as we,f as Te,i as Ee,l as De,n as Oe,o as ke,r as Ae,s as je,t as Me,u as Ne}from"./shortcuts-CFipR0_i.js";var Pe=g({__name:`NoteStatic`,props:{no:{},class:{},clicksContext:{}},setup(e){let t=e,{info:n}=E(t.no);return(r,i)=>(b(),m(D,{class:h(t.class),note:c(n)?.note,"note-html":c(n)?.noteHTML,"clicks-context":e.clicksContext},null,8,[`class`,`note`,`note-html`,`clicks-context`]))}}),A={"h-full":``,"w-full":``},j={key:0,"w-full":``,"h-full":``,flex:`~ col gap-4 items-center justify-center`},Fe=g({__name:`ScreenCaptureMirror`,setup(n){let r=t(`video`),i=d(null),a=d(!1);async function o(){i.value=await navigator.mediaDevices.getDisplayMedia({video:{cursor:`always`},audio:!1,selfBrowserSurface:`include`,preferCurrentTab:!1}),r.value.srcObject=i.value,r.value.play(),a.value=!0,i.value.addEventListener(`inactive`,()=>{r.value.srcObject=null,a.value=!1}),i.value.addEventListener(`ended`,()=>{r.value.srcObject=null,a.value=!1})}return(t,n)=>(b(),l(`div`,A,[e(s(`video`,{ref_key:`video`,ref:r,class:`w-full h-full object-contain`},null,512),[[ne,a.value]]),a.value?y(`v-if`,!0):(b(),l(`div`,j,[n[0]||=s(`div`,{op50:``},[_(` Use screen capturing to mirror your main screen back to presenter view.`),s(`br`),_(` Click the button below and `),s(`b`,null,`select your other monitor or window`),_(`. `)],-1),s(`button`,{class:`slidev-form-button`,onClick:o},` Start Screen Mirroring `)]))]))}}),M={class:`w-22px cursor-pointer`},N={class:`group-not-hover:hidden flex flex-col items-center`},P={key:0,class:`i-carbon:pause text-lg`},F={key:1,class:`i-carbon:play`},I={class:`text-3xl px-3 my-auto font-mono`},Ie=g({__name:`TimerInlined`,setup(e){let{status:t,percentage:n,mode:r,timer:i,reset:a,toggle:o}=O(),u=f(()=>t.value===`stopped`?`op50`:t.value===`paused`?`text-blue6 dark:text-blue3`:n.value>100?`text-red6 dark:text-red3`:n.value>80?`text-yellow6 dark:text-yellow3`:`text-green6 dark:text-green3`);return(e,n)=>(b(),l(`div`,{class:h([`group flex items-center justify-center pl-4 select-none`,u.value])},[s(`div`,M,[s(`div`,{class:h([`group-hover:hidden text-2xl`,c(r)===`countdown`?`i-carbon:timer`:`i-carbon:time`])},null,2),s(`div`,N,[s(`div`,{class:`relative op-80 hover:op-100`,onClick:n[0]||=(...e)=>c(o)&&c(o)(...e)},[c(t)===`running`?(b(),l(`div`,P)):(b(),l(`div`,F))]),s(`div`,{class:`op-80 hover:op-100`,onClick:n[1]||=(...e)=>c(a)&&c(a)(...e)},[...n[2]||=[s(`div`,{class:`i-carbon:renew`},null,-1)]])])]),s(`div`,I,[c(i).h?(b(),l(te,{key:0},[s(`span`,null,v(c(i).h),1),n[3]||=s(`span`,{op50:``},`:`,-1)],64)):y(`v-if`,!0),s(`span`,null,v(c(i).m),1),n[4]||=s(`span`,{op50:``},`:`,-1),s(`span`,null,v(c(i).s),1)])],2))}}),Le={class:`bg-main h-full slidev-presenter grid grid-rows-[max-content_1fr] of-hidden`},Re={flex:`~ gap-4 items-center`,border:`b main`,p1:``},ze={class:`relative grid-section next flex flex-col p-2 lg:p-4`},Be={key:2,class:`h-full flex justify-center items-center`},Ve={key:3,class:`h-full grid grid-rows-[1fr_min-content]`},L=S(g({__name:`presenter`,setup(t){let g=C(),_=p(),v=p(),S=p(),E=p();Me(),Te(_),we();let{clicksContext:D,currentSlideNo:O,currentSlideRoute:A,hasNext:j,nextRoute:M,slides:N,getPrimaryClicks:P}=le(),{isDrawing:F}=he();pe({title:`Presenter - ${re}`}),p(!1);let I=f(()=>N.value.map(e=>{let t=p(0);return{context:ae(t,e?.meta.slide?.frontmatter.clicksStart??0,e?.meta.clicks),clicks:t}})),L=f(()=>D.value.currentL.value&&I.value[L.value[0].no-1]);o(L,()=>{R.value&&L.value&&(R.value.clicks.value=L.value[1])},{immediate:!0});let z=w(`slidev-presenter-main-slide-mode`,`slides`),B=w(`slidev-presenter-notes-width`,360),V=w(`slidev-presenter-notes-row-size`,280),He=p(0),H=p(!1),U=p(!1),Ue=p(0),W=p(360),We=p(0),G=p(280),K={minNotesWidth:240,maxNotesWidth:720,minNotesRowSize:160,maxNotesWidthRatio:.7,maxNotesRowHeightRatio:.75},Ge=fe(`(min-aspect-ratio: 1/1)`),q=fe(`(max-aspect-ratio: 3/5)`),J=f(()=>x.value===1&&Ge.value),Y=f(()=>!(x.value===1&&q.value)),X=f(()=>x.value===1&&!q.value||x.value===2||x.value===3),Ke=f(()=>x.value===1&&!q.value);function qe(e){return Number.isFinite(e)?Math.max(K.minNotesWidth,Math.min(K.maxNotesWidth,Math.round(e))):K.minNotesWidth}function Je(e){let t=v.value;if(!t)return;let n=t.getBoundingClientRect(),r=e-Ue.value,i=qe(J.value?W.value-r:W.value+r),a=Math.round(n.width*K.maxNotesWidthRatio);B.value=Math.min(i,Math.max(K.minNotesWidth,a))}function Z(e){Y.value&&e.button===0&&(e.preventDefault(),Ue.value=e.clientX,W.value=B.value,H.value=!0)}function Q(e){return Number.isFinite(e)?Math.max(K.minNotesRowSize,Math.round(e)):K.minNotesRowSize}function Ye(e){let t=v.value;if(!t)return;let n=t.getBoundingClientRect(),r=e-We.value,i=Ke.value?G.value-r:G.value+r,a=Math.round(n.height*K.maxNotesRowHeightRatio);V.value=Math.min(Q(i),Math.max(K.minNotesRowSize,a))}function Xe(e){if(!X.value||e.button!==0)return;e.preventDefault();let t=x.value===2?_.value?.getBoundingClientRect().height:S.value?.getBoundingClientRect().height;We.value=e.clientY,G.value=Q(t??V.value),U.value=!0}function Ze(){let e=E.value;e&&(He.value=Math.round(e.getBoundingClientRect().height))}function Qe(){H.value=!1,U.value=!1}function $e(){Ze(),et()}T(window,`pointermove`,e=>{H.value&&Je(e.clientX),U.value&&Ye(e.clientY)}),T(window,`pointerup`,Qe),T(window,`pointercancel`,Qe),n(()=>{$e()}),T(window,`resize`,()=>{$e()});function et(){B.value=qe(B.value),V.value=Q(V.value);let e=v.value;if(!e)return;let t=e.getBoundingClientRect(),n=Math.round(t.width*K.maxNotesWidthRatio),r=Math.round(t.height*K.maxNotesRowHeightRatio);B.value=Math.min(B.value,Math.max(K.minNotesWidth,n)),V.value=Math.min(V.value,Math.max(K.minNotesRowSize,r))}let $=d();return n(()=>{let e=ke(),t=C();a(()=>{!e.value||!t.value||F.value||!ie.value?me.cursor=void 0:me.cursor={...e.value,style:oe.value}})}),(t,n)=>(b(),l(te,null,[s(`div`,Le,[s(`div`,null,[i(ye),i(be)]),s(`div`,{ref_key:`gridContainer`,ref:v,class:h([`grid-container`,`layout${c(x)}`]),style:u({"--slidev-presenter-notes-width":`${c(B)}px`,"--slidev-presenter-notes-row-size":`${c(V)}px`,"--slidev-presenter-bottom-height":`${He.value}px`})},[y(` Unified vertical resizer for wide layout `),Y.value&&J.value?(b(),l(`div`,{key:0,class:`notes-vertical-resizer`,role:`separator`,"aria-orientation":`vertical`,title:`Resize notes panel`,onPointerdown:Z},null,32)):y(`v-if`,!0),y(` Unified vertical resizer for layout 3 `),Y.value&&c(x)===3?(b(),l(`div`,{key:1,class:`notes-vertical-resizer-left`,role:`separator`,"aria-orientation":`vertical`,title:`Resize notes panel`,onPointerdown:Z},null,32)):y(`v-if`,!0),s(`div`,{ref_key:`main`,ref:_,class:`relative grid-section main flex flex-col`},[s(`div`,Re,[n[3]||=s(`span`,{op50:``,px2:``},`Current`,-1),n[4]||=s(`div`,{"flex-auto":``},null,-1),i(Ee,{modelValue:c(z),"onUpdate:modelValue":n[0]||=e=>ee(z)?z.value=e:null,options:[{label:`Slides`,value:`slides`},{label:`Screen Mirror`,value:`mirror`}]},null,8,[`modelValue`])]),c(z)===`mirror`?(b(),m(Fe,{key:0})):y(`v-if`,!0),y(` We use v-show here to still infer the clicks context `),e(i(k,{key:`main`,class:`p-2 lg:p-4 flex-auto`,"is-main":``,onContextmenu:c(Ne)},{default:r(()=>[i(Oe,{"render-context":`presenter`}),i(Se)]),_:1},8,[`onContextmenu`]),[[ne,c(z)===`slides`]]),(b(),m(ve,{key:c(A)?.no,"clicks-context":c(P)(c(A)),class:`w-full pb2 px4 flex-none`},null,8,[`clicks-context`]))],512),s(`div`,ze,[X.value&&c(x)===2?(b(),l(`div`,{key:0,class:`notes-row-resizer top-[-6px]`,role:`separator`,"aria-orientation":`horizontal`,title:`Resize notes panel height`,onPointerdown:Xe},null,32)):y(`v-if`,!0),L.value&&R.value?(b(),m(k,{key:`next`},{default:r(()=>[(b(),m(xe,{key:L.value[0].no,"clicks-context":R.value.context,route:L.value[0],"render-context":`previewNext`},null,8,[`clicks-context`,`route`]))]),_:1})):(b(),l(`div`,Be,[...n[5]||=[s(`div`,{class:`text-gray-500`},` End of the presentation `,-1)]])),n[6]||=s(`div`,{class:`absolute left-0 top-0 bg-main border-b border-r border-main px2 py1 op50 text-sm`},` Next `,-1)]),s(`div`,{ref_key:`noteSection`,ref:S,class:`relative grid-section note overflow-hidden`},[Y.value&&!J.value&&c(x)!==3?(b(),l(`div`,{key:0,class:`notes-resizer right-[-6px]`,role:`separator`,"aria-orientation":`vertical`,title:`Resize notes panel`,onPointerdown:Z},null,32)):y(`v-if`,!0),X.value&&c(x)!==2?(b(),l(`div`,{key:1,class:h([`notes-row-resizer`,Ke.value?`top-[-6px]`:`bottom-[-6px]`]),role:`separator`,"aria-orientation":`horizontal`,title:`Resize notes panel height`,onPointerdown:Xe},null,34)):y(`v-if`,!0),$.value&&c(ue)?(b(),m(c($),{key:2,class:`h-full`})):(b(),l(`div`,Ve,[(b(),m(Pe,{key:`static-${c(O)}`,no:c(O),class:`w-full max-w-full h-full overflow-auto p-2 lg:p-4`,style:u({fontSize:`${c(de)}em`}),"clicks-context":c(D)},null,8,[`no`,`style`,`clicks-context`])),n[10]||=s(`div`,{"border-t":``,"border-main":``},null,-1),s(`div`,{class:h([`py-1 px-2 text-sm transition`,c(g)?``:`op25`])},[i(_e,{title:`Increase font size`,onClick:c(se)},{default:r(()=>[...n[7]||=[s(`div`,{class:`i-carbon:zoom-in`},null,-1)]]),_:1},8,[`onClick`]),i(_e,{title:`Decrease font size`,onClick:c(ce)},{default:r(()=>[...n[8]||=[s(`div`,{class:`i-carbon:zoom-out`},null,-1)]]),_:1},8,[`onClick`]),y(`v-if`,!0)],2)]))],512),s(`div`,{ref_key:`bottomSection`,ref:E,class:`grid-section bottom flex`},[i(Ae,{persist:!0,class:h([`transition`,c(g)?``:`op25`])},null,8,[`class`]),n[11]||=s(`div`,{"flex-auto":``},null,-1),i(Ie)],512),(b(),m(ge,{key:2}))],6)]),i(Ce),i(je),i(De)],64))}}),[[`__scopeId`,`data-v-e7a794bf`]]);export{L as default}; \ No newline at end of file diff --git a/lecture-06/assets/slidev/shortcuts-CFipR0_i.js b/lecture-06/assets/slidev/shortcuts-CFipR0_i.js new file mode 100644 index 0000000000000000000000000000000000000000..c8c591ebf9c3f7dd020bebb5c782020a58cb5c3b --- /dev/null +++ b/lecture-06/assets/slidev/shortcuts-CFipR0_i.js @@ -0,0 +1,4 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DrawingLayer-DUTzsQ-q.js","../modules/shiki-BFOesOFp.js","../rolldown-runtime-hePW80VL.js","../modules/shiki-BrmBd2_v.css","./context-DrkI8qiD.js","../modules/vue-Ymwlffw_.js","../useDrawings-BgI2o36O.js","../useNav-BKmHNb0y.js","../_plugin-vue_export-helper-BDNMzG2s.js","../index-Cpw8zVhj.js","../syncState-BrWO1mSt.js","../index-DoO9FZlh.css"])))=>i.map(i=>d[i]); +import{$ as e,E as t,G as n,H as r,K as i,L as a,M as o,Q as s,S as c,V as l,X as u,Y as d,_ as f,_t as p,a as m,b as h,bt as g,c as _,d as v,f as y,ft as b,g as x,h as S,i as C,it as w,j as T,k as ee,l as E,lt as D,m as O,n as te,o as ne,u as re,v as k,vt as A,w as j,x as ie,xt as M,y as N,yt as P,z as F}from"../modules/shiki-BFOesOFp.js";import{A as ae,C as oe,D as I,E as se,F as L,G as ce,I as R,L as le,M as ue,N as de,O as fe,P as pe,Q as me,R as he,S as ge,T as z,V as _e,Y as ve,Z as ye,_ as be,a as xe,b as Se,d as Ce,f as we,g as Te,i as Ee,j as B,n as De,nt as Oe,p as ke,q as Ae,r as je,s as Me,t as V,tt as H,u as Ne,w as Pe,y as Fe,z as Ie}from"../useNav-BKmHNb0y.js";import{t as Le}from"../_plugin-vue_export-helper-BDNMzG2s.js";import{C as Re,I as ze,P as Be,T as Ve,V as He,b as Ue,f as We,m as Ge,n as U,o as Ke,r as qe,s as Je,t as W,w as Ye,y as Xe}from"../modules/vue-Ymwlffw_.js";import{_ as Ze,l as Qe,n as $e}from"./context-DrkI8qiD.js";import{f as et,i as tt,m as nt,o as rt,p as it,r as at,t as ot}from"../index-Cpw8zVhj.js";import{t as st}from"../useDrawings-BgI2o36O.js";import{t as G}from"./IconButton-B5keGFol.js";import{t as ct}from"./VerticalDivider-D_ScNBWw.js";import{a as lt,i as ut,n as dt,o as ft,r as pt,t as mt}from"../SlideWrapper-Cejg6ZDn.js";function ht(e){let{next:t,nextSlide:n,prev:r,prevSlide:i}=V(),{isDrawing:a}=st(),o=D(0),{direction:s,distanceX:c,distanceY:l}=Ue(e,{pointerTypes:[`touch`],onSwipeStart(){a.value||(o.value=Be())},onSwipeEnd(){if(!o.value||a.value)return;let e=Math.abs(c.value),u=Math.abs(l.value);e/window.innerWidth>.3||e>75?s.value===`left`?t():r():(u/window.innerHeight>.4||u>200)&&(s.value===`down`?i():n())}})}function gt(){let{request:e,release:t}=Ye();d(le,n=>{n?e(`screen`):t()},{immediate:!0})}var _t=Object.assign({}),vt=Object.assign({}),yt=Object.assign({}),bt=[Object.values(_t)[0],Object.values(vt)[0],Object.values(yt)[0]].filter(Boolean),xt,St=()=>{if(xt)return xt;let{next:e,nextSlide:t,prev:n,prevSlide:r,hasNext:i,hasPrev:a,currentPage:o,total:s,isPresenter:c,enterPresenter:l,exitPresenter:u,isEmbedded:d,isPresenterAvailable:f}=V(),{drawingEnabled:p}=st(),{isFullscreen:m,toggle:h}=Ne;return xt=bt.reduce((e,t)=>t(e),x(()=>[{small:!0,icon:`i-carbon:arrow-left`,label:`Previous Click`,action:n,disabled:!a.value},{small:!0,icon:`i-carbon:arrow-right`,label:`Next Click`,action:e,disabled:!i.value},{small:!0,icon:`i-carbon:arrow-up`,label:`Previous Slide`,action:r,disabled:o.value<=1},{small:!0,icon:`i-carbon:arrow-down`,label:`Next Slide`,action:t,disabled:o.value>=s.value},`separator`,{icon:`i-carbon:text-annotation-toggle`,label:Pe.value?`Hide editor`:`Show editor`,action:()=>Pe.value=!Pe.value,show:!1},{icon:`i-carbon:pen`,label:p.value?`Hide drawing toolbar`:`Show drawing toolbar`,action:()=>p.value=!p.value},{icon:`i-carbon:apps`,label:`Show slide overview`,action:ue},c.value&&{icon:`i-carbon:presentation-file`,label:`Exit Presenter Mode`,action:u},f.value&&{icon:`i-carbon:user-speaker`,label:`Enter Presenter Mode`,action:l},!d.value&&{icon:m.value?`i-carbon:minimize`:`i-carbon:maximize`,label:m.value?`Close fullscreen`:`Enter fullscreen`,action:h}].filter(Boolean)))},Ct=b(null);function wt(e,t){Ct.value={x:e,y:t,items:St()}}function Tt(){Ct.value=null}function Et(e){if(H.contextMenu!==!0&&H.contextMenu!=null&&H.contextMenu!==`build`||e.shiftKey||e.defaultPrevented)return;let{isEmbedded:t}=V();t.value||(wt(e.pageX,e.pageY),e.preventDefault(),e.stopPropagation())}var Dt=[`title`,`onClick`],Ot=[`onClick`],kt={class:`mx-auto flex`},At={key:0},jt={class:`w-full text-xs p2`},Mt={class:`text-main text-opacity-50!`},Nt=j({__name:`ContextMenu`,setup(e){let t=D();Ke(t,Tt),Ge(document,`mousedown`,e=>{e.buttons&2&&Tt()},{passive:!0,capture:!0});let r=x(()=>H.contextMenu!=null),i=Ve();d(i,e=>{e||Tt()}),ot(1);let{width:a,height:o}=We(t),s=x(()=>{let e=Ct.value?.x;return e?e+a.value>he.width.value?he.width.value-a.value:e:0}),c=x(()=>{let e=Ct.value?.y;return e?e+o.value>he.height.value?he.height.value-o.value:e:0});return(e,i)=>p(Ct)?(F(),h(`div`,{key:0,ref_key:`container`,ref:t,style:g(`left:${s.value}px;top:${c.value}px`),class:`slidev-glass-effect fixed z-context-menu w-60 flex flex-wrap justify-items-start p-1 animate-fade-in animate-duration-100 rounded-md shadow overflow-hidden select-none`,onContextmenu:i[1]||=y(()=>{},[`prevent`]),onClick:i[2]||=(...e)=>p(Tt)&&p(Tt)(...e)},[(F(!0),h(O,null,l(p(Ct).items.value,(e,t)=>(F(),h(O,{key:t},[e===`separator`?(F(),h(`div`,{key:t,class:`w-full my1 border-t border-main`})):e.show??!0?(F(),h(O,{key:1},[e.small?(F(),h(`div`,{key:0,class:A([`p-2 w-[40px] h-[40px] inline-block text-center cursor-pointer rounded flex`,e.disabled?`op40`:`hover:bg-active`]),title:e.label,onClick:e.action},[typeof e.icon==`string`?(F(),h(`div`,{key:0,class:A([e.icon,`text-1.2em ma`])},null,2)):(F(),k(n(e.icon),{key:1}))],10,Dt)):(F(),h(`div`,{key:1,class:A([`w-full grid grid-cols-[35px_1fr] p-2 pl-0 cursor-pointer rounded`,e.disabled?`op40`:`hover:bg-active`]),onClick:e.action},[f(`div`,kt,[typeof e.icon==`string`?(F(),h(`div`,{key:0,class:A([e.icon,`text-1.2em ma`])},null,2)):(F(),k(n(e.icon),{key:1}))]),typeof e.label==`string`?(F(),h(`div`,At,M(e.label),1)):(F(),k(n(e.label),{key:1}))],10,Ot))],64)):N(`v-if`,!0)],64))),128)),r.value?N(`v-if`,!0):(F(),h(O,{key:0},[i[6]||=f(`div`,{class:`w-full my1 border-t border-main`},null,-1),f(`div`,jt,[f(`div`,Mt,[i[3]||=ie(` Hold `,-1),i[4]||=f(`kbd`,{class:`border px1 py0.5 border-main rounded text-primary`},`Shift`,-1),i[5]||=ie(` and right click to open the native context menu `,-1),N(`v-if`,!0)])])],64))],36)):N(`v-if`,!0)}});function K(e){return Array.isArray?Array.isArray(e):Vt(e)===`[object Array]`}function Pt(e){if(typeof e==`string`)return e;if(typeof e==`bigint`)return e.toString();let t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function Ft(e){return e==null?``:Pt(e)}function q(e){return typeof e==`string`}function It(e){return typeof e==`number`}function Lt(e){return e===!0||e===!1||zt(e)&&Vt(e)==`[object Boolean]`}function Rt(e){return typeof e==`object`}function zt(e){return Rt(e)&&e!==null}function J(e){return e!=null}function Bt(e){return!e.trim().length}function Vt(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var Ht=`Incorrect 'index' type`,Ut=`Invalid doc index: must be a non-negative integer within the bounds of the docs array`,Wt=e=>`Invalid value for key ${e}`,Gt=e=>`Pattern length exceeds max of ${e}.`,Kt=e=>`Missing ${e} property in key`,qt=e=>`Property 'weight' in key '${e}' must be a positive integer`,Jt=`Fuse.match does not support useTokenSearch: token search requires corpus-level statistics (df, fieldCount) that a one-off string comparison does not have. Use new Fuse(...).search(...) instead.`,Yt=Object.prototype.hasOwnProperty,Xt=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let n=Zt(e);this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function Zt(e){let t=null,n=null,r=null,i=1,a=null;if(q(e)||K(e))r=e,t=Qt(e),n=$t(e);else{if(!Yt.call(e,`name`))throw Error(Kt(`name`));let o=e.name;if(r=o,Yt.call(e,`weight`)&&e.weight!==void 0&&(i=e.weight,i<=0))throw Error(qt($t(o)));t=Qt(o),n=$t(o),a=e.getFn??null}return{path:t,id:n,weight:i,src:r,getFn:a}}function Qt(e){return K(e)?e:e.split(`.`)}function $t(e){return K(e)?e.join(`.`):e}function en(e,t){let n=[],r=!1,i=(e,t,a,o)=>{if(J(e)){if(!t[a])n.push(o===void 0?e:{v:e,i:o});else{let s=e[t[a]];if(!J(s))return;if(a===t.length-1&&(q(s)||It(s)||Lt(s)||typeof s==`bigint`))n.push(o===void 0?Ft(s):{v:Ft(s),i:o});else if(K(s)){r=!0;for(let e=0,n=s.length;ee.score===t.score?e.idx=9&&e<=13||e===32||e===160}function sn(e=1,t=3){let n=new Map,r=10**t;return{get(t){let i=0,a=!1;for(let e=0;e{this._keysMap[e.id]=t})}create(){if(this.isCreated||!this.docs.length)return;this.isCreated=!0;let e=this.docs.length;this.records=Array(e);let t=0;if(q(this.docs[0]))for(let n=0;ne&&--this.records[t].i}removeAll(e){let t=new Set;for(let n of e)Number.isInteger(n)&&n>=0&&t.add(n);if(t.size===0)return;this.records=this.records.filter(e=>!t.has(e.i));let n=Array.from(t).sort((e,t)=>e-t);for(let e of this.records){let t=0,r=n.length;for(;t>>1;n[i]t),records:this.records}}};function ln(e,t,{getFn:n=Y.getFn,fieldNormWeight:r=Y.fieldNormWeight}={}){let i=new cn({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(Zt)),i.setSources(t),i.create(),i}function un(e,{getFn:t=Y.getFn,fieldNormWeight:n=Y.fieldNormWeight}={}){let{keys:r,records:i}=e,a=new cn({getFn:t,fieldNormWeight:n});return a.setKeys(r),a.setIndexRecords(i),a}function dn(e=[],t=Y.minMatchCharLength){let n=[],r=-1,i=-1,a=0;for(let o=e.length;a=t&&n.push([r,i]),r=-1)}return e[a-1]&&a-r>=t&&n.push([r,a-1]),n}function fn(e,t,n,{location:r=Y.location,distance:i=Y.distance,threshold:a=Y.threshold,findAllMatches:o=Y.findAllMatches,minMatchCharLength:s=Y.minMatchCharLength,includeMatches:c=Y.includeMatches,ignoreLocation:l=Y.ignoreLocation}={}){if(t.length>32)throw Error(Gt(32));let u=t.length,d=e.length,f=Math.max(0,Math.min(r,d)),p=a,m=f,h=(e,t)=>{let n=e/u;if(l)return n;let r=Math.abs(f-t);return i?n+r/i:r?1:n},g=s>1||c,_=g?Array(d):[],v;for(;(v=e.indexOf(t,m))>-1;){let e=h(0,v);if(p=Math.min(e,p),m=v+u,g){let e=0;for(;e=a;--r){let i=r-1,o=n[e[i]];if(c[r]=(c[r+1]<<1|1)&o,t&&(c[r]|=(y[r+1]|y[r])<<1|1|y[r+1]),c[r]&C&&(b=h(t,i),b<=p)){if(p=b,m=i,x=t,m<=f)break;a=Math.max(1,2*f-m)}}if(h(t+1,f)>p)break;y=c}if(g&&m>=0){let t=Math.min(d-1,m+u-1+x);for(let r=m;r<=t;r+=1)n[e[r]]&&(_[r]=1)}let w={isMatch:m>=0,score:Math.max(.001,b)};if(g){let e=dn(_,s);e.length?c&&(w.indices=e):w.isMatch=!1}return w}function pn(e){let t={};for(let n=0,r=e.length;ne[0]-t[0]||e[1]-t[1]);let t=[e[0]];for(let n=1,r=e.length;ne.normalize(`NFD`).replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,``).replace(gn,e=>hn[e]):e=>e,vn=class{constructor(e,{location:t=Y.location,threshold:n=Y.threshold,distance:r=Y.distance,includeMatches:i=Y.includeMatches,findAllMatches:a=Y.findAllMatches,minMatchCharLength:o=Y.minMatchCharLength,isCaseSensitive:s=Y.isCaseSensitive,ignoreDiacritics:c=Y.ignoreDiacritics,ignoreLocation:l=Y.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:s,ignoreDiacritics:c,ignoreLocation:l},e=s?e:e.toLowerCase(),e=c?_n(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;let u=(e,t)=>{this.chunks.push({pattern:e,alphabet:pn(e),startIndex:t})},d=this.pattern.length;if(d>32){let e=0,t=d%32,n=d-t;for(;e{let{isMatch:m,score:h,indices:g}=fn(e,t,n,{location:i+p,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,includeMatches:r,ignoreLocation:l});m&&(f=!0),d+=h,m&&g&&u.push(...g)});let p={isMatch:f,score:f?d/this.chunks.length:1};return f&&r&&(p.indices=mn(u)),p}},yn=new Set([`fuzzy`,`include`]);function bn(e){return e.startsWith(`inverse`)}var xn=[{type:`exact`,multiRegex:/^="(.*)"$/,singleRegex:/^=(.*)$/,create:e=>({type:`exact`,search(t){let n=t===e;return{isMatch:n,score:+!n,indices:[0,e.length-1]}}})},{type:`include`,multiRegex:/^'"(.*)"$/,singleRegex:/^'(.*)$/,create:e=>({type:`include`,search(t){let n=0,r,i=[],a=e.length;for(;(r=t.indexOf(e,n))>-1;)n=r+a,i.push([r,n-1]);let o=!!i.length;return{isMatch:o,score:+!o,indices:i}}})},{type:`prefix-exact`,multiRegex:/^\^"(.*)"$/,singleRegex:/^\^(.*)$/,create:e=>({type:`prefix-exact`,search(t){let n=t.startsWith(e);return{isMatch:n,score:+!n,indices:[0,e.length-1]}}})},{type:`inverse-prefix-exact`,multiRegex:/^!\^"(.*)"$/,singleRegex:/^!\^(.*)$/,create:e=>({type:`inverse-prefix-exact`,search(t){let n=!t.startsWith(e);return{isMatch:n,score:+!n,indices:[0,t.length-1]}}})},{type:`inverse-suffix-exact`,multiRegex:/^!"(.*)"\$$/,singleRegex:/^!(.*)\$$/,create:e=>({type:`inverse-suffix-exact`,search(t){let n=!t.endsWith(e);return{isMatch:n,score:+!n,indices:[0,t.length-1]}}})},{type:`suffix-exact`,multiRegex:/^"(.*)"\$$/,singleRegex:/^(.*)\$$/,create:e=>({type:`suffix-exact`,search(t){let n=t.endsWith(e);return{isMatch:n,score:+!n,indices:[t.length-e.length,t.length-1]}}})},{type:`inverse-exact`,multiRegex:/^!"(.*)"$/,singleRegex:/^!(.*)$/,create:e=>({type:`inverse-exact`,search(t){let n=t.indexOf(e)===-1;return{isMatch:n,score:+!n,indices:[0,t.length-1]}}})},{type:`fuzzy`,multiRegex:/^"(.*)"$/,singleRegex:/^(.*)$/,create:(e,t={})=>{let n=new vn(e,{location:t.location??Y.location,threshold:t.threshold??Y.threshold,distance:t.distance??Y.distance,includeMatches:t.includeMatches??Y.includeMatches,findAllMatches:t.findAllMatches??Y.findAllMatches,minMatchCharLength:t.minMatchCharLength??Y.minMatchCharLength,isCaseSensitive:t.isCaseSensitive??Y.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics??Y.ignoreDiacritics,ignoreLocation:t.ignoreLocation??Y.ignoreLocation});return{type:`fuzzy`,search(e){return n.searchIn(e)}}}}],Sn=xn.length,Cn=`\0`,wn=`|`;function Tn(e){let t=[],n=e.length,r=0;for(;r=n)break;let i=r;for(;i=n||e[t]===` `){i++;break}if(e[t]===`$`&&(t+1>=n||e[t+1]===` `)){i+=2;break}}i++}t.push(e.substring(r,i)),r=i}else{for(;i{let n=Tn(e.replace(/\u0000/g,`|`).trim()).filter(e=>e&&!!e.trim()),r=[];for(let e=0,i=n.length;e!!(e[Mn.AND]||e[Mn.OR]),Fn=e=>!!e[Nn.PATH],In=e=>!K(e)&&Rt(e)&&!Pn(e),Ln=e=>({[Mn.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function Rn(e,t,{auto:n=!0}={}){let r=e=>{if(q(e)){let r={keyId:null,pattern:e};return n&&(r.searcher=jn(e,t)),r}let i=Object.keys(e),a=Fn(e);if(!a&&i.length>1&&!Pn(e))return r(Ln(e));if(In(e)){let r=a?e[Nn.PATH]:i[0],o=a?e[Nn.PATTERN]:e[r];if(!q(o))throw Error(Wt(r));let s={keyId:$t(r),pattern:o};return n&&(s.searcher=jn(o,t)),s}let o={children:[],operator:i[0]};return i.forEach(t=>{let n=e[t];K(n)&&n.forEach(e=>{o.children.push(r(e))})}),o};return Pn(e)||(e=Ln(e)),r(e)}function zn(e,{ignoreFieldNorm:t=Y.ignoreFieldNorm}){let n=1;return e.forEach(({key:e,norm:r,score:i})=>{let a=e?e.weight:null;n*=(i===0&&a?2**-52:i)**+((a||1)*(t?1:r))}),n}function Bn(e,{ignoreFieldNorm:t=Y.ignoreFieldNorm}){e.forEach(e=>{e.score=zn(e.matches,{ignoreFieldNorm:t})})}var Vn=class{constructor(e,t){this.limit=e,this.heap=[],this.comparator=t}get size(){return this.heap.length}insert(e){this.size0;){let n=e-1>>1;if(this.comparator(t[e],t[n])<=0)break;let r=t[e];t[e]=t[n],t[n]=r,e=n}}_sinkDown(e){let t=this.heap,n=t.length,r=e;do{e=r;let i=2*e+1,a=2*e+2;if(i0&&(r=i),a0&&(r=a),r!==e){let n=t[e];t[e]=t[r],t[r]=n}}while(r!==e)}};function Hn(e){let t=[];return e.matches.forEach(e=>{if(!J(e.indices)||!e.indices.length)return;let n={indices:e.indices,value:e.value};e.key&&(n.key=e.key.id),e.idx>-1&&(n.refIndex=e.idx),t.push(n)}),t}function Un(e,t,{includeMatches:n=Y.includeMatches,includeScore:r=Y.includeScore}={}){return e.map(e=>{let{idx:i}=e,a={item:t[i],refIndex:i};return n&&(a.matches=Hn(e)),r&&(a.score=e.score),a})}var Wn=/[\p{L}\p{M}\p{N}_]+/gu,Gn=new WeakSet;function Kn(e){Gn.has(e)||(Gn.add(e),console.warn(`[Fuse] tokenize regex ${e} lacks the global flag; only the first match per text will be returned. Add the 'g' flag.`))}function qn(e){if(typeof e==`function`){let t=!1;return n=>{let r=e(n);if(!t&&(t=!0,!Array.isArray(r)||r.some(e=>typeof e!=`string`)))throw Error(`[Fuse] tokenize function must return string[]; received ${Array.isArray(r)?`array containing non-strings`:typeof r}.`);return r}}return e instanceof RegExp?(e.global||Kn(e),t=>t.match(e)||[]):e=>e.match(Wn)||[]}function Jn({isCaseSensitive:e=!1,ignoreDiacritics:t=!1,tokenize:n}={}){let r=qn(n);return{tokenize(n){return e||(n=n.toLowerCase()),t&&(n=_n(n)),r(n)}}}var Yn=class{static condition(e,t){return t.useTokenSearch}constructor(e,t){this.options=t,this.analyzer=Jn({isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,tokenize:t.tokenize});let n=this.analyzer.tokenize(e),{df:r,fieldCount:i}=t._invertedIndex;this.termSearchers=[],this.idfWeights=[];for(let e of n){this.termSearchers.push(new vn(e,{location:t.location,threshold:t.threshold,distance:t.distance,includeMatches:t.includeMatches,findAllMatches:t.findAllMatches,minMatchCharLength:t.minMatchCharLength,isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,ignoreLocation:!0}));let n=r.get(e)||0,a=Math.log(1+(i-n+.5)/(n+.5));this.idfWeights.push(a)}this.combineAll=t.tokenMatch===`all`,this.numTerms=this.termSearchers.length,this.useMask=this.numTerms<=31}searchIn(e){if(!this.termSearchers.length)return{isMatch:!1,score:1};let t=[],n=0,r=0,i=0,a=0,o=this.combineAll&&!this.useMask?new Set:null;for(let s=0;s0?1-n/r:0,c={isMatch:!0,score:Math.max(.001,s)};return this.options.includeMatches&&t.length&&(c.indices=mn(t)),this.combineAll&&(this.useMask?c.matchedMask=a:c.matchedTerms=o,c.termCount=this.numTerms),c}};function Xn(e,t,n,r){let i=r.tokenize(t);if(!i.length)return;e.fieldCount++,e.docFieldCount.set(n,(e.docFieldCount.get(n)||0)+1);let a=new Set(i),o=e.docTermFieldHits.get(n);o||(o=new Map,e.docTermFieldHits.set(n,o));for(let t of a)o.set(t,(o.get(t)||0)+1),e.df.set(t,(e.df.get(t)||0)+1)}function Zn(e,t,n,r){let{i,v:a,$:o}=t;if(a!==void 0){Xn(e,a,i,r);return}if(o)for(let t=0;te-t);for(let t of n)er(e,t);let r=e=>{let t=0,r=n.length;for(;t>>1;n[i]i?r(t):t,n);e.docFieldCount=a;let o=new Map;for(let[t,n]of e.docTermFieldHits)o.set(t>i?r(t):t,n);e.docTermFieldHits=o}var X=class{constructor(e,t,n){this.options={...Y,...t},this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new Xt(this.options.keys),this._docs=e,this._myIndex=null,this._invertedIndex=null,this.setCollection(e,n),this._lastQuery=null,this._lastSearcher=null}_getSearcher(e){if(this._lastQuery===e)return this._lastSearcher;let t=jn(e,this._invertedIndex?{...this.options,_invertedIndex:this._invertedIndex}:this.options);return this._lastQuery=e,this._lastSearcher=t,t}setCollection(e,t){if(this._docs=e,t&&!(t instanceof cn))throw Error(Ht);if(this._myIndex=t||ln(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){let e=Jn({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});this._invertedIndex=Qn(this._myIndex.records,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}add(e){if(!J(e))return;this._docs.push(e);let t=this._myIndex.add(e,this._docs.length-1);if(this._invertedIndex&&t){let e=Jn({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});$n(this._invertedIndex,t,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}remove(e=()=>!1){let t=[],n=[];for(let r=0,i=this._docs.length;r!e.has(n)),this._myIndex.removeAll(n),this._invalidateSearcherCache()}return t}removeAt(e){if(!Number.isInteger(e)||e<0||e>=this._docs.length)throw Error(Ut);this._invertedIndex&&tr(this._invertedIndex,[e]);let t=this._docs.splice(e,1)[0];return this._myIndex.removeAt(e),this._invalidateSearcherCache(),t}_invalidateSearcherCache(){this._lastQuery=null,this._lastSearcher=null}getIndex(){return this._myIndex}_normalizedKeys(){return this._myIndex.keys.map(e=>this._keyStore.get(e.id)||e)}search(e,t){let{limit:n=-1}=t||{},{includeMatches:r,includeScore:i,shouldSort:a,sortFn:o,ignoreFieldNorm:s}=this.options;if(q(e)&&!e.trim()){let e=this._docs.map((e,t)=>({item:e,refIndex:t}));return It(n)&&n>-1&&(e=e.slice(0,n)),e}let c=a&&It(n)&&n>0&&q(e),l=o,u=(e,t)=>l(e,t)||e.idx-t.idx,d;if(c){let t=new Vn(n,u);q(this._docs[0])?this._searchStringList(e,{heap:t,ignoreFieldNorm:s}):this._searchObjectList(e,{heap:t,ignoreFieldNorm:s}),d=t.extractSorted()}else d=q(e)?q(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e),Bn(d,{ignoreFieldNorm:s}),a&&d.sort(q(e)?u:l),It(n)&&n>-1&&(d=d.slice(0,n));return Un(d,this._docs,{includeMatches:r,includeScore:i})}_searchStringList(e,{heap:t,ignoreFieldNorm:n}={}){let r=this._getSearcher(e),i=this.options.useTokenSearch&&this.options.tokenMatch===`all`,{records:a}=this._myIndex,o=t?null:[];return a.forEach(({v:e,i:a,n:s})=>{if(!J(e))return;let c=r.searchIn(e);if(c.isMatch){let r={score:c.score,value:e,norm:s,indices:c.indices};i&&(r.matchedMask=c.matchedMask,r.matchedTerms=c.matchedTerms,r.termCount=c.termCount);let l=[r];if(!i||this._coversAllTokens(l)){let r={item:e,idx:a,matches:l};t?(r.score=zn(r.matches,{ignoreFieldNorm:n}),t.insert(r)):o.push(r)}}}),o}_searchLogical(e){let t=Rn(e,this.options),n=this._normalizedKeys(),r=(e,t,i)=>{if(!(`children`in e)){let{keyId:r,searcher:a}=e,o;return r===null?(o=[],n.forEach((e,n)=>{o.push(...this._findMatches({key:e,value:t[n],searcher:a}))})):o=this._findMatches({key:this._keyStore.get(r),value:this._myIndex.getValueForItemAtKeyId(t,r),searcher:a}),o&&o.length?[{idx:i,item:t,matches:o}]:[]}let{children:a,operator:o}=e,s=[];for(let e=0,n=a.length;e{if(J(e)){let i=r(t,e,n);i.length&&(a.has(n)||(a.set(n,{idx:n,item:e,matches:[]}),o.push(a.get(n))),i.forEach(({matches:e})=>{a.get(n).matches.push(...e)}))}}),o}_searchObjectList(e,{heap:t,ignoreFieldNorm:n}={}){let r=this._getSearcher(e),i=this.options.useTokenSearch&&this.options.tokenMatch===`all`,{records:a}=this._myIndex,o=this._normalizedKeys(),s=t?null:[];return a.forEach(({$:e,i:a})=>{if(!J(e))return;let c=[],l=!1,u=!1;if(o.forEach((t,n)=>{let i=this._findMatches({key:t,value:e[n],searcher:r});i.length?(c.push(...i),i[0].hasInverse&&(u=!0)):l=!0}),!(u&&l)&&c.length&&(!i||this._coversAllTokens(c))){let r={idx:a,item:e,matches:c};t?(r.score=zn(r.matches,{ignoreFieldNorm:n}),t.insert(r)):s.push(r)}}),s}_findMatches({key:e,value:t,searcher:n}){if(!J(t))return[];let r=[];if(K(t))t.forEach(({v:t,i,n:a})=>{if(!J(t))return;let o=n.searchIn(t);if(o.isMatch){let n={score:o.score,key:e,value:t,idx:i,norm:a,indices:o.indices,hasInverse:o.hasInverse};o.termCount!==void 0&&(n.matchedMask=o.matchedMask,n.matchedTerms=o.matchedTerms,n.termCount=o.termCount),r.push(n)}});else{let{v:i,n:a}=t,o=n.searchIn(i);if(o.isMatch){let t={score:o.score,key:e,value:i,norm:a,indices:o.indices,hasInverse:o.hasInverse};o.termCount!==void 0&&(t.matchedMask=o.matchedMask,t.matchedTerms=o.matchedTerms,t.termCount=o.termCount),r.push(t)}}return r}_coversAllTokens(e){let t=e.length?e[0].termCount:void 0;if(t===void 0)return!0;if(t<=31){let n=0;for(let t=0;tAn(e))};var nr=X,rr={key:0},ir={key:1},ar={key:2},or={key:3},sr={key:4},cr={key:5},lr={key:6},ur={key:7},dr={key:8},fr={key:9},pr={key:10},mr={key:11},hr={key:12},gr={key:13},_r={key:14},vr={key:15},yr={key:16},br={key:17},xr={key:18},Sr={key:19},Cr={key:20},wr={key:21},Tr={key:22},Er={key:23},Dr={key:24},Or={key:25},kr={key:26},Ar={key:27},jr={key:28},Mr={key:29},Nr={key:30},Pr={key:31},Fr={key:32},Ir={key:33},Lr={key:34},Rr={key:35},zr={key:36},Br={key:37},Vr={key:38},Hr={key:39},Ur={key:40},Wr={key:41},Gr={key:42},Kr={key:43},qr={key:44},Jr={key:45},Yr={key:46},Xr={key:47},Zr={key:48},Qr={key:49},$r={key:50},ei={key:51},ti={key:52},ni={key:53},ri={key:54},ii={key:55},ai={key:56},oi={key:57},si={key:58},ci={key:59},li={key:60},ui={key:61},di={key:62},fi={key:63},pi={key:64},mi={key:65},hi={key:66},gi={key:67},_i={key:68},vi={key:69},yi={key:70},bi={key:71},xi={key:72},Si={key:73},Ci={key:74},wi={key:75},Ti={key:76},Ei={key:77},Di={key:78},Oi={key:79},ki={key:80},Ai={key:81},ji={key:82},Mi={key:83},Ni={key:84},Pi={key:85},Fi={key:86},Ii={key:87},Li={key:88},Ri={key:89},zi={key:90},Bi={key:91},Vi={key:92},Hi={key:93},Ui={key:94},Wi={key:95},Gi={key:96},Ki={key:97},qi={key:98},Ji={key:99},Yi={key:100},Xi={key:101},Zi={key:102},Qi={key:103},$i={key:104},ea={key:105},ta={key:106},na={key:107},ra={key:108},ia=j({__name:`title-renderer`,props:{no:{}},setup(e){let t=e,{$page:n}=$e(),r=x(()=>+(t.no??n.value));return(e,t)=>(F(),h(`div`,null,[r.value===1?(F(),h(`p`,rr,`Transformers`)):r.value===2?(F(),h(`p`,ir,`Where we are`)):r.value===3?(F(),h(`p`,ar,`In words: Where we are`)):r.value===4?(F(),h(`p`,or,`Delete the recurrence`)):r.value===5?(F(),h(`p`,sr,`Where last week stopped`)):r.value===6?(F(),h(`p`,cr,`In words: Where last week stopped`)):r.value===7?(F(),h(`p`,lr,`The move`)):r.value===8?(F(),h(`p`,ur,`In words: The move`)):r.value===9?(F(),h(`p`,dr,`What a transformer is`)):r.value===10?(F(),h(`p`,fr,`In words: What a transformer is`)):r.value===11?(F(),h(`p`,pr,`Poll: which wall attention solves`)):r.value===12?(F(),h(`p`,mr,`In words: which wall attention solves`)):r.value===13?(F(),h(`p`,hr,`Query, key, value`)):r.value===14?(F(),h(`p`,gr,`Start from a lookup`)):r.value===15?(F(),h(`p`,_r,`In words: Start from a lookup`)):r.value===16?(F(),h(`p`,vr,`Three roles, one vector`)):r.value===17?(F(),h(`p`,yr,`In words: Three roles, one vector`)):r.value===18?(F(),h(`p`,br,`The sentence we will use all lecture`)):r.value===19?(F(),h(`p`,xr,`In words: The sentence we will use all lecture`)):r.value===20?(F(),h(`p`,Sr,`Three lenses on one word`)):r.value===21?(F(),h(`p`,Cr,`In words: Three lenses on one word`)):r.value===22?(F(),h(`p`,wr,`Why a key and a value are different things`)):r.value===23?(F(),h(`p`,Tr,`In words: Why a key and a value are different things`)):r.value===24?(F(),h(`p`,Er,`Four steps, and that is the whole mechanism`)):r.value===25?(F(),h(`p`,Dr,`In words: Four steps, and that is the whole mechanism`)):r.value===26?(F(),h(`p`,Or,`One output vector, five lines`)):r.value===27?(F(),h(`p`,kr,`In words: One output vector, five lines`)):r.value===28?(F(),h(`p`,Ar,`Same word, same weights, different neighbour`)):r.value===29?(F(),h(`p`,jr,`In words: Same word, same weights, different neighbour`)):r.value===30?(F(),h(`p`,Mr,`Why divide by the square root`)):r.value===31?(F(),h(`p`,Nr,`Reading the equation: scaled scores`)):r.value===32?(F(),h(`p`,Pr,`In words: Why divide by the square root`)):r.value===33?(F(),h(`p`,Fr,`Every query at once`)):r.value===34?(F(),h(`p`,Ir,`In words: Every query at once`)):r.value===35?(F(),h(`p`,Lr,`The whole layer, in one line`)):r.value===36?(F(),h(`p`,Rr,`In words: The whole layer, in one line`)):r.value===37?(F(),h(`p`,zr,`Poll: where self-attention’s keys come from`)):r.value===38?(F(),h(`p`,Br,`In words: Where self-attention’s keys come from`)):r.value===39?(F(),h(`p`,Vr,`From one head to one block`)):r.value===40?(F(),h(`p`,Hr,`One softmax can only point at one thing`)):r.value===41?(F(),h(`p`,Ur,`In words: One softmax can only point at one thing`)):r.value===42?(F(),h(`p`,Wr,`Four heads, one question each`)):r.value===43?(F(),h(`p`,Gr,`In words: Four heads, one question each`)):r.value===44?(F(),h(`p`,Kr,`Heads are free`)):r.value===45?(F(),h(`p`,qr,`In words: Heads are free`)):r.value===46?(F(),h(`p`,Jr,`Attention does not know what order the words came in`)):r.value===47?(F(),h(`p`,Yr,`In words: Attention does not know what order the words came in`)):r.value===48?(F(),h(`p`,Xr,`So put the position into the vector`)):r.value===49?(F(),h(`p`,Zr,`In words: So put the position into the vector`)):r.value===50?(F(),h(`p`,Qr,`The other half of the block`)):r.value===51?(F(),h(`p`,$r,`Reading the equation: the feed-forward network`)):r.value===52?(F(),h(`p`,ei,`In words: The other half of the block`)):r.value===53?(F(),h(`p`,ti,`Two wrappers that make it stackable`)):r.value===54?(F(),h(`p`,ni,`In words: Two wrappers that make it stackable`)):r.value===55?(F(),h(`p`,ri,`The block, assembled`)):r.value===56?(F(),h(`p`,ii,`In words: The block, assembled`)):r.value===57?(F(),h(`p`,ai,`What a block costs`)):r.value===58?(F(),h(`p`,oi,`In words: What a block costs`)):r.value===59?(F(),h(`p`,si,`The bill for looking everywhere`)):r.value===60?(F(),h(`p`,ci,`In words: The bill for looking everywhere`)):r.value===61?(F(),h(`p`,li,`The original transformer`)):r.value===62?(F(),h(`p`,ui,`Two stacks`)):r.value===63?(F(),h(`p`,di,`In words: Two stacks`)):r.value===64?(F(),h(`p`,fi,`The architecture, step by step`)):r.value===65?(F(),h(`p`,pi,`In words: The architecture, step by step`)):r.value===66?(F(),h(`p`,mi,`The mask, and why the loss collapses without it`)):r.value===67?(F(),h(`p`,hi,`In words: The mask, and why the loss collapses without it`)):r.value===68?(F(),h(`p`,gi,`Cross-attention is last week’s slide`)):r.value===69?(F(),h(`p`,_i,`In words: Cross-attention is last week’s slide`)):r.value===70?(F(),h(`p`,vi,`The model they actually trained`)):r.value===71?(F(),h(`p`,yi,`In words: The model they actually trained`)):r.value===72?(F(),h(`p`,bi,`Poll: how many decoder passes teacher forcing needs`)):r.value===73?(F(),h(`p`,xi,`In words: How many decoder passes teacher forcing needs`)):r.value===74?(F(),h(`p`,Si,`Modern transformers`)):r.value===75?(F(),h(`p`,Ci,`The architecture forked three ways`)):r.value===76?(F(),h(`p`,wi,`In words: The architecture forked three ways`)):r.value===77?(F(),h(`p`,Ti,`Why decoder-only took over`)):r.value===78?(F(),h(`p`,Ei,`In words: Why decoder-only took over`)):r.value===79?(F(),h(`p`,Di,`One wire moved, and deep stacks started training`)):r.value===80?(F(),h(`p`,Oi,`In words: One wire moved, and deep stacks started training`)):r.value===81?(F(),h(`p`,ki,`What else changed inside the block`)):r.value===82?(F(),h(`p`,Ai,`In words: What else changed inside the block`)):r.value===83?(F(),h(`p`,ji,`Position, done properly`)):r.value===84?(F(),h(`p`,Mi,`In words: Position, done properly`)):r.value===85?(F(),h(`p`,Ni,`What generation actually costs`)):r.value===86?(F(),h(`p`,Pi,`In words: What generation actually costs`)):r.value===87?(F(),h(`p`,Fi,`The same block, more of it`)):r.value===88?(F(),h(`p`,Ii,`In words: The same block, more of it`)):r.value===89?(F(),h(`p`,Li,`What did not change`)):r.value===90?(F(),h(`p`,Ri,`In words: What did not change`)):r.value===91?(F(),h(`p`,zi,`In PyTorch`)):r.value===92?(F(),h(`p`,Bi,`The mechanism is one function call`)):r.value===93?(F(),h(`p`,Vi,`In words: The mechanism is one function call`)):r.value===94?(F(),h(`p`,Hi,`Self-attention, written out`)):r.value===95?(F(),h(`p`,Ui,`In words: Self-attention, written out`)):r.value===96?(F(),h(`p`,Wi,`A block, and a stack`)):r.value===97?(F(),h(`p`,Gi,`In words: A block, and a stack`)):r.value===98?(F(),h(`p`,Ki,`Or use the one in the box`)):r.value===99?(F(),h(`p`,qi,`In words: Or use the one in the box`)):r.value===100?(F(),h(`p`,Ji,`Shapes, end to end`)):r.value===101?(F(),h(`p`,Yi,`In words: Shapes, end to end`)):r.value===102?(F(),h(`p`,Xi,`Four bugs, and what each one looks like`)):r.value===103?(F(),h(`p`,Zi,`In words: Four bugs, and what each one looks like`)):r.value===104?(F(),h(`p`,Qi,`Where that leaves us`)):r.value===105?(F(),h(`p`,$i,`Where we got to`)):r.value===106?(F(),h(`p`,ea,`In words: Where we got to`)):r.value===107?(F(),h(`p`,ta,`Reading, and the lab`)):r.value===108?(F(),h(`p`,na,`In words: Reading, and the lab`)):r.value===109?(F(),h(`p`,ra,`To be continued…`)):N(`v-if`,!0)]))}}),aa={class:`bg-main transform`,shadow:`~`,p:`x-4 y-2`,border:`~ transparent rounded dark:main`},oa=[`value`,`disabled`],sa={table:``,"w-full":``,"border-collapse":``},ca=[`border`,`onClick`],la={"text-right":``,op50:``,"text-sm":``,"table-cell":``,"py-2":``,"pl-4":``,"pr-3":``,"vertical-middle":``},ua=Le(j({__name:`Goto`,setup(e){let t=D(),n=D(),r=D(),i=D(),a=D(``),o=D(0),{go:s,slides:u}=V();function m(e){return e!=null}let g=x(()=>new nr(u.value.map(e=>e.meta?.slide).filter(m),{keys:[`no`,`title`],threshold:.3,shouldSort:!0,minMatchCharLength:1})),_=x(()=>a.value.startsWith(`/`)?a.value.substring(1):a.value),b=x(()=>_.value?g.value.search(_.value).map(e=>e.item):[]),S=x(()=>!!b.value.length);function C(){if(S.value){let e=b.value.at(o.value||0);e&&s(e.no)}w()}function w(){a.value=``,z.value=!1}function T(e){e.preventDefault(),o.value++,o.value>=b.value.length&&(o.value=0),E()}function ee(e){e.preventDefault(),o.value--,o.value<=-2&&(o.value=b.value.length-1),E()}function E(){let e=i.value?.[o.value];e&&r.value&&(e.offsetTop+e.offsetHeight>r.value.offsetHeight+r.value.scrollTop?r.value.scrollTo({behavior:`smooth`,top:e.offsetTop+e.offsetHeight-r.value.offsetHeight+1}):e.offsetTop{e?(a.value=``,o.value=0,setTimeout(()=>n.value?.focus(),0)):n.value?.blur()}),d(je,()=>{t.value?.contains(je.value)||w()}),(e,s)=>(F(),h(`div`,{id:`slidev-goto-dialog`,ref_key:`container`,ref:t,class:A([`fixed right-5 transition-all`,p(z)?`top-5`:`-top-20 op0 pointer-events-none`]),"w-90":``,"max-w-90":``,"min-w-90":``},[f(`div`,aa,[f(`input`,{id:`slidev-goto-input`,ref_key:`input`,ref:n,value:a.value,type:`text`,disabled:!p(z),class:A([`outline-none bg-transparent`,{"text-red-400":!S.value&&a.value}]),placeholder:`Goto...`,onKeydown:[v(C,[`enter`]),v(w,[`escape`]),v(T,[`down`]),v(ee,[`up`])],onInput:te},null,42,oa)]),p(z)&&b.value.length>0?(F(),h(`div`,{key:0,ref_key:`list`,ref:r,class:`autocomplete-list`,shadow:`~`,border:`~ transparent rounded dark:main`},[f(`ul`,sa,[(F(!0),h(O,null,l(b.value,(e,t)=>(F(),h(`li`,{ref_for:!0,ref_key:`items`,ref:i,key:e.id,role:`button`,tabindex:`0`,"cursor-pointer":``,hover:`op100`,"table-row":``,"items-center":``,border:t===0?void 0:`t main`,class:A(o.value===t?`bg-active op100`:`op80`),onClick:y(t=>ne(e.no),[`stop`,`prevent`])},[f(`div`,la,M(e.no),1),c(p(ia),{"table-cell":``,"py-2":``,"pr-4":``,"w-full":``,no:e.no},null,8,[`no`])],10,ca))),128))])],512)):N(`v-if`,!0)],2))}}),[[`__scopeId`,`data-v-61e41ebd`]]),da=D(1),fa=x(()=>_e.value.length),Z=D(0),pa=D(0);function ma(){Z.value>da.value&&--Z.value}function ha(){Z.valueda.value){let e=Z.value-pa.value;efa.value&&(e=fa.value),Z.value=e}}var va=[`onClick`],ya={class:`text-green font-bold`},ba={class:`opacity-50`},xa={key:1,class:`opacity-50`},Sa={class:`fixed top-4 right-4 z-modal text-gray-400 flex flex-col items-center gap-2`},Ca=128,wa=32,Ta=j({__name:`QuickOverview`,setup(t){let{currentSlideNo:n,go:r,slides:i}=V();function a(){I.value=!1}function o(e){r(e),a()}function d(e){return e===Z.value}let _=Ee.smaller(`xs`),v=Ee.smaller(`sm`),y=x(()=>_.value?he.width.value-Ca:v.value?(he.width.value-Ca-wa)/2:300),b=x(()=>Math.floor((he.width.value-Ca)/(y.value+wa))),S=D(``);return Ge(`keypress`,e=>{if(!I.value){S.value=``;return}if(e.key===`Enter`){e.preventDefault(),S.value?(o(+S.value),S.value=``):o(Z.value);return}let t=Number.parseInt(e.key.replace(/\D/g,``));if(Number.isNaN(t)){S.value=``;return}if(!S.value&&t===0)return;if(S.value+=String(t),+S.value>i.value.length){S.value=``;return}let n=i.value.findIndex(e=>`/${e.no}`===S.value);n!==-1&&(Z.value=n+1),S.value*10>i.value.length&&(o(+S.value),S.value=``)}),u(()=>{Z.value=n.value,pa.value=b.value}),(t,n)=>(F(),h(O,null,[c(m,{"enter-active-class":`duration-150 ease-out`,"enter-from-class":`opacity-0 scale-102 !backdrop-blur-0px`,"leave-active-class":`duration-200 ease-in`,"leave-to-class":`opacity-0 scale-102 !backdrop-blur-0px`},{default:s(()=>[p(I)?(F(),h(`div`,{key:0,class:`fixed left-0 right-0 top-0 h-[calc(var(--vh,1vh)*100)] z-modal bg-main !bg-opacity-75 p-16 py-20 overflow-y-auto backdrop-blur-5px select-none`,onClick:a},[f(`div`,{class:`grid gap-y-4 gap-x-8 w-full`,style:g(`grid-template-columns: repeat(auto-fit,minmax(${y.value}px,1fr))`)},[(F(!0),h(O,null,l(p(i),(e,t)=>(F(),h(`div`,{key:e.no,class:`relative`},[f(`div`,{class:A([`inline-block border rounded overflow-hidden bg-main hover:border-primary transition`,d(t+1)||p(Z)===t+1?`border-primary`:`border-main`]),onClick:t=>o(e.no)},[(F(),k(ut,{key:e.no,no:e.no,"use-snapshot":!0,width:y.value,class:`pointer-events-none`},{default:s(()=>[c(mt,{"clicks-context":p(ce)(e,p(Qe)),route:e,"render-context":`overview`},null,8,[`clicks-context`,`route`]),c(ft,{page:e.no},null,8,[`page`])]),_:2},1032,[`no`,`width`]))],10,va),f(`div`,{class:`absolute top-0`,style:g(`left: ${y.value+5}px`)},[S.value&&String(t+1).startsWith(S.value)?(F(),h(O,{key:0},[f(`span`,ya,M(S.value),1),f(`span`,ba,M(String(t+1).slice(S.value.length)),1)],64)):(F(),h(`span`,xa,M(t+1),1))],4)]))),128))],4)])):N(`v-if`,!0)]),_:1}),e(f(`div`,Sa,[c(G,{title:`Close`,class:`text-2xl`,onClick:a},{default:s(()=>[...n[0]||=[f(`div`,{class:`i-carbon:close`},null,-1)]]),_:1}),(F(),k(G,{key:0,as:`a`,title:`Slides Overview`,target:`_blank`,href:`${p(ve)}overview`,"tab-index":`-1`,class:`text-2xl`},{default:s(()=>[...n[1]||=[f(`div`,{class:`i-carbon:list-boxes`},null,-1)]]),_:1},8,[`href`])),N(`v-if`,!0)],512),[[re,p(I)]])],64))}});function Ea(){let e=Xe();return x(()=>{let t=lt.value?.getBoundingClientRect();if(!t)return;let n=(e.x.value-t.left)/t.width*100,r=(e.y.value-t.top)/t.height*100;if(!(n<0||n>100||r<0||r>100))return{x:n,y:r}})}var Da={key:0,class:`absolute top-0 left-0 right-0 bottom-0 pointer-events-none text-xl`},Oa=Le(j({__name:`LaserPointer`,setup(e){let t=Ea(),{isPresenter:n}=V(),r=x(()=>!n.value&&rt.cursor?.style===`laser`?rt.cursor:xe.value===`laser`?t.value:null);return a(()=>{u(()=>{document.body.classList.toggle(`slidev-self-laser-active`,xe.value===`laser`&&!!r.value)})}),(e,t)=>r.value?(F(),h(`div`,Da,[f(`div`,{class:`laser-pointer`,style:g({left:`${r.value.x}%`,top:`${r.value.y}%`})},null,4)])):N(`v-if`,!0)}}),[[`__scopeId`,`data-v-1d1438ab`]]),ka={render:()=>[]},Aa={key:0,class:`bg-main text-main shadow-xl absolute bottom-10 left-0 z-menu py2`,border:`~ main rounded-md`},ja=j({__name:`MenuButton`,props:{modelValue:{default:!1},disabled:{default:!1}},setup(e,{emit:t}){let n=Re(e,`modelValue`,t,{passive:!0}),i=D();return Ke(i,()=>{n.value=!1}),(t,a)=>(F(),h(`div`,{ref_key:`el`,ref:i,class:`flex relative`},[f(`button`,{class:A({disabled:e.disabled}),onClick:a[0]||=e=>n.value=!p(n)},[r(t.$slots,`button`,{value:p(n),class:A({disabled:e.disabled})})],2),(F(),k(S,null,[p(n)?(F(),h(`div`,Aa,[r(t.$slots,`menu`)])):N(`v-if`,!0)],1024))],512))}}),Ma={border:`~ main rounded`,flex:`~ gap-2 items-center`,relative:``,"h-5":``,"w-5":``,"p0.5":``,"hover:bg-active":``,p1:``},Na=[`disabled`],Pa=j({__name:`FormCheckbox`,props:T({disabled:{type:Boolean}},{modelValue:{type:Boolean,type:Boolean},modelModifiers:{}}),emits:[`update:modelValue`],setup(t){let n=i(t,`modelValue`);return(r,i)=>(F(),h(`div`,Ma,[f(`div`,{"i-ri-check-line":``,class:A(n.value?``:`op0`)},null,2),e(f(`input`,{"onUpdate:modelValue":i[0]||=e=>n.value=e,type:`checkbox`,absolute:``,"inset-0":``,"opacity-10":``,disabled:t.disabled},null,8,Na),[[_,n.value]])]))}}),Fa={"w-30":``,"h-8":``,flex:`~ gap-1 items-center`},Ia={key:0,"w-1.5":``,"h-1.5":``,"bg-primary":``,rounded:``,absolute:``,"top-0":``,"right--2":``},La={key:0,"w-1.5":``,"h-1.5":``,"bg-primary":``,rounded:``,absolute:``,"top-0":``,"right--2":``},Ra=[`innerHTML`],Q=j({__name:`FormItem`,props:{title:{},nested:{type:[Boolean,Number]},div:{type:Boolean},description:{},dot:{type:Boolean}},emits:[`reset`],setup(e,{emit:t}){let i=t;function a(){i(`reset`)}return(t,i)=>(F(),k(n(e.div?`div`:`label`),{flex:`~ row gap-2 items-center`,"select-none":``},{default:s(()=>[f(`div`,Fa,[e.nested?(F(),h(`div`,{key:0,"i-ri-corner-down-right-line":``,op40:``,style:g(typeof e.nested==`number`?{marginLeft:`${e.nested*.5+.5}rem`}:{marginLeft:`0.25rem`})},null,4)):N(`v-if`,!0),e.description?(F(),k(p(te),{key:2,distance:`10`},{popper:s(()=>[f(`div`,{"text-sm":``,"min-w-90":``,innerHTML:e.description},null,8,Ra)]),default:s(()=>[f(`div`,{op75:``,"text-right":``,relative:``,onDblclick:a},[ie(M(e.title)+` `,1),e.dot?(F(),h(`div`,La)):N(`v-if`,!0)],32)]),_:1})):(F(),h(`div`,{key:1,op75:``,relative:``,onDblclick:a},[ie(M(e.title)+` `,1),e.dot?(F(),h(`div`,Ia)):N(`v-if`,!0)],32))]),r(t.$slots,`default`)]),_:3}))}}),za={relative:``,"h-22px":``},Ba={key:0,"pointer-events-none":``,absolute:``,"right-1":``,"top-0.5":``,"text-xs":``,op25:``},Va=j({__name:`FormSlider`,props:T({max:{},min:{},step:{},unit:{},default:{}},{modelValue:{type:Number},modelModifiers:{}}),emits:[`update:modelValue`],setup(t){let n=t,r=i(t,`modelValue`);return(i,a)=>(F(),h(O,null,[f(`div`,{relative:``,"h-22px":``,"w-60":``,"flex-auto":``,onDblclick:a[1]||=e=>n.default===void 0?null:r.value=n.default},[e(f(`input`,o({"onUpdate:modelValue":a[0]||=e=>r.value=e,type:`range`,class:`slider`},n,{absolute:``,"bottom-0":``,"left-0":``,"right-0":``,"top-0":``,"z-10":``,"w-full":``,"align-top":``}),null,16),[[E,r.value,void 0,{number:!0}]]),n.default==null?N(`v-if`,!0):(F(),h(`span`,{key:0,border:`r main`,absolute:``,"bottom-0":``,"top-0":``,"h-full":``,"w-1px":``,op75:``,style:g({left:`${(n.default-t.min)/(t.max-t.min)*100}%`})},null,4))],32),f(`div`,za,[e(f(`input`,o({"onUpdate:modelValue":a[2]||=e=>r.value=e,type:`number`},n,{border:`~ main rounded`,m0:``,"w-20":``,"bg-gray:5":``,pl2:``,"align-top":``,"text-sm":``}),null,16),[[E,r.value,void 0,{number:!0}]]),n.unit?(F(),h(`span`,Ba,M(n.unit),1)):N(`v-if`,!0)])],64))}}),Ha={error:0,client:60,Light:60,Dark:240};function Ua(e,t=1){if(Ha[e])return Wa(Ha[e],t);let n=0;for(let t=0;t!t.text||t.color===!1?{}:{color:typeof t.color==`number`?Wa(t.color):Ua(t.text),background:typeof t.color==`number`?Wa(t.color,.1):Ua(t.text,.1)}),a=x(()=>(t.size||`sm`)===`sm`?`px-1.5 text-11px leading-1.6em`:``);return(o,c)=>(F(),k(n(e.as||`span`),{"ws-nowrap":``,rounded:``,class:A(a.value),style:g(i.value)},{default:s(()=>[r(o.$slots,`default`,{},()=>[f(`span`,{textContent:M(t.text)},null,8,Ga)])]),_:3},8,[`class`,`style`]))}}),qa={flex:`~ gap-1 items-center`,rounded:``,"bg-gray:4":``,p1:``,"m--1":``},Ja=j({__name:`SegmentControl`,props:{options:{},modelValue:{}},emits:[`update:modelValue`],setup(e){return(t,n)=>(F(),h(`div`,qa,[(F(!0),h(O,null,l(e.options,n=>(F(),k(Ka,{key:n.value,class:A([`px-2 py-1 text-xs font-mono`,n.value===e.modelValue?``:`op50`]),color:n.value===e.modelValue,"aria-pressed":n.value===e.modelValue,size:`none`,text:n.label,as:`button`,onClick:e=>t.$emit(`update:modelValue`,n.value)},null,8,[`class`,`color`,`aria-pressed`,`text`,`onClick`]))),128))]))}}),Ya={"text-sm":``,"select-none":``,flex:`~ col gap-1`,"min-w-30":``,px4:``},Xa=j({__name:`Settings`,setup(e){let{isPresenter:t}=V(),{isSupported:n}=Ye();return(e,r)=>(F(),h(`div`,Ya,[c(Q,{title:`Invert`,dot:p(L).invert!==p(R).invert,onReset:r[1]||=e=>p(L).invert=p(R).invert},{default:s(()=>[c(Pa,{modelValue:p(L).invert,"onUpdate:modelValue":r[0]||=e=>p(L).invert=e},null,8,[`modelValue`])]),_:1},8,[`dot`]),c(Q,{title:`Brightness`,dot:p(L).brightness!==p(R).brightness,onReset:r[3]||=e=>p(L).brightness=p(R).brightness},{default:s(()=>[c(Va,{modelValue:p(L).brightness,"onUpdate:modelValue":r[2]||=e=>p(L).brightness=e,max:1.5,min:.5,step:.02,default:p(R).brightness},null,8,[`modelValue`,`default`])]),_:1},8,[`dot`]),c(Q,{title:`Contrast`,dot:p(L).contrast!==p(R).contrast,onReset:r[5]||=e=>p(L).contrast=p(R).contrast},{default:s(()=>[c(Va,{modelValue:p(L).contrast,"onUpdate:modelValue":r[4]||=e=>p(L).contrast=e,max:1.5,min:.5,step:.02,default:p(R).contrast},null,8,[`modelValue`,`default`])]),_:1},8,[`dot`]),c(Q,{title:`Saturation`,dot:p(L).saturate!==p(R).saturate,onReset:r[7]||=e=>p(L).saturate=p(R).saturate},{default:s(()=>[c(Va,{modelValue:p(L).saturate,"onUpdate:modelValue":r[6]||=e=>p(L).saturate=e,max:1.5,min:.5,step:.02,default:p(R).saturate},null,8,[`modelValue`,`default`])]),_:1},8,[`dot`]),c(Q,{title:`Sepia`,dot:p(L).sepia!==p(R).sepia,onReset:r[9]||=e=>p(L).sepia=p(R).sepia},{default:s(()=>[c(Va,{modelValue:p(L).sepia,"onUpdate:modelValue":r[8]||=e=>p(L).sepia=e,max:2,min:-2,step:.02,default:p(R).sepia},null,8,[`modelValue`,`default`])]),_:1},8,[`dot`]),c(Q,{title:`Hue Rotate`,dot:p(L).hueRotate!==p(R).hueRotate,onReset:r[11]||=e=>p(L).hueRotate=p(R).hueRotate},{default:s(()=>[c(Va,{modelValue:p(L).hueRotate,"onUpdate:modelValue":r[10]||=e=>p(L).hueRotate=e,max:180,min:-180,step:.1,default:p(R).hueRotate},null,8,[`modelValue`,`default`])]),_:1},8,[`dot`]),r[16]||=f(`div`,{class:`h-1px opacity-5 bg-current w-full my2`},null,-1),c(Q,{title:`Cursor Style`},{default:s(()=>[c(Ja,{modelValue:p(xe),"onUpdate:modelValue":r[12]||=e=>w(xe)?xe.value=e:null,options:[{label:`Cursor`,value:`cursor`},{label:`Laser`,value:`laser`}]},null,8,[`modelValue`])]),_:1}),p(t)?N(`v-if`,!0):(F(),k(Q,{key:0,title:`Slide Scale`},{default:s(()=>[c(Ja,{modelValue:p(ae),"onUpdate:modelValue":r[13]||=e=>w(ae)?ae.value=e:null,options:[{label:`Fit`,value:0},{label:`1:1`,value:1}]},null,8,[`modelValue`])]),_:1})),p(n)?(F(),k(Q,{key:1,title:`Wake Lock`},{default:s(()=>[c(Pa,{modelValue:p(le),"onUpdate:modelValue":r[14]||=e=>w(le)?le.value=e:null},null,8,[`modelValue`])]),_:1})):N(`v-if`,!0),p(t)?N(`v-if`,!0):(F(),k(Q,{key:2,title:`Hide Idle Cursor`},{default:s(()=>[c(Pa,{modelValue:p(we),"onUpdate:modelValue":r[15]||=e=>w(we)?we.value=e:null},null,8,[`modelValue`])]),_:1}))]))}}),Za={class:`select-list`},Qa={class:`title`},$a={class:`items`},eo=[`onClick`],to=Le(j({__name:`SelectList`,props:{modelValue:{type:[Object,String,Number,Boolean]},title:{type:String},items:{type:Array}},setup(e,{emit:t}){let n=Re(e,`modelValue`,t,{passive:!0});return(t,r)=>(F(),h(`div`,Za,[f(`div`,Qa,M(e.title),1),f(`div`,$a,[(F(!0),h(O,null,l(e.items,e=>(F(),h(`div`,{key:e.value,class:A([`item`,{active:p(n)===e.value}]),onClick:()=>{n.value=e.value,e.onClick?.()}},[f(`div`,{class:A([`i-carbon:checkmark text-green-500 mya`,{"opacity-0":p(n)!==e.value}])},null,2),f(`div`,{class:A({"opacity-50":p(n)!==e.value})},M(e.display||e.value),3)],10,eo))),128))])]))}}),[[`__scopeId`,`data-v-aa3b28a6`]]),no={"text-sm":``,flex:`~ col gap-2`},ro={px3:``,"ws-nowrap":``},io={"font-bold":``,"text-primary":``},ao=j({__name:`SyncControls`,setup(e){let{isPresenter:t}=V(),n=x({get:()=>t.value?B.value.presenterReceive:B.value.viewerReceive,set(e){t.value?B.value.presenterReceive=e:B.value.viewerReceive=e}}),r=x({get:()=>t.value?B.value.presenterSend:B.value.viewerSend,set(e){t.value?B.value.presenterSend=e:B.value.viewerSend=e}}),i=x({get:()=>n.value&&r.value?`bidirectional`:n.value&&!r.value?`receive-only`:!n.value&&r.value?`send-only`:`off`,set(e){switch(e){case`bidirectional`:n.value=!0,r.value=!0;break;case`receive-only`:n.value=!0,r.value=!1;break;case`send-only`:n.value=!1,r.value=!0;break;case`off`:n.value=!1,r.value=!1}}});return(e,a)=>(F(),k(ja,null,{button:s(()=>[c(G,{title:`Change sync settings`},{default:s(()=>[f(`div`,{class:A([`i-ph:arrow-up-bold mx--1.2 scale-x-80`,r.value?`text-green6 dark:text-green`:`op30`])},null,2),f(`div`,{class:A([`i-ph:arrow-down-bold mx--1.2 scale-x-80`,n.value?`text-green6 dark:text-green`:`op30`])},null,2)]),_:1})]),menu:s(()=>[f(`div`,no,[f(`div`,ro,[a[1]||=f(`span`,{op75:``},`Slides navigation syncing for `,-1),f(`span`,io,M(p(t)?`presenter`:`viewer`),1)]),a[2]||=f(`div`,{class:`h-1px opacity-10 bg-current w-full`},null,-1),c(to,{modelValue:i.value,"onUpdate:modelValue":a[0]||=e=>i.value=e,title:`Sync Mode`,items:[{value:`bidirectional`,display:`Bidirectional Sync`},{value:`receive-only`,display:`Receive Only`},{value:`send-only`,display:`Send Only`},{value:`off`,display:`Disable`}]},null,8,[`modelValue`])])]),_:1}))}}),oo={key:0,class:`i-carbon:minimize`},so={key:1,class:`i-carbon:maximize`},co={key:0,class:`i-carbon-moon`},lo={key:1,class:`i-carbon-sun`},uo={key:0,class:`i-carbon-magic-wand-filled color-red-600 dark:color-red-400`},fo={key:1,class:`i-carbon-magic-wand`},po={key:0,class:`i-ph-cursor-fill`},mo={key:1,class:`i-ph-cursor-duotone`},ho={key:0,"w-2":``,"h-2":``,"bg-primary":``,"rounded-full":``,absolute:``,"top-0.5":``,"right-0.5":``},go={class:`px2 my-auto`},_o={class:`text-lg`},vo={class:`opacity-50 text-sm`},yo=j({__name:`NavControls`,props:{persist:{default:!1}},setup(e){let t=e,{currentSlideNo:n,hasNext:r,hasPrev:i,isEmbedded:a,isPresenter:o,isPresenterAvailable:l,next:u,prev:d,total:m,enterPresenter:_,exitPresenter:v}=V(),{brush:y,drawingEnabled:S}=st(),C=Ee.smaller(`md`),{isFullscreen:w,toggle:T}=Ne,ee=D();function E(){ee.value&&je.value&&ee.value.contains(je.value)&&je.value.blur()}let te=x(()=>t.persist?`text-$slidev-controls-foreground bg-transparent`:`rounded-md bg-main shadow-xl border border-main`),ne=b();return(e,t)=>(F(),h(`nav`,{ref_key:`root`,ref:ee,class:`flex flex-col`},[f(`div`,{class:A([`flex flex-wrap-reverse text-xl gap-0.5 p-1 lg:p-2`,te.value]),onMouseleave:E},[p(a)?N(`v-if`,!0):(F(),k(G,{key:0,title:p(w)?`Close fullscreen`:`Enter fullscreen`,onClick:p(T)},{default:s(()=>[p(w)?(F(),h(`div`,oo)):(F(),h(`div`,so))]),_:1},8,[`title`,`onClick`])),c(G,{disabled:!p(i),title:`Go to previous slide`,onClick:p(d)},{default:s(()=>[...t[6]||=[f(`div`,{class:`i-carbon:arrow-left`},null,-1)]]),_:1},8,[`disabled`,`onClick`]),c(G,{disabled:!p(r),title:`Go to next slide`,onClick:p(u)},{default:s(()=>[...t[7]||=[f(`div`,{class:`i-carbon:arrow-right`},null,-1)]]),_:1},8,[`disabled`,`onClick`]),p(a)?N(`v-if`,!0):(F(),k(G,{key:1,title:`Show slide overview`,onClick:t[0]||=e=>p(ue)()},{default:s(()=>[...t[8]||=[f(`div`,{class:`i-carbon:apps`},null,-1)]]),_:1})),p(et)?N(`v-if`,!0):(F(),k(G,{key:2,title:p(it)?`Switch to light mode theme`:`Switch to dark mode theme`,onClick:t[1]||=e=>p(nt)()},{default:s(()=>[p(it)?(F(),h(`div`,co)):(F(),h(`div`,lo))]),_:1},8,[`title`])),c(ct),p(a)?N(`v-if`,!0):(F(),h(O,{key:3},[!p(o)&&!p(C)&&ne.value?(F(),h(O,{key:0},[c(p(ne)),c(ct)],64)):N(`v-if`,!0),p(o)?(F(),k(G,{key:1,title:p(xe)===`laser`?p(fe)?`Disable laser pointer`:`Enable laser pointer`:p(fe)?`Hide presenter cursor`:`Show presenter cursor`,active:p(fe),onClick:t[2]||=e=>p(de)()},{default:s(()=>[p(xe)===`laser`?(F(),h(O,{key:0},[p(fe)?(F(),h(`div`,uo)):(F(),h(`div`,fo))],64)):(F(),h(O,{key:1},[p(fe)?(F(),h(`div`,po)):(F(),h(`div`,mo))],64))]),_:1},8,[`title`,`active`])):N(`v-if`,!0),!p(H).drawings.presenterOnly||p(o)?(F(),k(G,{key:2,class:`relative`,title:p(S)?`Hide drawing toolbar`:`Show drawing toolbar`,active:p(S),onClick:t[3]||=e=>S.value=!p(S)},{default:s(()=>[t[9]||=f(`div`,{class:`i-carbon:pen`},null,-1),p(S)?(F(),h(`div`,{key:0,class:`absolute left-1 right-1 bottom-0 h-0.7 rounded-full`,style:g({background:p(y).color})},null,4)):N(`v-if`,!0)]),_:1},8,[`title`,`active`])):N(`v-if`,!0),c(ct),p(o)?(F(),k(G,{key:3,title:`Play Mode`,onClick:p(v)},{default:s(()=>[...t[10]||=[f(`div`,{class:`i-carbon:presentation-file`},null,-1)]]),_:1},8,[`onClick`])):N(`v-if`,!0),p(l)?(F(),k(G,{key:4,title:`Presenter Mode`,onClick:p(_)},{default:s(()=>[...t[11]||=[f(`div`,{class:`i-carbon:user-speaker`},null,-1)]]),_:1},8,[`onClick`])):N(`v-if`,!0),N(`v-if`,!0)],64)),(F(),h(O,{key:4},[p(H).download?(F(),k(G,{key:0,title:`Download as PDF`,onClick:p(tt)},{default:s(()=>[...t[13]||=[f(`div`,{class:`i-carbon:download`},null,-1)]]),_:1},8,[`onClick`])):N(`v-if`,!0)],64)),N(`v-if`,!0),!p(o)&&p(H).info&&!p(a)?(F(),k(G,{key:6,title:`Show info`,onClick:t[5]||=e=>se.value=!p(se)},{default:s(()=>[...t[15]||=[f(`div`,{class:`i-carbon:information`},null,-1)]]),_:1})):N(`v-if`,!0),p(a)?N(`v-if`,!0):(F(),h(O,{key:7},[c(ct),p(o)?(F(),k(G,{key:0,title:`Toggle Presenter Layout`,class:`aspect-ratio-initial flex items-center`,onClick:p(pe)},{default:s(()=>[t[16]||=f(`div`,{class:`i-carbon:template`},null,-1),ie(` `+M(p(Se)),1)]),_:1},8,[`onClick`])):N(`v-if`,!0),(F(),k(ao,{key:1})),c(ja,null,{button:s(({value:e})=>[c(G,{title:`More Options`,active:e},{default:s(()=>[t[17]||=f(`div`,{class:`i-carbon:settings-adjust`},null,-1),p(Ce)?(F(),h(`div`,ho)):N(`v-if`,!0)]),_:1},8,[`active`])]),menu:s(()=>[c(Xa)]),_:1})],64)),p(a)?N(`v-if`,!0):(F(),k(ct,{key:8})),f(`div`,go,[f(`span`,_o,M(p(n)),1),f(`span`,vo,` / `+M(p(m)),1)]),c(p(ka))],34)],512))}}),bo=new Set,xo=new Set,So=/\/$/;function Co(e){return e.startsWith(`http`)||e.startsWith(`//`)?e:`${`./`.replace(So,``)}${e.startsWith(`/`)?e:`/${e}`}`}var wo=2,To=new Map,Eo=D(0),Do=D(0),Oo=x(()=>Do.value===0?1:Eo.value/Do.value);x(()=>Oo.value>=1);function ko(e){let t=Co(e);if(bo.has(t)||xo.has(t))return;xo.add(t);let n=new Image;n.onload=()=>{xo.delete(t),bo.add(t),To.delete(t),Eo.value=bo.size},n.onerror=()=>{xo.delete(t);let n=To.get(t)??0;n{let e=r.value;if(!e?.length)return;let t=new Set;for(let n of e)for(let e of n.meta?.slide?.images??[])t.add(Co(e));Do.value=t.size}),u(()=>{let i=e.value,o=r.value;if(!i||!o?.length)return;Ao(i),Ao(t.value),Ao(n.value);let s=i.no-1;for(let e=1;e<=a;e++){let t=s+e;t{let t=r.value,n=setTimeout(()=>{if(t?.length)for(let e of t)Ao(e)},3e3);e(()=>clearTimeout(n))})}function Mo(){let e=He(),t=D(!1),n,r,i=typeof document<`u`&&`startViewTransition`in document;return e.beforeResolve((e,a)=>{let o=Ie(a.params.no)?.meta,s=Ie(e.params.no)?.meta,c=o?.slide?.no,l=s?.slide?.no;if((c!=null&&l!=null&&c!==l&&((c{n=e,r=t}),d,f=new Promise(e=>d=e);return setTimeout(()=>{document.startViewTransition(()=>(d(),u))},50),f}),i&&e.afterEach(()=>{n?.(),r?.()}),t}var No=[`data-drag-id`],$=10,Po=10,Fo=`absolute border border-gray bg-gray dark:border-gray-500 dark:bg-gray-800 bg-opacity-30 `,Io=20,Lo=j({__name:`DragControl`,props:{data:{}},setup(e){let{dragId:n,zoom:r,autoHeight:i,x0:a,y0:o,width:s,height:c,rotate:l,isArrow:d}=e.data,m=ee(Ze,D(1)),_=x(()=>m.value*r.value),{left:v,top:y}=at(),b=d?-1/0:40,S=x(()=>l.value*Math.PI/180),C=x(()=>Math.sin(S.value)),w=x(()=>Math.cos(S.value)),T=x(()=>s.value*w.value+c.value*C.value),E=x(()=>s.value*C.value+c.value*w.value),te=x(()=>a.value-T.value/2),ne=x(()=>o.value-E.value/2),re=x(()=>a.value+T.value/2),k=x(()=>o.value+E.value/2),j=x(()=>d&&s.value<0),ie=x(()=>d&&c.value<0),M=null;function ae(e){if(e.buttons!==1)return;e.preventDefault(),e.stopPropagation();let t=e.target.getBoundingClientRect(),n=s.value*w.value-c.value*C.value,r=s.value*C.value+c.value*w.value,i=s.value*w.value+c.value*C.value,u=-s.value*C.value+c.value*w.value;M={x0:a.value,y0:o.value,width:s.value,height:c.value,rotate:l.value,dx0:e.clientX-(t.left+t.right)/2,dy0:e.clientY-(t.top+t.bottom)/2,ltx:a.value-n/2,lty:o.value-r/2,rtx:a.value+i/2,rty:o.value-u/2,lbx:a.value-i/2,lby:o.value+u/2,rbx:a.value+n/2,rby:o.value+r/2},e.currentTarget.setPointerCapture(e.pointerId)}function oe(e){if(!M||e.buttons!==1)return;e.preventDefault(),e.stopPropagation();let t=(e.clientX-v.value-M.dx0)/_.value,n=(e.clientY-y.value-M.dy0)/_.value;a.value=Oe(t,-T.value/2+Po,me.value+T.value/2-Po),o.value=Oe(n,-E.value/2+Po,ye.value+E.value/2-Po)}function I(e){M&&=(e.preventDefault(),e.stopPropagation(),null)}function se(e,t){return{onPointerdown:ae,onPointermove:n=>{if(!M||n.buttons!==1)return;n.preventDefault(),n.stopPropagation();let r=(n.clientX-v.value)/_.value,i=(n.clientY-y.value)/_.value,{ltx:l,lty:u,rtx:d,rty:f,lbx:p,lby:m,rbx:h,rby:g}=M,x=M.width/M.height,S=Math.max(b,b*x);function T(e,t){if(n.shiftKey){let n=Math.max(e,t*x,S);return{w:n,h:n/x}}return{w:Math.max(e,b),h:Math.max(t,b)}}if(e){if(t){let{w:e,h:t}=T((h-r)*w.value+(g-i)*C.value,-(h-r)*C.value+(g-i)*w.value);r=h-e*w.value+t*C.value,i=g-e*C.value-t*w.value}else{let{w:e,h:t}=T((d-r)*w.value-(i-f)*C.value,(d-r)*C.value+(i-f)*w.value);r=d-e*w.value-t*C.value,i=f-e*C.value+t*w.value}}else if(t){let{w:e,h:t}=T((r-p)*w.value-(m-i)*C.value,(r-p)*C.value+(m-i)*w.value);r=p+e*w.value+t*C.value,i=m+e*C.value-t*w.value}else{let{w:e,h:t}=T((r-l)*w.value+(i-u)*C.value,-(r-l)*C.value+(i-u)*w.value);r=l+e*w.value-t*C.value,i=u+e*C.value+t*w.value}e?t?(a.value=(r+h)/2,o.value=(i+g)/2,s.value=(h-r)*w.value+(g-i)*C.value,c.value=-(h-r)*C.value+(g-i)*w.value):(a.value=(r+d)/2,o.value=(i+f)/2,s.value=(d-r)*w.value-(i-f)*C.value,c.value=(d-r)*C.value+(i-f)*w.value):t?(a.value=(r+p)/2,o.value=(i+m)/2,s.value=(r-p)*w.value-(m-i)*C.value,c.value=(r-p)*C.value+(m-i)*w.value):(a.value=(r+l)/2,o.value=(i+u)/2,s.value=(r-l)*w.value+(i-u)*C.value,c.value=-(r-l)*C.value+(i-u)*w.value)},onPointerup:I,style:{width:`${$}px`,height:`${$}px`,margin:`-${$/2}px`,left:e===j.value?void 0:`0`,right:e===j.value?`0`:void 0,top:t===ie.value?void 0:`0`,bottom:t===ie.value?`0`:void 0,cursor:d?`move`:+e+ +t==1?`nesw-resize`:`nwse-resize`,borderRadius:d?`50%`:void 0},class:Fo}}function L(e){return{onPointerdown:ae,onPointermove:t=>{if(!M||t.buttons!==1)return;t.preventDefault(),t.stopPropagation();let n=(t.clientX-v.value)/_.value,r=(t.clientY-y.value)/_.value,{ltx:i,lty:l,rtx:u,rty:d,lbx:f,lby:p,rbx:m,rby:h}=M;if(e===`l`){let e=(u+m)/2,t=(d+h)/2;s.value=Math.max((e-n)*w.value+(t-r)*C.value,b),a.value=e-s.value*w.value/2,o.value=t-s.value*C.value/2}else if(e===`r`){let e=(i+f)/2,t=(l+p)/2;s.value=Math.max((n-e)*w.value+(r-t)*C.value,b),a.value=e+s.value*w.value/2,o.value=t+s.value*C.value/2}else if(e===`t`){let e=(f+m)/2,t=(p+h)/2;c.value=Math.max((t-r)*w.value-(e-n)*C.value,b),a.value=e+c.value*C.value/2,o.value=t-c.value*w.value/2}else if(e===`b`){let e=(i+u)/2,t=(l+d)/2;c.value=Math.max((r-t)*w.value-(n-e)*C.value,b),a.value=e-c.value*C.value/2,o.value=t+c.value*w.value/2}},onPointerup:I,style:{width:`${$}px`,height:`${$}px`,margin:`-${$/2}px`,left:e===`l`?`0`:e===`r`?`100%`:`50%`,top:e===`t`?`0`:e===`b`?`100%`:`50%`,cursor:`lr`.includes(e)?`ew-resize`:`ns-resize`,borderRadius:`50%`},class:Fo}}function ce(){return{onPointerdown:ae,onPointermove:e=>{if(!M||e.buttons!==1)return;e.preventDefault(),e.stopPropagation();let t=(e.clientX-v.value-M.dx0)/_.value-$/4,n=(e.clientY-y.value-M.dy0)/_.value-$/4,r=Math.atan2(n-o.value,t-a.value)*180/Math.PI+90;for(let e of[0,90,180,270,360])if(Math.abs(r-e)<5){r=e%360;break}l.value=r},onPointerup:I,style:{width:`${$}px`,height:`${$}px`,margin:`-${$/2}px`,left:`50%`,top:`-20px`,cursor:`grab`,borderRadius:`50%`},class:Fo}}let R={immediate:!1,immediateCallback:!1},le=ze(()=>{re.value<=Po||a.value--},Io,R),ue=ze(()=>{te.value>=me.value-Po||a.value++},Io,R),de=ze(()=>{k.value<=Po||o.value--},Io,R),fe=ze(()=>{ne.value>=ye.value-Po||o.value++},Io,R);return u(()=>{function e(e,t){Fe[e].value?t.resume():t.pause()}e(`left`,le),e(`right`,ue),e(`up`,de),e(`down`,fe)}),(e,u)=>Number.isFinite(p(a))?(F(),h(`div`,{key:0,id:`drag-control-container`,"data-drag-id":p(n),style:g({position:`absolute`,zIndex:100,left:`${p(r)*(p(a)-Math.abs(p(s))/2)}px`,top:`${p(r)*(p(o)-Math.abs(p(c))/2)}px`,width:`${p(r)*Math.abs(p(s))}px`,height:`${p(r)*Math.abs(p(c))}px`,transformOrigin:`center center`,transform:`rotate(${p(l)}deg)`}),onPointerdown:ae,onPointermove:oe,onPointerup:I},[f(`div`,{class:A([`absolute inset-0 z-nav dark:b-gray-400`,p(d)?``:`b b-dark`])},[p(i)?N(`v-if`,!0):(F(),h(O,{key:0},[f(`div`,P(t(se(!0,!0))),null,16),f(`div`,P(t(se(!1,!1))),null,16),p(d)?N(`v-if`,!0):(F(),h(O,{key:0},[f(`div`,P(t(se(!0,!1))),null,16),f(`div`,P(t(se(!1,!0))),null,16)],64))],64)),p(d)?N(`v-if`,!0):(F(),h(O,{key:1},[f(`div`,P(t(L(`l`))),null,16),f(`div`,P(t(L(`r`))),null,16),p(i)?N(`v-if`,!0):(F(),h(O,{key:0},[f(`div`,P(t(L(`t`))),null,16),f(`div`,P(t(L(`b`))),null,16)],64)),f(`div`,P(t(ce())),null,16),f(`div`,{class:`absolute -top-15px w-0 b b-dashed b-dark dark:b-gray-400`,style:g({left:`calc(50% - 1px)`,height:p(i)?`14px`:`10px`})},null,4)],64))],2)],44,No)):N(`v-if`,!0)}}),Ro=Le(j({__name:`SlidesShow`,props:{renderContext:{}},setup(t){let{currentSlideRoute:r,currentTransition:i,getPrimaryClicks:a,prevRoute:d,nextRoute:f,slides:m,isPrintMode:g,isPrintWithClicks:_,clicksDirection:v,printRange:y}=V();function S(e){e.meta.preload!==!1&&(e.meta.__preloaded=!0,e.load())}u(()=>{S(r.value),S(d.value),S(f.value)}),u(e=>{let t=m.value,n=setTimeout(()=>{t.forEach(S)},3e3);e(()=>clearTimeout(n))}),jo(r,d,f,m);let w=Mo(),T=b();Ae(()=>import(`./DrawingLayer-DUTzsQ-q.js`).then(e=>T.value=e.default),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url);let ee=x(()=>g.value?y.value.map(e=>m.value[e-1]):m.value.filter(e=>e.meta?.__preloaded||e===r.value));function E(){ke.value=!0,C()}return(u,d)=>(F(),h(O,null,[N(` Global Bottom `),c(p(dt)),N(` Slides `),(F(),k(n(p(w)&&!p(g)&&!p(ke)&&!p(Me)?`div`:ne),o(p(ke)||p(Me)||p(g)?{}:p(i),{id:`slideshow`,tag:`div`,class:{"slidev-nav-go-forward":p(v)>0,"slidev-nav-go-backward":p(v)<0},onAfterLeave:E}),{default:s(()=>[(F(!0),h(O,null,l(ee.value,n=>e((F(),k(mt,{key:n.no,"clicks-context":p(g)&&!p(_)?p(ce)(n,p(Qe)):p(a)(n),route:n,"render-context":t.renderContext},null,8,[`clicks-context`,`route`,`render-context`])),[[re,n===p(r)]])),128))]),_:1},16,[`class`])),p(De)?(F(),k(Lo,{key:0,data:p(De)},null,8,[`data`])):N(`v-if`,!0),N(` Global Top `),c(p(pt)),T.value?(F(),k(p(T),{key:1})):N(`v-if`,!0)],64))}}),[[`__scopeId`,`data-v-835d2635`]]),zo=Object.assign({}),Bo=Object.assign({}),Vo=Object.assign({}),Ho=[Object.values(zo)[0],Object.values(Bo)[0],Object.values(Vo)[0]].filter(Boolean);function Uo(){let{go:e,goFirst:t,goLast:n,next:r,nextSlide:i,prev:a,prevSlide:o}=V(),{drawingEnabled:s}=st(),{escape:c,space:l,shift:u,left:d,right:f,up:p,down:m,enter:h,d:g,g:_,o:v,"`":y}=Fe,b={next:r,prev:a,nextSlide:i,prevSlide:o,go:e,goFirst:t,goLast:n,downloadPDF:tt,toggleDark:nt,toggleOverview:ue,toggleDrawing:()=>s.value=!s.value,escapeOverview:()=>I.value=!1,showGotoDialog:()=>z.value=!z.value},x=W(U(I),U(De)),S=[{name:`next_space`,key:W(l,U(u)),fn:r,autoRepeat:!0},{name:`prev_space`,key:W(l,u),fn:a,autoRepeat:!0},{name:`next_right`,key:W(f,U(u),x),fn:r,autoRepeat:!0},{name:`prev_left`,key:W(d,U(u),x),fn:a,autoRepeat:!0},{name:`next_page_key`,key:`pageDown`,fn:r,autoRepeat:!0},{name:`prev_page_key`,key:`pageUp`,fn:a,autoRepeat:!0},{name:`next_down`,key:W(m,x),fn:i,autoRepeat:!0},{name:`prev_up`,key:W(p,x),fn:o,autoRepeat:!0},{name:`next_shift`,key:W(f,u),fn:i,autoRepeat:!0},{name:`prev_shift`,key:W(d,u),fn:o,autoRepeat:!0},{name:`toggle_dark`,key:W(g,U(s)),fn:nt},{name:`toggle_overview`,key:W(qe(v,y),U(s)),fn:ue},{name:`hide_overview`,key:W(c,U(s)),fn:()=>I.value=!1},{name:`goto`,key:W(_,U(s)),fn:()=>z.value=!z.value},{name:`next_overview`,key:W(f,I),fn:ha},{name:`prev_overview`,key:W(d,I),fn:ma},{name:`up_overview`,key:W(p,I),fn:ga},{name:`down_overview`,key:W(m,I),fn:_a},{name:`goto_from_overview`,key:W(h,I),fn:()=>{e(Z.value),I.value=!1}}],C=new Set(S.map(e=>e.name));for(let e of Ho)S=e(b,S);if(S.filter(e=>e.name&&C.has(e.name)).length===0){let e=[`========== WARNING ==========`,`defineShortcutsSetup did not return any of the base shortcuts.`,`See https://sli.dev/custom/config-shortcuts.html for migration.`,`If it is intentional, return at least one shortcut with one of the base names (e.g. name:"goto").`].join(` + +`);alert(e),console.warn(e)}return S}function Wo(){let{isPrintMode:e}=V(),t=W(U(Te),U(be),U(e),ge,U(oe)),n=Uo();new Map(n.map(e=>[e.key,e])).forEach(e=>{e.fn&&r(e.key,e.fn,e.autoRepeat)}),i(`f`,()=>Ne.toggle());function r(e,n,r=!1){typeof e==`string`&&(e=Fe[e]);let i=W(e,t),a=0,o,s=()=>{if(clearTimeout(o),!i.value){a=0;return}r&&(o=setTimeout(s,Math.max(1e3-a*250,150)),a++),n()};return d(i,s,{flush:`sync`})}function i(e,n){return Je(e,e=>{t.value&&(e.repeat||n())})}}export{Oa as a,ua as c,gt as d,ht as f,Ja as i,Nt as l,Ro as n,Ea as o,yo as r,Ta as s,Wo as t,Et as u}; \ No newline at end of file diff --git a/lecture-06/assets/syncState-BrWO1mSt.js b/lecture-06/assets/syncState-BrWO1mSt.js new file mode 100644 index 0000000000000000000000000000000000000000..00d5b04b271e3f17f25fe172712f949bf7e5d1e6 --- /dev/null +++ b/lecture-06/assets/syncState-BrWO1mSt.js @@ -0,0 +1 @@ +import{Y as e,lt as t,pt as n,st as r}from"./modules/shiki-BFOesOFp.js";function i(){return Math.random().toString(36).replace(/[^a-z]+/g,``).substr(2,10)}function a(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!1})}var o=r([{channels:[],enabled:!0,init(e,t,r,i=!1){let a;if(!i)a=new BroadcastChannel(e),a.addEventListener(`message`,e=>t(e.data)),this.channels.push(a);else if(i){this.listener=function(n){n&&n.key===e&&n.newValue&&t(JSON.parse(n.newValue))},window.addEventListener(`storage`,this.listener);let n=window.localStorage.getItem(e);n&&t(JSON.parse(n))}return(t,r=!1)=>{this.enabled&&(!i&&a&&!r&&a.postMessage(n(t)),i&&!r&&window.localStorage.setItem(e,JSON.stringify(t)))}},disable(){this.enabled=!1,this.channels.forEach(e=>e.close()),this.listener&&window.removeEventListener(`storage`,this.listener)}}]),s=new Map,c=t({});function l(t,i,a=!1){let l=[],u=!1,d=!1,f,p,m=r(i);function h(e){l.push(e)}function g(e,t){m[e]!==t&&(clearTimeout(f),u=!0,m[e]=t,f=setTimeout(()=>u=!1,0))}function _(e){u||(clearTimeout(p),d=!0,Object.entries(e).forEach(([e,t])=>{m[e]=t}),p=setTimeout(()=>d=!1,0))}function v(t){s.set(t,{onUpdate:_,persist:a,state:m}),c.value[t]=o.map(e=>e.init(t,_,m,a)).filter(e=>!!e);function r(){c.value[t].forEach(e=>e?.(n(m),d)),u||l.forEach(e=>e(m))}e(m,r,{deep:!0})}return{init:v,onPatch:h,onUpdate:_,patch:g,state:m}}export{a as n,i as r,l as t}; \ No newline at end of file diff --git a/lecture-06/assets/useAttention-Blk0c2BZ.js b/lecture-06/assets/useAttention-Blk0c2BZ.js new file mode 100644 index 0000000000000000000000000000000000000000..16ce25973c5d7bee0e165f901910898b96e10b14 --- /dev/null +++ b/lecture-06/assets/useAttention-Blk0c2BZ.js @@ -0,0 +1 @@ +var e=[`det`,`water`,`money`,`thing`],t={the:[1,0,0,0],river:[0,2,0,1],money:[0,0,2,1],bank:[0,0,0,2]},n=[[0,0],[0,0],[0,0],[.5,.5]],r=[[0,0],[1,0],[0,1],[0,0]],i=[[.2,.2],[1,0],[0,1],[.3,.3]],a={river:[`the`,`river`,`bank`],money:[`the`,`money`,`bank`]},o=[`the`,`cat`,`ate`,`the`,`fish`,`because`,`it`,`was`,`hungry`];function s(e,t){let n=t[0].map(()=>0);return t.forEach((t,r)=>t.forEach((t,i)=>{n[i]+=(e[r]??0)*t})),n}function c(e,t){return e.reduce((e,n,r)=>e+n*(t[r]??0),0)}function l(e,t){return e.map(e=>e*t)}function u(e){let t=Math.max(0,...e.map(e=>e.length));return Array.from({length:t},(t,n)=>e.reduce((e,t)=>e+(t[n]??0),0))}function d(e){let t=e.filter(e=>e!==null);if(t.length===0)return e.map(()=>0);let n=Math.max(...t),r=e.map(e=>e===null?0:Math.exp(e-n)),i=r.reduce((e,t)=>e+t,0);return r.map(e=>e/i)}function f(e,a=!1){let o=e.map(e=>t[e]??t.the),f=o.map(e=>s(e,n)),p=o.map(e=>s(e,r)),m=o.map(e=>s(e,i)),h=r[0].length,g=1/Math.sqrt(h);return{words:e,x:o,q:f,k:p,v:m,rows:f.map((t,n)=>{let r=p.map(e=>c(t,e)),i=r.map((e,t)=>a&&t>n?null:e*g),o=d(i),s=o.map((e,t)=>l(m[t],e));return{i:n,word:e[n],q:t,raw:r,scaled:i,weights:o,terms:s,out:u(s)}}),dk:h,scale:g,causal:a}}var p=[{name:`head 1`,reads:`the previous word`,weights:[[1,0,0,0,0,0,0,0,0],[.82,.18,0,0,0,0,0,0,0],[.09,.8,.11,0,0,0,0,0,0],[.04,.08,.78,.1,0,0,0,0,0],[.03,.05,.06,.8,.06,0,0,0,0],[.02,.04,.05,.06,.78,.05,0,0,0],[.02,.03,.04,.04,.06,.76,.05,0,0],[.02,.03,.03,.03,.04,.06,.75,.04,0],[.01,.02,.03,.03,.04,.04,.06,.73,.04]]},{name:`head 2`,reads:`the nearest noun`,weights:[[1,0,0,0,0,0,0,0,0],[.14,.86,0,0,0,0,0,0,0],[.05,.84,.11,0,0,0,0,0,0],[.06,.1,.08,.76,0,0,0,0,0],[.03,.06,.05,.79,.07,0,0,0,0],[.03,.22,.09,.05,.56,.05,0,0,0],[.02,.31,.06,.03,.5,.04,.04,0,0],[.02,.28,.05,.03,.47,.04,.08,.03,0],[.02,.34,.05,.02,.41,.03,.09,.02,.02]]},{name:`head 3`,reads:`what a pronoun refers to`,weights:[[1,0,0,0,0,0,0,0,0],[.5,.5,0,0,0,0,0,0,0],[.33,.34,.33,0,0,0,0,0,0],[.25,.25,.25,.25,0,0,0,0,0],[.2,.2,.2,.2,.2,0,0,0,0],[.1,.24,.14,.08,.34,.1,0,0,0],[.02,.62,.03,.02,.24,.03,.04,0,0],[.03,.54,.04,.02,.26,.03,.05,.03,0],[.02,.58,.03,.02,.22,.03,.07,.01,.02]]},{name:`head 4`,reads:`almost nothing — it parks on token 1`,weights:[[1,0,0,0,0,0,0,0,0],[.93,.07,0,0,0,0,0,0,0],[.9,.05,.05,0,0,0,0,0,0],[.89,.04,.04,.03,0,0,0,0,0],[.88,.03,.03,.03,.03,0,0,0,0],[.87,.03,.03,.02,.03,.02,0,0,0],[.86,.03,.02,.02,.03,.02,.02,0,0],[.85,.03,.02,.02,.03,.02,.02,.01,0],[.84,.03,.02,.02,.03,.02,.02,.01,.01]]}];export{t as a,i as c,a as i,s as l,p as n,r as o,o as r,n as s,e as t,f as u}; \ No newline at end of file diff --git a/lecture-06/assets/useConvolution-qO1u8ksh.js b/lecture-06/assets/useConvolution-qO1u8ksh.js new file mode 100644 index 0000000000000000000000000000000000000000..1b0248bb358beb4b341c6d6d348c4ff933d7f0a2 --- /dev/null +++ b/lecture-06/assets/useConvolution-qO1u8ksh.js @@ -0,0 +1 @@ +function e(e,t=2){let n=Number(e.toFixed(t));return Object.is(n,-0)?`0`:String(n)}export{e as t}; \ No newline at end of file diff --git a/lecture-06/assets/useDrawings-BgI2o36O.js b/lecture-06/assets/useDrawings-BgI2o36O.js new file mode 100644 index 0000000000000000000000000000000000000000..d59fccbd94fb0c6e130056848da71330090e295d --- /dev/null +++ b/lecture-06/assets/useDrawings-BgI2o36O.js @@ -0,0 +1 @@ +import{N as e,Y as t,at as n,g as r,lt as i,st as a}from"./modules/shiki-BFOesOFp.js";import{g as o,t as s,tt as c}from"./useNav-BKmHNb0y.js";import{D as l,g as u}from"./modules/vue-Ymwlffw_.js";import{c as d,l as f,s as p}from"./index-Cpw8zVhj.js";var m=()=>({emit(e,...t){for(let n=this.events[e]||[],r=0,i=n.length;r{this.events[e]=this.events[e]?.filter(e=>t!==e)}}});function h(e,t){return e-t}function g(e){return e<0?-1:1}function _(e){return[Math.abs(e),g(e)]}function v(){let e=()=>((1+Math.random())*65536|0).toString(16).substring(1);return`${e()+e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}var y=2;function b(e,t){let n=document.createElementNS(`http://www.w3.org/2000/svg`,`defs`),r=document.createElementNS(`http://www.w3.org/2000/svg`,`marker`),i=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return i.setAttribute(`fill`,t),r.setAttribute(`id`,e),r.setAttribute(`viewBox`,`0 -5 10 10`),r.setAttribute(`refX`,`5`),r.setAttribute(`refY`,`0`),r.setAttribute(`markerWidth`,`4`),r.setAttribute(`markerHeight`,`4`),r.setAttribute(`orient`,`auto`),i.setAttribute(`d`,`M0,-5L10,0L0,5`),r.appendChild(i),n.appendChild(r),n}function x(e,t){let n=e.x-t.x,r=e.y-t.y;return n*n+r*r}function S(e,t,n){let r=t.x,i=t.y,a=n.x-r,o=n.y-i;if(a!==0||o!==0){let t=((e.x-r)*a+(e.y-i)*o)/(a*a+o*o);t>1?(r=n.x,i=n.y):t>0&&(r+=a*t,i+=o*t)}return a=e.x-r,o=e.y-i,a*a+o*o}function C(e,t){let n=e[0],r=[n],i;for(let a=1,o=e.length;at&&(r.push(i),n=i);return n!==i&&i&&r.push(i),r}function w(e,t,n,r,i){let a=r,o=0;for(let r=t+1;ra&&(o=r,a=i)}a>r&&(o-t>1&&w(e,t,o,r,i),i.push(e[o]),n-o>1&&w(e,o,n,r,i))}function T(e,t){let n=e.length-1,r=[e[0]];return w(e,0,n,t,r),r.push(e[n]),r}function E(e,t,n=!1){if(e.length<=2)return e;let r=t===void 0?1:t*t;return e=n?e:C(e,r),e=T(e,r),e}var D=class{constructor(e){this.drauu=e,this.event=void 0,this.point=void 0,this.start=void 0,this.el=null}onSelected(e){}onUnselected(){}onStart(e){}onMove(e){return!1}onEnd(e){}get brush(){return this.drauu.brush}get shiftPressed(){return this.drauu.shiftPressed}get altPressed(){return this.drauu.altPressed}get svgElement(){return this.drauu.el}getMousePosition(e){let t=this.drauu.el,n=this.drauu.options.cssZoom??1,r=this.drauu.options.coordinateScale??1,i=this.drauu.options.offset??{x:0,y:0};if(this.drauu.options.coordinateTransform===!1){let t=this.drauu.el.getBoundingClientRect();return{x:(e.pageX/n-t.left+i.x)*r,y:(e.pageY/n-t.top+i.y)*r,pressure:e.pressure}}{let a=this.drauu.svgPoint;a.x=e.clientX/n+i.x,a.y=e.clientY/n+i.y;let o=a.matrixTransform(t.getScreenCTM()?.inverse());return{x:o.x*r,y:o.y*r,pressure:e.pressure}}}createElement(e,t){let n=document.createElementNS(`http://www.w3.org/2000/svg`,e),r=t?{...this.brush,...t}:this.brush;return n.setAttribute(`fill`,r.fill??`transparent`),n.setAttribute(`stroke`,r.color),n.setAttribute(`stroke-width`,r.size.toString()),n.setAttribute(`stroke-linecap`,`round`),r.dasharray&&n.setAttribute(`stroke-dasharray`,r.dasharray),n}attr(e,t){this.el.setAttribute(e,typeof t==`string`?t:t.toFixed(y))}_setEvent(e){this.event=e,this.point=this.getMousePosition(e)}_eventDown(e){return this._setEvent(e),this.start=this.point,this.onStart(this.point)}_eventMove(e){return this._setEvent(e),this.onMove(this.point)}_eventUp(e){return this._setEvent(e),this.onEnd(this.point)}},O=class e extends D{constructor(...e){super(...e),this.points=[],this.count=0}onStart(e){if(this.el=this.createElement(`path`,{fill:`transparent`}),this.points=[e],this.brush.arrowEnd){this.arrowId=v();let e=b(this.arrowId,this.brush.color);this.el.appendChild(e)}return this.el}onMove(t){return this.el||this.onStart(t),this.points[this.points.length-1]!==t&&(this.points.push(t),this.count+=1),this.count>5&&(this.points=E(this.points,1,!0),this.count=0),this.attr(`d`,e.toSvgData(this.points)),!0}onEnd(){let t=this.el;if(this.el=null,!t)return!1;if(t.setAttribute(`d`,e.toSvgData(E(this.points,1,!0))),!t.getTotalLength()){let{x:e,y:n}=this.points[0],r=this.brush.size/2;t.setAttribute(`d`,`M ${e-r} ${n} a ${r},${r} 0 1,0 ${r*2},0 a ${r},${r} 0 1,0 ${-r*2},0`),t.setAttribute(`fill`,this.brush.color),t.setAttribute(`stroke-width`,`0`)}return!0}static line(e,t){let n=t.x-e.x,r=t.y-e.y;return{length:Math.sqrt(n**2+r**2),angle:Math.atan2(r,n)}}static controlPoint(t,n,r,i){let a=n||t,o=r||t,s=e.line(a,o),c=s.angle+(i?Math.PI:0),l=s.length*.2;return{x:t.x+Math.cos(c)*l,y:t.y+Math.sin(c)*l}}static bezierCommand(t,n,r){let i=e.controlPoint(r[n-1],r[n-2],t),a=e.controlPoint(t,r[n-1],r[n+1],!0);return`C ${i.x.toFixed(y)},${i.y.toFixed(y)} ${a.x.toFixed(y)},${a.y.toFixed(y)} ${t.x.toFixed(y)},${t.y.toFixed(y)}`}static toSvgData(t){return t.reduce((t,n,r,i)=>r===0?`M ${n.x.toFixed(y)},${n.y.toFixed(y)}`:`${t} ${e.bezierCommand(n,r,i)}`,``)}},k=class extends D{onStart(e){return this.el=this.createElement(`ellipse`),this.attr(`cx`,e.x),this.attr(`cy`,e.y),this.el}onMove(e){if(!this.el||!this.start)return!1;let[t,n]=_(e.x-this.start.x),[r,i]=_(e.y-this.start.y);if(this.shiftPressed){let e=Math.min(t,r);t=e,r=e}if(this.altPressed)this.attr(`cx`,this.start.x),this.attr(`cy`,this.start.y),this.attr(`rx`,t),this.attr(`ry`,r);else{let[e,a]=[this.start.x,this.start.x+t*n].sort(h),[o,s]=[this.start.y,this.start.y+r*i].sort(h);this.attr(`cx`,(e+a)/2),this.attr(`cy`,(o+s)/2),this.attr(`rx`,(a-e)/2),this.attr(`ry`,(s-o)/2)}return!0}onEnd(){let e=this.el;if(this.el=null,!e)return!1;try{if(!e.getTotalLength())return!1}catch{return!1}return!0}},A=class extends D{constructor(...e){super(...e),this.pathSubFactor=20,this.pathFragments=[],this._erased=[]}onSelected(e){let t=(e,n)=>{if(e&&e.length)for(let r=0;re.forEach(e=>this.drauu._restoreNode(e)),redo:()=>e.forEach(e=>this.drauu._removeNode(e))}}checkAndEraseElement(){if(this.pathFragments.length)for(let e=0;e!this._erased.includes(e.element))),this._erased.length>0}lineLineIntersect(e,t){let n=e.x1,r=e.x2,i=t.x1,a=t.x2,o=e.y1,s=e.y2,c=t.y1,l=t.y2,u=(n-r)*(c-l)-(o-s)*(i-a),d=(n*s-o*r)*(i-a)-(n-r)*(i*l-c*a),f=(n*s-o*r)*(c-l)-(o-s)*(i*l-c*a),p=(e,t,n)=>e>=t&&e<=n||e>=n&&e<=t;if(u===0)return!1;{let e={x:d/u,y:f/u};return p(e.x,n,r)&&p(e.y,o,s)&&p(e.x,i,a)&&p(e.y,c,l)}}},j=class extends D{onStart(e){if(this.el=this.createElement(`line`,{fill:`transparent`}),this.attr(`x1`,e.x),this.attr(`y1`,e.y),this.attr(`x2`,e.x),this.attr(`y2`,e.y),this.brush.arrowEnd){let e=v(),t=document.createElementNS(`http://www.w3.org/2000/svg`,`g`);return t.append(b(e,this.brush.color)),t.append(this.el),this.attr(`marker-end`,`url(#${e})`),t}return this.el}onMove(e){if(!this.el)return!1;let{x:t,y:n}=e;if(this.shiftPressed){let r=e.x-this.start.x,i=e.y-this.start.y;if(i!==0){let e=r/i;e=Math.round(e),Math.abs(e)<=1?(t=this.start.x+i*e,n=this.start.y+i):(t=this.start.x+r,n=this.start.y)}}return this.altPressed?(this.attr(`x1`,this.start.x*2-t),this.attr(`y1`,this.start.y*2-n),this.attr(`x2`,t),this.attr(`y2`,n)):(this.attr(`x1`,this.start.x),this.attr(`y1`,this.start.y),this.attr(`x2`,t),this.attr(`y2`,n)),!0}onEnd(){let e=this.el;if(this.el=null,!e)return!1;try{if(e.getTotalLength()<5)return!1}catch{return!1}return!0}},M=class extends D{onStart(e){return this.el=this.createElement(`rect`),this.brush.cornerRadius&&(this.attr(`rx`,this.brush.cornerRadius),this.attr(`ry`,this.brush.cornerRadius)),this.attr(`x`,e.x),this.attr(`y`,e.y),this.el}onMove(e){if(!this.el||!this.start)return!1;let[t,n]=_(e.x-this.start.x),[r,i]=_(e.y-this.start.y);if(this.shiftPressed){let e=Math.min(t,r);t=e,r=e}if(this.altPressed)this.attr(`x`,this.start.x-t),this.attr(`y`,this.start.y-r),this.attr(`width`,t*2),this.attr(`height`,r*2);else{let[e,a]=[this.start.x,this.start.x+t*n].sort(h),[o,s]=[this.start.y,this.start.y+r*i].sort(h);this.attr(`x`,e),this.attr(`y`,o),this.attr(`width`,a-e),this.attr(`height`,s-o)}return!0}onEnd(){let e=this.el;if(this.el=null,!e)return!1;try{if(!e.getTotalLength())return!1}catch{return!1}return!0}};function N(e,t,n,r=e=>e){return e*r(.5-t*(.5-n))}function P(e){return[-e[0],-e[1]]}function F(e,t){return[e[0]+t[0],e[1]+t[1]]}function I(e,t){return[e[0]-t[0],e[1]-t[1]]}function L(e,t){return[e[0]*t,e[1]*t]}function R(e,t){return[e[0]/t,e[1]/t]}function z(e){return[e[1],-e[0]]}function B(e,t){return e[0]*t[0]+e[1]*t[1]}function V(e,t){return e[0]===t[0]&&e[1]===t[1]}function H(e){return Math.hypot(e[0],e[1])}function U(e){return e[0]*e[0]+e[1]*e[1]}function W(e,t){return U(I(e,t))}function G(e){return R(e,H(e))}function K(e,t){return Math.hypot(e[1]-t[1],e[0]-t[0])}function q(e,t,n){let r=Math.sin(n),i=Math.cos(n),a=e[0]-t[0],o=e[1]-t[1],s=a*i-o*r,c=a*r+o*i;return[s+t[0],c+t[1]]}function J(e,t,n){return F(e,L(I(t,e),n))}function Y(e,t,n){return F(e,L(t,n))}var{min:X,PI:Z}=Math,Q=.275,$=Z+1e-4;function ee(e,t={}){let{size:n=16,smoothing:r=.5,thinning:i=.5,simulatePressure:a=!0,easing:o=e=>e,start:s={},end:c={},last:l=!1}=t,{cap:u=!0,easing:d=e=>e*(2-e)}=s,{cap:f=!0,easing:p=e=>--e*e*e+1}=c;if(e.length===0||n<=0)return[];let m=e[e.length-1].runningLength,h=s.taper===!1?0:s.taper===!0?Math.max(n,m):s.taper,g=c.taper===!1?0:c.taper===!0?Math.max(n,m):c.taper,_=(n*r)**2,v=[],y=[],b=e.slice(0,10).reduce((e,t)=>{let r=t.pressure;if(a){let i=X(1,t.distance/n);r=X(1,e+(X(1,1-i)-e)*(i*Q))}return(e+r)/2},e[0].pressure),x=N(n,i,e[e.length-1].pressure,o),S,C=e[0].vector,w=e[0].point,T=w,E=w,D=T,O=!1;for(let t=0;t_)&&(v.push(E),w=E),D=F(s,R),(t<=1||W(T,D)>_)&&(y.push(D),T=D),b=r,C=c}let k=e[0].point.slice(0,2),A=e.length>1?e[e.length-1].point.slice(0,2):F(e[0].point,[1,1]),j=[],M=[];if(e.length===1){if(!(h||g)||l){let e=Y(k,G(z(I(k,A))),-(S||x)),t=[];for(let n=1/13,r=n;r<=1;r+=n)t.push(q(e,k,$*2*r));return t}}else{if(!(h||g&&e.length===1)){if(u)for(let e=1/13,t=e;t<=1;t+=e){let e=q(y[0],k,$*t);j.push(e)}else{let e=I(v[0],y[0]),t=L(e,.5),n=L(e,.51);j.push(I(k,t),I(k,n),F(k,n),F(k,t))}}let t=z(P(e[e.length-1].vector));if(g||h&&e.length===1)M.push(A);else if(f){let e=Y(A,t,x);for(let t=1/29,n=t;n<1;n+=t)M.push(q(e,A,$*3*n))}else M.push(F(A,L(t,x)),F(A,L(t,x*.99)),I(A,L(t,x*.99)),I(A,L(t,x)))}return v.concat(M,y.reverse(),j)}function te(e,t={}){let{streamline:n=.5,size:r=16,last:i=!1}=t;if(e.length===0)return[];let a=.15+(1-n)*.85,o=Array.isArray(e[0])?e:e.map(({x:e,y:t,pressure:n=.5})=>[e,t,n]);if(o.length===2){let e=o[1];o=o.slice(0,-1);for(let t=1;t<5;t++)o.push(J(o[0],e,t/4))}o.length===1&&(o=[...o,[...F(o[0],[1,1]),...o[0].slice(2)]]);let s=[{point:[o[0][0],o[0][1]],pressure:o[0][2]>=0?o[0][2]:.25,vector:[1,1],distance:0,runningLength:0}],c=!1,l=0,u=s[0],d=o.length-1;for(let e=1;e=0?o[e][2]:.5,vector:G(I(u.point,t)),distance:n,runningLength:l},s.push(u)}return s[0].vector=s[1]?.vector||[0,0],s}function ne(e,t={}){return ee(te(e,t),t)}var re=class e extends D{constructor(...e){super(...e),this.points=[]}onStart(e){return this.el=document.createElementNS(`http://www.w3.org/2000/svg`,`path`),this.points=[e],this.attr(`fill`,this.brush.color),this.attr(`d`,this.getSvgData(this.points)),this.el}onMove(e){return this.el||this.onStart(e),this.points[this.points.length-1]!==e&&this.points.push(e),this.attr(`d`,this.getSvgData(this.points)),!0}onEnd(){let e=this.el;return this.el=null,!!e}getSvgData(t){return e.getSvgData(t,this.brush)}static getSvgData(e,t){let n=ne(e,{size:t.size,thinning:.9,simulatePressure:!1,start:{taper:5},end:{taper:5},...t.stylusOptions});if(!n.length)return``;let r=n.reduce((e,[t,n],r,i)=>{let[a,o]=i[(r+1)%i.length];return e.push(t,n,(t+a)/2,(n+o)/2),e},[`M`,...n[0],`Q`]);return r.push(`Z`),r.map(e=>typeof e==`number`?e.toFixed(2):e).join(` `)}};function ie(e){return{draw:new O(e),stylus:new re(e),line:new j(e),rectangle:new M(e),ellipse:new k(e),eraseLine:new A(e)}}var ae=class{constructor(e={}){this.options=e,this.el=null,this.svgPoint=null,this.eventEl=null,this.shiftPressed=!1,this.altPressed=!1,this.drawing=!1,this._emitter=m(),this._originalPointerId=null,this._models=ie(this),this._opStack=[],this._opIndex=0,this._disposables=[],this._elements=[],this.options.brush||(this.options.brush={color:`black`,size:3,mode:`stylus`}),e.el&&this.mount(e.el,e.eventTarget,e.window)}get model(){return this._models[this.mode]}get mounted(){return!!this.el}get mode(){return this.options.brush.mode||`stylus`}set mode(e){this._models[this.mode].onUnselected(),this.options.brush.mode=e,this.model.onSelected(this.el)}get brush(){return this.options.brush}set brush(e){this.options.brush=e}resolveSelector(e){return typeof e==`string`?document.querySelector(e):e||null}mount(e,t,n=window){if(this.el)throw Error(`[drauu] already mounted, unmount previous target first`);if(this.el=this.resolveSelector(e),!this.el)throw Error(`[drauu] target element not found`);if(this.el.tagName.toLocaleLowerCase()!==`svg`)throw Error(`[drauu] can only mount to a SVG element`);if(!this.el.createSVGPoint)throw Error(`[drauu] SVG element must be create by document.createElementNS('http://www.w3.org/2000/svg', 'svg')`);this.svgPoint=this.el.createSVGPoint();let r=this.resolveSelector(t)||this.el,i=this.eventStart.bind(this),a=this.eventMove.bind(this),o=this.eventEnd.bind(this),s=this.eventKeyboard.bind(this),c=this.touchMove.bind(this);r.addEventListener(`pointerdown`,i,{passive:!1}),n.addEventListener(`pointermove`,a,{passive:!1}),n.addEventListener(`pointerup`,o,{passive:!1}),n.addEventListener(`pointercancel`,o,{passive:!1}),n.addEventListener(`keydown`,s,!1),n.addEventListener(`keyup`,s,!1),n.addEventListener(`touchmove`,c,{passive:!1}),this._disposables.push(()=>{r.removeEventListener(`pointerdown`,i),n.removeEventListener(`pointermove`,a),n.removeEventListener(`pointerup`,o),n.removeEventListener(`pointercancel`,o),n.removeEventListener(`keydown`,s,!1),n.removeEventListener(`keyup`,s,!1),n.removeEventListener(`touchmove`,c)}),this._emitter.emit(`mounted`)}unmount(){this._disposables.forEach(e=>e()),this._disposables.length=0,this._elements.length=0,this.el=null,this._emitter.emit(`unmounted`)}on(e,t){return this._emitter.on(e,t)}undo(){return!this.canUndo()||this.drawing?!1:(this._opStack[--this._opIndex].undo(),this._emitter.emit(`changed`),!0)}redo(){return!this.canRedo()||this.drawing?!1:(this._opStack[this._opIndex++].redo(),this._emitter.emit(`changed`),!0)}canRedo(){return this._opIndex0}eventMove(e){!this.acceptsInput(e)||!this.drawing||this.model._eventMove(e)&&(e.stopPropagation(),e.preventDefault(),this._emitter.emit(`changed`))}eventStart(e){this.acceptsInput(e)&&(e.stopPropagation(),e.preventDefault(),this._currentNode&&this.cancel(),this.drawing=!0,this._originalPointerId=e.pointerId,this._emitter.emit(`start`),this._currentNode=this.model._eventDown(e),this._currentNode&&this.mode!==`eraseLine`&&this.el.appendChild(this._currentNode),this._emitter.emit(`changed`))}eventEnd(e){if(!this.acceptsInput(e)||!this.drawing)return;let t=this.model._eventUp(e);if(!t)this.cancel();else if(t===!0){let e=this._currentNode;e&&(this._appendNode(e),this.commit({undo:()=>this._removeNode(e),redo:()=>this._restoreNode(e)}))}else this.commit(t);this.drawing=!1,this._emitter.emit(`end`),this._emitter.emit(`changed`),this._originalPointerId=null}touchMove(e){Array.from(e.touches).some(e=>e.touchType===`stylus`&&e.identifier===this._originalPointerId)&&e.preventDefault()}acceptsInput(e){return(!this.options.acceptsInputTypes||this.options.acceptsInputTypes.includes(e.pointerType))&&!(this._originalPointerId&&this._originalPointerId!==e.pointerId)}eventKeyboard(e){(this.shiftPressed!==e.shiftKey||this.altPressed!==e.altKey)&&(this.shiftPressed=e.shiftKey,this.altPressed=e.altKey,this.model.point&&this.model.onMove(this.model.point)&&this._emitter.emit(`changed`))}commit(e){this._opStack.length=this._opIndex,this._opStack.push(e),this._opIndex++;let t=this._currentNode;this._currentNode=void 0,this._emitter.emit(`committed`,t)}clear(){this._opStack.length=0,this._opIndex=0,this._elements=[],this.cancel(),this.el.innerHTML=``,this._emitter.emit(`changed`)}cancel(){this._currentNode&&(this.el.removeChild(this._currentNode),this._currentNode=void 0,this._emitter.emit(`canceled`))}dump(){return this.el.innerHTML}load(e){this.clear(),this.el.innerHTML=e}_appendNode(e){let t=this._elements.at(-1);t?t.after(e):this.el.append(e);let n=this._elements.push(e)-1;e.dataset.drauu_index=n.toString()}_removeNode(e){e.remove(),this._elements[+e.dataset.drauu_index]=null}_restoreNode(e){let t=+e.dataset.drauu_index;this._elements[t]=e;for(let n=t-1;n>=0;n--){let t=this._elements[n];if(t){t.after(e);return}}this.el.prepend(e)}};function oe(e){return new ae(e)}var se=l(()=>{let{currentSlideNo:l,isPresenter:m}=s(),h=[`#ff595e`,`#ffca3a`,`#8ac926`,`#1982c4`,`#6a4c93`,`#ffffff`,`#000000`],g=u(`slidev-drawing-enabled`,!1),_=u(`slidev-drawing-pinned`,!1),v=u(`slidev-drawing-brush`,{color:h[0],size:4,mode:`stylus`}),y=i(!1),b=i(!1),x=i(!1),S=i(!1),C=i(`stylus`),w=r(()=>c.drawings.syncAll||m.value),T=!1,E=r({get(){return C.value},set(e){C.value=e,e===`arrow`?(O.mode=`line`,v.value.arrowEnd=!0):(O.mode=e,v.value.arrowEnd=!1)}}),D=a({brush:v,acceptsInputTypes:r(()=>g.value&&(!c.drawings.presenterOnly||m.value)?void 0:[`pen`]),coordinateTransform:!1}),O=n(oe(D));function k(){O.clear(),w.value&&f(l.value,``)}function A(){x.value=O.canRedo(),b.value=O.canUndo(),S.value=!!O.el?.children.length}function j(e){T=!0;let t=p[e||l.value];t==null?O.clear():O.load(t),A(),T=!1}return O.on(`changed`,()=>{if(A(),!T){let e=O.dump(),t=l.value;(p[t]||``)!==e&&w.value&&f(t,O.dump())}}),d(e=>{T=!0,e[l.value]!=null&&O.load(e[l.value]||``),T=!1,A()}),e(()=>{t(l,()=>{O.mounted&&j()},{immediate:!0})}),O.on(`start`,()=>y.value=!0),O.on(`end`,()=>y.value=!1),window.addEventListener(`keydown`,e=>{if(!g.value||o.value)return;let t=!e.ctrlKey&&!e.altKey&&!e.shiftKey&&!e.metaKey,n=!0;e.code===`KeyZ`&&(e.ctrlKey||e.metaKey)?e.shiftKey?O.redo():O.undo():e.code===`Escape`?g.value=!1:e.code===`KeyL`&&t?E.value=`line`:e.code===`KeyA`&&t?E.value=`arrow`:e.code===`KeyS`&&t?E.value=`stylus`:e.code===`KeyR`&&t?E.value=`rectangle`:e.code===`KeyE`&&t?E.value=`ellipse`:e.code===`KeyC`&&t?k():e.code.startsWith(`Digit`)&&t&&+e.code[5]<=h.length?v.value.color=h[e.code[5]-1]:n=!1,n&&(e.preventDefault(),e.stopPropagation())},!1),{brush:v,brushColors:h,canClear:S,canRedo:x,canUndo:b,clear:k,drauu:O,drauuOptions:D,drawingEnabled:g,drawingMode:E,drawingPinned:_,drawingState:p,isDrawing:y,loadCanvas:j}});export{se as t}; \ No newline at end of file diff --git a/lecture-06/assets/useNav-BKmHNb0y.js b/lecture-06/assets/useNav-BKmHNb0y.js new file mode 100644 index 0000000000000000000000000000000000000000..9ef9b28aec4057af46967ff96a0ec3fd443cada4 --- /dev/null +++ b/lecture-06/assets/useNav-BKmHNb0y.js @@ -0,0 +1,289 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./md-C9wXVVI7.js","./modules/shiki-BFOesOFp.js","./rolldown-runtime-hePW80VL.js","./modules/shiki-BrmBd2_v.css","./_plugin-vue_export-helper-BDNMzG2s.js","./slidev/context-DrkI8qiD.js","./modules/vue-Ymwlffw_.js","./TransformerGlyph-1pDKmZ2i.js","./TransformerGlyph-DdjNaryB.css","./md-CYXxUBJM.css","./md-DNpQYS3v2.js","./interactive-DBHsn3dn.js","./DeckFooter-DkGAACS-.js","./slidev/client-CbOE_Oqt.js","./syncState-BrWO1mSt.js","./index-Cpw8zVhj.js","./index-DoO9FZlh.css","./useDrawings-BgI2o36O.js","./DeckFooter-B6vKMo6W.css","./interactive-D_LX0oud.css","./md-BV7tqBmU.css","./md-_k-qqI-b2.js","./default-D0qxH3Ml.js","./default-DFJXHcku.css","./md-WZPtfMPi.js","./section-C2g2VRmZ.js","./section-BZ9Dfv_4.css","./md-DBZ4ZNDZ.js","./md-j3wOcIFJ.js","./md-CM03SwZB2.js","./Citation-C9LcHAMd.js","./Citation-rca7ok54.css","./md-Bm3b9CdW2.js","./md-PbC-Gdcb.js","./md-D8xEFSrp.js","./md-mDjQpGys.js","./PollSlide-D7L0g784.js","./slidev/VClicks-vSW8X3kW.js","./PollSlide-C7CHIzYm.css","./md-C4XQhgCZ.js","./md-g77gJ0O1.js","./md-BTCxmEyp.js","./slidev/CodeBlockWrapper-DML1LZdj.js","./modules/unplugin-icons-BIrNarL0.js","./md-YS5KSKR-.js","./md-DU3UMtLN.js","./md-BFOvAsJ4.js","./md-kLUlWwwH.js","./md-BtNHnlu_.js","./md-IXSxVTSE.js","./WidgetFrame-D2L0MlKA.js","./WidgetFrame-Czwyd28V.css","./StepButton-BcP33F-1.js","./StepButton-C1ItLUkw.css","./useConvolution-qO1u8ksh.js","./useAttention-Blk0c2BZ.js","./md-CLHejJIP.css","./md-ysBiKM3U2.js","./md-FYipFQ6s2.js","./md-BDUTraAK2.js","./md-s4EEn-QF2.js","./md-7b2m1J_B2.js","./md-DaQ-OIb1.js","./AttentionTrace-C_KtbHkD.js","./AttentionTrace-C6btF5nP.css","./md-CAdO_xwk.js","./md-Cf1i6vqR2.js","./md-C126BC2G2.js","./md-CjJnzJwZ.js","./slidev/KaTexBlockWrapper-BIWk6fjX.js","./md-C9tAdyRG2.js","./md-C0WigTmY2.js","./md-DNxc6YO-.js","./AttentionMatrix-CVQjcu-J.js","./AttentionMatrix-BhYJvquu.css","./md-vAdMI9-n.js","./md-tkCMkcud.js","./md-gdag7RGK.js","./md-DCOqDlYU.js","./md-vcG0m33h.js","./md-1GUuAYm_.js","./md-PWnVlHr_.js","./md-6u9b4JQU.js","./md-BP8VIKZW.js","./md-DfWMIvp7.css","./md-eUhYf2x_.js","./md-CnvRJ1mN.js","./md-BCE9dyfW.js","./md-B1Cw576Z.js","./PositionalEncoding-q3Ic_HFH.js","./PositionalEncoding-CPViPuDW.css","./md-DDoVOpWA.js","./md-CT4etxz_.js","./md-D8gMFzlS.js","./md-5CCz_ZVw.js","./md-SiKeWzPt.js","./md-BtwRUwrk.js","./md-Cxufebwy.js","./md-JPtrd3GK.js","./md-DDmUvyDN.js","./TransformerBlock-D6V5Q80S.js","./TransformerBlock-DhsPSwrk.css","./md-CaDnN9B_.js","./md-CMThHG1f.js","./md-BEoc4J_E.js","./md-DohhfnAx.js","./md-DfuGfQI7.js","./md-Dsg5P6cy.js","./md-CL5c_uia.js","./md-DaqDHUDT.js","./md-Bs7Gg5Ru.js","./md-DqiQvtl5.css","./md-BdyJtiOm.js","./md-nCQDOxi82.js","./md-Cbph3Njd2.js","./md-HVd104bH.js","./md-BVq0H9oi2.js","./md-NHOGCiGQ2.js","./md-D-b84-tV2.js","./md-Ba46XhX62.js","./md-BnhBsnM82.js","./md-CSkGT_Uj2.js","./md-DhS9jtua2.js","./md-Cp4p0FvF.css","./md-BLU60Dt22.js","./md-Lle3pslo.js","./md-BD00LdYU2.js","./md-gQoVXORd2.js","./md-CKlB9Opp2.js","./md-Be8ibFbg2.js","./md-D8a00Bf42.js","./md-BIcSKdBe2.js","./md-CkohBpnc2.js","./md-B9ulHjpP2.js","./md-Cyq9FsHK2.js","./md-BYSwjGyl2.js","./md-ov3WBxt42.js","./md-pskFIDqA.js","./md-CXs_gtmt.js","./md-D3p7ARYp.js","./md-xvI7ct9A.js","./md-BpsoksUK.js","./md-DDJqW7HE.js","./md-CiM72IUq.js","./md-CA1qi8QW.js","./md-CqtL3tHC.js","./md-B7GUUxxz.js","./md-DjaYpOUh.js","./md-cJlzjNnc.js","./md-CYuR5Uhz.js","./md-DHcp8en9.js","./md-De1GYs9G.js","./md-jgfmjZh3.js","./md-M-PCU6Sz.js","./md-BAhUxKK3.js","./md-cpUlN5wY.js","./md-DhZ23yU-.css","./md-Clm9NgPD.js","./md-D26z4SFE.js","./md-DE2QGCpb.css"])))=>i.map(i=>d[i]); +import{C as e,L as t,N as n,O as r,R as i,Y as a,_ as o,_t as s,b as c,ft as l,g as u,gt as ee,lt as d,m as f,pt as te,rt as ne,st as p,ut as m,w as re,xt as ie,y as ae,z as oe}from"./modules/shiki-BFOesOFp.js";import{t as se}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{A as ce,B as le,D as ue,E as de,L as fe,V as pe,_ as me,a as he,c as ge,g as h,h as _e,j as ve,l as ye}from"./modules/vue-Ymwlffw_.js";import{l as be,y as xe}from"./slidev/context-DrkI8qiD.js";function Se(e,t,n){return Math.min(n,Math.max(t,e))}function Ce(...e){return Te(e).reduce((e,t)=>e+t,0)}function we(e){return e??=[],Array.isArray(e)?e:[e]}function Te(e){return we(e).flat(1)}function Ee(e){return Array.from(new Set(e))}function De(...e){let t,n,r;e.length===1?(t=0,r=1,[n]=e):[t,n,r=1]=e;let i=[],a=t;for(;at(e,n)).filter(Oe))}var g={theme:`dl2026`,title:`Transformers`,titleTemplate:`%s - Slidev`,addons:[`dl2026`],remoteAssets:!1,monaco:!0,monacoTypesSource:`local`,monacoTypesAdditionalPackages:[],monacoTypesIgnorePackages:[],monacoRunAdditionalDeps:[],monacoRunUseStrict:!0,download:`./slides.pdf`,export:{},info:`

PGR207 Deep Learning 2026 — Lecture 06

+`,highlighter:`shiki`,twoslash:!0,lineNumbers:!1,colorSchema:`auto`,routerMode:`hash`,aspectRatio:1.7777777777777777,canvasWidth:980,exportFilename:``,selectable:!1,themeConfig:{courseCode:`PGR207`,lecture:`06`,lectureTitle:`Transformers`},fonts:{sans:[`"Inter"`,`ui-sans-serif`,`system-ui`,`-apple-system`,`BlinkMacSystemFont`,`"Segoe UI"`,`Roboto`,`"Helvetica Neue"`,`Arial`,`"Noto Sans"`,`sans-serif`,`"Apple Color Emoji"`,`"Segoe UI Emoji"`,`"Segoe UI Symbol"`,`"Noto Color Emoji"`],serif:[`"Source Serif 4"`,`ui-serif`,`Georgia`,`Cambria`,`"Times New Roman"`,`Times`,`serif`],mono:[`"JetBrains Mono"`,`ui-monospace`,`SFMono-Regular`,`Menlo`,`Monaco`,`Consolas`,`"Liberation Mono"`,`"Courier New"`,`monospace`],webfonts:[`Inter`,`Source Serif 4`,`JetBrains Mono`],provider:`google`,local:[],italic:!1,weights:[`200`,`400`,`600`]},favicon:`https://cdn.jsdelivr.net/gh/slidevjs/slidev/assets/favicon.png`,drawings:{enabled:!0,persist:!1,presenterOnly:!1,syncAll:!0},plantUmlServer:`https://www.plantuml.com/plantuml`,codeCopy:!0,magicMoveCopy:!0,author:`Vajira Thambawita`,record:`dev`,css:`unocss`,presenter:!0,browserExporter:`dev`,htmlAttrs:{},transition:`slide-left`,editor:!0,mcp:!0,contextMenu:null,wakeLock:!0,pwa:!1,mdc:!0,comark:!1,seoMeta:{},notesAutoRuby:{},duration:`30min`,timer:`stopwatch`,magicMoveDuration:800,preloadImages:!0,clickAnimation:``,layout:`title`,courseCode:`PGR207`,lecture:`06`,email:`vajira@simula.no`,slidesTitle:`Transformers - Slidev`},Ae=`build`,je=u(()=>g.aspectRatio),Me=u(()=>g.canvasWidth),Ne=u(()=>Math.ceil(Me.value/je.value)),Pe=u(()=>ke(g.themeConfig||{},(e,t)=>[`--slidev-theme-${e}`,t])),Fe=g.slidesTitle,Ie=`./#/`,Le=`modulepreload`,Re=function(e,t){return new URL(e,t).href},ze={},_=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=Re(t,n),t=s(t),t in ze)return;ze[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:Le,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};function Be(e){if(e===!1||e===`false`)return null;if(e==null||e===!0||e===`true`)return`+1`;if(typeof e==`string`&&`+-`.includes(e[0]))return e;let t=+e;return Number.isNaN(t)?(console.error(`Invalid "at" prop value: ${e}`),null):t<=0?(console.warn(`[Slidev] "at" prop value must be greater than 0, but got ${e}, has been set to 1`),1):t}function Ve(e){return Array.isArray(e)?[Be(e[0]),Be(e[1])]:null}function He(e,n=0,r){let a=d(!1),o=new Map,s=new Map,c={get current(){return Se(+e.value,n,c.total)},set current(t){e.value=a.value?Se(t,n,c.total):t},clicksStart:n,get relativeSizeMap(){return o},get maxMap(){return s},get isMounted(){return a.value},setup(){t(()=>{a.value=!0,s=m(s),ne(e)||(c.current=e.value)}),i(()=>{a.value=!1,o=new Map,s=new Map})},calculateSince(e,t=1){let n=Be(e);if(n==null)return null;let r,i,a;if(typeof n==`string`){let e=c.currentOffset,o=+n;r=e+o,i=e+o+t-1,a=o+t-1}else r=n,i=n+t-1,a=0;return{start:r,end:1/0,max:i,delta:a,currentOffset:u(()=>c.current-r),isCurrent:u(()=>c.current===r),isActive:u(()=>c.current>=r)}},calculateRange(e){let t=Ve(e);if(t==null)return null;let[n,r]=t,i,a,o;return typeof n==`string`?(i=c.currentOffset+ +n,o=+n):(i=n,o=0),typeof r==`string`?(a=i+ +r,o+=+r):a=r,{start:i,end:a,max:a,delta:o,currentOffset:u(()=>c.current-i),isCurrent:u(()=>c.current===i),isActive:u(()=>i<=c.current&&c.currentee(t),e=>{r.value=Math.max(e,n)}),He(r,n,e?.meta?.clicks)}var We=/[a-z]/i;function Ge(e){if(typeof e==`number`)return{seconds:e,relative:!1};let t=e.startsWith(`+`);t&&(e=e.slice(1));let n=0;if(e.includes(`:`)){let t=e.split(`:`).map(Number),r=0,i=0,a=0;if(t.length===3)r=t[0],i=t[1],a=t[2];else if(t.length===2)i=t[0],a=t[1];else if(t.length===1)a=t[0];else throw TypeError(`Invalid timestamp format`);if(Number.isNaN(r)||Number.isNaN(i)||Number.isNaN(a))throw TypeError(`Invalid timestamp format`);n=(r||0)*3600+(i||0)*60+(a||0)}else if(!We.test(e))n=Number(e);else{let t={s:1,sec:1,secs:1,m:60,min:60,mins:60,h:3600,hr:3600,hrs:3600,hour:3600,hours:3600,day:86400,days:86400,week:604800,weeks:604800,month:2629746,months:2629746,year:31556952,years:31556952},r=/([\d.]+)([a-z]+)/gi,i=e.matchAll(r);if(i)for(let e of i){let r=Number(e[1]);if(Number.isNaN(r))throw TypeError(`Invalid timestamp value: ${e[1]}`);let i=e[2].toLowerCase();if(!(i in t))throw TypeError(`Invalid timestamp unit: ${i}`);n+=r*t[i]}let a=e.replace(r,``).trim();if(a)throw TypeError(`Unknown timestamp remaining: ${a}`)}return{seconds:n,relative:t}}function Ke(e,t){if(!t||t===`all`||t===`*`)return De(1,e+1);if(t===`none`)return[];let n=[];for(let r of t.split(/[,;]/g))if(!r.includes(`-`))n.push(+r);else{let[t,i]=r.split(`-`,2);n.push(...De(+t,i?+i+1:e+1))}return Ee(n).filter(t=>t<=e).sort((e,t)=>e-t)}var qe={},Je={class:`px-4 py-10 text-center text-red-700 dark:text-red-500 font-bold font-mono`};function Ye(e,t){return oe(),c(`div`,Je,ie(`Failed to fetch this slide. Please check your network connection.`))}var v=se(qe,[[`render`,Ye]]),Xe={class:`h-full w-full flex items-center justify-center gap-2 slidev-slide-loading`},Ze=re({__name:`SlideLoading`,setup(e){let n=d(!1);return t(()=>{setTimeout(()=>{n.value=!0},200)}),(e,t)=>(oe(),c(`div`,Xe,[n.value?(oe(),c(f,{key:0},[t[0]||=o(`div`,{class:`i-svg-spinners-90-ring-with-bg text-xl`},null,-1),t[1]||=o(`div`,null,`Loading slide...`,-1)],64)):ae(`v-if`,!0)]))}}),y=p({theme:`dl2026`,addons:[`dl2026`],title:`Transformers`,info:`PGR207 Deep Learning 2026 — Lecture 06`,author:`Vajira Thambawita`,routerMode:`hash`,transition:`slide-left`,mdc:!0,themeConfig:{courseCode:`PGR207`,lecture:`06`,lectureTitle:`Transformers`},layout:`title`,courseCode:`PGR207`,lecture:`06`,email:`vajira@simula.no`}),Qe=m({get layout(){return y.layout},get transition(){return y.transition},get class(){return y.class},get clicks(){return y.clicks},get name(){return y.name},get preload(){return y.preload},slide:{content:``,revision:`-y52v89`,frontmatterRaw:`theme: dl2026 +addons: + - dl2026 +title: Transformers +info: PGR207 Deep Learning 2026 — Lecture 06 +author: Vajira Thambawita +routerMode: hash +transition: slide-left +mdc: true +themeConfig: + courseCode: PGR207 + lecture: "06" + lectureTitle: Transformers +layout: title +courseCode: PGR207 +lecture: "06" +email: vajira@simula.no +`,note:``,title:`Transformers`,index:0,noteHTML:``,images:[],raw:``,frontmatter:y,filepath:``,start:0,sourceIndex:0,id:0,no:1},__clicksContext:null,__preloaded:!1}),b=p({layout:`interactive`,core:!0,heading:`Where we are`,title:`Where we are`,"aside-width":`15rem`}),$e=m({get layout(){return b.layout},get transition(){return b.transition},get class(){return b.class},get clicks(){return b.clicks},get name(){return b.name},get preload(){return b.preload},slide:{content:``,revision:`qwdzey`,frontmatterRaw:`layout: interactive +core: true +heading: Where we are +title: Where we are +aside-width: 15rem +`,note:``,title:`Where we are`,index:1,noteHTML:``,images:[],raw:``,frontmatter:b,filepath:``,start:58,sourceIndex:1,id:1,no:2},__clicksContext:null,__preloaded:!1}),x=p({layout:`default`,title:`In words: Where we are`}),et=m({get layout(){return x.layout},get transition(){return x.transition},get class(){return x.class},get clicks(){return x.clicks},get name(){return x.name},get preload(){return x.preload},slide:{content:``,revision:`-au1ddw`,frontmatterRaw:`layout: default +title: "In words: Where we are" +`,note:``,title:`In words: Where we are`,index:2,noteHTML:``,images:[],raw:``,frontmatter:x,filepath:``,start:92,sourceIndex:2,id:2,no:3},__clicksContext:null,__preloaded:!1}),S=p({layout:`section`,index:`00`}),tt=m({get layout(){return S.layout},get transition(){return S.transition},get class(){return S.class},get clicks(){return S.clicks},get name(){return S.name},get preload(){return S.preload},slide:{content:``,revision:`-n8hlte`,frontmatterRaw:`layout: section +index: "00" +`,note:``,title:`Delete the recurrence`,level:1,index:3,noteHTML:``,images:[],raw:``,frontmatter:S,filepath:``,start:119,sourceIndex:3,id:3,no:4},__clicksContext:null,__preloaded:!1}),C=p({layout:`default`,core:!0,title:`Where last week stopped`}),nt=m({get layout(){return C.layout},get transition(){return C.transition},get class(){return C.class},get clicks(){return C.clicks},get name(){return C.name},get preload(){return C.preload},slide:{content:``,revision:`k6l240`,frontmatterRaw:`layout: default +core: true +title: Where last week stopped +`,note:``,title:`Where last week stopped`,index:4,noteHTML:``,images:[],raw:``,frontmatter:C,filepath:``,start:141,sourceIndex:4,id:4,no:5},__clicksContext:null,__preloaded:!1}),w=p({layout:`default`,title:`In words: Where last week stopped`}),rt=m({get layout(){return w.layout},get transition(){return w.transition},get class(){return w.class},get clicks(){return w.clicks},get name(){return w.name},get preload(){return w.preload},slide:{content:``,revision:`-t6az9x`,frontmatterRaw:`layout: default +title: "In words: Where last week stopped" +`,note:``,title:`In words: Where last week stopped`,index:5,noteHTML:``,images:[],raw:``,frontmatter:w,filepath:``,start:243,sourceIndex:5,id:5,no:6},__clicksContext:null,__preloaded:!1}),T=p({layout:`default`,core:!0,title:`The move`}),it=m({get layout(){return T.layout},get transition(){return T.transition},get class(){return T.class},get clicks(){return T.clicks},get name(){return T.name},get preload(){return T.preload},slide:{content:``,revision:`b9nv34`,frontmatterRaw:`layout: default +core: true +title: The move +`,note:``,title:`The move`,index:6,noteHTML:``,images:[],raw:``,frontmatter:T,filepath:``,start:274,sourceIndex:6,id:6,no:7},__clicksContext:null,__preloaded:!1}),E=p({layout:`default`,title:`In words: The move`}),at=m({get layout(){return E.layout},get transition(){return E.transition},get class(){return E.class},get clicks(){return E.clicks},get name(){return E.name},get preload(){return E.preload},slide:{content:``,revision:`tnnsnz`,frontmatterRaw:`layout: default +title: "In words: The move" +`,note:``,title:`In words: The move`,index:7,noteHTML:``,images:[],raw:``,frontmatter:E,filepath:``,start:370,sourceIndex:7,id:7,no:8},__clicksContext:null,__preloaded:!1}),D=p({layout:`default`,core:!0,title:`What a transformer is`}),ot=m({get layout(){return D.layout},get transition(){return D.transition},get class(){return D.class},get clicks(){return D.clicks},get name(){return D.name},get preload(){return D.preload},slide:{content:``,revision:`-9kwb3p`,frontmatterRaw:`layout: default +core: true +title: What a transformer is +`,note:``,title:`What a transformer is`,index:8,noteHTML:``,images:[],raw:``,frontmatter:D,filepath:``,start:398,sourceIndex:8,id:8,no:9},__clicksContext:null,__preloaded:!1}),O=p({layout:`default`,title:`In words: What a transformer is`}),st=m({get layout(){return O.layout},get transition(){return O.transition},get class(){return O.class},get clicks(){return O.clicks},get name(){return O.name},get preload(){return O.preload},slide:{content:``,revision:`-ykjsi6`,frontmatterRaw:`layout: default +title: "In words: What a transformer is" +`,note:``,title:`In words: What a transformer is`,index:9,noteHTML:``,images:[],raw:``,frontmatter:O,filepath:``,start:489,sourceIndex:9,id:9,no:10},__clicksContext:null,__preloaded:!1}),k=p({layout:`default`,core:!0,title:`Poll: which wall attention solves`}),ct=m({get layout(){return k.layout},get transition(){return k.transition},get class(){return k.class},get clicks(){return k.clicks},get name(){return k.name},get preload(){return k.preload},slide:{content:``,revision:`-1xcu6e`,frontmatterRaw:`layout: default +core: true +title: "Poll: which wall attention solves" +`,note:``,title:`Poll: which wall attention solves`,index:10,noteHTML:``,images:[],raw:``,frontmatter:k,filepath:``,start:519,sourceIndex:10,id:10,no:11},__clicksContext:null,__preloaded:!1}),A=p({layout:`default`,title:`In words: which wall attention solves`}),lt=m({get layout(){return A.layout},get transition(){return A.transition},get class(){return A.class},get clicks(){return A.clicks},get name(){return A.name},get preload(){return A.preload},slide:{content:``,revision:`-aj50ie`,frontmatterRaw:`layout: default +title: "In words: which wall attention solves" +`,note:``,title:`In words: which wall attention solves`,index:11,noteHTML:``,images:[],raw:``,frontmatter:A,filepath:``,start:600,sourceIndex:11,id:11,no:12},__clicksContext:null,__preloaded:!1}),j=p({layout:`section`,index:`01`}),ut=m({get layout(){return j.layout},get transition(){return j.transition},get class(){return j.class},get clicks(){return j.clicks},get name(){return j.name},get preload(){return j.preload},slide:{content:``,revision:`-72a22j`,frontmatterRaw:`layout: section +index: "01" +`,note:``,title:`Query, key, value`,level:1,index:12,noteHTML:``,images:[],raw:``,frontmatter:j,filepath:``,start:626,sourceIndex:12,id:12,no:13},__clicksContext:null,__preloaded:!1}),M=p({layout:`default`,core:!0,title:`Start from a lookup`}),dt=m({get layout(){return M.layout},get transition(){return M.transition},get class(){return M.class},get clicks(){return M.clicks},get name(){return M.name},get preload(){return M.preload},slide:{content:``,revision:`-9gzigd`,frontmatterRaw:`layout: default +core: true +title: Start from a lookup +`,note:``,title:`Start from a lookup`,index:13,noteHTML:``,images:[],raw:``,frontmatter:M,filepath:``,start:648,sourceIndex:13,id:13,no:14},__clicksContext:null,__preloaded:!1}),N=p({layout:`default`,title:`In words: Start from a lookup`}),ft=m({get layout(){return N.layout},get transition(){return N.transition},get class(){return N.class},get clicks(){return N.clicks},get name(){return N.name},get preload(){return N.preload},slide:{content:``,revision:`iqloma`,frontmatterRaw:`layout: default +title: "In words: Start from a lookup" +`,note:``,title:`In words: Start from a lookup`,index:14,noteHTML:``,images:[],raw:``,frontmatter:N,filepath:``,start:763,sourceIndex:14,id:14,no:15},__clicksContext:null,__preloaded:!1}),P=p({layout:`default`,core:!0,title:`Three roles, one vector`}),pt=m({get layout(){return P.layout},get transition(){return P.transition},get class(){return P.class},get clicks(){return P.clicks},get name(){return P.name},get preload(){return P.preload},slide:{content:``,revision:`2jrf8k`,frontmatterRaw:`layout: default +core: true +title: Three roles, one vector +`,note:``,title:`Three roles, one vector`,index:15,noteHTML:``,images:[],raw:``,frontmatter:P,filepath:``,start:792,sourceIndex:15,id:15,no:16},__clicksContext:null,__preloaded:!1}),F=p({layout:`default`,title:`In words: Three roles, one vector`}),mt=m({get layout(){return F.layout},get transition(){return F.transition},get class(){return F.class},get clicks(){return F.clicks},get name(){return F.name},get preload(){return F.preload},slide:{content:``,revision:`mp86ni`,frontmatterRaw:`layout: default +title: "In words: Three roles, one vector" +`,note:``,title:`In words: Three roles, one vector`,index:16,noteHTML:``,images:[],raw:``,frontmatter:F,filepath:``,start:864,sourceIndex:16,id:16,no:17},__clicksContext:null,__preloaded:!1}),I=p({layout:`default`,core:!0,title:`The sentence we will use all lecture`}),ht=m({get layout(){return I.layout},get transition(){return I.transition},get class(){return I.class},get clicks(){return I.clicks},get name(){return I.name},get preload(){return I.preload},slide:{content:``,revision:`oumu2v`,frontmatterRaw:`layout: default +core: true +title: The sentence we will use all lecture +`,note:``,title:`The sentence we will use all lecture`,index:17,noteHTML:``,images:[],raw:``,frontmatter:I,filepath:``,start:892,sourceIndex:17,id:17,no:18},__clicksContext:null,__preloaded:!1}),L=p({layout:`default`,title:`In words: The sentence we will use all lecture`}),gt=m({get layout(){return L.layout},get transition(){return L.transition},get class(){return L.class},get clicks(){return L.clicks},get name(){return L.name},get preload(){return L.preload},slide:{content:``,revision:`-yo4pt7`,frontmatterRaw:`layout: default +title: "In words: The sentence we will use all lecture" +`,note:``,title:`In words: The sentence we will use all lecture`,index:18,noteHTML:``,images:[],raw:``,frontmatter:L,filepath:``,start:995,sourceIndex:18,id:18,no:19},__clicksContext:null,__preloaded:!1}),R=p({layout:`interactive`,core:!0,heading:`Three lenses on one word`,title:`Three lenses on one word`,"aside-width":`17rem`}),_t=m({get layout(){return R.layout},get transition(){return R.transition},get class(){return R.class},get clicks(){return R.clicks},get name(){return R.name},get preload(){return R.preload},slide:{content:``,revision:`-hyjd9h`,frontmatterRaw:`layout: interactive +core: true +heading: Three lenses on one word +title: Three lenses on one word +aside-width: 17rem +`,note:``,title:`Three lenses on one word`,index:19,noteHTML:``,images:[],raw:``,frontmatter:R,filepath:``,start:1022,sourceIndex:19,id:19,no:20},__clicksContext:null,__preloaded:!1}),z=p({layout:`default`,title:`In words: Three lenses on one word`}),vt=m({get layout(){return z.layout},get transition(){return z.transition},get class(){return z.class},get clicks(){return z.clicks},get name(){return z.name},get preload(){return z.preload},slide:{content:``,revision:`-jkcrwp`,frontmatterRaw:`layout: default +title: "In words: Three lenses on one word" +`,note:``,title:`In words: Three lenses on one word`,index:20,noteHTML:``,images:[],raw:``,frontmatter:z,filepath:``,start:1070,sourceIndex:20,id:20,no:21},__clicksContext:null,__preloaded:!1}),B=p({layout:`default`,title:`Why a key and a value are different things`}),yt=m({get layout(){return B.layout},get transition(){return B.transition},get class(){return B.class},get clicks(){return B.clicks},get name(){return B.name},get preload(){return B.preload},slide:{content:``,revision:`-txh33f`,frontmatterRaw:`layout: default +title: Why a key and a value are different things +`,note:``,title:`Why a key and a value are different things`,index:21,noteHTML:``,images:[],raw:``,frontmatter:B,filepath:``,start:1097,sourceIndex:21,id:21,no:22},__clicksContext:null,__preloaded:!1}),V=p({layout:`default`,title:`In words: Why a key and a value are different things`}),bt=m({get layout(){return V.layout},get transition(){return V.transition},get class(){return V.class},get clicks(){return V.clicks},get name(){return V.name},get preload(){return V.preload},slide:{content:``,revision:`7k4tkv`,frontmatterRaw:`layout: default +title: "In words: Why a key and a value are different things" +`,note:``,title:`In words: Why a key and a value are different things`,index:22,noteHTML:``,images:[],raw:``,frontmatter:V,filepath:``,start:1182,sourceIndex:22,id:22,no:23},__clicksContext:null,__preloaded:!1}),H=p({layout:`default`,core:!0,title:`Four steps, and that is the whole mechanism`}),xt=m({get layout(){return H.layout},get transition(){return H.transition},get class(){return H.class},get clicks(){return H.clicks},get name(){return H.name},get preload(){return H.preload},slide:{content:``,revision:`fw173h`,frontmatterRaw:`layout: default +core: true +title: Four steps, and that is the whole mechanism +`,note:``,title:`Four steps, and that is the whole mechanism`,index:23,noteHTML:``,images:[],raw:``,frontmatter:H,filepath:``,start:1205,sourceIndex:23,id:23,no:24},__clicksContext:null,__preloaded:!1}),U=p({layout:`default`,title:`In words: Four steps, and that is the whole mechanism`}),St=m({get layout(){return U.layout},get transition(){return U.transition},get class(){return U.class},get clicks(){return U.clicks},get name(){return U.name},get preload(){return U.preload},slide:{content:``,revision:`gsm4u7`,frontmatterRaw:`layout: default +title: "In words: Four steps, and that is the whole mechanism" +`,note:``,title:`In words: Four steps, and that is the whole mechanism`,index:24,noteHTML:``,images:[],raw:``,frontmatter:U,filepath:``,start:1295,sourceIndex:24,id:24,no:25},__clicksContext:null,__preloaded:!1}),W=p({layout:`interactive`,heading:`One output vector, five lines`,title:`One output vector, five lines`,"aside-width":`18rem`}),Ct=m({get layout(){return W.layout},get transition(){return W.transition},get class(){return W.class},get clicks(){return W.clicks},get name(){return W.name},get preload(){return W.preload},slide:{content:``,revision:`z4vek1`,frontmatterRaw:`layout: interactive +heading: One output vector, five lines +title: One output vector, five lines +aside-width: 18rem +`,note:``,title:`One output vector, five lines`,index:25,noteHTML:``,images:[],raw:``,frontmatter:W,filepath:``,start:1325,sourceIndex:25,id:25,no:26},__clicksContext:null,__preloaded:!1}),G=p({layout:`default`,title:`In words: One output vector, five lines`}),wt=m({get layout(){return G.layout},get transition(){return G.transition},get class(){return G.class},get clicks(){return G.clicks},get name(){return G.name},get preload(){return G.preload},slide:{content:``,revision:`-vbgz4s`,frontmatterRaw:`layout: default +title: "In words: One output vector, five lines" +`,note:``,title:`In words: One output vector, five lines`,index:26,noteHTML:``,images:[],raw:``,frontmatter:G,filepath:``,start:1372,sourceIndex:26,id:26,no:27},__clicksContext:null,__preloaded:!1}),K=p({layout:`interactive`,core:!0,heading:`Same word, same weights, different neighbour`,title:`Same word, same weights, different neighbour`,"aside-width":`18rem`}),Tt=m({get layout(){return K.layout},get transition(){return K.transition},get class(){return K.class},get clicks(){return K.clicks},get name(){return K.name},get preload(){return K.preload},slide:{content:``,revision:`cerqj5`,frontmatterRaw:`layout: interactive +core: true +heading: Same word, same weights, different neighbour +title: Same word, same weights, different neighbour +aside-width: 18rem +`,note:``,title:`Same word, same weights, different neighbour`,index:27,noteHTML:``,images:[],raw:``,frontmatter:K,filepath:``,start:1400,sourceIndex:27,id:27,no:28},__clicksContext:null,__preloaded:!1}),q=p({layout:`default`,title:`In words: Same word, same weights, different neighbour`}),Et=m({get layout(){return q.layout},get transition(){return q.transition},get class(){return q.class},get clicks(){return q.clicks},get name(){return q.name},get preload(){return q.preload},slide:{content:``,revision:`9309fe`,frontmatterRaw:`layout: default +title: "In words: Same word, same weights, different neighbour" +`,note:``,title:`In words: Same word, same weights, different neighbour`,index:28,noteHTML:``,images:[],raw:``,frontmatter:q,filepath:``,start:1447,sourceIndex:28,id:28,no:29},__clicksContext:null,__preloaded:!1}),J=p({layout:`default`,title:`Why divide by the square root`}),Dt=m({get layout(){return J.layout},get transition(){return J.transition},get class(){return J.class},get clicks(){return J.clicks},get name(){return J.name},get preload(){return J.preload},slide:{content:``,revision:`kiabe`,frontmatterRaw:`layout: default +title: Why divide by the square root +`,note:``,title:`Why divide by the square root`,index:29,noteHTML:``,images:[],raw:``,frontmatter:J,filepath:``,start:1474,sourceIndex:29,id:29,no:30},__clicksContext:null,__preloaded:!1}),Ot=p({layout:`default`,title:`Reading the equation: scaled scores`}),kt=m({get layout(){return Ot.layout},get transition(){return Ot.transition},get class(){return Ot.class},get clicks(){return Ot.clicks},get name(){return Ot.name},get preload(){return Ot.preload},slide:{content:``,revision:`-bypgth`,frontmatterRaw:`layout: default +title: "Reading the equation: scaled scores" +`,note:``,title:`Reading the equation: scaled scores`,index:30,noteHTML:``,images:[],raw:``,frontmatter:Ot,filepath:``,start:1577,sourceIndex:30,id:30,no:31},__clicksContext:null,__preloaded:!1}),At=p({layout:`default`,title:`In words: Why divide by the square root`}),jt=m({get layout(){return At.layout},get transition(){return At.transition},get class(){return At.class},get clicks(){return At.clicks},get name(){return At.name},get preload(){return At.preload},slide:{content:``,revision:`-oot3xo`,frontmatterRaw:`layout: default +title: "In words: Why divide by the square root" +`,note:``,title:`In words: Why divide by the square root`,index:31,noteHTML:``,images:[],raw:``,frontmatter:At,filepath:``,start:1656,sourceIndex:31,id:31,no:32},__clicksContext:null,__preloaded:!1}),Mt=p({layout:`interactive`,core:!0,heading:`Every query at once`,title:`Every query at once`,"aside-width":`18rem`}),Nt=m({get layout(){return Mt.layout},get transition(){return Mt.transition},get class(){return Mt.class},get clicks(){return Mt.clicks},get name(){return Mt.name},get preload(){return Mt.preload},slide:{content:``,revision:`ncsu25`,frontmatterRaw:`layout: interactive +core: true +heading: Every query at once +title: Every query at once +aside-width: 18rem +`,note:``,title:`Every query at once`,index:32,noteHTML:``,images:[],raw:``,frontmatter:Mt,filepath:``,start:1686,sourceIndex:32,id:32,no:33},__clicksContext:null,__preloaded:!1}),Pt=p({layout:`default`,title:`In words: Every query at once`}),Ft=m({get layout(){return Pt.layout},get transition(){return Pt.transition},get class(){return Pt.class},get clicks(){return Pt.clicks},get name(){return Pt.name},get preload(){return Pt.preload},slide:{content:``,revision:`-rl0pcl`,frontmatterRaw:`layout: default +title: "In words: Every query at once" +`,note:``,title:`In words: Every query at once`,index:33,noteHTML:``,images:[],raw:``,frontmatter:Pt,filepath:``,start:1733,sourceIndex:33,id:33,no:34},__clicksContext:null,__preloaded:!1}),It=p({layout:`default`,core:!0,title:`The whole layer, in one line`}),Lt=m({get layout(){return It.layout},get transition(){return It.transition},get class(){return It.class},get clicks(){return It.clicks},get name(){return It.name},get preload(){return It.preload},slide:{content:``,revision:`-zhllks`,frontmatterRaw:`layout: default +core: true +title: The whole layer, in one line +`,note:``,title:`The whole layer, in one line`,index:34,noteHTML:``,images:[],raw:``,frontmatter:It,filepath:``,start:1760,sourceIndex:34,id:34,no:35},__clicksContext:null,__preloaded:!1}),Rt=p({layout:`default`,title:`In words: The whole layer, in one line`}),zt=m({get layout(){return Rt.layout},get transition(){return Rt.transition},get class(){return Rt.class},get clicks(){return Rt.clicks},get name(){return Rt.name},get preload(){return Rt.preload},slide:{content:``,revision:`hl0dow`,frontmatterRaw:`layout: default +title: "In words: The whole layer, in one line" +`,note:``,title:`In words: The whole layer, in one line`,index:35,noteHTML:``,images:[],raw:``,frontmatter:Rt,filepath:``,start:1850,sourceIndex:35,id:35,no:36},__clicksContext:null,__preloaded:!1}),Bt=p({layout:`default`,title:`Poll: where self-attention's keys come from`}),Vt=m({get layout(){return Bt.layout},get transition(){return Bt.transition},get class(){return Bt.class},get clicks(){return Bt.clicks},get name(){return Bt.name},get preload(){return Bt.preload},slide:{content:``,revision:`-6z8u5`,frontmatterRaw:`layout: default +title: "Poll: where self-attention's keys come from" +`,note:``,title:`Poll: where self-attention's keys come from`,index:36,noteHTML:``,images:[],raw:``,frontmatter:Bt,filepath:``,start:1878,sourceIndex:36,id:36,no:37},__clicksContext:null,__preloaded:!1}),Ht=p({layout:`default`,title:`In words: Where self-attention's keys come from`}),Ut=m({get layout(){return Ht.layout},get transition(){return Ht.transition},get class(){return Ht.class},get clicks(){return Ht.clicks},get name(){return Ht.name},get preload(){return Ht.preload},slide:{content:``,revision:`hncqrp`,frontmatterRaw:`layout: default +title: "In words: Where self-attention's keys come from" +`,note:``,title:`In words: Where self-attention's keys come from`,index:37,noteHTML:``,images:[],raw:``,frontmatter:Ht,filepath:``,start:1960,sourceIndex:37,id:37,no:38},__clicksContext:null,__preloaded:!1}),Wt=p({layout:`section`,index:`02`}),Gt=m({get layout(){return Wt.layout},get transition(){return Wt.transition},get class(){return Wt.class},get clicks(){return Wt.clicks},get name(){return Wt.name},get preload(){return Wt.preload},slide:{content:``,revision:`-pib9ba`,frontmatterRaw:`layout: section +index: "02" +`,note:``,title:`From one head to one block`,level:1,index:38,noteHTML:``,images:[],raw:``,frontmatter:Wt,filepath:``,start:1986,sourceIndex:38,id:38,no:39},__clicksContext:null,__preloaded:!1}),Kt=p({layout:`default`,core:!0,title:`One softmax can only point at one thing`}),qt=m({get layout(){return Kt.layout},get transition(){return Kt.transition},get class(){return Kt.class},get clicks(){return Kt.clicks},get name(){return Kt.name},get preload(){return Kt.preload},slide:{content:``,revision:`-gbscpj`,frontmatterRaw:`layout: default +core: true +title: One softmax can only point at one thing +`,note:``,title:`One softmax can only point at one thing`,index:39,noteHTML:``,images:[],raw:``,frontmatter:Kt,filepath:``,start:2010,sourceIndex:39,id:39,no:40},__clicksContext:null,__preloaded:!1}),Jt=p({layout:`default`,title:`In words: One softmax can only point at one thing`}),Yt=m({get layout(){return Jt.layout},get transition(){return Jt.transition},get class(){return Jt.class},get clicks(){return Jt.clicks},get name(){return Jt.name},get preload(){return Jt.preload},slide:{content:``,revision:`xcf73y`,frontmatterRaw:`layout: default +title: "In words: One softmax can only point at one thing" +`,note:``,title:`In words: One softmax can only point at one thing`,index:40,noteHTML:``,images:[],raw:``,frontmatter:Jt,filepath:``,start:2081,sourceIndex:40,id:40,no:41},__clicksContext:null,__preloaded:!1}),Xt=p({layout:`interactive`,core:!0,heading:`Four heads, one question each`,title:`Four heads, one question each`,"aside-width":`17rem`}),Zt=m({get layout(){return Xt.layout},get transition(){return Xt.transition},get class(){return Xt.class},get clicks(){return Xt.clicks},get name(){return Xt.name},get preload(){return Xt.preload},slide:{content:``,revision:`f87tka`,frontmatterRaw:`layout: interactive +core: true +heading: Four heads, one question each +title: Four heads, one question each +aside-width: 17rem +`,note:``,title:`Four heads, one question each`,index:41,noteHTML:``,images:[],raw:``,frontmatter:Xt,filepath:``,start:2106,sourceIndex:41,id:41,no:42},__clicksContext:null,__preloaded:!1}),Qt=p({layout:`default`,title:`In words: Four heads, one question each`}),$t=m({get layout(){return Qt.layout},get transition(){return Qt.transition},get class(){return Qt.class},get clicks(){return Qt.clicks},get name(){return Qt.name},get preload(){return Qt.preload},slide:{content:``,revision:`2i9we8`,frontmatterRaw:`layout: default +title: "In words: Four heads, one question each" +`,note:``,title:`In words: Four heads, one question each`,index:42,noteHTML:``,images:[],raw:``,frontmatter:Qt,filepath:``,start:2161,sourceIndex:42,id:42,no:43},__clicksContext:null,__preloaded:!1}),en=p({layout:`default`,title:`Heads are free`}),tn=m({get layout(){return en.layout},get transition(){return en.transition},get class(){return en.class},get clicks(){return en.clicks},get name(){return en.name},get preload(){return en.preload},slide:{content:``,revision:`-1qlyjn`,frontmatterRaw:`layout: default +title: Heads are free +`,note:``,title:`Heads are free`,index:43,noteHTML:``,images:[],raw:``,frontmatter:en,filepath:``,start:2190,sourceIndex:43,id:43,no:44},__clicksContext:null,__preloaded:!1}),nn=p({layout:`default`,title:`In words: Heads are free`}),rn=m({get layout(){return nn.layout},get transition(){return nn.transition},get class(){return nn.class},get clicks(){return nn.clicks},get name(){return nn.name},get preload(){return nn.preload},slide:{content:``,revision:`uyvc38`,frontmatterRaw:`layout: default +title: "In words: Heads are free" +`,note:``,title:`In words: Heads are free`,index:44,noteHTML:``,images:[],raw:``,frontmatter:nn,filepath:``,start:2287,sourceIndex:44,id:44,no:45},__clicksContext:null,__preloaded:!1}),an=p({layout:`interactive`,core:!0,heading:`Attention does not know what order the words came in`,title:`Attention does not know what order the words came in`,"aside-width":`18rem`}),on=m({get layout(){return an.layout},get transition(){return an.transition},get class(){return an.class},get clicks(){return an.clicks},get name(){return an.name},get preload(){return an.preload},slide:{content:``,revision:`-2lu0y`,frontmatterRaw:`layout: interactive +core: true +heading: Attention does not know what order the words came in +title: Attention does not know what order the words came in +aside-width: 18rem +`,note:``,title:`Attention does not know what order the words came in`,index:45,noteHTML:``,images:[],raw:``,frontmatter:an,filepath:``,start:2315,sourceIndex:45,id:45,no:46},__clicksContext:null,__preloaded:!1}),sn=p({layout:`default`,title:`In words: Attention does not know what order the words came in`}),cn=m({get layout(){return sn.layout},get transition(){return sn.transition},get class(){return sn.class},get clicks(){return sn.clicks},get name(){return sn.name},get preload(){return sn.preload},slide:{content:``,revision:`j3b8nj`,frontmatterRaw:`layout: default +title: "In words: Attention does not know what order the words came in" +`,note:``,title:`In words: Attention does not know what order the words came in`,index:46,noteHTML:``,images:[],raw:``,frontmatter:sn,filepath:``,start:2368,sourceIndex:46,id:46,no:47},__clicksContext:null,__preloaded:!1}),ln=p({layout:`interactive`,core:!0,heading:`So put the position into the vector`,title:`So put the position into the vector`,"aside-width":`18rem`}),un=m({get layout(){return ln.layout},get transition(){return ln.transition},get class(){return ln.class},get clicks(){return ln.clicks},get name(){return ln.name},get preload(){return ln.preload},slide:{content:``,revision:`-prrwo4`,frontmatterRaw:`layout: interactive +core: true +heading: So put the position into the vector +title: So put the position into the vector +aside-width: 18rem +`,note:``,title:`So put the position into the vector`,index:47,noteHTML:``,images:[],raw:``,frontmatter:ln,filepath:``,start:2397,sourceIndex:47,id:47,no:48},__clicksContext:null,__preloaded:!1}),dn=p({layout:`default`,title:`In words: So put the position into the vector`}),fn=m({get layout(){return dn.layout},get transition(){return dn.transition},get class(){return dn.class},get clicks(){return dn.clicks},get name(){return dn.name},get preload(){return dn.preload},slide:{content:``,revision:`c51rhe`,frontmatterRaw:`layout: default +title: "In words: So put the position into the vector" +`,note:``,title:`In words: So put the position into the vector`,index:48,noteHTML:``,images:[],raw:``,frontmatter:dn,filepath:``,start:2454,sourceIndex:48,id:48,no:49},__clicksContext:null,__preloaded:!1}),pn=p({layout:`default`,core:!0,title:`The other half of the block`}),mn=m({get layout(){return pn.layout},get transition(){return pn.transition},get class(){return pn.class},get clicks(){return pn.clicks},get name(){return pn.name},get preload(){return pn.preload},slide:{content:``,revision:`hz6gbd`,frontmatterRaw:`layout: default +core: true +title: The other half of the block +`,note:``,title:`The other half of the block`,index:49,noteHTML:``,images:[],raw:``,frontmatter:pn,filepath:``,start:2482,sourceIndex:49,id:49,no:50},__clicksContext:null,__preloaded:!1}),hn=p({layout:`default`,title:`Reading the equation: the feed-forward network`}),gn=m({get layout(){return hn.layout},get transition(){return hn.transition},get class(){return hn.class},get clicks(){return hn.clicks},get name(){return hn.name},get preload(){return hn.preload},slide:{content:``,revision:`mtd2u9`,frontmatterRaw:`layout: default +title: "Reading the equation: the feed-forward network" +`,note:``,title:`Reading the equation: the feed-forward network`,index:50,noteHTML:``,images:[],raw:``,frontmatter:hn,filepath:``,start:2575,sourceIndex:50,id:50,no:51},__clicksContext:null,__preloaded:!1}),_n=p({layout:`default`,title:`In words: The other half of the block`}),vn=m({get layout(){return _n.layout},get transition(){return _n.transition},get class(){return _n.class},get clicks(){return _n.clicks},get name(){return _n.name},get preload(){return _n.preload},slide:{content:``,revision:`-ntv7pl`,frontmatterRaw:`layout: default +title: "In words: The other half of the block" +`,note:``,title:`In words: The other half of the block`,index:51,noteHTML:``,images:[],raw:``,frontmatter:_n,filepath:``,start:2649,sourceIndex:51,id:51,no:52},__clicksContext:null,__preloaded:!1}),yn=p({layout:`default`,core:!0,title:`Two wrappers that make it stackable`}),bn=m({get layout(){return yn.layout},get transition(){return yn.transition},get class(){return yn.class},get clicks(){return yn.clicks},get name(){return yn.name},get preload(){return yn.preload},slide:{content:``,revision:`-nyxime`,frontmatterRaw:`layout: default +core: true +title: Two wrappers that make it stackable +`,note:``,title:`Two wrappers that make it stackable`,index:52,noteHTML:``,images:[],raw:``,frontmatter:yn,filepath:``,start:2678,sourceIndex:52,id:52,no:53},__clicksContext:null,__preloaded:!1}),xn=p({layout:`default`,title:`In words: Two wrappers that make it stackable`}),Sn=m({get layout(){return xn.layout},get transition(){return xn.transition},get class(){return xn.class},get clicks(){return xn.clicks},get name(){return xn.name},get preload(){return xn.preload},slide:{content:``,revision:`9kr1wg`,frontmatterRaw:`layout: default +title: "In words: Two wrappers that make it stackable" +`,note:``,title:`In words: Two wrappers that make it stackable`,index:53,noteHTML:``,images:[],raw:``,frontmatter:xn,filepath:``,start:2775,sourceIndex:53,id:53,no:54},__clicksContext:null,__preloaded:!1}),Cn=p({layout:`interactive`,core:!0,heading:`The block, assembled`,title:`The block, assembled`,"aside-width":`17rem`}),wn=m({get layout(){return Cn.layout},get transition(){return Cn.transition},get class(){return Cn.class},get clicks(){return Cn.clicks},get name(){return Cn.name},get preload(){return Cn.preload},slide:{content:``,revision:`-bhgb7p`,frontmatterRaw:`layout: interactive +core: true +heading: The block, assembled +title: The block, assembled +aside-width: 17rem +`,note:``,title:`The block, assembled`,index:54,noteHTML:``,images:[],raw:``,frontmatter:Cn,filepath:``,start:2804,sourceIndex:54,id:54,no:55},__clicksContext:null,__preloaded:!1}),Tn=p({layout:`default`,title:`In words: The block, assembled`}),En=m({get layout(){return Tn.layout},get transition(){return Tn.transition},get class(){return Tn.class},get clicks(){return Tn.clicks},get name(){return Tn.name},get preload(){return Tn.preload},slide:{content:``,revision:`xmkb7c`,frontmatterRaw:`layout: default +title: "In words: The block, assembled" +`,note:``,title:`In words: The block, assembled`,index:55,noteHTML:``,images:[],raw:``,frontmatter:Tn,filepath:``,start:2860,sourceIndex:55,id:55,no:56},__clicksContext:null,__preloaded:!1}),Dn=p({layout:`default`,title:`What a block costs`}),On=m({get layout(){return Dn.layout},get transition(){return Dn.transition},get class(){return Dn.class},get clicks(){return Dn.clicks},get name(){return Dn.name},get preload(){return Dn.preload},slide:{content:``,revision:`-6jscuq`,frontmatterRaw:`layout: default +title: What a block costs +`,note:``,title:`What a block costs`,index:56,noteHTML:``,images:[],raw:``,frontmatter:Dn,filepath:``,start:2890,sourceIndex:56,id:56,no:57},__clicksContext:null,__preloaded:!1}),kn=p({layout:`default`,title:`In words: What a block costs`}),An=m({get layout(){return kn.layout},get transition(){return kn.transition},get class(){return kn.class},get clicks(){return kn.clicks},get name(){return kn.name},get preload(){return kn.preload},slide:{content:``,revision:`yq7yut`,frontmatterRaw:`layout: default +title: "In words: What a block costs" +`,note:``,title:`In words: What a block costs`,index:57,noteHTML:``,images:[],raw:``,frontmatter:kn,filepath:``,start:2960,sourceIndex:57,id:57,no:58},__clicksContext:null,__preloaded:!1}),jn=p({layout:`default`,core:!0,title:`The bill for looking everywhere`}),Mn=m({get layout(){return jn.layout},get transition(){return jn.transition},get class(){return jn.class},get clicks(){return jn.clicks},get name(){return jn.name},get preload(){return jn.preload},slide:{content:``,revision:`-pcpzje`,frontmatterRaw:`layout: default +core: true +title: The bill for looking everywhere +`,note:``,title:`The bill for looking everywhere`,index:58,noteHTML:``,images:[],raw:``,frontmatter:jn,filepath:``,start:2990,sourceIndex:58,id:58,no:59},__clicksContext:null,__preloaded:!1}),Nn=p({layout:`default`,title:`In words: The bill for looking everywhere`}),Pn=m({get layout(){return Nn.layout},get transition(){return Nn.transition},get class(){return Nn.class},get clicks(){return Nn.clicks},get name(){return Nn.name},get preload(){return Nn.preload},slide:{content:``,revision:`u1uf3f`,frontmatterRaw:`layout: default +title: "In words: The bill for looking everywhere" +`,note:``,title:`In words: The bill for looking everywhere`,index:59,noteHTML:``,images:[],raw:``,frontmatter:Nn,filepath:``,start:3068,sourceIndex:59,id:59,no:60},__clicksContext:null,__preloaded:!1}),Fn=p({layout:`section`,index:`03`}),In=m({get layout(){return Fn.layout},get transition(){return Fn.transition},get class(){return Fn.class},get clicks(){return Fn.clicks},get name(){return Fn.name},get preload(){return Fn.preload},slide:{content:``,revision:`-s6pzo9`,frontmatterRaw:`layout: section +index: "03" +`,note:``,title:`The original transformer`,level:1,index:60,noteHTML:``,images:[],raw:``,frontmatter:Fn,filepath:``,start:3097,sourceIndex:60,id:60,no:61},__clicksContext:null,__preloaded:!1}),Ln=p({layout:`default`,core:!0,title:`Two stacks`}),Rn=m({get layout(){return Ln.layout},get transition(){return Ln.transition},get class(){return Ln.class},get clicks(){return Ln.clicks},get name(){return Ln.name},get preload(){return Ln.preload},slide:{content:``,revision:`ot7nae`,frontmatterRaw:`layout: default +core: true +title: Two stacks +`,note:``,title:`Two stacks`,index:61,noteHTML:``,images:[],raw:``,frontmatter:Ln,filepath:``,start:3119,sourceIndex:61,id:61,no:62},__clicksContext:null,__preloaded:!1}),zn=p({layout:`default`,title:`In words: Two stacks`}),Bn=m({get layout(){return zn.layout},get transition(){return zn.transition},get class(){return zn.class},get clicks(){return zn.clicks},get name(){return zn.name},get preload(){return zn.preload},slide:{content:``,revision:`4xuzd4`,frontmatterRaw:`layout: default +title: "In words: Two stacks" +`,note:``,title:`In words: Two stacks`,index:62,noteHTML:``,images:[],raw:``,frontmatter:zn,filepath:``,start:3207,sourceIndex:62,id:62,no:63},__clicksContext:null,__preloaded:!1}),Vn=p({layout:`interactive`,core:!0,heading:`The architecture, step by step`,title:`The architecture, step by step`,"aside-width":`17rem`}),Hn=m({get layout(){return Vn.layout},get transition(){return Vn.transition},get class(){return Vn.class},get clicks(){return Vn.clicks},get name(){return Vn.name},get preload(){return Vn.preload},slide:{content:``,revision:`9i68c1`,frontmatterRaw:`layout: interactive +core: true +heading: The architecture, step by step +title: The architecture, step by step +aside-width: 17rem +`,note:``,title:`The architecture, step by step`,index:63,noteHTML:``,images:[],raw:``,frontmatter:Vn,filepath:``,start:3237,sourceIndex:63,id:63,no:64},__clicksContext:null,__preloaded:!1}),Un=p({layout:`default`,title:`In words: The architecture, step by step`}),Wn=m({get layout(){return Un.layout},get transition(){return Un.transition},get class(){return Un.class},get clicks(){return Un.clicks},get name(){return Un.name},get preload(){return Un.preload},slide:{content:``,revision:`-cd99vl`,frontmatterRaw:`layout: default +title: "In words: The architecture, step by step" +`,note:``,title:`In words: The architecture, step by step`,index:64,noteHTML:``,images:[],raw:``,frontmatter:Un,filepath:``,start:3294,sourceIndex:64,id:64,no:65},__clicksContext:null,__preloaded:!1}),Gn=p({layout:`interactive`,core:!0,heading:`The mask, and why the loss collapses without it`,title:`The mask, and why the loss collapses without it`,"aside-width":`18rem`}),Kn=m({get layout(){return Gn.layout},get transition(){return Gn.transition},get class(){return Gn.class},get clicks(){return Gn.clicks},get name(){return Gn.name},get preload(){return Gn.preload},slide:{content:``,revision:`lnz79r`,frontmatterRaw:`layout: interactive +core: true +heading: The mask, and why the loss collapses without it +title: The mask, and why the loss collapses without it +aside-width: 18rem +`,note:``,title:`The mask, and why the loss collapses without it`,index:65,noteHTML:``,images:[],raw:``,frontmatter:Gn,filepath:``,start:3322,sourceIndex:65,id:65,no:66},__clicksContext:null,__preloaded:!1}),qn=p({layout:`default`,title:`In words: The mask, and why the loss collapses without it`}),Jn=m({get layout(){return qn.layout},get transition(){return qn.transition},get class(){return qn.class},get clicks(){return qn.clicks},get name(){return qn.name},get preload(){return qn.preload},slide:{content:``,revision:`-mr935s`,frontmatterRaw:`layout: default +title: "In words: The mask, and why the loss collapses without it" +`,note:``,title:`In words: The mask, and why the loss collapses without it`,index:66,noteHTML:``,images:[],raw:``,frontmatter:qn,filepath:``,start:3383,sourceIndex:66,id:66,no:67},__clicksContext:null,__preloaded:!1}),Yn=p({layout:`default`,title:`Cross-attention is last week's slide`}),Xn=m({get layout(){return Yn.layout},get transition(){return Yn.transition},get class(){return Yn.class},get clicks(){return Yn.clicks},get name(){return Yn.name},get preload(){return Yn.preload},slide:{content:``,revision:`ciwty`,frontmatterRaw:`layout: default +title: Cross-attention is last week's slide +`,note:``,title:`Cross-attention is last week's slide`,index:67,noteHTML:``,images:[],raw:``,frontmatter:Yn,filepath:``,start:3412,sourceIndex:67,id:67,no:68},__clicksContext:null,__preloaded:!1}),Zn=p({layout:`default`,title:`In words: Cross-attention is last week's slide`}),Qn=m({get layout(){return Zn.layout},get transition(){return Zn.transition},get class(){return Zn.class},get clicks(){return Zn.clicks},get name(){return Zn.name},get preload(){return Zn.preload},slide:{content:``,revision:`1tnnab`,frontmatterRaw:`layout: default +title: "In words: Cross-attention is last week's slide" +`,note:``,title:`In words: Cross-attention is last week's slide`,index:68,noteHTML:``,images:[],raw:``,frontmatter:Zn,filepath:``,start:3491,sourceIndex:68,id:68,no:69},__clicksContext:null,__preloaded:!1}),$n=p({layout:`default`,title:`The model they actually trained`}),er=m({get layout(){return $n.layout},get transition(){return $n.transition},get class(){return $n.class},get clicks(){return $n.clicks},get name(){return $n.name},get preload(){return $n.preload},slide:{content:``,revision:`pa7mnj`,frontmatterRaw:`layout: default +title: The model they actually trained +`,note:``,title:`The model they actually trained`,index:69,noteHTML:``,images:[],raw:``,frontmatter:$n,filepath:``,start:3519,sourceIndex:69,id:69,no:70},__clicksContext:null,__preloaded:!1}),tr=p({layout:`default`,title:`In words: The model they actually trained`}),nr=m({get layout(){return tr.layout},get transition(){return tr.transition},get class(){return tr.class},get clicks(){return tr.clicks},get name(){return tr.name},get preload(){return tr.preload},slide:{content:``,revision:`-ft0bcp`,frontmatterRaw:`layout: default +title: "In words: The model they actually trained" +`,note:``,title:`In words: The model they actually trained`,index:70,noteHTML:``,images:[],raw:``,frontmatter:tr,filepath:``,start:3593,sourceIndex:70,id:70,no:71},__clicksContext:null,__preloaded:!1}),rr=p({layout:`default`,title:`Poll: how many decoder passes teacher forcing needs`}),ir=m({get layout(){return rr.layout},get transition(){return rr.transition},get class(){return rr.class},get clicks(){return rr.clicks},get name(){return rr.name},get preload(){return rr.preload},slide:{content:``,revision:`tk983n`,frontmatterRaw:`layout: default +title: "Poll: how many decoder passes teacher forcing needs" +`,note:``,title:`Poll: how many decoder passes teacher forcing needs`,index:71,noteHTML:``,images:[],raw:``,frontmatter:rr,filepath:``,start:3620,sourceIndex:71,id:71,no:72},__clicksContext:null,__preloaded:!1}),ar=p({layout:`default`,title:`In words: How many decoder passes teacher forcing needs`}),or=m({get layout(){return ar.layout},get transition(){return ar.transition},get class(){return ar.class},get clicks(){return ar.clicks},get name(){return ar.name},get preload(){return ar.preload},slide:{content:``,revision:`-7apu8j`,frontmatterRaw:`layout: default +title: "In words: How many decoder passes teacher forcing needs" +`,note:``,title:`In words: How many decoder passes teacher forcing needs`,index:72,noteHTML:``,images:[],raw:``,frontmatter:ar,filepath:``,start:3689,sourceIndex:72,id:72,no:73},__clicksContext:null,__preloaded:!1}),sr=p({layout:`section`,index:`04`}),cr=m({get layout(){return sr.layout},get transition(){return sr.transition},get class(){return sr.class},get clicks(){return sr.clicks},get name(){return sr.name},get preload(){return sr.preload},slide:{content:``,revision:`1r4klh`,frontmatterRaw:`layout: section +index: "04" +`,note:``,title:`Modern transformers`,level:1,index:73,noteHTML:``,images:[],raw:``,frontmatter:sr,filepath:``,start:3717,sourceIndex:73,id:73,no:74},__clicksContext:null,__preloaded:!1}),lr=p({layout:`interactive`,core:!0,heading:`The architecture forked three ways`,title:`The architecture forked three ways`,"aside-width":`17rem`}),ur=m({get layout(){return lr.layout},get transition(){return lr.transition},get class(){return lr.class},get clicks(){return lr.clicks},get name(){return lr.name},get preload(){return lr.preload},slide:{content:``,revision:`-5t0qeu`,frontmatterRaw:`layout: interactive +core: true +heading: The architecture forked three ways +title: The architecture forked three ways +aside-width: 17rem +`,note:``,title:`The architecture forked three ways`,index:74,noteHTML:``,images:[],raw:``,frontmatter:lr,filepath:``,start:3739,sourceIndex:74,id:74,no:75},__clicksContext:null,__preloaded:!1}),dr=p({layout:`default`,title:`In words: The architecture forked three ways`}),fr=m({get layout(){return dr.layout},get transition(){return dr.transition},get class(){return dr.class},get clicks(){return dr.clicks},get name(){return dr.name},get preload(){return dr.preload},slide:{content:``,revision:`3a2301`,frontmatterRaw:`layout: default +title: "In words: The architecture forked three ways" +`,note:``,title:`In words: The architecture forked three ways`,index:75,noteHTML:``,images:[],raw:``,frontmatter:dr,filepath:``,start:3793,sourceIndex:75,id:75,no:76},__clicksContext:null,__preloaded:!1}),pr=p({layout:`default`,core:!0,title:`Why decoder-only took over`}),mr=m({get layout(){return pr.layout},get transition(){return pr.transition},get class(){return pr.class},get clicks(){return pr.clicks},get name(){return pr.name},get preload(){return pr.preload},slide:{content:``,revision:`-t3dzoq`,frontmatterRaw:`layout: default +core: true +title: Why decoder-only took over +`,note:``,title:`Why decoder-only took over`,index:76,noteHTML:``,images:[],raw:``,frontmatter:pr,filepath:``,start:3817,sourceIndex:76,id:76,no:77},__clicksContext:null,__preloaded:!1}),hr=p({layout:`default`,title:`In words: Why decoder-only took over`}),gr=m({get layout(){return hr.layout},get transition(){return hr.transition},get class(){return hr.class},get clicks(){return hr.clicks},get name(){return hr.name},get preload(){return hr.preload},slide:{content:``,revision:`u6ijqc`,frontmatterRaw:`layout: default +title: "In words: Why decoder-only took over" +`,note:``,title:`In words: Why decoder-only took over`,index:77,noteHTML:``,images:[],raw:``,frontmatter:hr,filepath:``,start:3900,sourceIndex:77,id:77,no:78},__clicksContext:null,__preloaded:!1}),_r=p({layout:`interactive`,core:!0,heading:`One wire moved, and deep stacks started training`,title:`One wire moved, and deep stacks started training`,"aside-width":`19rem`}),vr=m({get layout(){return _r.layout},get transition(){return _r.transition},get class(){return _r.class},get clicks(){return _r.clicks},get name(){return _r.name},get preload(){return _r.preload},slide:{content:``,revision:`-835sqk`,frontmatterRaw:`layout: interactive +core: true +heading: One wire moved, and deep stacks started training +title: One wire moved, and deep stacks started training +aside-width: 19rem +`,note:``,title:`One wire moved, and deep stacks started training`,index:78,noteHTML:``,images:[],raw:``,frontmatter:_r,filepath:``,start:3923,sourceIndex:78,id:78,no:79},__clicksContext:null,__preloaded:!1}),yr=p({layout:`default`,title:`In words: One wire moved, and deep stacks started training`}),br=m({get layout(){return yr.layout},get transition(){return yr.transition},get class(){return yr.class},get clicks(){return yr.clicks},get name(){return yr.name},get preload(){return yr.preload},slide:{content:``,revision:`52f726`,frontmatterRaw:`layout: default +title: "In words: One wire moved, and deep stacks started training" +`,note:``,title:`In words: One wire moved, and deep stacks started training`,index:79,noteHTML:``,images:[],raw:``,frontmatter:yr,filepath:``,start:3978,sourceIndex:79,id:79,no:80},__clicksContext:null,__preloaded:!1}),xr=p({layout:`default`,title:`What else changed inside the block`}),Sr=m({get layout(){return xr.layout},get transition(){return xr.transition},get class(){return xr.class},get clicks(){return xr.clicks},get name(){return xr.name},get preload(){return xr.preload},slide:{content:``,revision:`-mgq2j4`,frontmatterRaw:`layout: default +title: What else changed inside the block +`,note:``,title:`What else changed inside the block`,index:80,noteHTML:``,images:[],raw:``,frontmatter:xr,filepath:``,start:4e3,sourceIndex:80,id:80,no:81},__clicksContext:null,__preloaded:!1}),Cr=p({layout:`default`,title:`In words: What else changed inside the block`}),wr=m({get layout(){return Cr.layout},get transition(){return Cr.transition},get class(){return Cr.class},get clicks(){return Cr.clicks},get name(){return Cr.name},get preload(){return Cr.preload},slide:{content:``,revision:`-qrhqw`,frontmatterRaw:`layout: default +title: "In words: What else changed inside the block" +`,note:``,title:`In words: What else changed inside the block`,index:81,noteHTML:``,images:[],raw:``,frontmatter:Cr,filepath:``,start:4100,sourceIndex:81,id:81,no:82},__clicksContext:null,__preloaded:!1}),Tr=p({layout:`default`,title:`Position, done properly`}),Er=m({get layout(){return Tr.layout},get transition(){return Tr.transition},get class(){return Tr.class},get clicks(){return Tr.clicks},get name(){return Tr.name},get preload(){return Tr.preload},slide:{content:``,revision:`-irexet`,frontmatterRaw:`layout: default +title: Position, done properly +`,note:``,title:`Position, done properly`,index:82,noteHTML:``,images:[],raw:``,frontmatter:Tr,filepath:``,start:4126,sourceIndex:82,id:82,no:83},__clicksContext:null,__preloaded:!1}),Dr=p({layout:`default`,title:`In words: Position, done properly`}),Or=m({get layout(){return Dr.layout},get transition(){return Dr.transition},get class(){return Dr.class},get clicks(){return Dr.clicks},get name(){return Dr.name},get preload(){return Dr.preload},slide:{content:``,revision:`-4n3thr`,frontmatterRaw:`layout: default +title: "In words: Position, done properly" +`,note:``,title:`In words: Position, done properly`,index:83,noteHTML:``,images:[],raw:``,frontmatter:Dr,filepath:``,start:4220,sourceIndex:83,id:83,no:84},__clicksContext:null,__preloaded:!1}),kr=p({layout:`default`,title:`What generation actually costs`}),Ar=m({get layout(){return kr.layout},get transition(){return kr.transition},get class(){return kr.class},get clicks(){return kr.clicks},get name(){return kr.name},get preload(){return kr.preload},slide:{content:``,revision:`ongz64`,frontmatterRaw:`layout: default +title: What generation actually costs +`,note:``,title:`What generation actually costs`,index:84,noteHTML:``,images:[],raw:``,frontmatter:kr,filepath:``,start:4241,sourceIndex:84,id:84,no:85},__clicksContext:null,__preloaded:!1}),jr=p({layout:`default`,title:`In words: What generation actually costs`}),Mr=m({get layout(){return jr.layout},get transition(){return jr.transition},get class(){return jr.class},get clicks(){return jr.clicks},get name(){return jr.name},get preload(){return jr.preload},slide:{content:``,revision:`nw35ej`,frontmatterRaw:`layout: default +title: "In words: What generation actually costs" +`,note:``,title:`In words: What generation actually costs`,index:85,noteHTML:``,images:[],raw:``,frontmatter:jr,filepath:``,start:4318,sourceIndex:85,id:85,no:86},__clicksContext:null,__preloaded:!1}),Nr=p({layout:`default`,core:!0,title:`The same block, more of it`}),Pr=m({get layout(){return Nr.layout},get transition(){return Nr.transition},get class(){return Nr.class},get clicks(){return Nr.clicks},get name(){return Nr.name},get preload(){return Nr.preload},slide:{content:``,revision:`tie327`,frontmatterRaw:`layout: default +core: true +title: The same block, more of it +`,note:``,title:`The same block, more of it`,index:86,noteHTML:``,images:[],raw:``,frontmatter:Nr,filepath:``,start:4340,sourceIndex:86,id:86,no:87},__clicksContext:null,__preloaded:!1}),Fr=p({layout:`default`,title:`In words: The same block, more of it`}),Ir=m({get layout(){return Fr.layout},get transition(){return Fr.transition},get class(){return Fr.class},get clicks(){return Fr.clicks},get name(){return Fr.name},get preload(){return Fr.preload},slide:{content:``,revision:`-v2wixt`,frontmatterRaw:`layout: default +title: "In words: The same block, more of it" +`,note:``,title:`In words: The same block, more of it`,index:87,noteHTML:``,images:[],raw:``,frontmatter:Fr,filepath:``,start:4422,sourceIndex:87,id:87,no:88},__clicksContext:null,__preloaded:!1}),Lr=p({layout:`default`,title:`What did not change`}),Rr=m({get layout(){return Lr.layout},get transition(){return Lr.transition},get class(){return Lr.class},get clicks(){return Lr.clicks},get name(){return Lr.name},get preload(){return Lr.preload},slide:{content:``,revision:`ocz0yu`,frontmatterRaw:`layout: default +title: What did not change +`,note:``,title:`What did not change`,index:88,noteHTML:``,images:[],raw:``,frontmatter:Lr,filepath:``,start:4444,sourceIndex:88,id:88,no:89},__clicksContext:null,__preloaded:!1}),zr=p({layout:`default`,title:`In words: What did not change`}),Br=m({get layout(){return zr.layout},get transition(){return zr.transition},get class(){return zr.class},get clicks(){return zr.clicks},get name(){return zr.name},get preload(){return zr.preload},slide:{content:``,revision:`-7u2zps`,frontmatterRaw:`layout: default +title: "In words: What did not change" +`,note:``,title:`In words: What did not change`,index:89,noteHTML:``,images:[],raw:``,frontmatter:zr,filepath:``,start:4530,sourceIndex:89,id:89,no:90},__clicksContext:null,__preloaded:!1}),Vr=p({layout:`section`,index:`05`}),Hr=m({get layout(){return Vr.layout},get transition(){return Vr.transition},get class(){return Vr.class},get clicks(){return Vr.clicks},get name(){return Vr.name},get preload(){return Vr.preload},slide:{content:``,revision:`-87qq79`,frontmatterRaw:`layout: section +index: "05" +`,note:``,title:`In PyTorch`,level:1,index:90,noteHTML:``,images:[],raw:``,frontmatter:Vr,filepath:``,start:4556,sourceIndex:90,id:90,no:91},__clicksContext:null,__preloaded:!1}),Ur=p({layout:`default`,core:!0,title:`The mechanism is one function call`}),Wr=m({get layout(){return Ur.layout},get transition(){return Ur.transition},get class(){return Ur.class},get clicks(){return Ur.clicks},get name(){return Ur.name},get preload(){return Ur.preload},slide:{content:``,revision:`-k3ps6t`,frontmatterRaw:`layout: default +core: true +title: The mechanism is one function call +`,note:``,title:`The mechanism is one function call`,index:91,noteHTML:``,images:[],raw:``,frontmatter:Ur,filepath:``,start:4580,sourceIndex:91,id:91,no:92},__clicksContext:null,__preloaded:!1}),Gr=p({layout:`default`}),Kr=m({get layout(){return Gr.layout},get transition(){return Gr.transition},get class(){return Gr.class},get clicks(){return Gr.clicks},get name(){return Gr.name},get preload(){return Gr.preload},slide:{content:``,revision:`6tw2cq`,frontmatterRaw:`layout: default +`,note:``,title:`In words: The mechanism is one function call`,level:1,index:92,noteHTML:``,images:[],raw:``,frontmatter:Gr,filepath:``,start:4674,sourceIndex:92,id:92,no:93},__clicksContext:null,__preloaded:!1}),Y=p({layout:`default`,title:`Self-attention, written out`}),qr=m({get layout(){return Y.layout},get transition(){return Y.transition},get class(){return Y.class},get clicks(){return Y.clicks},get name(){return Y.name},get preload(){return Y.preload},slide:{content:``,revision:`pmlwg3`,frontmatterRaw:`layout: default +title: Self-attention, written out +`,note:``,title:`Self-attention, written out`,index:93,noteHTML:``,images:[],raw:``,frontmatter:Y,filepath:``,start:4703,sourceIndex:93,id:93,no:94},__clicksContext:null,__preloaded:!1}),Jr=p({layout:`default`}),Yr=m({get layout(){return Jr.layout},get transition(){return Jr.transition},get class(){return Jr.class},get clicks(){return Jr.clicks},get name(){return Jr.name},get preload(){return Jr.preload},slide:{content:``,revision:`-vaxn9y`,frontmatterRaw:`layout: default +`,note:``,title:`In words: Self-attention, written out`,level:1,index:94,noteHTML:``,images:[],raw:``,frontmatter:Jr,filepath:``,start:4789,sourceIndex:94,id:94,no:95},__clicksContext:null,__preloaded:!1}),Xr=p({layout:`default`,title:`A block, and a stack`}),Zr=m({get layout(){return Xr.layout},get transition(){return Xr.transition},get class(){return Xr.class},get clicks(){return Xr.clicks},get name(){return Xr.name},get preload(){return Xr.preload},slide:{content:``,revision:`aqqyoj`,frontmatterRaw:`layout: default +title: A block, and a stack +`,note:``,title:`A block, and a stack`,index:95,noteHTML:``,images:[],raw:``,frontmatter:Xr,filepath:``,start:4816,sourceIndex:95,id:95,no:96},__clicksContext:null,__preloaded:!1}),Qr=p({layout:`default`}),$r=m({get layout(){return Qr.layout},get transition(){return Qr.transition},get class(){return Qr.class},get clicks(){return Qr.clicks},get name(){return Qr.name},get preload(){return Qr.preload},slide:{content:``,revision:`930nmx`,frontmatterRaw:`layout: default +`,note:``,title:`In words: A block, and a stack`,level:1,index:96,noteHTML:``,images:[],raw:``,frontmatter:Qr,filepath:``,start:4916,sourceIndex:96,id:96,no:97},__clicksContext:null,__preloaded:!1}),ei=p({layout:`default`,title:`Or use the one in the box`}),ti=m({get layout(){return ei.layout},get transition(){return ei.transition},get class(){return ei.class},get clicks(){return ei.clicks},get name(){return ei.name},get preload(){return ei.preload},slide:{content:``,revision:`91bcdw`,frontmatterRaw:`layout: default +title: Or use the one in the box +`,note:``,title:`Or use the one in the box`,index:97,noteHTML:``,images:[],raw:``,frontmatter:ei,filepath:``,start:4943,sourceIndex:97,id:97,no:98},__clicksContext:null,__preloaded:!1}),ni=p({layout:`default`}),ri=m({get layout(){return ni.layout},get transition(){return ni.transition},get class(){return ni.class},get clicks(){return ni.clicks},get name(){return ni.name},get preload(){return ni.preload},slide:{content:``,revision:`-wlc2o6`,frontmatterRaw:`layout: default +`,note:``,title:`In words: Or use the one in the box`,level:1,index:98,noteHTML:``,images:[],raw:``,frontmatter:ni,filepath:``,start:5026,sourceIndex:98,id:98,no:99},__clicksContext:null,__preloaded:!1}),ii=p({layout:`default`,core:!0,title:`Shapes, end to end`}),ai=m({get layout(){return ii.layout},get transition(){return ii.transition},get class(){return ii.class},get clicks(){return ii.clicks},get name(){return ii.name},get preload(){return ii.preload},slide:{content:``,revision:`571h6t`,frontmatterRaw:`layout: default +core: true +title: Shapes, end to end +`,note:``,title:`Shapes, end to end`,index:99,noteHTML:``,images:[],raw:``,frontmatter:ii,filepath:``,start:5055,sourceIndex:99,id:99,no:100},__clicksContext:null,__preloaded:!1}),oi=p({layout:`default`}),si=m({get layout(){return oi.layout},get transition(){return oi.transition},get class(){return oi.class},get clicks(){return oi.clicks},get name(){return oi.name},get preload(){return oi.preload},slide:{content:``,revision:`-7cg9m7`,frontmatterRaw:`layout: default +`,note:``,title:`In words: Shapes, end to end`,level:1,index:100,noteHTML:``,images:[],raw:``,frontmatter:oi,filepath:``,start:5131,sourceIndex:100,id:100,no:101},__clicksContext:null,__preloaded:!1}),ci=p({layout:`default`,title:`Four bugs, and what each one looks like`}),li=m({get layout(){return ci.layout},get transition(){return ci.transition},get class(){return ci.class},get clicks(){return ci.clicks},get name(){return ci.name},get preload(){return ci.preload},slide:{content:``,revision:`-hvz0ml`,frontmatterRaw:`layout: default +title: Four bugs, and what each one looks like +`,note:``,title:`Four bugs, and what each one looks like`,index:101,noteHTML:``,images:[],raw:``,frontmatter:ci,filepath:``,start:5158,sourceIndex:101,id:101,no:102},__clicksContext:null,__preloaded:!1}),ui=p({layout:`default`}),di=m({get layout(){return ui.layout},get transition(){return ui.transition},get class(){return ui.class},get clicks(){return ui.clicks},get name(){return ui.name},get preload(){return ui.preload},slide:{content:``,revision:`-fk6bt1`,frontmatterRaw:`layout: default +`,note:``,title:`In words: Four bugs, and what each one looks like`,level:1,index:102,noteHTML:``,images:[],raw:``,frontmatter:ui,filepath:``,start:5256,sourceIndex:102,id:102,no:103},__clicksContext:null,__preloaded:!1}),fi=p({layout:`section`,index:`06`}),pi=m({get layout(){return fi.layout},get transition(){return fi.transition},get class(){return fi.class},get clicks(){return fi.clicks},get name(){return fi.name},get preload(){return fi.preload},slide:{content:``,revision:`mxe2ex`,frontmatterRaw:`layout: section +index: "06" +`,note:``,title:`Where that leaves us`,level:1,index:103,noteHTML:``,images:[],raw:``,frontmatter:fi,filepath:``,start:5283,sourceIndex:103,id:103,no:104},__clicksContext:null,__preloaded:!1}),mi=p({layout:`default`,core:!0,title:`Where we got to`}),hi=m({get layout(){return mi.layout},get transition(){return mi.transition},get class(){return mi.class},get clicks(){return mi.clicks},get name(){return mi.name},get preload(){return mi.preload},slide:{content:``,revision:`-i9t0bt`,frontmatterRaw:`layout: default +core: true +title: Where we got to +`,note:``,title:`Where we got to`,index:104,noteHTML:``,images:[],raw:``,frontmatter:mi,filepath:``,start:5303,sourceIndex:104,id:104,no:105},__clicksContext:null,__preloaded:!1}),gi=p({layout:`default`,title:`In words: Where we got to`}),_i=m({get layout(){return gi.layout},get transition(){return gi.transition},get class(){return gi.class},get clicks(){return gi.clicks},get name(){return gi.name},get preload(){return gi.preload},slide:{content:``,revision:`eylmvx`,frontmatterRaw:`layout: default +title: "In words: Where we got to" +`,note:``,title:`In words: Where we got to`,index:105,noteHTML:``,images:[],raw:``,frontmatter:gi,filepath:``,start:5387,sourceIndex:105,id:105,no:106},__clicksContext:null,__preloaded:!1}),vi=p({layout:`default`,core:!0,title:`Reading, and the lab`}),yi=m({get layout(){return vi.layout},get transition(){return vi.transition},get class(){return vi.class},get clicks(){return vi.clicks},get name(){return vi.name},get preload(){return vi.preload},slide:{content:``,revision:`64521o`,frontmatterRaw:`layout: default +core: true +title: Reading, and the lab +`,note:``,title:`Reading, and the lab`,index:106,noteHTML:``,images:[],raw:``,frontmatter:vi,filepath:``,start:5414,sourceIndex:106,id:106,no:107},__clicksContext:null,__preloaded:!1}),bi=p({layout:`default`,title:`In words: Reading, and the lab`}),xi=m({get layout(){return bi.layout},get transition(){return bi.transition},get class(){return bi.class},get clicks(){return bi.clicks},get name(){return bi.name},get preload(){return bi.preload},slide:{content:``,revision:`rcwunc`,frontmatterRaw:`layout: default +title: "In words: Reading, and the lab" +`,note:``,title:`In words: Reading, and the lab`,index:107,noteHTML:``,images:[],raw:``,frontmatter:bi,filepath:``,start:5499,sourceIndex:107,id:107,no:108},__clicksContext:null,__preloaded:!1}),X=p({layout:`end`,email:`vajira@simula.no`,next:`Large Language Models`}),Si=m({get layout(){return X.layout},get transition(){return X.transition},get class(){return X.class},get clicks(){return X.clicks},get name(){return X.name},get preload(){return X.preload},slide:{content:``,revision:`-97u6q5`,frontmatterRaw:`layout: end +email: vajira@simula.no +next: Large Language Models +`,note:``,title:`To be continued…`,level:1,index:108,noteHTML:``,images:[],raw:``,frontmatter:X,filepath:``,start:5523,sourceIndex:108,id:108,no:109},__clicksContext:null,__preloaded:!1}),Z=Array(109),Q=(t,n)=>e({loader:n,delay:300,loadingComponent:Ze,errorComponent:v,onError:e=>console.error(`Failed to load slide `+(t+1),e)}),Ci=async()=>{try{return Z[0]??=await _(()=>import(`./md-C9wXVVI7.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},wi=async()=>{try{return Z[1]??=await _(()=>import(`./md-DNpQYS3v2.js`),__vite__mapDeps([10,1,2,3,4,5,6,11,12,13,14,15,16,17,18,19,20]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Ti=async()=>{try{return Z[2]??=await _(()=>import(`./md-_k-qqI-b2.js`),__vite__mapDeps([21,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Ei=async()=>{try{return Z[3]??=await _(()=>import(`./md-WZPtfMPi.js`),__vite__mapDeps([24,1,2,3,5,6,7,4,8,25,26]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Di=async()=>{try{return Z[4]??=await _(()=>import(`./md-DBZ4ZNDZ.js`),__vite__mapDeps([27,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Oi=async()=>{try{return Z[5]??=await _(()=>import(`./md-j3wOcIFJ.js`),__vite__mapDeps([28,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},ki=async()=>{try{return Z[6]??=await _(()=>import(`./md-CM03SwZB2.js`),__vite__mapDeps([29,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23,30,31]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Ai=async()=>{try{return Z[7]??=await _(()=>import(`./md-Bm3b9CdW2.js`),__vite__mapDeps([32,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},ji=async()=>{try{return Z[8]??=await _(()=>import(`./md-PbC-Gdcb.js`),__vite__mapDeps([33,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Mi=async()=>{try{return Z[9]??=await _(()=>import(`./md-D8xEFSrp.js`),__vite__mapDeps([34,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Ni=async()=>{try{return Z[10]??=await _(()=>import(`./md-mDjQpGys.js`),__vite__mapDeps([35,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23,36,37,38]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Pi=async()=>{try{return Z[11]??=await _(()=>import(`./md-C4XQhgCZ.js`),__vite__mapDeps([39,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Fi=async()=>{try{return Z[12]??=await _(()=>import(`./md-g77gJ0O1.js`),__vite__mapDeps([40,1,2,3,5,6,7,4,8,25,26]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Ii=async()=>{try{return Z[13]??=await _(()=>import(`./md-BTCxmEyp.js`),__vite__mapDeps([41,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23,37,42,43]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Li=async()=>{try{return Z[14]??=await _(()=>import(`./md-YS5KSKR-.js`),__vite__mapDeps([44,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Ri=async()=>{try{return Z[15]??=await _(()=>import(`./md-DU3UMtLN.js`),__vite__mapDeps([45,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},zi=async()=>{try{return Z[16]??=await _(()=>import(`./md-BFOvAsJ4.js`),__vite__mapDeps([46,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Bi=async()=>{try{return Z[17]??=await _(()=>import(`./md-kLUlWwwH.js`),__vite__mapDeps([47,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Vi=async()=>{try{return Z[18]??=await _(()=>import(`./md-BtNHnlu_.js`),__vite__mapDeps([48,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Hi=async()=>{try{return Z[19]??=await _(()=>import(`./md-IXSxVTSE.js`),__vite__mapDeps([49,1,2,3,4,5,6,15,14,16,37,11,12,13,17,18,19,50,51,52,53,54,55,56]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Ui=async()=>{try{return Z[20]??=await _(()=>import(`./md-ysBiKM3U2.js`),__vite__mapDeps([57,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Wi=async()=>{try{return Z[21]??=await _(()=>import(`./md-FYipFQ6s2.js`),__vite__mapDeps([58,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Gi=async()=>{try{return Z[22]??=await _(()=>import(`./md-BDUTraAK2.js`),__vite__mapDeps([59,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Ki=async()=>{try{return Z[23]??=await _(()=>import(`./md-s4EEn-QF2.js`),__vite__mapDeps([60,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},qi=async()=>{try{return Z[24]??=await _(()=>import(`./md-7b2m1J_B2.js`),__vite__mapDeps([61,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Ji=async()=>{try{return Z[25]??=await _(()=>import(`./md-DaQ-OIb1.js`),__vite__mapDeps([62,1,2,3,5,6,37,15,14,16,11,4,12,13,17,18,19,63,50,51,52,53,54,55,64]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Yi=async()=>{try{return Z[26]??=await _(()=>import(`./md-CAdO_xwk.js`),__vite__mapDeps([65,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Xi=async()=>{try{return Z[27]??=await _(()=>import(`./md-Cf1i6vqR2.js`),__vite__mapDeps([66,1,2,3,5,6,37,15,14,16,11,4,12,13,17,18,19,63,50,51,52,53,54,55,64]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Zi=async()=>{try{return Z[28]??=await _(()=>import(`./md-C126BC2G2.js`),__vite__mapDeps([67,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Qi=async()=>{try{return Z[29]??=await _(()=>import(`./md-CjJnzJwZ.js`),__vite__mapDeps([68,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23,37,69]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},$i=async()=>{try{return Z[30]??=await _(()=>import(`./md-C9tAdyRG2.js`),__vite__mapDeps([70,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23,37]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},ea=async()=>{try{return Z[31]??=await _(()=>import(`./md-C0WigTmY2.js`),__vite__mapDeps([71,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},ta=async()=>{try{return Z[32]??=await _(()=>import(`./md-DNxc6YO-.js`),__vite__mapDeps([72,1,2,3,5,6,37,15,14,16,11,4,12,13,17,18,19,73,50,51,52,53,55,74]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},na=async()=>{try{return Z[33]??=await _(()=>import(`./md-vAdMI9-n.js`),__vite__mapDeps([75,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},ra=async()=>{try{return Z[34]??=await _(()=>import(`./md-tkCMkcud.js`),__vite__mapDeps([76,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23,69]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},ia=async()=>{try{return Z[35]??=await _(()=>import(`./md-gdag7RGK.js`),__vite__mapDeps([77,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},aa=async()=>{try{return Z[36]??=await _(()=>import(`./md-DCOqDlYU.js`),__vite__mapDeps([78,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23,36,37,38]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},oa=async()=>{try{return Z[37]??=await _(()=>import(`./md-vcG0m33h.js`),__vite__mapDeps([79,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},sa=async()=>{try{return Z[38]??=await _(()=>import(`./md-1GUuAYm_.js`),__vite__mapDeps([80,1,2,3,5,6,7,4,8,25,26]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},ca=async()=>{try{return Z[39]??=await _(()=>import(`./md-PWnVlHr_.js`),__vite__mapDeps([81,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},la=async()=>{try{return Z[40]??=await _(()=>import(`./md-6u9b4JQU.js`),__vite__mapDeps([82,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},ua=async()=>{try{return Z[41]??=await _(()=>import(`./md-BP8VIKZW.js`),__vite__mapDeps([83,1,2,3,4,5,6,37,15,14,16,11,12,13,17,18,19,50,51,52,53,54,55,84]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},da=async()=>{try{return Z[42]??=await _(()=>import(`./md-eUhYf2x_.js`),__vite__mapDeps([85,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},fa=async()=>{try{return Z[43]??=await _(()=>import(`./md-CnvRJ1mN.js`),__vite__mapDeps([86,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23,69]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},pa=async()=>{try{return Z[44]??=await _(()=>import(`./md-BCE9dyfW.js`),__vite__mapDeps([87,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},ma=async()=>{try{return Z[45]??=await _(()=>import(`./md-B1Cw576Z.js`),__vite__mapDeps([88,1,2,3,5,6,37,15,14,16,11,4,12,13,17,18,19,89,50,51,52,53,54,55,90]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},ha=async()=>{try{return Z[46]??=await _(()=>import(`./md-DDoVOpWA.js`),__vite__mapDeps([91,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},ga=async()=>{try{return Z[47]??=await _(()=>import(`./md-CT4etxz_.js`),__vite__mapDeps([92,1,2,3,5,6,37,15,14,16,11,4,12,13,17,18,19,89,50,51,52,53,54,55,90]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},_a=async()=>{try{return Z[48]??=await _(()=>import(`./md-D8gMFzlS.js`),__vite__mapDeps([93,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},va=async()=>{try{return Z[49]??=await _(()=>import(`./md-5CCz_ZVw.js`),__vite__mapDeps([94,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23,37,69]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},ya=async()=>{try{return Z[50]??=await _(()=>import(`./md-SiKeWzPt.js`),__vite__mapDeps([95,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23,37]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},ba=async()=>{try{return Z[51]??=await _(()=>import(`./md-BtwRUwrk.js`),__vite__mapDeps([96,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},xa=async()=>{try{return Z[52]??=await _(()=>import(`./md-Cxufebwy.js`),__vite__mapDeps([97,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23,37]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Sa=async()=>{try{return Z[53]??=await _(()=>import(`./md-JPtrd3GK.js`),__vite__mapDeps([98,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Ca=async()=>{try{return Z[54]??=await _(()=>import(`./md-DDmUvyDN.js`),__vite__mapDeps([99,1,2,3,5,6,37,15,14,16,11,4,12,13,17,18,19,100,50,51,52,53,101]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},wa=async()=>{try{return Z[55]??=await _(()=>import(`./md-CaDnN9B_.js`),__vite__mapDeps([102,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Ta=async()=>{try{return Z[56]??=await _(()=>import(`./md-CMThHG1f.js`),__vite__mapDeps([103,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23,37]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Ea=async()=>{try{return Z[57]??=await _(()=>import(`./md-BEoc4J_E.js`),__vite__mapDeps([104,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Da=async()=>{try{return Z[58]??=await _(()=>import(`./md-DohhfnAx.js`),__vite__mapDeps([105,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23,37]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Oa=async()=>{try{return Z[59]??=await _(()=>import(`./md-DfuGfQI7.js`),__vite__mapDeps([106,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},ka=async()=>{try{return Z[60]??=await _(()=>import(`./md-Dsg5P6cy.js`),__vite__mapDeps([107,1,2,3,5,6,7,4,8,25,26]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Aa=async()=>{try{return Z[61]??=await _(()=>import(`./md-CL5c_uia.js`),__vite__mapDeps([108,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},ja=async()=>{try{return Z[62]??=await _(()=>import(`./md-DaqDHUDT.js`),__vite__mapDeps([109,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Ma=async()=>{try{return Z[63]??=await _(()=>import(`./md-Bs7Gg5Ru.js`),__vite__mapDeps([110,1,2,3,4,5,6,37,15,14,16,11,12,13,17,18,19,50,51,52,53,111]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Na=async()=>{try{return Z[64]??=await _(()=>import(`./md-BdyJtiOm.js`),__vite__mapDeps([112,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Pa=async()=>{try{return Z[65]??=await _(()=>import(`./md-nCQDOxi82.js`),__vite__mapDeps([113,1,2,3,5,6,37,15,14,16,11,4,12,13,17,18,19,73,50,51,52,53,55,74]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Fa=async()=>{try{return Z[66]??=await _(()=>import(`./md-Cbph3Njd2.js`),__vite__mapDeps([114,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Ia=async()=>{try{return Z[67]??=await _(()=>import(`./md-HVd104bH.js`),__vite__mapDeps([115,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23,37,69]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},La=async()=>{try{return Z[68]??=await _(()=>import(`./md-BVq0H9oi2.js`),__vite__mapDeps([116,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Ra=async()=>{try{return Z[69]??=await _(()=>import(`./md-NHOGCiGQ2.js`),__vite__mapDeps([117,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},za=async()=>{try{return Z[70]??=await _(()=>import(`./md-D-b84-tV2.js`),__vite__mapDeps([118,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Ba=async()=>{try{return Z[71]??=await _(()=>import(`./md-Ba46XhX62.js`),__vite__mapDeps([119,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23,36,37,38]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Va=async()=>{try{return Z[72]??=await _(()=>import(`./md-BnhBsnM82.js`),__vite__mapDeps([120,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Ha=async()=>{try{return Z[73]??=await _(()=>import(`./md-CSkGT_Uj2.js`),__vite__mapDeps([121,1,2,3,5,6,7,4,8,25,26]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Ua=async()=>{try{return Z[74]??=await _(()=>import(`./md-DhS9jtua2.js`),__vite__mapDeps([122,1,2,3,4,5,6,37,15,14,16,11,12,13,17,18,19,50,51,123]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Wa=async()=>{try{return Z[75]??=await _(()=>import(`./md-BLU60Dt22.js`),__vite__mapDeps([124,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Ga=async()=>{try{return Z[76]??=await _(()=>import(`./md-Lle3pslo.js`),__vite__mapDeps([125,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23,37]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Ka=async()=>{try{return Z[77]??=await _(()=>import(`./md-BD00LdYU2.js`),__vite__mapDeps([126,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},qa=async()=>{try{return Z[78]??=await _(()=>import(`./md-gQoVXORd2.js`),__vite__mapDeps([127,1,2,3,5,6,37,15,14,16,11,4,12,13,17,18,19,100,50,51,52,53,101]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Ja=async()=>{try{return Z[79]??=await _(()=>import(`./md-CKlB9Opp2.js`),__vite__mapDeps([128,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Ya=async()=>{try{return Z[80]??=await _(()=>import(`./md-Be8ibFbg2.js`),__vite__mapDeps([129,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Xa=async()=>{try{return Z[81]??=await _(()=>import(`./md-D8a00Bf42.js`),__vite__mapDeps([130,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Za=async()=>{try{return Z[82]??=await _(()=>import(`./md-BIcSKdBe2.js`),__vite__mapDeps([131,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23,37,30,31]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Qa=async()=>{try{return Z[83]??=await _(()=>import(`./md-CkohBpnc2.js`),__vite__mapDeps([132,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},$a=async()=>{try{return Z[84]??=await _(()=>import(`./md-B9ulHjpP2.js`),__vite__mapDeps([133,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23,37]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},eo=async()=>{try{return Z[85]??=await _(()=>import(`./md-Cyq9FsHK2.js`),__vite__mapDeps([134,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},to=async()=>{try{return Z[86]??=await _(()=>import(`./md-BYSwjGyl2.js`),__vite__mapDeps([135,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},no=async()=>{try{return Z[87]??=await _(()=>import(`./md-ov3WBxt42.js`),__vite__mapDeps([136,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},ro=async()=>{try{return Z[88]??=await _(()=>import(`./md-pskFIDqA.js`),__vite__mapDeps([137,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23,37]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},io=async()=>{try{return Z[89]??=await _(()=>import(`./md-CXs_gtmt.js`),__vite__mapDeps([138,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},ao=async()=>{try{return Z[90]??=await _(()=>import(`./md-D3p7ARYp.js`),__vite__mapDeps([139,1,2,3,5,6,7,4,8,25,26]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},oo=async()=>{try{return Z[91]??=await _(()=>import(`./md-xvI7ct9A.js`),__vite__mapDeps([140,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23,37,42,43]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},so=async()=>{try{return Z[92]??=await _(()=>import(`./md-BpsoksUK.js`),__vite__mapDeps([141,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},co=async()=>{try{return Z[93]??=await _(()=>import(`./md-DDJqW7HE.js`),__vite__mapDeps([142,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23,42,43]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},lo=async()=>{try{return Z[94]??=await _(()=>import(`./md-CiM72IUq.js`),__vite__mapDeps([143,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},uo=async()=>{try{return Z[95]??=await _(()=>import(`./md-CA1qi8QW.js`),__vite__mapDeps([144,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23,42,43]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},fo=async()=>{try{return Z[96]??=await _(()=>import(`./md-CqtL3tHC.js`),__vite__mapDeps([145,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},po=async()=>{try{return Z[97]??=await _(()=>import(`./md-B7GUUxxz.js`),__vite__mapDeps([146,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23,37,42,43]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},mo=async()=>{try{return Z[98]??=await _(()=>import(`./md-DjaYpOUh.js`),__vite__mapDeps([147,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},ho=async()=>{try{return Z[99]??=await _(()=>import(`./md-cJlzjNnc.js`),__vite__mapDeps([148,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},go=async()=>{try{return Z[100]??=await _(()=>import(`./md-CYuR5Uhz.js`),__vite__mapDeps([149,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},_o=async()=>{try{return Z[101]??=await _(()=>import(`./md-DHcp8en9.js`),__vite__mapDeps([150,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},vo=async()=>{try{return Z[102]??=await _(()=>import(`./md-De1GYs9G.js`),__vite__mapDeps([151,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},yo=async()=>{try{return Z[103]??=await _(()=>import(`./md-jgfmjZh3.js`),__vite__mapDeps([152,1,2,3,5,6,7,4,8,25,26]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},bo=async()=>{try{return Z[104]??=await _(()=>import(`./md-M-PCU6Sz.js`),__vite__mapDeps([153,1,2,3,5,6,7,4,8,22,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},xo=async()=>{try{return Z[105]??=await _(()=>import(`./md-BAhUxKK3.js`),__vite__mapDeps([154,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},So=async()=>{try{return Z[106]??=await _(()=>import(`./md-cpUlN5wY.js`),__vite__mapDeps([155,1,2,3,4,5,6,7,8,22,12,13,14,15,16,17,18,23,156]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Co=async()=>{try{return Z[107]??=await _(()=>import(`./md-Clm9NgPD.js`),__vite__mapDeps([157,1,2,3,5,6,22,4,12,13,14,15,16,17,18,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},wo=async()=>{try{return Z[108]??=await _(()=>import(`./md-D26z4SFE.js`),__vite__mapDeps([158,1,2,3,4,5,6,7,8,159]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},To=[{no:1,meta:Qe,load:Ci,component:Q(0,Ci)},{no:2,meta:$e,load:wi,component:Q(1,wi)},{no:3,meta:et,load:Ti,component:Q(2,Ti)},{no:4,meta:tt,load:Ei,component:Q(3,Ei)},{no:5,meta:nt,load:Di,component:Q(4,Di)},{no:6,meta:rt,load:Oi,component:Q(5,Oi)},{no:7,meta:it,load:ki,component:Q(6,ki)},{no:8,meta:at,load:Ai,component:Q(7,Ai)},{no:9,meta:ot,load:ji,component:Q(8,ji)},{no:10,meta:st,load:Mi,component:Q(9,Mi)},{no:11,meta:ct,load:Ni,component:Q(10,Ni)},{no:12,meta:lt,load:Pi,component:Q(11,Pi)},{no:13,meta:ut,load:Fi,component:Q(12,Fi)},{no:14,meta:dt,load:Ii,component:Q(13,Ii)},{no:15,meta:ft,load:Li,component:Q(14,Li)},{no:16,meta:pt,load:Ri,component:Q(15,Ri)},{no:17,meta:mt,load:zi,component:Q(16,zi)},{no:18,meta:ht,load:Bi,component:Q(17,Bi)},{no:19,meta:gt,load:Vi,component:Q(18,Vi)},{no:20,meta:_t,load:Hi,component:Q(19,Hi)},{no:21,meta:vt,load:Ui,component:Q(20,Ui)},{no:22,meta:yt,load:Wi,component:Q(21,Wi)},{no:23,meta:bt,load:Gi,component:Q(22,Gi)},{no:24,meta:xt,load:Ki,component:Q(23,Ki)},{no:25,meta:St,load:qi,component:Q(24,qi)},{no:26,meta:Ct,load:Ji,component:Q(25,Ji)},{no:27,meta:wt,load:Yi,component:Q(26,Yi)},{no:28,meta:Tt,load:Xi,component:Q(27,Xi)},{no:29,meta:Et,load:Zi,component:Q(28,Zi)},{no:30,meta:Dt,load:Qi,component:Q(29,Qi)},{no:31,meta:kt,load:$i,component:Q(30,$i)},{no:32,meta:jt,load:ea,component:Q(31,ea)},{no:33,meta:Nt,load:ta,component:Q(32,ta)},{no:34,meta:Ft,load:na,component:Q(33,na)},{no:35,meta:Lt,load:ra,component:Q(34,ra)},{no:36,meta:zt,load:ia,component:Q(35,ia)},{no:37,meta:Vt,load:aa,component:Q(36,aa)},{no:38,meta:Ut,load:oa,component:Q(37,oa)},{no:39,meta:Gt,load:sa,component:Q(38,sa)},{no:40,meta:qt,load:ca,component:Q(39,ca)},{no:41,meta:Yt,load:la,component:Q(40,la)},{no:42,meta:Zt,load:ua,component:Q(41,ua)},{no:43,meta:$t,load:da,component:Q(42,da)},{no:44,meta:tn,load:fa,component:Q(43,fa)},{no:45,meta:rn,load:pa,component:Q(44,pa)},{no:46,meta:on,load:ma,component:Q(45,ma)},{no:47,meta:cn,load:ha,component:Q(46,ha)},{no:48,meta:un,load:ga,component:Q(47,ga)},{no:49,meta:fn,load:_a,component:Q(48,_a)},{no:50,meta:mn,load:va,component:Q(49,va)},{no:51,meta:gn,load:ya,component:Q(50,ya)},{no:52,meta:vn,load:ba,component:Q(51,ba)},{no:53,meta:bn,load:xa,component:Q(52,xa)},{no:54,meta:Sn,load:Sa,component:Q(53,Sa)},{no:55,meta:wn,load:Ca,component:Q(54,Ca)},{no:56,meta:En,load:wa,component:Q(55,wa)},{no:57,meta:On,load:Ta,component:Q(56,Ta)},{no:58,meta:An,load:Ea,component:Q(57,Ea)},{no:59,meta:Mn,load:Da,component:Q(58,Da)},{no:60,meta:Pn,load:Oa,component:Q(59,Oa)},{no:61,meta:In,load:ka,component:Q(60,ka)},{no:62,meta:Rn,load:Aa,component:Q(61,Aa)},{no:63,meta:Bn,load:ja,component:Q(62,ja)},{no:64,meta:Hn,load:Ma,component:Q(63,Ma)},{no:65,meta:Wn,load:Na,component:Q(64,Na)},{no:66,meta:Kn,load:Pa,component:Q(65,Pa)},{no:67,meta:Jn,load:Fa,component:Q(66,Fa)},{no:68,meta:Xn,load:Ia,component:Q(67,Ia)},{no:69,meta:Qn,load:La,component:Q(68,La)},{no:70,meta:er,load:Ra,component:Q(69,Ra)},{no:71,meta:nr,load:za,component:Q(70,za)},{no:72,meta:ir,load:Ba,component:Q(71,Ba)},{no:73,meta:or,load:Va,component:Q(72,Va)},{no:74,meta:cr,load:Ha,component:Q(73,Ha)},{no:75,meta:ur,load:Ua,component:Q(74,Ua)},{no:76,meta:fr,load:Wa,component:Q(75,Wa)},{no:77,meta:mr,load:Ga,component:Q(76,Ga)},{no:78,meta:gr,load:Ka,component:Q(77,Ka)},{no:79,meta:vr,load:qa,component:Q(78,qa)},{no:80,meta:br,load:Ja,component:Q(79,Ja)},{no:81,meta:Sr,load:Ya,component:Q(80,Ya)},{no:82,meta:wr,load:Xa,component:Q(81,Xa)},{no:83,meta:Er,load:Za,component:Q(82,Za)},{no:84,meta:Or,load:Qa,component:Q(83,Qa)},{no:85,meta:Ar,load:$a,component:Q(84,$a)},{no:86,meta:Mr,load:eo,component:Q(85,eo)},{no:87,meta:Pr,load:to,component:Q(86,to)},{no:88,meta:Ir,load:no,component:Q(87,no)},{no:89,meta:Rr,load:ro,component:Q(88,ro)},{no:90,meta:Br,load:io,component:Q(89,io)},{no:91,meta:Hr,load:ao,component:Q(90,ao)},{no:92,meta:Wr,load:oo,component:Q(91,oo)},{no:93,meta:Kr,load:so,component:Q(92,so)},{no:94,meta:qr,load:co,component:Q(93,co)},{no:95,meta:Yr,load:lo,component:Q(94,lo)},{no:96,meta:Zr,load:uo,component:Q(95,uo)},{no:97,meta:$r,load:fo,component:Q(96,fo)},{no:98,meta:ti,load:po,component:Q(97,po)},{no:99,meta:ri,load:mo,component:Q(98,mo)},{no:100,meta:ai,load:ho,component:Q(99,ho)},{no:101,meta:si,load:go,component:Q(100,go)},{no:102,meta:li,load:_o,component:Q(101,_o)},{no:103,meta:di,load:vo,component:Q(102,vo)},{no:104,meta:pi,load:yo,component:Q(103,yo)},{no:105,meta:hi,load:bo,component:Q(104,bo)},{no:106,meta:_i,load:xo,component:Q(105,xo)},{no:107,meta:yi,load:So,component:Q(106,So)},{no:108,meta:xi,load:Co,component:Q(107,Co)},{no:109,meta:Si,load:wo,component:Q(108,wo)}],$=l(To);function Eo(e,t,{mode:r=`replace`}={}){let i=pe();return u({get(){let n=i.currentRoute.value.query[e];return n==null?t??null:Array.isArray(n)?n.filter(Boolean):n},set(a){n(()=>{(i.currentRoute.value.query[e]??t?.toString())!==a.toString()&&i[s(r)]({query:{...i.currentRoute.value.query,[e]:`${a}`===t?void 0:a}})})}})}function Do(e,t,n=!1){let r=e.meta.slide?.frontmatter.routeAlias??e.no;return n?`/export/${r}`:t?`/presenter/${r}`:`/${r}`}function Oo(e){return $.value.find(t=>t.no===+e||t.meta.slide?.frontmatter.routeAlias===e)}function ko(e,t,n=!1){return(typeof e==`number`||typeof e==`string`)&&(e=Oo(e)),Do(e,t,n)}var Ao={"slide-left":`slide-left | slide-right`,"slide-right":`slide-right | slide-left`,"slide-up":`slide-up | slide-down`,"slide-down":`slide-down | slide-up`};function jo(e,t=!1){if(!e||(typeof e==`string`&&(e={name:e}),!e.name))return;let n=e.name.includes(`|`)?e.name:Ao[e.name]||e.name;if(n.includes(`|`)){let[e,r]=n.split(`|`).map(e=>e.trim());n=t?r:e}if(n)return{...e,name:n}}function Mo(e,t,n){let r=e>0?n?.meta?.transition:t?.meta?.transition;return r||=g.transition||void 0,jo(r,e<0)}var No=d(!1),Po=d(!1),Fo=d(!1),Io=d(!1),Lo=d(!1),Ro=d(!1),zo=d(!0),Bo=p(new Set),Vo=u(()=>Bo.size>0),Ho=ye({xs:460,...he}),Uo=de(),Wo=me(),Go=u(()=>Uo.height.value-Uo.width.value/je.value>120),Ko=_e(ve?document.body:null),qo=ge(),Jo=u(()=>[`INPUT`,`TEXTAREA`].includes(qo.value?.tagName||``)),Yo=u(()=>[`BUTTON`,`A`].includes(qo.value?.tagName||``));h(`slidev-camera`,`default`,{listenToStorageChanges:!1}),h(`slidev-mic`,`default`,{listenToStorageChanges:!1});var Xo=h(`slidev-scale`,0),Zo=h(`slidev-wake-lock`,!0),Qo=h(`slidev-hide-cursor-idle`,!0);h(`slidev-skip-export-pdf-tip`,!1),h(`slidev-export-capture-delay`,400,{listenToStorageChanges:!1});var $o=h(`slidev-presenter-cursor`,!0,{listenToStorageChanges:!1}),es=h(`slidev-cursor-style`,`cursor`,{listenToStorageChanges:!1});function ts(){$o.value=!$o.value}var ns=h(`slidev-show-editor`,!1,{listenToStorageChanges:!1}),rs=h(`slidev-editor-vertical`,!1,{listenToStorageChanges:!1}),is=h(`slidev-editor-width`,ve?window.innerWidth*.4:318,{listenToStorageChanges:!1}),as=h(`slidev-editor-height`,ve?window.innerHeight*.4:300,{listenToStorageChanges:!1}),os=l(null),ss=h(`slidev-presenter-font-size`,1,{listenToStorageChanges:!1}),cs=h(`slidev-presenter-layout`,1,{listenToStorageChanges:!1}),ls={invert:!1,contrast:1,brightness:1,hueRotate:0,saturate:1,sepia:0},us=h(`slidev-viewer-css-filter`,ls,{listenToStorageChanges:!1,mergeDefaults:!0,deep:!0}),ds=u(()=>Object.keys(ls).some(e=>us.value[e]!==ls[e]));function fs(){cs.value+=1,cs.value>3&&(cs.value=1)}function ps(){ss.value=Math.min(2,ss.value+.1)}function ms(){ss.value=Math.max(.5,ss.value-.1)}var hs=fe(Io),gs=h(`slidev-sync-directions`,{viewerSend:!0,viewerReceive:!0,presenterSend:!0,presenterReceive:!0},{listenToStorageChanges:!1,mergeDefaults:!0});function _s(e,t,n=1){let r=t.meta.slide.level??n;r&&r>n&&e.length>0?_s(e[e.length-1].children,t,n+1):e.push({no:t.no,children:[],level:n,titleLevel:r,path:ko(t.meta.slide?.frontmatter?.routeAlias??t.no,!1),hideInToc:!!t.meta?.slide?.frontmatter?.hideInToc,title:t.meta?.slide?.title})}function vs(e,t,n=!1,r,i){return e.map(e=>{let a={...e,active:e.no===i?.value,hasActiveParent:n};return a.children.length>0&&(a.children=vs(a.children,t,a.active||a.hasActiveParent,a,i)),r&&(a.active||a.activeParent)&&(r.activeParent=!0),a})}function ys(e,t=1){return e.filter(e=>!e.hideInToc).map(e=>({...e,children:ys(e.children,t+1)}))}function bs(e,t,n){let r=u(()=>e.value.filter(e=>e.meta?.slide?.title).reduce((e,t)=>(_s(e,t),e),[])),i=u(()=>vs(r.value,n.value,void 0,void 0,t));return u(()=>ys(i.value))}function xs(e,t,n=d(0),r,i,o){let s=u(()=>$.value.length),c=d(0),l=d(0),ee=u(()=>ko(e.value,r.value)),f=u(()=>e.value.no),te=u(()=>e.value.meta?.layout||(f.value===1?`cover`:`default`)),ne=u(()=>e.value.meta.slide.frontmatter),p=u(()=>t.value.current),m=u(()=>t.value.clicksStart),re=u(()=>t.value.total),ie=u(()=>$.value[Math.min($.value.length,f.value+1)-1]),ae=u(()=>$.value[Math.max(1,f.value-1)-1]),oe=u(()=>f.value<$.value.length||p.valuef.value>1||p.value>0),ce=u(()=>i.value?void 0:Mo(c.value,e.value,ae.value));a(e,(e,t)=>{c.value=e.no-t.no});async function le(e){return!1}let ue=bs($,f,e);async function de(){l.value=1,re.value<=n.value?await pe():n.value+=1}async function fe(){l.value=-1,n.value<=m.value?await me(!0):--n.value}async function pe(e=!1){l.value=1,f.value<$.value.length&&await h(f.value+1,e&&!i.value?be:void 0)}async function me(e=!1){l.value=-1,f.value>1&&await h(f.value-1,e&&!i.value?be:void 0)}function he(){return h(1)}function ge(){return h(s.value)}async function h(e,t=0,i=!1){Lo.value=!1;let a=f.value!==e,s=t!==n.value,c=Oo(e)?.meta,l=c?.slide?.frontmatter.clicksStart??0;t=Se(t,l,c?.__clicksContext?.total??999999),(i||a||s)&&await o?.push({path:ko(e,r.value,o.currentRoute.value.name===`export`),query:{...o.currentRoute.value.query,clicks:t===0?void 0:t.toString(),embedded:location.search.includes(`embedded`)?`true`:void 0}})}function _e(){o?.push({path:ko(f.value,!0),query:{...o.currentRoute.value.query}})}function ve(){o?.push({path:ko(f.value,!1),query:{...o.currentRoute.value.query}})}return{slides:$,total:s,currentPath:ee,currentSlideNo:f,currentPage:f,currentSlideRoute:e,currentLayout:te,currentFrontmatter:ne,currentTransition:ce,clicksDirection:l,nextRoute:ie,prevRoute:ae,clicksContext:t,clicks:p,clicksStart:m,clicksTotal:re,hasNext:oe,hasPrev:se,tocTree:ue,navDirection:c,openInEditor:le,next:de,prev:fe,go:h,goLast:ge,goFirst:he,nextSlide:pe,prevSlide:me,enterPresenter:_e,exitPresenter:ve}}var Ss=ue(()=>{let e=pe(),t=le(),n=u(()=>(e?.currentRoute?.value?.query,new URLSearchParams(location.search))),r=u(()=>n.value.has(`print`)||t.name===`export`),i=d(n.value.get(`print`)===`clicks`),a=u(()=>n.value.has(`embedded`)),o=u(()=>t.name===`play`),s=u(()=>t.name===`presenter`),c=u(()=>t.name===`notes`),l=u(()=>!s.value&&(!g.remote||n.value.get(`password`)===g.remote)),ee=u(()=>!!t.params.no),f=u(()=>ee.value?Oo(t.params.no)?.no??1:1),te=u(()=>$.value[f.value-1]),ne=d(Ke($.value.length,t?.query?.range)),p=Eo(`clicks`,`0`),m=u(()=>ie(te.value)),re=u({get(){let e=+(p.value||0);return Number.isNaN(e)&&(e=0),e},set(e){Lo.value=!1,p.value=e.toString()}});function ie(e){if(e?.meta?.__clicksContext)return e.meta.__clicksContext;let t=e.no,n=He(u({get(){return f.value===t?Math.max(+(p.value??0),n.clicksStart):f.value>t?be:n.clicksStart},set(e){f.value===t&&(p.value=e.toString())}}),e?.meta.slide?.frontmatter.clicksStart??0,e?.meta.clicks);return e?.meta&&(e.meta.__clicksContext=n),n}return{router:e,currentRoute:u(()=>t),isPrintMode:r,isPrintWithClicks:i,isEmbedded:a,isPlaying:o,isPresenter:s,isNotesViewer:c,isPresenterAvailable:l,hasPrimarySlide:ee,currentSlideNo:f,currentSlideRoute:te,clicksContext:m,queryClicksRaw:p,queryClicks:re,printRange:ne,getPrimaryClicks:ie}}),Cs=ue(()=>{let e=Ss(),t=pe(),n=xs(e.currentSlideRoute,e.clicksContext,e.queryClicks,e.isPresenter,e.isPrintMode,t);return a([n.total,e.currentRoute],async()=>{let t=e.currentRoute.value.params.no;e.hasPrimarySlide.value&&!Oo(t)&&(t&&t!==`index.html`?await n.go(n.total.value,0,!0):await n.go(1,0,!0))},{flush:`pre`,immediate:!0}),{...n,...e}});function ws(){let e=Cs(),t=r()?ce(xe,void 0):void 0;if(!t)return e;let n=te(t).nav;return{...e,...n}}export{Fe as $,Xo as A,ko as B,Vo as C,Io as D,Po as E,us as F,Ue as G,Ke as H,ls as I,Ae as J,Be as K,Zo as L,hs as M,ts as N,$o as O,fs as P,Me as Q,Uo as R,zo as S,Fo as T,Ge as U,$ as V,He as W,je as X,Ie as Y,Ne as Z,Yo as _,es as a,cs as b,as as c,ds as d,Pe as et,Qo as f,Jo as g,rs as h,Ho as i,we as it,gs as j,No as k,is as l,ps as m,os as n,Se as nt,ms as o,Lo as p,_ as q,qo as r,De as rt,Ro as s,ws as t,g as tt,Ko as u,Go as v,ns as w,ss as x,Wo as y,Oo as z}; \ No newline at end of file diff --git a/lecture-06/class/404.html b/lecture-06/class/404.html new file mode 100644 index 0000000000000000000000000000000000000000..3ab4493ed1c063282aca0babbd4aeeeac3368ae5 --- /dev/null +++ b/lecture-06/class/404.html @@ -0,0 +1,30 @@ + + + + + +Transformers (class) - Slidev + + + + + + + + + + + + + + + + + + + +
+
+ + + diff --git a/lecture-06/class/_redirects b/lecture-06/class/_redirects new file mode 100644 index 0000000000000000000000000000000000000000..bdc8a08e90af7526ac48238e8fbb2f0f26121fa3 --- /dev/null +++ b/lecture-06/class/_redirects @@ -0,0 +1 @@ +./* ./index.html 200 diff --git a/lecture-06/class/assets/404-bkedjYjP.css b/lecture-06/class/assets/404-bkedjYjP.css new file mode 100644 index 0000000000000000000000000000000000000000..0b95cae68cb7a9eeaa0fecc385b94688be2b2945 --- /dev/null +++ b/lecture-06/class/assets/404-bkedjYjP.css @@ -0,0 +1 @@ +.page-link[data-v-b584852f]{background-color:#9ca3af1a;border-radius:.25rem;padding:.5rem 1rem}.page-link[data-v-b584852f]:hover{background-color:#9ca3af33} diff --git a/lecture-06/class/assets/AttentionMatrix-BhYJvquu.css b/lecture-06/class/assets/AttentionMatrix-BhYJvquu.css new file mode 100644 index 0000000000000000000000000000000000000000..645bac7bf8bf950d6eaa604395c879f0fa4ed4ea --- /dev/null +++ b/lecture-06/class/assets/AttentionMatrix-BhYJvquu.css @@ -0,0 +1 @@ +.dl-amx[data-v-6a6f8a8a]{flex-direction:column;align-items:center;width:100%;display:flex}.dl-amx__axes[data-v-6a6f8a8a]{letter-spacing:.08em;text-transform:uppercase;width:100%;max-width:30rem;color:var(--dl-muted);justify-content:space-between;margin-bottom:.25rem;font-size:.68rem;display:flex}.dl-amx__grid[data-v-6a6f8a8a]{border-collapse:separate;border-spacing:2px;font-variant-numeric:tabular-nums;width:auto}.dl-amx__grid .dl-amx__colhead[data-v-6a6f8a8a],.dl-amx__grid .dl-amx__rowhead[data-v-6a6f8a8a]{color:var(--dl-heading);white-space:nowrap;text-align:center;padding:.1rem .3rem;font-size:.78rem;font-weight:600}.dl-amx__grid .dl-amx__rowhead[data-v-6a6f8a8a]{text-align:right}.dl-amx.is-mask .dl-amx__colhead[data-v-6a6f8a8a],.dl-amx.is-mask .dl-amx__rowhead[data-v-6a6f8a8a]{font-size:.68rem}.dl-amx__grid .dl-amx__cell[data-v-6a6f8a8a]{border:1px solid var(--dl-border);text-align:center;border-radius:3px;width:3.5rem;height:2rem;position:relative;overflow:hidden}.dl-amx.is-mask .dl-amx__grid .dl-amx__cell[data-v-6a6f8a8a]{width:2.2rem;height:1.6rem}.dl-amx__grid th[data-v-6a6f8a8a],.dl-amx__grid td[data-v-6a6f8a8a]{box-sizing:border-box;background:0 0;border:none;padding:0}.dl-amx__fill[data-v-6a6f8a8a]{background:var(--dl-accent);position:absolute;inset:0}.dl-amx__text[data-v-6a6f8a8a]{color:var(--dl-heading);font-size:.8rem;position:relative}.dl-amx__text.is-strong[data-v-6a6f8a8a]{font-weight:700}.dl-amx__grid .dl-amx__cell.is-blocked[data-v-6a6f8a8a]{border-style:dashed}.dl-amx__cell.is-blocked .dl-amx__text[data-v-6a6f8a8a]{color:var(--dl-muted)}.dl-amx__grid .dl-amx__sum[data-v-6a6f8a8a]{color:var(--dl-muted);white-space:nowrap;padding-left:.6rem;font-size:.75rem}.dl-amx__grid tr.is-active .dl-amx__rowhead[data-v-6a6f8a8a]{color:var(--dl-accent)}.dl-amx__grid tr.is-active .dl-amx__cell[data-v-6a6f8a8a]{border-color:var(--dl-accent)}.dl-amx__grid thead th[data-v-6a6f8a8a]:first-child{width:4rem} diff --git a/lecture-06/class/assets/AttentionMatrix-CVQjcu-J.js b/lecture-06/class/assets/AttentionMatrix-CVQjcu-J.js new file mode 100644 index 0000000000000000000000000000000000000000..cee3f701e5703c71bb22a821b0832a9d0944684d --- /dev/null +++ b/lecture-06/class/assets/AttentionMatrix-CVQjcu-J.js @@ -0,0 +1 @@ +import{Q as e,V as t,_ as n,b as r,bt as i,g as a,lt as o,m as s,v as c,vt as l,w as u,x as d,xt as f,y as p,z as m}from"./modules/shiki-BFOesOFp.js";import{t as h}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as g}from"./slidev/context-DrkI8qiD.js";import{t as _}from"./WidgetFrame-D2L0MlKA.js";import{t as v}from"./StepButton-BcP33F-1.js";import{i as y,r as b,u as x}from"./useAttention-Blk0c2BZ.js";var S={class:`dl-amx__grid`},C=[`onMouseenter`],w={class:`dl-amx__rowhead`},T={key:0,class:`dl-amx__sum`},E=h(u({__name:`AttentionMatrix`,props:{mode:{default:`weights`},sentence:{default:`river`},causal:{type:Boolean,default:!1},maskable:{type:Boolean,default:!0},switchable:{type:Boolean,default:!1}},setup(u){let{$slidev:h,$nav:E,$clicksContext:D,$clicks:O,$page:k,$renderContext:A,$frontmatter:j}=g(),M=u,N=o(M.sentence),P=o(M.causal),F=o(null),I=a(()=>M.mode===`mask`?b:y[N.value]),L=a(()=>x(y[N.value],P.value)),R=a(()=>M.mode===`mask`?I.value.map((e,t)=>I.value.map((e,n)=>+(n<=t))):L.value.rows.map(e=>e.weights)),z=a(()=>R.value.reduce((e,t)=>e+t.filter(e=>e>0).length,0)),B=a(()=>I.value.length**2),V=a(()=>F.value===null?null:L.value.rows[F.value]);function H(e){return e.toFixed(2)}function U(e){return M.mode===`mask`?e>0?.55:0:Math.sqrt(e)*.92}return(a,o)=>{let u=v,h=_;return m(),c(h,{"max-width":`40rem`},{controls:e(()=>[M.maskable&&M.mode===`weights`?(m(),c(u,{key:0,label:P.value?`Remove the mask`:`Apply the causal mask`,variant:P.value?`ghost`:`primary`,glyph:`◺`,onClick:o[1]||=e=>P.value=!P.value},null,8,[`label`,`variant`])):p(`v-if`,!0),M.switchable&&M.mode===`weights`?(m(),c(u,{key:1,label:N.value===`river`?`Swap river → money`:`Swap money → river`,variant:`ghost`,glyph:`⇄`,onClick:o[2]||=e=>N.value=N.value===`river`?`money`:`river`},null,8,[`label`])):p(`v-if`,!0)]),readout:e(()=>[M.mode===`mask`?(m(),r(s,{key:0},[d(f(I.value.length)+` words, so `+f(B.value)+` cells — and the mask throws away `,1),n(`strong`,null,f(B.value-z.value),1),o[5]||=d(` of them. Position `,-1),o[6]||=n(`em`,null,`t`,-1),o[7]||=d(` may read positions 1…`,-1),o[8]||=n(`em`,null,`t`,-1),d(` and nothing later, so row 1 has one live cell and the last row has `+f(I.value.length)+`. The scores are still `,1),o[9]||=n(`em`,null,`all`,-1),o[10]||=d(` computed and then set to −∞ before the softmax: masking saves no work, it only removes the answer. `,-1)],64)):V.value?(m(),r(s,{key:1},[n(`strong`,null,f(V.value.word),1),d(` spreads its attention as [`+f(V.value.weights.map(e=>H(e)).join(`, `))+`], and those add to exactly 1 — that is the softmax's doing, and it is why the output is an `,1),o[11]||=n(`em`,null,`average`,-1),o[12]||=d(` of values rather than a sum that grows with the sentence. `,-1)],64)):P.value?(m(),r(s,{key:2},[o[13]||=d(` With the mask on, row `,-1),o[14]||=n(`em`,null,`the`,-1),o[15]||=d(` is a single `,-1),o[16]||=n(`strong`,null,`1.00`,-1),o[17]||=d(`: the first token has nothing to look at but itself. Every row still sums to 1, because the softmax is taken after the blocked scores are set to −∞. `,-1)],64)):(m(),r(s,{key:3},[d(` Nine numbers, one matrix multiply. No cell depends on any other cell, so every row is computed at the same time — which is exactly what a recurrent layer could not do, and the reason this architecture won. `)],64))]),default:e(()=>[n(`div`,{class:l([`dl-amx`,`is-${M.mode}`])},[o[4]||=n(`div`,{class:`dl-amx__axes`},[n(`span`,{class:`dl-amx__axis`},`rows ask`),n(`span`,{class:`dl-amx__axis is-cols`},`columns are read`)],-1),n(`table`,S,[n(`thead`,null,[n(`tr`,null,[o[3]||=n(`th`,null,null,-1),(m(!0),r(s,null,t(I.value,(e,t)=>(m(),r(`th`,{key:`h${t}`,class:`dl-amx__colhead`},f(e),1))),128))])]),n(`tbody`,null,[(m(!0),r(s,null,t(R.value,(e,a)=>(m(),r(`tr`,{key:`r${a}`,class:l({"is-active":F.value===a}),onMouseenter:e=>F.value=a,onMouseleave:o[0]||=e=>F.value=null},[n(`th`,w,f(I.value[a]),1),(m(!0),r(s,null,t(e,(e,t)=>(m(),r(`td`,{key:`c${t}`,class:l([`dl-amx__cell`,{"is-blocked":e===0&&(P.value||M.mode===`mask`)}])},[n(`span`,{class:`dl-amx__fill`,style:i({opacity:U(e)})},null,4),n(`span`,{class:l([`dl-amx__text`,{"is-strong":e>.45}])},f(M.mode===`mask`?e>0?``:`×`:e===0?`×`:H(e)),3)],2))),128)),M.mode===`weights`?(m(),r(`td`,T,` = `+f(H(e.reduce((e,t)=>e+t,0))),1)):p(`v-if`,!0)],42,C))),128))])])],2)]),_:1})}}}),[[`__scopeId`,`data-v-6a6f8a8a`]]);export{E as t}; \ No newline at end of file diff --git a/lecture-06/class/assets/DeckFooter-B6vKMo6W.css b/lecture-06/class/assets/DeckFooter-B6vKMo6W.css new file mode 100644 index 0000000000000000000000000000000000000000..bd00073f9a4233c8d949a2f8f1202003aec12052 --- /dev/null +++ b/lecture-06/class/assets/DeckFooter-B6vKMo6W.css @@ -0,0 +1 @@ +.dl-footer[data-v-fe908050]{letter-spacing:.04em;color:var(--dl-muted);pointer-events:none;justify-content:space-between;align-items:center;gap:1rem;font-size:.72rem;display:flex;position:absolute;bottom:1rem;left:3rem;right:3rem}.dl-footer__left[data-v-fe908050]{align-items:center;gap:.4rem;min-width:0;display:flex}.dl-footer__code[data-v-fe908050]{color:var(--dl-accent);font-weight:700}.dl-footer__sep[data-v-fe908050]{opacity:.5}.dl-footer__title[data-v-fe908050]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.dl-footer__right[data-v-fe908050]{font-variant-numeric:tabular-nums;flex-shrink:0} diff --git a/lecture-06/class/assets/DeckFooter-B7ogzN5B.js b/lecture-06/class/assets/DeckFooter-B7ogzN5B.js new file mode 100644 index 0000000000000000000000000000000000000000..04896b39a8e44a90d8308c81902933eb70ad57f5 --- /dev/null +++ b/lecture-06/class/assets/DeckFooter-B7ogzN5B.js @@ -0,0 +1 @@ +import{_ as e,_t as t,b as n,g as r,w as i,xt as a,y as o,z as s}from"./modules/shiki-BFOesOFp.js";import{t as c}from"./useNav-BF8Ehznl.js";import{t as l}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as u}from"./slidev/context-DrkI8qiD.js";import"./slidev/client-DrWBSyE4.js";var d={class:`dl-footer`},f={class:`dl-footer__left`},p={key:0,class:`dl-footer__code`},m={key:1,class:`dl-footer__sep`},h={key:2},g={key:3,class:`dl-footer__sep`},_={key:4,class:`dl-footer__title`},v={class:`dl-footer__right`},y=l(i({__name:`DeckFooter`,setup(i){let{$slidev:l}=u(),y=c(),b=r(()=>l?.themeConfigs??{}),x=r(()=>b.value.courseCode??``),S=r(()=>b.value.lecture??``),C=r(()=>b.value.lectureTitle??``);return(r,i)=>(s(),n(`footer`,d,[e(`div`,f,[x.value?(s(),n(`span`,p,a(x.value),1)):o(`v-if`,!0),S.value?(s(),n(`span`,m,`·`)):o(`v-if`,!0),S.value?(s(),n(`span`,h,`Lecture `+a(S.value),1)):o(`v-if`,!0),C.value?(s(),n(`span`,g,`·`)):o(`v-if`,!0),C.value?(s(),n(`span`,_,a(C.value),1)):o(`v-if`,!0)]),e(`div`,v,a(t(y).currentPage.value)+` / `+a(t(y).total.value),1)]))}}),[[`__scopeId`,`data-v-fe908050`]]);export{y as t}; \ No newline at end of file diff --git a/lecture-06/class/assets/DrawingControls-Dhbx0szf.css b/lecture-06/class/assets/DrawingControls-Dhbx0szf.css new file mode 100644 index 0000000000000000000000000000000000000000..85375579327c847940a8710fedd96a5b987c16c1 --- /dev/null +++ b/lecture-06/class/assets/DrawingControls-Dhbx0szf.css @@ -0,0 +1 @@ +.v-popper--theme-dropdown .v-popper__arrow-inner{border-color:#9ca3af33} diff --git a/lecture-06/class/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 b/lecture-06/class/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..0acaaff03d4bb7606de02a827aeee338e5a86910 Binary files /dev/null and b/lecture-06/class/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 differ diff --git a/lecture-06/class/assets/KaTeX_AMS-Regular-DMm9YOAa.woff b/lecture-06/class/assets/KaTeX_AMS-Regular-DMm9YOAa.woff new file mode 100644 index 0000000000000000000000000000000000000000..b804d7b33a3fa5b2587d2d1d55006aed678e3eb2 Binary files /dev/null and b/lecture-06/class/assets/KaTeX_AMS-Regular-DMm9YOAa.woff differ diff --git a/lecture-06/class/assets/KaTeX_AMS-Regular-DRggAlZN.ttf b/lecture-06/class/assets/KaTeX_AMS-Regular-DRggAlZN.ttf new file mode 100644 index 0000000000000000000000000000000000000000..c6f9a5e7c03f9e64e9c7b4773a8e37ade8eaf406 Binary files /dev/null and b/lecture-06/class/assets/KaTeX_AMS-Regular-DRggAlZN.ttf differ diff --git a/lecture-06/class/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf b/lecture-06/class/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf new file mode 100644 index 0000000000000000000000000000000000000000..9ff4a5e04421e5107f74c28e27354e0b2a4e7ef8 Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf differ diff --git a/lecture-06/class/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff b/lecture-06/class/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff new file mode 100644 index 0000000000000000000000000000000000000000..9759710d1d3e16eb10012d56babb73f2479ba9f0 Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff differ diff --git a/lecture-06/class/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 b/lecture-06/class/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..f390922eceffe1f6dfb81a3dc086a92d98171b02 Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 differ diff --git a/lecture-06/class/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff b/lecture-06/class/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff new file mode 100644 index 0000000000000000000000000000000000000000..9bdd534fd2beb9b878f0219da9d63ffba56677e2 Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff differ diff --git a/lecture-06/class/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 b/lecture-06/class/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..75344a1f98e37e2c631e178065854c3a81fb842f Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 differ diff --git a/lecture-06/class/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf b/lecture-06/class/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf new file mode 100644 index 0000000000000000000000000000000000000000..f522294ff0f3f8c52dfdaef7ebfaa06ebfcfaabf Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf differ diff --git a/lecture-06/class/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf b/lecture-06/class/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf new file mode 100644 index 0000000000000000000000000000000000000000..4e98259c3b54076d684bf3459baeaeae8dbce97a Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf differ diff --git a/lecture-06/class/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff b/lecture-06/class/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff new file mode 100644 index 0000000000000000000000000000000000000000..e7730f66275c87c28f26530d89264cffecf90be0 Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff differ diff --git a/lecture-06/class/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 b/lecture-06/class/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..395f28beac23c7b0f7f3a1e714bd8dac253dd3bc Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 differ diff --git a/lecture-06/class/assets/KaTeX_Fraktur-Regular-CB_wures.ttf b/lecture-06/class/assets/KaTeX_Fraktur-Regular-CB_wures.ttf new file mode 100644 index 0000000000000000000000000000000000000000..b8461b275fae76efd0d21fd0f1aaa696a5b10f9a Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Fraktur-Regular-CB_wures.ttf differ diff --git a/lecture-06/class/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 b/lecture-06/class/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..735f6948d63c8cc7f8233735bb9c8d843c83d804 Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 differ diff --git a/lecture-06/class/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff b/lecture-06/class/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff new file mode 100644 index 0000000000000000000000000000000000000000..acab069f90b6fe6301a004e6f8beaf6a0db48bce Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff differ diff --git a/lecture-06/class/assets/KaTeX_Main-Bold-Cx986IdX.woff2 b/lecture-06/class/assets/KaTeX_Main-Bold-Cx986IdX.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..ab2ad21da6fbe6c171bb869240954d0ead8f68fd Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Main-Bold-Cx986IdX.woff2 differ diff --git a/lecture-06/class/assets/KaTeX_Main-Bold-Jm3AIy58.woff b/lecture-06/class/assets/KaTeX_Main-Bold-Jm3AIy58.woff new file mode 100644 index 0000000000000000000000000000000000000000..f38136ac1cc2dcdc9d9b10b8521487468b1f768c Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Main-Bold-Jm3AIy58.woff differ diff --git a/lecture-06/class/assets/KaTeX_Main-Bold-waoOVXN0.ttf b/lecture-06/class/assets/KaTeX_Main-Bold-waoOVXN0.ttf new file mode 100644 index 0000000000000000000000000000000000000000..4060e627dc341c1854260cbc3f7386e222a4d297 Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Main-Bold-waoOVXN0.ttf differ diff --git a/lecture-06/class/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 b/lecture-06/class/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..5931794de4a2a485fa70099bf2659b145976d043 Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 differ diff --git a/lecture-06/class/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf b/lecture-06/class/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf new file mode 100644 index 0000000000000000000000000000000000000000..dc007977ee709a236d9e82719cf7d4e5577a81b9 Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf differ diff --git a/lecture-06/class/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff b/lecture-06/class/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff new file mode 100644 index 0000000000000000000000000000000000000000..67807b0bd4f867853271f5917fb3adf377f93f53 Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff differ diff --git a/lecture-06/class/assets/KaTeX_Main-Italic-3WenGoN9.ttf b/lecture-06/class/assets/KaTeX_Main-Italic-3WenGoN9.ttf new file mode 100644 index 0000000000000000000000000000000000000000..0e9b0f354ad460202bba554359f5adcc8da666b7 Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Main-Italic-3WenGoN9.ttf differ diff --git a/lecture-06/class/assets/KaTeX_Main-Italic-BMLOBm91.woff b/lecture-06/class/assets/KaTeX_Main-Italic-BMLOBm91.woff new file mode 100644 index 0000000000000000000000000000000000000000..6f43b594b6c1d863a0e3f93b001f8dd503316464 Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Main-Italic-BMLOBm91.woff differ diff --git a/lecture-06/class/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 b/lecture-06/class/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..b50920e138807f385d0b0359f4f0f09891f18406 Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 differ diff --git a/lecture-06/class/assets/KaTeX_Main-Regular-B22Nviop.woff2 b/lecture-06/class/assets/KaTeX_Main-Regular-B22Nviop.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..eb24a7ba282b03d830fa6c63ee897d92a5188736 Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Main-Regular-B22Nviop.woff2 differ diff --git a/lecture-06/class/assets/KaTeX_Main-Regular-Dr94JaBh.woff b/lecture-06/class/assets/KaTeX_Main-Regular-Dr94JaBh.woff new file mode 100644 index 0000000000000000000000000000000000000000..21f5812968c42392a3eaea9b0c6320870b6b8b38 Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Main-Regular-Dr94JaBh.woff differ diff --git a/lecture-06/class/assets/KaTeX_Main-Regular-ypZvNtVU.ttf b/lecture-06/class/assets/KaTeX_Main-Regular-ypZvNtVU.ttf new file mode 100644 index 0000000000000000000000000000000000000000..dd45e1ed2e18b32c516d9b481ebed3cb8bffa711 Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Main-Regular-ypZvNtVU.ttf differ diff --git a/lecture-06/class/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf b/lecture-06/class/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf new file mode 100644 index 0000000000000000000000000000000000000000..728ce7a1e2cb689df32c3a6c26e1bd072dcf2acb Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf differ diff --git a/lecture-06/class/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 b/lecture-06/class/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..29657023adc09956249f6295746c8ce4469b50d3 Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 differ diff --git a/lecture-06/class/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff b/lecture-06/class/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff new file mode 100644 index 0000000000000000000000000000000000000000..0ae390d74c9f665cf8b1e5ea5483395da7513444 Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff differ diff --git a/lecture-06/class/assets/KaTeX_Math-Italic-DA0__PXp.woff b/lecture-06/class/assets/KaTeX_Math-Italic-DA0__PXp.woff new file mode 100644 index 0000000000000000000000000000000000000000..eb5159d4c1ca83fb92b3190223698427df0e010c Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Math-Italic-DA0__PXp.woff differ diff --git a/lecture-06/class/assets/KaTeX_Math-Italic-flOr_0UB.ttf b/lecture-06/class/assets/KaTeX_Math-Italic-flOr_0UB.ttf new file mode 100644 index 0000000000000000000000000000000000000000..70d559b4e937ca1b805eb39f544cbebe3c58ca6f Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Math-Italic-flOr_0UB.ttf differ diff --git a/lecture-06/class/assets/KaTeX_Math-Italic-t53AETM-.woff2 b/lecture-06/class/assets/KaTeX_Math-Italic-t53AETM-.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..215c143fd7805a5c2b222bd7892a1a2b09610020 Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Math-Italic-t53AETM-.woff2 differ diff --git a/lecture-06/class/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf b/lecture-06/class/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf new file mode 100644 index 0000000000000000000000000000000000000000..2f65a8a3a6d3628d11ea9c26c9077cef672fe427 Binary files /dev/null and b/lecture-06/class/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf differ diff --git a/lecture-06/class/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 b/lecture-06/class/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..cfaa3bda59246b49e94298478d6de3b3208066c8 Binary files /dev/null and b/lecture-06/class/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 differ diff --git a/lecture-06/class/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff b/lecture-06/class/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff new file mode 100644 index 0000000000000000000000000000000000000000..8d47c02d9408d34b2a9d566c0fe0d42bf82fb735 Binary files /dev/null and b/lecture-06/class/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff differ diff --git a/lecture-06/class/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 b/lecture-06/class/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..349c06dc609f896392fd5bc8b364d3bc3efc9330 Binary files /dev/null and b/lecture-06/class/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 differ diff --git a/lecture-06/class/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff b/lecture-06/class/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff new file mode 100644 index 0000000000000000000000000000000000000000..7e02df963621a5e26d53d510f0b4992eebde1c60 Binary files /dev/null and b/lecture-06/class/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff differ diff --git a/lecture-06/class/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf b/lecture-06/class/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf new file mode 100644 index 0000000000000000000000000000000000000000..d5850df98ec19de2eee9ff922ef59586efe471d0 Binary files /dev/null and b/lecture-06/class/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf differ diff --git a/lecture-06/class/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf b/lecture-06/class/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf new file mode 100644 index 0000000000000000000000000000000000000000..537279f6bd2184ed32f1a5168850609147d58ee6 Binary files /dev/null and b/lecture-06/class/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf differ diff --git a/lecture-06/class/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff b/lecture-06/class/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff new file mode 100644 index 0000000000000000000000000000000000000000..31b84829b42edae20d0148eeec0d922dad2108c4 Binary files /dev/null and b/lecture-06/class/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff differ diff --git a/lecture-06/class/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 b/lecture-06/class/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..a90eea85f6f7bded69ff5d40114447a6d8b48cfe Binary files /dev/null and b/lecture-06/class/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 differ diff --git a/lecture-06/class/assets/KaTeX_Script-Regular-C5JkGWo-.ttf b/lecture-06/class/assets/KaTeX_Script-Regular-C5JkGWo-.ttf new file mode 100644 index 0000000000000000000000000000000000000000..fd679bf374af72f2a183b97b40c9c7e9e51fbe5e Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Script-Regular-C5JkGWo-.ttf differ diff --git a/lecture-06/class/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 b/lecture-06/class/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..b3048fc115681ee6c1bc86b0aa158cfbbf59daa3 Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 differ diff --git a/lecture-06/class/assets/KaTeX_Script-Regular-D5yQViql.woff b/lecture-06/class/assets/KaTeX_Script-Regular-D5yQViql.woff new file mode 100644 index 0000000000000000000000000000000000000000..0e7da821eee0dd05a0a6f0b16c2c1345dc573a84 Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Script-Regular-D5yQViql.woff differ diff --git a/lecture-06/class/assets/KaTeX_Size1-Regular-C195tn64.woff b/lecture-06/class/assets/KaTeX_Size1-Regular-C195tn64.woff new file mode 100644 index 0000000000000000000000000000000000000000..7f292d91184f257054ef77cc1cd3443db757c9cc Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Size1-Regular-C195tn64.woff differ diff --git a/lecture-06/class/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf b/lecture-06/class/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf new file mode 100644 index 0000000000000000000000000000000000000000..871fd7d19d8658f64d8696ed9cdfc82c821ed76d Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf differ diff --git a/lecture-06/class/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 b/lecture-06/class/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..c5a8462fbfe2c39a7c1857b9e296e62500a8a8a5 Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 differ diff --git a/lecture-06/class/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf b/lecture-06/class/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf new file mode 100644 index 0000000000000000000000000000000000000000..7a212caf91c0007e826fee2d622bf48acbd30dde Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf differ diff --git a/lecture-06/class/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 b/lecture-06/class/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..e1bccfe2403a4ed770c1697ae7c15b9e1cd9bc4e Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 differ diff --git a/lecture-06/class/assets/KaTeX_Size2-Regular-oD1tc_U0.woff b/lecture-06/class/assets/KaTeX_Size2-Regular-oD1tc_U0.woff new file mode 100644 index 0000000000000000000000000000000000000000..d241d9be2d317f7b39b401d96c8b18836acea0fa Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Size2-Regular-oD1tc_U0.woff differ diff --git a/lecture-06/class/assets/KaTeX_Size3-Regular-CTq5MqoE.woff b/lecture-06/class/assets/KaTeX_Size3-Regular-CTq5MqoE.woff new file mode 100644 index 0000000000000000000000000000000000000000..e6e9b658dcf1cd031ac82b6b8f312444c55d4fc0 Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Size3-Regular-CTq5MqoE.woff differ diff --git a/lecture-06/class/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf b/lecture-06/class/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf new file mode 100644 index 0000000000000000000000000000000000000000..00bff3495fa9d2f98c1c9ce436add6a1bcfe87fb Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf differ diff --git a/lecture-06/class/assets/KaTeX_Size4-Regular-BF-4gkZK.woff b/lecture-06/class/assets/KaTeX_Size4-Regular-BF-4gkZK.woff new file mode 100644 index 0000000000000000000000000000000000000000..e1ec5457664f438ce5a1cc6dd8409bf60ca7804b Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Size4-Regular-BF-4gkZK.woff differ diff --git a/lecture-06/class/assets/KaTeX_Size4-Regular-DWFBv043.ttf b/lecture-06/class/assets/KaTeX_Size4-Regular-DWFBv043.ttf new file mode 100644 index 0000000000000000000000000000000000000000..74f08921f00f71f413ca42c9d1c90202e672ef38 Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Size4-Regular-DWFBv043.ttf differ diff --git a/lecture-06/class/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 b/lecture-06/class/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..680c13085076a2f6c5a7e695935ec3f21cddb65f Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 differ diff --git a/lecture-06/class/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff b/lecture-06/class/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff new file mode 100644 index 0000000000000000000000000000000000000000..2432419f28936aff53ddfa2a732d027e6a6648fd Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff differ diff --git a/lecture-06/class/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 b/lecture-06/class/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..771f1af705f5cef5f578b3a1e7d8eff66f9b76b0 Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 differ diff --git a/lecture-06/class/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf b/lecture-06/class/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf new file mode 100644 index 0000000000000000000000000000000000000000..c83252c5714c71a3e0ec62195884167339a0129b Binary files /dev/null and b/lecture-06/class/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf differ diff --git a/lecture-06/class/assets/NoteDisplay-DCBzjb4F.css b/lecture-06/class/assets/NoteDisplay-DCBzjb4F.css new file mode 100644 index 0000000000000000000000000000000000000000..249a685ef5ff9168a0e2385b2e0bb8802f138a28 --- /dev/null +++ b/lecture-06/class/assets/NoteDisplay-DCBzjb4F.css @@ -0,0 +1 @@ +.slidev-note :first-child{margin-top:0}.slidev-note{overflow-wrap:anywhere;word-break:break-word} diff --git a/lecture-06/class/assets/PositionalEncoding-CPViPuDW.css b/lecture-06/class/assets/PositionalEncoding-CPViPuDW.css new file mode 100644 index 0000000000000000000000000000000000000000..8265e8d95b4b6e38b1c3b98407682d7ecb64d9d3 --- /dev/null +++ b/lecture-06/class/assets/PositionalEncoding-CPViPuDW.css @@ -0,0 +1 @@ +.dl-pe[data-v-3178dbe7]{flex-direction:column;align-items:center;gap:.7rem;width:100%;display:flex}.dl-pe__cards[data-v-3178dbe7]{grid-template-columns:repeat(3,1fr);gap:.8rem;width:100%;max-width:36rem;display:grid}.dl-pe__card[data-v-3178dbe7]{border:1px solid var(--dl-border);background:var(--dl-surface);border-radius:6px;flex-direction:column;align-items:center;padding:.5rem .4rem .6rem;display:flex}.dl-pe__slot[data-v-3178dbe7]{letter-spacing:.08em;text-transform:uppercase;color:var(--dl-muted);font-size:.64rem}.dl-pe__word[data-v-3178dbe7]{color:var(--dl-heading);margin-top:.1rem;font-size:1.15rem;font-weight:700}.dl-pe__arrow[data-v-3178dbe7]{color:var(--dl-muted);font-size:.85rem;line-height:1.1}.dl-pe__vec[data-v-3178dbe7]{gap:.25rem;margin-top:.15rem;display:flex}.dl-pe__cell[data-v-3178dbe7]{text-align:center;border:1px solid var(--dl-accent);background:var(--dl-accent-soft);width:3.1rem;color:var(--dl-heading);font-variant-numeric:tabular-nums;border-radius:4px;padding:.16rem 0;font-size:.85rem;font-weight:700}.dl-pe__was[data-v-3178dbe7]{text-align:center;color:var(--dl-muted);font-variant-numeric:tabular-nums;margin-top:.3rem;font-size:.64rem;line-height:1.3}.dl-pe__verdict[data-v-3178dbe7]{border:1px solid var(--dl-border);letter-spacing:.06em;text-transform:uppercase;color:var(--dl-muted);border-radius:999px;padding:.2rem .9rem;font-size:.78rem}.dl-pe__verdict.is-same[data-v-3178dbe7]{border-color:var(--dl-accent);background:var(--dl-accent-soft);color:var(--dl-accent);font-weight:700}.dl-pe__heatwrap[data-v-3178dbe7]{width:100%;max-width:30rem}.dl-pe__heatlabel[data-v-3178dbe7]{letter-spacing:.08em;text-transform:uppercase;color:var(--dl-muted);margin-bottom:.2rem;margin-left:2rem;font-size:.66rem}.dl-pe__heat[data-v-3178dbe7]{flex-direction:column;gap:2px;display:flex}.dl-pe__heatrow[data-v-3178dbe7]{align-items:center;gap:2px;display:flex}.dl-pe__pos[data-v-3178dbe7]{text-align:right;font-variant-numeric:tabular-nums;width:1.7rem;color:var(--dl-muted);padding-right:.3rem;font-size:.66rem}.dl-pe__heatrow.is-active .dl-pe__pos[data-v-3178dbe7]{color:var(--dl-accent);font-weight:700}.dl-pe__heatcell[data-v-3178dbe7]{border-radius:2px;flex:1 1 0;height:1.15rem}.dl-pe__heatcell.is-pos[data-v-3178dbe7]{background:var(--dl-accent)}.dl-pe__heatcell.is-neg[data-v-3178dbe7]{background:var(--dl-danger)}.dl-pe__heatrow.is-active .dl-pe__heatcell[data-v-3178dbe7]{outline:1px solid var(--dl-heading)}.dl-pe__note[data-v-3178dbe7]{color:var(--dl-accent);margin-top:.15rem;display:block} diff --git a/lecture-06/class/assets/PositionalEncoding-q3Ic_HFH.js b/lecture-06/class/assets/PositionalEncoding-q3Ic_HFH.js new file mode 100644 index 0000000000000000000000000000000000000000..1770ebad52d67a04132437ea4df657d17f566748 --- /dev/null +++ b/lecture-06/class/assets/PositionalEncoding-q3Ic_HFH.js @@ -0,0 +1 @@ +import{Q as e,V as t,_ as n,_t as r,b as i,bt as a,g as o,lt as s,m as c,v as l,vt as u,w as d,x as f,xt as p,y as m,z as h}from"./modules/shiki-BFOesOFp.js";import{t as g}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as _}from"./slidev/context-DrkI8qiD.js";import{t as v}from"./WidgetFrame-D2L0MlKA.js";import{t as y}from"./StepButton-BcP33F-1.js";import{t as b}from"./useConvolution-qO1u8ksh.js";import{i as x,u as S}from"./useAttention-Blk0c2BZ.js";var C={key:0,class:`dl-pe`},w={class:`dl-pe__cards`},T={class:`dl-pe__slot`},E={class:`dl-pe__word`},D={class:`dl-pe__vec`},O={class:`dl-pe__was`},k={class:`dl-pe dl-pe--heat`},A={class:`dl-pe__heatwrap`},j={class:`dl-pe__heat`},M=[`onMouseenter`],N={class:`dl-pe__pos`},P=[`title`],F=g(d({__name:`PositionalEncoding`,props:{mode:{default:`blind`},dModel:{default:16},positions:{default:12}},setup(d){let{$slidev:g,$nav:F,$clicksContext:I,$clicks:L,$page:R,$renderContext:z,$frontmatter:B}=_(),V=d,H=[[0,1,2],[2,0,1],[1,2,0],[2,1,0]],U=s(0),W=o(()=>H[U.value].map(e=>x.river[e])),G=o(()=>S(W.value)),K=o(()=>S(x.river));function q(e,t){let n=t.rows.find(t=>t.word===e);return n?n.out:[]}let J=o(()=>W.value.every(e=>{let t=q(e,G.value),n=q(e,K.value);return t.every((e,t)=>Math.abs(e-n[t])<1e-9)}));function Y(){U.value=(U.value+1)%H.length}let X=o(()=>Array.from({length:V.positions},(e,t)=>Array.from({length:V.dModel},(e,n)=>{let r=t/1e4**(2*Math.floor(n/2)/V.dModel);return n%2==0?Math.sin(r):Math.cos(r)}))),Z=s(null);return(o,s)=>{let d=y,g=v;return h(),l(g,{"max-width":`42rem`},{controls:e(()=>[V.mode===`blind`?(h(),l(d,{key:0,label:`Shuffle the words`,glyph:`⇄`,onClick:Y})):m(`v-if`,!0)]),readout:e(()=>[V.mode===`blind`?(h(),i(c,{key:0},[U.value===0?(h(),i(c,{key:0},[s[3]||=f(` The sentence in its written order. Press `,-1),s[4]||=n(`em`,null,`Shuffle`,-1),s[5]||=f(` and watch the vectors. `,-1)],64)):(h(),i(c,{key:1},[s[6]||=n(`strong`,null,`Every word's output vector is exactly what it was.`,-1),s[7]||=f(` Attention is a weighted sum over a `,-1),s[8]||=n(`em`,null,`set`,-1),s[9]||=f(`, and a sum has no order in it — so as far as this layer is concerned `,-1),s[10]||=n(`em`,null,`the river bank`,-1),s[11]||=f(` and `,-1),s[12]||=n(`em`,null,`bank river the`,-1),s[13]||=f(` are the same input. Last week's whole lecture was about order mattering. `,-1),s[14]||=n(`span`,{class:`dl-pe__note`},` Permute the input and the outputs permute with it, unchanged. That property is called permutation equivariance, and here it is a bug. `,-1)],64))],64)):Z.value===null?(h(),i(c,{key:2},[f(` One row per position, `+p(V.dModel)+` columns wide. Left-hand dimensions oscillate once every few positions; right-hand ones barely move across the whole sentence — so the same vector carries “which word am I” and “which end of the sentence am I” at once. Nothing here is learned, and nothing caps the length: position 5000 has a vector too. `,1)],64)):(h(),i(c,{key:1},[s[15]||=f(` Position `,-1),n(`strong`,null,p(Z.value),1),f(` is the fixed vector [`+p(X.value[Z.value].slice(0,4).map(e=>r(b)(e)).join(`, `))+`, …] — `+p(V.dModel)+` numbers, computed from sines and cosines, `,1),s[16]||=n(`strong`,null,`not learned`,-1),s[17]||=f(`. It is `,-1),s[18]||=n(`em`,null,`added`,-1),s[19]||=f(` to the word's embedding, not concatenated, so the width of the model never changes. `,-1)],64))]),default:e(()=>[V.mode===`blind`?(h(),i(`div`,C,[n(`div`,w,[(h(!0),i(c,null,t(W.value,(e,a)=>(h(),i(`div`,{key:`${e}${a}`,class:`dl-pe__card`},[n(`div`,T,`position `+p(a+1),1),n(`div`,E,p(e),1),s[1]||=n(`div`,{class:`dl-pe__arrow`},`↓`,-1),n(`div`,D,[(h(!0),i(c,null,t(q(e,G.value),(e,t)=>(h(),i(`span`,{key:t,class:`dl-pe__cell`},p(r(b)(e)),1))),128))]),n(`div`,O,` in the original order: [`+p(q(e,K.value).map(e=>r(b)(e)).join(`, `))+`] `,1)]))),128))]),m(` Nothing to claim until something has actually been reordered. `),U.value>0?(h(),i(`div`,{key:0,class:u([`dl-pe__verdict`,{"is-same":J.value}])},p(J.value?`every vector identical`:`something changed`),3)):m(`v-if`,!0)])):(h(),i(c,{key:1},[m(` One fixed vector per position, added before the first block. `),n(`div`,k,[n(`div`,A,[s[2]||=n(`div`,{class:`dl-pe__heatlabel`},`dimension →`,-1),n(`div`,j,[(h(!0),i(c,null,t(X.value,(e,o)=>(h(),i(`div`,{key:o,class:u([`dl-pe__heatrow`,{"is-active":Z.value===o}]),onMouseenter:e=>Z.value=o,onMouseleave:s[0]||=e=>Z.value=null},[n(`span`,N,p(o),1),(h(!0),i(c,null,t(e,(e,t)=>(h(),i(`span`,{key:t,class:u([`dl-pe__heatcell`,e>=0?`is-pos`:`is-neg`]),style:a({opacity:.12+Math.abs(e)*.88}),title:`pos ${o}, dim ${t}: ${r(b)(e)}`},null,14,P))),128))],42,M))),128))])])])],2112))]),_:1})}}}),[[`__scopeId`,`data-v-3178dbe7`]]);export{F as t}; \ No newline at end of file diff --git a/lecture-06/class/assets/SlideWrapper-BV3rJSuv.js b/lecture-06/class/assets/SlideWrapper-BV3rJSuv.js new file mode 100644 index 0000000000000000000000000000000000000000..ff115e69ab474fb5420f0df0c1cc6ef18dc9b478 --- /dev/null +++ b/lecture-06/class/assets/SlideWrapper-BV3rJSuv.js @@ -0,0 +1,2 @@ +import{D as e,G as t,H as n,L as r,R as i,S as a,X as o,Y as s,Z as ee,_ as c,_t as l,b as u,bt as d,f,g as p,i as m,lt as h,m as g,mt as _,st as v,v as y,vt as b,w as x,y as S,z as C}from"./modules/shiki-BFOesOFp.js";import{A as w,Q as T,X as E,Z as D,t as te,tt as O,z as k}from"./useNav-BF8Ehznl.js";import{t as A}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{N as j,p as ne}from"./modules/vue-Ymwlffw_.js";import{_ as re,d as ie,f as M,g as N,h as P,m as F,n as I,p as L,v as R}from"./slidev/context-DrkI8qiD.js";import{n as z,r as B,t as V}from"./syncState-BrWO1mSt.js";import{a as H,p as U}from"./index-BSNgeX_T.js";import"./slidev/client-DrWBSyE4.js";import{t as W}from"./useDrawings-DF8n2zfQ.js";var G=[`innerHTML`],K=x({__name:`DrawingPreview`,props:{page:{}},setup(e){let{drawingState:t}=W();return(n,r)=>l(t)[e.page]?(C(),u(`svg`,{key:0,class:`w-full h-full absolute top-0 pointer-events-none`,innerHTML:l(t)[e.page]},null,8,G)):S(`v-if`,!0)}}),q=v({}),J=[],Y=[];z(q,`$syncUp`,!0),z(q,`$syncDown`,!0),z(q,`$paused`,!1),z(q,`$onSet`,e=>J.push(e)),z(q,`$onPatch`,e=>Y.push(e)),B(),z(q,`$patch`,async()=>!1);var ae=V(q,q,!0),X=window.navigator.userAgent.match(/Chrome\/(\d+)/)?.[1];X&&Number(X);var Z=window.navigator.userAgent.match(/Chrome\/(\d+)/)?.[1];Z&&Number(Z);var oe=new class{_screenshotSession=null;getSnapshot(e,t){let n=e+(t?`-dark`:`-light`),r=ae.state[n];if(!r)return;let i=k(e);if(i&&r?.revision===i?.meta.slide.revision)return r.image}async saveSnapshot(e,t,n){return!1}async startCapturing(e){return!1}},se=[`id`],ce=[`id`],le={class:`slidev-slide-container w-full h-full relative`},ue=[`src`],Q=h(null),de=A(x({__name:`SlideContainer`,props:{width:{type:Number},meta:{default:()=>({})},isMain:{type:Boolean,default:!1},no:{type:Number,required:!1},useSnapshot:{type:Boolean,default:!1},contentStyle:{type:Object,default:()=>({})}},setup(e){let t=e,{isPrintMode:a}=te(),l=h(null),f=ne(l),_=h(null),v=p(()=>t.width??f.width.value),y=p(()=>t.width?t.width/E.value:f.height.value),b=p(()=>w.value&&!a.value?+w.value:Math.min(v.value/T.value,y.value/D.value)),x=p(()=>({...t.contentStyle,height:`${D.value}px`,width:`${T.value}px`,"--slidev-slide-scale":b.value})),O=p(()=>t.width?{width:`${t.width}px`,height:`${t.width/E.value}px`}:{});if(t.isMain){let e=document.documentElement.style;o(()=>e.setProperty(`--slidev-slide-scale`,b.value.toString())),i(()=>e.removeProperty(`--slidev-slide-scale`))}j(re,b),j(N,_),ee(()=>{t.isMain&&(Q.value=_.value)}),r(()=>{s(()=>t.isMain&&b.value,()=>{m()})});let k=p(()=>{if(!(t.no==null||!t.useSnapshot))return oe.getSnapshot(t.no,U.value)});return(t,r)=>k.value?(C(),u(g,{key:1},[S(` Image Snapshot `),c(`div`,le,[c(`img`,{src:k.value,class:`w-full h-full object-cover`,style:d(O.value)},null,12,ue),r[0]||=c(`div`,{absolute:``,"bottom-1":``,"right-1":``,"p0.5":``,"text-cyan:75":``,"bg-cyan:10":``,rounded:``,title:`Snapshot`},[c(`div`,{class:`i-carbon-camera`})],-1)])],2112)):(C(),u(`div`,{key:0,id:e.isMain?`slide-container`:void 0,ref_key:`container`,ref:l,class:`slidev-slide-container`,style:d(O.value)},[c(`div`,{id:e.isMain?`slide-content`:void 0,ref_key:`slideElement`,ref:_,class:`slidev-slide-content`,style:d(x.value)},[n(t.$slots,`default`,{},void 0,!0)],12,ce),n(t.$slots,`controls`,{},void 0,!0)],12,se))}}),[[`__scopeId`,`data-v-0167a76e`]]),fe=Object.assign({}),pe=Object.assign({}),me=Object.assign({}),he=Object.assign({}),ge=Object.assign({}),_e=Object.assign({}),ve={course:{code:`PGR207`,year:2026,title:`Deep Learning`,instructor:`Vajira Thambawita (PhD)`,email:`vajira@simula.no`},space:`DeepLearning-VT/DeepLearning_2026`,repo:`vlbthambawita/DeepLearning`,decks:[{id:`lecture-01`,title:`Introduction to Deep Learning`,subtitle:`Course overview, what deep learning is, and where it is used`,week:1,published:!0,notebook:null,source:`old_slides/2025/Teaching - Deep Leaning - 2025- Lecture 01.pdf`},{id:`lecture-02`,title:`Basics of Neural Networks`,subtitle:`Artificial neurons, the perceptron, Adaline and gradient descent`,week:2,published:!0,notebook:null,source:`old_slides/2025/Teaching - Deep Leaning - 2025 - Lecture 02 .pdf`},{id:`lecture-03`,title:`PyTorch for Deep Learning`,subtitle:`Tensors, autograd, and a fully-connected network on MNIST`,week:3,published:!0,notebook:null,source:null},{id:`lecture-04`,title:`Deep Convolutional Neural Networks`,subtitle:`Locality and weight sharing, the convolution operation, and CNNs in PyTorch`,week:4,published:!0,notebook:null,source:`old_slides/2025/Teaching - Deep Leaning - 2025 - Lecture 03.pdf`},{id:`lecture-05`,title:`Recurrent Neural Networks`,subtitle:`Sequence data, the recurrent layer, LSTM and GRU, and an RNN in PyTorch`,week:6,published:!0,publicNotes:!0,notebook:null,source:`old_slides/2025/Teaching - Deep Leaning - 2025 - Lecture 5_6.pdf`},{id:`lecture-06`,title:`Transformers`,subtitle:`Query, key and value; the original architecture, and what modern transformers changed`,week:7,published:!0,notebook:null,source:`old_slides/2025/Teaching - Deep Leaning - 2025 - Lecture 5_6.pdf`},{id:`lecture-07`,title:`Generative Models and GANs`,subtitle:`Autoencoders, VAEs, the adversarial game — and how diffusion took over`,week:9,published:!0,notebook:null,source:`old_slides/2025/Teaching - Deep Leaning - 2025 - Lecture 07.pdf`}]},ye=[`href`],be=Object.assign({"../../../../../packages/slidev-theme-dl2026/slide-top.vue":A(x({__name:`slide-top`,setup(e){let{$slidev:t,$page:n,$renderContext:r}=I(),i=p(()=>r.value===`slide`&&!t.nav.isPrintMode),a=p(()=>t.themeConfigs?.lecture??``),o=p(()=>t.themeConfigs?.lectureTitle??``),s=p(()=>{let e=n.value,t=`[${a.value?`Lecture ${a.value}, slide ${e}`:`Slide ${e}`}] `,r=[`**Lecture:** ${a.value}${o.value?` — ${o.value}`:``}`,`**Slide:** ${e}`,`**Link:** ${typeof window<`u`?`${window.location.origin}${window.location.pathname}#/${e}`:``}`,``,`**What is wrong?**`,``,``].join(` +`),i=new URLSearchParams({title:t,body:r,labels:`slides`});return`https://github.com/${ve.repo}/issues/new?${i}`});return(e,t)=>i.value?(C(),u(`a`,{key:0,class:`dl-report`,href:s.value,target:`_blank`,rel:`noopener`,title:`Report a problem with this slide on GitHub`,onClick:t[0]||=f(()=>{},[`stop`])},`Report issue`,8,ye)):S(`v-if`,!0)}}),[[`__scopeId`,`data-v-6b2267dc`]])}),xe=Object.assign({}),Se=Object.assign({}),Ce=Object.assign({}),we=Object.assign({}),Te=Object.assign({}),Ee=[Object.values(fe)[0],Object.values(pe)[0],Object.values(me)[0]].filter(Boolean),De={render:()=>Ee.map(t=>e(t))},$=[Object.values(he)[0],Object.values(ge)[0],Object.values(_e)[0]].filter(Boolean),Oe={render:()=>$.map(t=>e(t))},ke=[Object.values(be)[0],Object.values(xe)[0],Object.values(Se)[0]].filter(Boolean),Ae={render:()=>ke.map(t=>e(t))},je=[Object.values(Ce)[0],Object.values(we)[0],Object.values(Te)[0]].filter(Boolean),Me={render:()=>je.map(t=>e(t))},Ne=[`data-slidev-no`,`lang`],Pe=A(x({__name:`SlideWrapper`,props:{clicksContext:{type:Object,required:!0},renderContext:{type:String,default:`slide`},route:{type:Object,required:!0}},setup(e){let n=e,r=p(()=>n.route.meta?.slide?.frontmatter.zoom??1);j(P,n.route),j(L,n.route.meta.slide.frontmatter),j(M,h(n.route.no)),j(F,h(n.renderContext)),j(ie,_(n,`clicksContext`)),j(R,r);let i=p(()=>({"user-select":O.selectable?void 0:`none`,"--slidev-slide-zoom-scale":r.value===1?void 0:r.value}));return(r,o)=>(C(),u(`div`,{"data-slidev-no":n.route.no,class:b(l(H)(e.route,[`slide`,`presenter`].includes(n.renderContext)?``:`disable-view-transition`)),style:d(i.value),lang:n.route.meta.slide.frontmatter.lang},[a(l(Me)),(C(),y(t(n.route.component))),a(l(Ae))],14,Ne))}}),[[`__scopeId`,`data-v-a7136532`]]);export{Q as a,de as i,Oe as n,K as o,De as r,Pe as t}; \ No newline at end of file diff --git a/lecture-06/class/assets/SlideWrapper-DBNQYNtZ.css b/lecture-06/class/assets/SlideWrapper-DBNQYNtZ.css new file mode 100644 index 0000000000000000000000000000000000000000..c356c9b2e1a7db70c412549d55971154ace47d6a --- /dev/null +++ b/lecture-06/class/assets/SlideWrapper-DBNQYNtZ.css @@ -0,0 +1 @@ +.slidev-slide-container[data-v-0167a76e]{width:100%;height:100%;position:relative;overflow:hidden}.slidev-slide-content[data-v-0167a76e]{--slidev-slide-container-scale:var(--slidev-slide-scale);transform:translate(-50%, -50%) scale(var(--slidev-slide-scale));--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity));position:absolute;top:50%;left:50%;overflow:hidden}.dark .slidev-slide-content[data-v-0167a76e]{--un-bg-opacity:1;background-color:rgb(18 18 18/var(--un-bg-opacity))}.dl-report[data-v-6b2267dc]{z-index:10;letter-spacing:.04em;color:var(--dl-muted);opacity:.55;font-size:.6rem;text-decoration:none;transition:opacity .15s,color .15s;position:absolute;bottom:.2rem;right:3rem}.dl-report[data-v-6b2267dc]:hover,.dl-report[data-v-6b2267dc]:focus-visible{opacity:1;color:var(--dl-accent);text-decoration:underline}.disable-view-transition[data-v-a7136532] *{view-transition-name:none!important}.slidev-page[data-v-a7136532]{--slidev-slide-zoom-scale:1;width:calc(100% / var(--slidev-slide-zoom-scale));height:calc(100% / var(--slidev-slide-zoom-scale));transform-origin:0 0;scale:var(--slidev-slide-zoom-scale);--slidev-slide-scale:calc(var(--slidev-slide-container-scale) * var(--slidev-slide-zoom-scale));position:absolute;inset:0} diff --git a/lecture-06/class/assets/StepButton-BcP33F-1.js b/lecture-06/class/assets/StepButton-BcP33F-1.js new file mode 100644 index 0000000000000000000000000000000000000000..eeaf473a23a23370993679307608a43ab2067895 --- /dev/null +++ b/lecture-06/class/assets/StepButton-BcP33F-1.js @@ -0,0 +1 @@ +import{b as e,vt as t,w as n,x as r,xt as i,y as a,z as o}from"./modules/shiki-BFOesOFp.js";import{t as s}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as c}from"./slidev/context-DrkI8qiD.js";var l=[`disabled`],u={key:0,class:`dl-btn__glyph`,"aria-hidden":`true`},d=s(n({__name:`StepButton`,props:{label:{},variant:{default:`primary`},disabled:{type:Boolean,default:!1},glyph:{}},emits:[`click`],setup(n,{emit:s}){let{$slidev:d,$nav:f,$clicksContext:p,$clicks:m,$page:h,$renderContext:g,$frontmatter:_}=c(),v=n,y=s;return(n,s)=>(o(),e(`button`,{type:`button`,class:t([`dl-btn`,`is-${v.variant}`]),disabled:v.disabled,onClick:s[0]||=e=>y(`click`)},[v.glyph?(o(),e(`span`,u,i(v.glyph),1)):a(`v-if`,!0),r(` `+i(v.label),1)],10,l))}}),[[`__scopeId`,`data-v-f82500e8`]]);export{d as t}; \ No newline at end of file diff --git a/lecture-06/class/assets/StepButton-C1ItLUkw.css b/lecture-06/class/assets/StepButton-C1ItLUkw.css new file mode 100644 index 0000000000000000000000000000000000000000..ad680d266470a823054f3dd6aa91ee48be253492 --- /dev/null +++ b/lecture-06/class/assets/StepButton-C1ItLUkw.css @@ -0,0 +1 @@ +.dl-btn[data-v-f82500e8]{font:inherit;cursor:pointer;border:1px solid #0000;border-radius:6px;align-items:center;gap:.35rem;padding:.32rem .75rem;font-size:.82rem;font-weight:600;transition:background .12s,border-color .12s;display:inline-flex}.dl-btn[data-v-f82500e8]:disabled{opacity:.4;cursor:not-allowed}.dl-btn[data-v-f82500e8]:focus-visible{outline:2px solid var(--dl-accent);outline-offset:2px}.is-primary[data-v-f82500e8]{background:var(--dl-accent);color:#fff}.is-primary[data-v-f82500e8]:not(:disabled):hover{background:var(--dl-accent-strong)}.is-ghost[data-v-f82500e8]{border-color:var(--dl-border);color:var(--dl-body);background:0 0}.is-ghost[data-v-f82500e8]:not(:disabled):hover{border-color:var(--dl-accent);color:var(--dl-accent)}.dl-btn__glyph[data-v-f82500e8]{font-family:Apple Color Emoji,Segoe UI Emoji,Noto Color Emoji,sans-serif;font-size:.9em} diff --git a/lecture-06/class/assets/TransformerBlock-D6V5Q80S.js b/lecture-06/class/assets/TransformerBlock-D6V5Q80S.js new file mode 100644 index 0000000000000000000000000000000000000000..05966b565ebc2688567e942ce95f25380d82d5c5 --- /dev/null +++ b/lecture-06/class/assets/TransformerBlock-D6V5Q80S.js @@ -0,0 +1,3 @@ +import{Q as e,S as t,V as n,_ as r,_t as i,b as a,g as o,lt as s,m as c,v as l,vt as u,w as d,x as f,xt as p,y as m,z as h}from"./modules/shiki-BFOesOFp.js";import{t as g}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as _}from"./slidev/context-DrkI8qiD.js";import{t as v}from"./WidgetFrame-D2L0MlKA.js";import{t as ee}from"./StepButton-BcP33F-1.js";var te=[`viewBox`,`aria-label`],y=[`x1`,`y1`,`x2`,`y2`],b=[`x`,`y`],x=[`x`,`y`],S=[`d`],C={key:0},w=[`cx`,`cy`],T=[`x`,`y`],E={key:1},D=[`y`],ne=[`x`,`y`],re=[`x`,`y`],ie=[`x`,`y`,`transform`],ae=440,O=48,k=244,A=132,j=34,M=12,N=26,P=72,F=g(d({__name:`TransformerBlock`,props:{variant:{default:`post`},switchable:{type:Boolean,default:!0},start:{default:`walk`}},setup(d){let{$slidev:g,$nav:F,$clicksContext:oe,$clicks:se,$page:ce,$renderContext:le,$frontmatter:ue}=_(),I=d,L=s(I.variant),R=s(0),z=s(I.start===`whole`),B=[{kind:`box`,label:`Multi-head self-attention`,sub:`positions mix here — and only here`,note:`Every position builds a new vector as a weighted sum over every position. This is the only part of the whole architecture where information moves sideways between tokens.`,sublayer:!0},{kind:`add`,label:`add`,note:`The residual connection: the sub-layer’s output is *added* to what came in, not substituted for it. Same trick as a ResNet, and for the same reason — it gives the gradient a path with no matrix on it.`},{kind:`box`,label:`LayerNorm`,sub:`per position, across features`,note:`Re-centre and re-scale each position’s vector using its own mean and variance. Not BatchNorm: nothing is shared across the batch or across positions, which is what makes it safe with variable-length sequences.`},{kind:`box`,label:`Feed-forward network`,sub:`each position alone — 4× wide`,note:`Two linear layers with a non-linearity between them, applied to every position separately with the same weights. No token sees another here. This is where two thirds of a block’s parameters live.`,sublayer:!0},{kind:`add`,label:`add`,note:`The second residual, around the feed-forward network.`},{kind:`box`,label:`LayerNorm`,sub:`per position, across features`,note:`And normalise again. In the 2017 wiring both norms sit *after* the add — which means they sit on the residual path itself.`}],V=[{kind:`box`,label:`LayerNorm`,sub:`RMSNorm in most modern models`,note:`Modern blocks normalise *before* the sub-layer instead of after it. RMSNorm drops the mean-subtraction and the bias and keeps only the rescaling — slightly cheaper, and empirically just as good.`},{kind:`box`,label:`Multi-head self-attention`,sub:`grouped-query, rotary positions`,note:`Still scaled dot-product attention, unchanged since 2017. What changed around it: position now enters by rotating Q and K (RoPE) rather than by adding a vector at the bottom, and several query heads share one key/value head to shrink the cache.`,sublayer:!0},{kind:`add`,label:`add`,note:`The residual — and note what is *not* on it any more. Nothing stands between the input and this add but the sub-layer’s own output.`},{kind:`box`,label:`LayerNorm`,sub:`RMSNorm`,note:`Normalise before the feed-forward network, on a copy of the residual stream rather than on the stream itself.`},{kind:`box`,label:`Feed-forward network`,sub:`SwiGLU — three matrices, not two`,note:`Still position-wise, still wide. The gated variant uses three matrices instead of two, and the hidden width is trimmed (about 8/3 d rather than 4 d) to keep the parameter count level.`,sublayer:!0},{kind:`add`,label:`add`,note:`The second residual. From input to output there is now an unbroken addition-only path through every block in the stack.`}],H=o(()=>L.value===`post`?B:V),U=o(()=>L.value===`post`?[{from:-1,to:1},{from:2,to:4}]:[{from:-1,to:2},{from:2,to:5}]),W=o(()=>R.value>=H.value.length);function G(){z.value=!1,R.value=W.value?0:R.value+1}function K(){L.value=L.value===`post`?`pre`:`post`,R.value=0,z.value=I.start===`whole`}function q(e){return z.value||R.value>=e+1}let J=o(()=>R.value===0?null:H.value[R.value-1]);function Y(e){return N+(H.value.length-e)*O}let X=o(()=>Y(-1)+6),Z=N,Q=o(()=>Y(-1)+36);function $(e){return e<0?X.value:Y(e)+(H.value[e].kind===`add`?0:j/2)}return(o,s)=>{let d=ee,g=v;return h(),l(g,{"max-width":`30rem`},{controls:e(()=>[t(d,{label:W.value&&!z.value?`Start over`:R.value===0?`Walk the block`:`Next part`,glyph:`▸`,onClick:G},null,8,[`label`]),I.switchable?(h(),l(d,{key:0,label:L.value===`post`?`Rewire: modern (pre-LN)`:`Rewire: 2017 (post-LN)`,variant:`ghost`,glyph:`⇄`,onClick:K},null,8,[`label`])):m(`v-if`,!0)]),readout:e(()=>[J.value?(h(),a(c,{key:0},[r(`strong`,null,p(J.value.label),1),f(` — `+p(J.value.note),1)],64)):L.value===`post`?(h(),a(c,{key:1},[f(` The 2017 block: attention, add, normalise, feed-forward, add, normalise. Two sub-layers, each wrapped in a residual and a LayerNorm, and the shape at the top is the shape at the bottom — which is what lets you stack six of them, or ninety-six. `)],64)):(h(),a(c,{key:2},[s[1]||=f(` The same two sub-layers, with the normalisation moved `,-1),s[2]||=r(`strong`,null,`before`,-1),s[3]||=f(` each one. Now nothing sits on the residual path: from the bottom of the stack to the top there is a route made only of additions. Post-LN needs a learning-rate warmup to train deep and pre-LN largely does not, which is why essentially every model after GPT-2 is wired this way. `,-1)],64))]),default:e(()=>[(h(),a(`svg`,{class:`dl-blk`,viewBox:`0 0 ${ae} ${Q.value}`,preserveAspectRatio:`xMidYMid meet`,role:`img`,"aria-label":`One transformer block, ${L.value===`post`?`with LayerNorm after each sub-layer as in the 2017 paper`:`with normalisation before each sub-layer as in modern models`}`},[s[0]||=r(`defs`,null,[r(`marker`,{id:`dl-blk-arrow`,viewBox:`0 0 8 8`,refX:`7`,refY:`4`,markerWidth:`5`,markerHeight:`5`,orient:`auto-start-reverse`},[r(`path`,{d:`M0,0 L8,4 L0,8 z`,fill:`currentColor`})])],-1),m(` The main path, bottom to top. `),r(`line`,{class:`dl-blk__spine`,x1:254,y1:X.value,x2:254,y2:i(Z)+10,"marker-end":`url(#dl-blk-arrow)`},null,8,y),r(`text`,{class:`dl-blk__port`,x:254,y:X.value+18,"text-anchor":`middle`},` in — (T, d) one vector per token `,8,b),r(`text`,{class:`dl-blk__port`,x:254,y:i(Z)-6,"text-anchor":`middle`},` out — (T, d), same shape, ready for the next block `,8,x),m(` Residual connections, drawn as a rail down the left. `),(h(!0),a(c,null,n(U.value,(e,t)=>(h(),a(`path`,{key:`arc${t}`,class:u([`dl-blk__residual`,{"is-lit":z.value||R.value>e.to}]),d:`M 250 ${$(e.from)} + H ${P} V ${$(e.to)} + H 238`,"marker-end":`url(#dl-blk-arrow)`},null,10,S))),128)),(h(!0),a(c,null,n(H.value,(e,t)=>(h(),a(c,{key:e.label+t},[m(` Sub-layer output joining its add. `),e.kind===`add`?(h(),a(`g`,C,[r(`circle`,{class:u([`dl-blk__add`,{"is-lit":q(t),"is-current":R.value===t+1}]),cx:254,cy:Y(t),r:M},null,10,w),r(`text`,{class:`dl-blk__plus`,x:254,y:Y(t)+5,"text-anchor":`middle`},`+`,8,T)])):(h(),a(`g`,E,[r(`rect`,{class:u([`dl-blk__box`,{"is-lit":q(t),"is-current":R.value===t+1,"is-sublayer":e.sublayer}]),x:A,y:Y(t),width:k,height:j,rx:`6`},null,10,D),r(`text`,{class:u([`dl-blk__label`,{"is-lit":q(t)}]),x:254,y:Y(t)+(e.sub?15:22),"text-anchor":`middle`},p(e.label),11,ne),e.sub?(h(),a(`text`,{key:0,class:u([`dl-blk__sub`,{"is-lit":q(t)}]),x:254,y:Y(t)+27,"text-anchor":`middle`},p(e.sub),11,re)):m(`v-if`,!0)]))],64))),128)),r(`text`,{class:`dl-blk__rail`,x:64,y:Q.value/2,"text-anchor":`middle`,transform:`rotate(-90 64 ${Q.value/2})`},` residual stream `,8,ie)],8,te))]),_:1})}}}),[[`__scopeId`,`data-v-c465f205`]]);export{F as t}; \ No newline at end of file diff --git a/lecture-06/class/assets/TransformerBlock-DhsPSwrk.css b/lecture-06/class/assets/TransformerBlock-DhsPSwrk.css new file mode 100644 index 0000000000000000000000000000000000000000..26095b4fe5c0a58d332cebcb010703ba8207f3e5 --- /dev/null +++ b/lecture-06/class/assets/TransformerBlock-DhsPSwrk.css @@ -0,0 +1 @@ +.dl-blk[data-v-c465f205]{width:100%;height:100%}.dl-blk__spine[data-v-c465f205]{stroke:var(--dl-border);stroke-width:2px;color:var(--dl-border)}.dl-blk__residual[data-v-c465f205]{fill:none;stroke:var(--dl-border);stroke-width:1.6px;stroke-dasharray:4 3;color:var(--dl-border);transition:stroke .2s}.dl-blk__residual.is-lit[data-v-c465f205]{stroke:var(--dl-accent);color:var(--dl-accent)}.dl-blk__box[data-v-c465f205]{fill:var(--dl-bg);stroke:var(--dl-border);stroke-width:1.3px;transition:fill .2s,stroke .2s}.dl-blk__box.is-sublayer[data-v-c465f205]{stroke-dasharray:none;stroke-width:1.8px}.dl-blk__box.is-lit[data-v-c465f205]{fill:var(--dl-surface);stroke:var(--dl-body)}.dl-blk__box.is-current[data-v-c465f205]{fill:var(--dl-accent-soft);stroke:var(--dl-accent);stroke-width:2.2px}.dl-blk__add[data-v-c465f205]{fill:var(--dl-bg);stroke:var(--dl-border);stroke-width:1.5px;transition:fill .2s,stroke .2s}.dl-blk__add.is-lit[data-v-c465f205]{stroke:var(--dl-body)}.dl-blk__add.is-current[data-v-c465f205]{fill:var(--dl-accent-soft);stroke:var(--dl-accent);stroke-width:2.2px}.dl-blk__plus[data-v-c465f205]{fill:var(--dl-heading);font-size:14px;font-weight:700}.dl-blk__label[data-v-c465f205]{fill:var(--dl-muted);font-size:12.5px;font-weight:600;transition:fill .2s}.dl-blk__label.is-lit[data-v-c465f205]{fill:var(--dl-heading)}.dl-blk__sub[data-v-c465f205]{fill:var(--dl-muted);font-size:9.5px}.dl-blk__sub.is-lit[data-v-c465f205]{fill:var(--dl-body)}.dl-blk__port[data-v-c465f205]{fill:var(--dl-muted);font-size:10px}.dl-blk__rail[data-v-c465f205]{fill:var(--dl-muted);letter-spacing:.08em;font-size:9.5px} diff --git a/lecture-06/class/assets/TransformerGlyph-1pDKmZ2i.js b/lecture-06/class/assets/TransformerGlyph-1pDKmZ2i.js new file mode 100644 index 0000000000000000000000000000000000000000..eabd9b9cede12402efb4772eb30a3f6810c4e868 --- /dev/null +++ b/lecture-06/class/assets/TransformerGlyph-1pDKmZ2i.js @@ -0,0 +1 @@ +import{H as e,V as t,_ as n,_t as r,b as i,bt as a,m as o,vt as s,w as c,y as l,z as u}from"./modules/shiki-BFOesOFp.js";import{t as d}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as f}from"./slidev/context-DrkI8qiD.js";var p=[`width`,`height`,`aria-label`],m=[`id`],h={key:0},g=[`x`],_=[`d`],v=[`d`],y=[`marker-end`],b={key:1},x=[`d`],S=[`y`],C={key:2},w=[`cx`],T=[`d`],E=[`x`],D={key:3},O=[`marker-end`],k=[`marker-end`],A={key:4},j=[`y`],M=[`y`],N=[`marker-end`],P={key:5},F=[`x`,`y`],I=[`y`],L=[`marker-end`],R={key:6},z=[`x`,`y`],B={key:0,class:`dl-tglyph__label`},V=d(c({__name:`TransformerGlyph`,props:{kind:{},size:{default:64},label:{}},setup(c){let{$slidev:d,$nav:V,$clicksContext:H,$clicks:U,$page:W,$renderContext:G,$frontmatter:K}=f(),q=c,J=[{y:18,w:1.2,accent:!1},{y:50,w:6.5,accent:!0},{y:82,w:2.4,accent:!1}],Y=[0,2,1,2],X=Array.from({length:16},(e,t)=>({r:Math.floor(t/4),c:t%4}));return(c,d)=>(u(),i(`figure`,{class:`dl-tglyph`,style:a({width:`${q.size}px`})},[(u(),i(`svg`,{viewBox:`0 0 100 100`,width:q.size,height:q.size,role:`img`,"aria-label":q.label??q.kind},[n(`defs`,null,[n(`marker`,{id:`tg-head-${q.kind}`,markerWidth:`6`,markerHeight:`6`,refX:`5`,refY:`3`,orient:`auto`},[...d[0]||=[n(`path`,{d:`M0 0 L6 3 L0 6 z`,class:`dl-tglyph__head`},null,-1)]],8,m)]),q.kind===`cut`?(u(),i(`g`,h,[(u(),i(o,null,t(3,e=>n(`rect`,{key:e,x:4+(e-1)*34,y:`36`,width:`24`,height:`28`,rx:`4`,class:`dl-tglyph__cell`},null,8,g)),64)),(u(),i(o,null,t(2,e=>n(`path`,{key:`l${e}`,d:`M${28+(e-1)*34} 50 H${38+(e-1)*34}`,class:`dl-tglyph__line`},null,8,_)),64)),(u(),i(o,null,t(2,e=>n(`path`,{key:`x${e}`,d:`M${29+(e-1)*34} 41 L${37+(e-1)*34} 59 M${37+(e-1)*34} 41 L${29+(e-1)*34} 59`,class:`dl-tglyph__cutmark`},null,8,v)),64)),n(`path`,{d:`M16 90 V68 M50 90 V68 M84 90 V68`,class:`dl-tglyph__arrow`,"marker-end":`url(#tg-head-${q.kind})`},null,8,y)])):q.kind===`qkv`?(u(),i(`g`,b,[(u(),i(o,null,t(J,(e,t)=>n(`path`,{key:t,d:`M22 50 L74 ${e.y}`,class:s([`dl-tglyph__weight`,{"is-accent":e.accent}]),style:a({strokeWidth:e.w})},null,14,x)),64)),d[1]||=n(`circle`,{cx:`18`,cy:`50`,r:`10`,class:`dl-tglyph__dot is-accent`},null,-1),(u(),i(o,null,t(J,(e,t)=>n(`rect`,{key:`k${t}`,x:`74`,y:e.y-9,width:`20`,height:`18`,rx:`3`,class:s([`dl-tglyph__tile`,{"is-accent":e.accent}])},null,10,S)),64)),d[2]||=n(`text`,{x:`18`,y:`54.5`,class:`dl-tglyph__t is-inv`,"text-anchor":`middle`},`q`,-1)])):q.kind===`heads`?(u(),i(`g`,C,[(u(),i(o,null,t(Y,(e,t)=>n(`g`,{key:t},[n(`circle`,{cx:14+t*24,cy:`80`,r:`6`,class:s([`dl-tglyph__dot`,{"is-accent":t===0}])},null,10,w),n(`path`,{d:`M${14+t*24} 74 L${14+t*24+(e-1)*9} 30`,class:s([`dl-tglyph__weight`,{"is-accent":t===0}]),style:{strokeWidth:3}},null,10,T)])),64)),(u(),i(o,null,t(4,e=>n(`rect`,{key:`t${e}`,x:4+(e-1)*24,y:`14`,width:`20`,height:`14`,rx:`3`,class:`dl-tglyph__tile`},null,8,E)),64))])):q.kind===`block`?(u(),i(`g`,D,[d[3]||=n(`rect`,{x:`16`,y:`54`,width:`62`,height:`14`,rx:`3`,class:`dl-tglyph__tile is-accent`},null,-1),d[4]||=n(`path`,{d:`M24 61 H70`,class:`dl-tglyph__line is-thin`},null,-1),d[5]||=n(`polygon`,{points:`26,22 70,22 62,40 34,40`,class:`dl-tglyph__cell`},null,-1),n(`path`,{d:`M47 94 V70 M47 52 V42 M47 20 V6`,class:`dl-tglyph__arrow`,"marker-end":`url(#tg-head-${q.kind})`},null,8,O),n(`path`,{d:`M47 80 H90 V12 H52`,class:`dl-tglyph__resid`,"marker-end":`url(#tg-head-${q.kind})`},null,8,k)])):q.kind===`encdec`?(u(),i(`g`,A,[(u(),i(o,null,t(3,e=>n(`rect`,{key:`e${e}`,x:`8`,y:14+(e-1)*26,width:`30`,height:`20`,rx:`3`,class:`dl-tglyph__tile`},null,8,j)),64)),(u(),i(o,null,t(3,e=>n(`rect`,{key:`d${e}`,x:`62`,y:14+(e-1)*26,width:`30`,height:`20`,rx:`3`,class:`dl-tglyph__cell`},null,8,M)),64)),n(`path`,{d:`M38 24 C 50 24, 50 50, 60 50`,class:`dl-tglyph__resid`,"marker-end":`url(#tg-head-${q.kind})`},null,8,N)])):q.kind===`decoder`?(u(),i(`g`,P,[(u(!0),i(o,null,t(r(X),e=>(u(),i(`rect`,{key:`${e.r}-${e.c}`,x:30+e.c*15,y:8+e.r*15,width:`13`,height:`13`,rx:`1.5`,class:s(e.c<=e.r?`dl-tglyph__mask is-on`:`dl-tglyph__mask`)},null,10,F))),128)),(u(),i(o,null,t(2,e=>n(`rect`,{key:`s${e}`,x:`30`,y:70+(e-1)*14,width:`58`,height:`11`,rx:`2`,class:`dl-tglyph__cell`},null,8,I)),64)),n(`path`,{d:`M14 96 V12`,class:`dl-tglyph__arrow`,"marker-end":`url(#tg-head-${q.kind})`},null,8,L)])):q.kind===`code`?(u(),i(`g`,R,[(u(),i(o,null,t(3,e=>n(`rect`,{key:e,x:24+(e-1)*8,y:16+(e-1)*8,width:`50`,height:`50`,rx:`2`,class:`dl-tglyph__slab`},null,8,z)),64)),d[6]||=n(`text`,{x:`16`,y:`54`,class:`dl-tglyph__t is-sm`,"text-anchor":`middle`},`B`,-1),d[7]||=n(`text`,{x:`65`,y:`94`,class:`dl-tglyph__t is-sm`,"text-anchor":`middle`},`T`,-1),d[8]||=n(`text`,{x:`90`,y:`20`,class:`dl-tglyph__t is-sm`,"text-anchor":`middle`},`d`,-1)])):l(`v-if`,!0)],8,p)),c.$slots.default?(u(),i(`figcaption`,B,[e(c.$slots,`default`,{},void 0,!0)])):l(`v-if`,!0)],4))}}),[[`__scopeId`,`data-v-390a4c86`]]);export{V as t}; \ No newline at end of file diff --git a/lecture-06/class/assets/TransformerGlyph-DdjNaryB.css b/lecture-06/class/assets/TransformerGlyph-DdjNaryB.css new file mode 100644 index 0000000000000000000000000000000000000000..e4deecea1667e8907593865cd875675e28356f7c --- /dev/null +++ b/lecture-06/class/assets/TransformerGlyph-DdjNaryB.css @@ -0,0 +1 @@ +.dl-tglyph[data-v-390a4c86]{flex-direction:column;align-items:center;margin:0;display:inline-flex}.dl-tglyph__tile[data-v-390a4c86],.dl-tglyph__slab[data-v-390a4c86]{fill:var(--dl-surface);stroke:var(--dl-body);stroke-width:2px}.dl-tglyph__slab[data-v-390a4c86]{fill:var(--dl-bg)}.dl-tglyph__tile.is-accent[data-v-390a4c86],.dl-tglyph__cell[data-v-390a4c86]{fill:var(--dl-accent-soft);stroke:var(--dl-accent);stroke-width:2px}.dl-tglyph__arrow[data-v-390a4c86],.dl-tglyph__line[data-v-390a4c86]{fill:none;stroke:var(--dl-body);stroke-width:2.4px}.dl-tglyph__line.is-thin[data-v-390a4c86]{stroke:var(--dl-accent);stroke-width:1.4px;stroke-dasharray:3 2}.dl-tglyph__cutmark[data-v-390a4c86]{fill:none;stroke:var(--dl-danger);stroke-width:2.6px}.dl-tglyph__weight[data-v-390a4c86]{fill:none;stroke:var(--dl-muted);stroke-linecap:round}.dl-tglyph__weight.is-accent[data-v-390a4c86]{stroke:var(--dl-accent)}.dl-tglyph__resid[data-v-390a4c86]{fill:none;stroke:var(--dl-accent);stroke-width:2.2px;stroke-dasharray:4 3}.dl-tglyph__mask[data-v-390a4c86]{fill:var(--dl-surface);stroke:var(--dl-border);stroke-width:1px}.dl-tglyph__mask.is-on[data-v-390a4c86]{fill:var(--dl-accent-soft);stroke:var(--dl-accent)}.dl-tglyph__dot[data-v-390a4c86]{fill:var(--dl-muted)}.dl-tglyph__dot.is-accent[data-v-390a4c86]{fill:var(--dl-accent)}.dl-tglyph__head[data-v-390a4c86]{fill:var(--dl-body)}.dl-tglyph__t[data-v-390a4c86]{fill:var(--dl-heading);font-size:15px;font-weight:700}.dl-tglyph__t.is-inv[data-v-390a4c86]{fill:var(--dl-bg);font-size:13px}.dl-tglyph__t.is-sm[data-v-390a4c86]{fill:var(--dl-muted);font-size:12px;font-weight:600}.dl-tglyph__label[data-v-390a4c86]{color:var(--dl-body);text-align:center;white-space:nowrap;margin-top:.2rem;font-size:.78rem;font-weight:600} diff --git a/lecture-06/class/assets/WidgetFrame-Czwyd28V.css b/lecture-06/class/assets/WidgetFrame-Czwyd28V.css new file mode 100644 index 0000000000000000000000000000000000000000..837cf58a05149991b75f39d2f2dfd56b3210f575 --- /dev/null +++ b/lecture-06/class/assets/WidgetFrame-Czwyd28V.css @@ -0,0 +1 @@ +.dl-widget[data-v-0f64089e]{flex-direction:column;gap:.6rem;width:100%;height:100%;min-height:0;display:flex}.dl-widget.is-controls-first[data-v-0f64089e]{flex-direction:column-reverse;justify-content:flex-end}.dl-widget__stage[data-v-0f64089e]{flex:auto;justify-content:center;align-items:center;min-height:0;display:flex}.dl-widget__controls[data-v-0f64089e]{flex-wrap:wrap;flex:none;align-items:center;gap:.5rem 1.2rem;display:flex}.dl-widget__controls[data-v-0f64089e]:empty,.dl-widget__readout[data-v-0f64089e]:empty{display:none}.dl-widget__readout[data-v-0f64089e]{color:var(--dl-muted);font-variant-numeric:tabular-nums;flex:none;font-size:.82rem} diff --git a/lecture-06/class/assets/WidgetFrame-D2L0MlKA.js b/lecture-06/class/assets/WidgetFrame-D2L0MlKA.js new file mode 100644 index 0000000000000000000000000000000000000000..5be2737a4ec256d6b6a784cbe5dca5ffcaf11365 --- /dev/null +++ b/lecture-06/class/assets/WidgetFrame-D2L0MlKA.js @@ -0,0 +1 @@ +import{H as e,_ as t,b as n,bt as r,vt as i,w as a,z as o}from"./modules/shiki-BFOesOFp.js";import{t as s}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as c}from"./slidev/context-DrkI8qiD.js";var l={class:`dl-widget__stage`},u={class:`dl-widget__controls`},d={class:`dl-widget__readout`},f=s(a({__name:`WidgetFrame`,props:{maxWidth:{default:`100%`},controlsFirst:{type:Boolean}},setup(a){let{$slidev:s,$nav:f,$clicksContext:p,$clicks:m,$page:h,$renderContext:g,$frontmatter:_}=c(),v=a;return(a,s)=>(o(),n(`div`,{class:i([`dl-widget`,{"is-controls-first":v.controlsFirst}]),style:r({maxWidth:v.maxWidth})},[t(`div`,l,[e(a.$slots,`default`,{},void 0,!0)]),t(`div`,u,[e(a.$slots,`controls`,{},void 0,!0)]),t(`div`,d,[e(a.$slots,`readout`,{},void 0,!0)])],6))}}),[[`__scopeId`,`data-v-0f64089e`]]);export{f as t}; \ No newline at end of file diff --git a/lecture-06/class/assets/_plugin-vue_export-helper-BDNMzG2s.js b/lecture-06/class/assets/_plugin-vue_export-helper-BDNMzG2s.js new file mode 100644 index 0000000000000000000000000000000000000000..4374bdd01753d5b081492c755ecac84c3c86cba5 --- /dev/null +++ b/lecture-06/class/assets/_plugin-vue_export-helper-BDNMzG2s.js @@ -0,0 +1 @@ +var e=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n};export{e as t}; \ No newline at end of file diff --git a/lecture-06/class/assets/default-DFJXHcku.css b/lecture-06/class/assets/default-DFJXHcku.css new file mode 100644 index 0000000000000000000000000000000000000000..9701ce2820eb67acfeb00af0d66787fe99a56707 --- /dev/null +++ b/lecture-06/class/assets/default-DFJXHcku.css @@ -0,0 +1 @@ +.dl-default[data-v-3f3da7ce]{flex-direction:column;justify-content:flex-start;display:flex} diff --git a/lecture-06/class/assets/default-Dm4DVug5.js b/lecture-06/class/assets/default-Dm4DVug5.js new file mode 100644 index 0000000000000000000000000000000000000000..fe618eb8a4be44bc5fc56f80efeb36590aee4726 --- /dev/null +++ b/lecture-06/class/assets/default-Dm4DVug5.js @@ -0,0 +1 @@ +import{H as e,S as t,b as n,z as r}from"./modules/shiki-BFOesOFp.js";import{t as i}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as a}from"./slidev/context-DrkI8qiD.js";import{t as o}from"./DeckFooter-B7ogzN5B.js";var s={class:`slidev-layout dl-default`},c=i({__name:`default`,setup(i){let{$slidev:c,$nav:l,$clicksContext:u,$clicks:d,$page:f,$renderContext:p,$frontmatter:m}=a();return(i,a)=>{let c=o;return r(),n(`div`,s,[e(i.$slots,`default`,{},void 0,!0),t(c)])}}},[[`__scopeId`,`data-v-3f3da7ce`]]);export{c as t}; \ No newline at end of file diff --git a/lecture-06/class/assets/entry-Dba4BKje.css b/lecture-06/class/assets/entry-Dba4BKje.css new file mode 100644 index 0000000000000000000000000000000000000000..d28c41041ebb17c7aba14498b0d27b5100083a75 --- /dev/null +++ b/lecture-06/class/assets/entry-Dba4BKje.css @@ -0,0 +1 @@ +.page-link[data-v-966650ef]{background-color:#9ca3af1a;border-radius:.25rem;flex-direction:column;justify-content:center;align-items:center;gap:.5rem;min-width:10rem;height:10rem;padding:1rem;display:flex}.page-link[data-v-966650ef]:hover{background-color:#9ca3af33}.page-link>svg[data-v-966650ef]{opacity:.5;font-size:3em} diff --git a/lecture-06/class/assets/index-BSNgeX_T.js b/lecture-06/class/assets/index-BSNgeX_T.js new file mode 100644 index 0000000000000000000000000000000000000000..6becd7322efe249e011cfef4310db886b0b19246 --- /dev/null +++ b/lecture-06/class/assets/index-BSNgeX_T.js @@ -0,0 +1,46 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./modules/file-saver-BpWusTEB.js","./rolldown-runtime-hePW80VL.js","./slidev/entry-DSOswi5I.js","./modules/shiki-BFOesOFp.js","./modules/shiki-BrmBd2_v.css","./_plugin-vue_export-helper-BDNMzG2s.js","./entry-Dba4BKje.css","./slidev/overview-DDcnTVmh.js","./useNav-BF8Ehznl.js","./modules/vue-Ymwlffw_.js","./slidev/context-DrkI8qiD.js","./modules/unplugin-icons-BIrNarL0.js","./slidev/IconButton-B5keGFol.js","./slidev/NoteDisplay-BHXyxEbM.js","./NoteDisplay-DCBzjb4F.css","./SlideWrapper-BV3rJSuv.js","./syncState-BrWO1mSt.js","./slidev/client-DrWBSyE4.js","./useDrawings-DF8n2zfQ.js","./SlideWrapper-DBNQYNtZ.css","./slidev/NoteEditable-BNfDAKyc.js","./overview-BIQ10iVu.css","./slidev/notes-BUQ8DzVc.js","./slidev/Modal-CjKJrPTu.js","./slidev/TimerBar-BPutpYq6.js","./slidev/notes-edit-BoULxCyS.js","./slidev/presenter-B1LQ84XE.js","./slidev/DrawingControls-BwcPRVjT.js","./slidev/VerticalDivider-D_ScNBWw.js","./DrawingControls-Dhbx0szf.css","./slidev/shortcuts-DGsUa403.js","./shortcuts-nRB69a7e.css","./presenter-J5ibmAMh.css","./slidev/play-BjP6zyAu.js","./play-D_7yfuao.css","./slidev/404-DJYONsN4.js","./404-bkedjYjP.css"])))=>i.map(i=>d[i]); +import{r as e}from"./rolldown-runtime-hePW80VL.js";import{F as t,I as n,O as r,P as i,S as a,T as o,U as s,X as c,Y as l,_t as u,b as d,ft as f,g as p,gt as m,it as h,k as g,lt as _,m as v,nt as y,s as b,st as x,t as S,w as C,y as w,z as T}from"./modules/shiki-BFOesOFp.js";import{$ as E,A as ee,B as te,G as ne,H as re,Q as D,R as ie,Z as ae,c as oe,et as O,h as se,j as k,l as ce,n as le,p as A,q as j,t as ue,tt as M,w as de,z as fe}from"./useNav-BF8Ehznl.js";import{A as pe,L as me,R as he,S as ge,T as _e,V as ve,f as ye,g as be,i as xe,j as Se,o as Ce,x as we,z as Te}from"./modules/vue-Ymwlffw_.js";import{a as Ee,c as De,d as Oe,f as ke,g as Ae,i as je,m as Me,o as Ne,p as Pe,r as Fe,s as Ie,u as Le,y as Re}from"./slidev/context-DrkI8qiD.js";import{n as N,r as ze,t as Be}from"./syncState-BrWO1mSt.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})(),_(!1),_(!1);var Ve=new Set([`link`,`style`,`script`,`noscript`]),He=new Set([`title`,`titleTemplate`,`script`,`style`,`noscript`]),Ue=new Set([`base`,`meta`,`link`,`style`,`script`,`noscript`]),We=new Set([`title`,`base`,`htmlAttrs`,`bodyAttrs`,`meta`,`link`,`style`,`script`,`noscript`]),Ge=new Set([`base`,`title`,`titleTemplate`,`bodyAttrs`,`htmlAttrs`,`templateParams`]),Ke=new Set([`key`,`tagPosition`,`tagPriority`,`tagDuplicateStrategy`,`innerHTML`,`textContent`,`processTemplateParams`]),qe=new Set([`templateParams`,`htmlAttrs`,`bodyAttrs`]),Je=new Set([`theme-color`,`google-site-verification`,`author`,`og:locale:alternate`,`og:image`,`og:video`,`og:audio`,`article:author`,`article:tag`,`book:author`,`book:tag`,`twitter:image`]),Ye={critical:-8,high:-1,low:2},Xe=e=>typeof e==`number`?Number.isFinite(e):e;function Ze(e){return e===`__proto__`||e===`constructor`||e===`prototype`}function Qe(e,t,n,r){for(let i=n;ie[i](...t)):e[i](...t);if(n&&typeof n.then==`function`)return Promise.resolve(n).then(()=>Qe(e,t,i+1,r))}catch(e){return Promise.reject(e)}}var $e=class{_hooks;constructor(){this._hooks={}}hook(e,t){return!e||typeof t!=`function`?()=>{}:(this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&=(this.removeHook(e,t),void 0)})}removeHook(e,t){let n=this._hooks[e];if(n){let r=n.indexOf(t);r!==-1&&n.splice(r,1),n.length===0&&(this._hooks[e]=void 0)}}callHook(e,...t){let n=this._hooks[e];if(!(!n||n.length===0))return Qe(n,t,0)}};function et(e){let t=new $e;for(let n in e||{})t.hook(n,e[n]);return t}function tt(e,t,n){if(e.hooks?._hooks?.[t]?.length)return e.hooks?.callHook(t,n)}var nt=/^(?:viewport|description|keywords|robots)$/,rt=[`name`,`property`,`http-equiv`];function it(e){let t=e.indexOf(`:`);if(t===-1)return!1;let n=e.slice(t+1);return Je.has(n)||n.startsWith(`og:image:`)||n.startsWith(`og:video:`)||n.startsWith(`og:audio:`)||n.startsWith(`twitter:image:`)}function at(e){let{props:t,tag:n,key:r}=e;if(Ge.has(n))return n;if(n===`link`){if(t.rel===`canonical`)return`canonical`;if(t.rel===`alternate`&&t.hreflang)return`alternate:${t.hreflang}`}if(t.charset)return`charset`;if(n===`meta`)for(let e of rt){let n=t[e];if(n!==void 0)return`meta:${n}${(typeof n!=`string`||!n.includes(`:`))&&!nt.test(n)&&r?`:key:${r}`:``}`}return r?`${n}:key:${r}`:t.id?`${n}:id:${t.id}`:n===`link`&&t.rel&&t.href?`link:${t.rel}:${t.href}`:He.has(n)&&(e.textContent||e.innerHTML)?`${n}:content:${e.textContent||e.innerHTML}`:void 0}function ot(e){let t=e._h||e._d||e.textContent||e.innerHTML;if(t)return t;let n=Object.keys(e.props).sort(),r=`${e.tag}:`,i=``;for(let t of n)r+=`${i}${t}:${String(e.props[t])}`,i=`,`;return r}function st(e,t,n){if(n===`_resolver`)return e;typeof e==`function`&&(!n||n!==`titleTemplate`&&!n.startsWith(`on`))&&(e=e());let r=t?t(n,e):e;if(Array.isArray(r)){let e;for(let n=0;n/=\x00-\x1F\x7F]/;function lt(e,t){let n=e===`style`,r=n?new Map:new Set,i=e=>{if(e){if(n){let t=e.indexOf(`:`);t>0&&r.set(e.slice(0,t).trim(),e.slice(t+1).trim())}else e.split(` `).forEach(e=>e&&r.add(e))}};if(typeof t==`string`)(n?t.split(`;`):[t]).forEach(i);else if(Array.isArray(t))t.forEach(i);else if(t&&typeof t==`object`)for(let e in t){let a=t[e];a&&a!==`false`&&(n?r.set(e.trim(),String(a)):i(e))}return r}function ut(e,t){if(e.props=e.props||{},!t)return e;if(e.tag===`templateParams`)return e.props=t,e;let n=Ue.has(e.tag)||e.tag===`htmlAttrs`||e.tag===`bodyAttrs`;for(let r in t){if(Ze(r))continue;let i=r.startsWith(`data-`),a=n&&!Ke.has(r),o=a&&!i?r.toLowerCase():r;if(a&&(!o||ct.test(o)))continue;let s=t[r];if(s===null)e.props[o]=null;else if(r===`class`||r===`style`)e.props[r]=lt(r,s);else if(Ke.has(r)){if((r===`textContent`||r===`innerHTML`)&&typeof s==`object`){let n=t.type||`application/json`;(n.endsWith(`json`)||n===`speculationrules`||n===`importmap`)&&(e.props.type=t.type=n,e[r]=JSON.stringify(s))}else e[r]=s}else if(s!==void 0){let t=String(s),n=e.tag===`meta`&&o===`content`;e.props[o]=t===`true`||t===``?i||n?t:!0:!s&&i&&t===`false`?`false`:s}}return e}function dt(e,t){let n;return t.length&&(n=(e,n)=>{for(let r=0;re._w===t._w?e._p-t._p:e._w-t._w,vt=()=>100;function yt(e){for(let t in e)return!1;return!0}var bt=/^tags:|:render/;function xt(e,t){let n=(t[`entries:resolve`]?.length||0)+(t[`entries:normalize`]?.length||0);if(e._h!==n){e._h=n;for(let t of e.entries.values())delete t._tags}}function St(e){for(let t=0;t>10==i._p>>10&&n.tag===`meta`&&it(r)?(e.tagMap.set(r,Object.assign([...Array.isArray(i)?i:[i],n],n)),t=!0):(n._w===i._w?n._p>i._p:n._wt?(typeof e==`string`?e:JSON.stringify(e)).replace(ht,`\\u003C`):typeof e==`string`?e.replace(gt,`<\\/script`):e;n={...n},r&&(n.innerHTML=i(r)),n.textContent&&(n.textContent=i(n.textContent)),n._d=at(n)}e[t++]=n}}return e.length=t,e}function Dt(e,t){let n=t?.tagWeight??e.resolvedOptions._tagWeight??vt,r={tagMap:new Map,tags:[]},i=e.hooks?._hooks||{};xt(e,i);for(let t of e.entries.values())t._pending!==void 0&&(t.input=t._pending,delete t._pending,delete t._tags,delete t._precomputedTags);let a;(i[`entries:resolve`]?.length||i[`entries:normalize`]?.length)&&(a=[...e.entries.values()],i[`entries:resolve`]?.length&&tt(e,`entries:resolve`,{entries:a,...r})),xt(e,i);for(let t of a||e.entries.values()){let a=t._tags;if(!a){if(t._precomputedTags&&n===e.resolvedOptions._tagWeight&&!i[`entries:normalize`]?.length&&!i[`entries:resolve`]?.length&&(!t.options||yt(t.options)))a=t._precomputedTags;else{if(a=mt(t.input,e.resolvedOptions.propResolvers||[]),t.options&&!yt(t.options))for(let e of a)Object.assign(e,t.options);if(i[`entries:normalize`]?.length){let n={tags:a,entry:t};tt(e,`entries:normalize`,n),a=n.tags}for(let e=0;eh(t)?m(t):t,{_static:!0});function Mt(e,t={}){let n=t.head||kt();return n.ssr?n.push(e||{},t):Nt(n,e,t)}function Nt(e,r,a={}){let s=y();if(s&&!s.active)return{patch(){},dispose(){},_i:-1};let l=_(!1);if(a.onRendered&&s){let e=a.onRendered;a={...a,onRendered:t=>s.run(()=>e(t))}}let u;return c(()=>{let t=l.value?{}:st(r,jt);u?u.patch(t):u=e.push(t,a)}),o()&&(t(()=>{u.dispose()}),n(()=>{l.value=!0}),i(()=>{l.value=!1})),u}function Pt(e,t){if(typeof t==`function`&&t.key&&e.plugins.has(t.key))return;let n=typeof t==`function`?t(e):t,r=n.key||String(e.plugins.size+1);if(!e.plugins.get(r)){e.plugins.set(r,n);for(let t in n.hooks||{})e.hooks?.hook(t,n.hooks[t])}}function Ft(e,t={}){let n=!t.document,r=new Map,i={_entryCount:1,_h:0,plugins:new Map,resolvedOptions:t,ssr:n,entries:r,hooks:void 0,render:()=>e(i),use:e=>Pt(i,e),push(e,t){let a=t?._index??i._entryCount++,o=t?{...t}:{};delete o.head,delete o.onRendered,delete o._index;let s={_i:a,input:e,options:o};return r.set(a,s),{_i:a,dispose(){r.delete(a)},patch(e){n?(s.input=e,delete s._tags):s._pending=e,r.has(a)||r.set(a,s)}}}};return t.init?.forEach(e=>e&&i.push(e)),i}var It=Object.assign({}),Lt=Object.assign({}),Rt=Object.assign({}),zt=[Object.values(It)[0],Object.values(Lt)[0],Object.values(Rt)[0]].filter(Boolean),Bt=we(),Vt=be(`slidev-color-schema`,`auto`),Ht=p(()=>M.colorSchema!==`auto`),Ut=p({get(){return Ht.value?M.colorSchema===`dark`:Vt.value===`auto`?Bt.value:Vt.value===`dark`},set(e){Ht.value||(Vt.value=e===Bt.value?`auto`:e?`dark`:`light`)}}),Wt=me(Ut);Se&&l(Ut,e=>{let t=window.document.createElement(`style`);t.appendChild(document.createTextNode(`*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`)),window.document.head.appendChild(t);let n=document.querySelector(`html`);n.classList.toggle(`dark`,e),n.classList.toggle(`light`,!e),window.getComputedStyle(t).opacity,document.head.removeChild(t)},{immediate:!0});function Gt(){let{isPrintMode:e}=ue();ge(p(()=>e.value?` +@page { + size: ${D.value}px ${ae.value}px; + margin: 0px; +} + +* { + transition: none !important; + transition-duration: 0s !important; +}`:``))}var Kt=Symbol.for(`yaml.alias`),qt=Symbol.for(`yaml.document`),Jt=Symbol.for(`yaml.map`),Yt=Symbol.for(`yaml.pair`),Xt=Symbol.for(`yaml.scalar`),Zt=Symbol.for(`yaml.seq`),P=Symbol.for(`yaml.node.type`),Qt=e=>!!e&&typeof e==`object`&&e[P]===Kt,$t=e=>!!e&&typeof e==`object`&&e[P]===qt,en=e=>!!e&&typeof e==`object`&&e[P]===Jt,F=e=>!!e&&typeof e==`object`&&e[P]===Yt,I=e=>!!e&&typeof e==`object`&&e[P]===Xt,tn=e=>!!e&&typeof e==`object`&&e[P]===Zt;function L(e){if(e&&typeof e==`object`)switch(e[P]){case Jt:case Zt:return!0}return!1}function R(e){if(e&&typeof e==`object`)switch(e[P]){case Kt:case Jt:case Xt:case Zt:return!0}return!1}var nn=e=>(I(e)||L(e))&&!!e.anchor,z=Symbol(`break visit`),rn=Symbol(`skip children`),an=Symbol(`remove node`);function on(e,t){let n=cn(t);$t(e)?sn(null,e.contents,n,Object.freeze([e]))===an&&(e.contents=null):sn(null,e,n,Object.freeze([]))}on.BREAK=z,on.SKIP=rn,on.REMOVE=an;function sn(e,t,n,r){let i=ln(e,t,n,r);if(R(i)||F(i))return un(e,r,i),sn(e,i,n,r);if(typeof i!=`symbol`){if(L(t)){r=Object.freeze(r.concat(t));for(let e=0;eB(e,String(t),n));if(e&&typeof e.toJSON==`function`){if(!n||!nn(e))return e.toJSON(t,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};let i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e==`bigint`&&!n?.keep?Number(e):e}var pn=class{constructor(e){Object.defineProperty(this,P,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}={}){if(!$t(e))throw TypeError(`A document argument is required`);let a={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n==`number`?n:100},o=B(this,``,a);if(typeof r==`function`)for(let{count:e,res:t}of a.anchors.values())r(t,e);return typeof i==`function`?fn(i,{"":o},``,o):o}},mn=class extends pn{constructor(e){super(Kt),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){if(t?.maxAliasCount===0)throw ReferenceError(`Alias resolution is disabled`);let n;t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],on(e,{Node:(e,t)=>{(Qt(t)||nn(t))&&n.push(t)}}),t&&(t.aliasResolveCache=n));let r;for(let e of n){if(e===this)break;e.anchor===this.source&&(r=e)}return r}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:r,maxAliasCount:i}=t,a=this.resolve(r,t);if(!a){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}let o=n.get(a);if(o||=(B(a,null,t),n.get(a)),o?.res===void 0)throw ReferenceError(`This should not happen: Alias anchor was not resolved?`);if(i>=0&&(o.count+=1,o.aliasCount===0&&(o.aliasCount=hn(r,a,n)),o.count*o.aliasCount>i))throw ReferenceError(`Excessive alias count indicates a resource exhaustion attack`);return o.res}toString(e,t,n){let r=`*${this.source}`;if(e){if(dn(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${r} `}return r}};function hn(e,t,n){if(Qt(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}if(L(t)){let r=0;for(let i of t.items){let t=hn(e,i,n);t>r&&(r=t)}return r}if(F(t)){let r=hn(e,t.key,n),i=hn(e,t.value,n);return Math.max(r,i)}return 1}var gn=e=>!e||typeof e!=`function`&&typeof e!=`object`,V=class extends pn{constructor(e){super(Xt),this.value=e}toJSON(e,t){return t?.keep?this.value:B(this.value,e,t)}toString(){return String(this.value)}};V.BLOCK_FOLDED=`BLOCK_FOLDED`,V.BLOCK_LITERAL=`BLOCK_LITERAL`,V.PLAIN=`PLAIN`,V.QUOTE_DOUBLE=`QUOTE_DOUBLE`,V.QUOTE_SINGLE=`QUOTE_SINGLE`;var _n=`tag:yaml.org,2002:`;function vn(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}function yn(e,t,n){if($t(e)&&(e=e.contents),R(e))return e;if(F(e)){let t=n.schema[Jt].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<`u`&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:r,onAnchor:i,onTagObj:a,schema:o,sourceObjects:s}=n,c;if(r&&e&&typeof e==`object`){if(c=s.get(e),c)return c.anchor??(c.anchor=i(e)),new mn(c.anchor);c={anchor:null,node:null},s.set(e,c)}t?.startsWith(`!!`)&&(t=_n+t.slice(2));let l=vn(e,t,o.tags);if(!l){if(e&&typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`){let t=new V(e);return c&&(c.node=t),t}l=e instanceof Map?o[Jt]:Symbol.iterator in Object(e)?o[Zt]:o[Jt]}a&&(a(l),delete n.onTagObj);let u=l?.createNode?l.createNode(n.schema,e,n):typeof l?.nodeClass?.from==`function`?l.nodeClass.from(n.schema,e,n):new V(e);return t?u.tag=t:l.default||(u.tag=l.tag),c&&(c.node=u),u}function bn(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if(typeof n==`number`&&Number.isInteger(n)&&n>=0){let e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return yn(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error(`This should not happen, please report a bug.`)},schema:e,sourceObjects:new Map})}var xn=e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done,Sn=class extends pn{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>R(t)||F(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(xn(e))this.add(t);else{let[n,...r]=e,i=this.get(n,!0);if(L(i))i.addIn(r,t);else if(i===void 0&&this.schema)this.set(n,bn(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}deleteIn(e){let[t,...n]=e;if(n.length===0)return this.delete(t);let r=this.get(t,!0);if(L(r))return r.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...r]=e,i=this.get(n,!0);return r.length===0?!t&&I(i)?i.value:i:L(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!F(t))return!1;let n=t.value;return n==null||e&&I(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(n.length===0)return this.has(t);let r=this.get(t,!0);return L(r)?r.hasIn(n):!1}setIn(e,t){let[n,...r]=e;if(r.length===0)this.set(n,t);else{let e=this.get(n,!0);if(L(e))e.setIn(r,t);else if(e===void 0&&this.schema)this.set(n,bn(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}},Cn=e=>e.replace(/^(?!$)(?: $)?/gm,`#`);function wn(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}var Tn=(e,t,n)=>e.endsWith(` +`)?wn(n,t):n.includes(` +`)?` +`+wn(n,t):(e.endsWith(` `)?``:` `)+n,En=`flow`,Dn=`block`,On=`quoted`;function kn(e,t,n=`flow`,{indentAtStart:r,lineWidth:i=80,minContentWidth:a=20,onFold:o,onOverflow:s}={}){if(!i||i<0)return e;ii-Math.max(2,a)?l.push(0):d=i-r);let f,p,m=!1,h=-1,g=-1,_=-1;n===`block`&&(h=An(e,h,t.length),h!==-1&&(d=h+c));for(let r;r=e[h+=1];){if(n===`quoted`&&r===`\\`){switch(g=h,e[h+1]){case`x`:h+=3;break;case`u`:h+=5;break;case`U`:h+=9;break;default:h+=1}_=h}if(r===` +`)n===`block`&&(h=An(e,h,t.length)),d=h+t.length+c,f=void 0;else{if(r===` `&&p&&p!==` `&&p!==` +`&&p!==` `){let t=e[h+1];t&&t!==` `&&t!==` +`&&t!==` `&&(f=h)}if(h>=d){if(f)l.push(f),d=f+c,f=void 0;else if(n===`quoted`){for(;p===` `||p===` `;)p=r,r=e[h+=1],m=!0;let t=h>_+1?h-2:g-1;if(u[t])return e;l.push(t),u[t]=!0,d=t+c,f=void 0}else m=!0}}p=r}if(m&&s&&s(),l.length===0)return e;o&&o();let v=e.slice(0,l[0]);for(let r=0;r({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Mn=e=>/^(%|---|\.\.\.)/m.test(e);function Nn(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;tr)return!0;if(n=t+1,i-n<=r)return!1}return!0}function Pn(e,t){let n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;let{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,a=t.indent||(Mn(e)?` `:``),o=``,s=0;for(let e=0,t=n[e];t;t=n[++e])if(t===` `&&n[e+1]===`\\`&&n[e+2]===`n`&&(o+=n.slice(s,e)+`\\ `,e+=1,s=e,t=`\\`),t===`\\`)switch(n[e+1]){case`u`:{o+=n.slice(s,e);let t=n.substr(e+2,4);switch(t){case`0000`:o+=`\\0`;break;case`0007`:o+=`\\a`;break;case`000b`:o+=`\\v`;break;case`001b`:o+=`\\e`;break;case`0085`:o+=`\\N`;break;case`00a0`:o+=`\\_`;break;case`2028`:o+=`\\L`;break;case`2029`:o+=`\\P`;break;default:t.substr(0,2)===`00`?o+=`\\x`+t.substr(2):o+=n.substr(e,6)}e+=5,s=e+1}break;case`n`:if(r||n[e+2]===`"`||n.length +`;let d,f;for(f=n.length;f>0;--f){let e=n[f-1];if(e!==` +`&&e!==` `&&e!==` `)break}let p=n.substring(f),m=p.indexOf(` +`);m===-1?d=`-`:n===p||m!==p.length-1?(d=`+`,a&&a()):d=``,p&&=(n=n.slice(0,-p.length),p[p.length-1]===` +`&&(p=p.slice(0,-1)),p.replace(Ln,`$&${l}`));let h=!1,g,_=-1;for(g=0;g{i=!0});let s=kn(`${v}${e}${p}`,l,Dn,a);if(!i)return`>${y}\n${l}${s}`}return n=n.replace(/\n+/g,`$&${l}`),`|${y}\n${l}${v}${n}${p}`}function zn(e,t,n,r){let{type:i,value:a}=e,{actualString:o,implicitKey:s,indent:c,indentStep:l,inFlow:u}=t;if(s&&a.includes(` +`)||u&&/[[\]{},]/.test(a))return In(a,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return s||u||!a.includes(` +`)?In(a,t):Rn(e,t,n,r);if(!s&&!u&&i!==V.PLAIN&&a.includes(` +`))return Rn(e,t,n,r);if(Mn(a)){if(c===``)return t.forceBlockIndent=!0,Rn(e,t,n,r);if(s&&c===l)return In(a,t)}let d=a.replace(/\n+/g,`$&\n${c}`);if(o){let e=e=>e.default&&e.tag!==`tag:yaml.org,2002:str`&&e.test?.test(d),{compat:n,tags:r}=t.doc.schema;if(r.some(e)||n?.some(e))return In(a,t)}return s?d:kn(d,c,En,jn(t,!1))}function Bn(e,t,n,r){let{implicitKey:i,inFlow:a}=t,o=typeof e.value==`string`?e:Object.assign({},e,{value:String(e.value)}),{type:s}=e;s!==V.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(s=V.QUOTE_DOUBLE);let c=e=>{switch(e){case V.BLOCK_FOLDED:case V.BLOCK_LITERAL:return i||a?In(o.value,t):Rn(o,t,n,r);case V.QUOTE_DOUBLE:return Pn(o.value,t);case V.QUOTE_SINGLE:return Fn(o.value,t);case V.PLAIN:return zn(o,t,n,r);default:return null}},l=c(s);if(l===null){let{defaultKeyType:e,defaultStringType:n}=t.options,r=i&&e||n;if(l=c(r),l===null)throw Error(`Unsupported default string type ${r}`)}return l}function Vn(e,t){let n=Object.assign({blockQuote:!0,commentString:Cn,defaultKeyType:null,defaultStringType:`PLAIN`,directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:`false`,flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:`null`,simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:`true`,verifyAliasOrder:!0},e.schema.toStringOptions,t),r;switch(n.collectionStyle){case`block`:r=!1;break;case`flow`:r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?` `:``,indent:``,indentStep:typeof n.indent==`number`?` `.repeat(n.indent):` `,inFlow:r,options:n}}function Hn(e,t){if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}let n,r;if(I(t)){r=t.value;let i=e.filter(e=>e.identify?.(r));if(i.length>1){let e=i.filter(e=>e.test);e.length>0&&(i=e)}n=i.find(e=>e.format===t.format)??i.find(e=>!e.format)}else r=t,n=e.find(e=>e.nodeClass&&r instanceof e.nodeClass);if(!n){let e=r?.constructor?.name??(r===null?`null`:typeof r);throw Error(`Tag not resolved for ${e} value`)}return n}function Un(e,t,{anchors:n,doc:r}){if(!r.directives)return``;let i=[],a=(I(e)||L(e))&&e.anchor;a&&dn(a)&&(n.add(a),i.push(`&${a}`));let o=e.tag??(t.default?null:t.tag);return o&&i.push(r.directives.tagString(o)),i.join(` `)}function Wn(e,t,n,r){if(F(e))return e.toString(t,n,r);if(Qt(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError(`Cannot stringify circular structure without alias nodes`);t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i,a=R(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i??=Hn(t.doc.schema.tags,a);let o=Un(a,i,t);o.length>0&&(t.indentAtStart=(t.indentAtStart??0)+o.length+1);let s=typeof i.stringify==`function`?i.stringify(a,t,n,r):I(a)?Bn(a,t,n,r):a.toString(t,n,r);return o?I(a)||s[0]===`{`||s[0]===`[`?`${o} ${s}`:`${o}\n${t.indent}${s}`:s}function Gn({key:e,value:t},n,r,i){let{allNullValues:a,doc:o,indent:s,indentStep:c,options:{commentString:l,indentSeq:u,simpleKeys:d}}=n,f=R(e)&&e.comment||null;if(d){if(f)throw Error(`With simple keys, key nodes cannot have comments`);if(L(e)||!R(e)&&typeof e==`object`)throw Error(`With simple keys, collection cannot be used as a key value`)}let p=!d&&(!e||f&&t==null&&!n.inFlow||L(e)||(I(e)?e.type===V.BLOCK_FOLDED||e.type===V.BLOCK_LITERAL:typeof e==`object`));n=Object.assign({},n,{allNullValues:!1,implicitKey:!p&&(d||!a),indent:s+c});let m=!1,h=!1,g=Wn(e,n,()=>m=!0,()=>h=!0);if(!p&&!n.inFlow&&g.length>1024){if(d)throw Error(`With simple keys, single line scalar must not span more than 1024 characters`);p=!0}if(n.inFlow){if(a||t==null)return m&&r&&r(),g===``?`?`:p?`? ${g}`:g}else if(a&&!d||t==null&&p)return g=`? ${g}`,f&&!m?g+=Tn(g,n.indent,l(f)):h&&i&&i(),g;m&&(f=null),p?(f&&(g+=Tn(g,n.indent,l(f))),g=`? ${g}\n${s}:`):(g=`${g}:`,f&&(g+=Tn(g,n.indent,l(f))));let _,v,y;R(t)?(_=!!t.spaceBefore,v=t.commentBefore,y=t.comment):(_=!1,v=null,y=null,t&&typeof t==`object`&&(t=o.createNode(t))),n.implicitKey=!1,!p&&!f&&I(t)&&(n.indentAtStart=g.length+1),h=!1,!u&&c.length>=2&&!n.inFlow&&!p&&tn(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let b=!1,x=Wn(t,n,()=>b=!0,()=>h=!0),S=` `;if(f||_||v){if(S=_?` +`:``,v){let e=l(v);S+=`\n${wn(e,n.indent)}`}x===``&&!n.inFlow?S===` +`&&y&&(S=` + +`):S+=`\n${n.indent}`}else if(!p&&L(t)){let e=x[0],r=x.indexOf(` +`),i=r!==-1,a=n.inFlow??t.flow??t.items.length===0;if(i||!a){let t=!1;if(i&&(e===`&`||e===`!`)){let n=x.indexOf(` `);e===`&`&&n!==-1&&ne===qn||typeof e==`symbol`&&e.description===qn,default:`key`,tag:`tag:yaml.org,2002:merge`,test:/^<<$/,resolve:()=>Object.assign(new V(Symbol(qn)),{addToJSMap:Xn}),stringify:()=>qn},Yn=(e,t)=>(Jn.identify(t)||I(t)&&(!t.type||t.type===V.PLAIN)&&Jn.identify(t.value))&&e?.doc.schema.tags.some(e=>e.tag===Jn.tag&&e.default);function Xn(e,t,n){let r=Qn(e,n);if(tn(r))for(let n of r.items)Zn(e,t,n);else if(Array.isArray(r))for(let n of r)Zn(e,t,n);else Zn(e,t,r)}function Zn(e,t,n){let r=Qn(e,n);if(!en(r))throw Error(`Merge sources must be maps or map aliases`);let i=r.toJSON(null,e,Map);for(let[e,n]of i)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0});return t}function Qn(e,t){return e&&Qt(t)?t.resolve(e.doc,e):t}function $n(e,t,{key:n,value:r}){if(R(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(Yn(e,n))Xn(e,t,r);else{let i=B(n,``,e);if(t instanceof Map)t.set(i,B(r,i,e));else if(t instanceof Set)t.add(i);else{let a=er(n,i,e),o=B(r,a,e);a in t?Object.defineProperty(t,a,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[a]=o}}return t}function er(e,t,n){if(t===null)return``;if(typeof t!=`object`)return String(t);if(R(e)&&n?.doc){let t=Vn(n.doc,{});t.anchors=new Set;for(let e of n.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;let r=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(r);e.length>40&&(e=e.substring(0,36)+`..."`),Kn(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(t)}function tr(e,t,n){return new H(yn(e,void 0,n),yn(t,void 0,n))}var H=class e{constructor(e,t=null){Object.defineProperty(this,P,{value:Yt}),this.key=e,this.value=t}clone(t){let{key:n,value:r}=this;return R(n)&&(n=n.clone(t)),R(r)&&(r=r.clone(t)),new e(n,r)}toJSON(e,t){return $n(t,t?.mapAsMap?new Map:{},this)}toString(e,t,n){return e?.doc?Gn(this,e,t,n):JSON.stringify(this)}};function nr(e,t,n){return(t.inFlow??e.flow?ir:rr)(e,t,n)}function rr({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:a,onChompKeep:o,onComment:s}){let{indent:c,options:{commentString:l}}=n,u=Object.assign({},n,{indent:a,type:null}),d=!1,f=[];for(let e=0;eo=null,()=>d=!0);o&&(s+=Tn(s,a,l(o))),d&&o&&(d=!1),f.push(r+s)}let p;if(f.length===0)p=i.start+i.end;else{p=f[0];for(let e=1;ea=null);l||=d.length>u||o.includes(` +`),n0&&(l||=d.reduce((e,t)=>e+t.length+2,2)+(o.length+2)>t.options.lineWidth),l&&(o+=`,`)),a&&(o+=Tn(o,r,s(a))),d.push(o),u=d.length}let{start:f,end:p}=n;if(d.length===0)return f+p;if(!l){let e=d.reduce((e,t)=>e+t.length+2,2);l=t.options.lineWidth>0&&e>t.options.lineWidth}if(l){let e=f;for(let t of d)e+=t?`\n${a}${i}${t}`:` +`;return`${e}\n${i}${p}`}return`${f}${o}${d.join(` `)}${o}${p}`}function ar({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,``)),r){let i=wn(t(r),e);n.push(i.trimStart())}}function U(e,t){let n=I(t)?t.value:t;for(let r of e)if(F(r)&&(r.key===t||r.key===n||I(r.key)&&r.key.value===n))return r}var W=class extends Sn{static get tagName(){return`tag:yaml.org,2002:map`}constructor(e){super(Jt,e),this.items=[]}static from(e,t,n){let{keepUndefined:r,replacer:i}=n,a=new this(e),o=(e,o)=>{if(typeof i==`function`)o=i.call(t,e,o);else if(Array.isArray(i)&&!i.includes(e))return;(o!==void 0||r)&&a.items.push(tr(e,o,n))};if(t instanceof Map)for(let[e,n]of t)o(e,n);else if(t&&typeof t==`object`)for(let e of Object.keys(t))o(e,t[e]);return typeof e.sortMapEntries==`function`&&a.items.sort(e.sortMapEntries),a}add(e,t){let n;n=F(e)?e:!e||typeof e!=`object`||!(`key`in e)?new H(e,e?.value):new H(e.key,e.value);let r=U(this.items,n.key),i=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);I(r.value)&&gn(n.value)?r.value.value=n.value:r.value=n.value}else if(i){let e=this.items.findIndex(e=>i(n,e)<0);e===-1?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=U(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=U(this.items,e)?.value;return(!t&&I(n)?n.value:n)??void 0}has(e){return!!U(this.items,e)}set(e,t){this.add(new H(e,t),!0)}toJSON(e,t,n){let r=n?new n:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(r);for(let e of this.items)$n(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!F(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),nr(this,e,{blockItemPrefix:``,flowChars:{start:`{`,end:`}`},itemIndent:e.indent||``,onChompKeep:n,onComment:t})}},or={collection:`map`,default:!0,nodeClass:W,tag:`tag:yaml.org,2002:map`,resolve(e,t){return en(e)||t(`Expected a mapping for this tag`),e},createNode:(e,t,n)=>W.from(e,t,n)},sr=class extends Sn{static get tagName(){return`tag:yaml.org,2002:seq`}constructor(e){super(Zt,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=cr(e);return typeof t==`number`&&this.items.splice(t,1).length>0}get(e,t){let n=cr(e);if(typeof n!=`number`)return;let r=this.items[n];return!t&&I(r)?r.value:r}has(e){let t=cr(e);return typeof t==`number`&&t=0?t:null}var lr={collection:`seq`,default:!0,nodeClass:sr,tag:`tag:yaml.org,2002:seq`,resolve(e,t){return tn(e)||t(`Expected a sequence for this tag`),e},createNode:(e,t,n)=>sr.from(e,t,n)};function ur(e){return typeof e==`bigint`||Number.isInteger(e)}var dr=({value:e})=>JSON.stringify(e),fr=[{identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify:dr},{identify:e=>e==null,createNode:()=>new V(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^null$/,resolve:()=>null,stringify:dr},{identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^true$|^false$/,resolve:e=>e===`true`,stringify:dr},{identify:ur,default:!0,tag:`tag:yaml.org,2002:int`,test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>ur(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:dr}];[or,lr].concat(fr,{default:!0,tag:``,test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}});function pr(e,t,n){let{replacer:r}=n,i=new sr(e);i.tag=`tag:yaml.org,2002:pairs`;let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){typeof r==`function`&&(e=r.call(t,String(a++),e));let o,s;if(Array.isArray(e)){if(e.length===2)o=e[0],s=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){let t=Object.keys(e);if(t.length===1)o=t[0],s=e[o];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else o=e;i.items.push(tr(o,s,n))}return i}var mr=class e extends sr{constructor(){super(),this.add=W.prototype.add.bind(this),this.delete=W.prototype.delete.bind(this),this.get=W.prototype.get.bind(this),this.has=W.prototype.has.bind(this),this.set=W.prototype.set.bind(this),this.tag=e.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;t?.onCreate&&t.onCreate(n);for(let e of this.items){let r,i;if(F(e)?(r=B(e.key,``,t),i=B(e.value,r,t)):r=B(e,``,t),n.has(r))throw Error(`Ordered maps must not include duplicate keys`);n.set(r,i)}return n}static from(e,t,n){let r=pr(e,t,n),i=new this;return i.items=r.items,i}};mr.tag=`tag:yaml.org,2002:omap`;var hr=class e extends W{constructor(t){super(t),this.tag=e.tag}add(e){let t;t=F(e)?e:e&&typeof e==`object`&&`key`in e&&`value`in e&&e.value===null?new H(e.key,null):new H(e,null),U(this.items,t.key)||this.items.push(t)}get(e,t){let n=U(this.items,e);return!t&&F(n)?I(n.key)?n.key.value:n.key:n}set(e,t){if(typeof t!=`boolean`)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let n=U(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new H(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error(`Set items must all have null values`)}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)typeof r==`function`&&(e=r.call(t,e,e)),i.items.push(tr(e,null,n));return i}};hr.tag=`tag:yaml.org,2002:set`;var gr=Symbol(`break visit`),_r=Symbol(`skip children`),vr=Symbol(`remove item`);function yr(e,t){`type`in e&&e.type===`document`&&(e={start:e.start,value:e.value}),br(Object.freeze([]),e,t)}yr.BREAK=gr,yr.SKIP=_r,yr.REMOVE=vr,yr.itemAtPath=(e,t)=>{let n=e;for(let[e,r]of t){let t=n?.[e];if(t&&`items`in t)n=t.items[r];else return}return n},yr.parentCollection=(e,t)=>{let n=yr.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],i=n?.[r];if(i&&`items`in i)return i;throw Error(`Parent collection not found`)};function br(e,t,n){let r=n(t,e);if(typeof r==`symbol`)return r;for(let i of[`key`,`value`]){let a=t[i];if(a&&`items`in a){for(let t=0;tCr.push(e)),N(G,`$onPatch`,e=>wr.push(e)),ze(),N(G,`$patch`,async()=>!1);var{init:Tr,onPatch:Er,onUpdate:Dr,patch:Or,state:kr}=Be(G,G,!1),K=x({page:0,clicks:0,timer:{status:`stopped`,slides:{},startedAt:0,pausedAt:0}}),Ar=[],jr=[];N(K,`$syncUp`,!0),N(K,`$syncDown`,!0),N(K,`$paused`,!1),N(K,`$onSet`,e=>Ar.push(e)),N(K,`$onPatch`,e=>jr.push(e)),ze(),N(K,`$patch`,async()=>!1);var{init:Mr,onPatch:Nr,onUpdate:Pr,patch:Fr,state:Ir}=Be(K,{page:1,clicks:0,clicksTotal:0,timer:{status:`stopped`,slides:{},startedAt:0,pausedAt:0}});function Lr(){let e=o().appContext.app,t=x({nav:ue(),configs:M,themeConfigs:p(()=>M.themeConfig)});e.provide(Me,_(`none`)),e.provide(Re,t),e.provide(ke,p(()=>t.nav.currentSlideNo)),e.provide(Oe,f(ne()));for(let e of zt)e();let{clicksContext:n,currentSlideNo:r,hasPrimarySlide:i,isNotesViewer:a,isPresenter:s,isPrintMode:c}=ue();Mt({title:E,htmlAttrs:M.htmlAttrs}),Gt(),Mr(`${E} - shared`),Tr(`${E} - drawings`);let u=`${location.origin}_${xr()}`,d=p(()=>s.value?`presenter`:`viewer`);function m(){(s.value?k.value.presenterSend:k.value.viewerSend)&&(a.value||c.value||!s.value&&!Le.includes(location.host.split(`:`)[0])||(Fr(`page`,+r.value),Fr(`clicks`,n.value.current),Fr(`clicksTotal`,n.value.total),Fr(`lastUpdate`,{id:u,type:d.value,time:Date.now()})))}let h=ve();h.afterEach(m),l(n,m),Nr(e=>{(s.value?k.value.presenterReceive:k.value.viewerReceive)&&(!i.value||c.value||e.lastUpdate?.type!==d.value&&(+e.page!=+r.value||+n.value.current!=+e.clicks)&&(A.value=!1,h.replace({path:te(e.page,s.value),query:{...h.currentRoute.value.query,clicks:e.clicks||0}})))})}var Rr=C({__name:`App`,setup(e){return Lr(),c(()=>{for(let[e,t]of Object.entries(O.value))document.body.style.setProperty(e,t.toString())}),(e,t)=>{let n=s(`RouterView`);return T(),d(v,null,[a(n),w(`v-if`,!0)],64)}}});function zr(e,t,n){let r=e.push,i=e;return i.ssr=!1,i.hooks=t,i.dirty=!!i.dirty,i.use=e=>Pt(i,e),i.render=()=>n(i),i.invalidate=()=>{for(let e of i.entries.values())delete e._tags;i.dirty=!0,t.callHook(`entries:updated`,i)},i.push=(n,a)=>{let o=a?.onRendered?t.hook(`dom:rendered`,a.onRendered):void 0,s=r(n,a),c=e.entries.get(s._i);return c&&(c._o=n),i.dirty=!0,t.callHook(`entries:updated`,i),{_i:s._i,patch(e){s.patch(e),i.dirty=!0,t.callHook(`entries:updated`,i)},dispose(){o?.(),e.entries.has(s._i)&&(s.dispose(),i.invalidate())}}},t.hook(`entries:updated`,()=>{i.render()}),i}var Br=/\s+/;function Vr(e={}){return t=>Wr(t,e)}function Hr(e){for(let t of e.entries.values())if(t._pending!==void 0)return!0;return!1}function Ur(e,t){let n={_d:t,_t:t.title,_e:new Map([[`htmlAttrs`,t.documentElement],[`bodyAttrs`,t.body]]),_p:{},_s:{},_l:new Map};for(let e of[...t.body.children,...t.head.children]){let t=e.tagName.toLowerCase();if(!Ue.has(t))continue;let r={innerHTML:e.innerHTML};for(let t of e.getAttributeNames())r[t]=e.getAttribute(t);let i=ut({tag:t,props:{}},r);i.key=e.getAttribute(`data-hid`)||void 0;let a=at(i)||ot(i),o=a,s=1;for(;n._e.has(o);)o=`${a}:${s++}`;n._e.set(o,e)}for(let t of e.entries.values())if(t._o!==void 0){let e=t._o;for(let t of[`bodyAttrs`,`htmlAttrs`]){let r=e[t]?.class;if(typeof r==`string`){let e=n._e.get(t);for(let i of r.split(Br))i&&(n._p[`${t}:attr:class:${i}`]=()=>e.classList.remove(i))}}}return n}function Wr(e,t={}){let n=t.document||e.resolvedOptions.document,r=e._dom,i=!!r&&r._d!==n;if(!n||r&&!i&&!e.dirty&&!Hr(e)||e._du)return!1;let a=n.defaultView;e._du=!0;let o=!1;try{let i=function(e,t,n){d._s[e]=!n&&f[e]||t,delete f[e]},s=function(e,t,n,r,a,o){let s=`${e}:event:${t}`,c=d._l.get(s);if(c&&c[0]===o&&c[1]===n&&c[2]===r){i(s,c[4]);return}c?.[4]();let l=`data-${t}`,u=(e=>r.call(a,e)),f=()=>{o.removeEventListener(n,u),a.getAttribute(l)===``&&a.removeAttribute(l),d._l.get(s)?.[3]===u&&d._l.delete(s)};o.addEventListener(n,u),d._l.set(s,[o,n,r,u,f]),a.setAttribute(l,``),i(s,f,!0)},c=function({id:e,$el:t,tag:n}){let r=n.tag.endsWith(`Attrs`);if(d._e.set(e,t),!r){let r=n.textContent;r!=null&&r!==``&&(r!==t.textContent&&(t.textContent=r),i(`${e}:text`,()=>{t.textContent===r&&(t.textContent=``)},!0));let a=n.innerHTML;a!=null&&a!==``&&(a!==t.innerHTML&&(t.innerHTML=a),i(`${e}:html`,()=>{t.innerHTML===a&&(t.innerHTML=``)},!0));let o=`${e}:el`;i(o,f[o]||(()=>{t?.remove(),d._e.delete(e)}))}for(let r in n.props){let o=n.props[r];if(r[0]===`o`&&r[1]===`n`&&typeof o==`function`){let i=r.slice(2);t?.dataset?.[`${r}fired`]&&o.call(t,new((a?.Event)||Event)(i)),s(e,r,i,o,t,n.tag===`bodyAttrs`&&a?a:t);continue}let c=`${e}:attr:${r}`;if(r===`class`&&o)for(let e of o){let n=`${c}:${e}`;i(n,f[n]||(()=>t.classList.remove(e))),t.classList.contains(e)||t.classList.add(e)}else if(r===`style`&&o)for(let[e,n]of o){let r=`${c}:${e}`;i(r,f[r]||(()=>t.style.removeProperty(e))),t.style.setProperty(e,n)}else o!==!1&&o!==null&&(t.getAttribute(r)!==o&&t.setAttribute(r,o===!0?``:String(o)),i(c,f[c]||(()=>t.removeAttribute(r))))}},l={shouldRender:!0,tags:[]};if(tt(e,`dom:beforeRender`,l),!l.shouldRender)return!1;let u=r;if(u?._d!==n){if(u){for(let e in u._s)u._s[e]();for(let e in u._p)u._p[e]();u._s=u._p={},u._e.clear(),u._l.clear()}u=void 0}u?u._p=u._s:u=Ur(e,n),u._s={};let d=u,f=d._p,p=[],m={};e.dirty=!1;let h=Dt(e,t.tagWeight?{tagWeight:t.tagWeight}:void 0),g=[],_={};for(let e of h){let t=_[e._d]||0,r=(t?`${e._d}:${t}`:e._d)||e._h,a={tag:e,id:r,shouldRender:!0};if(e.tag===`meta`&&e._d&&it(e._d)&&(_[e._d]=t+1),g.push(a),e.tag===`title`){n.title=e.textContent,i(`title:`,()=>n.title=d._t);continue}a.$el=d._e.get(r),a.$el?c(a):Ue.has(e.tag)&&p.push(a)}for(let e of p)e.$el=n.createElement(e.tag.tag),c(e),(m[e.tag.tagPosition||`head`]??=n.createDocumentFragment()).appendChild(e.$el);m.head&&n.head.appendChild(m.head),m.bodyOpen&&n.body.insertBefore(m.bodyOpen,n.body.firstChild),m.bodyClose&&n.body.appendChild(m.bodyClose);for(let e in f)f[e]();e._dom=d,o=!0,tt(e,`dom:rendered`,{renders:g})}catch(t){throw e.dirty=!0,t}finally{e._du=!1}return o&&(e.dirty||Hr(e))&&Wr(e,t),o}var Gr=e=>typeof e.tagPriority==`number`?e.tagPriority:100+(Ye[e.tagPriority]||0);function Kr(e={}){e.document=e.document||(typeof window<`u`?document:void 0);let t=e.render||Vr({document:e.document}),n=zr(Ft(t,{document:e.document,propResolvers:e.propResolvers,_tagWeight:Gr,init:[]}),et(e.hooks),t);return e.plugins?.forEach(e=>n.use(e)),e.init?.forEach(e=>e&&n.push(e)),n}function qr(e={}){let t=Vr(),n,r=0;return n=Kr({render:()=>{let e=++r;setTimeout(()=>{e===r&&t(n)},0)},...e}),n.install=At(n),n}var Jr=Object.assign({}),Yr=Object.assign({}),Xr=Object.assign({}),Zr=[Object.values(Jr)[0],Object.values(Yr)[0],Object.values(Xr)[0]].filter(Boolean);function Qr(e,t=``){let n=[`slidev-page`,t],r=e?.meta?.slide?.no;return r!=null&&n.push(`slidev-page-${r}`),n.filter(Boolean).join(` `)}async function $r(){let{saveAs:t}=await j(async()=>{let{saveAs:t}=await import(`./modules/file-saver-BpWusTEB.js`).then(t=>e(t.t(),1));return{saveAs:t}},__vite__mapDeps([0,1]),import.meta.url);t(typeof M.download==`string`?M.download:M.exportFilename?`${M.exportFilename}.pdf`:`./slidev-exported.pdf`,`${M.title}.pdf`)}function ei(e,t,n){return(e.instance?.$).provides[t]??n}var ti=/[\s,]+/;function ni(e,t){let n=t.map(e=>`${Fe}${e}`);e.classList.forEach(t=>{t.startsWith(`slidev-vclick-anim-`)&&!n.includes(t)&&e.classList.remove(t)}),n.forEach(t=>e.classList.add(t))}function ri(){return{install(e){e.directive(`click`,{name:`v-click`,mounted(e,t){let n=ai(e,t,t.value);n!=null&&(e.classList.toggle(De,!0),e.dataset.slidevClicksStart=String(n.start),Number.isFinite(n.end)&&(e.dataset.slidevClicksEnd=String(n.end)),e.watchStopHandle=c(()=>{let t=n.isActive.value,r=n.isCurrent.value,i=t&&!r;n.flagHide?(e.classList.toggle(Ee,t),e.classList.toggle(Ne,t)):e.classList.toggle(Ee,!t),ni(e,n.flagAnimations.value),e.classList.toggle(je,r),e.classList.toggle(Ie,i)}))},unmounted:oi}),e.directive(`after`,{name:`v-after`,mounted(e,t){let n=ai(e,t,`+0`);n!=null&&(e.classList.toggle(De,!0),e.watchStopHandle=c(()=>{let t=n.isActive.value,r=n.isCurrent.value,i=t&&!r;n.flagHide?(e.classList.toggle(Ee,t),e.classList.toggle(Ne,t)):e.classList.toggle(Ee,!t),ni(e,n.flagAnimations.value),e.classList.toggle(je,r),e.classList.toggle(Ie,i)}))},unmounted:oi}),e.directive(`click-hide`,{name:`v-click-hide`,mounted(e,t){let n=ai(e,t,t.value,!0);n!=null&&(e.classList.toggle(De,!0),e.watchStopHandle=c(()=>{let t=n.isActive.value,r=n.isCurrent.value,i=t&&!r;e.classList.toggle(Ee,t),e.classList.toggle(Ne,t),ni(e,n.flagAnimations.value),e.classList.toggle(je,r),e.classList.toggle(Ie,i)}))},unmounted:oi})}}}var ii=new Map;function ai(e,t,n,r=!1){let i=ei(t,Oe)?.value,a=ei(t,Pe);if(!e||!i)return null;let o=r||t.modifiers.hide!==!1&&t.modifiers.hide!=null,s=Object.keys({...t.modifiers}).filter(e=>e!==`hide`),c=p(()=>{if(s.length>0)return s;let e=a?.clickAnimation||M.clickAnimation;return e?e.split(ti).filter(Boolean):[]}),l=i.calculate(n);if(!l)return null;i.register(e,l);let u=p(()=>o?!l.isActive.value:l.isActive.value),d=p(()=>u.value?`shown`:Number.isFinite(l.end)?i.current{setTimeout(t.update,300)},{flush:`post`,immediate:!0});return{...t,stop:n}}function ci(e){return{info:_(fe(e)?.meta.slide??null),update:async()=>{}}}var li={};function ui(e){function t(e){return li[e]??=ci(e)}return{info:p({get(){return t(u(e)).info.value},set(n){t(u(e)).info.value=n}}),update:async(n,r)=>{let i=t(r??u(e)),a=await i.update(n);return a&&(i.info.value=a),a}}}function di(e){return()=>{}}function fi(e,t,n,r=!1){function i(t){return e?ei(e,t):pe(t)}let a=i(Me),o=i(`$$slidev-fontmatter`)??{},s=i(ke),c=p(()=>di(s.value)),u=i(`$$slidev-slide-scale`)??_(1),d=i(`$$slidev-slide-zoom`)??_(1),{left:f,top:m,stop:h}=si(i(`$$slidev-slide-element`)??_()),{isPrintMode:g}=ue(),v=[`slide`,`presenter`].includes(a.value)&&!g.value,y=e?`directive`:`prop`,b=xr(),x;if(Array.isArray(t)?x=t:typeof t==`string`&&t.includes(`,`)?x=t.split(`,`).map(Number):t!=null&&(y=`frontmatter`,b=`${t}`,t=o?.dragPos?.[b],x=t?.split(`,`).map(Number)),y!==`frontmatter`&&!n)throw Error("[Slidev] Can not identify the source position of the v-drag element, please provide an explicit `id` prop.");let S=[h],C=!r&&t!=null&&!Number.isFinite(x?.[3]);x??=[NaN,NaN,0];let w=_(x[2]),T=_(x[0]+x[2]/2),E=_(r?0:x[4]??0),ee=p(()=>E.value*Math.PI/180),te=p(()=>Math.sin(ee.value)),ne=p(()=>Math.cos(ee.value)),re=_(),D=_({left:0,top:0,width:0,height:0}),ie=_(0);function ae(){if(!re.value)return;let e=re.value.getBoundingClientRect();D.value={left:e.left/d.value,top:e.top/d.value,width:e.width/d.value,height:e.height/d.value},ie.value=(D.value.width+D.value.height)/u.value/(Math.abs(te.value)+Math.abs(ne.value))-w.value}S.push(l(w,ae,{flush:`post`}));let oe=_(x[3]??0),O=C?p({get:()=>(C?ie.value:oe.value)||0,set:e=>!C&&(oe.value=e)}):oe,se=_(C?x[1]:x[1]+x[3]/2),k=C?p({get:()=>se.value+O.value/2,set:e=>se.value=e-O.value/2}):se,ce=p(()=>Number.isFinite(T.value)?{position:`absolute`,zIndex:100,left:`${T.value-w.value/2}px`,top:`${k.value-O.value/2}px`,width:`${w.value}px`,height:C?void 0:`${O.value}px`,transformOrigin:`center center`,transform:`rotate(${E.value}deg)`}:{position:`absolute`,zIndex:100});S.push(l([T,k,w,O,E],([e,t,r,i,a])=>{let o=[e-r/2,t-i/2,r].map(Math.round).join();o+=C?y===`directive`?`,NaN`:`,_`:`,${Math.round(i)}`,Math.round(a)!==0&&(o+=`,${Math.round(a)}`),y===`directive`&&(o=`[${o}]`),c.value(b,o,y,n)}));let A={dragId:b,dataSource:y,markdownSource:n,isArrow:r,zoom:d,autoHeight:C,x0:T,y0:k,width:w,height:O,rotate:E,container:re,containerStyle:ce,watchStopHandles:S,dragging:p(()=>le.value===A),mounted(){v&&(ae(),t||setTimeout(()=>{ae(),T.value=(D.value.left+D.value.width/2-f.value)/u.value,k.value=(D.value.top-m.value)/u.value,w.value=D.value.width/u.value,O.value=D.value.height/u.value},100))},unmounted(){v&&A.stopDragging()},startDragging(){v&&(ae(),le.value=A)},stopDragging(){v&&le.value===A&&(le.value=null)}};return S.push(Ce(re,e=>{let t=document.querySelector(`#drag-control-container`);t&&e.target&&t.contains(e.target)||A.stopDragging()}),l(_e(),e=>{e||A.stopDragging()})),A}function pi(){return{install(e){e.directive(`drag`,{name:`v-drag`,created(e,t,n){let r=fi(t,t.value,n.props?.markdownSource);n.props&&(n.props={...n.props},delete n.props.markdownSource),r.container.value=e,e.draggingState=r,e.dataset.dragId=r.dragId,r.watchStopHandles.push(l(r.containerStyle,t=>{for(let[n,r]of Object.entries(t))r&&(e.style[n]=r)},{immediate:!0})),e.addEventListener(`dblclick`,r.startDragging)},mounted(e){e.draggingState.mounted()},unmounted(e){let t=e.draggingState;t.unmounted(),e.removeEventListener(`dblclick`,t.startDragging),t.watchStopHandles.forEach(e=>e())}})}}}function mi(){return Math.floor(Math.random()*2**31)}var hi=class{constructor(e){this.seed=e}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}};function gi(e,t,n){if(e&&e.length){let[r,i]=t,a=Math.PI/180*n,o=Math.cos(a),s=Math.sin(a);for(let t of e){let[e,n]=t;t[0]=(e-r)*o-(n-i)*s+r,t[1]=(e-r)*s+(n-i)*o+i}}}function _i(e,t,n){let r=[];e.forEach(e=>r.push(...e)),gi(r,t,n)}function vi(e,t){return e[0]===t[0]&&e[1]===t[1]}function yi(e,t,n,r=1){let i=n,a=Math.max(t,.1),o=e[0]&&e[0][0]&&typeof e[0][0]==`number`?[e]:e,s=[0,0];if(i)for(let e of o)gi(e,s,i);let c=bi(o,a,r);if(i){for(let e of o)gi(e,s,-i);_i(c,s,-i)}return c}function bi(e,t,n){let r=[];for(let t of e){let e=[...t];vi(e[0],e[e.length-1])||e.push([e[0][0],e[0][1]]),e.length>2&&r.push(e)}let i=[];t=Math.max(t,.1);let a=[];for(let e of r)for(let t=0;te.ymint.ymin?1:e.xt.x?1:e.ymax===t.ymax?0:(e.ymax-t.ymax)/Math.abs(e.ymax-t.ymax)),!a.length)return i;let o=[],s=a[0].ymin,c=0;for(;o.length||a.length;){if(a.length){let e=-1;for(let t=0;ts);t++)e=t;a.splice(0,e+1).forEach(e=>{o.push({s,edge:e})})}if(o=o.filter(e=>!(e.edge.ymax<=s)),o.sort((e,t)=>e.edge.x===t.edge.x?0:(e.edge.x-t.edge.x)/Math.abs(e.edge.x-t.edge.x)),(n!==1||c%t===0)&&o.length>1)for(let e=0;e=o.length)break;let n=o[e].edge,r=o[t].edge;i.push([[Math.round(n.x),s],[Math.round(r.x),s]])}s+=n,o.forEach(e=>{e.edge.x=e.edge.x+n*e.edge.islope}),c++}return i}function xi(e,t){let n=t.hachureAngle+90,r=t.hachureGap;r<0&&(r=t.strokeWidth*4),r=Math.round(Math.max(r,.1));let i=1;return t.roughness>=1&&(t.randomizer?.next()||Math.random())>.7&&(i=r),yi(e,r,n,i||1)}var Si=class{constructor(e){this.helper=e}fillPolygons(e,t){return this._fillPolygons(e,t)}_fillPolygons(e,t){let n=xi(e,t);return{type:`fillSketch`,ops:this.renderLines(n,t)}}renderLines(e,t){let n=[];for(let r of e)n.push(...this.helper.doubleLineOps(r[0][0],r[0][1],r[1][0],r[1][1],t));return n}};function Ci(e){let t=e[0],n=e[1];return Math.sqrt((t[0]-n[0])**2+(t[1]-n[1])**2)}var wi=class extends Si{fillPolygons(e,t){let n=t.hachureGap;n<0&&(n=t.strokeWidth*4),n=Math.max(n,.1);let r=xi(e,Object.assign({},t,{hachureGap:n})),i=Math.PI/180*t.hachureAngle,a=[],o=n*.5*Math.cos(i),s=n*.5*Math.sin(i);for(let[e,t]of r)Ci([e,t])&&a.push([[e[0]-o,e[1]+s],[...t]],[[e[0]+o,e[1]-s],[...t]]);return{type:`fillSketch`,ops:this.renderLines(a,t)}}},Ti=class extends Si{fillPolygons(e,t){let n=this._fillPolygons(e,t),r=Object.assign({},t,{hachureAngle:t.hachureAngle+90}),i=this._fillPolygons(e,r);return n.ops=n.ops.concat(i.ops),n}},Ei=class{constructor(e){this.helper=e}fillPolygons(e,t){t=Object.assign({},t,{hachureAngle:0});let n=xi(e,t);return this.dotsOnLines(n,t)}dotsOnLines(e,t){let n=[],r=t.hachureGap;r<0&&(r=t.strokeWidth*4),r=Math.max(r,.1);let i=t.fillWeight;i<0&&(i=t.strokeWidth/2);let a=r/4;for(let o of e){let e=Ci(o),s=e/r,c=Math.ceil(s)-1,l=e-c*r,u=(o[0][0]+o[1][0])/2-r/4,d=Math.min(o[0][1],o[1][1]);for(let e=0;e{let a=Ci(e),o=Math.floor(a/(n+r)),s=(a+r-o*(n+r))/2,c=e[0],l=e[1];c[0]>l[0]&&(c=e[1],l=e[0]);let u=Math.atan((l[1]-c[1])/(l[0]-c[0]));for(let e=0;e{let i=Ci(e),a=Math.round(i/(2*t)),o=e[0],s=e[1];o[0]>s[0]&&(o=e[1],s=e[0]);let c=Math.atan((s[1]-o[1])/(s[0]-o[0]));for(let e=0;er%2?e+n:e+t);a.push({key:`C`,data:e}),t=e[4],n=e[5];break}case`Q`:a.push({key:`Q`,data:[...s]}),t=s[2],n=s[3];break;case`q`:{let e=s.map((e,r)=>r%2?e+n:e+t);a.push({key:`Q`,data:e}),t=e[2],n=e[3];break}case`A`:a.push({key:`A`,data:[...s]}),t=s[5],n=s[6];break;case`a`:t+=s[5],n+=s[6],a.push({key:`A`,data:[s[0],s[1],s[2],s[3],s[4],t,n]});break;case`H`:a.push({key:`H`,data:[...s]}),t=s[0];break;case`h`:t+=s[0],a.push({key:`H`,data:[t]});break;case`V`:a.push({key:`V`,data:[...s]}),n=s[0];break;case`v`:n+=s[0],a.push({key:`V`,data:[n]});break;case`S`:a.push({key:`S`,data:[...s]}),t=s[2],n=s[3];break;case`s`:{let e=s.map((e,r)=>r%2?e+n:e+t);a.push({key:`S`,data:e}),t=e[2],n=e[3];break}case`T`:a.push({key:`T`,data:[...s]}),t=s[0],n=s[1];break;case`t`:t+=s[0],n+=s[1],a.push({key:`T`,data:[t,n]});break;case`Z`:case`z`:a.push({key:`Z`,data:[]}),t=r,n=i}return a}function Ri(e){let t=[],n=``,r=0,i=0,a=0,o=0,s=0,c=0;for(let{key:l,data:u}of e){switch(l){case`M`:t.push({key:`M`,data:[...u]}),[r,i]=u,[a,o]=u;break;case`C`:t.push({key:`C`,data:[...u]}),r=u[4],i=u[5],s=u[2],c=u[3];break;case`L`:t.push({key:`L`,data:[...u]}),[r,i]=u;break;case`H`:r=u[0],t.push({key:`L`,data:[r,i]});break;case`V`:i=u[0],t.push({key:`L`,data:[r,i]});break;case`S`:{let e=0,a=0;n===`C`||n===`S`?(e=r+(r-s),a=i+(i-c)):(e=r,a=i),t.push({key:`C`,data:[e,a,...u]}),s=u[0],c=u[1],r=u[2],i=u[3];break}case`T`:{let[e,a]=u,o=0,l=0;n===`Q`||n===`T`?(o=r+(r-s),l=i+(i-c)):(o=r,l=i);let d=r+2*(o-r)/3,f=i+2*(l-i)/3,p=e+2*(o-e)/3,m=a+2*(l-a)/3;t.push({key:`C`,data:[d,f,p,m,e,a]}),s=o,c=l,r=e,i=a;break}case`Q`:{let[e,n,a,o]=u,l=r+2*(e-r)/3,d=i+2*(n-i)/3,f=a+2*(e-a)/3,p=o+2*(n-o)/3;t.push({key:`C`,data:[l,d,f,p,a,o]}),s=e,c=n,r=a,i=o;break}case`A`:{let e=Math.abs(u[0]),n=Math.abs(u[1]),a=u[2],o=u[3],s=u[4],c=u[5],l=u[6];e===0||n===0?(t.push({key:`C`,data:[r,i,c,l,c,l]}),r=c,i=l):(r!==c||i!==l)&&(Vi(r,i,c,l,e,n,a,o,s).forEach(function(e){t.push({key:`C`,data:e})}),r=c,i=l);break}case`Z`:t.push({key:`Z`,data:[]}),r=a,i=o}n=l}return t}function zi(e){return Math.PI*e/180}function Bi(e,t,n){return[e*Math.cos(n)-t*Math.sin(n),e*Math.sin(n)+t*Math.cos(n)]}function Vi(e,t,n,r,i,a,o,s,c,l){let u=zi(o),d=[],f=0,p=0,m=0,h=0;if(l)[f,p,m,h]=l;else{[e,t]=Bi(e,t,-u),[n,r]=Bi(n,r,-u);let o=(e-n)/2,l=(t-r)/2,d=o*o/(i*i)+l*l/(a*a);d>1&&(d=Math.sqrt(d),i=d*i,a=d*a);let g=s===c?-1:1,_=i*i,v=a*a,y=_*v-_*l*l-v*o*o,b=_*l*l+v*o*o,x=g*Math.sqrt(Math.abs(y/b));m=x*i*l/a+(e+n)/2,h=x*-a*o/i+(t+r)/2,f=Math.asin(parseFloat(((t-h)/a).toFixed(9))),p=Math.asin(parseFloat(((r-h)/a).toFixed(9))),ep&&(f-=Math.PI*2),!c&&p>f&&(p-=Math.PI*2)}let g=p-f;if(Math.abs(g)>Math.PI*120/180){let e=p,t=n,s=r;p=c&&p>f?f+Math.PI*120/180*1:f+Math.PI*120/180*-1,n=m+i*Math.cos(p),r=h+a*Math.sin(p),d=Vi(n,r,t,s,i,a,o,0,c,[p,e,m,h])}g=p-f;let _=Math.cos(f),v=Math.sin(f),y=Math.cos(p),b=Math.sin(p),x=Math.tan(g/4),S=4/3*i*x,C=4/3*a*x,w=[e,t],T=[e+S*v,t-C*_],E=[n+S*b,r-C*y],ee=[n,r];if(T[0]=2*w[0]-T[0],T[1]=2*w[1]-T[1],l)return[T,E,ee].concat(d);{d=[T,E,ee].concat(d);let e=[];for(let t=0;t2){let i=[];for(let t=0;tMath.PI*2&&(p=0,m=Math.PI*2);let h=Math.PI*2/c.curveStepCount,g=Math.min(h/2,(m-p)/2),_=da(g,l,u,d,f,p,m,1,c);if(!c.disableMultiStroke){let e=da(g,l,u,d,f,p,m,1.5,c);_.push(...e)}return o&&(s?_.push(...X(l,u,l+d*Math.cos(p),u+f*Math.sin(p),c),...X(l,u,l+d*Math.cos(m),u+f*Math.sin(m),c)):_.push({op:`lineTo`,data:[l,u]},{op:`lineTo`,data:[l+d*Math.cos(p),u+f*Math.sin(p)]})),{type:`path`,ops:_}}function Zi(e,t){let n=Ri(Li(Ii(e))),r=[],i=[0,0],a=[0,0];for(let{key:e,data:o}of n)switch(e){case`M`:a=[o[0],o[1]],i=[o[0],o[1]];break;case`L`:r.push(...X(a[0],a[1],o[0],o[1],t)),a=[o[0],o[1]];break;case`C`:{let[e,n,i,s,c,l]=o;r.push(...fa(e,n,i,s,c,l,a,t)),a=[c,l];break}case`Z`:r.push(...X(a[0],a[1],i[0],i[1],t)),a=[i[0],i[1]]}return{type:`path`,ops:r}}function Qi(e,t){let n=[];for(let r of e)if(r.length){let e=t.maxRandomnessOffset||0,i=r.length;if(i>2){n.push({op:`move`,data:[r[0][0]+Y(e,t),r[0][1]+Y(e,t)]});for(let a=1;aMath.PI*2&&(d=0,f=Math.PI*2);let p=(f-d)/o.curveStepCount,m=[];for(let e=d;e<=f;e+=p)m.push([s+l*Math.cos(e),c+u*Math.sin(e)]);return m.push([s+l*Math.cos(f),c+u*Math.sin(f)]),m.push([s,c]),$i([m],o)}function ta(e,t){return Y(e,t)}function na(e,t,n){return oa(e,t,n)}function ra(e,t,n,r,i){return X(e,t,n,r,i,!0)}function ia(e){let t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function aa(e){return e.randomizer||=new hi(e.seed||0),e.randomizer.next()}function oa(e,t,n,r=1){return n.roughness*r*(aa(n)*(t-e)+e)}function Y(e,t,n=1){return oa(-e,e,t,n)}function X(e,t,n,r,i,a=!1){let o=a?i.disableMultiStrokeFill:i.disableMultiStroke,s=sa(e,t,n,r,i,!0,!1);if(o)return s;let c=sa(e,t,n,r,i,!0,!0);return s.concat(c)}function sa(e,t,n,r,i,a,o){let s=(e-n)**2+(t-r)**2,c=Math.sqrt(s),l=1;l=c<200?1:c>500?.4:-.0016668*c+1.233334;let u=i.maxRandomnessOffset||0;u*u*100>s&&(u=c/10);let d=u/2,f=.2+aa(i)*.2,p=i.bowing*i.maxRandomnessOffset*(r-t)/200,m=i.bowing*i.maxRandomnessOffset*(e-n)/200;p=Y(p,i,l),m=Y(m,i,l);let h=[],g=()=>Y(d,i,l),_=()=>Y(u,i,l),v=i.preserveVertices;return a&&(o?h.push({op:`move`,data:[e+(v?0:g()),t+(v?0:g())]}):h.push({op:`move`,data:[e+(v?0:Y(u,i,l)),t+(v?0:Y(u,i,l))]})),o?h.push({op:`bcurveTo`,data:[p+e+(n-e)*f+g(),m+t+(r-t)*f+g(),p+e+2*(n-e)*f+g(),m+t+2*(r-t)*f+g(),n+(v?0:g()),r+(v?0:g())]}):h.push({op:`bcurveTo`,data:[p+e+(n-e)*f+_(),m+t+(r-t)*f+_(),p+e+2*(n-e)*f+_(),m+t+2*(r-t)*f+_(),n+(v?0:_()),r+(v?0:_())]}),h}function ca(e,t,n){if(!e.length)return[];let r=[];r.push([e[0][0]+Y(t,n),e[0][1]+Y(t,n)]),r.push([e[0][0]+Y(t,n),e[0][1]+Y(t,n)]);for(let i=1;i3){let a=[],o=1-n.curveTightness;i.push({op:`move`,data:[e[1][0],e[1][1]]});for(let t=1;t+21&&i.push(n):i.push(n),i.push(e[t+3])}else{let r=.5,a=e[t+0],o=e[t+1],s=e[t+2],c=e[t+3],l=va(a,o,r),u=va(o,s,r),d=va(s,c,r),f=va(l,u,r),p=va(u,d,r),m=va(f,p,r);ba([a,l,f,m],0,n,i),ba([m,p,d,c],0,n,i)}return i}function xa(e,t){return Sa(e,0,e.length,t)}function Sa(e,t,n,r,i){let a=i||[],o=e[t],s=e[n-1],c=0,l=1;for(let r=t+1;rc&&(c=t,l=r)}return Math.sqrt(c)>r?(Sa(e,t,l+1,r,a),Sa(e,l,n,r,a)):(a.length||a.push(o),a.push(s)),a}function Ca(e,t=.15,n){let r=[],i=(e.length-1)/3;for(let n=0;n0?Sa(r,0,r.length,n):r}function wa(e,t,n){let r=Ri(Li(Ii(e))),i=[],a=[],o=[0,0],s=[],c=()=>{s.length>=4&&a.push(...Ca(s,t)),s=[]},l=()=>{c(),a.length&&(i.push(a),a=[])};for(let{key:e,data:t}of r)switch(e){case`M`:l(),o=[t[0],t[1]],a.push(o);break;case`L`:c(),a.push([t[0],t[1]]);break;case`C`:if(!s.length){let e=a.length?a[a.length-1]:o;s.push([e[0],e[1]])}s.push([t[0],t[1]]),s.push([t[2],t[3]]),s.push([t[4],t[5]]);break;case`Z`:c(),a.push([o[0],o[1]])}if(l(),!n)return i;let u=[];for(let e of i){let t=xa(e,n);t.length&&u.push(t)}return u}var Z=`none`,Ta=class{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:`#000`,strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:`hachure`,fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return mi()}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,t,n){return{shape:e,sets:t||[],options:n||this.defaultOptions}}line(e,t,n,r,i){let a=this._o(i);return this._d(`line`,[J(e,t,n,r,a)],a)}rectangle(e,t,n,r,i){let a=this._o(i),o=[],s=Gi(e,t,n,r,a);if(a.fill){let i=[[e,t],[e+n,t],[e+n,t+r],[e,t+r]];a.fillStyle===`solid`?o.push(Qi([i],a)):o.push($i([i],a))}return a.stroke!==Z&&o.push(s),this._d(`rectangle`,o,a)}ellipse(e,t,n,r,i){let a=this._o(i),o=[],s=Ji(n,r,a),c=Yi(e,t,a,s);if(a.fill){if(a.fillStyle===`solid`){let n=Yi(e,t,a,s).opset;n.type=`fillPath`,o.push(n)}else o.push($i([c.estimatedPoints],a))}return a.stroke!==Z&&o.push(c.opset),this._d(`ellipse`,o,a)}circle(e,t,n,r){let i=this.ellipse(e,t,n,n,r);return i.shape=`circle`,i}linearPath(e,t){let n=this._o(t);return this._d(`linearPath`,[Ui(e,!1,n)],n)}arc(e,t,n,r,i,a,o=!1,s){let c=this._o(s),l=[],u=Xi(e,t,n,r,i,a,o,!0,c);if(o&&c.fill){if(c.fillStyle===`solid`){let o=Object.assign({},c);o.disableMultiStroke=!0;let s=Xi(e,t,n,r,i,a,!0,!1,o);s.type=`fillPath`,l.push(s)}else l.push(ea(e,t,n,r,i,a,c))}return c.stroke!==Z&&l.push(u),this._d(`arc`,l,c)}curve(e,t){let n=this._o(t),r=[],i=Ki(e,n);if(n.fill&&n.fill!==Z){if(n.fillStyle===`solid`){let t=Ki(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:`fillPath`,ops:this._mergedShape(t.ops)})}else{let t=[],i=e;if(i.length){let e=typeof i[0][0]==`number`?[i]:i;for(let r of e)r.length<3?t.push(...r):r.length===3?t.push(...Ca(ma([r[0],r[0],r[1],r[2]]),10,(1+n.roughness)/2)):t.push(...Ca(ma(r),10,(1+n.roughness)/2))}t.length&&r.push($i([t],n))}}return n.stroke!==Z&&r.push(i),this._d(`curve`,r,n)}polygon(e,t){let n=this._o(t),r=[],i=Ui(e,!0,n);return n.fill&&(n.fillStyle===`solid`?r.push(Qi([e],n)):r.push($i([e],n))),n.stroke!==Z&&r.push(i),this._d(`polygon`,r,n)}path(e,t){let n=this._o(t),r=[];if(!e)return this._d(`path`,r,n);e=(e||``).replace(/\n/g,` `).replace(/(-\s)/g,`-`).replace(`/(ss)/g`,` `);let i=n.fill&&n.fill!==`transparent`&&n.fill!==Z,a=n.stroke!==Z,o=!!(n.simplification&&n.simplification<1),s=o?4-4*(n.simplification||1):(1+n.roughness)/2,c=wa(e,1,s),l=Zi(e,n);if(i){if(n.fillStyle===`solid`){if(c.length===1){let t=Zi(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:`fillPath`,ops:this._mergedShape(t.ops)})}else r.push(Qi(c,n))}else r.push($i(c,n))}return a&&(o?c.forEach(e=>{r.push(Ui(e,!1,n))}):r.push(l)),this._d(`path`,r,n)}opsToPath(e,t){let n=``;for(let r of e.ops){let e=typeof t==`number`&&t>=0?r.data.map(e=>+e.toFixed(t)):r.data;switch(r.op){case`move`:n+=`M${e[0]} ${e[1]} `;break;case`bcurveTo`:n+=`C${e[0]} ${e[1]}, ${e[2]} ${e[3]}, ${e[4]} ${e[5]} `;break;case`lineTo`:n+=`L${e[0]} ${e[1]} `}}return n.trim()}toPaths(e){let t=e.sets||[],n=e.options||this.defaultOptions,r=[];for(let e of t){let t=null;switch(e.type){case`path`:t={d:this.opsToPath(e),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:Z};break;case`fillPath`:t={d:this.opsToPath(e),stroke:Z,strokeWidth:0,fill:n.fill||Z};break;case`fillSketch`:t=this.fillSketch(e,n)}t&&r.push(t)}return r}fillSketch(e,t){let n=t.fillWeight;return n<0&&(n=t.strokeWidth/2),{d:this.opsToPath(e),stroke:t.fill||Z,strokeWidth:n,fill:Z}}_mergedShape(e){return e.filter((e,t)=>t===0||e.op!==`move`)}},Ea=`http://www.w3.org/2000/svg`,Da=800,Oa=null;function ka(){return Oa||=new Ta().defaultOptions,Oa}function Aa(e,t,n){return{...ka(),maxRandomnessOffset:2,roughness:e===`highlight`?3:1.5,bowing:1,stroke:`#000`,strokeWidth:1.5,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:`hachure`,fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,disableMultiStroke:e!==`double`,disableMultiStrokeFill:!1,seed:t,...n}}function ja(e){let t=e.padding;if(t||t===0){if(typeof t==`number`)return[t,t,t,t];if(Array.isArray(t)){let e=t;if(e.length)switch(e.length){case 4:return[...e];case 1:return[e[0],e[0],e[0],e[0]];case 2:return[...e,...e];case 3:return[...e,e[1]];default:return[e[0],e[1],e[2],e[3]]}}}return[5,5,5,5]}function Ma(e,t,n,r,i,a){let o=[],s=n.strokeWidth||2,c=ja(n),l=n.animate===void 0||!!n.animate,u=n.iterations||2,d=+!!n.rtl,f=Aa(`single`,a,n);switch(n.type){case`underline`:{let e=t.y+t.h+c[2];for(let n=d;ne.setAttribute(t,n);for(let r of t){let t=document.createElementNS(Ea,`path`);if(d(t,`d`,r),d(t,`fill`,`none`),d(t,`stroke`,n.color||`currentColor`),d(t,`stroke-width`,`${s}`),n.opacity!==void 0&&d(t,`style`,`opacity:${n.opacity}`),l){let e=t.getTotalLength();a.push(e),u+=e}e.appendChild(t),c.push(t)}if(l){let e=0;for(let t=0;tsetTimeout(t,e))}function Pa(e){let t=[];for(let n of e){let e=``;for(let r of n.ops){let n=r.data;switch(r.op){case`move`:e.trim()&&t.push(e.trim()),e=`M${n[0]} ${n[1]} `;break;case`bcurveTo`:e+=`C${n[0]} ${n[1]}, ${n[2]} ${n[3]}, ${n[4]} ${n[5]} `;break;case`lineTo`:e+=`L${n[0]} ${n[1]} `}}e.trim()&&t.push(e.trim())}return t}function Fa(){if(!window.__rno_kf_s){let e=window.__rno_kf_s=document.createElement(`style`);e.textContent=`@keyframes rough-notation-dash { to { stroke-dashoffset: 0; } }`,document.head.appendChild(e)}}var Ia=Object.defineProperty,La=(e,t,n)=>t in e?Ia(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Q=(e,t,n)=>(La(e,typeof t==`symbol`?t:t+``,n),n),Ra=class{constructor(e,t){Q(this,`_state`,`unattached`),Q(this,`_config`),Q(this,`_resizing`,!1),Q(this,`_ro`),Q(this,`_seed`,mi()),Q(this,`_e`),Q(this,`_svg`),Q(this,`_lastSizes`,[]),Q(this,`_animationDelay`,0),Q(this,`_resizeListener`,()=>{this._resizing||(this._resizing=!0,setTimeout(()=>{this._resizing=!1,this._state===`showing`&&this.haveRectsChanged()&&this.show()},400))}),Q(this,`pendingRefresh`),this._e=e,this._config=JSON.parse(JSON.stringify(t)),this.attach()}getConfig(e){return this._config[e]}setConfig(e,t){this._config[e]!==t&&(this._config[e]=t,this.refresh())}get animate(){return this._config.animate}set animate(e){this._config.animate=e}get animationDuration(){return this._config.animationDuration}set animationDuration(e){this._config.animationDuration=e}get iterations(){return this._config.iterations}set iterations(e){this._config.iterations=e}get color(){return this._config.color}set color(e){this._config.color!==e&&(this._config.color=e,this.refresh())}get class(){return this._config.class}set class(e){this._config.class!==e&&(this._config.class=e,this._svg&&this._svg.setAttribute(`class`,[`rough-annotation`,this._config.class||``].filter(Boolean).join(` `)))}get strokeWidth(){return this._config.strokeWidth}set strokeWidth(e){this._config.strokeWidth!==e&&(this._config.strokeWidth=e,this.refresh())}get padding(){return this._config.padding}set padding(e){this._config.padding!==e&&(this._config.padding=e,this.refresh())}attach(){if(this._state===`unattached`&&this._e.parentElement){Fa();let e=this._svg=document.createElementNS(Ea,`svg`);e.setAttribute(`class`,[`rough-annotation`,this._config.class||``].filter(Boolean).join(` `));let t=e.style;t.position=`absolute`,t.top=`0`,t.left=`0`,t.overflow=`visible`,t.pointerEvents=`none`,t.width=`100px`,t.height=`100px`;let n=this._config.type===`highlight`;if(this._e.insertAdjacentElement(n?`beforebegin`:`afterend`,e),this._state=`not-showing`,n){let e=window.getComputedStyle(this._e).position;(!e||e===`static`)&&(this._e.style.position=`relative`)}this.attachListeners()}}detachListeners(){window.removeEventListener(`resize`,this._resizeListener),this._ro&&this._ro.unobserve(this._e)}attachListeners(){this.detachListeners(),window.addEventListener(`resize`,this._resizeListener,{passive:!0}),!this._ro&&`ResizeObserver`in window&&(this._ro=new window.ResizeObserver(e=>{for(let t of e)t.contentRect&&this._resizeListener()})),this._ro&&this._ro.observe(this._e)}haveRectsChanged(){if(this._lastSizes.length){let e=this.rects();if(e.length===this._lastSizes.length){for(let t=0;tMath.round(e)===Math.round(t);return n(e.x,t.x)&&n(e.y,t.y)&&n(e.w,t.w)&&n(e.h,t.h)}isShowing(){return this._state!==`not-showing`}refresh(){this.isShowing()&&!this.pendingRefresh&&(this.pendingRefresh=Promise.resolve().then(()=>{this.isShowing()&&this.show(),delete this.pendingRefresh}))}async show(){switch(this._state){case`unattached`:break;case`showing`:this.hide(),this._svg&&await this.render(this._svg,!0);break;case`not-showing`:this.attach(),this._svg&&await this.render(this._svg,!1)}}hide(){if(this._svg)for(;this._svg.lastChild;)this._svg.removeChild(this._svg.lastChild);this._state=`not-showing`}remove(){this._svg&&this._svg.parentElement&&this._svg.parentElement.removeChild(this._svg),this._svg=void 0,this._state=`unattached`,this.detachListeners()}async render(e,t){let n=this._config;t&&(n=JSON.parse(JSON.stringify(this._config)),n.animate=!1);let r=this.rects(),i=0;r.forEach(e=>i+=e.w);let a=n.animationDuration||Da,o=0,s=[];for(let t=0;tObject.assign(e,{type:`box`}),circle:e=>Object.assign(e,{type:`circle`}),underline:e=>Object.assign(e,{type:`underline`}),highlight:e=>Object.assign(e,{type:`highlight`}),"strike-through":e=>Object.assign(e,{type:`strike-through`}),"crossed-off":e=>Object.assign(e,{type:`crossed-off`}),bracket:e=>Object.assign(e,{type:`bracket`}),strike:e=>Object.assign(e,{type:`strike-through`}),cross:e=>Object.assign(e,{type:`crossed-off`}),crossed:e=>Object.assign(e,{type:`crossed-off`}),linethrough:e=>Object.assign(e,{type:`strike-through`}),"line-through":e=>Object.assign(e,{type:`strike-through`}),black:e=>$(e,`text-black`),blue:e=>$(e,`text-blue`),cyan:e=>$(e,`text-cyan`),gray:e=>$(e,`text-gray`),green:e=>$(e,`text-green`),indigo:e=>$(e,`text-indigo`),lime:e=>$(e,`text-lime`),orange:e=>$(e,`text-orange`),pink:e=>$(e,`text-pink`),purple:e=>$(e,`text-purple`),red:e=>$(e,`text-red`),teal:e=>$(e,`text-teal`),white:e=>$(e,`text-white`),yellow:e=>$(e,`text-yellow`)},Va=[[/^delay-?(\d+)?$/,(e,t,n)=>(t.delay=(e[1]?Number.parseInt(e[1]):n)||300,t)],[/^(?:op|opacity)-?(\d+)?$/,(e,t,n)=>(t.opacity=((e[1]?Number.parseInt(e[1]):n)||100)/100,t)]];function Ha(){return{install(e){e.directive(`mark`,{name:`v-mark`,mounted:(e,t)=>{let{isPrintMode:n}=ue(),r=p(()=>{let e=typeof t.value==`object`&&!Array.isArray(t.value)?{...t.value}:{at:t.value},r={at:e.at},i=Object.entries(t.modifiers).filter(([e,t])=>{if(Ba[e])return r=Ba[e](r,t),!1;for(let[n,i]of Va){let a=e.match(n);if(a)return r=i(a,r,t),!1}return!0});i.length&&console.warn(`[Slidev] Invalid modifiers for v-mark:`,i);let a={...r,...e};return a.type||=`underline`,n.value&&(a.animationDuration=1),a}),i=za(e,r.value),a=ai(e,t,r.value.at);if(!a){i.show();return}e.watchStopHandle=c(()=>{let e;r.value.class&&(i.class=r.value.class),r.value.color&&(i.color=r.value.color);let t=r.value.at;e=t===!0||t!==!1&&a.isActive.value,e!=null&&(e?i.show():i.hide())})},unmounted:e=>{e.watchStopHandle?.()}})}}}function Ua(){return{install(e){let t=xe();e.directive(`motion`,{name:`v-motion`,mounted(e,n,r,i){let a=ei(n,Oe),o=ei(n,ke),s=ei(n,Me),{currentPage:c,clicks:u,isPrintMode:d}=ue(),f=r.props={...r.props},p={...f.initial,...f.variants?.[`slidev-initial`]},m={...f.enter,...f.variants?.[`slidev-enter`]},h={...f.leave,...f.variants?.[`slidev-leave`]};delete f.initial,delete f.enter,delete f.leave;let g=`${xr()}-`,_=[];for(let e of Object.keys(f))if(e.startsWith(`click-`)){let t=e.slice(6),n=t.includes(`-`)?t.split(`-`).map(Number):+t,r=g+t;_.push({id:r,at:n,variant:{...f[e]},info:a?.value.calculate(n)}),delete f[e]}_.sort((e,t)=>(Array.isArray(e.at)?e.at[0]:e.at)-(Array.isArray(t.at)?t.at[0]:t.at)),t.created(e,n,r,i),t.mounted(e,n,r,i);let v=e.motionInstance;v.clickIds=_.map(e=>e.id),v.set(p),v.watchStopHandle=l([o,c,u].filter(Boolean),()=>{let t=ii.get(e)?.visibilityState.value??`shown`;if(!a?.value||![`slide`,`presenter`].includes(s?.value??``)){let e={...p,...m};for(let{variant:t}of _)Object.assign(e,t);v.set(e)}else if(d.value||o?.value===c.value){if(t===`shown`){let e={...p,...m};for(let{variant:t,info:n}of _)(!n||n.isActive.value)&&Object.assign(e,t);d.value?v.set(e):v.apply(e)}else v.apply(t===`before`?p:h)}else v.apply((o?.value??-1)>c.value?p:h)},{immediate:!0})},unmounted(e){e.motionInstance.watchStopHandle()}})}}}var Wa=Object.assign({}),Ga=Object.assign({}),Ka=Object.assign({}),qa=[Object.values(Wa)[0],Object.values(Ga)[0],Object.values(Ka)[0]].filter(Boolean);function Ja(){let e=[];function t(e){if(!M.remote||M.remote===e.query.password)return!0;if(M.remote&&e.query.password===void 0){let e=prompt(`Enter password`);if(M.remote===e)return!0}return e.params.no?{path:`/${e.params.no}`}:{path:``}}return e.push({name:`entry`,path:`/entry`,component:()=>j(()=>import(`./slidev/entry-DSOswi5I.js`),__vite__mapDeps([2,3,1,4,5,6]),import.meta.url),beforeEnter:t},{name:`overview`,path:`/overview`,component:()=>j(()=>import(`./slidev/overview-DDcnTVmh.js`),__vite__mapDeps([7,3,1,4,8,5,9,10,11,12,13,14,15,16,17,18,19,20,21]),import.meta.url),beforeEnter:t},{name:`notes`,path:`/notes`,component:()=>j(()=>import(`./slidev/notes-BUQ8DzVc.js`),__vite__mapDeps([22,3,1,4,8,5,9,10,12,23,13,14,24]),import.meta.url),beforeEnter:t},{name:`notes-edit`,path:`/notes-edit`,component:()=>j(()=>import(`./slidev/notes-edit-BoULxCyS.js`),__vite__mapDeps([25,3,1,4,8,5,9,10,12,23]),import.meta.url),beforeEnter:t},{name:`presenter`,path:`/presenter/:no`,component:()=>j(()=>import(`./slidev/presenter-B1LQ84XE.js`),__vite__mapDeps([26,3,1,4,8,5,9,10,18,27,12,28,29,13,14,24,15,16,17,19,20,30,31,32]),import.meta.url),beforeEnter:t},{path:`/presenter`,redirect:{path:`/presenter/1`}}),e.push({name:`play`,path:`/:no`,component:()=>j(()=>import(`./slidev/play-BjP6zyAu.js`),__vite__mapDeps([33,3,1,4,8,5,9,10,18,11,23,15,16,17,19,30,12,28,31,34]),import.meta.url)},{path:``,redirect:{path:`/1`}},{path:`/:pathMatch(.*)*`,name:`NotFound`,component:()=>j(()=>import(`./slidev/404-DJYONsN4.js`),__vite__mapDeps([35,3,1,4,8,5,9,10,36]),import.meta.url)}),qa.reduce((e,t)=>t(e),e)}async function Ya(e){function t(){document.documentElement.style.setProperty(`--vh`,`${window.innerHeight*.01}px`)}t(),window.addEventListener(`resize`,t);let n=he({history:Te(`./`),routes:Ja()});e.use(n),e.use(qr()),e.use(ri()),e.use(Ha()),e.use(pi()),e.use(Ua()),e.use(S,{container:`#twoslash-container`});let r={app:e,router:n};for(let e of Zr)await e(r)}async function Xa(){let e=b(Rr);await Ya(e),e.mount(`#app`)}Xa();export{Qr as a,Er as c,Sr as d,Ht as f,Mt as h,$r as i,Or as l,Wt as m,ci as n,Ir as o,Ut as p,si as r,kr as s,ui as t,xr as u}; \ No newline at end of file diff --git a/lecture-06/class/assets/index-DkUnP7jn.css b/lecture-06/class/assets/index-DkUnP7jn.css new file mode 100644 index 0000000000000000000000000000000000000000..8dc53723206db47460c92eb425cee4beccb16e9b --- /dev/null +++ b/lecture-06/class/assets/index-DkUnP7jn.css @@ -0,0 +1 @@ +*,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb)}:before,:after{--un-content:""}html,:host{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:#0000;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*,:before,:after,::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 #0000;--un-ring-shadow:0 0 #0000;--un-shadow-inset: ;--un-shadow:0 0 #0000;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:#93c5fd80;--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.prose,[prose=""]{color:var(--un-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-lead);margin-top:1.2em;margin-bottom:1.2em;font-size:1.25em;line-height:1.6}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:decimal}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:disc}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--un-prose-counters);font-weight:400}[prose=""] :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--un-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--un-prose-bullets)}[prose=""] :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--un-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-headings);margin-top:1.25em;font-weight:600}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--un-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--un-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em;font-style:italic;font-weight:500}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before,[prose=""] :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after,[prose=""] :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-headings);margin-top:0;margin-bottom:.888889em;font-size:2.25em;font-weight:800;line-height:1.11111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-headings);margin-top:2em;margin-bottom:1em;font-size:1.5em;font-weight:700;line-height:1.33333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-headings);margin-top:1.6em;margin-bottom:.6em;font-size:1.25em;font-weight:600;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-headings);margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em;display:block}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-kbd);box-shadow:0 0 0 1px rgb(var(--un-prose-kbd-shadows) / 10%), 0 3px 0 rgb(var(--un-prose-kbd-shadows) / 10%);padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;border-radius:.3125rem;padding-inline-start:.375em;font-family:inherit;font-size:.875em;font-weight:500}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before,[prose=""] :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after,[prose=""] :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-pre-code);background-color:var(--un-prose-pre-bg);padding-top:.857143em;padding-inline-end:1.14286em;padding-bottom:.857143em;border-radius:.375rem;margin-top:1.71429em;margin-bottom:1.71429em;padding-inline-start:1.14286em;font-size:.875em;font-weight:400;line-height:1.71429;overflow-x:auto}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit;background-color:#0000;border-width:0;border-radius:0;padding:0}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before,[prose=""] :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after,[prose=""] :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){table-layout:auto;width:100%;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.71429}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--un-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-headings);vertical-align:bottom;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em;font-weight:600}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--un-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--un-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-captions);margin-top:.857143em;font-size:.875em;line-height:1.42857}.prose,[prose=""]{font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where():not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where():not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.571429em;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where():not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where():not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose,[prose=""]{--un-prose-body:#374151;--un-prose-invert-body:#d1d5db;--un-prose-headings:#111827;--un-prose-invert-headings:white;--un-prose-lead:#4b5563;--un-prose-invert-lead:#9ca3af;--un-prose-links:#111827;--un-prose-invert-links:white;--un-prose-bold:#111827;--un-prose-invert-bold:white;--un-prose-counters:#6b7280;--un-prose-invert-counters:#9ca3af;--un-prose-bullets:#d1d5db;--un-prose-invert-bullets:#4b5563;--un-prose-hr:#e5e7eb;--un-prose-invert-hr:#374151;--un-prose-quotes:#111827;--un-prose-invert-quotes:#f3f4f6;--un-prose-quote-borders:#e5e7eb;--un-prose-invert-quote-borders:#374151;--un-prose-captions:#6b7280;--un-prose-invert-captions:#9ca3af;--un-prose-kbd:#111827;--un-prose-invert-kbd:white;--un-prose-kbd-shadows:#111827;--un-prose-invert-kbd-shadows:white;--un-prose-code:#111827;--un-prose-invert-code:white;--un-prose-pre-code:#e5e7eb;--un-prose-invert-pre-code:#d1d5db;--un-prose-pre-bg:#1f2937;--un-prose-invert-pre-bg:#00000080;--un-prose-th-borders:#d1d5db;--un-prose-invert-th-borders:#4b5563;--un-prose-td-borders:#e5e7eb;--un-prose-invert-td-borders:#374151}.dark .dark\:prose-invert{--un-prose-body:var(--un-prose-invert-body);--un-prose-headings:var(--un-prose-invert-headings);--un-prose-lead:var(--un-prose-invert-lead);--un-prose-links:var(--un-prose-invert-links);--un-prose-bold:var(--un-prose-invert-bold);--un-prose-counters:var(--un-prose-invert-counters);--un-prose-bullets:var(--un-prose-invert-bullets);--un-prose-hr:var(--un-prose-invert-hr);--un-prose-quotes:var(--un-prose-invert-quotes);--un-prose-quote-borders:var(--un-prose-invert-quote-borders);--un-prose-captions:var(--un-prose-invert-captions);--un-prose-kbd:var(--un-prose-invert-kbd);--un-prose-kbd-shadows:var(--un-prose-invert-kbd-shadows);--un-prose-code:var(--un-prose-invert-code);--un-prose-pre-code:var(--un-prose-invert-pre-code);--un-prose-pre-bg:var(--un-prose-invert-pre-bg);--un-prose-th-borders:var(--un-prose-invert-th-borders);--un-prose-td-borders:var(--un-prose-invert-td-borders)}.container{width:100%}.z-context-menu{z-index:60}.z-label{z-index:40}.z-menu{z-index:20}.z-modal{z-index:70}.z-nav{z-index:50}.slidev-glass-effect{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity));--un-shadow:var(--un-shadow-inset) 0 20px 25px -5px var(--un-shadow-color,#0000001a),var(--un-shadow-inset) 0 8px 10px -6px var(--un-shadow-color,#0000001a);box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow);--un-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia);border-width:1px;border-color:#9ca3af33;--un-bg-opacity:.75!important}.border-main,.dark [border~=dark\:main],.dark [dark\:border~=main],[border-main=""],[border~=main]{border-color:#9ca3af33}.border-primary,.hover\:border-primary:hover{border-color:var(--slidev-theme-primary)}.bg-active{background-color:#9ca3af1a}.bg-main{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.dark .bg-main,.dark .slidev-glass-effect{--un-bg-opacity:1;background-color:rgb(18 18 18/var(--un-bg-opacity))}.bg-primary,[bg-primary=""]{background-color:var(--slidev-theme-primary)}.hover\:bg-active:hover,[hover\:bg-active=""]:hover{background-color:#9ca3af1a}.dark .text-main{--un-text-opacity:1;color:rgb(221 221 221/var(--un-text-opacity))}.text-main{--un-text-opacity:1;color:rgb(24 24 24/var(--un-text-opacity))}.text-primary,[text-primary=""]{color:var(--slidev-theme-primary)}@media (width>=640px){.container{max-width:640px}}@media (width>=768px){.container{max-width:768px}}@media (width>=1024px){.container{max-width:1024px}}@media (width>=1280px){.container{max-width:1280px}}@media (width>=1536px){.container{max-width:1536px}}:root{--color-note:#0969da;--color-tip:#1a7f37;--color-warning:#9a6700;--color-severe:#bc4c00;--color-caution:#d1242f;--color-important:#8250df}@media (prefers-color-scheme:dark){:root{--color-note:#2f81f7;--color-tip:#3fb950;--color-warning:#d29922;--color-severe:#db6d28;--color-caution:#f85149;--color-important:#a371f7}}.markdown-alert{color:inherit;border-left:.25em solid #888;margin-bottom:16px;padding:.5rem 1rem}.markdown-alert>:first-child{margin-top:0}.markdown-alert>:last-child{margin-bottom:0}.markdown-alert .markdown-alert-title{align-items:center;font-weight:500;line-height:1;display:flex}.markdown-alert .markdown-alert-title .octicon{vertical-align:text-bottom;fill:currentColor;margin-right:.5rem;display:inline-block;overflow:visible!important}.markdown-alert.markdown-alert-note{border-left-color:var(--color-note)}.markdown-alert.markdown-alert-note .markdown-alert-title{color:var(--color-note)}.markdown-alert.markdown-alert-important{border-left-color:var(--color-important)}.markdown-alert.markdown-alert-important .markdown-alert-title{color:var(--color-important)}.markdown-alert.markdown-alert-warning{border-left-color:var(--color-warning)}.markdown-alert.markdown-alert-warning .markdown-alert-title{color:var(--color-warning)}.markdown-alert.markdown-alert-tip{border-left-color:var(--color-tip)}.markdown-alert.markdown-alert-tip .markdown-alert-title{color:var(--color-tip)}.markdown-alert.markdown-alert-caution{border-left-color:var(--color-caution)}.markdown-alert.markdown-alert-caution .markdown-alert-title{color:var(--color-caution)}:root{--slidev-code-background:#f5f5f5;--slidev-code-foreground:#1b1b1b;--slidev-code-font-family:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--slidev-code-padding:8px;--slidev-code-font-size:12px;--slidev-code-line-height:18px;--slidev-code-radius:4px;--slidev-code-margin:4px 0;--slidev-theme-primary:#3ab9d5;--slidev-transition-duration:.5s;--slidev-slide-container-background:black;--slidev-controls-foreground:white;--slidev-code-tab-divider:#e5e5e5;--slidev-code-tab-text-color:#67676c;--slidev-code-tab-font-size:12px;--slidev-code-tab-active-text-color:#3c3c43}html.dark{--slidev-code-background:#1b1b1b;--slidev-code-foreground:#eee;--slidev-code-tab-divider:#222;--slidev-code-tab-text-color:#98989f;--slidev-code-tab-active-text-color:#dfdfd6}html,body,#app,#page-root{width:100%;height:100vh;height:calc(var(--vh,1vh) * 100);-webkit-print-color-adjust:exact;print-color-adjust:exact;--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity));margin:0;padding:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;overflow:hidden}.dark html,.dark body,.dark #app,.dark #page-root{--un-bg-opacity:1;background-color:rgb(18 18 18/var(--un-bg-opacity))}html{background:0 0}.slidev-icon-btn{aspect-ratio:1;-webkit-user-select:none;user-select:none;cursor:pointer;vertical-align:middle;opacity:.75;border-radius:.25rem;outline:none;justify-content:center;align-items:center;padding:.25rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter,backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);display:inline-flex;position:relative}@media (width>=768px){.slidev-icon-btn{padding:.5rem}}.slidev-icon-btn:hover{--un-bg-opacity:.1;background-color:rgb(156 163 175/var(--un-bg-opacity))}.slidev-icon-btn:focus-visible{opacity:1;--un-outline-color-opacity:1;outline-width:2px;outline-color:rgb(0 0 0/var(--un-outline-color-opacity));outline-offset:2px;outline-style:solid}.dark .slidev-icon-btn:focus-visible{--un-outline-color-opacity:1;outline-color:rgb(255 255 255/var(--un-outline-color-opacity))}.slidev-icon-btn.shallow{opacity:.3}.slidev-icon-btn.active{opacity:1}.slidev-icon-btn.disabled{opacity:.25;pointer-events:none}.slidev-layout a.slidev-icon-btn{border-style:none}.slidev-layout a.slidev-icon-btn:hover{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity));border-style:none}.slidev-icon{vertical-align:sub;line-height:1em;display:inline-block}.slidev-page{width:100%;position:relative;top:0;left:0;right:0}.slidev-note-with-clicks .slidev-note-fade{color:#888c}.dark .slidev-note-with-clicks .slidev-note-fade{color:#a1a1a1cc}.slidev-note-click-mark{-webkit-user-select:none;user-select:none;--un-text-opacity:1;color:rgb(167 139 250/var(--un-text-opacity));background-color:#a78bfa1a;border-width:1px;border-color:#0000;border-radius:.25rem;align-items:center;padding-left:.25rem;padding-right:.25rem;font-family:JetBrains Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.7em;display:inline-flex}.slidev-note-click-mark.slidev-note-click-mark-active{--un-border-opacity:1;border-width:1px;border-color:rgb(167 139 250/var(--un-border-opacity))}.slidev-note-click-mark.slidev-note-click-mark-past{filter:saturate(0);opacity:.5}.slidev-note-click-mark.slidev-note-click-mark-future{opacity:.5}.slidev-note-click-mark:before{content:"";--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M23 28a1 1 0 0 1-.71-.29l-6.13-6.14l-3.33 5a1 1 0 0 1-1 .44a1 1 0 0 1-.81-.7l-6-20A1 1 0 0 1 6.29 5l20 6a1 1 0 0 1 .7.81a1 1 0 0 1-.44 1l-5 3.33l6.14 6.13a1 1 0 0 1 0 1.42l-4 4A1 1 0 0 1 23 28m0-2.41L25.59 23l-7.16-7.15l5.25-3.5L7.49 7.49l4.86 16.19l3.5-5.25Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;opacity:.8;background-color:currentColor;width:1.2em;height:1.2em;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%}.slidev-note-click-mark:after{content:attr(data-clicks);display:inline-block;transform:translateY(.1em)}.slidev-form-button{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity));--un-border-opacity:1;border-bottom-width:2px;border-color:rgb(55 65 81/var(--un-border-opacity));--un-bg-opacity:1;background-color:rgb(107 114 128/var(--un-bg-opacity));border-radius:.25rem;padding:.25rem 1rem}.slidev-form-button:hover{--un-border-opacity:1;border-color:rgb(75 85 99/var(--un-border-opacity));--un-bg-opacity:1;background-color:rgb(156 163 175/var(--un-bg-opacity))}.slidev-form-button.primary{--un-border-opacity:1;border-color:rgb(17 94 89/var(--un-border-opacity));--un-bg-opacity:1;background-color:rgb(13 148 136/var(--un-bg-opacity))}.slidev-form-button.primary:hover{--un-border-opacity:1;border-color:rgb(15 118 110/var(--un-border-opacity));--un-bg-opacity:1;background-color:rgb(20 184 166/var(--un-bg-opacity))}.rough-annotation{transform:scale(calc(1 / var(--slidev-slide-scale)))}#twoslash-container{position:fixed}#twoslash-container .v-popper__wrapper:not(.no-slide-scale>*){zoom:var(--slidev-slide-scale)}#twoslash-container .v-popper__popper:not(.no-slide-scale>*){translate:calc(10px * (1 - var(--slidev-slide-scale))) 0;width:max-content}.slidev-note ul{margin:0}html.dark:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}html.dark .shiki{color:var(--shiki-dark,inherit);--twoslash-popup-bg:var(--shiki-dark-bg,inherit)}html.dark .shiki span{color:var(--shiki-dark)}html:not(.dark) .shiki{color:var(--shiki-light,inherit);--twoslash-popup-bg:var(--shiki-light-bg,inherit)}html:not(.dark) .shiki span{color:var(--shiki-light)}.twoslash-meta-line.twoslash-popover-line{margin-top:-10px}.slidev-code-wrapper{scroll-padding:var(--slidev-code-padding);margin:var(--slidev-code-margin)!important}.slidev-code-wrapper:-webkit-scrollbar{width:0}.slidev-code{background:var(--slidev-code-background);overflow:auto;font-family:var(--slidev-code-font-family)!important;padding:var(--slidev-code-padding)!important;font-size:var(--slidev-code-font-size)!important;line-height:var(--slidev-code-line-height)!important;border-radius:var(--slidev-code-radius)!important}.slidev-code-block-title,.slidev-code-group-tabs{background:var(--slidev-code-background);color:var(--slidev-code-tab-text-color);padding-left:var(--slidev-code-padding);padding-right:var(--slidev-code-padding);font-size:var(--slidev-code-tab-font-size);border-radius:var(--slidev-code-radius) var(--slidev-code-radius) 0 0;box-shadow:inset 0 -1px var(--slidev-code-tab-divider);align-items:center;gap:8px;display:flex}.slidev-code-block-title{padding:var(--slidev-code-padding)}.slidev-code-tab{font-size:var(--slidev-code-tab-font-size);white-space:nowrap;cursor:pointer;padding:var(--slidev-code-padding);color:var(--slidev-code-tab-text-color);border-bottom:2px solid #0000;align-items:center;gap:8px;transition:color .25s;display:flex;position:relative}.slidev-code-tab:hover{color:var(--slidev-code-tab-active-text-color)!important}.slidev-code-group-blocks .slidev-code-wrapper{margin:0!important}.slidev-code-group-blocks .slidev-code{border-radius:0 0 var(--slidev-code-radius) var(--slidev-code-radius)!important}.slidev-code-group-blocks .slidev-code-wrapper.active{display:block}.slidev-code-group-blocks .slidev-code-wrapper{display:none}.slidev-code-block-title+.slidev-code,.slidev-code-group-tabs+.slidev-code{border-top-left-radius:0!important;border-top-right-radius:0!important}.slidev-code .slidev-code-dishonored{opacity:.3;pointer-events:none}.slidev-code-line-numbers .slidev-code code{counter-reset:step;counter-increment:step calc(var(--start,1) - 1)}.slidev-code-line-numbers .slidev-code code .line:before{content:counter(step);counter-increment:step;text-align:right;--un-text-opacity:1;width:1rem;color:rgb(156 163 175/var(--un-text-opacity));margin-right:1.5rem;display:inline-block}.dark .slidev-code-line-numbers .slidev-code code .line:before{--un-text-opacity:1;color:rgb(75 85 99/var(--un-text-opacity))}.slidev-note :not(pre)>code,.slidev-layout :not(pre)>code{background:var(--slidev-code-background);border-radius:var(--slidev-code-radius);padding:.125rem .375rem;font-size:.9em;font-weight:300}.slidev-note :not(pre)>code:after,.slidev-note :not(pre)>code:before{content:""}.slidev-layout :not(pre)>code:before{margin-right:-.08em}.katex,.katex :after,.katex :before{border-color:currentColor}.slidev-katex-wrapper .mord.dishonored{opacity:.3}.slide-left-enter-active,.slide-left-leave-active,.slide-right-enter-active,.slide-right-leave-active,.slide-up-enter-active,.slide-up-leave-active,.slide-down-enter-active,.slide-down-leave-active{transition:all var(--slidev-transition-duration) ease}.slide-left-enter-from,.slide-right-leave-to{translate:100%}.slide-left-leave-to,.slide-right-enter-from{translate:-100%}.slide-up-enter-from,.slide-down-leave-to{translate:0 100%}.slide-up-leave-to,.slide-down-enter-from{translate:0 -100%}.fade-enter-active,.fade-leave-active{transition:opacity var(--slidev-transition-duration) ease}.fade-enter-from,.fade-leave-to{opacity:0}.fade-out-leave-active{transition:opacity calc(var(--slidev-transition-duration) * .6) ease-out}.fade-out-enter-active{transition:opacity calc(var(--slidev-transition-duration) * .8) ease-in;transition-delay:calc(var(--slidev-transition-duration) * .6)}.fade-out-enter-from,.fade-out-leave-to{opacity:0}:root{--twoslash-popup-bg:var(--slidev-code-background);--twoslash-popup-color:var(--slidev-code-foreground);--twoslash-docs-color:inherit;--twoslash-docs-font:inherit;--twoslash-code-font:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--twoslash-underline-color:#8888;--twoslash-border-color:#8888;--twoslash-cursor-color:var(--slidev-theme-primary);--twoslash-matched-color:var(--slidev-theme-primary)}.twoslash-popup-container{font-size:13px}.twoslash-popup-container .twoslash-popup-code{font-size:.85em}.twoslash-floating .twoslash-popup-docs-tags .twoslash-popup-docs-tag-name{color:inherit;opacity:.5}.slidev-vclick-target{transition:all .1s}.slidev-vclick-target.slidev-vclick-anim-none{transition:none}.slidev-vclick-target.slidev-vclick-anim-fade-in{transition:all .3s}.slidev-vclick-hidden{opacity:0!important;pointer-events:none!important;-webkit-user-select:none!important;user-select:none!important}.slidev-vclick-hidden.slidev-vclick-anim-fade{opacity:.5!important}.slidev-vclick-hidden.slidev-vclick-anim-fade-in{opacity:0!important}.slidev-vclick-hidden.slidev-vclick-anim-up{translate:0 20px}.slidev-vclick-hidden.slidev-vclick-anim-down{translate:0 -20px}.slidev-vclick-hidden.slidev-vclick-anim-left{translate:20px}.slidev-vclick-hidden.slidev-vclick-anim-right{translate:-20px}.slidev-vclick-hidden.slidev-vclick-anim-scale{scale:.9}.slidev-vclick-display-none{display:none!important}.slidev-vclick-fade{opacity:.5}:root{--dl-bg:#fff;--dl-surface:#f7f9fa;--dl-border:#e3e8ea;--dl-heading:#111;--dl-body:#595959;--dl-muted:#8a8a8a;--dl-accent:#0097a7;--dl-accent-soft:#e0f4f6;--dl-accent-strong:#00707c;--dl-danger:#d32f2f;--dl-table-header:#eee;--dl-code-bg:#f6f8fa;--dl-fs-title:4.4rem;--dl-fs-section:3rem;--dl-fs-heading:2.1rem;--dl-fs-body:1.5rem;--dl-fs-secondary:1.17rem;--dl-fs-citation:.85rem}html.dark{--dl-bg:#0d1117;--dl-surface:#161b22;--dl-border:#2a323d;--dl-heading:#f2f5f7;--dl-body:#c2cad2;--dl-muted:#8b949e;--dl-accent:#2ec9d8;--dl-accent-soft:#123236;--dl-accent-strong:#7fe3ee;--dl-danger:#ff7b72;--dl-table-header:#1c2530;--dl-code-bg:#161b22}.slidev-layout{--slidev-code-background:var(--dl-code-bg);background:var(--dl-bg);height:100%;color:var(--dl-body);font-size:var(--dl-fs-body);padding:2.6rem 3rem 3.2rem;line-height:1.5;position:relative}.slidev-layout h1,.slidev-layout h2,.slidev-layout h3,.slidev-layout h4{color:var(--dl-heading);letter-spacing:-.01em;font-weight:600}.slidev-layout h1{font-size:var(--dl-fs-heading);margin-bottom:1.2rem}.slidev-layout h2{margin-bottom:.8rem;font-size:1.7rem}.slidev-layout h3{margin-bottom:.6rem;font-size:1.35rem}.slidev-layout p{margin:.5rem 0}.slidev-layout ul{margin:.4rem 0;padding-left:1.35rem;list-style:outside}.slidev-layout ol{margin:.4rem 0;padding-left:1.6rem;list-style:decimal}.slidev-layout ul ul{list-style:circle}.slidev-layout li{margin:.42rem 0}.slidev-layout li::marker{color:var(--dl-accent)}.slidev-layout a{color:var(--dl-accent);border-bottom:1px solid color-mix(in srgb, var(--dl-accent) 40%, transparent);text-decoration:none;transition:border-color .15s}.slidev-layout a:hover{border-bottom-color:var(--dl-accent)}.slidev-layout strong{color:var(--dl-heading);font-weight:600}.dl-wrong{color:var(--dl-danger);font-weight:600}.dl-secondary{font-size:var(--dl-fs-secondary);color:var(--dl-muted)}.slidev-layout table{border-collapse:collapse;font-size:var(--dl-fs-secondary);width:100%}.slidev-layout table th{background:var(--dl-table-header);color:var(--dl-heading);text-align:left;font-weight:600}.slidev-layout table th,.slidev-layout table td{border:1px solid var(--dl-border);padding:.4rem .7rem}.slidev-layout blockquote{border-left:3px solid var(--dl-accent);background:var(--dl-accent-soft);color:var(--dl-body);margin:.8rem 0;padding:.6rem 1rem}.dl-rule{background:var(--dl-accent);border-radius:2px;width:4.5rem;height:3px}.dl-callout{border-left:3px solid var(--dl-accent);background:var(--dl-accent-soft);border-radius:0 6px 6px 0;padding:.7rem 1rem;font-size:1.05rem}.dl-card{border:1px solid var(--dl-border);background:var(--dl-surface);border-radius:8px;overflow:hidden}.dl-card img{object-fit:cover;width:100%;height:6.2rem;display:block}.dl-card.is-contain img{object-fit:contain;background:var(--dl-bg);padding:.5rem}.dl-card__cap{color:var(--dl-body);padding:.35rem .55rem;font-size:.78rem}.dl-tight{font-size:1.06rem;line-height:1.45}.dl-tight li{margin:.34rem 0}.dl-tight .dl-callout{font-size:1rem}.dl-describe{max-width:52rem;font-size:1.15rem;line-height:1.45}.dl-describe p{margin:.4rem 0}.dl-describe li{margin:.22rem 0}.dl-ledger table{font-size:1.02rem}.dl-ledger table th,.dl-ledger table td{padding:.24rem .6rem}.dl-eq-legend table{font-size:.86rem}.dl-eq-legend table th,.dl-eq-legend table td{padding:.16rem .45rem}.dl-eq-legend table td:first-child{white-space:nowrap}.dl-prompt{color:var(--dl-heading);border-left:3px solid var(--dl-accent);padding-left:.8rem;font-size:1.05rem;font-style:italic}.dl-reveal{color:var(--dl-accent);font-size:1.8rem;font-weight:700}.slidev-layout .katex{color:var(--dl-heading)}.slidev-layout .katex-display>.katex{font-size:1em}.dl-math-sm .katex{font-size:.84em}.dl-math-xs .katex{font-size:.72em}.slidev-code-wrapper{border:1px solid var(--dl-border);border-radius:6px;flex-shrink:0;overflow:hidden}.dl-diagram{width:100%;max-width:41rem;height:auto;font-family:inherit}.dl-dg-box{fill:var(--dl-surface);stroke:var(--dl-border);stroke-width:1.5px}.dl-dg-box.is-accent{fill:var(--dl-accent-soft);stroke:var(--dl-accent)}.dl-dg-box.is-bad{fill:none;stroke:var(--dl-danger);stroke-dasharray:4 3}.dl-dg-net{fill:var(--dl-accent-soft);stroke:var(--dl-accent);stroke-width:1.6px}.dl-dg-net.is-critic{fill:var(--dl-surface);stroke:var(--dl-body)}.dl-dg-op{fill:var(--dl-bg);stroke:var(--dl-heading);stroke-width:1.6px}.dl-dg-lab{fill:var(--dl-heading);font-size:17px;font-style:italic;font-weight:600}.dl-dg-lab.is-sm{font-size:13px;font-style:normal}.dl-dg-in{fill:var(--dl-accent-strong);font-size:13px;font-weight:700}.dl-dg-net.is-critic+.dl-dg-in,.dl-dg-in.is-critic{fill:var(--dl-body)}.dl-dg-small{fill:var(--dl-muted);font-size:11px}.dl-dg-small.is-bad{fill:var(--dl-danger)}.dl-dg-small.is-good{fill:var(--dl-accent-strong)}.dl-dg-arrow{fill:none;stroke:var(--dl-body);stroke-width:1.8px}.dl-dg-head{fill:var(--dl-body)}.dl-dg-loss,.dl-dg-grad{fill:none;stroke:var(--dl-muted);stroke-width:1.4px;stroke-dasharray:3 3}.dl-dg-grad.is-bad{stroke:var(--dl-danger)}.dl-dg-grad.is-good{stroke:var(--dl-accent);stroke-dasharray:none}.dl-dg-split{stroke:var(--dl-border);stroke-width:1px}.dl-diagram.is-sm{max-width:26rem}.dl-diagram.is-xs{max-width:18rem}.dl-dg-bar{fill:var(--dl-muted)}.dl-dg-bar.is-q{fill:var(--dl-accent)}.dl-dg-bar.is-bad{fill:var(--dl-danger)}.dl-dg-fill{fill:var(--dl-accent-soft);stroke:var(--dl-accent);stroke-width:1.4px}.dl-dg-fill.is-muted{fill:var(--dl-surface);stroke:var(--dl-muted)}.dl-dg-fill.is-dashed{stroke-dasharray:4 3}.dl-dg-dot{fill:var(--dl-body)}.dl-dg-dot.is-accent{fill:var(--dl-accent)}.dl-dg-dot.is-bad{fill:var(--dl-danger)}.dl-dg-line{fill:none;stroke:var(--dl-accent);stroke-width:2.2px}.dl-dg-line.is-muted{stroke:var(--dl-muted)}.dl-dg-line.is-bad{stroke:var(--dl-danger)}.dl-dg-emoji{font-size:30px}.dl-dg-lab.is-bad-text{fill:var(--dl-danger)}.dl-diagram.is-sm-h{max-height:11.5rem}.slidev-layout pre.shiki{font-size:.76rem;line-height:1.38}.dl-ledger table .katex{font-size:.95em;line-height:1}.dl-ledger--scale table td:not(:first-child),.dl-ledger--scale table th:not(:first-child){text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.dl-tight :not(pre)>code{white-space:nowrap}@font-face{font-display:block;font-family:KaTeX_AMS;font-style:normal;font-weight:400;src:url(./KaTeX_AMS-Regular-BQhdFMY1.woff2)format("woff2"),url(./KaTeX_AMS-Regular-DMm9YOAa.woff)format("woff"),url(./KaTeX_AMS-Regular-DRggAlZN.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Caligraphic;font-style:normal;font-weight:700;src:url(./KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2)format("woff2"),url(./KaTeX_Caligraphic-Bold-BEiXGLvX.woff)format("woff"),url(./KaTeX_Caligraphic-Bold-ATXxdsX0.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Caligraphic;font-style:normal;font-weight:400;src:url(./KaTeX_Caligraphic-Regular-Di6jR-x-.woff2)format("woff2"),url(./KaTeX_Caligraphic-Regular-CTRA-rTL.woff)format("woff"),url(./KaTeX_Caligraphic-Regular-wX97UBjC.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Fraktur;font-style:normal;font-weight:700;src:url(./KaTeX_Fraktur-Bold-CL6g_b3V.woff2)format("woff2"),url(./KaTeX_Fraktur-Bold-BsDP51OF.woff)format("woff"),url(./KaTeX_Fraktur-Bold-BdnERNNW.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Fraktur;font-style:normal;font-weight:400;src:url(./KaTeX_Fraktur-Regular-CTYiF6lA.woff2)format("woff2"),url(./KaTeX_Fraktur-Regular-Dxdc4cR9.woff)format("woff"),url(./KaTeX_Fraktur-Regular-CB_wures.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:normal;font-weight:700;src:url(./KaTeX_Main-Bold-Cx986IdX.woff2)format("woff2"),url(./KaTeX_Main-Bold-Jm3AIy58.woff)format("woff"),url(./KaTeX_Main-Bold-waoOVXN0.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:italic;font-weight:700;src:url(./KaTeX_Main-BoldItalic-DxDJ3AOS.woff2)format("woff2"),url(./KaTeX_Main-BoldItalic-SpSLRI95.woff)format("woff"),url(./KaTeX_Main-BoldItalic-DzxPMmG6.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:italic;font-weight:400;src:url(./KaTeX_Main-Italic-NWA7e6Wa.woff2)format("woff2"),url(./KaTeX_Main-Italic-BMLOBm91.woff)format("woff"),url(./KaTeX_Main-Italic-3WenGoN9.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:normal;font-weight:400;src:url(./KaTeX_Main-Regular-B22Nviop.woff2)format("woff2"),url(./KaTeX_Main-Regular-Dr94JaBh.woff)format("woff"),url(./KaTeX_Main-Regular-ypZvNtVU.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Math;font-style:italic;font-weight:700;src:url(./KaTeX_Math-BoldItalic-CZnvNsCZ.woff2)format("woff2"),url(./KaTeX_Math-BoldItalic-iY-2wyZ7.woff)format("woff"),url(./KaTeX_Math-BoldItalic-B3XSjfu4.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Math;font-style:italic;font-weight:400;src:url(./KaTeX_Math-Italic-t53AETM-.woff2)format("woff2"),url(./KaTeX_Math-Italic-DA0__PXp.woff)format("woff"),url(./KaTeX_Math-Italic-flOr_0UB.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_SansSerif;font-style:normal;font-weight:700;src:url(./KaTeX_SansSerif-Bold-D1sUS0GD.woff2)format("woff2"),url(./KaTeX_SansSerif-Bold-DbIhKOiC.woff)format("woff"),url(./KaTeX_SansSerif-Bold-CFMepnvq.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_SansSerif;font-style:italic;font-weight:400;src:url(./KaTeX_SansSerif-Italic-C3H0VqGB.woff2)format("woff2"),url(./KaTeX_SansSerif-Italic-DN2j7dab.woff)format("woff"),url(./KaTeX_SansSerif-Italic-YYjJ1zSn.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_SansSerif;font-style:normal;font-weight:400;src:url(./KaTeX_SansSerif-Regular-DDBCnlJ7.woff2)format("woff2"),url(./KaTeX_SansSerif-Regular-CS6fqUqJ.woff)format("woff"),url(./KaTeX_SansSerif-Regular-BNo7hRIc.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Script;font-style:normal;font-weight:400;src:url(./KaTeX_Script-Regular-D3wIWfF6.woff2)format("woff2"),url(./KaTeX_Script-Regular-D5yQViql.woff)format("woff"),url(./KaTeX_Script-Regular-C5JkGWo-.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size1;font-style:normal;font-weight:400;src:url(./KaTeX_Size1-Regular-mCD8mA8B.woff2)format("woff2"),url(./KaTeX_Size1-Regular-C195tn64.woff)format("woff"),url(./KaTeX_Size1-Regular-Dbsnue_I.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size2;font-style:normal;font-weight:400;src:url(./KaTeX_Size2-Regular-Dy4dx90m.woff2)format("woff2"),url(./KaTeX_Size2-Regular-oD1tc_U0.woff)format("woff"),url(./KaTeX_Size2-Regular-B7gKUWhC.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size3;font-style:normal;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAA4oAA4AAAAAHbQAAA3TAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgRQIDgmcDBEICo1oijYBNgIkA14LMgAEIAWJAAeBHAyBHBvbGiMRdnO0IkRRkiYDgr9KsJ1NUAf2kILNxgUmgqIgq1P89vcbIcmsQbRps3vCcXdYOKSWEPEKgZgQkprQQsxIXUgq0DqpGKmIvrgkeVGtEQD9DzAO29fM9jYhxZEsL2FeURH2JN4MIcTdO049NCVdxQ/w9NrSYFEBKTDKpLKfNkCGDc1RwjZLQcm3vqJ2UW9Xfa3tgAHz6ivp6vgC2yD4/6352ndnN0X0TL7seypkjZlMsjmZnf0Mm5Q+JykRWQBKCVCVPbARPXWyQtb5VgLB6Biq7/Uixcj2WGqdI8tGSgkuRG+t910GKP2D7AQH0DB9FMDW/obJZ8giFI3Wg8Cvevz0M+5m0rTh7XDBlvo9Y4vm13EXmfttwI4mBo1EG15fxJhUiCLbiiyCf/ZA6MFAhg3pGIZGdGIVjtPn6UcMk9A/UUr9PhoNsCENw1APAq0gpH73e+M+0ueyHbabc3vkbcdtzcf/fiy+NxQEjf9ud/ELBHAXJ0nk4z+MXH2Ev/kWyV4k7SkvpPc9Qr38F6RPWnM9cN6DJ0AdD1BhtgABtmoRoFCvPsBAumNm6soZG2Gk5GyVTo2sJncSyp0jQTYoR6WDvTwaaEcHsxHfvuWhHA3a6bN7twRKtcGok6NsCi7jYRrM2jExsUFMxMQYuJbMhuWNOumEJy9hi29Dmg5zMp/A5+hhPG19j1vBrq8JTLr8ki5VLPmG/PynJHVul440bxg5xuymHUFPBshC+nA9I1FmwbRBTNHAcik3Oae0cxKoI3MOriM42UrPe51nsaGxJ+WfXubAsP84aabUlQSJ1IiE0iPETLUU4CATgfXSCSpuRFRmCGbO+wSpAnzaeaCYW1VNEysRtuXCEL1kUFUbbtMv3Tilt/1c11jt3Q5bbMa84cpWipp8Elw3MZhOHsOlwwVUQM3lAR35JiFQbaYCRnMF2lxAWoOg2gyoIV4PouX8HytNIfLhqpJtXB4vjiViUI8IJ7bkC4ikkQvKksnOTKICwnqWSZ9YS5f0WCxmpgjbIq7EJcM4aI2nmhLNY2JIUgOjXZFWBHb+x5oh6cwb0Tv1ackHdKi0I9OO2wE9aogIOn540CCCziyhN+IaejtgAONKznHlHyutPrHGwCx9S6B8kfS4Mfi4Eyv7OU730bT1SCBjt834cXsf43zVjPUqqJjgrjeGnBxSG4aYAKFuVbeCfkDIjAqMb6yLNIbCuvXhMH2/+k2vkNpkORhR59N1CkzoOENvneIosjYmuTxlhUzaGEJQ/iWqx4dmwpmKjrwTiTGTCVozNAYqk/zXOndWxuWSmJkQpJw3pK5KX6QrLt5LATMqpmPAQhkhK6PUjzHUn7E0gHE0kPE0iKkolgkUx9SZmVAdDgpffdyJKg3k7VmzYGCwVXGz/tXmkOIp+vcWs+EMuhhvN0h9uhfzWJziBQmCREGSIFmQIkgVpAnSBRmC//6hkLZwaVhwxlrJSOdqlFtOYxlau9F2QN5Y98xmIAsiM1HVp2VFX+DHHGg6Ecjh3vmqtidX3qHI2qycTk/iwxSt5UzTmEP92ZBnEWTk4Mx8Mpl78ZDokxg/KWb+Q0QkvdKVmq3TMW+RXEgrsziSAfNXFMhDc60N5N9jQzjfO0kBKpUZl0ZmwJ41j/B9Hz6wmRaJB84niNmQrzp9eSlQCDDzazGDdVi3P36VZQ+Jy4f9UBNp+3zTjqI4abaFAm+GShVaXlsGdF3FYzZcDI6cori4kMxUECl9IjJZpzkvitAoxKue+90pDMvcKRxLl53TmOKCmV/xRolNKSqqUxc6LStOETmFOiLZZptlZepcKiAzteG8PEdpnQpbOMNcMsR4RR2Bs0cKFEvSmIjAFcnarqwUL4lDhHmnVkwu1IwshbiCcgvOheZuYyOteufZZwlcTlLgnZ3o/WcYdzZHW/WGaqaVfmTZ1aWCceJjkbZqsfbkOtcFlUZM/jy+hXHDbaUobWqqXaeWobbLO99yG5N3U4wxco0rQGGcOLASFMXeJoham8M+/x6O2WywK2l4HGbq1CoUyC/IZikQhdq3SiuNrvAEj0AVu9x2x3lp/xWzahaxidezFVtdcb5uEnzyl0ZmYiuKI0exvCd4Xc9CV1KB0db00z92wDPde0kukbvZIWN6jUWFTmPIC/Y4UPCm8UfDTFZpZNon1qLFTkBhxzB+FjQRA2Q/YRJT8pQigslMaUpFyAG8TMlXigiqmAZX4xgijKjRlGpLE0GdplRfCaJo0JQaSxNBk6ZmMzcya0FmrcisDdn0Q3HI2sWSppYigmlM1XT/kLQZSNpMJG0WkjYbSZuDpM1F0uYhFc1HxU4m1QJjDK6iL0S5uSj5rgXc3RejEigtcRBtqYPQsiTskmO5vosV+q4VGIKbOkDg0jtRrq+Em1YloaTFar3EGr1EUC8R0kus1Uus00usL97ABr2BjXoDm/QGNhuWtMVBKOwg/i78lT7hBsAvDmwHc/ao3vmUbBmhjeYySZNWvGkfZAgISDSaDo1SVpzGDsAEkF8B+gEapViUoZgUWXcRIGFZNm6gWbAKk0bp0k1MHG9fLYtV4iS2SmLEQFARzRcnf9PUS0LVn05/J9MiRRBU3v2IrvW974v4N00L7ZMk0wXP1409CHo/an8zTRHD3eSJ6m8D4YMkZNl3M79sqeuAsr/m3f+8/yl7A50aiAEJgeBeMWzu7ui9UfUBCe2TIqZIoOd/3/udRBOQidQZUERzb2/VwZN1H/Sju82ew2H2Wfr6qvfVf3hqwDvAIpkQVFy4B9Pe9e4/XvPeceu7h3dvO56iJPf0+A6cqA2ip18ER+iFgggiuOkvj24bby0N9j2UHIkgqIt+sVgfodC4YghLSMjSZbH0VR/6dMDrYJeKHilKTemt6v6kvzvn3/RrdWtr0GoN/xL+Sex/cPYLUpepx9cz/D46UPU5KXgAQa+NDps1v6J3xP1i2HtaDB0M9aX2deA7SYff//+gUCovMmIK/qfsFcOk+4Y5ZN97XlG6zebqtMbKgeRFi51vnxTQYBUik2rS/Cn6PC8ADR8FGxsRPB82dzfND90gIcshOcYUkfjherBz53odpm6TP8txlwOZ71xmfHHOvq053qFF/MRlS3jP0ELudrf2OeN8DHvp6ZceLe8qKYvWz/7yp0u4dKPfli3CYq0O13Ih71mylJ80tOi10On8wi+F4+LWgDPeJ30msSQt9/vkmHq9/Lvo2b461mP801v3W4xTcs6CbvF9UDdrSt+A8OUbpSh55qAUFXWznBBfdeJ8a4d7ugT5tvxUza3h9m4H7ptTqiG4z0g5dc0X29OcGlhpGFMpQo9ytTS+NViZpNdvU4kWx+LKxNY10kQ1yqGXrhe4/1nvP7E+nd5A92TtaRplbHSqoIdOqtRWti+fkB5/n1+/VvCmz12pG1kpQWsfi1ftlBobm0bpngs16CHkbIwdLnParxtTV3QYRlfJ0KFskH7pdN/YDn+yRuSd7sNH3aO0DYPggk6uWuXrfOc+fa3VTxFVvKaNxHsiHmsXyCLIE5yuOeN3/Jdf8HBL/5M6shjyhxHx9BjB1O0+4NLOnjLLSxwO7ukN4jMbOIcD879KLSi6Pk61Oqm2377n8079PXEEQ7cy7OKEC9nbpet118fxweTafpt69x/Bt8UqGzNQt7aelpc44dn5cqhwf71+qKp/Zf/+a0zcizOUWpl/iBcSXip0pplkatCchoH5c5aUM8I7/dWxAej8WicPL1URFZ9BDJelUwEwTkGqUhgSlydVes95YdXvhh9Gfz/aeFWvgVb4tuLbcv4+wLdutVZv/cUonwBD/6eDlE0aSiKK/uoH3+J1wDE/jMVqY2ysGufN84oIXB0sPzy8ollX/LegY74DgJXJR57sn+VGza0x3DnuIgABFM15LmajjjsNlYj+JEZGbuRYcAMOWxFkPN2w6Wd46xo4gVWQR/X4lyI/R6K/YK0110GzudPRW7Y+UOBGTfNNzHeYT0fiH0taunBpq9HEW8OKSaBGj21L0MqenEmNRWBAWDWAk4CpNoEZJ2tTaPFgbQYj8HxtFilErs3BTRwT8uO1NXQaWfIotchmPkAF5mMBAliEmZiOGVgCG9LgRzpscMAOOwowlT3JhusdazXGSC/hxR3UlmWVwWHpOIKheqONvjyhSiTHIkVUco5bnji8m//zL7PKaT1Vl5I6UE609f+gkr6MZKVyKc7zJRmCahLsdlyA5fdQkRSan9LgnnLEyGSkaKJCJog0wAgvepWBt80+1yKln1bMVtCljfNWDueKLsWwaEbBSfSPTEmVRsUcYYMnEjcjeyCZzBXK9E9BYBXLKjOSpUDR+nEV3TFSUdQaz+ot98QxgXwx0GQ+EEUAKB2qZPkQQ0GqFD8UPFMqyaCHM24BZmSGic9EYMagKizOw9Hz50DMrDLrqqLkTAhplMictiCAx5S3BIUQdeJeLnBy2CNtMfz6cV4u8XKoFZQesbf9YZiIERiHjaNodDW6LgcirX/mPnJIkBGDUpTBhSa0EIr38D5hCIszhCM8URGBqImoWjpvpt1ebu/v3Gl3qJfMnNM+9V+kiRFyROTPHQWOcs1dNW94/ukKMPZBvDi55i5CttdeJz84DLngLqjcdwEZ87bFFR8CIG35OAkDVN6VRDZ7aq67NteYqZ2lpT8oYB2CytoBd6VuAx4WgiAsnuj3WohG+LugzXiQRDeM3XYXlULv4dp5VFYC)format("woff2"),url(./KaTeX_Size3-Regular-CTq5MqoE.woff)format("woff"),url(./KaTeX_Size3-Regular-DgpXs0kz.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size4;font-style:normal;font-weight:400;src:url(./KaTeX_Size4-Regular-Dl5lxZxV.woff2)format("woff2"),url(./KaTeX_Size4-Regular-BF-4gkZK.woff)format("woff"),url(./KaTeX_Size4-Regular-DWFBv043.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Typewriter;font-style:normal;font-weight:400;src:url(./KaTeX_Typewriter-Regular-CO6r4hn1.woff2)format("woff2"),url(./KaTeX_Typewriter-Regular-C0xS9mPB.woff)format("woff"),url(./KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf)format("truetype")}.katex{text-indent:0;text-rendering:auto;font:1.21em/1.2 KaTeX_Main,Times New Roman,serif;position:relative}.katex *{border-color:currentColor;-ms-high-contrast-adjust:none!important}.katex .katex-version:after{content:"0.18.4"}.katex .katex-mathml{clip-path:inset(50%);border:0;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.katex .katex-html>.katex-newline{display:block}.katex .katex-base{white-space:nowrap;width:min-content;position:relative}.katex .katex-base,.katex .katex-strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-style:italic;font-weight:700}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathboldfrak,.katex .textboldfrak{font-family:KaTeX_Fraktur;font-weight:700}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .mathsfit,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{border-collapse:collapse;table-layout:fixed;display:inline-table}.katex .vlist-r{display:table-row}.katex .vlist{vertical-align:bottom;display:table-cell;position:relative}.katex .vlist>span{height:0;display:block;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{width:0;overflow:hidden}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{vertical-align:bottom;width:2px;min-width:2px;font-size:1px;display:table-cell}.katex .katex-vbox{flex-direction:column;align-items:baseline;display:inline-flex}.katex .katex-thinbox{flex-direction:row;width:0;max-width:0;display:inline-flex}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{border-bottom-style:solid;width:100%;display:inline-block}.katex .katex-hdashline,.katex .katex-hline,.katex .katex-overline .overline-line,.katex .katex-rule,.katex .katex-underline .underline-line,.katex .mfrac .frac-line{min-height:1px}.katex .mspace{display:inline-block}.katex .katex-smash{line-height:0;display:inline}.katex .clap,.katex .llap,.katex .rlap{width:0;position:relative}.katex .clap>.katex-inner,.katex .llap>.katex-inner,.katex .rlap>.katex-inner{position:absolute}.katex .clap>.katex-fix,.katex .llap>.katex-fix,.katex .rlap>.katex-fix{display:inline-block}.katex .llap>.katex-inner{right:0}.katex .clap>.katex-inner,.katex .rlap>.katex-inner{left:0}.katex .clap>.katex-inner>span{margin-left:-50%;margin-right:50%}.katex .katex-rule{border:0 solid;display:inline-block;position:relative}.katex .katex-hline,.katex .katex-overline .overline-line,.katex .katex-underline .underline-line{border-bottom-style:solid;width:100%;display:inline-block}.katex .katex-hdashline{border-bottom-style:dashed;width:100%;display:inline-block}.katex .sqrt>.katex-root{margin-left:.277778em;margin-right:-.555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .katex-sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .katex-sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .katex-sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .katex-sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .katex-sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .katex-sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .katex-sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .katex-sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .katex-sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .katex-sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .katex-sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .katex-sizing.reset-size2.size1{font-size:.833333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .katex-sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .katex-sizing.reset-size2.size3{font-size:1.16667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .katex-sizing.reset-size2.size4{font-size:1.33333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .katex-sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .katex-sizing.reset-size2.size6{font-size:1.66667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .katex-sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .katex-sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .katex-sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .katex-sizing.reset-size2.size10{font-size:3.45667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .katex-sizing.reset-size2.size11{font-size:4.14667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .katex-sizing.reset-size3.size1{font-size:.714286em}.katex .fontsize-ensurer.reset-size3.size2,.katex .katex-sizing.reset-size3.size2{font-size:.857143em}.katex .fontsize-ensurer.reset-size3.size3,.katex .katex-sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .katex-sizing.reset-size3.size4{font-size:1.14286em}.katex .fontsize-ensurer.reset-size3.size5,.katex .katex-sizing.reset-size3.size5{font-size:1.28571em}.katex .fontsize-ensurer.reset-size3.size6,.katex .katex-sizing.reset-size3.size6{font-size:1.42857em}.katex .fontsize-ensurer.reset-size3.size7,.katex .katex-sizing.reset-size3.size7{font-size:1.71429em}.katex .fontsize-ensurer.reset-size3.size8,.katex .katex-sizing.reset-size3.size8{font-size:2.05714em}.katex .fontsize-ensurer.reset-size3.size9,.katex .katex-sizing.reset-size3.size9{font-size:2.46857em}.katex .fontsize-ensurer.reset-size3.size10,.katex .katex-sizing.reset-size3.size10{font-size:2.96286em}.katex .fontsize-ensurer.reset-size3.size11,.katex .katex-sizing.reset-size3.size11{font-size:3.55429em}.katex .fontsize-ensurer.reset-size4.size1,.katex .katex-sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .katex-sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .katex-sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .katex-sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .katex-sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .katex-sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .katex-sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .katex-sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .katex-sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .katex-sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .katex-sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .katex-sizing.reset-size5.size1{font-size:.555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .katex-sizing.reset-size5.size2{font-size:.666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .katex-sizing.reset-size5.size3{font-size:.777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .katex-sizing.reset-size5.size4{font-size:.888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .katex-sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .katex-sizing.reset-size5.size6{font-size:1.11111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .katex-sizing.reset-size5.size7{font-size:1.33333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .katex-sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .katex-sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .katex-sizing.reset-size5.size10{font-size:2.30444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .katex-sizing.reset-size5.size11{font-size:2.76444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .katex-sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .katex-sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .katex-sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .katex-sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .katex-sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .katex-sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .katex-sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .katex-sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .katex-sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .katex-sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .katex-sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .katex-sizing.reset-size7.size1{font-size:.416667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .katex-sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .katex-sizing.reset-size7.size3{font-size:.583333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .katex-sizing.reset-size7.size4{font-size:.666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .katex-sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .katex-sizing.reset-size7.size6{font-size:.833333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .katex-sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .katex-sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .katex-sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .katex-sizing.reset-size7.size10{font-size:1.72833em}.katex .fontsize-ensurer.reset-size7.size11,.katex .katex-sizing.reset-size7.size11{font-size:2.07333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .katex-sizing.reset-size8.size1{font-size:.347222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .katex-sizing.reset-size8.size2{font-size:.416667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .katex-sizing.reset-size8.size3{font-size:.486111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .katex-sizing.reset-size8.size4{font-size:.555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .katex-sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .katex-sizing.reset-size8.size6{font-size:.694444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .katex-sizing.reset-size8.size7{font-size:.833333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .katex-sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .katex-sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .katex-sizing.reset-size8.size10{font-size:1.44028em}.katex .fontsize-ensurer.reset-size8.size11,.katex .katex-sizing.reset-size8.size11{font-size:1.72778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .katex-sizing.reset-size9.size1{font-size:.289352em}.katex .fontsize-ensurer.reset-size9.size2,.katex .katex-sizing.reset-size9.size2{font-size:.347222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .katex-sizing.reset-size9.size3{font-size:.405093em}.katex .fontsize-ensurer.reset-size9.size4,.katex .katex-sizing.reset-size9.size4{font-size:.462963em}.katex .fontsize-ensurer.reset-size9.size5,.katex .katex-sizing.reset-size9.size5{font-size:.520833em}.katex .fontsize-ensurer.reset-size9.size6,.katex .katex-sizing.reset-size9.size6{font-size:.578704em}.katex .fontsize-ensurer.reset-size9.size7,.katex .katex-sizing.reset-size9.size7{font-size:.694444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .katex-sizing.reset-size9.size8{font-size:.833333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .katex-sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .katex-sizing.reset-size9.size10{font-size:1.20023em}.katex .fontsize-ensurer.reset-size9.size11,.katex .katex-sizing.reset-size9.size11{font-size:1.43981em}.katex .fontsize-ensurer.reset-size10.size1,.katex .katex-sizing.reset-size10.size1{font-size:.24108em}.katex .fontsize-ensurer.reset-size10.size2,.katex .katex-sizing.reset-size10.size2{font-size:.289296em}.katex .fontsize-ensurer.reset-size10.size3,.katex .katex-sizing.reset-size10.size3{font-size:.337512em}.katex .fontsize-ensurer.reset-size10.size4,.katex .katex-sizing.reset-size10.size4{font-size:.385728em}.katex .fontsize-ensurer.reset-size10.size5,.katex .katex-sizing.reset-size10.size5{font-size:.433944em}.katex .fontsize-ensurer.reset-size10.size6,.katex .katex-sizing.reset-size10.size6{font-size:.48216em}.katex .fontsize-ensurer.reset-size10.size7,.katex .katex-sizing.reset-size10.size7{font-size:.578592em}.katex .fontsize-ensurer.reset-size10.size8,.katex .katex-sizing.reset-size10.size8{font-size:.694311em}.katex .fontsize-ensurer.reset-size10.size9,.katex .katex-sizing.reset-size10.size9{font-size:.833173em}.katex .fontsize-ensurer.reset-size10.size10,.katex .katex-sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .katex-sizing.reset-size10.size11{font-size:1.19961em}.katex .fontsize-ensurer.reset-size11.size1,.katex .katex-sizing.reset-size11.size1{font-size:.200965em}.katex .fontsize-ensurer.reset-size11.size2,.katex .katex-sizing.reset-size11.size2{font-size:.241158em}.katex .fontsize-ensurer.reset-size11.size3,.katex .katex-sizing.reset-size11.size3{font-size:.281351em}.katex .fontsize-ensurer.reset-size11.size4,.katex .katex-sizing.reset-size11.size4{font-size:.321543em}.katex .fontsize-ensurer.reset-size11.size5,.katex .katex-sizing.reset-size11.size5{font-size:.361736em}.katex .fontsize-ensurer.reset-size11.size6,.katex .katex-sizing.reset-size11.size6{font-size:.401929em}.katex .fontsize-ensurer.reset-size11.size7,.katex .katex-sizing.reset-size11.size7{font-size:.482315em}.katex .fontsize-ensurer.reset-size11.size8,.katex .katex-sizing.reset-size11.size8{font-size:.578778em}.katex .fontsize-ensurer.reset-size11.size9,.katex .katex-sizing.reset-size11.size9{font-size:.694534em}.katex .fontsize-ensurer.reset-size11.size10,.katex .katex-sizing.reset-size11.size10{font-size:.833601em}.katex .fontsize-ensurer.reset-size11.size11,.katex .katex-sizing.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{width:.12em;display:inline-block}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .katex-accent>.vlist-t,.katex .op-limits>.vlist-t{text-align:center}.katex .katex-accent .accent-body{position:relative}.katex .katex-accent .accent-body:not(.accent-full){width:0}.katex .katex-overlay{display:block}.katex .mtable .vertical-separator{min-width:1px;display:inline-block}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{fill:currentColor;stroke:currentColor;height:inherit;width:100%;display:block;position:absolute}.katex svg path{stroke:none}.katex svg{fill-rule:nonzero;fill-opacity:1;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1}.katex img{border-style:none;min-width:0;max-width:none;min-height:0;max-height:none}.katex .katex-stretchy{width:100%;display:block;position:relative;overflow:hidden}.katex .katex-stretchy:after,.katex .katex-stretchy:before{content:""}.katex .hide-tail{width:100%;position:relative;overflow:hidden}.katex .halfarrow-left{width:50.2%;position:absolute;left:0;overflow:hidden}.katex .halfarrow-right{width:50.2%;position:absolute;right:0;overflow:hidden}.katex .brace-left{width:25.1%;position:absolute;left:0;overflow:hidden}.katex .brace-center{width:50%;position:absolute;left:25%;overflow:hidden}.katex .brace-right{width:25.1%;position:absolute;right:0;overflow:hidden}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{box-sizing:border-box;border:.04em solid}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .katex-sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{box-sizing:border-box;border-top:.049em solid;border-right:.049em solid;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .eqn-num:before{content:"(" counter(katexEqnNo) ")";counter-increment:katexEqnNo}.katex .mml-eqn-num:before{content:"(" counter(mmlEqnNo) ")";counter-increment:mmlEqnNo}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{text-align:left;display:inline-block;position:absolute;right:calc(50% + .3em)}.katex .cd-label-right{text-align:right;display:inline-block;position:absolute;left:calc(50% + .3em)}.katex-display{text-align:center;margin:1em 0;display:block}.katex-display>.katex{text-align:center;white-space:nowrap;display:block}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.katex-tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.katex-tag{left:0;right:auto}.katex-display.fleqn>.katex{text-align:left;padding-left:2em}body{counter-reset:katexEqnNo mmlEqnNo}.i-carbon-camera{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M29 26H3a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h6.46l1.71-2.55A1 1 0 0 1 12 4h8a1 1 0 0 1 .83.45L22.54 7H29a1 1 0 0 1 1 1v17a1 1 0 0 1-1 1M4 24h24V9h-6a1 1 0 0 1-.83-.45L19.46 6h-6.92l-1.71 2.55A1 1 0 0 1 10 9H4Z'/%3E%3Cpath fill='currentColor' d='M16 22a6 6 0 1 1 6-6a6 6 0 0 1-6 6m0-10a4 4 0 1 0 4 4a4 4 0 0 0-4-4'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon-magic-wand{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M29.414 24L12 6.586a2.05 2.05 0 0 0-2.828 0L6.586 9.172a2 2 0 0 0 0 2.828l17.413 17.414a2 2 0 0 0 2.828 0l2.587-2.586a2 2 0 0 0 0-2.828M8 10.586L10.586 8l5 5l-2.587 2.587zM25.413 28l-11-10.999L17 14.414l11 11ZM2 16l2-2l2 2l-2 2zM14 4l2-2l2 2l-2 2zM2 4l2-2l2 2l-2 2z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon-magic-wand-filled{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M29.414 24L12 6.586a2.05 2.05 0 0 0-2.828 0L6.586 9.172a2 2 0 0 0 0 2.828l17.413 17.414a2 2 0 0 0 2.828 0l2.587-2.586a2 2 0 0 0 0-2.828M8 10.586L10.586 8l5 5l-2.587 2.587zM2 16l2-2l2 2l-2 2zM14 4l2-2l2 2l-2 2zM2 4l2-2l2 2l-2 2z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon-moon{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M13.503 5.414a15.076 15.076 0 0 0 11.593 18.194a11.1 11.1 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1 1 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.07 13.07 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon-sun{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6M5.394 6.813L6.81 5.399l3.505 3.506L8.9 10.319zM2 15.005h5v2H2zm3.394 10.193L8.9 21.692l1.414 1.414l-3.505 3.506zM15 25.005h2v5h-2zm6.687-1.9l1.414-1.414l3.506 3.506l-1.414 1.414zm3.313-8.1h5v2h-5zm-3.313-6.101l3.506-3.506l1.414 1.414l-3.506 3.506zM15 2.005h2v5h-2z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:apps{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M8 4v4H4V4Zm2-2H2v8h8Zm8 2v4h-4V4Zm2-2h-8v8h8Zm8 2v4h-4V4Zm2-2h-8v8h8ZM8 14v4H4v-4Zm2-2H2v8h8Zm8 2v4h-4v-4Zm2-2h-8v8h8Zm8 2v4h-4v-4Zm2-2h-8v8h8ZM8 24v4H4v-4Zm2-2H2v8h8Zm8 2v4h-4v-4Zm2-2h-8v8h8Zm8 2v4h-4v-4Zm2-2h-8v8h8Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:arrow-down{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M24.59 16.59L17 24.17V4h-2v20.17l-7.59-7.58L6 18l10 10l10-10z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:arrow-left{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m14 26l1.41-1.41L7.83 17H28v-2H7.83l7.58-7.59L14 6L4 16z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:arrow-right{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m18 6l-1.43 1.393L24.15 15H4v2h20.15l-7.58 7.573L18 26l10-10z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:arrow-up{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 4L6 14l1.41 1.41L15 7.83V28h2V7.83l7.59 7.58L26 14z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:arrow-up-right{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M10 6v2h12.59L6 24.59L7.41 26L24 9.41V22h2V6z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:catalog{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M26 2H8a2 2 0 0 0-2 2v4H4v2h2v5H4v2h2v5H4v2h2v4a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2m0 26H8v-4h2v-2H8v-5h2v-2H8v-5h2V8H8V4h18Z'/%3E%3Cpath fill='currentColor' d='M14 8h8v2h-8zm0 7h8v2h-8zm0 7h8v2h-8z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:checkbox{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M26 4H6a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2M6 26V6h20v20Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:checkmark{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m13 24l-9-9l1.414-1.414L13 21.171L26.586 7.586L28 9z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:close{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M17.414 16L24 9.414L22.586 8L16 14.586L9.414 8L8 9.414L14.586 16L8 22.586L9.414 24L16 17.414L22.586 24L24 22.586z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:close-outline{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 2C8.2 2 2 8.2 2 16s6.2 14 14 14s14-6.2 14-14S23.8 2 16 2m0 26C9.4 28 4 22.6 4 16S9.4 4 16 4s12 5.4 12 12s-5.4 12-12 12'/%3E%3Cpath fill='currentColor' d='M21.4 23L16 17.6L10.6 23L9 21.4l5.4-5.4L9 10.6L10.6 9l5.4 5.4L21.4 9l1.6 1.6l-5.4 5.4l5.4 5.4z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:cursor-1,[i-carbon\:cursor-1=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M23 28a1 1 0 0 1-.71-.29l-6.13-6.14l-3.33 5a1 1 0 0 1-1 .44a1 1 0 0 1-.81-.7l-6-20A1 1 0 0 1 6.29 5l20 6a1 1 0 0 1 .7.81a1 1 0 0 1-.44 1l-5 3.33l6.14 6.13a1 1 0 0 1 0 1.42l-4 4A1 1 0 0 1 23 28m0-2.41L25.59 23l-7.16-7.15l5.25-3.5L7.49 7.49l4.86 16.19l3.5-5.25Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:document-pdf{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M30 18v-2h-6v10h2v-4h3v-2h-3v-2zm-11 8h-4V16h4a3.003 3.003 0 0 1 3 3v4a3.003 3.003 0 0 1-3 3m-2-2h2a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1h-2Zm-6-8H6v10h2v-3h3a2.003 2.003 0 0 0 2-2v-3a2 2 0 0 0-2-2m-3 5v-3h3l.001 3Z'/%3E%3Cpath fill='currentColor' d='M22 14v-4a.91.91 0 0 0-.3-.7l-7-7A.9.9 0 0 0 14 2H4a2.006 2.006 0 0 0-2 2v24a2 2 0 0 0 2 2h16v-2H4V4h8v6a2.006 2.006 0 0 0 2 2h6v2Zm-8-4V4.4l5.6 5.6Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:download{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M26 24v4H6v-4H4v4a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2v-4Zm0-10l-1.41-1.41L17 20.17V2h-2v18.17l-7.59-7.58L6 14l10 10z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:drop-photo{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M19 26a4 4 0 1 1 4-4a4.005 4.005 0 0 1-4 4m0-6a2 2 0 1 0 2 2a2 2 0 0 0-2-2'/%3E%3Cpath fill='currentColor' d='M27 29H11a2 2 0 0 1-2-2v-9a2 2 0 0 1 2-2h3.28l.543-1.632A2 2 0 0 1 16.721 13h4.558a2 2 0 0 1 1.898 1.368L23.72 16H27a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2m-16-2h16v-9h-4.72l-1-3h-4.56l-1 3H11Zm16-16h2v2h-2zm0-4h2v2h-2zm0-4h2v2h-2zm-4 0h2v2h-2zm-4 0h2v2h-2zm-4 0h2v2h-2zm-4 0h2v2h-2zM7 3h2v2H7zM3 3h2v2H3zm0 4h2v2H3zm0 4h2v2H3zm0 4h2v2H3zm0 4h2v2H3zm0 4h2v2H3zm0 4h2v2H3z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:edit{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M2 26h28v2H2zM25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4zm-5-5L24 7.6l-3 3L17.4 7zM6 22v-3.6l10-10l3.6 3.6l-10 10z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:erase{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M7 27h23v2H7zm20.38-16.49l-7.93-7.92a2 2 0 0 0-2.83 0l-14 14a2 2 0 0 0 0 2.83L7.13 24h9.59l10.66-10.66a2 2 0 0 0 0-2.83M15.89 22H8l-4-4l6.31-6.31l7.93 7.92Zm3.76-3.76l-7.92-7.93L18 4l8 7.93Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:error{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M2 16A14 14 0 1 0 16 2A14 14 0 0 0 2 16m23.15 7.75L8.25 6.85a12 12 0 0 1 16.9 16.9M8.24 25.16a12 12 0 0 1-1.4-16.89l16.89 16.89a12 12 0 0 1-15.49 0'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:help{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2m0 26a12 12 0 1 1 12-12a12 12 0 0 1-12 12'/%3E%3Ccircle cx='16' cy='23.5' r='1.5' fill='currentColor'/%3E%3Cpath fill='currentColor' d='M17 8h-1.5a4.49 4.49 0 0 0-4.5 4.5v.5h2v-.5a2.5 2.5 0 0 1 2.5-2.5H17a2.5 2.5 0 0 1 0 5h-2v4.5h2V17a4.5 4.5 0 0 0 0-9'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:information{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M17 22v-8h-4v2h2v6h-3v2h8v-2zM16 8a1.5 1.5 0 1 0 1.5 1.5A1.5 1.5 0 0 0 16 8'/%3E%3Cpath fill='currentColor' d='M16 30a14 14 0 1 1 14-14a14 14 0 0 1-14 14m0-26a12 12 0 1 0 12 12A12 12 0 0 0 16 4'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:list-boxes{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 8h14v2H16zm0 14h14v2H16zm-6-8H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2M4 6v6h6.001L10 6Zm6 22H4a2 2 0 0 1-2-2v-6a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2m-6-8v6h6.001L10 20Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:maximize{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M20 2v2h6.586L18 12.582L19.414 14L28 5.414V12h2V2zm-6 17.416L12.592 18L4 26.586V20H2v10h10v-2H5.414z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:minimize{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M4 18v2h6.586L2 28.582L3.414 30L12 21.414V28h2V18zM30 3.416L28.592 2L20 10.586V4h-2v10h10v-2h-6.586z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:pause{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 8v16H8V8zm0-2H8a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2m12 2v16h-4V8zm0-2h-4a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:pen{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M27.307 6.107L30 3.414L28.586 2l-2.693 2.693L24.8 3.6a1.933 1.933 0 0 0-2.8 0l-18 18V28h6.4l18-18a1.933 1.933 0 0 0 0-2.8ZM9.6 26H6v-3.6L23.4 5L27 8.6ZM9 11.586L16.586 4L18 5.414L10.414 13z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:pin{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M28.59 13.31L30 11.9L20 2l-1.31 1.42l1.18 1.18l-11.49 9.72l-1.72-1.71L5.25 14l5.66 5.68L2 28.58L3.41 30l8.91-8.91L18 26.75l1.39-1.42l-1.71-1.71l9.72-11.49ZM16.26 22.2L9.8 15.74L21.29 6L26 10.71Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:pin-filled{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M28.586 13.314L30 11.9L20 2l-1.314 1.415l1.186 1.186L8.38 14.322l-1.716-1.715L5.25 14l5.657 5.677L2 28.583L3.41 30l8.911-8.909L18 26.748l1.393-1.414l-1.716-1.716l9.724-11.49Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:play{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M7 28a1 1 0 0 1-1-1V5a1 1 0 0 1 1.482-.876l20 11a1 1 0 0 1 0 1.752l-20 11A1 1 0 0 1 7 28M8 6.69v18.62L24.925 16Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:presentation-file{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M15 10h2v8h-2zm5 4h2v4h-2zm-10-2h2v6h-2z'/%3E%3Cpath fill='currentColor' d='M25 4h-8V2h-2v2H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8v6h-4v2h10v-2h-4v-6h8a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2m0 16H7V6h18Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:radio-button{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2m0 26a12 12 0 1 1 12-12a12 12 0 0 1-12 12'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:redo{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 10h12.185l-3.587-3.586L22 5l6 6l-6 6l-1.402-1.415L24.182 12H12a6 6 0 0 0 0 12h8v2h-8a8 8 0 0 1 0-16'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:renew{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 10H6.78A11 11 0 0 1 27 16h2A13 13 0 0 0 6 7.68V4H4v8h8Zm8 12h5.22A11 11 0 0 1 5 16H3a13 13 0 0 0 23 8.32V28h2v-8h-8Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:settings-adjust{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30zm-9 4c-1.7 0-3-1.3-3-3s1.3-3 3-3s3 1.3 3 3s-1.3 3-3 3M2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2zm9-4c1.7 0 3 1.3 3 3s-1.3 3-3 3s-3-1.3-3-3s1.3-3 3-3'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:template{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M26 6v4H6V6zm0-2H6a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2M10 16v10H6V16zm0-2H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V16a2 2 0 0 0-2-2m16 2v10H16V16zm0-2H16a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V16a2 2 0 0 0-2-2'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:text-annotation-toggle{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath d='M29.537 13.76l-3.297-3.297a1.586 1.586 0 0 0-2.24 0L10 24.467V30h5.533l14.004-14a1.586 1.586 0 0 0 0-2.24zM14.704 28H12v-2.704l9.44-9.441l2.705 2.704zM25.56 17.145l-2.704-2.704l2.267-2.267l2.704 2.704z' fill='currentColor'/%3E%3Cpath d='M11 17h2v-7h3V8H8v2h3v7z' fill='currentColor'/%3E%3Cpath d='M8 20H4V4h16v4h2V4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h4z' fill='currentColor'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:time{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 30a14 14 0 1 1 14-14a14 14 0 0 1-14 14m0-26a12 12 0 1 0 12 12A12 12 0 0 0 16 4'/%3E%3Cpath fill='currentColor' d='M20.59 22L15 16.41V7h2v8.58l5 5.01z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:timer{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M15 11h2v9h-2zm-2-9h6v2h-6z'/%3E%3Cpath fill='currentColor' d='m28 9l-1.42-1.41l-2.25 2.25a10.94 10.94 0 1 0 1.18 1.65ZM16 26a9 9 0 1 1 9-9a9 9 0 0 1-9 9'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:trash-can{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 12h2v12h-2zm6 0h2v12h-2z'/%3E%3Cpath fill='currentColor' d='M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6Zm4 22V8h16v20Zm4-26h8v2h-8z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:undo{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M20 10H7.815l3.587-3.586L10 5l-6 6l6 6l1.402-1.415L7.818 12H20a6 6 0 0 1 0 12h-8v2h8a8 8 0 0 0 0-16'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:user-speaker{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M29.415 19L27.7 17.285A3 3 0 0 0 28 16a3 3 0 1 0-3 3a3 3 0 0 0 1.286-.3L28 20.414V28h-6v-3a7.01 7.01 0 0 0-7-7H9a7.01 7.01 0 0 0-7 7v5h28v-9.586A2 2 0 0 0 29.415 19M4 25a5.006 5.006 0 0 1 5-5h6a5.006 5.006 0 0 1 5 5v3H4Z'/%3E%3Cpath fill='currentColor' d='M12 4a5 5 0 1 1-5 5a5 5 0 0 1 5-5m0-2a7 7 0 1 0 7 7a7 7 0 0 0-7-7'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:zoom-in{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M18 12h-4V8h-2v4H8v2h4v4h2v-4h4z'/%3E%3Cpath fill='currentColor' d='M21.448 20A10.86 10.86 0 0 0 24 13a11 11 0 1 0-11 11a10.86 10.86 0 0 0 7-2.552L27.586 29L29 27.586ZM13 22a9 9 0 1 1 9-9a9.01 9.01 0 0 1-9 9'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:zoom-out{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M8 12h10v2H8z'/%3E%3Cpath fill='currentColor' d='M21.448 20A10.86 10.86 0 0 0 24 13a11 11 0 1 0-11 11a10.86 10.86 0 0 0 7-2.552L27.586 29L29 27.586ZM13 22a9 9 0 1 1 9-9a9.01 9.01 0 0 1-9 9'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-ph-cursor-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='currentColor'%3E%3Cpath d='M213.66 201L201 213.66a8 8 0 0 1-11.31 0l-51.31-51.31a8 8 0 0 0-13 2.46l-17.82 46.41a8 8 0 0 1-14.85-.71L40.41 50.44a8 8 0 0 1 10-10l160.1 52.24a8 8 0 0 1 .71 14.85l-46.41 17.82a8 8 0 0 0-2.46 13l51.31 51.31a8 8 0 0 1 0 11.34' opacity='.2'/%3E%3Cpath d='M168 132.69L214.08 115l.33-.13a16 16 0 0 0-1.41-29.8L52.92 32.8A15.95 15.95 0 0 0 32.8 52.92L85.07 213a15.82 15.82 0 0 0 14.41 11h.78a15.84 15.84 0 0 0 14.61-9.59l.13-.33L132.69 168L184 219.31a16 16 0 0 0 22.63 0l12.68-12.68a16 16 0 0 0 0-22.63ZM195.31 208L144 156.69a16 16 0 0 0-26 4.93c0 .11-.09.22-.13.32l-17.65 46L48 48l159.85 52.2l-45.95 17.64l-.32.13a16 16 0 0 0-4.93 26L208 195.31Z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-ph-cursor-fill{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m220.49 207.8l-12.69 12.69a12 12 0 0 1-17 0l-56.57-56.57L115 214.08l-.13.33a15.84 15.84 0 0 1-14.61 9.59h-.78a15.82 15.82 0 0 1-14.41-11L32.8 52.92A15.95 15.95 0 0 1 52.92 32.8L213 85.07a16 16 0 0 1 1.41 29.8l-.33.13l-50.16 19.27l56.57 56.56a12 12 0 0 1 0 16.97'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-ph\:arrow-down-bold{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m208.49 152.49l-72 72a12 12 0 0 1-17 0l-72-72a12 12 0 0 1 17-17L116 187V40a12 12 0 0 1 24 0v147l51.51-51.52a12 12 0 0 1 17 17Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-ph\:arrow-up-bold{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M208.49 120.49a12 12 0 0 1-17 0L140 69v147a12 12 0 0 1-24 0V69l-51.51 51.49a12 12 0 0 1-17-17l72-72a12 12 0 0 1 17 0l72 72a12 12 0 0 1 0 17'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-svg-spinners-90-ring-with-bg{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z' opacity='.25'/%3E%3Cpath fill='currentColor' d='M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z'%3E%3CanimateTransform attributeName='transform' dur='0.75s' repeatCount='indefinite' type='rotate' values='0 12 12;360 12 12'/%3E%3C/path%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.pointer-events-none,[pointer-events-none=""]{pointer-events:none}.visible{visibility:visible}.absolute,[absolute=""]{position:absolute}.fixed,[fixed=""]{position:fixed}.relative,[relative=""]{position:relative}.inset-0,[inset-0=""]{inset:0}.inset-y-0,[inset-y-0=""]{top:0;bottom:0}.-top-15px{top:-15px}.-top-20{top:-5rem}.bottom-\[-6px\]{bottom:-6px}.bottom-0,[bottom-0=""]{bottom:0}.bottom-1,[bottom-1=""]{bottom:.25rem}.bottom-10{bottom:2.5rem}.bottom-5{bottom:1.25rem}.left-0,[left-0=""]{left:0}.left-1{left:.25rem}.left-1\/2{left:50%}.left-110\%{left:110%}.right--2,[right--2=""]{right:-.5rem}.right-\[-6px\]{right:-6px}.right-0,[right-0=""]{right:0}.right-0\.5,[right-0\.5=""]{right:.125rem}.right-1,[right-1=""]{right:.25rem}.right-18{right:4.5rem}.right-4{right:1rem}.right-5,[right-5=""]{right:1.25rem}.top-\[-6px\]{top:-6px}.top-0,[top-0=""]{top:0}.top-0\.5,[top-0\.5=""]{top:.125rem}.top-1\/2,.top-50\%{top:50%}.top-10{top:2.5rem}.top-4{top:1rem}.top-5{top:1.25rem}.-z-1{z-index:-1}.z-1,[z-1=""]{z-index:1}.z-10,[z-10=""]{z-index:10}.z-2{z-index:2}.grid{display:grid}.inline-grid{display:inline-grid}.grid-cols-\[0\.9fr_1\.1fr\]{grid-template-columns:.9fr 1.1fr}.grid-cols-\[1\.3fr_1fr\]{grid-template-columns:1.3fr 1fr}.grid-cols-\[1\.7fr_1fr\]{grid-template-columns:1.7fr 1fr}.grid-cols-\[1fr_1\.05fr\]{grid-template-columns:1fr 1.05fr}.grid-cols-\[1fr_12rem\]{grid-template-columns:1fr 12rem}.grid-cols-\[1fr_1fr\]{grid-template-columns:1fr 1fr}.grid-cols-\[1fr_max-content\]{grid-template-columns:1fr max-content}.grid-cols-\[35px_1fr\]{grid-template-columns:35px 1fr}.grid-rows-\[1fr_max-content\]{grid-template-rows:1fr max-content}.grid-rows-\[1fr_min-content\]{grid-template-rows:1fr min-content}.grid-rows-\[auto_max-content\]{grid-template-rows:auto max-content}.grid-rows-\[max-content_1fr\]{grid-template-rows:max-content 1fr}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.m--1,[m--1=""]{margin:-.25rem}.m-1{margin:.25rem}.m-auto,.ma{margin:auto}.m0,[m0=""]{margin:0}.children\:my-auto>*,.my-auto,.mya{margin-top:auto;margin-bottom:auto}.mx--1\.2{margin-left:-.3rem;margin-right:-.3rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1,.my1{margin-top:.25rem;margin-bottom:.25rem}.my2{margin-top:.5rem;margin-bottom:.5rem}.my5{margin-top:1.25rem;margin-bottom:1.25rem}.-mt-0\.5{margin-top:-.125rem}.mb-4{margin-bottom:1rem}.mb2{margin-bottom:.5rem}.ml-1{margin-left:.25rem}.ml-auto{margin-left:auto}.mr--14px{margin-right:-14px}.mr--4{margin-right:-1rem}.mr-2{margin-right:.5rem}.mr0{margin-right:0}.mr1{margin-right:.25rem}.ms{margin-inline-start:1rem}.mt-1,.mt1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-px{margin-top:1px}.block{display:block}.inline-block,[inline-block=""]{display:inline-block}.hidden,.group:hover .group-hover\:hidden,.group:not(:hover) .group-not-hover\:hidden{display:none}.aspect-ratio-initial{aspect-ratio:initial}[size~="110"]{width:27.5rem;height:27.5rem}[size~="150"]{width:37.5rem;height:37.5rem}[size~="190"]{width:47.5rem;height:47.5rem}[size~="52"]{width:13rem;height:13rem}[size~="64"]{width:16rem;height:16rem}.h-\[22px\],.h-22px,[h-22px=""]{height:22px}.h-\[40px\]{height:40px}.h-\[calc\(var\(--vh\,1vh\)\*100\)\]{height:calc(var(--vh,1vh) * 100)}.h-0\.7{height:.175rem}.h-1\.5,[h-1\.5=""]{height:.375rem}.h-1px{height:1px}.h-2,[h-2=""]{height:.5rem}.h-3\.5{height:.875rem}.h-40{height:10rem}.h-4px{height:4px}.h-5,.h5,[h-5=""]{height:1.25rem}.h-6{height:1.5rem}.h-8,[h-8=""]{height:2rem}.h-full,[h-full=""]{height:100%}.h-max{height:max-content}.h-screen{height:100vh}.h1,[h1=""]{height:.25rem}.h3{height:.75rem}.max-h-full{max-height:100%}.max-h-full\!{max-height:100%!important}.max-w-\[calc\(100\%-3rem\)\]{max-width:calc(100% - 3rem)}.max-w-150{max-width:37.5rem}.max-w-250{max-width:62.5rem}.max-w-90,[max-w-90=""]{max-width:22.5rem}.max-w-full{max-width:100%}.max-w-full\!{max-width:100%!important}.max-w-xs{max-width:20rem}.min-h-50{min-height:12.5rem}.min-h-full\!{min-height:100%!important}.min-w-\[70\%\]{min-width:70%}.min-w-0{min-width:0}.min-w-16{min-width:4rem}.min-w-30,[min-w-30=""]{min-width:7.5rem}.min-w-40{min-width:10rem}.min-w-90,[min-w-90=""]{min-width:22.5rem}.min-w-full\!{min-width:100%!important}.w-\[40px\]{width:40px}.w-\[calc\(100\%-0\.25rem\)\]{width:calc(100% - .25rem)}.w-0{width:0}.w-0\.5,[w-0\.5=""]{width:.125rem}.w-1\.5,[w-1\.5=""]{width:.375rem}.w-13{width:3.25rem}.w-1px,[w-1px=""]{width:1px}.w-2,[w-2=""]{width:.5rem}.w-20,[w-20=""]{width:5rem}.w-200{width:50rem}.w-22px{width:22px}.w-250{width:62.5rem}.w-3\.5{width:.875rem}.w-30,[w-30=""]{width:7.5rem}.w-5,[w-5=""]{width:1.25rem}.w-6{width:1.5rem}.w-60,[w-60=""]{width:15rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-88{width:22rem}.w-9{width:2.25rem}.w-90,[w-90=""]{width:22.5rem}.w-full,[w-full=""]{width:100%}.w-full\!{width:100%!important}.w-screen{width:100vw}.w\[best\]{width:best}.w1,[w1=""]{width:.25rem}.w3{width:.75rem}.flex,[flex=""],[flex~=\~]{display:flex}.inline-flex{display:inline-flex}.flex-1{flex:1}.flex-auto,[flex-auto=""]{flex:auto}.flex-none{flex:none}.flex-shrink,.shrink{flex-shrink:1}.flex-grow,.grow{flex-grow:1}[flex~=row]{flex-direction:row}.flex-col,[flex~=col]{flex-direction:column}.flex-wrap{flex-wrap:wrap}.flex-wrap-reverse{flex-wrap:wrap-reverse}.table,[table=""]{display:table}.table-cell,[table-cell=""]{display:table-cell}.table-row,[table-row=""]{display:table-row}.border-collapse,[border-collapse=""]{border-collapse:collapse}.-translate-y-1\/2,.translate-y--50\%{--un-translate-y:-50%;transform:translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotateZ(var(--un-rotate-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.-rotate-45{--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-rotate:-45deg;transform:translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotateZ(var(--un-rotate-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.scale-102{--un-scale-x:1.02;--un-scale-y:1.02;transform:translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotateZ(var(--un-rotate-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.scale-85{--un-scale-x:.85;--un-scale-y:.85;transform:translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotateZ(var(--un-rotate-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.scale-x-80{--un-scale-x:.8;transform:translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotateZ(var(--un-rotate-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.transform{transform:translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotateZ(var(--un-rotate-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.animate-fade-in{animation:1s linear fade-in}.animate-duration-100{animation-duration:.1s}.cursor-default{cursor:default}.cursor-pointer,[cursor-pointer=""]{cursor:pointer}.touch-none,[touch-none=""]{touch-action:none}.important\:\[\&_\*\]\:select-none *{-webkit-user-select:none!important;user-select:none!important}.select-none,[select-none=""]{-webkit-user-select:none;user-select:none}.resize{resize:both}.resize-none{resize:none}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center,[flex~=items-center],[items-center=""]{align-items:center}.self-center{align-self:center}.justify-center,[flex~=justify-center],[justify-center=""]{justify-content:center}.justify-between{justify-content:space-between}.justify-items-start{justify-items:start}.gap-0{gap:0}.gap-0\.2{gap:.05rem}.gap-0\.5{gap:.125rem}.gap-1,[flex~=gap-1],[gap-1=""]{gap:.25rem}.gap-2,[flex~=gap-2]{gap:.5rem}.gap-3{gap:.75rem}.gap-4,[flex~=gap-4]{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-px{gap:1px}.gap-x-8{column-gap:2rem}.gap-y-2{row-gap:.5rem}.gap-y-4{row-gap:1rem}.of-auto,.overflow-auto{overflow:auto}.of-hidden,.overflow-hidden,[of-hidden=""]{overflow:hidden}.of-x-visible{overflow-x:visible}.of-y-auto,.overflow-y-auto{overflow-y:auto}.whitespace-nowrap,.ws-nowrap,[ws-nowrap=""]{white-space:nowrap}.b,.border,.dark .dark\:border,.dark [dark\:border~=\~],[b=""],[border=""],[border~=\~]{border-width:1px}.border-2,[b~="2"]{border-width:2px}[b~="100%"]{border-width:100%}[b~="16"]{border-width:16px}[b~="50%"]{border-width:50%}[b~="64"]{border-width:64px}[border~="0"]{border-width:0}.border-x,[b~=x]{border-left-width:1px;border-right-width:1px}[b~=y],[border~=y]{border-top-width:1px;border-bottom-width:1px}.border-b,[b~=b],[border~=b]{border-bottom-width:1px}.border-b-0{border-bottom-width:0}.border-l{border-left-width:1px}.border-r,[border~=r]{border-right-width:1px}.border-r-2{border-right-width:2px}.border-t,[border-t=""],[border~=t]{border-top-width:1px}.b-dark{--un-border-opacity:1;border-color:rgb(34 34 34/var(--un-border-opacity))}.border-gray,.dark .dark\:b-gray-400,[border-gray=""]{--un-border-opacity:1;border-color:rgb(156 163 175/var(--un-border-opacity))}.border-gray-300\/50{border-color:#d1d5db80}.border-transparent,[border~=transparent]{border-color:#0000}.border-white{--un-border-opacity:1;border-color:rgb(255 255 255/var(--un-border-opacity))}.dark .dark\:border-gray-500,.dark [dark\:border-gray-500=""]{--un-border-opacity:1;border-color:rgb(107 114 128/var(--un-border-opacity))}[b-dark~="1"]{--un-border-opacity:1;border-color:rgb(60 60 60/var(--un-border-opacity))}.dark [b~=dark\:b-gray-400]{--un-border-opacity:1;--un-border-bottom-opacity:var(--un-border-opacity);border-bottom-color:rgb(156 163 175/var(--un-border-bottom-opacity))}[b~=b-dark]{--un-border-opacity:1;--un-border-bottom-opacity:var(--un-border-opacity);border-bottom-color:rgb(34 34 34/var(--un-border-bottom-opacity))}.rounded,[border~=rounded],[rounded=""]{border-radius:.25rem}.rounded-1\/2{border-radius:50%}.rounded-full,[rounded-full=""]{border-radius:9999px}.rounded-md,[border~=rounded-md]{border-radius:.375rem}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-lb{border-bottom-left-radius:.25rem}.rounded-tl{border-top-left-radius:.25rem}.rounded-tr{border-top-right-radius:.25rem}.rounded-tr-0{border-top-right-radius:0}.\!border-none{border-style:none!important}.b-dashed{border-style:dashed}[b~=b-dashed]{border-bottom-style:dashed}.bg-blue{--un-bg-opacity:1;background-color:rgb(96 165 250/var(--un-bg-opacity))}.bg-current{background-color:currentColor}.bg-cyan\:10,[bg-cyan\:10=""]{background-color:#22d3ee1a}.bg-gray,[bg-gray=""]{--un-bg-opacity:1;background-color:rgb(156 163 175/var(--un-bg-opacity))}.bg-gray\:10,.bg-gray\/10{background-color:#9ca3af1a}.bg-gray\:4,[bg-gray\:4=""]{background-color:#9ca3af0a}.bg-gray\:5,.bg-gray\/5,[bg-gray\:5=""]{background-color:#9ca3af0d}.bg-gray\/20{background-color:#9ca3af33}.bg-green{--un-bg-opacity:1;background-color:rgb(74 222 128/var(--un-bg-opacity))}.bg-red{--un-bg-opacity:1;background-color:rgb(248 113 113/var(--un-bg-opacity))}.bg-transparent{background-color:#0000}.bg-yellow{--un-bg-opacity:1;background-color:rgb(250 204 21/var(--un-bg-opacity))}.dark .dark\:bg-gray-800,.dark [dark\:bg-gray-800=""]{--un-bg-opacity:1;background-color:rgb(31 41 55/var(--un-bg-opacity))}[bg~=black]{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.hover\:bg-gray-400:hover{--un-bg-opacity:1;background-color:rgb(156 163 175/var(--un-bg-opacity))}.hover\:bg-gray\/20:hover{background-color:#9ca3af33}[bg-transparent~=placeholder\:]::placeholder{background-color:#0000}.\!bg-opacity-75{--un-bg-opacity:.75!important}.bg-opacity-30,[bg-opacity-30=""]{--un-bg-opacity:.3}[bg~=opacity-80]{--un-bg-opacity:.8}.hover\:bg-opacity-10:hover{--un-bg-opacity:.1}[stroke-width~="1"]{stroke-width:1px}[stroke-width~="2"]{stroke-width:2px}[stroke-width~="3"]{stroke-width:3px}.dark .dark\:stroke-black{--un-stroke-opacity:1;stroke:rgb(0 0 0/var(--un-stroke-opacity))}.stroke-white{--un-stroke-opacity:1;stroke:rgb(255 255 255/var(--un-stroke-opacity))}.object-cover{object-fit:cover}.object-contain{object-fit:contain}.\!p-4{padding:1rem!important}.p-1,.p1,[p1=""]{padding:.25rem}.p-16{padding:4rem}.p-2,.p2,[p2=""]{padding:.5rem}.p-6px{padding:6px}.p0\.5,[p0\.5=""]{padding:.125rem}.p3{padding:.75rem}.p4{padding:1rem}.p5{padding:1.25rem}.px,.px-4,.px4,[p~=x-4],[px=""],[px4=""]{padding-left:1rem;padding-right:1rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2,.px2,[px2=""]{padding-left:.5rem;padding-right:.5rem}.px-3,.px3,[px3=""]{padding-left:.75rem;padding-right:.75rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px1{padding-left:.25rem;padding-right:.25rem}.py-1,.py1{padding-top:.25rem;padding-bottom:.25rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-2,.py2,[p~=y-2],[py-2=""],[py2=""]{padding-top:.5rem;padding-bottom:.5rem}.py-20{padding-top:5rem;padding-bottom:5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py0\.5{padding-top:.125rem;padding-bottom:.125rem}.py1\.5{padding-top:.375rem;padding-bottom:.375rem}.pb2{padding-bottom:.5rem}.pe{padding-inline-end:1rem}.pl-0{padding-left:0}.pl-1,.pl1{padding-left:.25rem}.pl-4,[pl-4=""]{padding-left:1rem}.pl2,[pl2=""]{padding-left:.5rem}.pr-3,[pr-3=""]{padding-right:.75rem}.pr-4,[pr-4=""]{padding-right:1rem}.pt-\.5{padding-top:.125rem}.pt-15\%{padding-top:15%}.pt2{padding-top:.5rem}.text-center{text-align:center}.text-right,[text-right=""]{text-align:right}.text-nowrap{text-wrap:nowrap}.align-top,[align-top=""]{vertical-align:top}.vertical-middle,[vertical-middle=""]{vertical-align:middle}.text-1\.2em{font-size:1.2em}.text-11px{font-size:11px}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3em{font-size:3em}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-9xl,[text-9xl=""]{font-size:8rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm,[text-sm=""]{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs,[text-xs=""]{font-size:.75rem;line-height:1rem}.\!text-current{color:currentColor!important}.dark .dark\:text-blue3{--un-text-opacity:1;color:rgb(147 197 253/var(--un-text-opacity))}.dark .dark\:text-green,.text-green{--un-text-opacity:1;color:rgb(74 222 128/var(--un-text-opacity))}.dark .dark\:text-green3{--un-text-opacity:1;color:rgb(134 239 172/var(--un-text-opacity))}.dark .dark\:text-red-500{--un-text-opacity:1;color:rgb(239 68 68/var(--un-text-opacity))}.dark .dark\:text-red3{--un-text-opacity:1;color:rgb(252 165 165/var(--un-text-opacity))}.dark .dark\:text-yellow3{--un-text-opacity:1;color:rgb(253 224 71/var(--un-text-opacity))}.text-\$slidev-controls-foreground{color:var(--slidev-controls-foreground)}.text-black{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.text-blue{--un-text-opacity:1;color:rgb(96 165 250/var(--un-text-opacity))}.text-blue6{--un-text-opacity:1;color:rgb(37 99 235/var(--un-text-opacity))}.text-cyan{--un-text-opacity:1;color:rgb(34 211 238/var(--un-text-opacity))}.text-cyan\:75,[text-cyan\:75=""]{color:#22d3eebf}.text-gray,.text-gray-400{--un-text-opacity:1;color:rgb(156 163 175/var(--un-text-opacity))}.text-gray-500{--un-text-opacity:1;color:rgb(107 114 128/var(--un-text-opacity))}.text-green-500{--un-text-opacity:1;color:rgb(34 197 94/var(--un-text-opacity))}.text-green6{--un-text-opacity:1;color:rgb(22 163 74/var(--un-text-opacity))}.text-indigo{--un-text-opacity:1;color:rgb(129 140 248/var(--un-text-opacity))}.text-lime{--un-text-opacity:1;color:rgb(163 230 53/var(--un-text-opacity))}.text-orange{--un-text-opacity:1;color:rgb(251 146 60/var(--un-text-opacity))}.text-pink{--un-text-opacity:1;color:rgb(244 114 182/var(--un-text-opacity))}.text-purple{--un-text-opacity:1;color:rgb(192 132 252/var(--un-text-opacity))}.dark .dark\:color-red-400,.text-red,.text-red-400{--un-text-opacity:1;color:rgb(248 113 113/var(--un-text-opacity))}.text-red-700{--un-text-opacity:1;color:rgb(185 28 28/var(--un-text-opacity))}.color-red-600,.text-red6{--un-text-opacity:1;color:rgb(220 38 38/var(--un-text-opacity))}.text-teal{--un-text-opacity:1;color:rgb(45 212 191/var(--un-text-opacity))}.text-white{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}.text-yellow{--un-text-opacity:1;color:rgb(250 204 21/var(--un-text-opacity))}.text-yellow6{--un-text-opacity:1;color:rgb(202 138 4/var(--un-text-opacity))}.important-text-op-50,.text-opacity-50\!{--un-text-opacity:.5!important}.font-bold,[font-bold=""]{font-weight:700}.font-light{font-weight:300}.leading-1\.6em{line-height:1.6em}.leading-1em{line-height:1em}.leading-tight{line-height:1.25}.font-mono,[font-mono=""]{font-family:JetBrains Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)}.line-through{text-decoration-line:line-through}.underline,.hover\:underline:hover{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.tab{tab-size:4}.\!opacity-0{opacity:0!important}.\!opacity-100{opacity:1!important}.op-60,.op60{opacity:.6}.op-80,.op80,.opacity-80{opacity:.8}.op0,.opacity-0{opacity:0}.op100,.group:hover .group-hover\:op100{opacity:1}.op15{opacity:.15}.op20,.group:hover .group-hover\:opacity-20{opacity:.2}.op25,.opacity-25,[op25=""]{opacity:.25}.op30{opacity:.3}.op35{opacity:.35}.op40,.opacity-40,[op40=""]{opacity:.4}.op50,.opacity-50,[op50=""]{opacity:.5}.op75,[op75=""]{opacity:.75}.opacity-10,[opacity-10=""]{opacity:.1}.opacity-5{opacity:.05}.focus-within\:opacity-100:focus-within{opacity:1}.hover\:\!opacity-100:hover{opacity:1!important}.hover\:op-100:hover,.hover\:op100:hover{opacity:1}.hover\:op90:hover{opacity:.9}.hover\:opacity-100:hover{opacity:1}.hover\:opacity-90:hover{opacity:.9}[hover~=op100]:hover,.focus-visible\:opacity-100:focus-visible{opacity:1}.placeholder\:op25::placeholder{opacity:.25}.shadow,[shadow~=\~]{--un-shadow:var(--un-shadow-inset) 0 1px 3px 0 var(--un-shadow-color,#0000001a),var(--un-shadow-inset) 0 1px 2px -1px var(--un-shadow-color,#0000001a);box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)}.shadow-xl{--un-shadow:var(--un-shadow-inset) 0 20px 25px -5px var(--un-shadow-color,#0000001a),var(--un-shadow-inset) 0 8px 10px -6px var(--un-shadow-color,#0000001a);box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)}.outline,[outline=""]{outline-style:solid}.outline-none,[outline-none=""]{outline-offset:2px;outline:2px solid #0000}.\!backdrop-blur-0px{--un-backdrop-blur:blur(0px)!important;-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)!important;backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)!important}.backdrop-blur{--un-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)}.backdrop-blur-5px{--un-backdrop-blur:blur(5px);-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)}.filter{filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}.backdrop-filter{-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter,backdrop-filter;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-property:opacity;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}[transition-all~="0"]{transition-property:all;transition-duration:0s;transition-timing-function:cubic-bezier(.4,0,.2,1)}[transition-all~="4"]{transition-property:all;transition-duration:4ms;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-400{transition-duration:.4s}.ease{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.view-transition-name{view-transition-name:name}@media (width<=767.9px){.lt-md\:hidden{display:none}.lt-md\:flex-col{flex-direction:column}}@media (width>=768px){.md\:p-10px{padding:10px}}@media (width>=1024px){.lg\:m-2{margin:.5rem}.lg\:p-2{padding:.5rem}.lg\:p-4{padding:1rem}} diff --git a/lecture-06/class/assets/interactive-BCz0jAef.js b/lecture-06/class/assets/interactive-BCz0jAef.js new file mode 100644 index 0000000000000000000000000000000000000000..cb3bfc59b0b65668c82e951ea4d115258034e938 --- /dev/null +++ b/lecture-06/class/assets/interactive-BCz0jAef.js @@ -0,0 +1 @@ +import{H as e,S as t,_ as n,b as r,bt as i,vt as a,w as o,xt as s,y as c,z as l}from"./modules/shiki-BFOesOFp.js";import{t as u}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as d}from"./slidev/context-DrkI8qiD.js";import{t as f}from"./DeckFooter-B7ogzN5B.js";var p={class:`slidev-layout dl-interactive`},m={key:0,class:`dl-interactive__title`},h={class:`dl-interactive__stage`},g=u(o({__name:`interactive`,props:{heading:{},asideWidth:{},asideLeft:{type:Boolean}},setup(o){let{$slidev:u,$nav:g,$clicksContext:_,$clicks:v,$page:y,$renderContext:b,$frontmatter:x}=d(),S=o;return(o,u)=>{let d=f;return l(),r(`div`,p,[S.heading?(l(),r(`h1`,m,s(S.heading),1)):c(`v-if`,!0),n(`div`,{class:a([`dl-interactive__grid`,{"is-aside-left":S.asideLeft}])},[n(`div`,h,[e(o.$slots,`default`,{},void 0,!0)]),n(`div`,{class:`dl-interactive__aside`,style:i({flexBasis:S.asideWidth??`17rem`})},[e(o.$slots,`aside`,{},void 0,!0)],4)],2),t(d)])}}}),[[`__scopeId`,`data-v-0c449bbd`]]);export{g as t}; \ No newline at end of file diff --git a/lecture-06/class/assets/interactive-D_LX0oud.css b/lecture-06/class/assets/interactive-D_LX0oud.css new file mode 100644 index 0000000000000000000000000000000000000000..a4eed7fee12ae099d6a367e7a22fac5070cd9430 --- /dev/null +++ b/lecture-06/class/assets/interactive-D_LX0oud.css @@ -0,0 +1 @@ +.dl-interactive[data-v-0c449bbd]{flex-direction:column;display:flex}.dl-interactive__title[data-v-0c449bbd]{margin-bottom:.7rem}.dl-interactive__grid[data-v-0c449bbd]{flex:auto;align-items:stretch;gap:1.6rem;min-height:0;display:flex}.dl-interactive__grid.is-aside-left[data-v-0c449bbd]{flex-direction:row-reverse}.dl-interactive__stage[data-v-0c449bbd]{flex:auto;justify-content:center;align-items:center;min-width:0;display:flex}.dl-interactive__aside[data-v-0c449bbd]{font-size:var(--dl-fs-secondary);flex-grow:0;flex-shrink:0;overflow-y:auto}.dl-interactive__aside[data-v-0c449bbd]:empty{display:none} diff --git a/lecture-06/class/assets/logo-BYkHSa_O.png b/lecture-06/class/assets/logo-BYkHSa_O.png new file mode 100644 index 0000000000000000000000000000000000000000..f5b8660126125a3c1b259857293439f9959a3688 Binary files /dev/null and b/lecture-06/class/assets/logo-BYkHSa_O.png differ diff --git a/lecture-06/class/assets/md-3TDQ06AG.js b/lecture-06/class/assets/md-3TDQ06AG.js new file mode 100644 index 0000000000000000000000000000000000000000..59de1139f31e3f2b22ff49b8dfce0570ab38f75b --- /dev/null +++ b/lecture-06/class/assets/md-3TDQ06AG.js @@ -0,0 +1 @@ +import{$ as e,E as t,Q as n,W as r,_ as i,_t as a,b as o,v as s,x as c,yt as l,z as u}from"./modules/shiki-BFOesOFp.js";import{n as d,t as f}from"./slidev/context-DrkI8qiD.js";import{t as p}from"./default-Dm4DVug5.js";var m={class:`grid grid-cols-[1.3fr_1fr] gap-8 mt-2 items-start`},h={viewBox:`0 0 420 184`,class:`dl-diagram`,style:{"max-height":`14rem`},role:`img`,"aria-label":`The three words of the river bank, each with a bar chart of its four embedding numbers: the is 1 0 0 0, river is 0 2 0 1, bank is 0 0 0 2`},g={class:`dl-tight`},_={class:`mt-3 dl-callout`},v={class:`mt-3`},y={class:`mt-3 dl-secondary`},b={__name:`class.md__slidev_11`,setup(b){let{$slidev:x,$nav:S,$clicksContext:C,$clicks:w,$page:T,$renderContext:E,$frontmatter:D}=d();return C.setup(),(d,b)=>{let x=r(`click`);return u(),s(p,l(t(a(f)(a(D),10))),{default:n(()=>[b[27]||=i(`h1`,null,`The sentence we will use all lecture`,-1),i(`div`,m,[i(`div`,null,[(u(),o(`svg`,h,[b[2]||=i(`rect`,{class:`dl-dg-box`,x:`10`,y:`8`,width:`112`,height:`28`,rx:`4`},null,-1),b[3]||=i(`rect`,{class:`dl-dg-box`,x:`150`,y:`8`,width:`112`,height:`28`,rx:`4`},null,-1),b[4]||=i(`rect`,{class:`dl-dg-box is-accent`,x:`290`,y:`8`,width:`112`,height:`28`,rx:`4`},null,-1),b[5]||=i(`text`,{class:`dl-dg-lab is-sm`,x:`66`,y:`27`,"text-anchor":`middle`,style:{"font-style":`italic`}},`the`,-1),b[6]||=i(`text`,{class:`dl-dg-lab is-sm`,x:`206`,y:`27`,"text-anchor":`middle`,style:{"font-style":`italic`}},`river`,-1),b[7]||=i(`text`,{class:`dl-dg-lab is-sm`,x:`346`,y:`27`,"text-anchor":`middle`,style:{"font-style":`italic`}},`bank`,-1),b[8]||=i(`line`,{class:`dl-dg-split`,x1:`10`,y1:`150`,x2:`122`,y2:`150`},null,-1),b[9]||=i(`line`,{class:`dl-dg-split`,x1:`150`,y1:`150`,x2:`262`,y2:`150`},null,-1),b[10]||=i(`line`,{class:`dl-dg-split`,x1:`290`,y1:`150`,x2:`402`,y2:`150`},null,-1),b[11]||=i(`text`,{class:`dl-dg-small`,x:`24`,y:`166`,"text-anchor":`middle`},`det`,-1),b[12]||=i(`text`,{class:`dl-dg-small`,x:`52`,y:`180`,"text-anchor":`middle`},`water`,-1),b[13]||=i(`text`,{class:`dl-dg-small`,x:`80`,y:`166`,"text-anchor":`middle`},`money`,-1),b[14]||=i(`text`,{class:`dl-dg-small`,x:`108`,y:`180`,"text-anchor":`middle`},`thing`,-1),b[15]||=i(`text`,{class:`dl-dg-small`,x:`164`,y:`166`,"text-anchor":`middle`},`det`,-1),b[16]||=i(`text`,{class:`dl-dg-small`,x:`192`,y:`180`,"text-anchor":`middle`},`water`,-1),b[17]||=i(`text`,{class:`dl-dg-small`,x:`220`,y:`166`,"text-anchor":`middle`},`money`,-1),b[18]||=i(`text`,{class:`dl-dg-small`,x:`248`,y:`180`,"text-anchor":`middle`},`thing`,-1),b[19]||=i(`text`,{class:`dl-dg-small`,x:`304`,y:`166`,"text-anchor":`middle`},`det`,-1),b[20]||=i(`text`,{class:`dl-dg-small`,x:`332`,y:`180`,"text-anchor":`middle`},`water`,-1),b[21]||=i(`text`,{class:`dl-dg-small`,x:`360`,y:`166`,"text-anchor":`middle`},`money`,-1),b[22]||=i(`text`,{class:`dl-dg-small`,x:`388`,y:`180`,"text-anchor":`middle`},`thing`,-1),e((u(),o(`g`,null,[...b[0]||=[i(`rect`,{class:`dl-dg-bar`,x:`14`,y:`110`,width:`20`,height:`40`},null,-1),i(`text`,{class:`dl-dg-small`,x:`24`,y:`104`,"text-anchor":`middle`},`1`,-1),i(`rect`,{class:`dl-dg-bar`,x:`182`,y:`70`,width:`20`,height:`80`},null,-1),i(`text`,{class:`dl-dg-small`,x:`192`,y:`64`,"text-anchor":`middle`},`2`,-1),i(`rect`,{class:`dl-dg-bar`,x:`238`,y:`110`,width:`20`,height:`40`},null,-1),i(`text`,{class:`dl-dg-small`,x:`248`,y:`104`,"text-anchor":`middle`},`1`,-1)]])),[[x]]),e((u(),o(`g`,null,[...b[1]||=[i(`rect`,{class:`dl-dg-bar is-q`,x:`378`,y:`70`,width:`20`,height:`80`},null,-1),i(`text`,{class:`dl-dg-small`,x:`388`,y:`64`,"text-anchor":`middle`},`2`,-1)]])),[[x]])]))]),i(`div`,g,[b[25]||=i(`p`,null,[c(`Four embedding numbers per word. We pretend they mean `),i(`strong`,null,`det`),c(` (a word like `),i(`em`,null,`the`),c(`), `),i(`strong`,null,`water`),c(`, `),i(`strong`,null,`money`),c(` and `),i(`strong`,null,`thing`),c(`.`)],-1),e((u(),o(`div`,_,[...b[23]||=[i(`p`,null,[i(`em`,null,`bank`),c(` is a thing, and `),i(`strong`,null,`nothing else`),c(`. Nothing says riverbank or high-street bank.`)],-1)]])),[[x]]),e((u(),o(`div`,v,[...b[24]||=[i(`p`,null,`So the sense has to come from a neighbour. Attention is how it gets there.`,-1)]])),[[x]])])]),e((u(),o(`div`,y,[...b[26]||=[i(`p`,null,`Hand-picked numbers, so you can check the arithmetic. Real coordinates have no names.`,-1)]])),[[x]])]),_:1},16)}}};export{b as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-9effmiXg.js b/lecture-06/class/assets/md-9effmiXg.js new file mode 100644 index 0000000000000000000000000000000000000000..1f878a21bcba3912b2ac0ba1f27fb0edb9bc7d43 --- /dev/null +++ b/lecture-06/class/assets/md-9effmiXg.js @@ -0,0 +1 @@ +import{$ as e,E as t,Q as n,S as r,W as i,_ as a,_t as o,b as s,v as c,x as l,yt as u,z as d}from"./modules/shiki-BFOesOFp.js";import{n as f,t as p}from"./slidev/context-DrkI8qiD.js";import{t as m}from"./slidev/VClicks-BJ1JuBhK.js";import{t as h}from"./interactive-BCz0jAef.js";import{t as g}from"./PositionalEncoding-q3Ic_HFH.js";var _={class:`mt-2 dl-callout`},v={__name:`class.md__slidev_21`,setup(v){let{$slidev:y,$nav:b,$clicksContext:x,$clicks:S,$page:C,$renderContext:w,$frontmatter:T}=f();return x.setup(),(f,v)=>{let y=g,b=m,x=i(`click`);return d(),c(h,u(t(o(p)(o(T),20))),{aside:n(t=>[v[2]||=a(`p`,null,[l(`One fixed vector per position, `),a(`strong`,null,`added`),l(` to the embedding before block one.`)],-1),r(b,null,{default:n(()=>[...v[0]||=[a(`ul`,null,[a(`li`,null,`Left dimensions flip fast; right ones barely move`),a(`li`,null,[l(`So one vector carries `),a(`em`,null,`which word`),l(` and `),a(`em`,null,`which end`),l(` at once`)]),a(`li`,null,[l(`Sines and cosines. `),a(`strong`,null,`Nothing learned`),l(`, no maximum length`)])],-1)]]),_:1}),e((d(),s(`div`,_,[...v[1]||=[a(`p`,null,`Added, not concatenated — the model never gets wider.`,-1)]])),[[x]])]),default:n(()=>[r(y,{mode:`sinusoid`,"d-model":16,positions:12})]),_:1},16)}}};export{v as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-B8UJ90ak.js b/lecture-06/class/assets/md-B8UJ90ak.js new file mode 100644 index 0000000000000000000000000000000000000000..86f94d2b15943ee5d8e84bf501153d298c12fa14 --- /dev/null +++ b/lecture-06/class/assets/md-B8UJ90ak.js @@ -0,0 +1 @@ +import{$ as e,E as t,Q as n,S as r,W as i,_ as a,_t as o,b as s,v as c,x as l,yt as u,z as d}from"./modules/shiki-BFOesOFp.js";import{n as f,t as p}from"./slidev/context-DrkI8qiD.js";import{t as m}from"./slidev/VClicks-BJ1JuBhK.js";import{t as h}from"./interactive-BCz0jAef.js";import{t as g}from"./AttentionMatrix-CVQjcu-J.js";var _={class:`mt-2 dl-callout`},v={__name:`class.md__slidev_15`,setup(v){let{$slidev:y,$nav:b,$clicksContext:x,$clicks:S,$page:C,$renderContext:w,$frontmatter:T}=f();return x.setup(),(f,v)=>{let y=g,b=m,x=i(`click`);return d(),c(h,u(t(o(p)(o(T),14))),{aside:n(t=>[v[2]||=a(`p`,null,[l(`All three rows. Rows `),a(`strong`,null,`ask`),l(`, columns `),a(`strong`,null,`are read`),l(`.`)],-1),r(b,null,{default:n(()=>[...v[0]||=[a(`ul`,null,[a(`li`,null,[a(`em`,null,`the`),l(` asks nothing, so its row is flat: 0.33 each`)]),a(`li`,null,[a(`em`,null,`bank`),l(`’s row is the one we just derived`)]),a(`li`,null,[l(`Every row sums to `),a(`strong`,null,`1`)])],-1)]]),_:1}),e((d(),s(`div`,_,[...v[1]||=[a(`p`,null,[l(`No cell depends on another, so all nine are computed `),a(`strong`,null,`at the same time`),l(`. The wall comes down.`)],-1)]])),[[x]])]),default:n(()=>[r(y,{maskable:!1,switchable:``})]),_:1},16)}}};export{v as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-BCalMv_E2.js b/lecture-06/class/assets/md-BCalMv_E2.js new file mode 100644 index 0000000000000000000000000000000000000000..e617381b5d90232dc281c15009daacac2035b589 --- /dev/null +++ b/lecture-06/class/assets/md-BCalMv_E2.js @@ -0,0 +1 @@ +import{$ as e,E as t,Q as n,S as r,W as i,_ as a,_t as o,b as s,v as c,x as l,yt as u,z as d}from"./modules/shiki-BFOesOFp.js";import{n as f,t as p}from"./slidev/context-DrkI8qiD.js";import{t as m}from"./slidev/VClicks-BJ1JuBhK.js";import{t as h}from"./interactive-BCz0jAef.js";import{t as g}from"./TransformerBlock-D6V5Q80S.js";var _={class:`mt-2 dl-callout`},v={__name:`class.md__slidev_33`,setup(v){let{$slidev:y,$nav:b,$clicksContext:x,$clicks:S,$page:C,$renderContext:w,$frontmatter:T}=f();return x.setup(),(f,v)=>{let y=g,b=m,x=i(`click`);return d(),c(h,u(t(o(p)(o(T),32))),{aside:n(t=>[v[2]||=a(`p`,null,[l(`Press `),a(`strong`,null,`Rewire`),l(`. One difference: where the normalisation sits.`)],-1),r(b,null,{default:n(()=>[...v[0]||=[a(`ul`,null,[a(`li`,null,[a(`strong`,null,`post-LN`),l(` (LayerNorm after, 2017) — norm `),a(`em`,null,`after`),l(` the add, `),a(`strong`,null,`on`),l(` the residual path`)]),a(`li`,null,[a(`strong`,null,`pre-LN`),l(` (modern) — norm `),a(`em`,null,`before`),l(` the sub-layer, on a copy`)]),a(`li`,null,`So bottom to top is now additions only`)],-1)]]),_:1}),e((d(),s(`div`,_,[...v[1]||=[a(`p`,null,`Post-LN needs a warmup to train deep. Pre-LN does not.`,-1)]])),[[x]])]),default:n(()=>[r(y,{variant:`pre`,start:`whole`})]),_:1},16)}}};export{v as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-BDIryj7C.js b/lecture-06/class/assets/md-BDIryj7C.js new file mode 100644 index 0000000000000000000000000000000000000000..9882d98cbe4ab409dd1978270f268ed63987914a --- /dev/null +++ b/lecture-06/class/assets/md-BDIryj7C.js @@ -0,0 +1 @@ +import{$ as e,E as t,Q as n,S as r,V as i,W as a,_ as o,_t as s,b as c,m as l,v as u,w as d,xt as f,yt as p,z as m}from"./modules/shiki-BFOesOFp.js";import{t as h}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as g,t as _}from"./slidev/context-DrkI8qiD.js";import{t as v}from"./default-Dm4DVug5.js";import{t as y}from"./slidev/VClicks-BJ1JuBhK.js";var b={class:`dl-poll`},x={class:`dl-poll__question`},S=h(d({__name:`PollSlide`,props:{question:{},items:{}},setup(e){let{$slidev:t,$nav:a,$clicksContext:s,$clicks:u,$page:d,$renderContext:p,$frontmatter:h}=g(),_=e;return(e,t)=>{let a=y;return m(),c(`div`,b,[o(`div`,x,f(_.question),1),r(a,null,{default:n(()=>[(m(!0),c(l,null,i(_.items,e=>(m(),c(`div`,{key:e,class:`dl-poll__item`},[t[0]||=o(`span`,{class:`dl-poll__bullet`},`?`,-1),o(`span`,null,f(e),1)]))),128))]),_:1})])}}}),[[`__scopeId`,`data-v-743a908f`]]),C={class:`grid grid-cols-[1.7fr_1fr] gap-6 items-start`},w={class:`mt-4 dl-reveal`},T={class:`mt-2 dl-secondary`},E={__name:`class.md__slidev_7`,setup(i){let{$slidev:l,$nav:d,$clicksContext:f,$clicks:h,$page:y,$renderContext:b,$frontmatter:x}=g();return f.setup(),(i,l)=>{let d=S,f=a(`click`);return m(),u(v,p(t(s(_)(s(x),6))),{default:n(()=>[o(`div`,C,[o(`div`,null,[r(d,{question:`Which of last week's two walls does attention, on its own, solve?`,items:[`The bottleneck — one fixed vector for the whole source`,`The lack of parallelism across time`,`Both of them`,`Neither — it needs the recurrence to work at all`]})]),l[0]||=o(`div`,{class:`mt-10`},[o(`svg`,{viewBox:`0 0 260 150`,class:`dl-diagram`,role:`img`,"aria-label":`Attention as a weighted sum sitting on top of a recurrent chain of three states`},[o(`defs`,null,[o(`marker`,{id:`l6s0-poll-head`,markerWidth:`7`,markerHeight:`7`,refX:`6`,refY:`3.5`,orient:`auto`},[o(`path`,{class:`dl-dg-head`,d:`M0 0 L7 3.5 L0 7 z`})])]),o(`circle`,{class:`dl-dg-op`,cx:`130`,cy:`28`,r:`14`}),o(`text`,{class:`dl-dg-lab is-sm`,x:`130`,y:`33`,"text-anchor":`middle`},`Σ`),o(`text`,{class:`dl-dg-small`,x:`152`,y:`32`},`attention`),o(`path`,{class:`dl-dg-line`,d:`M121 39 L35 92`}),o(`path`,{class:`dl-dg-line`,d:`M130 42 L125 92`}),o(`path`,{class:`dl-dg-line`,d:`M139 39 L215 92`}),o(`rect`,{class:`dl-dg-box`,x:`10`,y:`94`,width:`50`,height:`28`,rx:`4`}),o(`rect`,{class:`dl-dg-box`,x:`100`,y:`94`,width:`50`,height:`28`,rx:`4`}),o(`rect`,{class:`dl-dg-box`,x:`190`,y:`94`,width:`50`,height:`28`,rx:`4`}),o(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#l6s0-poll-head)`,d:`M60 108 H98`}),o(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#l6s0-poll-head)`,d:`M150 108 H188`}),o(`text`,{class:`dl-dg-small`,x:`130`,y:`142`,"text-anchor":`middle`},`the recurrent chain underneath`)])],-1)]),e((m(),c(`div`,w,[...l[1]||=[o(`p`,null,`The bottleneck only`,-1)]])),[[f]]),e((m(),c(`div`,T,[...l[2]||=[o(`p`,null,`The recurrent chain was still underneath, so time stayed sequential.`,-1)]])),[[f]])]),_:1},16)}}};export{E as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-BMgHpn2g2.js b/lecture-06/class/assets/md-BMgHpn2g2.js new file mode 100644 index 0000000000000000000000000000000000000000..0e6fd077e04773f87e6e4e30c7202284252ace20 --- /dev/null +++ b/lecture-06/class/assets/md-BMgHpn2g2.js @@ -0,0 +1 @@ +import{E as e,Q as t,S as n,_ as r,_t as i,v as a,yt as o,z as s}from"./modules/shiki-BFOesOFp.js";import{n as c,t as l}from"./slidev/context-DrkI8qiD.js";import{t as u}from"./TransformerGlyph-1pDKmZ2i.js";import{t as d}from"./section-C2g2VRmZ.js";var f={class:`absolute right-18 top-1/2 -translate-y-1/2`},p={__name:`class.md__slidev_35`,setup(p){let{$slidev:m,$nav:h,$clicksContext:g,$clicks:_,$page:v,$renderContext:y,$frontmatter:b}=c();return g.setup(),(c,p)=>{let m=u;return s(),a(d,o(e(i(l)(i(b),34))),{default:t(()=>[p[0]||=r(`h1`,null,`In PyTorch`,-1),p[1]||=r(`p`,null,`Everything you computed by hand, as code.`,-1),r(`div`,f,[n(m,{kind:`code`,size:190})])]),_:1},16)}}};export{p as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-BOud_X1x.js b/lecture-06/class/assets/md-BOud_X1x.js new file mode 100644 index 0000000000000000000000000000000000000000..3d375343ba5400860e981106f58ac98c99cfad32 --- /dev/null +++ b/lecture-06/class/assets/md-BOud_X1x.js @@ -0,0 +1 @@ +import{$ as e,E as t,Q as n,W as r,_ as i,_t as a,b as o,v as s,yt as c,z as l}from"./modules/shiki-BFOesOFp.js";import{n as u,t as d}from"./slidev/context-DrkI8qiD.js";import{t as f}from"./default-Dm4DVug5.js";var p={class:`mt-1 flex justify-center`},m={viewBox:`0 0 680 250`,class:`dl-diagram`,style:{"max-width":`36rem`},role:`img`,"aria-label":`One transformer block on the river bank: attention mixes the three positions sideways, then the same small network processes each position alone, and the block repeats N times`},h={class:`mt-1 dl-callout`},g={__name:`class.md__slidev_6`,setup(g){let{$slidev:_,$nav:v,$clicksContext:y,$clicks:b,$page:x,$renderContext:S,$frontmatter:C}=u();return y.setup(),(u,g)=>{let _=r(`click`);return l(),s(f,c(t(a(d)(a(C),5))),{default:n(()=>[g[11]||=i(`h1`,null,`What a transformer is`,-1),g[12]||=i(`p`,null,`A stack of identical blocks. Each block does exactly two things.`,-1),i(`div`,p,[(l(),o(`svg`,m,[g[3]||=i(`defs`,null,[i(`marker`,{id:`l6s0-what-head`,markerWidth:`7`,markerHeight:`7`,refX:`6`,refY:`3.5`,orient:`auto`},[i(`path`,{class:`dl-dg-head`,d:`M0 0 L7 3.5 L0 7 z`})])],-1),g[4]||=i(`rect`,{class:`dl-dg-box is-accent`,x:`120`,y:`204`,width:`90`,height:`30`,rx:`4`},null,-1),g[5]||=i(`rect`,{class:`dl-dg-box is-accent`,x:`280`,y:`204`,width:`90`,height:`30`,rx:`4`},null,-1),g[6]||=i(`rect`,{class:`dl-dg-box is-accent`,x:`440`,y:`204`,width:`90`,height:`30`,rx:`4`},null,-1),g[7]||=i(`text`,{class:`dl-dg-in`,x:`165`,y:`224`,"text-anchor":`middle`},`the`,-1),g[8]||=i(`text`,{class:`dl-dg-in`,x:`325`,y:`224`,"text-anchor":`middle`},`river`,-1),g[9]||=i(`text`,{class:`dl-dg-in`,x:`485`,y:`224`,"text-anchor":`middle`},`bank`,-1),e((l(),o(`g`,null,[...g[0]||=[i(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#l6s0-what-head)`,d:`M165 202 V174`},null,-1),i(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#l6s0-what-head)`,d:`M325 202 V174`},null,-1),i(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#l6s0-what-head)`,d:`M485 202 V174`},null,-1),i(`rect`,{class:`dl-dg-fill`,x:`110`,y:`130`,width:`430`,height:`42`,rx:`6`},null,-1),i(`path`,{class:`dl-dg-line`,d:`M165 168 L325 134 M325 168 L165 134 M325 168 L485 134 M485 168 L325 134 M165 168 L485 134 M485 168 L165 134`},null,-1),i(`text`,{class:`dl-dg-in`,x:`8`,y:`148`},`sideways`,-1),i(`text`,{class:`dl-dg-small`,x:`8`,y:`164`},`mix positions`,-1)]])),[[_]]),e((l(),o(`g`,null,[...g[1]||=[i(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#l6s0-what-head)`,d:`M165 128 V104`},null,-1),i(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#l6s0-what-head)`,d:`M325 128 V104`},null,-1),i(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#l6s0-what-head)`,d:`M485 128 V104`},null,-1),i(`polygon`,{class:`dl-dg-net`,points:`125,102 205,102 193,58 137,58`},null,-1),i(`polygon`,{class:`dl-dg-net`,points:`285,102 365,102 353,58 297,58`},null,-1),i(`polygon`,{class:`dl-dg-net`,points:`445,102 525,102 513,58 457,58`},null,-1),i(`text`,{class:`dl-dg-small`,x:`165`,y:`85`,"text-anchor":`middle`},`same net`,-1),i(`text`,{class:`dl-dg-small`,x:`325`,y:`85`,"text-anchor":`middle`},`same net`,-1),i(`text`,{class:`dl-dg-small`,x:`485`,y:`85`,"text-anchor":`middle`},`same net`,-1),i(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#l6s0-what-head)`,d:`M165 56 V26`},null,-1),i(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#l6s0-what-head)`,d:`M325 56 V26`},null,-1),i(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#l6s0-what-head)`,d:`M485 56 V26`},null,-1),i(`text`,{class:`dl-dg-in`,x:`8`,y:`76`},`upward`,-1),i(`text`,{class:`dl-dg-small`,x:`8`,y:`92`},`each position alone`,-1)]])),[[_]]),e((l(),o(`g`,null,[...g[2]||=[i(`path`,{class:`dl-dg-line is-muted`,d:`M572 56 H584 V172 H572`},null,-1),i(`text`,{class:`dl-dg-lab`,x:`594`,y:`114`},`× N`,-1),i(`text`,{class:`dl-dg-small`,x:`594`,y:`134`},`6 … 96 blocks`,-1)]])),[[_]])]))]),e((l(),o(`div`,h,[...g[10]||=[i(`p`,null,`Mix across positions, then process each position on its own. Repeat. The rest of the lecture is detail.`,-1)]])),[[_]])]),_:1},16)}}};export{g as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-BPrLSzMT.js b/lecture-06/class/assets/md-BPrLSzMT.js new file mode 100644 index 0000000000000000000000000000000000000000..a51c16416417da973b7a4a4f306320db252ba727 --- /dev/null +++ b/lecture-06/class/assets/md-BPrLSzMT.js @@ -0,0 +1 @@ +import{E as e,Q as t,S as n,_ as r,_t as i,v as a,yt as o,z as s}from"./modules/shiki-BFOesOFp.js";import{n as c,t as l}from"./slidev/context-DrkI8qiD.js";import{t as u}from"./TransformerGlyph-1pDKmZ2i.js";import{t as d}from"./section-C2g2VRmZ.js";var f={class:`absolute right-18 top-1/2 -translate-y-1/2`},p={__name:`class.md__slidev_30`,setup(p){let{$slidev:m,$nav:h,$clicksContext:g,$clicks:_,$page:v,$renderContext:y,$frontmatter:b}=c();return g.setup(),(c,p)=>{let m=u;return s(),a(d,o(e(i(l)(i(b),29))),{default:t(()=>[p[0]||=r(`h1`,null,`Modern transformers`,-1),p[1]||=r(`p`,null,`What changed since 2017, and what did not.`,-1),r(`div`,f,[n(m,{kind:`decoder`,size:190})])]),_:1},16)}}};export{p as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-BV7tqBmU.css b/lecture-06/class/assets/md-BV7tqBmU.css new file mode 100644 index 0000000000000000000000000000000000000000..67f85c5f2326299dedb7e9fc1e8c02baff6695a2 --- /dev/null +++ b/lecture-06/class/assets/md-BV7tqBmU.css @@ -0,0 +1 @@ +.dl-syllabus[data-v-45e850fb]{width:100%}.dl-syllabus__track[data-v-45e850fb]{align-items:stretch;gap:4px;display:grid;position:relative}.dl-syllabus__block[data-v-45e850fb]{border:1px solid var(--dl-border);background:var(--dl-surface);cursor:pointer;border-radius:5px;height:2.6rem;padding:0;transition:background .15s,border-color .15s,transform .15s;position:relative}.dl-syllabus__block[data-v-45e850fb]:hover{border-color:var(--dl-accent);transform:translateY(-2px)}.dl-syllabus__block.is-selected[data-v-45e850fb]{background:var(--dl-accent);border-color:var(--dl-accent-strong)}.dl-syllabus__num[data-v-45e850fb]{color:var(--dl-muted);font-size:.8rem;font-weight:700}.dl-syllabus__block.is-selected .dl-syllabus__num[data-v-45e850fb]{color:#fff}.dl-syllabus__now[data-v-45e850fb]{border:2px solid var(--dl-danger);pointer-events:none;border-radius:5px;grid-row:1}.dl-syllabus__weeks[data-v-45e850fb]{color:var(--dl-muted);text-align:center;font-variant-numeric:tabular-nums;gap:4px;margin-top:.3rem;font-size:.7rem;display:grid}.dl-syllabus__detail[data-v-45e850fb]{min-height:6.5rem;margin-top:1.2rem}.dl-syllabus__heading[data-v-45e850fb]{align-items:baseline;gap:.8rem;display:flex}.dl-syllabus__weeklabel[data-v-45e850fb]{letter-spacing:.08em;text-transform:uppercase;color:var(--dl-accent);flex-shrink:0;font-size:.78rem;font-weight:700}.dl-syllabus__detail h3[data-v-45e850fb]{margin:0;font-size:1.45rem}.dl-syllabus__detail p[data-v-45e850fb]{max-width:68ch;margin:.45rem 0 0;font-size:1.05rem;line-height:1.5} diff --git a/lecture-06/class/assets/md-BYbneerw2.js b/lecture-06/class/assets/md-BYbneerw2.js new file mode 100644 index 0000000000000000000000000000000000000000..542f776ec4ff766e135299f45dd650e3e449bd32 --- /dev/null +++ b/lecture-06/class/assets/md-BYbneerw2.js @@ -0,0 +1 @@ +import{E as e,H as t,Q as n,S as r,_ as i,_t as a,b as o,v as s,w as c,xt as l,y as u,yt as d,z as f}from"./modules/shiki-BFOesOFp.js";import{t as p}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as m,t as h}from"./slidev/context-DrkI8qiD.js";import{t as g}from"./TransformerGlyph-1pDKmZ2i.js";var _={class:`slidev-layout dl-end`},v={class:`dl-end__body`},y={class:`dl-end__meta`},b={key:0,class:`dl-end__next`},x=[`href`],S=p(c({__name:`end`,props:{email:{},next:{}},setup(e){let{$slidev:n,$nav:r,$clicksContext:a,$clicks:s,$page:c,$renderContext:d,$frontmatter:p}=m(),h=e;return(e,n)=>(f(),o(`div`,_,[i(`div`,v,[t(e.$slots,`default`,{},void 0,!0)]),n[0]||=i(`div`,{class:`dl-rule`},null,-1),i(`div`,y,[h.next?(f(),o(`span`,b,`Next: `+l(h.next),1)):u(`v-if`,!0),h.email?(f(),o(`a`,{key:1,href:`mailto:${h.email}`},l(h.email),9,x)):u(`v-if`,!0)])]))}}),[[`__scopeId`,`data-v-f8d31aa3`]]),C={class:`mx-auto mt-2`,style:{width:`150px`}},w={__name:`class.md__slidev_41`,setup(t){let{$slidev:o,$nav:c,$clicksContext:l,$clicks:u,$page:p,$renderContext:_,$frontmatter:v}=m();return l.setup(),(t,o)=>{let c=g;return f(),s(S,d(e(a(h)(a(v),40))),{default:n(()=>[o[0]||=i(`h1`,null,`To be continued…`,-1),i(`div`,C,[r(c,{kind:`decoder`,size:150})])]),_:1},16)}}};export{w as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-Ba9i9vHS.js b/lecture-06/class/assets/md-Ba9i9vHS.js new file mode 100644 index 0000000000000000000000000000000000000000..4feee8985b52dfd076a796d6423e22769c82baa5 --- /dev/null +++ b/lecture-06/class/assets/md-Ba9i9vHS.js @@ -0,0 +1 @@ +import{$ as e,E as t,Q as n,V as r,W as i,_ as a,_t as o,b as s,m as c,v as l,x as u,yt as d,z as f}from"./modules/shiki-BFOesOFp.js";import{n as p,t as m}from"./slidev/context-DrkI8qiD.js";import{t as h}from"./default-Dm4DVug5.js";var g={class:`mt-1 flex justify-center`},_={viewBox:`0 0 620 240`,class:`dl-diagram is-sm-h`,role:`img`,"aria-label":`An encoder stack reads the source tokens and outputs one vector per token; a decoder stack with three sub-layers reads the encoder output through cross-attention`},v=[`x`],y=[`x`],b=[`x`],x={class:`mt-1 dl-callout`},S={__name:`class.md__slidev_27`,setup(S){let{$slidev:C,$nav:w,$clicksContext:T,$clicks:E,$page:D,$renderContext:O,$frontmatter:k}=p();return T.setup(),(p,S)=>{let C=i(`click`);return f(),l(h,d(t(o(m)(o(k),26))),{default:n(()=>[S[25]||=a(`h1`,null,`Two stacks`,-1),S[26]||=a(`p`,null,[u(`The 2017 paper is a `),a(`strong`,null,`translation`),u(` model. One stack reads the source; the other writes the target.`)],-1),a(`div`,g,[(f(),s(`svg`,_,[S[23]||=a(`defs`,null,[a(`marker`,{id:`l6s3-a1`,markerWidth:`7`,markerHeight:`7`,refX:`6`,refY:`3.5`,orient:`auto`},[a(`path`,{class:`dl-dg-head`,d:`M0 0 L7 3.5 L0 7 z`})])],-1),a(`g`,null,[S[0]||=a(`text`,{class:`dl-dg-small`,x:`140`,y:`14`,"text-anchor":`middle`},`one vector per source token`,-1),(f(),s(c,null,r(3,e=>a(`rect`,{key:`eo${e}`,class:`dl-dg-box is-accent`,x:88+(e-1)*38,y:`22`,width:`26`,height:`22`,rx:`3`},null,8,v)),64)),S[1]||=a(`rect`,{class:`dl-dg-fill is-muted is-dashed`,x:`40`,y:`70`,width:`200`,height:`110`,rx:`6`},null,-1),S[2]||=a(`text`,{class:`dl-dg-small`,x:`52`,y:`86`},`encoder, 6 blocks`,-1),S[3]||=a(`rect`,{class:`dl-dg-box`,x:`60`,y:`94`,width:`160`,height:`30`,rx:`4`},null,-1),S[4]||=a(`text`,{class:`dl-dg-in`,x:`140`,y:`114`,"text-anchor":`middle`},`feed-forward`,-1),S[5]||=a(`rect`,{class:`dl-dg-box`,x:`60`,y:`134`,width:`160`,height:`30`,rx:`4`},null,-1),S[6]||=a(`text`,{class:`dl-dg-in`,x:`140`,y:`154`,"text-anchor":`middle`},`self-attention, no mask`,-1),(f(),s(c,null,r(3,e=>a(`rect`,{key:`ei${e}`,class:`dl-dg-box`,x:88+(e-1)*38,y:`206`,width:`26`,height:`22`,rx:`3`},null,8,y)),64)),S[7]||=a(`text`,{class:`dl-dg-small`,x:`80`,y:`221`,"text-anchor":`end`},`source`,-1),S[8]||=a(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#l6s3-a1)`,d:`M140 204 V184`},null,-1),S[9]||=a(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#l6s3-a1)`,d:`M140 68 V48`},null,-1)]),e((f(),s(`g`,null,[S[10]||=a(`rect`,{class:`dl-dg-fill is-dashed`,x:`380`,y:`50`,width:`210`,height:`130`,rx:`6`},null,-1),S[11]||=a(`text`,{class:`dl-dg-small`,x:`392`,y:`66`},`decoder, 6 blocks`,-1),S[12]||=a(`rect`,{class:`dl-dg-box`,x:`398`,y:`72`,width:`174`,height:`28`,rx:`4`},null,-1),S[13]||=a(`text`,{class:`dl-dg-in`,x:`485`,y:`91`,"text-anchor":`middle`},`feed-forward`,-1),S[14]||=a(`rect`,{class:`dl-dg-box is-accent`,x:`398`,y:`106`,width:`174`,height:`28`,rx:`4`},null,-1),S[15]||=a(`text`,{class:`dl-dg-in`,x:`485`,y:`125`,"text-anchor":`middle`},`cross-attention`,-1),S[16]||=a(`rect`,{class:`dl-dg-box`,x:`398`,y:`140`,width:`174`,height:`28`,rx:`4`},null,-1),S[17]||=a(`text`,{class:`dl-dg-in`,x:`485`,y:`159`,"text-anchor":`middle`},`masked self-attention`,-1),(f(),s(c,null,r(3,e=>a(`rect`,{key:`di${e}`,class:`dl-dg-box`,x:428+(e-1)*38,y:`206`,width:`26`,height:`22`,rx:`3`},null,8,b)),64)),S[18]||=a(`text`,{class:`dl-dg-small`,x:`420`,y:`221`,"text-anchor":`end`},`target so far`,-1),S[19]||=a(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#l6s3-a1)`,d:`M485 204 V184`},null,-1),S[20]||=a(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#l6s3-a1)`,d:`M485 48 V26`},null,-1),S[21]||=a(`text`,{class:`dl-dg-small`,x:`497`,y:`22`},`next word`,-1)])),[[C]]),e((f(),s(`g`,null,[...S[22]||=[a(`path`,{class:`dl-dg-line`,"marker-end":`url(#l6s3-a1)`,d:`M192 33 H310 V120 H394`},null,-1),a(`text`,{class:`dl-dg-small is-good`,x:`318`,y:`84`},`K and V`,-1)]])),[[C]])]))]),e((f(),s(`div`,x,[...S[24]||=[a(`p`,null,`One vector per source token: last week’s bottleneck is gone. Nothing has to be summarised in advance.`,-1)]])),[[C]])]),_:1},16)}}};export{S as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-BiPai5i4.js b/lecture-06/class/assets/md-BiPai5i4.js new file mode 100644 index 0000000000000000000000000000000000000000..3b484fd4f63ea4f164bddb97675829c09b0c9d6e --- /dev/null +++ b/lecture-06/class/assets/md-BiPai5i4.js @@ -0,0 +1 @@ +import{$ as e,E as t,Q as n,S as r,W as i,_ as a,_t as o,b as s,v as c,x as l,yt as u,z as d}from"./modules/shiki-BFOesOFp.js";import{n as f,t as p}from"./slidev/context-DrkI8qiD.js";import{t as m}from"./default-Dm4DVug5.js";import{t as h}from"./slidev/VClicks-BJ1JuBhK.js";var g={class:`grid grid-cols-[0.9fr_1.1fr] gap-8 mt-2 items-start`},_={viewBox:`0 0 240 300`,class:`dl-diagram`,role:`img`,"aria-label":`Input x goes up two paths: through the sub-layer, and a copy unchanged. The two are added at a plus sign, then LayerNorm, giving an output of the same shape`,style:{"max-height":`17rem`}},v={class:`dl-tight`},y={class:`mt-3 dl-callout`},b={__name:`class.md__slidev_23`,setup(b){let{$slidev:x,$nav:S,$clicksContext:C,$clicks:w,$page:T,$renderContext:E,$frontmatter:D}=f();return C.setup(),(f,b)=>{let x=h,S=i(`click`);return d(),c(m,u(t(o(p)(o(D),22))),{default:n(()=>[b[6]||=a(`h1`,null,`Two wrappers that make it stackable`,-1),b[7]||=a(`p`,null,`Each sub-layer is wrapped the same way, so blocks can be stacked.`,-1),a(`div`,g,[a(`div`,null,[(d(),s(`svg`,_,[...b[0]||=[a(`defs`,null,[a(`marker`,{id:`l6s2-wrap-arrow`,markerWidth:`7`,markerHeight:`7`,refX:`6`,refY:`3.5`,orient:`auto`},[a(`path`,{class:`dl-dg-head`,d:`M0 0 L7 3.5 L0 7 z`})])],-1),a(`rect`,{class:`dl-dg-box`,x:`95`,y:`264`,width:`50`,height:`28`,rx:`4`},null,-1),a(`text`,{class:`dl-dg-lab`,x:`120`,y:`284`,"text-anchor":`middle`},`x`,-1),a(`path`,{class:`dl-dg-grad is-good`,"marker-end":`url(#l6s2-wrap-arrow)`,d:`M120 262 V150`,style:{"stroke-width":`2.4`}},null,-1),a(`text`,{class:`dl-dg-small is-good`,x:`112`,y:`214`,"text-anchor":`end`},`x copied,`,-1),a(`text`,{class:`dl-dg-small is-good`,x:`112`,y:`228`,"text-anchor":`end`},`unchanged`,-1),a(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#l6s2-wrap-arrow)`,d:`M120 244 H190 V214`},null,-1),a(`rect`,{class:`dl-dg-box is-accent`,x:`146`,y:`172`,width:`88`,height:`40`,rx:`4`},null,-1),a(`text`,{class:`dl-dg-small`,x:`190`,y:`196`,"text-anchor":`middle`},`sub-layer`,-1),a(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#l6s2-wrap-arrow)`,d:`M190 170 V136 H136`},null,-1),a(`circle`,{class:`dl-dg-op`,cx:`120`,cy:`136`,r:`13`},null,-1),a(`text`,{class:`dl-dg-lab is-sm`,x:`120`,y:`141`,"text-anchor":`middle`},`+`,-1),a(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#l6s2-wrap-arrow)`,d:`M120 122 V104`},null,-1),a(`rect`,{class:`dl-dg-box`,x:`60`,y:`72`,width:`120`,height:`30`,rx:`4`},null,-1),a(`text`,{class:`dl-dg-small`,x:`120`,y:`91`,"text-anchor":`middle`},`LayerNorm`,-1),a(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#l6s2-wrap-arrow)`,d:`M120 70 V40`},null,-1),a(`text`,{class:`dl-dg-small`,x:`120`,y:`30`,"text-anchor":`middle`},`same shape out`,-1)]]))]),a(`div`,v,[b[4]||=a(`h3`,null,`Residual`,-1),r(x,null,{default:n(()=>[...b[1]||=[a(`ul`,null,[a(`li`,null,[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,{mathvariant:`bold`},`x`),a(`mo`,null,`+`),a(`mi`,{mathvariant:`normal`},`SubLayer`),a(`mo`,null,`⁡`),a(`mo`,{stretchy:`false`},`(`),a(`mi`,{mathvariant:`bold`},`x`),a(`mo`,{stretchy:`false`},`)`)]),a(`annotation`,{encoding:`application/x-tex`},`\\mathbf{x} + \\operatorname{SubLayer}(\\mathbf{x})`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6667em`,"vertical-align":`-0.0833em`}}),a(`span`,{class:`mord mathbf`},`x`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),a(`span`,{class:`mbin`},`+`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),a(`span`,{class:`mop`},[a(`span`,{class:`mord mathrm`},`SubLayer`)]),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord mathbf`},`x`),a(`span`,{class:`mclose`},`)`)])])]),l(`: `),a(`strong`,null,`add`),l(`, never replace`)]),a(`li`,null,`A gradient path with no matrix on it, as in a ResNet`)],-1)]]),_:1}),b[5]||=a(`h3`,null,`LayerNorm`,-1),r(x,null,{default:n(()=>[...b[2]||=[a(`ul`,null,[a(`li`,null,[l(`Re-centre and re-scale `),a(`strong`,null,`each position’s own vector`)]),a(`li`,null,`Not BatchNorm: nothing is shared across the batch or across time`)],-1)]]),_:1}),e((d(),s(`div`,y,[...b[3]||=[a(`p`,null,[l(`Same shape in, `),a(`strong`,null,`same shape out`),l(`. That is why blocks stack.`)],-1)]])),[[S]])])])]),_:1},16)}}};export{b as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-BqqYj8BO.js b/lecture-06/class/assets/md-BqqYj8BO.js new file mode 100644 index 0000000000000000000000000000000000000000..33650725a743f9e3896446386b62464bd077c9e5 --- /dev/null +++ b/lecture-06/class/assets/md-BqqYj8BO.js @@ -0,0 +1 @@ +import{E as e,Q as t,S as n,_ as r,_t as i,v as a,yt as o,z as s}from"./modules/shiki-BFOesOFp.js";import{n as c,t as l}from"./slidev/context-DrkI8qiD.js";import{t as u}from"./TransformerGlyph-1pDKmZ2i.js";import{t as d}from"./section-C2g2VRmZ.js";var f={class:`absolute right-18 top-1/2 -translate-y-1/2`},p={__name:`class.md__slidev_17`,setup(p){let{$slidev:m,$nav:h,$clicksContext:g,$clicks:_,$page:v,$renderContext:y,$frontmatter:b}=c();return g.setup(),(c,p)=>{let m=u;return s(),a(d,o(e(i(l)(i(b),16))),{default:t(()=>[p[0]||=r(`h1`,null,`From one head to one block`,-1),p[1]||=r(`p`,null,`Many heads, one block.`,-1),r(`div`,f,[n(m,{kind:`block`,size:190})])]),_:1},16)}}};export{p as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-C0itcagX.js b/lecture-06/class/assets/md-C0itcagX.js new file mode 100644 index 0000000000000000000000000000000000000000..7157ea3fd8fe66ed1c1c5976690b57c0df38dd8b --- /dev/null +++ b/lecture-06/class/assets/md-C0itcagX.js @@ -0,0 +1 @@ +import{E as e,Q as t,S as n,_ as r,_t as i,v as a,yt as o,z as s}from"./modules/shiki-BFOesOFp.js";import{n as c,t as l}from"./slidev/context-DrkI8qiD.js";import{t as u}from"./TransformerGlyph-1pDKmZ2i.js";import{t as d}from"./section-C2g2VRmZ.js";var f={class:`absolute right-18 top-1/2 -translate-y-1/2`},p={__name:`class.md__slidev_8`,setup(p){let{$slidev:m,$nav:h,$clicksContext:g,$clicks:_,$page:v,$renderContext:y,$frontmatter:b}=c();return g.setup(),(c,p)=>{let m=u;return s(),a(d,o(e(i(l)(i(b),7))),{default:t(()=>[p[0]||=r(`h1`,null,`Query, key, value`,-1),p[1]||=r(`p`,null,`A dictionary lookup, made soft.`,-1),r(`div`,f,[n(m,{kind:`qkv`,size:190})])]),_:1},16)}}};export{p as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-C3hQYWCV.js b/lecture-06/class/assets/md-C3hQYWCV.js new file mode 100644 index 0000000000000000000000000000000000000000..27fdd5fcb8b74ec000c6d2caf40fe313253cd244 --- /dev/null +++ b/lecture-06/class/assets/md-C3hQYWCV.js @@ -0,0 +1,12 @@ +import{$ as e,E as t,Q as n,S as r,W as i,_ as a,_t as o,b as s,v as c,x as l,yt as u,z as d}from"./modules/shiki-BFOesOFp.js";import{n as f,t as p}from"./slidev/context-DrkI8qiD.js";import{t as m}from"./default-Dm4DVug5.js";import{t as h}from"./slidev/KaTexBlockWrapper-D5wJOb_T.js";var g={class:`mt-1`},_={class:`flex justify-center`},v={viewBox:`0 0 520 124`,class:`dl-diagram`,style:{"max-height":`8.6rem`},role:`img`,"aria-label":`Q, T by d_k, times K transpose, d_k by T, gives a T by T grid of scores; divide and softmax gives T by T weights; times V, T by d_v, gives the T by d_v output`},y={class:`mt-1 dl-callout`},b={__name:`class.md__slidev_16`,setup(b){let{$slidev:x,$nav:S,$clicksContext:C,$clicks:w,$page:T,$renderContext:E,$frontmatter:D}=f();return C.setup(),(f,b)=>{let x=h,S=i(`click`);return d(),c(m,u(t(o(p)(o(D),15))),{default:n(()=>[b[6]||=a(`h1`,null,`The whole layer, in one line`,-1),b[7]||=a(`p`,null,[l(`Stack the queries into `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`Q`)]),a(`annotation`,{encoding:`application/x-tex`},`Q`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.8778em`,"vertical-align":`-0.1944em`}}),a(`span`,{class:`mord mathnormal`},`Q`)])])]),l(`, the keys into `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`K`)]),a(`annotation`,{encoding:`application/x-tex`},`K`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0715em`}},`K`)])])]),l(` and the values into `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`V`)]),a(`annotation`,{encoding:`application/x-tex`},`V`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.2222em`}},`V`)])])]),l(`, one row per token. `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`T`)]),a(`annotation`,{encoding:`application/x-tex`},`T`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.1389em`}},`T`)])])]),l(` is the number of tokens. The four steps become one line:`)],-1),a(`div`,g,[r(x,{ranges:[]},{default:n(()=>[...b[0]||=[a(`p`,null,[a(`span`,{class:`katex-display`},[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`,display:`block`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,{mathvariant:`normal`},`Attention`),a(`mo`,null,`⁡`),a(`mo`,{stretchy:`false`},`(`),a(`mi`,null,`Q`),a(`mo`,{separator:`true`},`,`),a(`mi`,null,`K`),a(`mo`,{separator:`true`},`,`),a(`mi`,null,`V`),a(`mo`,{stretchy:`false`},`)`),a(`mo`,null,`=`),a(`mi`,{mathvariant:`normal`},`softmax`),a(`mo`,null,`⁡`),a(`mtext`,null,` ⁣`),a(`mrow`,null,[a(`mo`,{fence:`true`},`(`),a(`mfrac`,null,[a(`mrow`,null,[a(`mi`,null,`Q`),a(`msup`,null,[a(`mi`,null,`K`),a(`mi`,{mathvariant:`normal`},`⊤`)])]),a(`msqrt`,null,[a(`msub`,null,[a(`mi`,null,`d`),a(`mi`,null,`k`)])])]),a(`mo`,{fence:`true`},`)`)]),a(`mi`,null,`V`)]),a(`annotation`,{encoding:`application/x-tex`},`\\operatorname{Attention}(Q, K, V) = \\operatorname{softmax}\\!\\left(\\frac{QK^\\top}{\\sqrt{d_k}}\\right)V`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),a(`span`,{class:`mop`},[a(`span`,{class:`mord mathrm`},`Attention`)]),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord mathnormal`},`Q`),a(`span`,{class:`mpunct`},`,`),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0715em`}},`K`),a(`span`,{class:`mpunct`},`,`),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.2222em`}},`V`),a(`span`,{class:`mclose`},`)`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`=`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`2.4761em`,"vertical-align":`-0.95em`}}),a(`span`,{class:`mop`},[a(`span`,{class:`mord mathrm`},`softmax`)]),a(`span`,{class:`mspace`,style:{"margin-right":`-0.1667em`}}),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`minner`},[a(`span`,{class:`mopen delimcenter`,style:{top:`0em`}},[a(`span`,{class:`delimsizing size3`},`(`)]),a(`span`,{class:`mord`},[a(`span`,{class:`mopen nulldelimiter`}),a(`span`,{class:`mfrac`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`1.5261em`}},[a(`span`,{style:{top:`-2.2528em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord sqrt`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.8572em`}},[a(`span`,{class:`svg-align`,style:{top:`-3em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`mord`,style:{"padding-left":`0.833em`}},[a(`span`,{class:`mord`},[a(`span`,{class:`mord mathnormal`},`d`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.3361em`}},[a(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0315em`}},`k`)])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.15em`}},[a(`span`)])])])])])])]),a(`span`,{style:{top:`-2.8172em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`hide-tail`,style:{"min-width":`0.853em`,height:`1.08em`}},[a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`400em`,height:`1.08em`,viewBox:`0 0 400000 1080`,preserveAspectRatio:`xMinYMin slice`},[a(`path`,{d:`M95,702 +c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 +c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 +c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 +s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 +c69,-144,104.5,-217.7,106.5,-221 +l0 -0 +c5.3,-9.3,12,-14,20,-14 +H400000v40H845.2724 +s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 +c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z +M834 80h400000v40h-400000z`})])])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.1828em`}},[a(`span`)])])])])])]),a(`span`,{style:{top:`-3.23em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`frac-line`,style:{"border-bottom-width":`0.04em`}})]),a(`span`,{style:{top:`-3.677em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord mathnormal`},`Q`),a(`span`,{class:`mord`},[a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0715em`}},`K`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.8491em`}},[a(`span`,{style:{top:`-3.063em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mtight`},`⊤`)])])])])])])])])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.93em`}},[a(`span`)])])])]),a(`span`,{class:`mclose nulldelimiter`})]),a(`span`,{class:`mclose delimcenter`,style:{top:`0em`}},[a(`span`,{class:`delimsizing size3`},`)`)])]),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.2222em`}},`V`)])])])])],-1)]]),_:1})]),a(`div`,_,[(d(),s(`svg`,v,[b[4]||=a(`defs`,null,[a(`marker`,{id:`l6s1-layer`,markerWidth:`7`,markerHeight:`7`,refX:`6`,refY:`3.5`,orient:`auto`},[a(`path`,{class:`dl-dg-head`,d:`M0 0 L7 3.5 L0 7 z`})])],-1),e((d(),s(`g`,null,[...b[1]||=[a(`rect`,{class:`dl-dg-box`,x:`10`,y:`18`,width:`24`,height:`72`,rx:`2`},null,-1),a(`text`,{class:`dl-dg-lab is-sm`,x:`22`,y:`12`,"text-anchor":`middle`},`Q`,-1),a(`text`,{class:`dl-dg-small`,x:`22`,y:`108`,"text-anchor":`middle`},`T × d_k`,-1),a(`text`,{class:`dl-dg-lab is-sm`,x:`48`,y:`58`,"text-anchor":`middle`},`×`,-1),a(`rect`,{class:`dl-dg-box`,x:`62`,y:`18`,width:`72`,height:`24`,rx:`2`},null,-1),a(`text`,{class:`dl-dg-lab is-sm`,x:`98`,y:`12`,"text-anchor":`middle`},`Kᵀ`,-1),a(`text`,{class:`dl-dg-small`,x:`98`,y:`58`,"text-anchor":`middle`},`d_k × T`,-1),a(`text`,{class:`dl-dg-lab is-sm`,x:`148`,y:`58`,"text-anchor":`middle`},`=`,-1),a(`rect`,{class:`dl-dg-box`,x:`162`,y:`18`,width:`72`,height:`72`,rx:`2`},null,-1),a(`text`,{class:`dl-dg-lab is-sm`,x:`198`,y:`12`,"text-anchor":`middle`},`1 · scores`,-1),a(`text`,{class:`dl-dg-small`,x:`198`,y:`108`,"text-anchor":`middle`},`T × T`,-1)]])),[[S]]),e((d(),s(`g`,null,[...b[2]||=[a(`path`,{class:`dl-dg-arrow`,d:`M236 54 H282`,"marker-end":`url(#l6s1-layer)`},null,-1),a(`text`,{class:`dl-dg-small`,x:`259`,y:`44`,"text-anchor":`middle`},`2 · ÷ √d_k`,-1),a(`text`,{class:`dl-dg-small`,x:`259`,y:`72`,"text-anchor":`middle`},`3 · softmax`,-1),a(`rect`,{class:`dl-dg-box is-accent`,x:`288`,y:`18`,width:`72`,height:`72`,rx:`2`},null,-1),a(`text`,{class:`dl-dg-lab is-sm`,x:`324`,y:`12`,"text-anchor":`middle`},`weights`,-1),a(`text`,{class:`dl-dg-small`,x:`324`,y:`108`,"text-anchor":`middle`},`T × T`,-1),a(`text`,{class:`dl-dg-small`,x:`324`,y:`121`,"text-anchor":`middle`},`rows sum to 1`,-1)]])),[[S]]),e((d(),s(`g`,null,[...b[3]||=[a(`text`,{class:`dl-dg-lab is-sm`,x:`374`,y:`58`,"text-anchor":`middle`},`×`,-1),a(`rect`,{class:`dl-dg-box`,x:`388`,y:`18`,width:`24`,height:`72`,rx:`2`},null,-1),a(`text`,{class:`dl-dg-lab is-sm`,x:`400`,y:`12`,"text-anchor":`middle`},`V`,-1),a(`text`,{class:`dl-dg-small`,x:`400`,y:`108`,"text-anchor":`middle`},`T × d_v`,-1),a(`text`,{class:`dl-dg-lab is-sm`,x:`430`,y:`58`,"text-anchor":`middle`},`=`,-1),a(`rect`,{class:`dl-dg-box is-accent`,x:`452`,y:`18`,width:`24`,height:`72`,rx:`2`},null,-1),a(`text`,{class:`dl-dg-lab is-sm`,x:`464`,y:`12`,"text-anchor":`middle`},`4 · output`,-1),a(`text`,{class:`dl-dg-small`,x:`464`,y:`108`,"text-anchor":`middle`},`T × d_v`,-1)]])),[[S]])]))]),e((d(),s(`div`,y,[...b[5]||=[a(`p`,null,`Two matrix multiplies and a softmax. Every transformer is this line.`,-1)]])),[[S]])]),_:1},16)}}};export{b as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-C63Qc83E2.js b/lecture-06/class/assets/md-C63Qc83E2.js new file mode 100644 index 0000000000000000000000000000000000000000..114016d4dc1201bd529a2114c5bde07af7152645 --- /dev/null +++ b/lecture-06/class/assets/md-C63Qc83E2.js @@ -0,0 +1 @@ +import{$ as e,E as t,Q as n,S as r,V as i,W as a,_ as o,_t as s,b as c,m as l,v as u,x as d,yt as f,z as p}from"./modules/shiki-BFOesOFp.js";import{n as m,t as h}from"./slidev/context-DrkI8qiD.js";import{t as g}from"./default-Dm4DVug5.js";import{t as _}from"./slidev/VClicks-BJ1JuBhK.js";var v={class:`grid grid-cols-2 gap-8 mt-2 items-start`},y={viewBox:`0 0 330 200`,class:`dl-diagram`,role:`img`,"aria-label":`Score grids: 4 words give a 4 by 4 grid of 16 scores; 8 words give an 8 by 8 grid of 64 scores, four times as many`,style:{"max-height":`15rem`}},b=[`x`,`y`],x=[`x`,`y`],S={class:`dl-tight`},C={class:`mt-3 dl-callout`},w={class:`mt-3 dl-secondary`},T={__name:`class.md__slidev_25`,setup(T){let{$slidev:E,$nav:D,$clicksContext:O,$clicks:k,$page:A,$renderContext:j,$frontmatter:M}=m();return O.setup(),(m,T)=>{let E=_,D=a(`click`);return p(),u(g,f(t(s(h)(s(M),24))),{default:n(()=>[T[6]||=o(`h1`,null,`The bill for looking everywhere`,-1),T[7]||=o(`p`,null,[d(`The score matrix is `),o(`span`,{class:`katex`},[o(`span`,{class:`katex-mathml`},[o(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[o(`semantics`,null,[o(`mrow`,null,[o(`mi`,null,`T`),o(`mo`,null,`×`),o(`mi`,null,`T`)]),o(`annotation`,{encoding:`application/x-tex`},`T \\times T`)])])]),o(`span`,{class:`katex-html`,"aria-hidden":`true`},[o(`span`,{class:`katex-base`},[o(`span`,{class:`katex-strut`,style:{height:`0.7667em`,"vertical-align":`-0.0833em`}}),o(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.1389em`}},`T`),o(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),o(`span`,{class:`mbin`},`×`),o(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),o(`span`,{class:`katex-base`},[o(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),o(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.1389em`}},`T`)])])]),d(`: every position scores every position.`)],-1),o(`div`,v,[o(`div`,null,[(p(),c(`svg`,y,[T[1]||=o(`text`,{class:`dl-dg-small`,x:`10`,y:`16`},`query × key`,-1),(p(),c(l,null,i(16,e=>o(`rect`,{key:`a`+e,class:`dl-dg-box is-accent`,x:10+(e-1)%4*18,y:30+Math.floor((e-1)/4)*18,width:`16`,height:`16`,rx:`2`},null,8,b)),64)),T[2]||=o(`text`,{class:`dl-dg-small`,x:`10`,y:`122`},`T = 4: 16 scores`,-1),e((p(),c(`g`,null,[(p(),c(l,null,i(64,e=>o(`rect`,{key:`b`+e,class:`dl-dg-box`,x:160+(e-1)%8*18,y:30+Math.floor((e-1)/8)*18,width:`16`,height:`16`,rx:`2`},null,8,x)),64)),T[0]||=o(`text`,{class:`dl-dg-small`,x:`160`,y:`190`},`T = 8: 64 scores, 4 ×`,-1)])),[[D]])]))]),o(`div`,S,[r(E,null,{default:n(()=>[...T[3]||=[o(`ul`,null,[o(`li`,null,[d(`512 tokens → 262 144 scores `),o(`strong`,null,`per head, per layer`)])],-1)]]),_:1}),e((p(),c(`div`,C,[...T[4]||=[o(`p`,null,[d(`An RNN took `),o(`span`,{class:`katex`},[o(`span`,{class:`katex-mathml`},[o(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[o(`semantics`,null,[o(`mrow`,null,[o(`mi`,null,`T`)]),o(`annotation`,{encoding:`application/x-tex`},`T`)])])]),o(`span`,{class:`katex-html`,"aria-hidden":`true`},[o(`span`,{class:`katex-base`},[o(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),o(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.1389em`}},`T`)])])]),d(` steps, one after another. Attention takes `),o(`span`,{class:`katex`},[o(`span`,{class:`katex-mathml`},[o(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[o(`semantics`,null,[o(`mrow`,null,[o(`msup`,null,[o(`mi`,null,`T`),o(`mn`,null,`2`)])]),o(`annotation`,{encoding:`application/x-tex`},`T^2`)])])]),o(`span`,{class:`katex-html`,"aria-hidden":`true`},[o(`span`,{class:`katex-base`},[o(`span`,{class:`katex-strut`,style:{height:`0.8141em`}}),o(`span`,{class:`mord`},[o(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.1389em`}},`T`),o(`span`,{class:`msupsub`},[o(`span`,{class:`vlist-t`},[o(`span`,{class:`vlist-r`},[o(`span`,{class:`vlist`,style:{height:`0.8141em`}},[o(`span`,{style:{top:`-3.063em`,"margin-right":`0.05em`}},[o(`span`,{class:`pstrut`,style:{height:`2.7em`}}),o(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[o(`span`,{class:`mord mtight`},`2`)])])])])])])])])])]),d(`, all at once: more work, far less waiting.`)],-1)]])),[[D]]),e((p(),c(`div`,w,[...T[5]||=[o(`p`,null,[d(`Caveat: the feed-forward network grows like `),o(`span`,{class:`katex`},[o(`span`,{class:`katex-mathml`},[o(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[o(`semantics`,null,[o(`mrow`,null,[o(`mi`,null,`T`),o(`msup`,null,[o(`mi`,null,`d`),o(`mn`,null,`2`)])]),o(`annotation`,{encoding:`application/x-tex`},`T d^2`)])])]),o(`span`,{class:`katex-html`,"aria-hidden":`true`},[o(`span`,{class:`katex-base`},[o(`span`,{class:`katex-strut`,style:{height:`0.8141em`}}),o(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.1389em`}},`T`),o(`span`,{class:`mord`},[o(`span`,{class:`mord mathnormal`},`d`),o(`span`,{class:`msupsub`},[o(`span`,{class:`vlist-t`},[o(`span`,{class:`vlist-r`},[o(`span`,{class:`vlist`,style:{height:`0.8141em`}},[o(`span`,{style:{top:`-3.063em`,"margin-right":`0.05em`}},[o(`span`,{class:`pstrut`,style:{height:`2.7em`}}),o(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[o(`span`,{class:`mord mtight`},`2`)])])])])])])])])])]),d(`, attention like `),o(`span`,{class:`katex`},[o(`span`,{class:`katex-mathml`},[o(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[o(`semantics`,null,[o(`mrow`,null,[o(`msup`,null,[o(`mi`,null,`T`),o(`mn`,null,`2`)]),o(`mi`,null,`d`)]),o(`annotation`,{encoding:`application/x-tex`},`T^2 d`)])])]),o(`span`,{class:`katex-html`,"aria-hidden":`true`},[o(`span`,{class:`katex-base`},[o(`span`,{class:`katex-strut`,style:{height:`0.8141em`}}),o(`span`,{class:`mord`},[o(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.1389em`}},`T`),o(`span`,{class:`msupsub`},[o(`span`,{class:`vlist-t`},[o(`span`,{class:`vlist-r`},[o(`span`,{class:`vlist`,style:{height:`0.8141em`}},[o(`span`,{style:{top:`-3.063em`,"margin-right":`0.05em`}},[o(`span`,{class:`pstrut`,style:{height:`2.7em`}}),o(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[o(`span`,{class:`mord mtight`},`2`)])])])])])])]),o(`span`,{class:`mord mathnormal`},`d`)])])]),d(`. At `),o(`span`,{class:`katex`},[o(`span`,{class:`katex-mathml`},[o(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[o(`semantics`,null,[o(`mrow`,null,[o(`mi`,null,`T`),o(`mo`,null,`=`),o(`mi`,null,`d`),o(`mo`,null,`=`),o(`mn`,null,`512`)]),o(`annotation`,{encoding:`application/x-tex`},`T = d = 512`)])])]),o(`span`,{class:`katex-html`,"aria-hidden":`true`},[o(`span`,{class:`katex-base`},[o(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),o(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.1389em`}},`T`),o(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),o(`span`,{class:`mrel`},`=`),o(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),o(`span`,{class:`katex-base`},[o(`span`,{class:`katex-strut`,style:{height:`0.6944em`}}),o(`span`,{class:`mord mathnormal`},`d`),o(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),o(`span`,{class:`mrel`},`=`),o(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),o(`span`,{class:`katex-base`},[o(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),o(`span`,{class:`mord`},`512`)])])]),d(`, attention is not yet the expensive part.`)],-1)]])),[[D]])])])]),_:1},16)}}};export{T as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-C6btF5nP.css b/lecture-06/class/assets/md-C6btF5nP.css new file mode 100644 index 0000000000000000000000000000000000000000..80c76e695fa3b3527277f1fb7d0adc9cbc950c7d --- /dev/null +++ b/lecture-06/class/assets/md-C6btF5nP.css @@ -0,0 +1 @@ +.dl-att[data-v-284316ce]{flex-direction:column;align-items:center;gap:.4rem;width:100%;display:flex}.dl-att__query[data-v-284316ce]{align-items:center;gap:.4rem;display:flex}.dl-att__qlabel[data-v-284316ce]{letter-spacing:.1em;text-transform:uppercase;color:var(--dl-muted);margin-right:.1rem;font-size:.72rem}.dl-att__word[data-v-284316ce]{border:1px solid var(--dl-border);background:var(--dl-bg);color:var(--dl-body);font:inherit;cursor:pointer;border-radius:5px;padding:.14rem .7rem;font-size:.88rem;transition:background .15s,border-color .15s}.dl-att__word[data-v-284316ce]:hover{border-color:var(--dl-accent)}.dl-att__word.is-current[data-v-284316ce]{background:var(--dl-accent);border-color:var(--dl-accent-strong);color:#fff;font-weight:600}.dl-att__word[data-v-284316ce]:focus-visible{outline:2px solid var(--dl-accent);outline-offset:2px}.dl-att__qvec[data-v-284316ce]{font-variant-numeric:tabular-nums;color:var(--dl-accent);margin-left:.4rem;font-size:.82rem;font-weight:600}.dl-att__grid[data-v-284316ce]{border-collapse:collapse;font-variant-numeric:tabular-nums;table-layout:fixed;width:100%;max-width:34rem}.dl-att__grid th[data-v-284316ce],.dl-att__grid td[data-v-284316ce]{text-align:center;color:var(--dl-heading);padding:.16rem .2rem;font-size:.85rem}.dl-att__rowlabel[data-v-284316ce]{white-space:nowrap;width:6.2rem;font-weight:500;text-align:right!important;color:var(--dl-muted)!important;font-size:.78rem!important}.dl-att__n[data-v-284316ce]{background:var(--dl-accent-soft);width:1.05rem;height:1.05rem;color:var(--dl-accent);vertical-align:middle;border-radius:50%;place-items:center;margin-right:.25rem;font-size:.62rem;font-weight:700;display:inline-grid}.dl-att__col[data-v-284316ce]{border-bottom:2px solid var(--dl-border);font-weight:600;padding-bottom:.2rem!important;font-size:.9rem!important}.dl-att__col.is-focus[data-v-284316ce]{border-bottom-color:var(--dl-accent);color:var(--dl-accent)!important}.dl-att__given td[data-v-284316ce]{color:var(--dl-muted);font-size:.76rem}.dl-att__step td[data-v-284316ce]{font-weight:600}.dl-att__weight[data-v-284316ce]{font-weight:700}.dl-att__bar[data-v-284316ce]{background:var(--dl-border);border-radius:2px;width:84%;height:4px;margin:.1rem auto 0;overflow:hidden}.dl-att__bar span[data-v-284316ce]{background:var(--dl-accent);height:100%;transition:width .25s;display:block}.dl-att__out[data-v-284316ce]{border-top:1px solid var(--dl-border);justify-content:center;align-items:center;gap:.4rem;width:100%;max-width:34rem;min-height:2.2rem;margin-top:.15rem;padding-top:.3rem;display:flex}.dl-att__out.is-empty[data-v-284316ce]{border-top-color:#0000}.dl-att__sum[data-v-284316ce]{letter-spacing:.08em;text-transform:uppercase;color:var(--dl-muted);font-size:.78rem}.dl-att__arrow[data-v-284316ce]{color:var(--dl-muted)}.dl-att__outlabel[data-v-284316ce]{color:var(--dl-heading);font-size:.95rem;font-style:italic;font-weight:600}.dl-att__outvec[data-v-284316ce]{gap:.3rem;display:flex}.dl-att__outcell[data-v-284316ce]{text-align:center;border:1px solid var(--dl-accent);background:var(--dl-accent-soft);width:3.6rem;color:var(--dl-heading);font-variant-numeric:tabular-nums;border-radius:4px;padding:.16rem 0;font-size:.92rem;font-weight:700}.dl-att__note[data-v-284316ce]{color:var(--dl-accent);margin-top:.15rem;display:block} diff --git a/lecture-06/class/assets/md-C7CHIzYm.css b/lecture-06/class/assets/md-C7CHIzYm.css new file mode 100644 index 0000000000000000000000000000000000000000..b3093394de288c41a62676784455c5efe27b9a2b --- /dev/null +++ b/lecture-06/class/assets/md-C7CHIzYm.css @@ -0,0 +1 @@ +.dl-poll__question[data-v-743a908f]{color:var(--dl-heading);margin-bottom:1.1rem;font-size:1.7rem;font-weight:600}.dl-poll__item[data-v-743a908f]{font-size:var(--dl-fs-body);align-items:baseline;gap:.7rem;margin:.55rem 0;display:flex}.dl-poll__bullet[data-v-743a908f]{background:var(--dl-accent-soft);width:1.5rem;height:1.5rem;color:var(--dl-accent);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;font-size:.85rem;font-weight:700;display:inline-flex} diff --git a/lecture-06/class/assets/md-CDVFD8Nc.js b/lecture-06/class/assets/md-CDVFD8Nc.js new file mode 100644 index 0000000000000000000000000000000000000000..46b407b41edddac1bba6d0bea7ecf201114f7621 --- /dev/null +++ b/lecture-06/class/assets/md-CDVFD8Nc.js @@ -0,0 +1 @@ +import{$ as e,E as t,Q as n,S as r,V as i,W as a,_ as o,_t as s,b as c,m as l,v as u,x as d,xt as f,yt as p,z as m}from"./modules/shiki-BFOesOFp.js";import{n as h,t as g}from"./slidev/context-DrkI8qiD.js";import{t as _}from"./default-Dm4DVug5.js";import{t as v}from"./slidev/VClicks-BJ1JuBhK.js";import{t as y}from"./slidev/KaTexBlockWrapper-D5wJOb_T.js";var b={class:`mt-1`},x={class:`grid grid-cols-2 gap-8 mt-1 dl-tight`},S={class:`mt-2 dl-secondary`},C={viewBox:`0 0 600 170`,class:`dl-diagram`,role:`img`,"aria-label":`The words the, river and bank each go up through their own copy of the same feed-forward network; there are no arrows between the columns`},w=[`x`],T=[`x`],E=[`d`],D=[`points`],O=[`x`],k=[`d`],A=[`x`],j={class:`mt-2 dl-callout`},M={__name:`class.md__slidev_22`,setup(M){let{$slidev:N,$nav:P,$clicksContext:F,$clicks:I,$page:L,$renderContext:R,$frontmatter:z}=h();return F.setup(),(h,M)=>{let N=y,P=v,F=a(`click`);return m(),u(_,p(t(s(g)(s(z),21))),{default:n(()=>[M[5]||=o(`h1`,null,`The other half of the block`,-1),M[6]||=o(`p`,null,[d(`After attention mixes the positions, each position goes through the `),o(`strong`,null,`same small network, alone`),d(`:`)],-1),o(`div`,b,[r(N,{ranges:[]},{default:n(()=>[...M[0]||=[o(`p`,null,[o(`span`,{class:`katex-display`},[o(`span`,{class:`katex`},[o(`span`,{class:`katex-mathml`},[o(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`,display:`block`},[o(`semantics`,null,[o(`mrow`,null,[o(`mi`,{mathvariant:`normal`},`FFN`),o(`mo`,null,`⁡`),o(`mo`,{stretchy:`false`},`(`),o(`mi`,{mathvariant:`bold`},`x`),o(`mo`,{stretchy:`false`},`)`),o(`mo`,null,`=`),o(`msub`,null,[o(`mi`,null,`W`),o(`mn`,null,`2`)]),o(`mtext`,null,` `),o(`mi`,null,`ϕ`),o(`mtext`,null,` ⁣`),o(`mrow`,null,[o(`mo`,{fence:`true`},`(`),o(`msub`,null,[o(`mi`,null,`W`),o(`mn`,null,`1`)]),o(`mi`,{mathvariant:`bold`},`x`),o(`mo`,null,`+`),o(`msub`,null,[o(`mi`,{mathvariant:`bold`},`b`),o(`mn`,null,`1`)]),o(`mo`,{fence:`true`},`)`)]),o(`mo`,null,`+`),o(`msub`,null,[o(`mi`,{mathvariant:`bold`},`b`),o(`mn`,null,`2`)])]),o(`annotation`,{encoding:`application/x-tex`},`\\operatorname{FFN}(\\mathbf{x}) = W_2\\,\\phi\\!\\left(W_1\\mathbf{x} + \\mathbf{b}_1\\right) + \\mathbf{b}_2`)])])]),o(`span`,{class:`katex-html`,"aria-hidden":`true`},[o(`span`,{class:`katex-base`},[o(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),o(`span`,{class:`mop`},[o(`span`,{class:`mord mathrm`},`FFN`)]),o(`span`,{class:`mopen`},`(`),o(`span`,{class:`mord mathbf`},`x`),o(`span`,{class:`mclose`},`)`),o(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),o(`span`,{class:`mrel`},`=`),o(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),o(`span`,{class:`katex-base`},[o(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),o(`span`,{class:`mord`},[o(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.1389em`}},`W`),o(`span`,{class:`msupsub`},[o(`span`,{class:`vlist-t vlist-t2`},[o(`span`,{class:`vlist-r`},[o(`span`,{class:`vlist`,style:{height:`0.3011em`}},[o(`span`,{style:{top:`-2.55em`,"margin-left":`-0.1389em`,"margin-right":`0.05em`}},[o(`span`,{class:`pstrut`,style:{height:`2.7em`}}),o(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[o(`span`,{class:`mord mtight`},`2`)])])]),o(`span`,{class:`vlist-s`},`​`)]),o(`span`,{class:`vlist-r`},[o(`span`,{class:`vlist`,style:{height:`0.15em`}},[o(`span`)])])])])]),o(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),o(`span`,{class:`mord mathnormal`},`ϕ`),o(`span`,{class:`mspace`,style:{"margin-right":`-0.1667em`}}),o(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),o(`span`,{class:`minner`},[o(`span`,{class:`mopen delimcenter`,style:{top:`0em`}},`(`),o(`span`,{class:`mord`},[o(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.1389em`}},`W`),o(`span`,{class:`msupsub`},[o(`span`,{class:`vlist-t vlist-t2`},[o(`span`,{class:`vlist-r`},[o(`span`,{class:`vlist`,style:{height:`0.3011em`}},[o(`span`,{style:{top:`-2.55em`,"margin-left":`-0.1389em`,"margin-right":`0.05em`}},[o(`span`,{class:`pstrut`,style:{height:`2.7em`}}),o(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[o(`span`,{class:`mord mtight`},`1`)])])]),o(`span`,{class:`vlist-s`},`​`)]),o(`span`,{class:`vlist-r`},[o(`span`,{class:`vlist`,style:{height:`0.15em`}},[o(`span`)])])])])]),o(`span`,{class:`mord mathbf`},`x`),o(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),o(`span`,{class:`mbin`},`+`),o(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),o(`span`,{class:`mord`},[o(`span`,{class:`mord mathbf`},`b`),o(`span`,{class:`msupsub`},[o(`span`,{class:`vlist-t vlist-t2`},[o(`span`,{class:`vlist-r`},[o(`span`,{class:`vlist`,style:{height:`0.3011em`}},[o(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[o(`span`,{class:`pstrut`,style:{height:`2.7em`}}),o(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[o(`span`,{class:`mord mtight`},`1`)])])]),o(`span`,{class:`vlist-s`},`​`)]),o(`span`,{class:`vlist-r`},[o(`span`,{class:`vlist`,style:{height:`0.15em`}},[o(`span`)])])])])]),o(`span`,{class:`mclose delimcenter`,style:{top:`0em`}},`)`)]),o(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),o(`span`,{class:`mbin`},`+`),o(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),o(`span`,{class:`katex-base`},[o(`span`,{class:`katex-strut`,style:{height:`0.8444em`,"vertical-align":`-0.15em`}}),o(`span`,{class:`mord`},[o(`span`,{class:`mord mathbf`},`b`),o(`span`,{class:`msupsub`},[o(`span`,{class:`vlist-t vlist-t2`},[o(`span`,{class:`vlist-r`},[o(`span`,{class:`vlist`,style:{height:`0.3011em`}},[o(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[o(`span`,{class:`pstrut`,style:{height:`2.7em`}}),o(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[o(`span`,{class:`mord mtight`},`2`)])])]),o(`span`,{class:`vlist-s`},`​`)]),o(`span`,{class:`vlist-r`},[o(`span`,{class:`vlist`,style:{height:`0.15em`}},[o(`span`)])])])])])])])])])],-1)]]),_:1})]),o(`div`,x,[o(`div`,null,[r(P,null,{default:n(()=>[...M[1]||=[o(`ul`,null,[o(`li`,null,`Two linear layers and a non-linearity: lecture 02’s MLP (multilayer perceptron)`),o(`li`,null,[o(`strong`,null,`Position-wise`),d(`: no token sees another`)]),o(`li`,null,[d(`Wide in the middle: `),o(`span`,{class:`katex`},[o(`span`,{class:`katex-mathml`},[o(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[o(`semantics`,null,[o(`mrow`,null,[o(`msub`,null,[o(`mi`,null,`d`),o(`mtext`,null,`ff`)]),o(`mo`,null,`=`),o(`mn`,null,`4`),o(`mi`,null,`d`),o(`mo`,null,`=`),o(`mn`,null,`2048`)]),o(`annotation`,{encoding:`application/x-tex`},`d_{\\text{ff}} = 4d = 2048`)])])]),o(`span`,{class:`katex-html`,"aria-hidden":`true`},[o(`span`,{class:`katex-base`},[o(`span`,{class:`katex-strut`,style:{height:`0.8444em`,"vertical-align":`-0.15em`}}),o(`span`,{class:`mord`},[o(`span`,{class:`mord mathnormal`},`d`),o(`span`,{class:`msupsub`},[o(`span`,{class:`vlist-t vlist-t2`},[o(`span`,{class:`vlist-r`},[o(`span`,{class:`vlist`,style:{height:`0.3361em`}},[o(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[o(`span`,{class:`pstrut`,style:{height:`2.7em`}}),o(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[o(`span`,{class:`mord mtight`},[o(`span`,{class:`mord text mtight`},[o(`span`,{class:`mord mtight`},`ff`)])])])])]),o(`span`,{class:`vlist-s`},`​`)]),o(`span`,{class:`vlist-r`},[o(`span`,{class:`vlist`,style:{height:`0.15em`}},[o(`span`)])])])])]),o(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),o(`span`,{class:`mrel`},`=`),o(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),o(`span`,{class:`katex-base`},[o(`span`,{class:`katex-strut`,style:{height:`0.6944em`}}),o(`span`,{class:`mord`},`4`),o(`span`,{class:`mord mathnormal`},`d`),o(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),o(`span`,{class:`mrel`},`=`),o(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),o(`span`,{class:`katex-base`},[o(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),o(`span`,{class:`mord`},`2048`)])])])])],-1)]]),_:1}),e((m(),c(`div`,S,[...M[2]||=[o(`p`,null,[o(`span`,{class:`katex`},[o(`span`,{class:`katex-mathml`},[o(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[o(`semantics`,null,[o(`mrow`,null,[o(`mn`,null,`2`),o(`mo`,null,`×`),o(`mn`,null,`512`),o(`mo`,null,`×`),o(`mn`,null,`2048`),o(`mo`,null,`=`),o(`mn`,null,`2`),o(`mtext`,null,` `),o(`mn`,null,`097`),o(`mtext`,null,` `),o(`mn`,null,`152`)]),o(`annotation`,{encoding:`application/x-tex`},`2 \\times 512 \\times 2048 = 2\\,097\\,152`)])])]),o(`span`,{class:`katex-html`,"aria-hidden":`true`},[o(`span`,{class:`katex-base`},[o(`span`,{class:`katex-strut`,style:{height:`0.7278em`,"vertical-align":`-0.0833em`}}),o(`span`,{class:`mord`},`2`),o(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),o(`span`,{class:`mbin`},`×`),o(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),o(`span`,{class:`katex-base`},[o(`span`,{class:`katex-strut`,style:{height:`0.7278em`,"vertical-align":`-0.0833em`}}),o(`span`,{class:`mord`},`512`),o(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),o(`span`,{class:`mbin`},`×`),o(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),o(`span`,{class:`katex-base`},[o(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),o(`span`,{class:`mord`},`2048`),o(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),o(`span`,{class:`mrel`},`=`),o(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),o(`span`,{class:`katex-base`},[o(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),o(`span`,{class:`mord`},`2`),o(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),o(`span`,{class:`mord`},`097`),o(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),o(`span`,{class:`mord`},`152`)])])]),d(` weights, against 1.05 M for attention: `),o(`strong`,null,`two thirds of the block.`)],-1)]])),[[F]])]),o(`div`,null,[(m(),c(`svg`,C,[M[3]||=o(`defs`,null,[o(`marker`,{id:`l6s2-ffn-arrow`,markerWidth:`7`,markerHeight:`7`,refX:`6`,refY:`3.5`,orient:`auto`},[o(`path`,{class:`dl-dg-head`,d:`M0 0 L7 3.5 L0 7 z`})])],-1),(m(),c(l,null,i([`the`,`river`,`bank`],(e,t)=>o(`g`,{key:t},[o(`rect`,{class:`dl-dg-box`,x:50+t*200,y:`138`,width:`100`,height:`28`,rx:`4`},null,8,w),o(`text`,{class:`dl-dg-lab is-sm`,x:100+t*200,y:`157`,"text-anchor":`middle`},f(e),9,T),o(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#l6s2-ffn-arrow)`,d:`M`+(100+t*200)+` 136 V120`},null,8,E),o(`polygon`,{class:`dl-dg-net`,points:80+t*200+`,116 `+(120+t*200)+`,116 `+(160+t*200)+`,80 `+(120+t*200)+`,44 `+(80+t*200)+`,44 `+(40+t*200)+`,80`},null,8,D),o(`text`,{class:`dl-dg-in`,x:100+t*200,y:`85`,"text-anchor":`middle`},`FFN`,8,O),o(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#l6s2-ffn-arrow)`,d:`M`+(100+t*200)+` 42 V24`},null,8,k),o(`rect`,{class:`dl-dg-box is-accent`,x:60+t*200,y:`2`,width:`80`,height:`20`,rx:`4`},null,8,A)])),64))])),e((m(),c(`div`,j,[...M[4]||=[o(`p`,null,[d(`Attention decides `),o(`strong`,null,`what to gather`),d(`. This decides `),o(`strong`,null,`what to do with it`),d(`.`)],-1)]])),[[F]])])])]),_:1},16)}}};export{M as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-CE5SRCC8.js b/lecture-06/class/assets/md-CE5SRCC8.js new file mode 100644 index 0000000000000000000000000000000000000000..34204ceae0eca5c1ae7dbc9dcbc69500f3542b1a --- /dev/null +++ b/lecture-06/class/assets/md-CE5SRCC8.js @@ -0,0 +1,3 @@ +import{$ as e,E as t,Q as n,S as r,W as i,_ as a,_t as o,b as s,v as c,x as l,yt as u,z as d}from"./modules/shiki-BFOesOFp.js";import{n as f,t as p}from"./slidev/context-DrkI8qiD.js";import{t as m}from"./default-Dm4DVug5.js";import{t as h}from"./slidev/VClicks-BJ1JuBhK.js";import{t as g}from"./slidev/CodeBlockWrapper-iqMg4CiG.js";var _={class:`grid grid-cols-[1fr_1.05fr] gap-8 mt-1 items-start`},v={class:`dl-tight`},y={viewBox:`0 0 320 232`,class:`dl-diagram`,style:{"max-height":`16rem`},role:`img`,"aria-label":`Top: a dictionary query river matches one key exactly and returns one value. Bottom: an attention query is compared with every key, and every value is blended by how well its key matched`},b={class:`mt-2 dl-callout`},x={__name:`class.md__slidev_9`,setup(x){let{$slidev:S,$nav:C,$clicksContext:w,$clicks:T,$page:E,$renderContext:D,$frontmatter:O}=f();return w.setup(),(f,x)=>{let S=g,C=h,w=i(`click`);return d(),c(m,u(t(o(p)(o(O),8))),{default:n(()=>[x[18]||=a(`h1`,null,`Start from a lookup`,-1),a(`div`,_,[a(`div`,v,[x[2]||=a(`p`,null,[l(`A Python dictionary finds the `),a(`strong`,null,`exact`),l(` key and hands back its value.`)],-1),r(S,{title:``,ranges:[]},{default:n(()=>[...x[0]||=[a(`pre`,{class:`shiki shiki-themes vitesse-dark vitesse-light slidev-code`,style:{"--shiki-dark":`#dbd7caee`,"--shiki-light":`#393a34`,"--shiki-dark-bg":`#121212`,"--shiki-light-bg":`#ffffff`}},[a(`code`,{class:`language-python`},[a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`store `),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`=`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},` {`),a(`span`,{style:{"--shiki-dark":`#C98A7D77`,"--shiki-light":`#B5695977`}},`"`),a(`span`,{style:{"--shiki-dark":`#C98A7D`,"--shiki-light":`#B56959`}},`river`),a(`span`,{style:{"--shiki-dark":`#C98A7D77`,"--shiki-light":`#B5695977`}},`"`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`:`),a(`span`,{style:{"--shiki-dark":`#C98A7D77`,"--shiki-light":`#B5695977`}},` "`),a(`span`,{style:{"--shiki-dark":`#C98A7D`,"--shiki-light":`#B56959`}},`waterside`),a(`span`,{style:{"--shiki-dark":`#C98A7D77`,"--shiki-light":`#B5695977`}},`"`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`,`),a(`span`,{style:{"--shiki-dark":`#C98A7D77`,"--shiki-light":`#B5695977`}},` "`),a(`span`,{style:{"--shiki-dark":`#C98A7D`,"--shiki-light":`#B56959`}},`money`),a(`span`,{style:{"--shiki-dark":`#C98A7D77`,"--shiki-light":`#B5695977`}},`"`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`:`),a(`span`,{style:{"--shiki-dark":`#C98A7D77`,"--shiki-light":`#B5695977`}},` "`),a(`span`,{style:{"--shiki-dark":`#C98A7D`,"--shiki-light":`#B56959`}},`financial`),a(`span`,{style:{"--shiki-dark":`#C98A7D77`,"--shiki-light":`#B5695977`}},`"`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`}`)]),l(` +`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`store`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`[`),a(`span`,{style:{"--shiki-dark":`#C98A7D77`,"--shiki-light":`#B5695977`}},`"`),a(`span`,{style:{"--shiki-dark":`#C98A7D`,"--shiki-light":`#B56959`}},`river`),a(`span`,{style:{"--shiki-dark":`#C98A7D77`,"--shiki-light":`#B5695977`}},`"`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`]`),a(`span`,{style:{"--shiki-dark":`#758575DD`,"--shiki-light":`#A0ADA0`}},` # → 'waterside' one winner`)]),l(` +`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`store`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`[`),a(`span`,{style:{"--shiki-dark":`#C98A7D77`,"--shiki-light":`#B5695977`}},`"`),a(`span`,{style:{"--shiki-dark":`#C98A7D`,"--shiki-light":`#B56959`}},`stream`),a(`span`,{style:{"--shiki-dark":`#C98A7D77`,"--shiki-light":`#B5695977`}},`"`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`]`),a(`span`,{style:{"--shiki-dark":`#758575DD`,"--shiki-light":`#A0ADA0`}},` # → KeyError nothing at all`)])])],-1)]]),_:1}),r(C,null,{default:n(()=>[...x[1]||=[a(`ul`,null,[a(`li`,null,[l(`What you bring: the `),a(`strong`,null,`query`)]),a(`li`,null,[l(`What each entry advertises: its `),a(`strong`,null,`key`)]),a(`li`,null,[l(`What you get back: its `),a(`strong`,null,`value`)])],-1)]]),_:1})]),a(`div`,null,[(d(),s(`svg`,y,[x[4]||=a(`defs`,null,[a(`marker`,{id:`l6s1-lookup`,markerWidth:`7`,markerHeight:`7`,refX:`6`,refY:`3.5`,orient:`auto`},[a(`path`,{class:`dl-dg-head`,d:`M0 0 L7 3.5 L0 7 z`})])],-1),x[5]||=a(`text`,{class:`dl-dg-small`,x:`4`,y:`14`},`dictionary`,-1),x[6]||=a(`rect`,{class:`dl-dg-box`,x:`4`,y:`34`,width:`64`,height:`26`,rx:`4`},null,-1),x[7]||=a(`text`,{class:`dl-dg-lab is-sm`,x:`36`,y:`52`,"text-anchor":`middle`,style:{"font-style":`italic`}},`river`,-1),x[8]||=a(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#l6s1-lookup)`,d:`M70 40 L110 35`},null,-1),x[9]||=a(`rect`,{class:`dl-dg-box is-accent`,x:`114`,y:`24`,width:`64`,height:`22`,rx:`3`},null,-1),x[10]||=a(`text`,{class:`dl-dg-small`,x:`146`,y:`39`,"text-anchor":`middle`},`river`,-1),x[11]||=a(`rect`,{class:`dl-dg-box`,x:`114`,y:`52`,width:`64`,height:`22`,rx:`3`},null,-1),x[12]||=a(`text`,{class:`dl-dg-small`,x:`146`,y:`67`,"text-anchor":`middle`},`money`,-1),x[13]||=a(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#l6s1-lookup)`,d:`M180 35 H218`},null,-1),x[14]||=a(`rect`,{class:`dl-dg-box is-accent`,x:`222`,y:`24`,width:`90`,height:`22`,rx:`3`},null,-1),x[15]||=a(`text`,{class:`dl-dg-small`,x:`267`,y:`39`,"text-anchor":`middle`},`waterside`,-1),x[16]||=a(`text`,{class:`dl-dg-small`,x:`114`,y:`92`},`exact match: one winner`,-1),e((d(),s(`g`,null,[...x[3]||=[a(`line`,{class:`dl-dg-split`,x1:`4`,y1:`104`,x2:`316`,y2:`104`},null,-1),a(`text`,{class:`dl-dg-small is-good`,x:`4`,y:`122`},`attention`,-1),a(`path`,{class:`dl-dg-line is-muted`,d:`M40 176 L116 145`,style:{strokeWidth:1.5}},null,-1),a(`path`,{class:`dl-dg-line`,d:`M40 176 L116 173`,style:{strokeWidth:6}},null,-1),a(`path`,{class:`dl-dg-line is-muted`,d:`M40 176 L116 201`,style:{strokeWidth:2.5}},null,-1),a(`circle`,{class:`dl-dg-dot is-accent`,cx:`30`,cy:`176`,r:`12`},null,-1),a(`text`,{x:`30`,y:`181`,"text-anchor":`middle`,style:{fill:`var(--dl-bg)`,"font-size":`13px`,"font-weight":`700`}},`q`,-1),a(`rect`,{class:`dl-dg-box`,x:`116`,y:`134`,width:`50`,height:`22`,rx:`3`},null,-1),a(`rect`,{class:`dl-dg-box is-accent`,x:`116`,y:`162`,width:`50`,height:`22`,rx:`3`},null,-1),a(`rect`,{class:`dl-dg-box`,x:`116`,y:`190`,width:`50`,height:`22`,rx:`3`},null,-1),a(`text`,{class:`dl-dg-small`,x:`141`,y:`149`,"text-anchor":`middle`},`key 1`,-1),a(`text`,{class:`dl-dg-small`,x:`141`,y:`177`,"text-anchor":`middle`},`key 2`,-1),a(`text`,{class:`dl-dg-small`,x:`141`,y:`205`,"text-anchor":`middle`},`key 3`,-1),a(`rect`,{class:`dl-dg-box`,x:`176`,y:`134`,width:`54`,height:`22`,rx:`3`},null,-1),a(`rect`,{class:`dl-dg-box is-accent`,x:`176`,y:`162`,width:`54`,height:`22`,rx:`3`},null,-1),a(`rect`,{class:`dl-dg-box`,x:`176`,y:`190`,width:`54`,height:`22`,rx:`3`},null,-1),a(`text`,{class:`dl-dg-small`,x:`203`,y:`149`,"text-anchor":`middle`},`value 1`,-1),a(`text`,{class:`dl-dg-small`,x:`203`,y:`177`,"text-anchor":`middle`},`value 2`,-1),a(`text`,{class:`dl-dg-small`,x:`203`,y:`205`,"text-anchor":`middle`},`value 3`,-1),a(`path`,{class:`dl-dg-line is-muted`,d:`M230 145 L262 170`,style:{strokeWidth:1.5}},null,-1),a(`path`,{class:`dl-dg-line`,d:`M230 173 L262 173`,style:{strokeWidth:6}},null,-1),a(`path`,{class:`dl-dg-line is-muted`,d:`M230 201 L262 176`,style:{strokeWidth:2.5}},null,-1),a(`rect`,{class:`dl-dg-box is-accent`,x:`262`,y:`160`,width:`52`,height:`26`,rx:`4`},null,-1),a(`text`,{class:`dl-dg-small`,x:`288`,y:`177`,"text-anchor":`middle`},`blend`,-1),a(`text`,{class:`dl-dg-small`,x:`116`,y:`228`},`similarity: every value, weighted`,-1)]])),[[w]])]))])]),e((d(),s(`div`,b,[...x[17]||=[a(`p`,null,[l(`Attention is this lookup made `),a(`strong`,null,`soft`),l(`: it matches by `),a(`em`,null,`similarity`),l(`, and returns a blend of `),a(`strong`,null,`every`),l(` value.`)],-1)]])),[[w]])]),_:1},16)}}};export{x as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-CECtUrix.js b/lecture-06/class/assets/md-CECtUrix.js new file mode 100644 index 0000000000000000000000000000000000000000..fe097f699b2fbae24bf616c85a292c529fdbd71b --- /dev/null +++ b/lecture-06/class/assets/md-CECtUrix.js @@ -0,0 +1,257 @@ +import{$ as e,E as t,Q as n,S as r,V as i,W as a,_ as o,_t as s,b as c,g as l,lt as u,m as d,v as f,vt as p,w as m,x as h,xt as g,y as _,yt as v,z as y}from"./modules/shiki-BFOesOFp.js";import{t as b}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as x,t as S}from"./slidev/context-DrkI8qiD.js";import"./index-BSNgeX_T.js";import{t as C}from"./slidev/VClicks-BJ1JuBhK.js";import{t as ee}from"./WidgetFrame-D2L0MlKA.js";import{t as te}from"./StepButton-BcP33F-1.js";import{t as ne}from"./useConvolution-qO1u8ksh.js";import{a as re,c as ie,i as ae,l as oe,o as se,s as ce,t as le}from"./useAttention-Blk0c2BZ.js";import{t as ue}from"./interactive-BCz0jAef.js";var w=class e extends Error{constructor(t,n){var r=`KaTeX parse error: `+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var c=s.slice(i,a).replace(/[^]/g,`$&̲`),l=i>15?`…`+s.slice(i-15,i):s.slice(0,i),u=a+15e.replace(de,`-$1`).toLowerCase(),pe={"&":`&`,">":`>`,"<":`<`,'"':`"`,"'":`'`},me=/[&><"']/g,T=e=>String(e).replace(me,e=>pe[e]),he=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?he(e.body[0]):e:e.type===`font`?he(e.body):e,ge=new Set([`mathord`,`textord`,`atom`]),_e=e=>ge.has(he(e).type),ve=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},ye={displayMode:{type:`boolean`,description:`Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.`,cli:`-d, --display-mode`},output:{type:{enum:[`htmlAndMathml`,`html`,`mathml`]},description:`Determines the markup language of the output.`,cli:`-F, --format `},leqno:{type:`boolean`,description:`Render display math in leqno style (left-justified tags).`},fleqn:{type:`boolean`,description:`Render display math flush left.`},throwOnError:{type:`boolean`,default:!0,cli:`-t, --no-throw-on-error`,cliDescription:`Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.`},errorColor:{type:`string`,default:`#cc0000`,cli:`-c, --error-color `,cliDescription:`A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.`,cliProcessor:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro `,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness `,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size `,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand `,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}};function be(e){if(typeof e!=`string`)return e.enum[0];switch(e){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{};default:throw Error(`Unexpected schema type; settings must declare an explicit default.`)}}function xe(e){return Object.prototype.hasOwnProperty.call(e,`default`)&&e.default!==void 0?e.default:be(Array.isArray(e.type)?e.type[0]:e.type)}function Se(e,t,n,r){var i=Object.prototype.hasOwnProperty.call(n,t)?n[t]:void 0,a=Object.prototype.hasOwnProperty.call(r,`processor`)?r.processor:void 0;e[t]=i===void 0?xe(r):a?a(i):i}var Ce=class{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e||={};for(var t of Object.keys(ye)){var n=ye[t];n&&Se(this,t,e,n)}}reportNonstrict(e,t,n){var r=this.strict;if(typeof r==`function`&&(r=r(e,t,n)),!(!r||r===`ignore`)){if(r===!0||r===`error`)throw new w(`LaTeX-incompatible input and strict mode is set to 'error': `+(t+` [`+e+`]`),n);r===`warn`?typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)):typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`))}}useStrictBehavior(e,t,n){var r=this.strict;if(typeof r==`function`)try{r=r(e,t,n)}catch{r=`error`}return!r||r===`ignore`?!1:r===!0||r===`error`?!0:r===`warn`?(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)),!1):(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`)),!1)}isTrusted(e){if(`url`in e&&e.url&&!e.protocol){var t=ve(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},we=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return Ne[Pe[this.id]]}sub(){return Ne[Fe[this.id]]}fracNum(){return Ne[Ie[this.id]]}fracDen(){return Ne[Le[this.id]]}cramp(){return Ne[Re[this.id]]}text(){return Ne[ze[this.id]]}isTight(){return this.size>=2}},Te=0,Ee=1,De=2,Oe=3,ke=4,Ae=5,je=6,Me=7,Ne=[new we(Te,0,!1),new we(Ee,0,!0),new we(De,1,!1),new we(Oe,1,!0),new we(ke,2,!1),new we(Ae,2,!0),new we(je,3,!1),new we(Me,3,!0)],Pe=[ke,Ae,ke,Ae,je,Me,je,Me],Fe=[Ae,Ae,Ae,Ae,Me,Me,Me,Me],Ie=[De,Oe,ke,Ae,je,Me,je,Me],Le=[Oe,Oe,Ae,Ae,Me,Me,Me,Me],Re=[Ee,Ee,Oe,Oe,Ae,Ae,Me,Me],ze=[Te,Ee,De,Oe,De,Oe,De,Oe],E={DISPLAY:Ne[Te],TEXT:Ne[De],SCRIPT:Ne[ke],SCRIPTSCRIPT:Ne[je]},Be=[{name:`latin`,blocks:[[256,591],[768,879]]},{name:`cyrillic`,blocks:[[1024,1279]]},{name:`armenian`,blocks:[[1328,1423]]},{name:`brahmic`,blocks:[[2304,4255]]},{name:`georgian`,blocks:[[4256,4351]]},{name:`cjk`,blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:`hangul`,blocks:[[44032,55215]]}];function Ve(e){for(var t=0;t=i[0]&&e<=i[1])return n.name}return null}var He=[];Be.forEach(e=>e.blocks.forEach(e=>He.push(...e)));function Ue(e){for(var t=0;t=He[t]&&e<=He[t+1])return!0;return!1}var We=e=>e+` `+e,Ge=80,Ke=function(e,t){return`M95,`+(622+e+t)+` +c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 +c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 +c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 +s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 +c69,-144,104.5,-217.7,106.5,-221 +l`+e/2.075+` -`+e+` +c5.3,-9.3,12,-14,20,-14 +H400000v`+(40+e)+`H845.2724 +s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 +c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z +M`+(834+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},qe=function(e,t){return`M263,`+(601+e+t)+`c0.7,0,18,39.7,52,119 +c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 +c340,-704.7,510.7,-1060.3,512,-1067 +l`+e/2.084+` -`+e+` +c4.7,-7.3,11,-11,19,-11 +H40000v`+(40+e)+`H1012.3 +s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 +c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 +s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 +c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z +M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},Je=function(e,t){return`M983 `+(10+e+t)+` +l`+e/3.13+` -`+e+` +c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+` +H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 +s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 +c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 +c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 +c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 +c53.7,-170.3,84.5,-266.8,92.5,-289.5z +M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},Ye=function(e,t){return`M424,`+(2398+e+t)+` +c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 +c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 +s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 +s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 +l`+e/4.223+` -`+e+`c4,-6.7,10,-10,18,-10 H400000 +v`+(40+e)+`H1014.6 +s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 +c-2,6,-10,9,-24,9 +c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+` `+t+` +h400000v`+(40+e)+`h-400000z`},Xe=function(e,t){return`M473,`+(2713+e+t)+` +c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+` -`+e+` +c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7 +s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 +c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 +c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 +s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, +606zM`+(1001+e)+` `+t+`h400000v`+(40+e)+`H1017.7z`},Ze=function(e){var t=e/2;return`M400000 `+e+` H0 L`+t+` 0 l65 45 L145 `+(e-80)+` H400000z`},Qe=function(e,t,n){var r=n-54-t-e;return`M702 `+(e+t)+`H400000`+(40+e)+` +H742v`+r+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 +h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 +c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 +219 661 l218 661zM702 `+t+`H400000v`+(40+e)+`H742z`},$e=function(e,t,n){t=1e3*t;var r=``;switch(e){case`sqrtMain`:r=Ke(t,Ge);break;case`sqrtSize1`:r=qe(t,Ge);break;case`sqrtSize2`:r=Je(t,Ge);break;case`sqrtSize3`:r=Ye(t,Ge);break;case`sqrtSize4`:r=Xe(t,Ge);break;case`sqrtTall`:r=Qe(t,Ge,n)}return r},et=function(e,t){switch(e){case`⎜`:return We(`M291 0 H417 V`+t+` H291z`);case`∣`:return We(`M145 0 H188 V`+t+` H145z`);case`∥`:return We(`M145 0 H188 V`+t+` H145z`)+We(`M367 0 H410 V`+t+` H367z`);case`⎟`:return We(`M457 0 H583 V`+t+` H457z`);case`⎢`:return We(`M319 0 H403 V`+t+` H319z`);case`⎥`:return We(`M263 0 H347 V`+t+` H263z`);case`⎪`:return We(`M384 0 H504 V`+t+` H384z`);case`⏐`:return We(`M312 0 H355 V`+t+` H312z`);case`‖`:return We(`M257 0 H300 V`+t+` H257z`)+We(`M478 0 H521 V`+t+` H478z`);default:return``}},tt={doubleleftarrow:`M262 157 +l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 + 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 + 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 +c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5 + 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87 +-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 +-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z +m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l +-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5 + 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88 +-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68 +-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18 +-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 +c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3 +-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 + 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8 +-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247 +c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208 + 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3 + 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202 + l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 +-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 + 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13 + 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688 + 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 +-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 +H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0 + 435 0h399565z`,leftgroupunder:`M400000 262 +H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 + 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 +-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5 +-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7 +-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5 + 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3 +-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7 +-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z +m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 + 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 + 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667 +-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12 + 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7 +-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 +v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 +-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3 +-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21 + 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:We(`M40 281 V428 H0 V94 H40 V241 H400000 v40z`),leftbracketunder:We(`M0 0 h120 V290 H399995 v120 H0z`),leftbracketover:We(`M0 440 h120 V150 H399995 v-120 H0z`),leftmapsto:We(`M40 281 V448H0V74H40V241H400000v40z`),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 +-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 +c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3 + 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:We(`M0 50 h400000 v40H0z m0 194h40000v40H0z`),midbrace:`M200428 334 +c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14 +-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 + 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11 + 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 +c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14 + 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 + 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0 +-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6 +-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z +m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8 +60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8 +-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z +m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 +c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6 +-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z +m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 +85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8 +-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z +m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 +c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128 +-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 + 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 + 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85 +-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 +-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 + 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l +-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5 +s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 +c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3 + 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 +-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0 + 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18 + 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3 +-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2 +-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 + 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11 +-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7 + 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z +m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 + 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5 +-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95 +-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8 + 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 + 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3 +-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z +m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3 + 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0 +-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21 + 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:We(`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`),rightbracketunder:We(`M399995 0 h-120 V290 H0 v120 H400000z`),rightbracketover:We(`M399995 440 h-120 V150 H0 v-120 H399995z`),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 + 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 +-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142 +-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 + 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69 +-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 +-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 +-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 + 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167 +c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 + 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42 + 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 +-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 + 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7 +-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0 + 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0 + 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 +-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 +-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9 + 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 +c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751 + 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457 +-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 + 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 + 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 + -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 +-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 + 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 + 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 + -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5 +3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 +10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 +-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1 +-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 +H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 +c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 +c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1, +-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202 +c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 +c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130 +s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47 +121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6 +s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11 +c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z +M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32 +-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 +13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39 +-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5 +-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 +-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 +151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 +c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 +c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21 +c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 +c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z +M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 +c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, +-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 +c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z +M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 +c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9, +1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7, +-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z +M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0 +c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, +-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 +c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z +M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},nt=function(e,t){switch(e){case`lbrack`:return`M403 1759 V84 H666 V0 H319 V1759 v`+t+` v1759 v84 h347 v-84 +H403z M403 1759 V0 H319 V1759 v`+t+` v1759 v84 h84z`;case`rbrack`:return`M347 1759 V0 H0 V84 H263 V1759 v`+t+` v1759 H0 v84 H347z +M347 1759 V0 H263 V1759 v`+t+` v1759 h84z`;case`vert`:return`M145 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z`;case`doublevert`:return`M145 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z +M367 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+t+` v585 h43z`;case`lfloor`:return`M319 602 V0 H403 V602 v`+t+` v1715 h263 v84 H319z +MM319 602 V0 H403 V602 v`+t+` v1715 H319z`;case`rfloor`:return`M319 602 V0 H403 V602 v`+t+` v1799 H0 v-84 H319z +MM319 602 V0 H403 V602 v`+t+` v1715 H319z`;case`lceil`:return`M403 1759 V84 H666 V0 H319 V1759 v`+t+` v602 h84z +M403 1759 V0 H319 V1759 v`+t+` v602 h84z`;case`rceil`:return`M347 1759 V0 H0 V84 H263 V1759 v`+t+` v602 h84z +M347 1759 V0 h-84 V1759 v`+t+` v602 h84z`;case`lparen`:return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1 +c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349, +-36,557 l0,`+(t+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210, +949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9 +c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5, +-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189 +l0,-`+(t+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3, +-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case`rparen`:return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3, +63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5 +c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(t+9)+` +c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664 +c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11 +c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 +c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 +l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, +-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw Error(`Unknown stretchy delimiter.`)}};function rt(e){return`toText`in e}var it=class{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t{if(rt(e))return e.toText();throw Error(`Expected MathDomNode with toText, got `+e.constructor.name)}).join(``)}},at={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},ot={ex:!0,em:!0,mu:!0},st=function(e){return typeof e!=`string`&&(e=e.unit),e in at||e in ot||e===`ex`},D=function(e,t){var n;if(e.unit in at)n=at[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit===`mu`)n=t.fontMetrics().cssEmPerMu;else{var r=t.style.isTight()?t.havingStyle(t.style.text()):t;if(e.unit===`ex`)n=r.fontMetrics().xHeight;else if(e.unit===`em`)n=r.fontMetrics().quad;else throw new w(`Invalid unit: '`+e.unit+`'`);r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},O=function(e){return+e.toFixed(4)+`em`},ct=function(e){return e.filter(e=>e).join(` `)},lt=function(e){var t=``;for(var n of Object.keys(e)){var r=e[n];r!==void 0&&(t+=fe(n)+`:`+r+`;`)}return t},ut=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push(`mtight`);var r=t.getColor();r&&(this.style.color=r)}},dt=function(e){var t=document.createElement(e);t.className=ct(this.classes),Object.assign(t.style,this.style);for(var n of Object.keys(this.attributes))t.setAttribute(n,this.attributes[n]);for(var r=0;r/=\x00-\x1f]/,pt=function(e){var t=`<`+e;this.classes.length&&(t+=` class="`+T(ct(this.classes))+`"`);var n=lt(this.style);n&&(t+=` style="`+T(n)+`"`);for(var r of Object.keys(this.attributes)){if(ft.test(r))throw new w(`Invalid attribute name '`+r+`'`);t+=` `+r+`="`+T(this.attributes[r])+`"`}t+=`>`;for(var i=0;i`,t},mt=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,ut.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return dt.call(this,`span`)}toMarkup(){return pt.call(this,`span`)}},ht=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,ut.call(this,t,r),this.children=n||[],this.setAttribute(`href`,e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return dt.call(this,`a`)}toMarkup(){return pt.call(this,`a`)}},gt=class{constructor(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=[`mord`],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement(`img`);return e.src=this.src,e.alt=this.alt,e.className=`mord`,Object.assign(e.style,this.style),e}toMarkup(){var e=``+T(this.alt)+``,e}},_t={î:`ı̂`,ï:`ı̈`,í:`ı́`,ì:`ı̀`},vt=class{constructor(e,t,n,r,i,a,o,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=i||0,this.width=a||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var c=Ve(this.text.charCodeAt(0));c&&this.classes.push(c+`_fallback`),/[îïíì]/.test(this.text)&&(this.text=_t[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;return this.italic>0&&(t=document.createElement(`span`),t.style.marginRight=O(this.italic)),this.classes.length>0&&(t||=document.createElement(`span`),t.className=ct(this.classes)),Object.keys(this.style).length>0&&(t||=document.createElement(`span`),Object.assign(t.style,this.style)),t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t=`0&&(n+=`margin-right:`+O(this.italic)+`;`),n+=lt(this.style),n&&(e=!0,t+=` style="`+T(n)+`"`);var r=T(this.text);return e?(t+=`>`,t+=r,t+=``,t):r}},yt=class{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);for(var n=0;n`;for(var n=0;n`,e}},bt=class{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return this.alternate?e.setAttribute(`d`,this.alternate):e.setAttribute(`d`,tt[this.pathName]),e}toMarkup(){return this.alternate?``:``}},xt=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`line`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e=``,e}};function St(e){if(e instanceof vt)return e;throw Error(`Expected symbolNode but got `+String(e)+`.`)}function Ct(e){if(e instanceof mt)return e;throw Error(`Expected span but got `+String(e)+`.`)}var wt=e=>e instanceof mt||e instanceof ht||e instanceof it,Tt={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Et={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Dt={Å:`A`,Ð:`D`,Þ:`o`,å:`a`,ð:`d`,þ:`o`,А:`A`,Б:`B`,В:`B`,Г:`F`,Д:`A`,Е:`E`,Ж:`K`,З:`3`,И:`N`,Й:`N`,К:`K`,Л:`N`,М:`M`,Н:`H`,О:`O`,П:`N`,Р:`P`,С:`C`,Т:`T`,У:`y`,Ф:`O`,Х:`X`,Ц:`U`,Ч:`h`,Ш:`W`,Щ:`W`,Ъ:`B`,Ы:`X`,Ь:`B`,Э:`3`,Ю:`X`,Я:`R`,а:`a`,б:`b`,в:`a`,г:`r`,д:`y`,е:`e`,ж:`m`,з:`e`,и:`n`,й:`n`,к:`n`,л:`n`,м:`m`,н:`n`,о:`o`,п:`n`,р:`p`,с:`c`,т:`o`,у:`y`,ф:`b`,х:`x`,ц:`n`,ч:`n`,ш:`w`,щ:`w`,ъ:`a`,ы:`m`,ь:`a`,э:`e`,ю:`m`,я:`r`};function Ot(e,t){Tt[e]=t}function kt(e,t,n){if(!Tt[t])throw Error(`Font metrics not found for font: `+t+`.`);var r=e.charCodeAt(0),i=Tt[t][r];if(!i&&e[0]in Dt&&(r=Dt[e[0]].charCodeAt(0),i=Tt[t][r]),!i&&n===`text`&&Ue(r)&&(i=Tt[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var At={};function jt(e){var t=e>=5?0:e>=3?1:2;if(!At[t]){var n=At[t]={cssEmPerMu:Et.quad[t]/18};for(var r of Object.keys(Et))n[r]=Et[r][t]}return At[t]}var k={math:{},text:{}};function A(e,t,n,r,i,a){k[e][i]={font:t,group:n,replace:r},a&&r&&(k[e][r]=k[e][i])}var j=`math`,M=`text`,N=`main`,P=`ams`,F=`accent-token`,I=`bin`,Mt=`close`,Nt=`inner`,L=`mathord`,R=`op-token`,Pt=`open`,Ft=`punct`,z=`rel`,It=`spacing`,B=`textord`;A(j,N,z,`≡`,`\\equiv`,!0),A(j,N,z,`≺`,`\\prec`,!0),A(j,N,z,`≻`,`\\succ`,!0),A(j,N,z,`∼`,`\\sim`,!0),A(j,N,z,`⊥`,`\\perp`),A(j,N,z,`⪯`,`\\preceq`,!0),A(j,N,z,`⪰`,`\\succeq`,!0),A(j,N,z,`≃`,`\\simeq`,!0),A(j,N,z,`∣`,`\\mid`,!0),A(j,N,z,`≪`,`\\ll`,!0),A(j,N,z,`≫`,`\\gg`,!0),A(j,N,z,`≍`,`\\asymp`,!0),A(j,N,z,`∥`,`\\parallel`),A(j,N,z,`⋈`,`\\bowtie`,!0),A(j,N,z,`⌣`,`\\smile`,!0),A(j,N,z,`⊑`,`\\sqsubseteq`,!0),A(j,N,z,`⊒`,`\\sqsupseteq`,!0),A(j,N,z,`≐`,`\\doteq`,!0),A(j,N,z,`⌢`,`\\frown`,!0),A(j,N,z,`∋`,`\\ni`,!0),A(j,N,z,`∝`,`\\propto`,!0),A(j,N,z,`⊢`,`\\vdash`,!0),A(j,N,z,`⊣`,`\\dashv`,!0),A(j,N,z,`∋`,`\\owns`),A(j,N,Ft,`.`,`\\ldotp`),A(j,N,Ft,`⋅`,`\\cdotp`),A(j,N,Ft,`⋅`,`·`),A(M,N,B,`⋅`,`·`),A(j,N,B,`#`,`\\#`),A(M,N,B,`#`,`\\#`),A(j,N,B,`&`,`\\&`),A(M,N,B,`&`,`\\&`),A(j,N,B,`ℵ`,`\\aleph`,!0),A(j,N,B,`∀`,`\\forall`,!0),A(j,N,B,`ℏ`,`\\hbar`,!0),A(j,N,B,`∃`,`\\exists`,!0),A(j,N,B,`∇`,`\\nabla`,!0),A(j,N,B,`♭`,`\\flat`,!0),A(j,N,B,`ℓ`,`\\ell`,!0),A(j,N,B,`♮`,`\\natural`,!0),A(j,N,B,`♣`,`\\clubsuit`,!0),A(j,N,B,`℘`,`\\wp`,!0),A(j,N,B,`♯`,`\\sharp`,!0),A(j,N,B,`♢`,`\\diamondsuit`,!0),A(j,N,B,`ℜ`,`\\Re`,!0),A(j,N,B,`♡`,`\\heartsuit`,!0),A(j,N,B,`ℑ`,`\\Im`,!0),A(j,N,B,`♠`,`\\spadesuit`,!0),A(j,N,B,`§`,`\\S`,!0),A(M,N,B,`§`,`\\S`),A(j,N,B,`¶`,`\\P`,!0),A(M,N,B,`¶`,`\\P`),A(j,N,B,`†`,`\\dag`),A(M,N,B,`†`,`\\dag`),A(M,N,B,`†`,`\\textdagger`),A(j,N,B,`‡`,`\\ddag`),A(M,N,B,`‡`,`\\ddag`),A(M,N,B,`‡`,`\\textdaggerdbl`),A(j,N,Mt,`⎱`,`\\rmoustache`,!0),A(j,N,Pt,`⎰`,`\\lmoustache`,!0),A(j,N,Mt,`⟯`,`\\rgroup`,!0),A(j,N,Pt,`⟮`,`\\lgroup`,!0),A(j,N,I,`∓`,`\\mp`,!0),A(j,N,I,`⊖`,`\\ominus`,!0),A(j,N,I,`⊎`,`\\uplus`,!0),A(j,N,I,`⊓`,`\\sqcap`,!0),A(j,N,I,`∗`,`\\ast`),A(j,N,I,`⊔`,`\\sqcup`,!0),A(j,N,I,`◯`,`\\bigcirc`,!0),A(j,N,I,`∙`,`\\bullet`,!0),A(j,N,I,`‡`,`\\ddagger`),A(j,N,I,`≀`,`\\wr`,!0),A(j,N,I,`⨿`,`\\amalg`),A(j,N,I,`&`,`\\And`),A(j,N,z,`⟵`,`\\longleftarrow`,!0),A(j,N,z,`⇐`,`\\Leftarrow`,!0),A(j,N,z,`⟸`,`\\Longleftarrow`,!0),A(j,N,z,`⟶`,`\\longrightarrow`,!0),A(j,N,z,`⇒`,`\\Rightarrow`,!0),A(j,N,z,`⟹`,`\\Longrightarrow`,!0),A(j,N,z,`↔`,`\\leftrightarrow`,!0),A(j,N,z,`⟷`,`\\longleftrightarrow`,!0),A(j,N,z,`⇔`,`\\Leftrightarrow`,!0),A(j,N,z,`⟺`,`\\Longleftrightarrow`,!0),A(j,N,z,`↦`,`\\mapsto`,!0),A(j,N,z,`⟼`,`\\longmapsto`,!0),A(j,N,z,`↗`,`\\nearrow`,!0),A(j,N,z,`↩`,`\\hookleftarrow`,!0),A(j,N,z,`↪`,`\\hookrightarrow`,!0),A(j,N,z,`↘`,`\\searrow`,!0),A(j,N,z,`↼`,`\\leftharpoonup`,!0),A(j,N,z,`⇀`,`\\rightharpoonup`,!0),A(j,N,z,`↙`,`\\swarrow`,!0),A(j,N,z,`↽`,`\\leftharpoondown`,!0),A(j,N,z,`⇁`,`\\rightharpoondown`,!0),A(j,N,z,`↖`,`\\nwarrow`,!0),A(j,N,z,`⇌`,`\\rightleftharpoons`,!0),A(j,P,z,`≮`,`\\nless`,!0),A(j,P,z,``,`\\@nleqslant`),A(j,P,z,``,`\\@nleqq`),A(j,P,z,`⪇`,`\\lneq`,!0),A(j,P,z,`≨`,`\\lneqq`,!0),A(j,P,z,``,`\\@lvertneqq`),A(j,P,z,`⋦`,`\\lnsim`,!0),A(j,P,z,`⪉`,`\\lnapprox`,!0),A(j,P,z,`⊀`,`\\nprec`,!0),A(j,P,z,`⋠`,`\\npreceq`,!0),A(j,P,z,`⋨`,`\\precnsim`,!0),A(j,P,z,`⪹`,`\\precnapprox`,!0),A(j,P,z,`≁`,`\\nsim`,!0),A(j,P,z,``,`\\@nshortmid`),A(j,P,z,`∤`,`\\nmid`,!0),A(j,P,z,`⊬`,`\\nvdash`,!0),A(j,P,z,`⊭`,`\\nvDash`,!0),A(j,P,z,`⋪`,`\\ntriangleleft`),A(j,P,z,`⋬`,`\\ntrianglelefteq`,!0),A(j,P,z,`⊊`,`\\subsetneq`,!0),A(j,P,z,``,`\\@varsubsetneq`),A(j,P,z,`⫋`,`\\subsetneqq`,!0),A(j,P,z,``,`\\@varsubsetneqq`),A(j,P,z,`≯`,`\\ngtr`,!0),A(j,P,z,``,`\\@ngeqslant`),A(j,P,z,``,`\\@ngeqq`),A(j,P,z,`⪈`,`\\gneq`,!0),A(j,P,z,`≩`,`\\gneqq`,!0),A(j,P,z,``,`\\@gvertneqq`),A(j,P,z,`⋧`,`\\gnsim`,!0),A(j,P,z,`⪊`,`\\gnapprox`,!0),A(j,P,z,`⊁`,`\\nsucc`,!0),A(j,P,z,`⋡`,`\\nsucceq`,!0),A(j,P,z,`⋩`,`\\succnsim`,!0),A(j,P,z,`⪺`,`\\succnapprox`,!0),A(j,P,z,`≆`,`\\ncong`,!0),A(j,P,z,``,`\\@nshortparallel`),A(j,P,z,`∦`,`\\nparallel`,!0),A(j,P,z,`⊯`,`\\nVDash`,!0),A(j,P,z,`⋫`,`\\ntriangleright`),A(j,P,z,`⋭`,`\\ntrianglerighteq`,!0),A(j,P,z,``,`\\@nsupseteqq`),A(j,P,z,`⊋`,`\\supsetneq`,!0),A(j,P,z,``,`\\@varsupsetneq`),A(j,P,z,`⫌`,`\\supsetneqq`,!0),A(j,P,z,``,`\\@varsupsetneqq`),A(j,P,z,`⊮`,`\\nVdash`,!0),A(j,P,z,`⪵`,`\\precneqq`,!0),A(j,P,z,`⪶`,`\\succneqq`,!0),A(j,P,z,``,`\\@nsubseteqq`),A(j,P,I,`⊴`,`\\unlhd`),A(j,P,I,`⊵`,`\\unrhd`),A(j,P,z,`↚`,`\\nleftarrow`,!0),A(j,P,z,`↛`,`\\nrightarrow`,!0),A(j,P,z,`⇍`,`\\nLeftarrow`,!0),A(j,P,z,`⇏`,`\\nRightarrow`,!0),A(j,P,z,`↮`,`\\nleftrightarrow`,!0),A(j,P,z,`⇎`,`\\nLeftrightarrow`,!0),A(j,P,z,`△`,`\\vartriangle`),A(j,P,B,`ℏ`,`\\hslash`),A(j,P,B,`▽`,`\\triangledown`),A(j,P,B,`◊`,`\\lozenge`),A(j,P,B,`Ⓢ`,`\\circledS`),A(j,P,B,`®`,`\\circledR`),A(M,P,B,`®`,`\\circledR`),A(j,P,B,`∡`,`\\measuredangle`,!0),A(j,P,B,`∄`,`\\nexists`),A(j,P,B,`℧`,`\\mho`),A(j,P,B,`Ⅎ`,`\\Finv`,!0),A(j,P,B,`⅁`,`\\Game`,!0),A(j,P,B,`‵`,`\\backprime`),A(j,P,B,`▲`,`\\blacktriangle`),A(j,P,B,`▼`,`\\blacktriangledown`),A(j,P,B,`■`,`\\blacksquare`),A(j,P,B,`⧫`,`\\blacklozenge`),A(j,P,B,`★`,`\\bigstar`),A(j,P,B,`∢`,`\\sphericalangle`,!0),A(j,P,B,`∁`,`\\complement`,!0),A(j,P,B,`ð`,`\\eth`,!0),A(M,N,B,`ð`,`ð`),A(j,P,B,`╱`,`\\diagup`),A(j,P,B,`╲`,`\\diagdown`),A(j,P,B,`□`,`\\square`),A(j,P,B,`□`,`\\Box`),A(j,P,B,`◊`,`\\Diamond`),A(j,P,B,`¥`,`\\yen`,!0),A(M,P,B,`¥`,`\\yen`,!0),A(j,P,B,`✓`,`\\checkmark`,!0),A(M,P,B,`✓`,`\\checkmark`),A(j,P,B,`ℶ`,`\\beth`,!0),A(j,P,B,`ℸ`,`\\daleth`,!0),A(j,P,B,`ℷ`,`\\gimel`,!0),A(j,P,B,`ϝ`,`\\digamma`,!0),A(j,P,B,`ϰ`,`\\varkappa`),A(j,P,Pt,`┌`,`\\@ulcorner`,!0),A(j,P,Mt,`┐`,`\\@urcorner`,!0),A(j,P,Pt,`└`,`\\@llcorner`,!0),A(j,P,Mt,`┘`,`\\@lrcorner`,!0),A(j,P,z,`≦`,`\\leqq`,!0),A(j,P,z,`⩽`,`\\leqslant`,!0),A(j,P,z,`⪕`,`\\eqslantless`,!0),A(j,P,z,`≲`,`\\lesssim`,!0),A(j,P,z,`⪅`,`\\lessapprox`,!0),A(j,P,z,`≊`,`\\approxeq`,!0),A(j,P,I,`⋖`,`\\lessdot`),A(j,P,z,`⋘`,`\\lll`,!0),A(j,P,z,`≶`,`\\lessgtr`,!0),A(j,P,z,`⋚`,`\\lesseqgtr`,!0),A(j,P,z,`⪋`,`\\lesseqqgtr`,!0),A(j,P,z,`≑`,`\\doteqdot`),A(j,P,z,`≓`,`\\risingdotseq`,!0),A(j,P,z,`≒`,`\\fallingdotseq`,!0),A(j,P,z,`∽`,`\\backsim`,!0),A(j,P,z,`⋍`,`\\backsimeq`,!0),A(j,P,z,`⫅`,`\\subseteqq`,!0),A(j,P,z,`⋐`,`\\Subset`,!0),A(j,P,z,`⊏`,`\\sqsubset`,!0),A(j,P,z,`≼`,`\\preccurlyeq`,!0),A(j,P,z,`⋞`,`\\curlyeqprec`,!0),A(j,P,z,`≾`,`\\precsim`,!0),A(j,P,z,`⪷`,`\\precapprox`,!0),A(j,P,z,`⊲`,`\\vartriangleleft`),A(j,P,z,`⊴`,`\\trianglelefteq`),A(j,P,z,`⊨`,`\\vDash`,!0),A(j,P,z,`⊪`,`\\Vvdash`,!0),A(j,P,z,`⌣`,`\\smallsmile`),A(j,P,z,`⌢`,`\\smallfrown`),A(j,P,z,`≏`,`\\bumpeq`,!0),A(j,P,z,`≎`,`\\Bumpeq`,!0),A(j,P,z,`≧`,`\\geqq`,!0),A(j,P,z,`⩾`,`\\geqslant`,!0),A(j,P,z,`⪖`,`\\eqslantgtr`,!0),A(j,P,z,`≳`,`\\gtrsim`,!0),A(j,P,z,`⪆`,`\\gtrapprox`,!0),A(j,P,I,`⋗`,`\\gtrdot`),A(j,P,z,`⋙`,`\\ggg`,!0),A(j,P,z,`≷`,`\\gtrless`,!0),A(j,P,z,`⋛`,`\\gtreqless`,!0),A(j,P,z,`⪌`,`\\gtreqqless`,!0),A(j,P,z,`≖`,`\\eqcirc`,!0),A(j,P,z,`≗`,`\\circeq`,!0),A(j,P,z,`≜`,`\\triangleq`,!0),A(j,P,z,`∼`,`\\thicksim`),A(j,P,z,`≈`,`\\thickapprox`),A(j,P,z,`⫆`,`\\supseteqq`,!0),A(j,P,z,`⋑`,`\\Supset`,!0),A(j,P,z,`⊐`,`\\sqsupset`,!0),A(j,P,z,`≽`,`\\succcurlyeq`,!0),A(j,P,z,`⋟`,`\\curlyeqsucc`,!0),A(j,P,z,`≿`,`\\succsim`,!0),A(j,P,z,`⪸`,`\\succapprox`,!0),A(j,P,z,`⊳`,`\\vartriangleright`),A(j,P,z,`⊵`,`\\trianglerighteq`),A(j,P,z,`⊩`,`\\Vdash`,!0),A(j,P,z,`∣`,`\\shortmid`),A(j,P,z,`∥`,`\\shortparallel`),A(j,P,z,`≬`,`\\between`,!0),A(j,P,z,`⋔`,`\\pitchfork`,!0),A(j,P,z,`∝`,`\\varpropto`),A(j,P,z,`◀`,`\\blacktriangleleft`),A(j,P,z,`∴`,`\\therefore`,!0),A(j,P,z,`∍`,`\\backepsilon`),A(j,P,z,`▶`,`\\blacktriangleright`),A(j,P,z,`∵`,`\\because`,!0),A(j,P,z,`⋘`,`\\llless`),A(j,P,z,`⋙`,`\\gggtr`),A(j,P,I,`⊲`,`\\lhd`),A(j,P,I,`⊳`,`\\rhd`),A(j,P,z,`≂`,`\\eqsim`,!0),A(j,N,z,`⋈`,`\\Join`),A(j,P,z,`≑`,`\\Doteq`,!0),A(j,P,I,`∔`,`\\dotplus`,!0),A(j,P,I,`∖`,`\\smallsetminus`),A(j,P,I,`⋒`,`\\Cap`,!0),A(j,P,I,`⋓`,`\\Cup`,!0),A(j,P,I,`⩞`,`\\doublebarwedge`,!0),A(j,P,I,`⊟`,`\\boxminus`,!0),A(j,P,I,`⊞`,`\\boxplus`,!0),A(j,P,I,`⋇`,`\\divideontimes`,!0),A(j,P,I,`⋉`,`\\ltimes`,!0),A(j,P,I,`⋊`,`\\rtimes`,!0),A(j,P,I,`⋋`,`\\leftthreetimes`,!0),A(j,P,I,`⋌`,`\\rightthreetimes`,!0),A(j,P,I,`⋏`,`\\curlywedge`,!0),A(j,P,I,`⋎`,`\\curlyvee`,!0),A(j,P,I,`⊝`,`\\circleddash`,!0),A(j,P,I,`⊛`,`\\circledast`,!0),A(j,P,I,`⋅`,`\\centerdot`),A(j,P,I,`⊺`,`\\intercal`,!0),A(j,P,I,`⋒`,`\\doublecap`),A(j,P,I,`⋓`,`\\doublecup`),A(j,P,I,`⊠`,`\\boxtimes`,!0),A(j,P,z,`⇢`,`\\dashrightarrow`,!0),A(j,P,z,`⇠`,`\\dashleftarrow`,!0),A(j,P,z,`⇇`,`\\leftleftarrows`,!0),A(j,P,z,`⇆`,`\\leftrightarrows`,!0),A(j,P,z,`⇚`,`\\Lleftarrow`,!0),A(j,P,z,`↞`,`\\twoheadleftarrow`,!0),A(j,P,z,`↢`,`\\leftarrowtail`,!0),A(j,P,z,`↫`,`\\looparrowleft`,!0),A(j,P,z,`⇋`,`\\leftrightharpoons`,!0),A(j,P,z,`↶`,`\\curvearrowleft`,!0),A(j,P,z,`↺`,`\\circlearrowleft`,!0),A(j,P,z,`↰`,`\\Lsh`,!0),A(j,P,z,`⇈`,`\\upuparrows`,!0),A(j,P,z,`↿`,`\\upharpoonleft`,!0),A(j,P,z,`⇃`,`\\downharpoonleft`,!0),A(j,N,z,`⊶`,`\\origof`,!0),A(j,N,z,`⊷`,`\\imageof`,!0),A(j,P,z,`⊸`,`\\multimap`,!0),A(j,P,z,`↭`,`\\leftrightsquigarrow`,!0),A(j,P,z,`⇉`,`\\rightrightarrows`,!0),A(j,P,z,`⇄`,`\\rightleftarrows`,!0),A(j,P,z,`↠`,`\\twoheadrightarrow`,!0),A(j,P,z,`↣`,`\\rightarrowtail`,!0),A(j,P,z,`↬`,`\\looparrowright`,!0),A(j,P,z,`↷`,`\\curvearrowright`,!0),A(j,P,z,`↻`,`\\circlearrowright`,!0),A(j,P,z,`↱`,`\\Rsh`,!0),A(j,P,z,`⇊`,`\\downdownarrows`,!0),A(j,P,z,`↾`,`\\upharpoonright`,!0),A(j,P,z,`⇂`,`\\downharpoonright`,!0),A(j,P,z,`⇝`,`\\rightsquigarrow`,!0),A(j,P,z,`⇝`,`\\leadsto`),A(j,P,z,`⇛`,`\\Rrightarrow`,!0),A(j,P,z,`↾`,`\\restriction`),A(j,N,B,`‘`,"`"),A(j,N,B,`$`,`\\$`),A(M,N,B,`$`,`\\$`),A(M,N,B,`$`,`\\textdollar`),A(j,N,B,`%`,`\\%`),A(M,N,B,`%`,`\\%`),A(j,N,B,`_`,`\\_`),A(M,N,B,`_`,`\\_`),A(M,N,B,`_`,`\\textunderscore`),A(j,N,B,`∠`,`\\angle`,!0),A(j,N,B,`∞`,`\\infty`,!0),A(j,N,B,`′`,`\\prime`),A(j,N,B,`△`,`\\triangle`),A(j,N,B,`Γ`,`\\Gamma`,!0),A(j,N,B,`Δ`,`\\Delta`,!0),A(j,N,B,`Θ`,`\\Theta`,!0),A(j,N,B,`Λ`,`\\Lambda`,!0),A(j,N,B,`Ξ`,`\\Xi`,!0),A(j,N,B,`Π`,`\\Pi`,!0),A(j,N,B,`Σ`,`\\Sigma`,!0),A(j,N,B,`Υ`,`\\Upsilon`,!0),A(j,N,B,`Φ`,`\\Phi`,!0),A(j,N,B,`Ψ`,`\\Psi`,!0),A(j,N,B,`Ω`,`\\Omega`,!0),A(j,N,B,`A`,`Α`),A(j,N,B,`B`,`Β`),A(j,N,B,`E`,`Ε`),A(j,N,B,`Z`,`Ζ`),A(j,N,B,`H`,`Η`),A(j,N,B,`I`,`Ι`),A(j,N,B,`K`,`Κ`),A(j,N,B,`M`,`Μ`),A(j,N,B,`N`,`Ν`),A(j,N,B,`O`,`Ο`),A(j,N,B,`P`,`Ρ`),A(j,N,B,`T`,`Τ`),A(j,N,B,`X`,`Χ`),A(j,N,B,`¬`,`\\neg`,!0),A(j,N,B,`¬`,`\\lnot`),A(j,N,B,`⊤`,`\\top`),A(j,N,B,`⊥`,`\\bot`),A(j,N,B,`∅`,`\\emptyset`),A(j,P,B,`∅`,`\\varnothing`),A(j,N,L,`α`,`\\alpha`,!0),A(j,N,L,`β`,`\\beta`,!0),A(j,N,L,`γ`,`\\gamma`,!0),A(j,N,L,`δ`,`\\delta`,!0),A(j,N,L,`ϵ`,`\\epsilon`,!0),A(j,N,L,`ζ`,`\\zeta`,!0),A(j,N,L,`η`,`\\eta`,!0),A(j,N,L,`θ`,`\\theta`,!0),A(j,N,L,`ι`,`\\iota`,!0),A(j,N,L,`κ`,`\\kappa`,!0),A(j,N,L,`λ`,`\\lambda`,!0),A(j,N,L,`μ`,`\\mu`,!0),A(j,N,L,`ν`,`\\nu`,!0),A(j,N,L,`ξ`,`\\xi`,!0),A(j,N,L,`ο`,`\\omicron`,!0),A(j,N,L,`π`,`\\pi`,!0),A(j,N,L,`ρ`,`\\rho`,!0),A(j,N,L,`σ`,`\\sigma`,!0),A(j,N,L,`τ`,`\\tau`,!0),A(j,N,L,`υ`,`\\upsilon`,!0),A(j,N,L,`ϕ`,`\\phi`,!0),A(j,N,L,`χ`,`\\chi`,!0),A(j,N,L,`ψ`,`\\psi`,!0),A(j,N,L,`ω`,`\\omega`,!0),A(j,N,L,`ε`,`\\varepsilon`,!0),A(j,N,L,`ϑ`,`\\vartheta`,!0),A(j,N,L,`ϖ`,`\\varpi`,!0),A(j,N,L,`ϱ`,`\\varrho`,!0),A(j,N,L,`ς`,`\\varsigma`,!0),A(j,N,L,`φ`,`\\varphi`,!0),A(j,N,I,`∗`,`*`,!0),A(j,N,I,`+`,`+`),A(j,N,I,`−`,`-`,!0),A(j,N,I,`⋅`,`\\cdot`,!0),A(j,N,I,`∘`,`\\circ`,!0),A(j,N,I,`÷`,`\\div`,!0),A(j,N,I,`±`,`\\pm`,!0),A(j,N,I,`×`,`\\times`,!0),A(j,N,I,`∩`,`\\cap`,!0),A(j,N,I,`∪`,`\\cup`,!0),A(j,N,I,`∖`,`\\setminus`,!0),A(j,N,I,`∧`,`\\land`),A(j,N,I,`∨`,`\\lor`),A(j,N,I,`∧`,`\\wedge`,!0),A(j,N,I,`∨`,`\\vee`,!0),A(j,N,B,`√`,`\\surd`),A(j,N,Pt,`⟨`,`\\langle`,!0),A(j,N,Pt,`∣`,`\\lvert`),A(j,N,Pt,`∥`,`\\lVert`),A(j,N,Mt,`?`,`?`),A(j,N,Mt,`!`,`!`),A(j,N,Mt,`⟩`,`\\rangle`,!0),A(j,N,Mt,`∣`,`\\rvert`),A(j,N,Mt,`∥`,`\\rVert`),A(j,N,z,`=`,`=`),A(j,N,z,`:`,`:`),A(j,N,z,`≈`,`\\approx`,!0),A(j,N,z,`≅`,`\\cong`,!0),A(j,N,z,`≥`,`\\ge`),A(j,N,z,`≥`,`\\geq`,!0),A(j,N,z,`←`,`\\gets`),A(j,N,z,`>`,`\\gt`,!0),A(j,N,z,`∈`,`\\in`,!0),A(j,N,z,``,`\\@not`),A(j,N,z,`⊂`,`\\subset`,!0),A(j,N,z,`⊃`,`\\supset`,!0),A(j,N,z,`⊆`,`\\subseteq`,!0),A(j,N,z,`⊇`,`\\supseteq`,!0),A(j,P,z,`⊈`,`\\nsubseteq`,!0),A(j,P,z,`⊉`,`\\nsupseteq`,!0),A(j,N,z,`⊨`,`\\models`),A(j,N,z,`←`,`\\leftarrow`,!0),A(j,N,z,`≤`,`\\le`),A(j,N,z,`≤`,`\\leq`,!0),A(j,N,z,`<`,`\\lt`,!0),A(j,N,z,`→`,`\\rightarrow`,!0),A(j,N,z,`→`,`\\to`),A(j,P,z,`≱`,`\\ngeq`,!0),A(j,P,z,`≰`,`\\nleq`,!0),A(j,N,It,`\xA0`,`\\ `),A(j,N,It,`\xA0`,`\\space`),A(j,N,It,`\xA0`,`\\nobreakspace`),A(M,N,It,`\xA0`,`\\ `),A(M,N,It,`\xA0`,` `),A(M,N,It,`\xA0`,`\\space`),A(M,N,It,`\xA0`,`\\nobreakspace`),A(j,N,It,``,`\\nobreak`),A(j,N,It,``,`\\allowbreak`),A(j,N,Ft,`,`,`,`),A(j,N,Ft,`;`,`;`),A(j,P,I,`⊼`,`\\barwedge`,!0),A(j,P,I,`⊻`,`\\veebar`,!0),A(j,N,I,`⊙`,`\\odot`,!0),A(j,N,I,`⊕`,`\\oplus`,!0),A(j,N,I,`⊗`,`\\otimes`,!0),A(j,N,B,`∂`,`\\partial`,!0),A(j,N,I,`⊘`,`\\oslash`,!0),A(j,P,I,`⊚`,`\\circledcirc`,!0),A(j,P,I,`⊡`,`\\boxdot`,!0),A(j,N,I,`△`,`\\bigtriangleup`),A(j,N,I,`▽`,`\\bigtriangledown`),A(j,N,I,`†`,`\\dagger`),A(j,N,I,`⋄`,`\\diamond`),A(j,N,I,`⋆`,`\\star`),A(j,N,I,`◃`,`\\triangleleft`),A(j,N,I,`▹`,`\\triangleright`),A(j,N,Pt,`{`,`\\{`),A(M,N,B,`{`,`\\{`),A(M,N,B,`{`,`\\textbraceleft`),A(j,N,Mt,`}`,`\\}`),A(M,N,B,`}`,`\\}`),A(M,N,B,`}`,`\\textbraceright`),A(j,N,Pt,`{`,`\\lbrace`),A(j,N,Mt,`}`,`\\rbrace`),A(j,N,Pt,`[`,`\\lbrack`,!0),A(M,N,B,`[`,`\\lbrack`,!0),A(j,N,Mt,`]`,`\\rbrack`,!0),A(M,N,B,`]`,`\\rbrack`,!0),A(j,N,Pt,`(`,`\\lparen`,!0),A(j,N,Mt,`)`,`\\rparen`,!0),A(M,N,B,`<`,`\\textless`,!0),A(M,N,B,`>`,`\\textgreater`,!0),A(j,N,Pt,`⌊`,`\\lfloor`,!0),A(j,N,Mt,`⌋`,`\\rfloor`,!0),A(j,N,Pt,`⌈`,`\\lceil`,!0),A(j,N,Mt,`⌉`,`\\rceil`,!0),A(j,N,B,`\\`,`\\backslash`),A(j,N,B,`∣`,`|`),A(j,N,B,`∣`,`\\vert`),A(M,N,B,`|`,`\\textbar`,!0),A(j,N,B,`∥`,`\\|`),A(j,N,B,`∥`,`\\Vert`),A(M,N,B,`∥`,`\\textbardbl`),A(M,N,B,`~`,`\\textasciitilde`),A(M,N,B,`\\`,`\\textbackslash`),A(M,N,B,`^`,`\\textasciicircum`),A(j,N,z,`↑`,`\\uparrow`,!0),A(j,N,z,`⇑`,`\\Uparrow`,!0),A(j,N,z,`↓`,`\\downarrow`,!0),A(j,N,z,`⇓`,`\\Downarrow`,!0),A(j,N,z,`↕`,`\\updownarrow`,!0),A(j,N,z,`⇕`,`\\Updownarrow`,!0),A(j,N,R,`∐`,`\\coprod`),A(j,N,R,`⋁`,`\\bigvee`),A(j,N,R,`⋀`,`\\bigwedge`),A(j,N,R,`⨄`,`\\biguplus`),A(j,N,R,`⋂`,`\\bigcap`),A(j,N,R,`⋃`,`\\bigcup`),A(j,N,R,`∫`,`\\int`),A(j,N,R,`∫`,`\\intop`),A(j,N,R,`∬`,`\\iint`),A(j,N,R,`∭`,`\\iiint`),A(j,N,R,`∏`,`\\prod`),A(j,N,R,`∑`,`\\sum`),A(j,N,R,`⨂`,`\\bigotimes`),A(j,N,R,`⨁`,`\\bigoplus`),A(j,N,R,`⨀`,`\\bigodot`),A(j,N,R,`∮`,`\\oint`),A(j,N,R,`∯`,`\\oiint`),A(j,N,R,`∰`,`\\oiiint`),A(j,N,R,`⨆`,`\\bigsqcup`),A(j,N,R,`∫`,`\\smallint`),A(M,N,Nt,`…`,`\\textellipsis`),A(j,N,Nt,`…`,`\\mathellipsis`),A(M,N,Nt,`…`,`\\ldots`,!0),A(j,N,Nt,`…`,`\\ldots`,!0),A(j,N,Nt,`⋯`,`\\@cdots`,!0),A(j,N,Nt,`⋱`,`\\ddots`,!0),A(j,N,B,`⋮`,`\\varvdots`),A(M,N,B,`⋮`,`\\varvdots`),A(j,N,F,`ˊ`,`\\acute`),A(j,N,F,`ˋ`,`\\grave`),A(j,N,F,`¨`,`\\ddot`),A(j,N,F,`~`,`\\tilde`),A(j,N,F,`ˉ`,`\\bar`),A(j,N,F,`˘`,`\\breve`),A(j,N,F,`ˇ`,`\\check`),A(j,N,F,`^`,`\\hat`),A(j,N,F,`⃗`,`\\vec`),A(j,N,F,`˙`,`\\dot`),A(j,N,F,`˚`,`\\mathring`),A(j,N,L,``,`\\@imath`),A(j,N,L,``,`\\@jmath`),A(j,N,B,`ı`,`ı`),A(j,N,B,`ȷ`,`ȷ`),A(M,N,B,`ı`,`\\i`,!0),A(M,N,B,`ȷ`,`\\j`,!0),A(M,N,B,`ß`,`\\ss`,!0),A(M,N,B,`æ`,`\\ae`,!0),A(M,N,B,`œ`,`\\oe`,!0),A(M,N,B,`ø`,`\\o`,!0),A(M,N,B,`Æ`,`\\AE`,!0),A(M,N,B,`Œ`,`\\OE`,!0),A(M,N,B,`Ø`,`\\O`,!0),A(M,N,F,`ˊ`,`\\'`),A(M,N,F,`ˋ`,"\\`"),A(M,N,F,`ˆ`,`\\^`),A(M,N,F,`˜`,`\\~`),A(M,N,F,`ˉ`,`\\=`),A(M,N,F,`˘`,`\\u`),A(M,N,F,`˙`,`\\.`),A(M,N,F,`¸`,`\\c`),A(M,N,F,`˚`,`\\r`),A(M,N,F,`ˇ`,`\\v`),A(M,N,F,`¨`,`\\"`),A(M,N,F,`˝`,`\\H`),A(M,N,F,`◯`,`\\textcircled`);var Lt={"--":!0,"---":!0,"``":!0,"''":!0};A(M,N,B,`–`,`--`,!0),A(M,N,B,`–`,`\\textendash`),A(M,N,B,`—`,`---`,!0),A(M,N,B,`—`,`\\textemdash`),A(M,N,B,`‘`,"`",!0),A(M,N,B,`‘`,`\\textquoteleft`),A(M,N,B,`’`,`'`,!0),A(M,N,B,`’`,`\\textquoteright`),A(M,N,B,`“`,"``",!0),A(M,N,B,`“`,`\\textquotedblleft`),A(M,N,B,`”`,`''`,!0),A(M,N,B,`”`,`\\textquotedblright`),A(j,N,B,`°`,`\\degree`,!0),A(M,N,B,`°`,`\\degree`),A(M,N,B,`°`,`\\textdegree`,!0),A(j,N,B,`£`,`\\pounds`),A(j,N,B,`£`,`\\mathsterling`,!0),A(M,N,B,`£`,`\\pounds`),A(M,N,B,`£`,`\\textsterling`,!0),A(j,P,B,`✠`,`\\maltese`),A(M,P,B,`✠`,`\\maltese`);for(var Rt=`0123456789/@."`,zt=0;zt{var t=e.charCodeAt(0),n=e.charCodeAt(1),r=(t-55296)*1024+(n-56320)+65536;if(119808<=r&&r<120484)return fn[Math.floor((r-119808)/26)];if(120782<=r&&r<=120831)return pn[Math.floor((r-120782)/10)];if(r===120485||r===120486)return fn[0];if(120486{if(ct(e.classes)!==ct(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass(`mathnormal`))return!1;if(e.classes.length===1){var n=e.classes[0];if(n===`mbin`||n===`mord`)return!1}for(var r of Object.keys(e.style))if(e.style[r]!==t.style[r])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},xn=e=>{for(var t=0;tt&&(t=a.height),a.depth>n&&(n=a.depth),a.maxFontSize>r&&(r=a.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},U=function(e,t,n,r){var i=new mt(e,t,n,r);return Sn(i),i},Cn=(e,t,n,r)=>new mt(e,t,n,r),wn=function(e,t,n){var r=U([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=O(r.height),r.maxFontSize=1,r},Tn=function(e,t,n,r){var i=new ht(e,t,n,r);return Sn(i),i},En=function(e){var t=new it(e);return Sn(t),t},Dn=function(e,t){return e instanceof it?U([],[e],t):e},On=function(e){if(e.positionType===`individualShift`){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,i=r,a=1;a{var n=U([`mspace`],[],t),r=D(e,t);return n.style.marginRight=O(r),n},An=(e,t,n)=>{var r,i;switch(e){case`amsrm`:r=`AMS`;break;case`textrm`:r=`Main`;break;case`textsf`:r=`SansSerif`;break;case`texttt`:r=`Typewriter`;break;default:r=e}return i=t===`textbf`&&n===`textit`?`BoldItalic`:t===`textbf`?`Bold`:n===`textit`?`Italic`:`Regular`,r+`-`+i},jn={mathbf:{variant:`bold`,fontName:`Main-Bold`},mathrm:{variant:`normal`,fontName:`Main-Regular`},textit:{variant:`italic`,fontName:`Main-Italic`},mathit:{variant:`italic`,fontName:`Main-Italic`},mathnormal:{variant:`italic`,fontName:`Math-Italic`},mathsfit:{variant:`sans-serif-italic`,fontName:`SansSerif-Italic`},mathbb:{variant:`double-struck`,fontName:`AMS-Regular`},mathcal:{variant:`script`,fontName:`Caligraphic-Regular`},mathfrak:{variant:`fraktur`,fontName:`Fraktur-Regular`},mathscr:{variant:`script`,fontName:`Script-Regular`},mathsf:{variant:`sans-serif`,fontName:`SansSerif-Regular`},mathtt:{variant:`monospace`,fontName:`Typewriter-Regular`}},Mn={vec:[`vec`,.471,.714],oiintSize1:[`oiintSize1`,.957,.499],oiintSize2:[`oiintSize2`,1.472,.659],oiiintSize1:[`oiiintSize1`,1.304,.499],oiiintSize2:[`oiiintSize2`,1.98,.659]},Nn=function(e,t){var n=Mn[e],r=n[0],i=n[1],a=n[2],o=Cn([`katex-overlay`],[new yt([new bt(r)],{width:O(i),height:O(a),style:`width:`+O(i),viewBox:`0 0 `+1e3*i+` `+1e3*a,preserveAspectRatio:`xMinYMin`})],t);return o.height=a,o.style.height=O(a),o.style.width=O(i),o},G={number:3,unit:`mu`},Pn={number:4,unit:`mu`},Fn={number:5,unit:`mu`},In={mord:{mop:G,mbin:Pn,mrel:Fn,minner:G},mop:{mord:G,mop:G,mrel:Fn,minner:G},mbin:{mord:Pn,mop:Pn,mopen:Pn,minner:Pn},mrel:{mord:Fn,mop:Fn,mopen:Fn,minner:Fn},mopen:{},mclose:{mop:G,mbin:Pn,mrel:Fn,minner:G},mpunct:{mord:G,mop:G,mrel:Fn,mopen:G,mclose:G,mpunct:G,minner:G},minner:{mord:G,mop:G,mbin:Pn,mrel:Fn,mopen:G,mpunct:G,minner:G}},Ln={mord:{mop:G},mop:{mord:G,mop:G},mbin:{},mrel:{},mopen:{},mclose:{mop:G},mpunct:{},minner:{mop:G}},Rn={},zn={},Bn={};function K(e){for(var t=e.type,n=e.names,r=e.htmlBuilder,i=e.mathmlBuilder,a=0;a{var n=t.classes[0],r=e.classes[0];n===`mbin`&&Wn.has(r)?t.classes[0]=`mord`:r===`mbin`&&Un.has(n)&&(e.classes[0]=`mord`)},{node:u},d,f),Jn(i,(e,t)=>{var n=Zn(t),r=Zn(e),i=n&&r?e.hasClass(`mtight`)?Ln[n]?.[r]:In[n]?.[r]:null;if(i)return kn(i,c)},{node:u},d,f),i},Jn=function(e,t,n,r,i){r&&e.push(r);for(var a=0;an=>{e.splice(t+1,0,n),a++})(a)}r&&e.pop()},Yn=function(e){return e instanceof it||e instanceof ht||e instanceof mt&&e.hasClass(`enclosing`)?e:null},Xn=function(e,t){var n=Yn(e);if(n){var r=n.children;if(r.length){if(t===`right`)return Xn(r[r.length-1],`right`);if(t===`left`)return Xn(r[0],`left`)}}return e},Zn=function(e,t){return e?(t&&(e=Xn(e,t)),Kn[e.classes[0]]||null):null},Qn=function(e,t){var n=[`nulldelimiter`].concat(e.baseSizingClasses());return U(t.concat(n))},J=function(e,t,n){if(!e)return U();if(zn[e.type]){var r=zn[e.type](e,t);if(n&&t.size!==n.size){r=U(t.sizingClasses(n),[r],t);var i=t.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}throw new w(`Got group of unknown type: '`+e.type+`'`)};function $n(e,t){var n=U([`katex-base`],e,t),r=U([`katex-strut`]);return r.style.height=O(n.height+n.depth),n.depth&&(r.style.verticalAlign=O(-n.depth)),n.children.unshift(r),n}function er(e,t){var n=null;e.length===1&&e[0].type===`tag`&&(n=e[0].tag,e=e[0].body);var r=qn(e,t,`root`),i;r.length===2&&r[1].hasClass(`katex-tag`)&&(i=r.pop());for(var a=[],o=[],s=0;s0&&(a.push($n(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push($n(o,t));var l;n?(l=$n(qn(n,t,!0),t),l.classes=[`katex-tag`],a.push(l)):i&&a.push(i);var u=U([`katex-html`],a);if(u.setAttribute(`aria-hidden`,`true`),l){var d=l.children[0];d.style.height=O(u.height+u.depth),u.depth&&(d.style.verticalAlign=O(-u.depth))}return u}function tr(e){return new it(e)}var Y=class{constructor(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,this.type);for(var t of Object.entries(this.attributes)){var n=t[0],r=t[1];e.setAttribute(n,r)}this.classes.length>0&&(e.className=ct(this.classes));for(var i=0;i0&&(e+=` class ="`+T(ct(this.classes))+`"`),e+=`>`;for(var i=0;i`,e}toText(){return this.children.map(e=>e.toText()).join(``)}},X=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return T(this.toText())}toText(){return this.text}},nr=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?` `:e>=.1666&&e<=.1667?` `:e>=.2222&&e<=.2223?` `:e>=.2777&&e<=.2778?`  `:e>=-.05556&&e<=-.05555?` ⁣`:e>=-.1667&&e<=-.1666?` ⁣`:e>=-.2223&&e<=-.2222?` ⁣`:e>=-.2778&&e<=-.2777?` ⁣`:null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`mspace`);return e.setAttribute(`width`,O(this.width)),e}toMarkup(){return this.character?``+this.character+``:``}toText(){return this.character?this.character:` `}},rr=new Set([`\\imath`,`\\jmath`]),ir=new Set([`mrow`,`mtable`]),ar=function(e,t,n){var r,i;return k[t][e]&&k[t][e].replace&&e.charCodeAt(0)!==55349&&!(Object.prototype.hasOwnProperty.call(Lt,e)&&((n==null||(r=n.fontFamily)==null?void 0:r.slice(4,6))===`tt`||(n==null||(i=n.font)==null?void 0:i.slice(4,6))===`tt`))&&(e=k[t][e].replace),new X(e)},or=function(e){return e.length===1?e[0]:new Y(`mrow`,e)},sr={mathit:`italic`,boldsymbol:e=>e.type===`textord`?`bold`:`bold-italic`,mathbf:`bold`,mathbb:`double-struck`,mathsfit:`sans-serif-italic`,mathfrak:`fraktur`,mathscr:`script`,mathcal:`script`,mathsf:`sans-serif`,mathtt:`monospace`},cr=(e,t)=>{if(e.mode===`text`){if(t.fontFamily===`texttt`)return`monospace`;if(t.fontFamily===`textsf`)return t.fontShape===`textit`&&t.fontWeight===`textbf`?`sans-serif-bold-italic`:t.fontShape===`textit`?`sans-serif-italic`:t.fontWeight===`textbf`?`bold-sans-serif`:`sans-serif`;if(t.fontShape===`textit`&&t.fontWeight===`textbf`)return`bold-italic`;if(t.fontShape===`textit`)return`italic`;if(t.fontWeight===`textbf`)return`bold`}var n=t.font;if(!n||n===`mathnormal`)return null;var r=e.mode,i=sr[n];if(i)return typeof i==`function`?i(e):i;var a=e.text;if(rr.has(a))return null;if(k[r][a]){var o=k[r][a].replace;o&&(a=o)}var s=jn[n].fontName;return kt(a,s,r)?jn[n].variant:null};function lr(e){if(!e)return!1;if(e.type===`mi`&&e.children.length===1){var t=e.children[0];return t instanceof X&&t.text===`.`}if(e.type===`mo`&&e.children.length===1&&e.getAttribute(`separator`)===`true`&&e.getAttribute(`lspace`)===`0em`&&e.getAttribute(`rspace`)===`0em`){var n=e.children[0];return n instanceof X&&n.text===`,`}return!1}var ur=function(e,t,n){if(e.length===1){var r=Z(e[0],t);return n&&r instanceof Y&&r.type===`mo`&&(r.setAttribute(`lspace`,`0em`),r.setAttribute(`rspace`,`0em`)),[r]}for(var i=[],a,o=0;o=1&&(a.type===`mn`||lr(a))){var c=s.children[0];c instanceof Y&&c.type===`mn`&&(c.children=[...a.children,...c.children],i.pop())}else if(a.type===`mi`&&a.children.length===1){var l=a.children[0];if(l instanceof X&&l.text===`̸`&&(s.type===`mo`||s.type===`mi`||s.type===`mn`)){var u=s.children[0];u instanceof X&&u.text.length>0&&(u.text=u.text.slice(0,1)+`̸`+u.text.slice(1),i.pop())}}}i.push(s),a=s}return i},dr=function(e,t,n){return or(ur(e,t,n))},Z=function(e,t){if(!e)return new Y(`mrow`);if(Bn[e.type])return Bn[e.type](e,t);throw new w(`Got group of unknown type: '`+e.type+`'`)};function fr(e,t,n,r,i){var a=ur(e,n),o=a.length===1&&a[0]instanceof Y&&ir.has(a[0].type)?a[0]:new Y(`mrow`,a),s=new Y(`annotation`,[new X(t)]);s.setAttribute(`encoding`,`application/x-tex`);var c=new Y(`math`,[new Y(`semantics`,[o,s])]);return c.setAttribute(`xmlns`,`http://www.w3.org/1998/Math/MathML`),r&&c.setAttribute(`display`,`block`),U([i?`katex`:`katex-mathml`],[c])}var pr=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],mr=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],hr=function(e,t){return t.size<2?e:pr[e-1][t.size-1]},gr=class e{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||``,this.fontFamily=t.fontFamily||``,this.fontWeight=t.fontWeight||``,this.fontShape=t.fontShape||``,this.sizeMultiplier=mr[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(n,t),new e(n)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:hr(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:mr[e-1]})}havingBaseStyle(t){t||=this.style.text();var n=hr(e.BASESIZE,t);return this.size===n&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:``})}withTextFontWeight(e){return this.extend({fontWeight:e,font:``})}withTextFontShape(e){return this.extend({fontShape:e,font:``})}sizingClasses(e){return e.size===this.size?[]:[`katex-sizing`,`reset-size`+e.size,`size`+this.size]}baseSizingClasses(){return this.size===e.BASESIZE?[]:[`katex-sizing`,`reset-size`+this.size,`size`+e.BASESIZE]}fontMetrics(){return this._fontMetrics||=jt(this.size),this._fontMetrics}getColor(){return this.phantom?`transparent`:this.color}};gr.BASESIZE=6;var _r=function(e){return new gr({style:e.displayMode?E.DISPLAY:E.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},vr=function(e,t){if(t.displayMode){var n=[`katex-display`];t.leqno&&n.push(`leqno`),t.fleqn&&n.push(`fleqn`),e=U(n,[e])}return e},yr=function(e,t,n){var r=_r(n),i;return n.output===`mathml`?fr(e,t,r,n.displayMode,!0):(i=n.output===`html`?U([`katex`],[er(e,r)]):U([`katex`],[fr(e,t,r,n.displayMode,!1),er(e,r)]),vr(i,n))},br=function(e,t,n){return vr(U([`katex`],[er(e,_r(n))]),n)},xr={widehat:`^`,widecheck:`ˇ`,widetilde:`~`,utilde:`~`,overleftarrow:`←`,underleftarrow:`←`,xleftarrow:`←`,overrightarrow:`→`,underrightarrow:`→`,xrightarrow:`→`,underbrace:`⏟`,overbrace:`⏞`,underbracket:`⎵`,overbracket:`⎴`,overgroup:`⏠`,undergroup:`⏡`,overleftrightarrow:`↔`,underleftrightarrow:`↔`,xleftrightarrow:`↔`,Overrightarrow:`⇒`,xRightarrow:`⇒`,overleftharpoon:`↼`,xleftharpoonup:`↼`,overrightharpoon:`⇀`,xrightharpoonup:`⇀`,xLeftarrow:`⇐`,xLeftrightarrow:`⇔`,xhookleftarrow:`↩`,xhookrightarrow:`↪`,xmapsto:`↦`,xrightharpoondown:`⇁`,xleftharpoondown:`↽`,xrightleftharpoons:`⇌`,xleftrightharpoons:`⇋`,xtwoheadleftarrow:`↞`,xtwoheadrightarrow:`↠`,xlongequal:`=`,xtofrom:`⇄`,xrightleftarrows:`⇄`,xrightequilibrium:`⇌`,xleftequilibrium:`⇋`,"\\cdrightarrow":`→`,"\\cdleftarrow":`←`,"\\cdlongequal":`=`},Sr=function(e){var t=new Y(`mo`,[new X(xr[e.replace(/^\\/,``)])]);return t.setAttribute(`stretchy`,`true`),t},Cr={overrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],overleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],underrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],underleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],xrightarrow:[[`rightarrow`],1.469,522,`xMaxYMin`],"\\cdrightarrow":[[`rightarrow`],3,522,`xMaxYMin`],xleftarrow:[[`leftarrow`],1.469,522,`xMinYMin`],"\\cdleftarrow":[[`leftarrow`],3,522,`xMinYMin`],Overrightarrow:[[`doublerightarrow`],.888,560,`xMaxYMin`],xRightarrow:[[`doublerightarrow`],1.526,560,`xMaxYMin`],xLeftarrow:[[`doubleleftarrow`],1.526,560,`xMinYMin`],overleftharpoon:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoonup:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoondown:[[`leftharpoondown`],.888,522,`xMinYMin`],overrightharpoon:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoonup:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoondown:[[`rightharpoondown`],.888,522,`xMaxYMin`],xlongequal:[[`longequal`],.888,334,`xMinYMin`],"\\cdlongequal":[[`longequal`],3,334,`xMinYMin`],xtwoheadleftarrow:[[`twoheadleftarrow`],.888,334,`xMinYMin`],xtwoheadrightarrow:[[`twoheadrightarrow`],.888,334,`xMaxYMin`],overleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],overbrace:[[`leftbrace`,`midbrace`,`rightbrace`],1.6,548],underbrace:[[`leftbraceunder`,`midbraceunder`,`rightbraceunder`],1.6,548],underleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],xleftrightarrow:[[`leftarrow`,`rightarrow`],1.75,522],xLeftrightarrow:[[`doubleleftarrow`,`doublerightarrow`],1.75,560],xrightleftharpoons:[[`leftharpoondownplus`,`rightharpoonplus`],1.75,716],xleftrightharpoons:[[`leftharpoonplus`,`rightharpoondownplus`],1.75,716],xhookleftarrow:[[`leftarrow`,`righthook`],1.08,522],xhookrightarrow:[[`lefthook`,`rightarrow`],1.08,522],overlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],underlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],overbracket:[[`leftbracketover`,`rightbracketover`],1.6,440],underbracket:[[`leftbracketunder`,`rightbracketunder`],1.6,410],overgroup:[[`leftgroup`,`rightgroup`],.888,342],undergroup:[[`leftgroupunder`,`rightgroupunder`],.888,342],xmapsto:[[`leftmapsto`,`rightarrow`],1.5,522],xtofrom:[[`leftToFrom`,`rightToFrom`],1.75,528],xrightleftarrows:[[`baraboveleftarrow`,`rightarrowabovebar`],1.75,901],xrightequilibrium:[[`baraboveshortleftharpoon`,`rightharpoonaboveshortbar`],1.75,716],xleftequilibrium:[[`shortbaraboveleftharpoon`,`shortrightharpoonabovebar`],1.75,716]},wr=new Set([`widehat`,`widecheck`,`widetilde`,`utilde`]),Tr=function(e,t){function n(){var n=4e5,r=e.label.slice(1);if(wr.has(r)&&`base`in e){var i=e.base.type===`ordgroup`?e.base.body.length:1,a,o,s;if(i>5)r===`widehat`||r===`widecheck`?(a=420,n=2364,s=.42,o=r+`4`):(a=312,n=2340,s=.34,o=`tilde4`);else{var c=[1,1,2,2,3,3][i];r===`widehat`||r===`widecheck`?(n=[0,1062,2364,2364,2364][c],a=[0,239,300,360,420][c],s=[0,.24,.3,.3,.36,.42][c],o=r+c):(n=[0,600,1033,2339,2340][c],a=[0,260,286,306,312][c],s=[0,.26,.286,.3,.306,.34][c],o=`tilde`+c)}return{span:Cn([],[new yt([new bt(o)],{width:`100%`,height:O(s),viewBox:`0 0 `+n+` `+a,preserveAspectRatio:`none`})],t),minWidth:0,height:s}}var l=[],u=Cr[r];if(!u)throw Error(`No SVG data for "`+r+`".`);var d=u[0],f=u[1],p=u[2],m=p/1e3,h=d.length,g,_;if(h===1){if(u.length!==4)throw Error(`Expected 4-tuple for single-path SVG data "`+r+`".`);g=[`hide-tail`],_=[u[3]]}else if(h===2)g=[`halfarrow-left`,`halfarrow-right`],_=[`xMinYMin`,`xMaxYMin`];else if(h===3)g=[`brace-left`,`brace-center`,`brace-right`],_=[`xMinYMin`,`xMidYMin`,`xMaxYMin`];else throw Error(`Correct katexImagesData or update code here to support + `+h+` children.`);for(var v=0;v0&&(i.style.minWidth=O(a)),i},Er=function(e,t,n,r,i){var a,o=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(a=U([`katex-stretchy`,t],[],i),t===`fbox`){var s=i.color&&i.getColor();s&&(a.style.borderColor=s)}}else{var c=[];/^[bx]cancel$/.test(t)&&c.push(new xt({x1:`0`,y1:`0`,x2:`100%`,y2:`100%`,"stroke-width":`0.046em`})),/^x?cancel$/.test(t)&&c.push(new xt({x1:`0`,y1:`100%`,x2:`100%`,y2:`0`,"stroke-width":`0.046em`})),a=Cn([],[new yt(c,{width:`100%`,height:O(o)})],i)}return a.height=o,a.style.height=O(o),a},Dr=[`bin`,`close`,`inner`,`open`,`punct`,`rel`],Or=[`accent-token`,`mathord`,`op-token`,`spacing`,`textord`],kr=new Set(Dr),Ar=new Set(Or);function jr(e){return kr.has(e)}function Q(e,t){if(!e||e.type!==t)throw Error(`Expected node of type `+t+`, but got `+(e?`node of type `+e.type:String(e)));return e}function Mr(e){var t=Nr(e);if(!t)throw Error(`Expected node of symbol group type, but got `+(e?`node of type `+e.type:String(e)));return t}function Nr(e){return e.type===`atom`||Ar.has(e.type)?e:null}function Pr(e,t,n){var r=``;for(var i of e.body)if(i.type===`textord`)r+=i.text;else if(n&&i.type===`spacing`&&i.text===` `)r+=` `;else throw new w(t,e);return r}var Fr=e=>{if(e instanceof vt)return e;if(wt(e)&&e.children.length===1)return Fr(e.children[0])},Ir=(e,t)=>{var n,r,i;e&&e.type===`supsub`?(r=Q(e.base,`accent`),n=r.base,e.base=n,i=Ct(J(e,t)),e.base=r):(r=Q(e,`accent`),n=r.base);var a=J(n,t.havingCrampedStyle()),o=r.isShifty&&_e(n),s=0;o&&(s=Fr(a)?.skew??0);var c=r.label===`\\c`,l=c?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),u;if(r.isStretchy)u=Tr(r,t),u=W({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`elem`,elem:u,wrapperClasses:[`svg-align`],wrapperStyle:s>0?{width:`calc(100% - `+O(2*s)+`)`,marginLeft:O(2*s)}:void 0}]});else{var d,f;r.label===`\\vec`?(d=Nn(`vec`,t),f=Mn.vec[1]):(d=yn({type:`textord`,mode:r.mode,text:r.label},t),d=St(d),d.italic=0,f=d.width,c&&(l+=d.depth)),u=U([`accent-body`],[d]);var p=r.label===`\\textcircled`;p&&(u.classes.push(`accent-full`),l=a.height);var m=s;p||(m-=f/2),u.style.left=O(m),r.label===`\\textcircled`&&(u.style.top=`.2em`),u=W({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:-l},{type:`elem`,elem:u}]})}var h=U([`mord`,`katex-accent`],[u],t);return i?(i.children[0]=h,i.height=Math.max(h.height,i.height),i.classes[0]=`mord`,i):h},Lr=(e,t)=>{var n=e.isStretchy?Sr(e.label):new Y(`mo`,[ar(e.label,e.mode)]),r=new Y(`mover`,[Z(e.base,t),n]);return r.setAttribute(`accent`,`true`),r},Rr=new RegExp([`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`].map(e=>`\\`+e).join(`|`));K({type:`accent`,names:[`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`,`\\widecheck`,`\\widehat`,`\\widetilde`,`\\overrightarrow`,`\\overleftarrow`,`\\Overrightarrow`,`\\overleftrightarrow`,`\\overgroup`,`\\overlinesegment`,`\\overleftharpoon`,`\\overrightharpoon`],numArgs:1,handler:(e,t)=>{var n=Hn(t[0]),r=!Rr.test(e.funcName),i=!r||e.funcName===`\\widehat`||e.funcName===`\\widetilde`||e.funcName===`\\widecheck`;return{type:`accent`,mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:Ir,mathmlBuilder:Lr}),K({type:`accent`,names:[`\\'`,"\\`",`\\^`,`\\~`,`\\=`,`\\u`,`\\.`,`\\"`,`\\c`,`\\r`,`\\H`,`\\v`,`\\textcircled`],numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`primitive`],handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r===`math`&&(e.parser.settings.reportNonstrict(`mathVsTextAccents`,`LaTeX's accent `+e.funcName+` works only in text mode`),r=`text`),{type:`accent`,mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}}}),K({type:`accentUnder`,names:[`\\underleftarrow`,`\\underrightarrow`,`\\underleftrightarrow`,`\\undergroup`,`\\underlinesegment`,`\\utilde`],numArgs:1,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0];return{type:`accentUnder`,mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=J(e.base,t),r=Tr(e,t),i=e.label===`\\utilde`?.12:0;return U([`mord`,`accentunder`],[W({positionType:`top`,positionData:n.height,children:[{type:`elem`,elem:r,wrapperClasses:[`svg-align`]},{type:`kern`,size:i},{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=Sr(e.label),r=new Y(`munder`,[Z(e.base,t),n]);return r.setAttribute(`accentunder`,`true`),r}});var zr=e=>{var t=new Y(`mpadded`,e?[e]:[]);return t.setAttribute(`width`,`+0.6em`),t.setAttribute(`lspace`,`0.3em`),t};K({type:`xArrow`,names:[`\\xleftarrow`,`\\xrightarrow`,`\\xLeftarrow`,`\\xRightarrow`,`\\xleftrightarrow`,`\\xLeftrightarrow`,`\\xhookleftarrow`,`\\xhookrightarrow`,`\\xmapsto`,`\\xrightharpoondown`,`\\xrightharpoonup`,`\\xleftharpoondown`,`\\xleftharpoonup`,`\\xrightleftharpoons`,`\\xleftrightharpoons`,`\\xlongequal`,`\\xtwoheadrightarrow`,`\\xtwoheadleftarrow`,`\\xtofrom`,`\\xrightleftarrows`,`\\xrightequilibrium`,`\\xleftequilibrium`,`\\\\cdrightarrow`,`\\\\cdleftarrow`,`\\\\cdlongequal`],numArgs:1,numOptionalArgs:1,handler(e,t,n){var r=e.parser,i=e.funcName;return{type:`xArrow`,mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=Dn(J(e.body,r,t),t),a=e.label.slice(0,2)===`\\x`?`x`:`cd`;i.classes.push(a+`-arrow-pad`);var o;e.below&&(r=t.havingStyle(n.sub()),o=Dn(J(e.below,r,t),t),o.classes.push(a+`-arrow-pad`));var s=Tr(e,t),c=-t.fontMetrics().axisHeight+.5*s.height,l=-t.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||e.label===`\\xleftequilibrium`)&&(l-=i.depth);var u;if(o){var d=-t.fontMetrics().axisHeight+o.height+.5*s.height+.111;u=W({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c,wrapperClasses:[`svg-align`]},{type:`elem`,elem:o,shift:d}]})}else u=W({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c,wrapperClasses:[`svg-align`]}]});return U([`mrel`,`x-arrow`],[u],t)},mathmlBuilder(e,t){var n=Sr(e.label);n.setAttribute(`minsize`,e.label.charAt(0)===`x`?`1.75em`:`3.0em`);var r;if(e.body){var i=zr(Z(e.body,t));r=e.below?new Y(`munderover`,[n,zr(Z(e.below,t)),i]):new Y(`mover`,[n,i])}else e.below?r=new Y(`munder`,[n,zr(Z(e.below,t))]):(r=zr(),r=new Y(`mover`,[n,r]));return r}});function Br(e,t){var n=qn(e.body,t,!0);return U([e.mclass],n,t)}function Vr(e,t){var n,r=ur(e.body,t);return e.mclass===`minner`?n=new Y(`mpadded`,r):e.mclass===`mord`?e.isCharacterBox?(n=r[0],n.type=`mi`):n=new Y(`mi`,r):(e.isCharacterBox?(n=r[0],n.type=`mo`):n=new Y(`mo`,r),e.mclass===`mbin`?(n.attributes.lspace=`0.22em`,n.attributes.rspace=`0.22em`):e.mclass===`mpunct`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0.17em`):(e.mclass===`mopen`||e.mclass===`mclose`)&&(n.attributes.lspace=`0em`,n.attributes.rspace=`0em`)),n}K({type:`mclass`,names:[`\\mathord`,`\\mathbin`,`\\mathrel`,`\\mathopen`,`\\mathclose`,`\\mathpunct`,`\\mathinner`],numArgs:1,primitive:!0,handler(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:`mclass`,mode:n.mode,mclass:`m`+r.slice(5),body:q(i),isCharacterBox:_e(i)}},htmlBuilder:Br,mathmlBuilder:Vr});var Hr=e=>{var t=e.type===`ordgroup`&&e.body.length?e.body[0]:e;return t.type===`atom`&&(t.family===`bin`||t.family===`rel`)?`m`+t.family:`mord`};K({type:`mclass`,names:[`\\@binrel`],numArgs:2,handler(e,t){return{type:`mclass`,mode:e.parser.mode,mclass:Hr(t[0]),body:q(t[1]),isCharacterBox:_e(t[1])}}}),K({type:`mclass`,names:[`\\stackrel`,`\\overset`,`\\underset`],numArgs:2,handler(e,t){var n=e.parser,r=e.funcName,i=t[1],a=t[0],o=r===`\\stackrel`?`mrel`:Hr(i),s={type:`op`,mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!==`\\stackrel`,body:q(i)},c=r===`\\underset`?{type:`supsub`,mode:a.mode,base:s,sub:a}:{type:`supsub`,mode:a.mode,base:s,sup:a};return{type:`mclass`,mode:n.mode,mclass:o,body:[c],isCharacterBox:_e(c)}}}),K({type:`pmb`,names:[`\\pmb`],numArgs:1,allowedInText:!0,handler(e,t){return{type:`pmb`,mode:e.parser.mode,mclass:Hr(t[0]),body:q(t[0])}},htmlBuilder(e,t){var n=qn(e.body,t,!0),r=U([e.mclass],n,t);return r.style.textShadow=`0.02em 0.01em 0.04px`,r},mathmlBuilder(e,t){var n=new Y(`mstyle`,ur(e.body,t));return n.setAttribute(`style`,`text-shadow: 0.02em 0.01em 0.04px`),n}});var Ur={">":`\\\\cdrightarrow`,"<":`\\\\cdleftarrow`,"=":`\\\\cdlongequal`,A:`\\uparrow`,V:`\\downarrow`,"|":`\\Vert`,".":`no arrow`},Wr=()=>({type:`styling`,body:[],mode:`math`,style:`display`,resetFont:!0}),Gr=e=>e.type===`textord`&&e.text===`@`,Kr=(e,t)=>(e.type===`mathord`||e.type===`atom`)&&e.text===t;function qr(e,t,n){var r=Ur[e];switch(r){case`\\\\cdrightarrow`:case`\\\\cdleftarrow`:return n.callFunction(r,[t[0]],[t[1]]);case`\\uparrow`:case`\\downarrow`:var i=n.callFunction(`\\\\cdleft`,[t[0]],[]),a={type:`atom`,text:r,mode:`math`,family:`rel`},o={type:`ordgroup`,mode:`math`,body:[i,n.callFunction(`\\Big`,[a],[]),n.callFunction(`\\\\cdright`,[t[1]],[])]};return n.callFunction(`\\\\cdparent`,[o],[]);case`\\\\cdlongequal`:return n.callFunction(`\\\\cdlongequal`,[],[]);case`\\Vert`:return n.callFunction(`\\Big`,[{type:`textord`,text:`\\Vert`,mode:`math`}],[]);default:return{type:`textord`,text:` `,mode:`math`}}}function Jr(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set(`\\cr`,`\\\\\\relax`),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,`\\\\`)),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n===`&`||n===`\\\\`)e.consume();else if(n===`\\end`){t[t.length-1].length===0&&t.pop();break}else throw new w(`Expected \\\\ or \\cr or \\end`,e.nextToken)}for(var r=[],i=[r],a=0;aAV`.includes(l))for(var d=0;d<2;d++){for(var f=!0,p=c+1;pAV=|." after @`,o[c])}var m={type:`styling`,body:[qr(l,u,e)],mode:`math`,style:`display`,resetFont:!0};r.push(m),s=Wr()}a%2==0?r.push(s):r.shift(),r=[],i.push(r)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:`math`,body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:Array(i[0].length).fill({type:`align`,align:`c`,pregap:.25,postgap:.25}),colSeparationType:`CD`,hLinesBeforeRow:Array(i.length+1).fill([])}}K({type:`cdlabel`,names:[`\\\\cdleft`,`\\\\cdright`],numArgs:1,handler(e,t){var n=e.parser,r=e.funcName;return{type:`cdlabel`,mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=Dn(J(e.label,n,t),t);return r.classes.push(`cd-label-`+e.side),r.style.bottom=O(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new Y(`mrow`,[Z(e.label,t)]);return n=new Y(`mpadded`,[n]),n.setAttribute(`width`,`0`),e.side===`left`&&n.setAttribute(`lspace`,`-1width`),n.setAttribute(`voffset`,`0.7em`),n=new Y(`mstyle`,[n]),n.setAttribute(`displaystyle`,`false`),n.setAttribute(`scriptlevel`,`1`),n}}),K({type:`cdlabelparent`,names:[`\\\\cdparent`],numArgs:1,handler(e,t){return{type:`cdlabelparent`,mode:e.parser.mode,fragment:t[0]}},htmlBuilder(e,t){var n=Dn(J(e.fragment,t),t);return n.classes.push(`cd-vert-arrow`),n},mathmlBuilder(e,t){return new Y(`mrow`,[Z(e.fragment,t)])}}),K({type:`textord`,names:[`\\@char`],numArgs:1,allowedInText:!0,handler(e,t){var n=e.parser,r=Pr(Q(t[0],`ordgroup`),`\\@char has non-numeric argument`),i=parseInt(r),a;if(isNaN(i))throw new w(`\\@char has non-numeric argument `+r);if(i<0||i>=1114111)throw new w(`\\@char with invalid code point `+r);return i<=65535?a=String.fromCharCode(i):(i-=65536,a=String.fromCharCode((i>>10)+55296,(i&1023)+56320)),{type:`textord`,mode:n.mode,text:a}}}),K({type:`color`,names:[`\\textcolor`],numArgs:2,allowedInText:!0,argTypes:[`color`,`original`],handler(e,t){var n=e.parser,r=Q(t[0],`color-token`).color,i=t[1];return{type:`color`,mode:n.mode,color:r,body:q(i)}},htmlBuilder:(e,t)=>En(qn(e.body,t.withColor(e.color),!1)),mathmlBuilder:(e,t)=>{var n=new Y(`mstyle`,ur(e.body,t.withColor(e.color)));return n.setAttribute(`mathcolor`,e.color),n}}),K({type:`color`,names:[`\\color`],numArgs:1,allowedInText:!0,argTypes:[`color`],handler(e,t){var n=e.parser,r=e.breakOnTokenText,i=Q(t[0],`color-token`).color;n.gullet.macros.set(`\\current@color`,i);var a=n.parseExpression(!0,r);return{type:`color`,mode:n.mode,color:i,body:a}}}),K({type:`cr`,names:[`\\\\`],numArgs:0,numOptionalArgs:0,allowedInText:!0,handler(e,t,n){var r=e.parser,i=r.gullet.future().text===`[`?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior(`newLineInDisplayMode`,`In LaTeX, \\\\ or \\newline does nothing in display mode`);return{type:`cr`,mode:r.mode,newLine:a,size:i&&Q(i,`size`).value}},htmlBuilder(e,t){var n=U([`mspace`],[],t);return e.newLine&&(n.classes.push(`katex-newline`),e.size&&(n.style.marginTop=O(D(e.size,t)))),n},mathmlBuilder(e,t){var n=new Y(`mspace`);return e.newLine&&(n.setAttribute(`linebreak`,`newline`),e.size&&n.setAttribute(`height`,O(D(e.size,t)))),n}});var Yr={"\\global":`\\global`,"\\long":`\\\\globallong`,"\\\\globallong":`\\\\globallong`,"\\def":`\\gdef`,"\\gdef":`\\gdef`,"\\edef":`\\xdef`,"\\xdef":`\\xdef`,"\\let":`\\\\globallet`,"\\futurelet":`\\\\globalfuture`},Xr=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new w(`Expected a control sequence`,e);return t},Zr=e=>{var t=e.gullet.popToken();return t.text===`=`&&(t=e.gullet.popToken(),t.text===` `&&(t=e.gullet.popToken())),t},Qr=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i??=(n.noexpand=!0,{tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};K({type:`internal`,names:[`\\global`,`\\long`,`\\\\globallong`],numArgs:0,allowedInText:!0,handler(e){var t=e.parser,n=e.funcName;t.consumeSpaces();var r=t.fetch();if(Yr[r.text])return(n===`\\global`||n===`\\\\globallong`)&&(r.text=Yr[r.text]),Q(t.parseFunction(),`internal`);throw new w(`Invalid token after macro prefix`,r)}}),K({type:`internal`,names:[`\\def`,`\\gdef`,`\\edef`,`\\xdef`],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var t=e.parser,n=e.funcName,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new w(`Expected a control sequence`,r);for(var a=0,o,s=[[]];t.gullet.future().text!==`{`;)if(r=t.gullet.popToken(),r.text===`#`){if(t.gullet.future().text===`{`){o=t.gullet.future(),s[a].push(`{`);break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new w(`Invalid argument number "`+r.text+`"`);if(parseInt(r.text)!==a+1)throw new w(`Argument number "`+r.text+`" out of order`);a++,s.push([])}else if(r.text===`EOF`)throw new w(`Expected a macro definition`);else s[a].push(r.text);var c=t.gullet.consumeArg().tokens;return o&&c.unshift(o),(n===`\\edef`||n===`\\xdef`)&&(c=t.gullet.expandTokens(c),c.reverse()),t.gullet.macros.set(i,{tokens:c,numArgs:a,delimiters:s},n===Yr[n]),{type:`internal`,mode:t.mode}}}),K({type:`internal`,names:[`\\let`,`\\\\globallet`],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var t=e.parser,n=e.funcName,r=Xr(t.gullet.popToken());return t.gullet.consumeSpaces(),Qr(t,r,Zr(t),n===`\\\\globallet`),{type:`internal`,mode:t.mode}}}),K({type:`internal`,names:[`\\futurelet`,`\\\\globalfuture`],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var t=e.parser,n=e.funcName,r=Xr(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return Qr(t,r,a,n===`\\\\globalfuture`),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:`internal`,mode:t.mode}}});var $r=function(e,t,n){var r=kt(k.math[e]&&k.math[e].replace||e,t,n);if(!r)throw Error(`Unsupported symbol `+e+` and font size `+t+`.`);return r},ei=function(e,t,n,r){var i=n.havingBaseStyle(t),a=U(r.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},ti=function(e,t,n){var r=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push(`delimcenter`),e.style.top=O(i),e.height-=i,e.depth+=i},ni=function(e,t,n,r,i,a){var o=ei(gn(e,`Main-Regular`,i,r),t,r,a);return n&&ti(o,r,t),o},ri=function(e,t,n,r){return gn(e,`Size`+t+`-Regular`,n,r)},ii=function(e,t,n,r,i,a){var o=ri(e,t,i,r),s=ei(U([`delimsizing`,`size`+t],[o],r),E.TEXT,r,a);return n&&ti(s,r,E.TEXT),s},ai=function(e,t,n){return{type:`elem`,elem:U([`delimsizinginner`,t===`Size1-Regular`?`delim-size1`:`delim-size4`],[U([],[gn(e,t,n)])])}},oi=function(e,t,n){var r=Tt[`Size4-Regular`][e.charCodeAt(0)]?Tt[`Size4-Regular`][e.charCodeAt(0)][4]:Tt[`Size1-Regular`][e.charCodeAt(0)][4],i=Cn([],[new yt([new bt(`inner`,et(e,Math.round(1e3*t)))],{width:O(r),height:O(t),style:`width:`+O(r),viewBox:`0 0 `+1e3*r+` `+Math.round(1e3*t),preserveAspectRatio:`xMinYMin`})],n);return i.height=t,i.style.height=O(t),i.style.width=O(r),{type:`elem`,elem:i}},si=.008,ci={type:`kern`,size:-1*si},li=new Set([`|`,`\\lvert`,`\\rvert`,`\\vert`]),ui=new Set([`\\|`,`\\lVert`,`\\rVert`,`\\Vert`]),di=function(e,t,n,r,i,a){var o,s,c,l,u=``,d=0;o=c=l=e,s=null;var f=`Size1-Regular`;e===`\\uparrow`?c=l=`⏐`:e===`\\Uparrow`?c=l=`‖`:e===`\\downarrow`?o=c=`⏐`:e===`\\Downarrow`?o=c=`‖`:e===`\\updownarrow`?(o=`\\uparrow`,c=`⏐`,l=`\\downarrow`):e===`\\Updownarrow`?(o=`\\Uparrow`,c=`‖`,l=`\\Downarrow`):li.has(e)?(c=`∣`,u=`vert`,d=333):ui.has(e)?(c=`∥`,u=`doublevert`,d=556):e===`[`||e===`\\lbrack`?(o=`⎡`,c=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lbrack`,d=667):e===`]`||e===`\\rbrack`?(o=`⎤`,c=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rbrack`,d=667):e===`\\lfloor`||e===`⌊`?(c=o=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lfloor`,d=667):e===`\\lceil`||e===`⌈`?(o=`⎡`,c=l=`⎢`,f=`Size4-Regular`,u=`lceil`,d=667):e===`\\rfloor`||e===`⌋`?(c=o=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rfloor`,d=667):e===`\\rceil`||e===`⌉`?(o=`⎤`,c=l=`⎥`,f=`Size4-Regular`,u=`rceil`,d=667):e===`(`||e===`\\lparen`?(o=`⎛`,c=`⎜`,l=`⎝`,f=`Size4-Regular`,u=`lparen`,d=875):e===`)`||e===`\\rparen`?(o=`⎞`,c=`⎟`,l=`⎠`,f=`Size4-Regular`,u=`rparen`,d=875):e===`\\{`||e===`\\lbrace`?(o=`⎧`,s=`⎨`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\}`||e===`\\rbrace`?(o=`⎫`,s=`⎬`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lgroup`||e===`⟮`?(o=`⎧`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\rgroup`||e===`⟯`?(o=`⎫`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lmoustache`||e===`⎰`?(o=`⎧`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):(e===`\\rmoustache`||e===`⎱`)&&(o=`⎫`,l=`⎩`,c=`⎪`,f=`Size4-Regular`);var p=$r(o,f,i),m=p.height+p.depth,h=$r(c,f,i),g=h.height+h.depth,_=$r(l,f,i),v=_.height+_.depth,y=0,b=1;if(s!==null){var x=$r(s,f,i);y=x.height+x.depth,b=2}var S=m+v+y,C=S+Math.max(0,Math.ceil((t-S)/(b*g)))*b*g,ee=r.fontMetrics().axisHeight;n&&(ee*=r.sizeMultiplier);var te=C/2-ee,ne=[];if(u.length>0){var re=C-m-v,ie=Math.round(C*1e3),ae=nt(u,Math.round(re*1e3)),oe=new bt(u,ae),se=O(d/1e3),ce=O(ie/1e3),le=Cn([],[new yt([oe],{width:se,height:ce,viewBox:`0 0 `+d+` `+ie})],r);le.height=ie/1e3,le.style.width=se,le.style.height=ce,ne.push({type:`elem`,elem:le})}else{if(ne.push(ai(l,f,i)),ne.push(ci),s===null){var ue=C-m-v+2*si;ne.push(oi(c,ue,r))}else{var w=(C-m-v-y)/2+2*si;ne.push(oi(c,w,r)),ne.push(ci),ne.push(ai(s,f,i)),ne.push(ci),ne.push(oi(c,w,r))}ne.push(ci),ne.push(ai(o,f,i))}var de=r.havingBaseStyle(E.TEXT);return ei(U([`delimsizing`,`mult`],[W({positionType:`bottom`,positionData:te,children:ne})],de),E.TEXT,r,a)},fi=80,pi=.08,mi=function(e,t,n,r,i){return Cn([`hide-tail`],[new yt([new bt(e,$e(e,r,n))],{width:`400em`,height:O(t),viewBox:`0 0 400000 `+n,preserveAspectRatio:`xMinYMin slice`})],i)},hi=function(e,t){var n=t.havingBaseSizing(),r=Ti(`\\surd`,e*n.sizeMultiplier,Ci,n),i=n.sizeMultiplier,a=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),o,s,c,l,u;return r.type===`small`?(l=1e3+1e3*a+fi,e<1?i=1:e<1.4&&(i=.7),s=(1+a+pi)/i,c=(1+a)/i,o=mi(`sqrtMain`,s,l,a,t),o.style.minWidth=`0.853em`,u=.833/i):r.type===`large`?(l=(1e3+fi)*yi[r.size],c=(yi[r.size]+a)/i,s=(yi[r.size]+a+pi)/i,o=mi(`sqrtSize`+r.size,s,l,a,t),o.style.minWidth=`1.02em`,u=1/i):(s=e+a+pi,c=e+a,l=Math.floor(1e3*e+a)+fi,o=mi(`sqrtTall`,s,l,a,t),o.style.minWidth=`0.742em`,u=1.056),o.height=c,o.style.height=O(s),{span:o,advanceWidth:u,ruleWidth:(t.fontMetrics().sqrtRuleThickness+a)*i}},gi=new Set([`(`,`\\lparen`,`)`,`\\rparen`,`[`,`\\lbrack`,`]`,`\\rbrack`,`\\{`,`\\lbrace`,`\\}`,`\\rbrace`,`\\lfloor`,`\\rfloor`,`⌊`,`⌋`,`\\lceil`,`\\rceil`,`⌈`,`⌉`,`\\surd`]),_i=new Set([`\\uparrow`,`\\downarrow`,`\\updownarrow`,`\\Uparrow`,`\\Downarrow`,`\\Updownarrow`,`|`,`\\|`,`\\vert`,`\\Vert`,`\\lvert`,`\\rvert`,`\\lVert`,`\\rVert`,`\\lgroup`,`\\rgroup`,`⟮`,`⟯`,`\\lmoustache`,`\\rmoustache`,`⎰`,`⎱`]),vi=new Set([`<`,`>`,`\\langle`,`\\rangle`,`/`,`\\backslash`,`\\lt`,`\\gt`]),yi=[0,1.2,1.8,2.4,3],bi=function(e,t,n,r,i){if(e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`),gi.has(e)||vi.has(e))return ii(e,t,!1,n,r,i);if(_i.has(e))return di(e,yi[t],!1,n,r,i);throw new w(`Illegal delimiter: '`+e+`'`)},xi=[{type:`small`,style:E.SCRIPTSCRIPT},{type:`small`,style:E.SCRIPT},{type:`small`,style:E.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4}],Si=[{type:`small`,style:E.SCRIPTSCRIPT},{type:`small`,style:E.SCRIPT},{type:`small`,style:E.TEXT},{type:`stack`}],Ci=[{type:`small`,style:E.SCRIPTSCRIPT},{type:`small`,style:E.SCRIPT},{type:`small`,style:E.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4},{type:`stack`}],wi=function(e){if(e.type===`small`)return`Main-Regular`;if(e.type===`large`)return`Size`+e.size+`-Regular`;if(e.type===`stack`)return`Size4-Regular`;var t=e.type;throw Error(`Add support for delim type '`+t+`' here.`)},Ti=function(e,t,n,r){for(var i=Math.min(2,3-r.style.size);it)return a}return n[n.length-1]},Ei=function(e,t,n,r,i,a){e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`);var o=vi.has(e)?xi:gi.has(e)?Ci:Si,s=Ti(e,t,o,r);return s.type===`small`?ni(e,s.style,n,r,i,a):s.type===`large`?ii(e,s.size,n,r,i,a):di(e,t,n,r,i,a)},Di=function(e,t,n,r,i,a){var o=r.fontMetrics().axisHeight*r.sizeMultiplier,s=901,c=5/r.fontMetrics().ptPerEm,l=Math.max(t-o,n+o);return Ei(e,Math.max(l/500*s,2*l-c),!0,r,i,a)},Oi={"\\bigl":{mclass:`mopen`,size:1},"\\Bigl":{mclass:`mopen`,size:2},"\\biggl":{mclass:`mopen`,size:3},"\\Biggl":{mclass:`mopen`,size:4},"\\bigr":{mclass:`mclose`,size:1},"\\Bigr":{mclass:`mclose`,size:2},"\\biggr":{mclass:`mclose`,size:3},"\\Biggr":{mclass:`mclose`,size:4},"\\bigm":{mclass:`mrel`,size:1},"\\Bigm":{mclass:`mrel`,size:2},"\\biggm":{mclass:`mrel`,size:3},"\\Biggm":{mclass:`mrel`,size:4},"\\big":{mclass:`mord`,size:1},"\\Big":{mclass:`mord`,size:2},"\\bigg":{mclass:`mord`,size:3},"\\Bigg":{mclass:`mord`,size:4}},ki=new Set(`(,\\lparen,),\\rparen,[,\\lbrack,],\\rbrack,\\{,\\lbrace,\\},\\rbrace,\\lfloor,\\rfloor,⌊,⌋,\\lceil,\\rceil,⌈,⌉,<,>,\\langle,⟨,\\rangle,⟩,\\lt,\\gt,\\lvert,\\rvert,\\lVert,\\rVert,\\lgroup,\\rgroup,⟮,⟯,\\lmoustache,\\rmoustache,⎰,⎱,/,\\backslash,|,\\vert,\\|,\\Vert,\\uparrow,\\Uparrow,\\downarrow,\\Downarrow,\\updownarrow,\\Updownarrow,.`.split(`,`));function Ai(e){return`isMiddle`in e}function ji(e,t){var n=Nr(e);if(n&&ki.has(n.text))return n;throw n?new w(`Invalid delimiter '`+n.text+`' after '`+t.funcName+`'`,e):new w(`Invalid delimiter type '`+e.type+`'`,e)}K({type:`delimsizing`,names:[`\\bigl`,`\\Bigl`,`\\biggl`,`\\Biggl`,`\\bigr`,`\\Bigr`,`\\biggr`,`\\Biggr`,`\\bigm`,`\\Bigm`,`\\biggm`,`\\Biggm`,`\\big`,`\\Big`,`\\bigg`,`\\Bigg`],numArgs:1,argTypes:[`primitive`],handler:(e,t)=>{var n=ji(Hn(t[0]),e);return{type:`delimsizing`,mode:e.parser.mode,size:Oi[e.funcName].size,mclass:Oi[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim===`.`?U([e.mclass]):bi(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!==`.`&&t.push(ar(e.delim,e.mode));var n=new Y(`mo`,t);e.mclass===`mopen`||e.mclass===`mclose`?n.setAttribute(`fence`,`true`):n.setAttribute(`fence`,`false`),n.setAttribute(`stretchy`,`true`);var r=O(yi[e.size]);return n.setAttribute(`minsize`,r),n.setAttribute(`maxsize`,r),n}});function Mi(e){if(!e.body)throw Error(`Bug: The leftright ParseNode wasn't fully parsed.`)}K({type:`leftright-right`,names:[`\\right`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=e.parser.gullet.macros.get(`\\current@color`);if(n&&typeof n!=`string`)throw new w(`\\current@color set to non-string in \\right`);return{type:`leftright-right`,mode:e.parser.mode,delim:ji(t[0],e).text,color:n}}}),K({type:`leftright`,names:[`\\left`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=ji(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect(`\\right`,!1);var a=Q(r.parseFunction(),`leftright-right`);return{type:`leftright`,mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{Mi(e);for(var n=qn(e.body,t,!0,[`mopen`,`mclose`]),r=0,i=0,a=!1,o=0;o{Mi(e);var n=ur(e.body,t);if(e.left!==`.`){var r=new Y(`mo`,[ar(e.left,e.mode)]);r.setAttribute(`fence`,`true`),n.unshift(r)}if(e.right!==`.`){var i=new Y(`mo`,[ar(e.right,e.mode)]);i.setAttribute(`fence`,`true`),e.rightColor&&i.setAttribute(`mathcolor`,e.rightColor),n.push(i)}return or(n)}}),K({type:`middle`,names:[`\\middle`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=ji(t[0],e);if(!e.parser.leftrightDepth)throw new w(`\\middle without preceding \\left`,n);return{type:`middle`,mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;return e.delim===`.`?n=Qn(t,[]):(n=bi(e.delim,1,t,e.mode,[]),n.isMiddle={delim:e.delim,options:t}),n},mathmlBuilder:(e,t)=>{var n=new Y(`mo`,[e.delim===`\\vert`||e.delim===`|`?ar(`|`,`text`):ar(e.delim,e.mode)]);return n.setAttribute(`fence`,`true`),n.setAttribute(`lspace`,`0.05em`),n.setAttribute(`rspace`,`0.05em`),n}}),K({type:`enclose`,names:[`\\colorbox`],numArgs:2,allowedInText:!0,argTypes:[`color`,`hbox`],handler(e,t,n){var r=e.parser,i=e.funcName,a=Q(t[0],`color-token`).color,o=t[1];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:(e,t)=>{var n=Dn(J(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,o,s=_e(e.body);if(r===`sout`)a=U([`katex-stretchy`,`katex-sout`]),a.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(r===`phase`){var c=D({number:.6,unit:`pt`},t),l=D({number:.35,unit:`ex`},t),u=t.havingBaseSizing();i/=u.sizeMultiplier;var d=n.height+n.depth+c+l;n.style.paddingLeft=O(d/2+c);var f=Math.floor(1e3*d*i);a=Cn([`hide-tail`],[new yt([new bt(`phase`,Ze(f))],{width:`400em`,height:O(f/1e3),viewBox:`0 0 400000 `+f,preserveAspectRatio:`xMinYMin slice`})],t),a.style.height=O(d),o=n.depth+c+l}else{/cancel/.test(r)?s||n.classes.push(`cancel-pad`):r===`angl`?n.classes.push(`anglpad`):n.classes.push(`boxpad`);var p,m,h=0;/box/.test(r)?(h=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),p=t.fontMetrics().fboxsep+(r===`colorbox`?0:h),m=p):r===`angl`?(h=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),p=4*h,m=Math.max(0,.25-n.depth)):(p=s?.2:0,m=p),a=Er(n,r,p,m,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle=`solid`,a.style.borderWidth=O(h)):r===`angl`&&h!==.049&&(a.style.borderTopWidth=O(h),a.style.borderRightWidth=O(h)),o=n.depth+m,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var g;if(e.backgroundColor)g=W({positionType:`individualShift`,children:[{type:`elem`,elem:a,shift:o},{type:`elem`,elem:n,shift:0}]});else{var _=/cancel|phase/.test(r)?[`svg-align`]:[];g=W({positionType:`individualShift`,children:[{type:`elem`,elem:n,shift:0},{type:`elem`,elem:a,shift:o,wrapperClasses:_}]})}return/cancel/.test(r)&&(g.height=n.height,g.depth=n.depth),/cancel/.test(r)&&!s?U([`mord`,`cancel-lap`],[g],t):U([`mord`],[g],t)},mathmlBuilder:(e,t)=>{var n,r=new Y(e.label.includes(`colorbox`)?`mpadded`:`menclose`,[Z(e.body,t)]);switch(e.label){case`\\cancel`:r.setAttribute(`notation`,`updiagonalstrike`);break;case`\\bcancel`:r.setAttribute(`notation`,`downdiagonalstrike`);break;case`\\phase`:r.setAttribute(`notation`,`phasorangle`);break;case`\\sout`:r.setAttribute(`notation`,`horizontalstrike`);break;case`\\fbox`:r.setAttribute(`notation`,`box`);break;case`\\angl`:r.setAttribute(`notation`,`actuarial`);break;case`\\fcolorbox`:case`\\colorbox`:if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute(`width`,`+`+2*n+`pt`),r.setAttribute(`height`,`+`+2*n+`pt`),r.setAttribute(`lspace`,n+`pt`),r.setAttribute(`voffset`,n+`pt`),e.label===`\\fcolorbox`){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute(`style`,`border: `+O(i)+` solid `+e.borderColor)}break;case`\\xcancel`:r.setAttribute(`notation`,`updiagonalstrike downdiagonalstrike`)}return e.backgroundColor&&r.setAttribute(`mathbackground`,e.backgroundColor),r}}),K({type:`enclose`,names:[`\\fcolorbox`],numArgs:3,allowedInText:!0,argTypes:[`color`,`color`,`hbox`],handler(e,t,n){var r=e.parser,i=e.funcName,a=Q(t[0],`color-token`).color,o=Q(t[1],`color-token`).color,s=t[2];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}}}),K({type:`enclose`,names:[`\\fbox`],numArgs:1,argTypes:[`hbox`],allowedInText:!0,handler(e,t){return{type:`enclose`,mode:e.parser.mode,label:`\\fbox`,body:t[0]}}}),K({type:`enclose`,names:[`\\cancel`,`\\bcancel`,`\\xcancel`,`\\phase`],numArgs:1,handler(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}}}),K({type:`enclose`,names:[`\\sout`],numArgs:1,allowedInText:!0,handler(e,t){var n=e.parser,r=e.funcName;n.mode===`math`&&n.settings.reportNonstrict(`mathVsSout`,`LaTeX's \\sout works only in text mode`);var i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}}}),K({type:`enclose`,names:[`\\angl`],numArgs:1,argTypes:[`hbox`],allowedInText:!1,handler(e,t){return{type:`enclose`,mode:e.parser.mode,label:`\\angl`,body:t[0]}}});var Ni={};function Pi(e){for(var t=e.type,n=e.names,r=e.props,i=e.handler,a=e.htmlBuilder,o=e.mathmlBuilder,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},c=0;c{if(!e.parser.settings.displayMode)throw new w(`{`+e.envName+`} can be used only in display mode.`)},Bi=new Set([`gather`,`gather*`]);function Vi(e){if(!e.includes(`ed`))return!e.includes(`*`)}function Hi(e,t,n){var r=t.hskipBeforeAndAfter,i=t.addJot,a=t.cols,o=t.arraystretch,s=t.colSeparationType,c=t.autoTag,l=t.singleRow,u=t.emptySingleRow,d=t.maxNumCols,f=t.leqno;if(e.gullet.beginGroup(),l||e.gullet.macros.set(`\\cr`,`\\\\\\relax`),!o){var p=e.gullet.expandMacroAsText(`\\arraystretch`);if(p==null)o=1;else if(o=parseFloat(p),!o||o<0)throw new w(`Invalid \\arraystretch: `+p)}e.gullet.beginGroup();var m=[],h=[m],g=[],_=[],v=c==null?void 0:[];function y(){c&&e.gullet.macros.set(`\\@eqnsw`,`1`,!0)}function b(){v&&(e.gullet.macros.get(`\\df@tag`)?(v.push(e.subparse([new Li(`\\df@tag`)])),e.gullet.macros.set(`\\df@tag`,void 0,!0)):v.push(!!c&&e.gullet.macros.get(`\\@eqnsw`)===`1`))}for(y(),_.push(Ri(e));;){var x=e.parseExpression(!1,l?`\\end`:`\\\\`);e.gullet.endGroup(),e.gullet.beginGroup();var S={type:`ordgroup`,mode:e.mode,body:x};n&&(S={type:`styling`,mode:e.mode,style:n,resetFont:!0,body:[S]}),m.push(S);var C=e.fetch().text;if(C===`&`){if(d&&m.length===d){if(l||s)throw new w(`Too many tab characters: &`,e.nextToken);e.settings.reportNonstrict(`textEnv`,`Too few columns specified in the {array} column argument.`)}e.consume()}else if(C===`\\end`){b(),m.length===1&&S.type===`styling`&&S.body.length===1&&S.body[0].type===`ordgroup`&&S.body[0].body.length===0&&(h.length>1||!u)&&h.pop(),_.length0&&(_+=.25),c.push({pos:_,isDashed:e[t]})}for(v(a[0]),n=0;n0&&(te+=g,xe))for(n=0;n=o)){var _e=void 0;(r>0||e.hskipBeforeAndAfter)&&(_e=fe?.pregap??d,_e!==0&&(ae=U([`arraycolsep`],[]),ae.style.width=O(_e),ie.push(ae)));var ve=[];for(n=0;n0){for(var Te=wn(`katex-hline`,t,l),Ee=wn(`katex-hdashline`,t,l),De=[{type:`elem`,elem:we,shift:0}];c.length>0;){var Oe=c.pop(),ke=Oe.pos-ne;Oe.isDashed?De.push({type:`elem`,elem:Ee,shift:ke}):De.push({type:`elem`,elem:Te,shift:ke})}we=W({positionType:`individualShift`,children:De})}if(se.length===0)return U([`mord`],[we],t);var Ae=U([`katex-tag`],[W({positionType:`individualShift`,children:se})],t);return En([we,Ae])},Gi={c:`center `,l:`left `,r:`right `},Ki=function(e,t){for(var n=[],r=new Y(`mtd`,[],[`mtr-glue`]),i=new Y(`mtd`,[],[`mml-eqn-num`]),a=0;a0){var p=e.cols,m=``,h=!1,g=0,_=p.length;p[0].type===`separator`&&(d+=`top `,g=1),p[p.length-1].type===`separator`&&(d+=`bottom `,--_);for(var v=g;v<_;v++){var y=p[v];y.type===`align`?(f+=Gi[y.align],h&&(m+=`none `),h=!0):y.type===`separator`&&(h&&=(m+=y.separator===`|`?`solid `:`dashed `,!1))}l.setAttribute(`columnalign`,f.trim()),/[sd]/.test(m)&&l.setAttribute(`columnlines`,m.trim())}if(e.colSeparationType===`align`){for(var b=e.cols||[],x=``,S=1;S0?`left `:``,d+=ee[ee.length-1].length>0?`right `:``;for(var te=1;te0&&u&&(p=1),n[d]={type:`align`,align:f,pregap:p,postgap:0}}return i.colSeparationType=u?`align`:`alignat`,i};Pi({type:`array`,names:[`array`,`darray`],props:{numArgs:1},handler(e,t){var n=(Nr(t[0])?[t[0]]:Q(t[0],`ordgroup`).body).map(function(e){var t=Mr(e).text;if(`lcr`.includes(t))return{type:`align`,align:t};if(t===`|`)return{type:`separator`,separator:`|`};if(t===`:`)return{type:`separator`,separator:`:`};throw new w(`Unknown column alignment: `+t,e)}),r={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return Hi(e.parser,r,Ui(e.envName))},htmlBuilder:Wi,mathmlBuilder:Ki}),Pi({type:`array`,names:[`matrix`,`pmatrix`,`bmatrix`,`Bmatrix`,`vmatrix`,`Vmatrix`,`matrix*`,`pmatrix*`,`bmatrix*`,`Bmatrix*`,`vmatrix*`,`Vmatrix*`],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:[`(`,`)`],bmatrix:[`[`,`]`],Bmatrix:[`\\{`,`\\}`],vmatrix:[`|`,`|`],Vmatrix:[`\\Vert`,`\\Vert`]}[e.envName.replace(`*`,``)],n=`c`,r={hskipBeforeAndAfter:!1,cols:[{type:`align`,align:n}]};if(e.envName.charAt(e.envName.length-1)===`*`){var i=e.parser;if(i.consumeSpaces(),i.fetch().text===`[`){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,!`lcr`.includes(n))throw new w(`Expected l or c or r`,i.nextToken);i.consume(),i.consumeSpaces(),i.expect(`]`),i.consume(),r.cols=[{type:`align`,align:n}]}}var a=Hi(e.parser,r,Ui(e.envName)),o=Math.max(0,...a.body.map(e=>e.length));return a.cols=Array(o).fill({type:`align`,align:n}),t?{type:`leftright`,mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:Wi,mathmlBuilder:Ki}),Pi({type:`array`,names:[`smallmatrix`],props:{numArgs:0},handler(e){var t=Hi(e.parser,{arraystretch:.5},`script`);return t.colSeparationType=`small`,t},htmlBuilder:Wi,mathmlBuilder:Ki}),Pi({type:`array`,names:[`subarray`],props:{numArgs:1},handler(e,t){var n=(Nr(t[0])?[t[0]]:Q(t[0],`ordgroup`).body).map(function(e){var t=Mr(e).text;if(`lc`.includes(t))return{type:`align`,align:t};throw new w(`Unknown column alignment: `+t,e)});if(n.length>1)throw new w(`{subarray} can contain only one column`);var r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},i=Hi(e.parser,r,`script`);if(i.body.length>0&&i.body[0].length>1)throw new w(`{subarray} can contain only one column`);return i},htmlBuilder:Wi,mathmlBuilder:Ki}),Pi({type:`array`,names:[`cases`,`dcases`,`rcases`,`drcases`],props:{numArgs:0},handler(e){var t=Hi(e.parser,{arraystretch:1.2,cols:[{type:`align`,align:`l`,pregap:0,postgap:1},{type:`align`,align:`l`,pregap:0,postgap:0}]},Ui(e.envName));return{type:`leftright`,mode:e.mode,body:[t],left:e.envName.includes(`r`)?`.`:`\\{`,right:e.envName.includes(`r`)?`\\}`:`.`,rightColor:void 0}},htmlBuilder:Wi,mathmlBuilder:Ki}),Pi({type:`array`,names:[`align`,`align*`,`aligned`,`split`],props:{numArgs:0},handler:qi,htmlBuilder:Wi,mathmlBuilder:Ki}),Pi({type:`array`,names:[`gathered`,`gather`,`gather*`],props:{numArgs:0},handler(e){Bi.has(e.envName)&&zi(e);var t={cols:[{type:`align`,align:`c`}],addJot:!0,colSeparationType:`gather`,autoTag:Vi(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Hi(e.parser,t,`display`)},htmlBuilder:Wi,mathmlBuilder:Ki}),Pi({type:`array`,names:[`alignat`,`alignat*`,`alignedat`],props:{numArgs:1},handler:qi,htmlBuilder:Wi,mathmlBuilder:Ki}),Pi({type:`array`,names:[`equation`,`equation*`],props:{numArgs:0},handler(e){zi(e);var t={autoTag:Vi(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Hi(e.parser,t,`display`)},htmlBuilder:Wi,mathmlBuilder:Ki}),Pi({type:`array`,names:[`CD`],props:{numArgs:0},handler(e){return zi(e),Jr(e.parser)},htmlBuilder:Wi,mathmlBuilder:Ki}),$(`\\nonumber`,`\\gdef\\@eqnsw{0}`),$(`\\notag`,`\\nonumber`),K({type:`text`,names:[`\\hline`,`\\hdashline`],numArgs:0,allowedInText:!0,allowedInMath:!0,handler(e,t){throw new w(e.funcName+` valid only within array environment`)}});var Ji=Ni;K({type:`environment`,names:[`\\begin`,`\\end`],numArgs:1,argTypes:[`text`],handler(e,t){var n=e.parser,r=e.funcName,i=t[0];if(i.type!==`ordgroup`)throw new w(`Invalid environment name`,i);var a=Pr(i,`Environment name should contain only text characters and spaces`,!0);if(r===`\\begin`){if(!Object.prototype.hasOwnProperty.call(Ji,a))throw new w(`No such environment: `+a,i);var o=Ji[a],s=n.parseArguments(`\\begin{`+a+`}`,o),c=s.args,l=s.optArgs,u={mode:n.mode,envName:a,parser:n},d=o.handler(u,c,l);n.expect(`\\end`,!1);var f=n.nextToken,p=Q(n.parseFunction(),`environment`);if(p.name!==a)throw new w(`Mismatch: \\begin{`+a+`} matched by \\end{`+p.name+`}`,f);return d}return{type:`environment`,mode:n.mode,name:a,nameGroup:i}}});var Yi=(e,t)=>{var n=e.font,r=t.withFont(n);return J(e.body,r)},Xi=(e,t)=>{var n=e.font,r=t.withFont(n);return Z(e.body,r)},Zi={"\\Bbb":`\\mathbb`,"\\bold":`\\mathbf`,"\\frak":`\\mathfrak`};K({type:`font`,names:[`\\mathrm`,`\\mathit`,`\\mathbf`,`\\mathnormal`,`\\mathsfit`,`\\mathbb`,`\\mathcal`,`\\mathfrak`,`\\mathscr`,`\\mathsf`,`\\mathtt`,`\\Bbb`,`\\bold`,`\\frak`],numArgs:1,allowedInArgument:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=Hn(t[0]),a=r in Zi?Zi[r]:r;return{type:`font`,mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:Yi,mathmlBuilder:Xi}),K({type:`mclass`,names:[`\\boldsymbol`,`\\bm`],numArgs:1,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`mclass`,mode:n.mode,mclass:Hr(r),body:[{type:`font`,mode:n.mode,font:`boldsymbol`,body:r}],isCharacterBox:_e(r)}}}),K({type:`font`,names:[`\\rm`,`\\sf`,`\\tt`,`\\bf`,`\\it`,`\\cal`],numArgs:0,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=e.breakOnTokenText,a=n.mode,o=n.parseExpression(!0,i);return{type:`font`,mode:a,font:`math`+r.slice(1),body:{type:`ordgroup`,mode:n.mode,body:o}}}});var Qi=(e,t)=>{var n=t.style,r=n.fracNum(),i=n.fracDen(),a=t.havingStyle(r),o=J(e.numer,a,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,c=3.5/t.fontMetrics().ptPerEm;o.height=o.height0?3*f:7*f,h=t.fontMetrics().denom1):(d>0?(p=t.fontMetrics().num2,m=f):(p=t.fontMetrics().num3,m=3*f),h=t.fontMetrics().denom2);var g;if(u){var _=t.fontMetrics().axisHeight;p-o.depth-(_+.5*d){var n=new Y(`mfrac`,[Z(e.numer,t),Z(e.denom,t)]);if(!e.hasBarLine)n.setAttribute(`linethickness`,`0px`);else if(e.barSize){var r=D(e.barSize,t);n.setAttribute(`linethickness`,O(r))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var a=new Y(`mo`,[new X(e.leftDelim.replace(`\\`,``))]);a.setAttribute(`fence`,`true`),i.push(a)}if(i.push(n),e.rightDelim!=null){var o=new Y(`mo`,[new X(e.rightDelim.replace(`\\`,``))]);o.setAttribute(`fence`,`true`),i.push(o)}return or(i)}return n},ea=(e,t)=>t?{type:`styling`,mode:e.mode,style:t,body:[e]}:e;K({type:`genfrac`,names:[`\\cfrac`,`\\dfrac`,`\\frac`,`\\tfrac`,`\\dbinom`,`\\binom`,`\\tbinom`,`\\\\atopfrac`,`\\\\bracefrac`,`\\\\brackfrac`],numArgs:2,allowedInArgument:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0],a=t[1],o,s=null,c=null;switch(r){case`\\cfrac`:case`\\dfrac`:case`\\frac`:case`\\tfrac`:o=!0;break;case`\\\\atopfrac`:o=!1;break;case`\\dbinom`:case`\\binom`:case`\\tbinom`:o=!1,s=`(`,c=`)`;break;case`\\\\bracefrac`:o=!1,s=`\\{`,c=`\\}`;break;case`\\\\brackfrac`:o=!1,s=`[`,c=`]`;break;default:throw Error(`Unrecognized genfrac command`)}var l=r===`\\cfrac`,u=null;return l||r.startsWith(`\\d`)?u=`display`:r.startsWith(`\\t`)&&(u=`text`),ea({type:`genfrac`,mode:n.mode,numer:i,denom:a,continued:l,hasBarLine:o,leftDelim:s,rightDelim:c,barSize:null},u)},htmlBuilder:Qi,mathmlBuilder:$i}),K({type:`infix`,names:[`\\over`,`\\choose`,`\\atop`,`\\brace`,`\\brack`],numArgs:0,infix:!0,handler(e){var t=e.parser,n=e.funcName,r=e.token,i;switch(n){case`\\over`:i=`\\frac`;break;case`\\choose`:i=`\\binom`;break;case`\\atop`:i=`\\\\atopfrac`;break;case`\\brace`:i=`\\\\bracefrac`;break;case`\\brack`:i=`\\\\brackfrac`;break;default:throw Error(`Unrecognized infix genfrac command`)}return{type:`infix`,mode:t.mode,replaceWith:i,token:r}}});var ta=[`display`,`text`,`script`,`scriptscript`],na=function(e){var t=null;return e.length>0&&(t=e,t=t===`.`?null:t),t};K({type:`genfrac`,names:[`\\genfrac`],numArgs:6,allowedInArgument:!0,argTypes:[`math`,`math`,`size`,`text`,`math`,`math`],handler(e,t){var n=e.parser,r=t[4],i=t[5],a=Hn(t[0]),o=a.type===`atom`&&a.family===`open`?na(a.text):null,s=Hn(t[1]),c=s.type===`atom`&&s.family===`close`?na(s.text):null,l=Q(t[2],`size`),u,d=null;l.isBlank?u=!0:(d=l.value,u=d.number>0);var f=null,p=t[3];if(p.type===`ordgroup`){if(p.body.length>0){var m=Q(p.body[0],`textord`);f=ta[Number(m.text)]}}else p=Q(p,`textord`),f=ta[Number(p.text)];return ea({type:`genfrac`,mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:u,barSize:d,leftDelim:o,rightDelim:c},f)}}),K({type:`infix`,names:[`\\above`],numArgs:1,argTypes:[`size`],infix:!0,handler(e,t){var n=e.parser;e.funcName;var r=e.token;return{type:`infix`,mode:n.mode,replaceWith:`\\\\abovefrac`,size:Q(t[0],`size`).value,token:r}}}),K({type:`genfrac`,names:[`\\\\abovefrac`],numArgs:3,argTypes:[`math`,`size`,`math`],handler:(e,t)=>{var n=e.parser;e.funcName;var r=t[0],i=Q(t[1],`infix`).size;if(!i)throw Error(`\\\\abovefrac expected size, but got `+String(i));var a=t[2],o=i.number>0;return{type:`genfrac`,mode:n.mode,numer:r,denom:a,continued:!1,hasBarLine:o,barSize:i,leftDelim:null,rightDelim:null}}});var ra=(e,t)=>{var n=t.style,r,i;e.type===`supsub`?(r=e.sup?J(e.sup,t.havingStyle(n.sup()),t):J(e.sub,t.havingStyle(n.sub()),t),i=Q(e.base,`horizBrace`)):i=Q(e,`horizBrace`);var a=J(i.base,t.havingBaseStyle(E.DISPLAY)),o=Tr(i,t),s=i.isOver?W({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:.1},{type:`elem`,elem:o,wrapperClasses:[`svg-align`]}]}):W({positionType:`bottom`,positionData:a.depth+.1+o.height,children:[{type:`elem`,elem:o,wrapperClasses:[`svg-align`]},{type:`kern`,size:.1},{type:`elem`,elem:a}]});if(r){var c=U([`minner`,i.isOver?`mover`:`munder`],[s],t);s=i.isOver?W({positionType:`firstBaseline`,children:[{type:`elem`,elem:c},{type:`kern`,size:.2},{type:`elem`,elem:r}]}):W({positionType:`bottom`,positionData:c.depth+.2+r.height+r.depth,children:[{type:`elem`,elem:r},{type:`kern`,size:.2},{type:`elem`,elem:c}]})}return U([`minner`,i.isOver?`mover`:`munder`],[s],t)};K({type:`horizBrace`,names:[`\\overbrace`,`\\underbrace`,`\\overbracket`,`\\underbracket`],numArgs:1,handler(e,t){var n=e.parser,r=e.funcName;return{type:`horizBrace`,mode:n.mode,label:r,isOver:r.includes(`\\over`),base:t[0]}},htmlBuilder:ra,mathmlBuilder:(e,t)=>{var n=Sr(e.label);return new Y(e.isOver?`mover`:`munder`,[Z(e.base,t),n])}}),K({type:`href`,names:[`\\href`],numArgs:2,argTypes:[`url`,`original`],allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=t[1],i=Q(t[0],`url`).url;return n.settings.isTrusted({command:`\\href`,url:i})?{type:`href`,mode:n.mode,href:i,body:q(r)}:n.formatUnsupportedCmd(`\\href`)},htmlBuilder:(e,t)=>{var n=qn(e.body,t,!1);return Tn(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=dr(e.body,t);return n instanceof Y||(n=new Y(`mrow`,[n])),n.setAttribute(`href`,e.href),n}}),K({type:`href`,names:[`\\url`],numArgs:1,argTypes:[`url`],allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=Q(t[0],`url`).url;if(!n.settings.isTrusted({command:`\\url`,url:r}))return n.formatUnsupportedCmd(`\\url`);for(var i=[],a=0;a{var n=e.parser,r=e.funcName;e.token;var i=Q(t[0],`raw`).string,a=t[1];n.settings.strict&&n.settings.reportNonstrict(`htmlExtension`,`HTML extension is disabled on strict mode`);var o,s={};switch(r){case`\\htmlClass`:s.class=i,o={command:`\\htmlClass`,class:i};break;case`\\htmlId`:s.id=i,o={command:`\\htmlId`,id:i};break;case`\\htmlStyle`:s.style=i,o={command:`\\htmlStyle`,style:i};break;case`\\htmlData`:for(var c=`{,}`,l=[],u=``,d=0;d{var n=qn(e.body,t,!1),r=[`enclosing`];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=U(r,n,t);for(var a of Object.entries(e.attributes)){var o=a[0],s=a[1];o!==`class`&&i.setAttribute(o,s)}return i},mathmlBuilder:(e,t)=>dr(e.body,t)}),K({type:`htmlmathml`,names:[`\\html@mathml`],numArgs:2,allowedInArgument:!0,allowedInText:!0,handler:(e,t)=>({type:`htmlmathml`,mode:e.parser.mode,html:q(t[0]),mathml:q(t[1])}),htmlBuilder:(e,t)=>En(qn(e.html,t,!1)),mathmlBuilder:(e,t)=>dr(e.mathml,t)});var ia=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:`bp`};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new w(`Invalid size: '`+e+`' in \\includegraphics`);var n={number:+(t[1]+t[2]),unit:t[3]};if(!st(n))throw new w(`Invalid unit: '`+n.unit+`' in \\includegraphics.`);return n};K({type:`includegraphics`,names:[`\\includegraphics`],numArgs:1,numOptionalArgs:1,argTypes:[`raw`,`url`],allowedInText:!1,handler:(e,t,n)=>{var r=e.parser,i={number:0,unit:`em`},a={number:.9,unit:`em`},o={number:0,unit:`em`},s=``;if(n[0])for(var c=Q(n[0],`raw`).string.split(`,`),l=0;l{var n=D(e.height,t),r=0;e.totalheight.number>0&&(r=D(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=D(e.width,t));var a={height:O(n+r)};i>0&&(a.width=O(i)),r>0&&(a.verticalAlign=O(-r));var o=new gt(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new Y(`mglyph`,[]);n.setAttribute(`alt`,e.alt);var r=D(e.height,t),i=0;if(e.totalheight.number>0&&(i=D(e.totalheight,t)-r,n.setAttribute(`valign`,O(-i))),n.setAttribute(`height`,O(r+i)),e.width.number>0){var a=D(e.width,t);n.setAttribute(`width`,O(a))}return n.setAttribute(`src`,e.src),n}}),K({type:`kern`,names:[`\\kern`,`\\mkern`,`\\hskip`,`\\mskip`],numArgs:1,argTypes:[`size`],primitive:!0,allowedInText:!0,handler(e,t){var n=e.parser,r=e.funcName,i=Q(t[0],`size`);if(n.settings.strict){var a=r[1]===`m`,o=i.value.unit===`mu`;a?(o||n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` supports only mu units, `+(`not `+i.value.unit+` units`)),n.mode!==`math`&&n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` works only in math mode`)):o&&n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` doesn't support mu units`)}return{type:`kern`,mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return kn(e.dimension,t)},mathmlBuilder(e,t){return new nr(D(e.dimension,t))}}),K({type:`lap`,names:[`\\mathllap`,`\\mathrlap`,`\\mathclap`],numArgs:1,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0];return{type:`lap`,mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment===`clap`?(n=U([],[J(e.body,t)]),n=U([`katex-inner`],[n],t)):n=U([`katex-inner`],[J(e.body,t)]);var r=U([`katex-fix`],[]),i=U([e.alignment],[n,r],t),a=U([`katex-strut`]);return a.style.height=O(i.height+i.depth),i.depth&&(a.style.verticalAlign=O(-i.depth)),i.children.unshift(a),i=U([`katex-thinbox`],[i],t),U([`mord`,`katex-vbox`],[i],t)},mathmlBuilder:(e,t)=>{var n=new Y(`mpadded`,[Z(e.body,t)]);if(e.alignment!==`rlap`){var r=e.alignment===`llap`?`-1`:`-0.5`;n.setAttribute(`lspace`,r+`width`)}return n.setAttribute(`width`,`0px`),n}}),K({type:`styling`,names:[`\\(`,`$`],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(e,t){var n=e.funcName,r=e.parser,i=r.mode;r.switchMode(`math`);var a=n===`\\(`?`\\)`:`$`,o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:`styling`,mode:r.mode,style:`text`,resetFont:!0,body:o}}}),K({type:`text`,names:[`\\)`,`\\]`],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(e,t){throw new w(`Mismatched `+e.funcName)}});var aa=(e,t)=>{switch(t.style.size){case E.DISPLAY.size:return e.display;case E.TEXT.size:return e.text;case E.SCRIPT.size:return e.script;case E.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};K({type:`mathchoice`,names:[`\\mathchoice`],numArgs:4,primitive:!0,handler:(e,t)=>({type:`mathchoice`,mode:e.parser.mode,display:q(t[0]),text:q(t[1]),script:q(t[2]),scriptscript:q(t[3])}),htmlBuilder:(e,t)=>En(qn(aa(e,t),t,!1)),mathmlBuilder:(e,t)=>dr(aa(e,t),t)});var oa=(e,t,n,r,i,a,o)=>{e=U([],[e]);var s=n&&_e(n),c,l;if(t){var u=J(t,r.havingStyle(i.sup()),r);l={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var d=J(n,r.havingStyle(i.sub()),r);c={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}var f;if(l&&c)f=W({positionType:`bottom`,positionData:r.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+e.depth+o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:O(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:O(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else if(c)f=W({positionType:`top`,positionData:e.height-o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:O(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e}]});else if(l)f=W({positionType:`bottom`,positionData:e.depth+o,children:[{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:O(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else return e;var p=[f];if(c&&a!==0&&!s){var m=U([`mspace`],[],r);m.style.marginRight=O(a),p.unshift(m)}return U([`mop`,`op-limits`],p,r)},sa=new Set([`\\smallint`]),ca=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=Q(e.base,`op`),i=!0):a=Q(e,`op`);var o=t.style,s=!1;o.size===E.DISPLAY.size&&a.symbol&&!sa.has(a.name)&&(s=!0);var c,l;if(a.symbol){var u=s?`Size2-Regular`:`Size1-Regular`,d=``;if((a.name===`\\oiint`||a.name===`\\oiiint`)&&(d=a.name.slice(1),a.name=d===`oiint`?`\\iint`:`\\iiint`),c=gn(a.name,u,`math`,t,[`mop`,`op-symbol`,s?`large-op`:`small-op`]),l=c.italic,d.length>0){var f=Nn(d+`Size`+(s?`2`:`1`),t);c=W({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:0},{type:`elem`,elem:f,shift:s?.08:0}]}),a.name=`\\`+d,c.classes.unshift(`mop`),c.italic=l}}else if(a.body){var p=qn(a.body,t,!0);p.length===1&&p[0]instanceof vt?(c=p[0],c.classes[0]=`mop`):c=U([`mop`],p,t)}else{for(var m=[],h=1;h{var n;if(e.symbol)n=new Y(`mo`,[ar(e.name,e.mode)]),sa.has(e.name)&&n.setAttribute(`largeop`,`false`);else if(e.body)n=new Y(`mo`,ur(e.body,t));else{n=new Y(`mi`,[new X(e.name.slice(1))]);var r=new Y(`mo`,[ar(`⁡`,`text`)]);n=e.parentIsSupSub?new Y(`mrow`,[n,r]):tr([n,r])}return n},ua={"∏":`\\prod`,"∐":`\\coprod`,"∑":`\\sum`,"⋀":`\\bigwedge`,"⋁":`\\bigvee`,"⋂":`\\bigcap`,"⋃":`\\bigcup`,"⨀":`\\bigodot`,"⨁":`\\bigoplus`,"⨂":`\\bigotimes`,"⨄":`\\biguplus`,"⨆":`\\bigsqcup`};K({type:`op`,names:`\\coprod.\\bigvee.\\bigwedge.\\biguplus.\\bigcap.\\bigcup.\\intop.\\prod.\\sum.\\bigotimes.\\bigoplus.\\bigodot.\\bigsqcup.\\smallint.∏.∐.∑.⋀.⋁.⋂.⋃.⨀.⨁.⨂.⨄.⨆`.split(`.`),numArgs:0,handler:(e,t)=>{var n=e.parser,r=e.funcName;return r.length===1&&(r=ua[r]),{type:`op`,mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:ca,mathmlBuilder:la}),K({type:`op`,names:[`\\mathop`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`op`,mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:q(r)}}});var da={"∫":`\\int`,"∬":`\\iint`,"∭":`\\iiint`,"∮":`\\oint`,"∯":`\\oiint`,"∰":`\\oiiint`};K({type:`op`,names:`\\arcsin.\\arccos.\\arctan.\\arctg.\\arcctg.\\arg.\\ch.\\cos.\\cosec.\\cosh.\\cot.\\cotg.\\coth.\\csc.\\ctg.\\cth.\\deg.\\dim.\\exp.\\hom.\\ker.\\lg.\\ln.\\log.\\sec.\\sin.\\sinh.\\sh.\\tan.\\tanh.\\tg.\\th`.split(`.`),numArgs:0,handler(e){var t=e.parser,n=e.funcName;return{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}}}),K({type:`op`,names:[`\\det`,`\\gcd`,`\\inf`,`\\lim`,`\\max`,`\\min`,`\\Pr`,`\\sup`],numArgs:0,handler(e){var t=e.parser,n=e.funcName;return{type:`op`,mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}}}),K({type:`op`,names:[`\\int`,`\\iint`,`\\iiint`,`\\oint`,`\\oiint`,`\\oiiint`,`∫`,`∬`,`∭`,`∮`,`∯`,`∰`],numArgs:0,allowedInArgument:!0,handler(e){var t=e.parser,n=e.funcName;return n.length===1&&(n=da[n]),{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}}});var fa=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=Q(e.base,`operatorname`),i=!0):a=Q(e,`operatorname`);var o;if(a.body.length>0){for(var s=qn(a.body.map(e=>{var t=`text`in e?e.text:void 0;return typeof t==`string`?{type:`textord`,mode:e.mode,text:t}:e}),t.withFont(`mathrm`),!0),c=0;c{var n=e.parser,r=e.funcName,i=t[0];return{type:`operatorname`,mode:n.mode,body:q(i),alwaysHandleSupSub:r===`\\operatornamewithlimits`,limits:!1,parentIsSupSub:!1}},htmlBuilder:fa,mathmlBuilder:(e,t)=>{for(var n=ur(e.body,t.withFont(`mathrm`)),r=!0,i=0;ie.toText()).join(``))]);var s=new Y(`mi`,n);s.setAttribute(`mathvariant`,`normal`);var c=new Y(`mo`,[ar(`⁡`,`text`)]);return e.parentIsSupSub?new Y(`mrow`,[s,c]):tr([s,c])}}),$(`\\operatorname`,`\\@ifstar\\operatornamewithlimits\\operatorname@`),Vn({type:`ordgroup`,htmlBuilder(e,t){return e.semisimple?En(qn(e.body,t,!1)):U([`mord`],qn(e.body,t,!0),t)},mathmlBuilder(e,t){return dr(e.body,t,!0)}}),K({type:`overline`,names:[`\\overline`],numArgs:1,handler(e,t){var n=e.parser,r=t[0];return{type:`overline`,mode:n.mode,body:r}},htmlBuilder(e,t){var n=J(e.body,t.havingCrampedStyle()),r=wn(`overline-line`,t),i=t.fontMetrics().defaultRuleThickness;return U([`mord`,`katex-overline`],[W({positionType:`firstBaseline`,children:[{type:`elem`,elem:n},{type:`kern`,size:3*i},{type:`elem`,elem:r},{type:`kern`,size:i}]})],t)},mathmlBuilder(e,t){var n=new Y(`mo`,[new X(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new Y(`mover`,[Z(e.body,t),n]);return r.setAttribute(`accent`,`true`),r}}),K({type:`phantom`,names:[`\\phantom`],numArgs:1,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`phantom`,mode:n.mode,body:q(r)}},htmlBuilder:(e,t)=>En(qn(e.body,t.withPhantom(),!1)),mathmlBuilder:(e,t)=>new Y(`mphantom`,ur(e.body,t))}),$(`\\hphantom`,`\\smash{\\phantom{#1}}`),K({type:`vphantom`,names:[`\\vphantom`],numArgs:1,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`vphantom`,mode:n.mode,body:r}},htmlBuilder:(e,t)=>U([`mord`,`rlap`],[U([`katex-inner`],[J(e.body,t.withPhantom())]),U([`katex-fix`],[])],t),mathmlBuilder:(e,t)=>{var n=new Y(`mpadded`,[new Y(`mphantom`,ur(q(e.body),t))]);return n.setAttribute(`width`,`0px`),n}}),K({type:`raisebox`,names:[`\\raisebox`],numArgs:2,argTypes:[`size`,`hbox`],allowedInText:!0,handler(e,t){var n=e.parser,r=Q(t[0],`size`).value,i=t[1];return{type:`raisebox`,mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=J(e.body,t);return W({positionType:`shift`,positionData:-D(e.dy,t),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){var n=new Y(`mpadded`,[Z(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute(`voffset`,r),n}}),K({type:`internal`,names:[`\\relax`],numArgs:0,allowedInText:!0,allowedInArgument:!0,handler(e){return{type:`internal`,mode:e.parser.mode}}}),K({type:`rule`,names:[`\\rule`],numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`size`,`size`,`size`],handler(e,t,n){var r=e.parser,i=n[0],a=Q(t[0],`size`),o=Q(t[1],`size`);return{type:`rule`,mode:r.mode,shift:i&&Q(i,`size`).value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=U([`mord`,`katex-rule`],[],t),r=D(e.width,t),i=D(e.height,t),a=e.shift?D(e.shift,t):0;return n.style.borderRightWidth=O(r),n.style.borderTopWidth=O(i),n.style.bottom=O(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=D(e.width,t),r=D(e.height,t),i=e.shift?D(e.shift,t):0,a=t.color&&t.getColor()||`black`,o=new Y(`mspace`);o.setAttribute(`mathbackground`,a),o.setAttribute(`width`,O(n)),o.setAttribute(`height`,O(r));var s=new Y(`mpadded`,[o]);return i>=0?s.setAttribute(`height`,O(i)):(s.setAttribute(`height`,O(i)),s.setAttribute(`depth`,O(-i))),s.setAttribute(`voffset`,O(i)),s}});function pa(e,t,n){for(var r=qn(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a{var n=e.breakOnTokenText,r=e.funcName,i=e.parser,a=i.parseExpression(!1,n);return{type:`sizing`,mode:i.mode,size:ma.indexOf(r)+1,body:a}},htmlBuilder:(e,t)=>{var n=t.havingSize(e.size);return pa(e.body,n,t)},mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=new Y(`mstyle`,ur(e.body,n));return r.setAttribute(`mathsize`,O(n.sizeMultiplier)),r}}),K({type:`smash`,names:[`\\smash`],numArgs:1,numOptionalArgs:1,allowedInText:!0,handler:(e,t,n)=>{var r=e.parser,i=!1,a=!1,o=n[0]&&Q(n[0],`ordgroup`);if(o)for(var s,c=0;c{var n=U([],[J(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return U([`mord`,`katex-smash`],[n],t);if(n.children)for(var r=0;r{var n=new Y(`mpadded`,[Z(e.body,t)]);return e.smashHeight&&n.setAttribute(`height`,`0px`),e.smashDepth&&n.setAttribute(`depth`,`0px`),n}}),K({type:`sqrt`,names:[`\\sqrt`],numArgs:1,numOptionalArgs:1,handler(e,t,n){var r=e.parser,i=n[0],a=t[0];return{type:`sqrt`,mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=J(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=Dn(n,t);var r=t.fontMetrics().defaultRuleThickness,i=r;t.style.idn.height+n.depth+a&&(a=(a+u-n.height-n.depth)/2);var d=s.height-n.height-a-c;n.style.paddingLeft=O(l);var f=W({positionType:`firstBaseline`,children:[{type:`elem`,elem:n,wrapperClasses:[`svg-align`]},{type:`kern`,size:-(n.height+d)},{type:`elem`,elem:s},{type:`kern`,size:c}]});if(e.index){var p=t.havingStyle(E.SCRIPTSCRIPT),m=J(e.index,p,t);return U([`mord`,`sqrt`],[U([`katex-root`],[W({positionType:`shift`,positionData:-(.6*(f.height-f.depth)),children:[{type:`elem`,elem:m}]})]),f],t)}return U([`mord`,`sqrt`],[f],t)},mathmlBuilder(e,t){var n=e.body,r=e.index;return r?new Y(`mroot`,[Z(n,t),Z(r,t)]):new Y(`msqrt`,[Z(n,t)])}});var ha={display:E.DISPLAY,text:E.TEXT,script:E.SCRIPT,scriptscript:E.SCRIPTSCRIPT};function ga(e){return e in ha}K({type:`styling`,names:[`\\displaystyle`,`\\textstyle`,`\\scriptstyle`,`\\scriptscriptstyle`],numArgs:0,allowedInText:!0,primitive:!0,handler(e,t){var n=e.breakOnTokenText,r=e.funcName,i=e.parser,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);if(!ga(o))throw Error(`Unknown style: `+o);return{type:`styling`,mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=ha[e.style],r=t.havingStyle(n);return e.resetFont&&(r=r.withFont(``)),pa(e.body,r,t)},mathmlBuilder(e,t){var n=ha[e.style],r=t.havingStyle(n);e.resetFont&&(r=r.withFont(``));var i=new Y(`mstyle`,ur(e.body,r)),a={display:[`0`,`true`],text:[`0`,`false`],script:[`1`,`false`],scriptscript:[`2`,`false`]}[e.style];return i.setAttribute(`scriptlevel`,a[0]),i.setAttribute(`displaystyle`,a[1]),i}});var _a=function(e,t){var n=e.base;return n?n.type===`op`?n.limits&&(t.style.size===E.DISPLAY.size||n.alwaysHandleSupSub)?ca:null:n.type===`operatorname`?n.alwaysHandleSupSub&&(t.style.size===E.DISPLAY.size||n.limits)?fa:null:n.type===`accent`?_e(n.base)?Ir:null:n.type===`horizBrace`&&!e.sub===n.isOver?ra:null:null};Vn({type:`supsub`,htmlBuilder(e,t){var n=_a(e,t);if(n)return n(e,t);var r=e.base,i=e.sup,a=e.sub,o=J(r,t),s,c,l=t.fontMetrics(),u=0,d=0,f=r&&_e(r);if(i){var p=t.havingStyle(t.style.sup());s=J(i,p,t),f||(u=o.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(a){var m=t.havingStyle(t.style.sub());c=J(a,m,t),f||(d=o.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}var h=t.style===E.DISPLAY?l.sup1:t.style.cramped?l.sup3:l.sup2,g=t.sizeMultiplier,_=O(.5/l.ptPerEm/g),v=null;if(c){var y=e.base&&e.base.type===`op`&&e.base.name&&(e.base.name===`\\oiint`||e.base.name===`\\oiiint`);(o instanceof vt||y)&&(v=O(-(o.italic??0)))}var b;if(s&&c){u=Math.max(u,h,s.depth+.25*l.xHeight),d=Math.max(d,l.sub2);var x=4*l.defaultRuleThickness;if(u-s.depth-(c.height-d)0&&(u+=S,d-=S)}b=W({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:d,marginRight:_,marginLeft:v},{type:`elem`,elem:s,shift:-u,marginRight:_}]})}else if(c)d=Math.max(d,l.sub1,c.height-.8*l.xHeight),b=W({positionType:`shift`,positionData:d,children:[{type:`elem`,elem:c,marginLeft:v,marginRight:_}]});else if(s)u=Math.max(u,h,s.depth+.25*l.xHeight),b=W({positionType:`shift`,positionData:-u,children:[{type:`elem`,elem:s,marginRight:_}]});else throw Error(`supsub must have either sup or sub.`);return U([Zn(o,`right`)||`mord`],[o,U([`msupsub`],[b])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type===`horizBrace`&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type===`op`||e.base.type===`operatorname`)&&(e.base.parentIsSupSub=!0);var a=[Z(e.base,t)];e.sub&&a.push(Z(e.sub,t)),e.sup&&a.push(Z(e.sup,t));var o;if(n)o=r?`mover`:`munder`;else if(!e.sub){var s=e.base;o=s&&s.type===`op`&&s.limits&&(t.style===E.DISPLAY||s.alwaysHandleSupSub)||s&&s.type===`operatorname`&&s.alwaysHandleSupSub&&(s.limits||t.style===E.DISPLAY)?`mover`:`msup`}else if(e.sup){var c=e.base;o=c&&c.type===`op`&&c.limits&&t.style===E.DISPLAY||c&&c.type===`operatorname`&&c.alwaysHandleSupSub&&(t.style===E.DISPLAY||c.limits)?`munderover`:`msubsup`}else{var l=e.base;o=l&&l.type===`op`&&l.limits&&(t.style===E.DISPLAY||l.alwaysHandleSupSub)||l&&l.type===`operatorname`&&l.alwaysHandleSupSub&&(l.limits||t.style===E.DISPLAY)?`munder`:`msub`}return new Y(o,a)}}),Vn({type:`atom`,htmlBuilder(e,t){return _n(e.text,e.mode,t,[`m`+e.family])},mathmlBuilder(e,t){var n=new Y(`mo`,[ar(e.text,e.mode)]);if(e.family===`bin`){var r=cr(e,t);r===`bold-italic`&&n.setAttribute(`mathvariant`,r)}else e.family===`punct`?n.setAttribute(`separator`,`true`):(e.family===`open`||e.family===`close`)&&n.setAttribute(`stretchy`,`false`);return n}});var va={mi:`italic`,mn:`normal`,mtext:`normal`};Vn({type:`mathord`,htmlBuilder(e,t){return yn(e,t)},mathmlBuilder(e,t){var n=new Y(`mi`,[ar(e.text,e.mode,t)]),r=cr(e,t)||`italic`;return r!==va[n.type]&&n.setAttribute(`mathvariant`,r),n}}),Vn({type:`textord`,htmlBuilder(e,t){return yn(e,t)},mathmlBuilder(e,t){var n=ar(e.text,e.mode,t),r=cr(e,t)||`normal`,i=e.mode===`text`?new Y(`mtext`,[n]):/[0-9]/.test(e.text)?new Y(`mn`,[n]):e.text===`\\prime`?new Y(`mo`,[n]):new Y(`mi`,[n]);return r!==va[i.type]&&i.setAttribute(`mathvariant`,r),i}});var ya=new Map([[`\\nobreak`,`nobreak`],[`\\allowbreak`,`allowbreak`]]),ba=new Map([[` `,{}],[`\\ `,{}],[`~`,{className:`nobreak`}],[`\\space`,{}],[`\\nobreakspace`,{className:`nobreak`}]]);Vn({type:`spacing`,htmlBuilder(e,t){var n=ba.get(e.text),r=ya.get(e.text);if(n){var i=n.className||``;if(e.mode===`text`){var a=yn(e,t);return a.classes.push(i),a}return U([`mspace`,i],[_n(e.text,e.mode,t)],t)}if(r)return U([`mspace`,r],[],t);throw new w(`Unknown type of space "`+e.text+`"`)},mathmlBuilder(e,t){var n;if(ba.has(e.text))n=new Y(`mtext`,[new X(`\xA0`)]);else if(ya.has(e.text))return new Y(`mspace`);else throw new w(`Unknown type of space "`+e.text+`"`);return n}});var xa=()=>{var e=new Y(`mtd`,[]);return e.setAttribute(`width`,`50%`),e};Vn({type:`tag`,mathmlBuilder(e,t){var n=new Y(`mtable`,[new Y(`mtr`,[xa(),new Y(`mtd`,[dr(e.body,t)]),xa(),new Y(`mtd`,[dr(e.tag,t)])])]);return n.setAttribute(`width`,`100%`),n}});var Sa={"\\text":void 0,"\\textrm":`textrm`,"\\textsf":`textsf`,"\\texttt":`texttt`,"\\textnormal":`textrm`},Ca={"\\textbf":`textbf`,"\\textmd":`textmd`},wa={"\\textit":`textit`,"\\textup":`textup`},Ta=(e,t)=>{var n=e.font;return n?Sa[n]?t.withTextFontFamily(Sa[n]):Ca[n]?t.withTextFontWeight(Ca[n]):n===`\\emph`?t.fontShape===`textit`?t.withTextFontShape(`textup`):t.withTextFontShape(`textit`):t.withTextFontShape(wa[n]):t};K({type:`text`,names:[`\\text`,`\\textrm`,`\\textsf`,`\\texttt`,`\\textnormal`,`\\textbf`,`\\textmd`,`\\textit`,`\\textup`,`\\emph`],numArgs:1,argTypes:[`text`],allowedInArgument:!0,allowedInText:!0,handler(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:`text`,mode:n.mode,body:q(i),font:r}},htmlBuilder(e,t){var n=Ta(e,t);return U([`mord`,`text`],qn(e.body,n,!0),n)},mathmlBuilder(e,t){var n=Ta(e,t);return dr(e.body,n)}}),K({type:`underline`,names:[`\\underline`],numArgs:1,allowedInText:!0,handler(e,t){return{type:`underline`,mode:e.parser.mode,body:t[0]}},htmlBuilder(e,t){var n=J(e.body,t),r=wn(`underline-line`,t),i=t.fontMetrics().defaultRuleThickness;return U([`mord`,`katex-underline`],[W({positionType:`top`,positionData:n.height,children:[{type:`kern`,size:i},{type:`elem`,elem:r},{type:`kern`,size:3*i},{type:`elem`,elem:n}]})],t)},mathmlBuilder(e,t){var n=new Y(`mo`,[new X(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new Y(`munder`,[Z(e.body,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),K({type:`vcenter`,names:[`\\vcenter`],numArgs:1,argTypes:[`original`],allowedInText:!1,handler(e,t){return{type:`vcenter`,mode:e.parser.mode,body:t[0]}},htmlBuilder(e,t){var n=J(e.body,t),r=t.fontMetrics().axisHeight;return W({positionType:`shift`,positionData:.5*(n.height-r-(n.depth+r)),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){return new Y(`mrow`,[new Y(`mpadded`,[Z(e.body,t)],[`vcenter`])])}}),K({type:`verb`,names:[`\\verb`],numArgs:0,allowedInText:!0,handler(e,t,n){throw new w(`\\verb ended by end of line instead of matching delimiter`)},htmlBuilder(e,t){for(var n=Ea(e),r=[],i=t.havingStyle(t.style.text()),a=0;ae.body.replace(/ /g,e.star?`␣`:`\xA0`),Da=Rn,Oa=`[ \r + ]`,ka=`\\\\[a-zA-Z@]+`,Aa=`\\\\[^\ud800-\udfff]`,ja=`(`+ka+`)`+Oa+`*`,Ma=`\\\\( +|[ \r ]+ +?)[ \r ]*`,Na=`[̀-ͯ]`,Pa=RegExp(Na+`+$`),Fa=`(`+Oa+`+)|`+(Ma+`|`)+`([!-\\[\\]-‧‪-퟿豈-￿]`+(Na+`*`)+`|[\ud800-\udbff][\udc00-\udfff]`+(Na+`*`)+`|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5`+(`|`+ja)+(`|`+Aa+`)`),Ia=class{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(Fa,`g`),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new Li(`EOF`,new Ii(this,t,t));var n=this.tokenRegex.exec(e);if(n===null||n.index!==t)throw new w(`Unexpected character: '`+e[t]+`'`,new Li(e[t],new Ii(this,t,t+1)));var r=n[6]||n[3]||(n[2]?`\\ `:` `);if(this.catcodes[r]===14){var i=e.indexOf(` +`,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict(`commentAtEnd`,`% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)`)):this.tokenRegex.lastIndex=i+1,this.lex()}return new Li(r,new Ii(this,t,this.tokenRegex.lastIndex))}},La=class{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new w(`Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug`);var e=this.undefStack.pop();for(var t of Object.keys(e))e[t]===void 0?delete this.current[t]:this.current[t]=e[t]}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return Object.prototype.hasOwnProperty.call(this.current,e)||Object.prototype.hasOwnProperty.call(this.builtins,e)}get(e){if(Object.prototype.hasOwnProperty.call(this.current,e))return this.current[e];if(Object.prototype.hasOwnProperty.call(this.builtins,e))return this.builtins[e]}set(e,t,n){if(n===void 0&&(n=!1),n){for(var r=0;r0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!Object.prototype.hasOwnProperty.call(i,e)&&(i[e]=Object.prototype.hasOwnProperty.call(this.current,e)?this.current[e]:void 0)}t==null?delete this.current[e]:this.current[e]=t}},Ra=Fi;$(`\\noexpand`,function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),$(`\\expandafter`,function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),$(`\\@firstoftwo`,function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),$(`\\@secondoftwo`,function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),$(`\\@ifnextchar`,function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),$(`\\@ifstar`,`\\@ifnextchar *{\\@firstoftwo{#1}}`),$(`\\TextOrMath`,function(e){var t=e.consumeArgs(2);return e.mode===`text`?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var za={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};$(`\\char`,function(e){var t=e.popToken(),n,r=0;if(t.text===`'`)n=8,t=e.popToken();else if(t.text===`"`)n=16,t=e.popToken();else if(t.text==="`"){if(t=e.popToken(),t.text[0]===`\\`)r=t.text.charCodeAt(1);else if(t.text===`EOF`)throw new w("\\char` missing argument");else r=t.text.charCodeAt(0)}else n=10;if(n){if(r=za[t.text],r==null||r>=n)throw new w(`Invalid base-`+n+` digit `+t.text);for(var i;(i=za[e.future().text])!=null&&i{var i=e.consumeArg().tokens;if(i.length!==1)throw new w(`\\newcommand's first argument must be a macro name`);var a=i[0].text,o=e.isDefined(a);if(o&&!t)throw new w(`\\newcommand{`+a+`} attempting to redefine `+(a+`; use \\renewcommand`));if(!o&&!n)throw new w(`\\renewcommand{`+a+`} when command `+a+` does not yet exist; use \\newcommand`);var s=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text===`[`){for(var c=``,l=e.expandNextToken();l.text!==`]`&&l.text!==`EOF`;)c+=l.text,l=e.expandNextToken();if(!c.match(/^\s*[0-9]+\s*$/))throw new w(`Invalid number of arguments: `+c);s=parseInt(c),i=e.consumeArg().tokens}return o&&r||e.macros.set(a,{tokens:i,numArgs:s}),``};$(`\\newcommand`,e=>Ba(e,!1,!0,!1)),$(`\\renewcommand`,e=>Ba(e,!0,!1,!1)),$(`\\providecommand`,e=>Ba(e,!0,!0,!0)),$(`\\message`,e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join(``)),``}),$(`\\errmessage`,e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join(``)),``}),$(`\\show`,e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),Da[n],k.math[n],k.text[n]),``}),$(`\\bgroup`,`{`),$(`\\egroup`,`}`),$(`~`,`\\nobreakspace`),$(`\\lq`,"`"),$(`\\rq`,`'`),$(`\\aa`,`\\r a`),$(`\\AA`,`\\r A`),$(`\\textcopyright`,"\\html@mathml{\\textcircled{c}}{\\char`©}"),$(`\\copyright`,`\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}`),$(`\\textregistered`,"\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),$(`ℬ`,`\\mathscr{B}`),$(`ℰ`,`\\mathscr{E}`),$(`ℱ`,`\\mathscr{F}`),$(`ℋ`,`\\mathscr{H}`),$(`ℐ`,`\\mathscr{I}`),$(`ℒ`,`\\mathscr{L}`),$(`ℳ`,`\\mathscr{M}`),$(`ℛ`,`\\mathscr{R}`),$(`ℭ`,`\\mathfrak{C}`),$(`ℌ`,`\\mathfrak{H}`),$(`ℨ`,`\\mathfrak{Z}`),$(`\\Bbbk`,`\\Bbb{k}`),$(`\\llap`,`\\mathllap{\\textrm{#1}}`),$(`\\rlap`,`\\mathrlap{\\textrm{#1}}`),$(`\\clap`,`\\mathclap{\\textrm{#1}}`),$(`\\mathstrut`,`\\vphantom{(}`),$(`\\underbar`,`\\underline{\\text{#1}}`),$(`\\not`,`\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}`),$(`\\neq`,"\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),$(`\\ne`,`\\neq`),$(`≠`,`\\neq`),$(`\\notin`,"\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),$(`∉`,`\\notin`),$(`≘`,"\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),$(`≙`,"\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),$(`≚`,"\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),$(`≛`,"\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),$(`≝`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),$(`≞`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),$(`≟`,"\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),$(`⟂`,`\\perp`),$(`‼`,`\\mathclose{!\\mkern-0.8mu!}`),$(`∌`,`\\notni`),$(`⌜`,`\\ulcorner`),$(`⌝`,`\\urcorner`),$(`⌞`,`\\llcorner`),$(`⌟`,`\\lrcorner`),$(`©`,`\\copyright`),$(`®`,`\\textregistered`),$(`\\ulcorner`,`\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}`),$(`\\urcorner`,`\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}`),$(`\\llcorner`,`\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}`),$(`\\lrcorner`,`\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}`),$(`\\vdots`,`{\\varvdots\\rule{0pt}{15pt}}`),$(`⋮`,`\\vdots`),$(`\\varGamma`,`\\mathit{\\Gamma}`),$(`\\varDelta`,`\\mathit{\\Delta}`),$(`\\varTheta`,`\\mathit{\\Theta}`),$(`\\varLambda`,`\\mathit{\\Lambda}`),$(`\\varXi`,`\\mathit{\\Xi}`),$(`\\varPi`,`\\mathit{\\Pi}`),$(`\\varSigma`,`\\mathit{\\Sigma}`),$(`\\varUpsilon`,`\\mathit{\\Upsilon}`),$(`\\varPhi`,`\\mathit{\\Phi}`),$(`\\varPsi`,`\\mathit{\\Psi}`),$(`\\varOmega`,`\\mathit{\\Omega}`),$(`\\substack`,`\\begin{subarray}{c}#1\\end{subarray}`),$(`\\colon`,`\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax`),$(`\\boxed`,`\\fbox{$\\displaystyle{#1}$}`),$(`\\iff`,`\\DOTSB\\;\\Longleftrightarrow\\;`),$(`\\implies`,`\\DOTSB\\;\\Longrightarrow\\;`),$(`\\impliedby`,`\\DOTSB\\;\\Longleftarrow\\;`),$(`\\dddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}`),$(`\\ddddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}`);var Va={",":`\\dotsc`,"\\not":`\\dotsb`,"+":`\\dotsb`,"=":`\\dotsb`,"<":`\\dotsb`,">":`\\dotsb`,"-":`\\dotsb`,"*":`\\dotsb`,":":`\\dotsb`,"\\DOTSB":`\\dotsb`,"\\coprod":`\\dotsb`,"\\bigvee":`\\dotsb`,"\\bigwedge":`\\dotsb`,"\\biguplus":`\\dotsb`,"\\bigcap":`\\dotsb`,"\\bigcup":`\\dotsb`,"\\prod":`\\dotsb`,"\\sum":`\\dotsb`,"\\bigotimes":`\\dotsb`,"\\bigoplus":`\\dotsb`,"\\bigodot":`\\dotsb`,"\\bigsqcup":`\\dotsb`,"\\And":`\\dotsb`,"\\longrightarrow":`\\dotsb`,"\\Longrightarrow":`\\dotsb`,"\\longleftarrow":`\\dotsb`,"\\Longleftarrow":`\\dotsb`,"\\longleftrightarrow":`\\dotsb`,"\\Longleftrightarrow":`\\dotsb`,"\\mapsto":`\\dotsb`,"\\longmapsto":`\\dotsb`,"\\hookrightarrow":`\\dotsb`,"\\doteq":`\\dotsb`,"\\mathbin":`\\dotsb`,"\\mathrel":`\\dotsb`,"\\relbar":`\\dotsb`,"\\Relbar":`\\dotsb`,"\\xrightarrow":`\\dotsb`,"\\xleftarrow":`\\dotsb`,"\\DOTSI":`\\dotsi`,"\\int":`\\dotsi`,"\\oint":`\\dotsi`,"\\iint":`\\dotsi`,"\\iiint":`\\dotsi`,"\\iiiint":`\\dotsi`,"\\idotsint":`\\dotsi`,"\\DOTSX":`\\dotsx`},Ha=new Set([`bin`,`rel`]);$(`\\dots`,function(e){var t=`\\dotso`,n=e.expandAfterFuture().text;return n in Va?t=Va[n]:(n.slice(0,4)===`\\not`||n in k.math&&Ha.has(k.math[n].group))&&(t=`\\dotsb`),t});var Ua={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};$(`\\dotso`,function(e){return e.future().text in Ua?`\\ldots\\,`:`\\ldots`}),$(`\\dotsc`,function(e){var t=e.future().text;return t in Ua&&t!==`,`?`\\ldots\\,`:`\\ldots`}),$(`\\cdots`,function(e){return e.future().text in Ua?`\\@cdots\\,`:`\\@cdots`}),$(`\\dotsb`,`\\cdots`),$(`\\dotsm`,`\\cdots`),$(`\\dotsi`,`\\!\\cdots`),$(`\\dotsx`,`\\ldots\\,`),$(`\\DOTSI`,`\\relax`),$(`\\DOTSB`,`\\relax`),$(`\\DOTSX`,`\\relax`),$(`\\tmspace`,`\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax`),$(`\\,`,`\\tmspace+{3mu}{.1667em}`),$(`\\thinspace`,`\\,`),$(`\\>`,`\\mskip{4mu}`),$(`\\:`,`\\tmspace+{4mu}{.2222em}`),$(`\\medspace`,`\\:`),$(`\\;`,`\\tmspace+{5mu}{.2777em}`),$(`\\thickspace`,`\\;`),$(`\\!`,`\\tmspace-{3mu}{.1667em}`),$(`\\negthinspace`,`\\!`),$(`\\negmedspace`,`\\tmspace-{4mu}{.2222em}`),$(`\\negthickspace`,`\\tmspace-{5mu}{.277em}`),$(`\\enspace`,`\\kern.5em `),$(`\\enskip`,`\\hskip.5em\\relax`),$(`\\quad`,`\\hskip1em\\relax`),$(`\\qquad`,`\\hskip2em\\relax`),$(`\\tag`,`\\@ifstar\\tag@literal\\tag@paren`),$(`\\tag@paren`,`\\tag@literal{({#1})}`),$(`\\tag@literal`,e=>{if(e.macros.get(`\\df@tag`))throw new w(`Multiple \\tag`);return`\\gdef\\df@tag{\\text{#1}}`}),$(`\\bmod`,`\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}`),$(`\\pod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)`),$(`\\pmod`,`\\pod{{\\rm mod}\\mkern6mu#1}`),$(`\\mod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1`),$(`\\newline`,`\\\\\\relax`),$(`\\TeX`,`\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}`);var Wa=O(Tt[`Main-Regular`][84][1]-.7*Tt[`Main-Regular`][65][1]);$(`\\LaTeX`,`\\textrm{\\html@mathml{`+(`L\\kern-.36em\\raisebox{`+Wa+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{LaTeX}}`),$(`\\KaTeX`,`\\textrm{\\html@mathml{`+(`K\\kern-.17em\\raisebox{`+Wa+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{KaTeX}}`),$(`\\hspace`,`\\@ifstar\\@hspacer\\@hspace`),$(`\\@hspace`,`\\hskip #1\\relax`),$(`\\@hspacer`,`\\rule{0pt}{0pt}\\hskip #1\\relax`),$(`\\ordinarycolon`,`:`),$(`\\vcentcolon`,`\\mathrel{\\mathop\\ordinarycolon}`),$(`\\dblcolon`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}`),$(`\\coloneqq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}`),$(`\\Coloneqq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}`),$(`\\coloneq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}`),$(`\\Coloneq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}`),$(`\\eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}`),$(`\\Eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}`),$(`\\eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}`),$(`\\Eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}`),$(`\\colonapprox`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}`),$(`\\Colonapprox`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}`),$(`\\colonsim`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}`),$(`\\Colonsim`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}`),$(`∷`,`\\dblcolon`),$(`∹`,`\\eqcolon`),$(`≔`,`\\coloneqq`),$(`≕`,`\\eqqcolon`),$(`⩴`,`\\Coloneqq`),$(`\\ratio`,`\\vcentcolon`),$(`\\coloncolon`,`\\dblcolon`),$(`\\colonequals`,`\\coloneqq`),$(`\\coloncolonequals`,`\\Coloneqq`),$(`\\equalscolon`,`\\eqqcolon`),$(`\\equalscoloncolon`,`\\Eqqcolon`),$(`\\colonminus`,`\\coloneq`),$(`\\coloncolonminus`,`\\Coloneq`),$(`\\minuscolon`,`\\eqcolon`),$(`\\minuscoloncolon`,`\\Eqcolon`),$(`\\coloncolonapprox`,`\\Colonapprox`),$(`\\coloncolonsim`,`\\Colonsim`),$(`\\simcolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),$(`\\simcoloncolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}`),$(`\\approxcolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),$(`\\approxcoloncolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}`),$(`\\notni`,"\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),$(`\\limsup`,`\\DOTSB\\operatorname*{lim\\,sup}`),$(`\\liminf`,`\\DOTSB\\operatorname*{lim\\,inf}`),$(`\\injlim`,`\\DOTSB\\operatorname*{inj\\,lim}`),$(`\\projlim`,`\\DOTSB\\operatorname*{proj\\,lim}`),$(`\\varlimsup`,`\\DOTSB\\operatorname*{\\overline{lim}}`),$(`\\varliminf`,`\\DOTSB\\operatorname*{\\underline{lim}}`),$(`\\varinjlim`,`\\DOTSB\\operatorname*{\\underrightarrow{lim}}`),$(`\\varprojlim`,`\\DOTSB\\operatorname*{\\underleftarrow{lim}}`),$(`\\gvertneqq`,`\\html@mathml{\\@gvertneqq}{≩}`),$(`\\lvertneqq`,`\\html@mathml{\\@lvertneqq}{≨}`),$(`\\ngeqq`,`\\html@mathml{\\@ngeqq}{≱}`),$(`\\ngeqslant`,`\\html@mathml{\\@ngeqslant}{≱}`),$(`\\nleqq`,`\\html@mathml{\\@nleqq}{≰}`),$(`\\nleqslant`,`\\html@mathml{\\@nleqslant}{≰}`),$(`\\nshortmid`,`\\html@mathml{\\@nshortmid}{∤}`),$(`\\nshortparallel`,`\\html@mathml{\\@nshortparallel}{∦}`),$(`\\nsubseteqq`,`\\html@mathml{\\@nsubseteqq}{⊈}`),$(`\\nsupseteqq`,`\\html@mathml{\\@nsupseteqq}{⊉}`),$(`\\varsubsetneq`,`\\html@mathml{\\@varsubsetneq}{⊊}`),$(`\\varsubsetneqq`,`\\html@mathml{\\@varsubsetneqq}{⫋}`),$(`\\varsupsetneq`,`\\html@mathml{\\@varsupsetneq}{⊋}`),$(`\\varsupsetneqq`,`\\html@mathml{\\@varsupsetneqq}{⫌}`),$(`\\imath`,`\\html@mathml{\\@imath}{ı}`),$(`\\jmath`,`\\html@mathml{\\@jmath}{ȷ}`),$(`\\llbracket`,"\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),$(`\\rrbracket`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),$(`⟦`,`\\llbracket`),$(`⟧`,`\\rrbracket`),$(`\\lBrace`,"\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),$(`\\rBrace`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),$(`⦃`,`\\lBrace`),$(`⦄`,`\\rBrace`),$(`\\minuso`,"\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),$(`⦵`,`\\minuso`),$(`\\darr`,`\\downarrow`),$(`\\dArr`,`\\Downarrow`),$(`\\Darr`,`\\Downarrow`),$(`\\lang`,`\\langle`),$(`\\rang`,`\\rangle`),$(`\\uarr`,`\\uparrow`),$(`\\uArr`,`\\Uparrow`),$(`\\Uarr`,`\\Uparrow`),$(`\\N`,`\\mathbb{N}`),$(`\\R`,`\\mathbb{R}`),$(`\\Z`,`\\mathbb{Z}`),$(`\\alef`,`\\aleph`),$(`\\alefsym`,`\\aleph`),$(`\\Alpha`,`\\mathrm{A}`),$(`\\Beta`,`\\mathrm{B}`),$(`\\bull`,`\\bullet`),$(`\\Chi`,`\\mathrm{X}`),$(`\\clubs`,`\\clubsuit`),$(`\\cnums`,`\\mathbb{C}`),$(`\\Complex`,`\\mathbb{C}`),$(`\\Dagger`,`\\ddagger`),$(`\\diamonds`,`\\diamondsuit`),$(`\\empty`,`\\emptyset`),$(`\\Epsilon`,`\\mathrm{E}`),$(`\\Eta`,`\\mathrm{H}`),$(`\\exist`,`\\exists`),$(`\\harr`,`\\leftrightarrow`),$(`\\hArr`,`\\Leftrightarrow`),$(`\\Harr`,`\\Leftrightarrow`),$(`\\hearts`,`\\heartsuit`),$(`\\image`,`\\Im`),$(`\\infin`,`\\infty`),$(`\\Iota`,`\\mathrm{I}`),$(`\\isin`,`\\in`),$(`\\Kappa`,`\\mathrm{K}`),$(`\\larr`,`\\leftarrow`),$(`\\lArr`,`\\Leftarrow`),$(`\\Larr`,`\\Leftarrow`),$(`\\lrarr`,`\\leftrightarrow`),$(`\\lrArr`,`\\Leftrightarrow`),$(`\\Lrarr`,`\\Leftrightarrow`),$(`\\Mu`,`\\mathrm{M}`),$(`\\natnums`,`\\mathbb{N}`),$(`\\Nu`,`\\mathrm{N}`),$(`\\Omicron`,`\\mathrm{O}`),$(`\\plusmn`,`\\pm`),$(`\\rarr`,`\\rightarrow`),$(`\\rArr`,`\\Rightarrow`),$(`\\Rarr`,`\\Rightarrow`),$(`\\real`,`\\Re`),$(`\\reals`,`\\mathbb{R}`),$(`\\Reals`,`\\mathbb{R}`),$(`\\Rho`,`\\mathrm{P}`),$(`\\sdot`,`\\cdot`),$(`\\sect`,`\\S`),$(`\\spades`,`\\spadesuit`),$(`\\sub`,`\\subset`),$(`\\sube`,`\\subseteq`),$(`\\supe`,`\\supseteq`),$(`\\Tau`,`\\mathrm{T}`),$(`\\thetasym`,`\\vartheta`),$(`\\weierp`,`\\wp`),$(`\\Zeta`,`\\mathrm{Z}`),$(`\\argmin`,`\\DOTSB\\operatorname*{arg\\,min}`),$(`\\argmax`,`\\DOTSB\\operatorname*{arg\\,max}`),$(`\\plim`,`\\DOTSB\\mathop{\\operatorname{plim}}\\limits`),$(`\\bra`,`\\mathinner{\\langle{#1}|}`),$(`\\ket`,`\\mathinner{|{#1}\\rangle}`),$(`\\braket`,`\\mathinner{\\langle{#1}\\rangle}`),$(`\\Bra`,`\\left\\langle#1\\right|`),$(`\\Ket`,`\\left|#1\\right\\rangle`);var Ga=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.macros.get(`|`),s=t.macros.get(`\\|`);t.macros.beginGroup();var c=t=>n=>{e&&(n.macros.set(`|`,o),i.length&&n.macros.set(`\\|`,s));var a=t;return!t&&i.length&&n.future().text===`|`&&(n.popToken(),a=!0),{tokens:a?i:r,numArgs:0}};t.macros.set(`|`,c(!1)),i.length&&t.macros.set(`\\|`,c(!0));var l=t.consumeArg().tokens,u=t.expandTokens([...a,...l,...n]);return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};$(`\\bra@ket`,Ga(!1)),$(`\\bra@set`,Ga(!0)),$(`\\Braket`,`\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}`),$(`\\Set`,`\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}`),$(`\\set`,`\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}`),$(`\\angln`,`{\\angl n}`),$(`\\blue`,`\\textcolor{##6495ed}{#1}`),$(`\\orange`,`\\textcolor{##ffa500}{#1}`),$(`\\pink`,`\\textcolor{##ff00af}{#1}`),$(`\\red`,`\\textcolor{##df0030}{#1}`),$(`\\green`,`\\textcolor{##28ae7b}{#1}`),$(`\\gray`,`\\textcolor{gray}{#1}`),$(`\\purple`,`\\textcolor{##9d38bd}{#1}`),$(`\\blueA`,`\\textcolor{##ccfaff}{#1}`),$(`\\blueB`,`\\textcolor{##80f6ff}{#1}`),$(`\\blueC`,`\\textcolor{##63d9ea}{#1}`),$(`\\blueD`,`\\textcolor{##11accd}{#1}`),$(`\\blueE`,`\\textcolor{##0c7f99}{#1}`),$(`\\tealA`,`\\textcolor{##94fff5}{#1}`),$(`\\tealB`,`\\textcolor{##26edd5}{#1}`),$(`\\tealC`,`\\textcolor{##01d1c1}{#1}`),$(`\\tealD`,`\\textcolor{##01a995}{#1}`),$(`\\tealE`,`\\textcolor{##208170}{#1}`),$(`\\greenA`,`\\textcolor{##b6ffb0}{#1}`),$(`\\greenB`,`\\textcolor{##8af281}{#1}`),$(`\\greenC`,`\\textcolor{##74cf70}{#1}`),$(`\\greenD`,`\\textcolor{##1fab54}{#1}`),$(`\\greenE`,`\\textcolor{##0d923f}{#1}`),$(`\\goldA`,`\\textcolor{##ffd0a9}{#1}`),$(`\\goldB`,`\\textcolor{##ffbb71}{#1}`),$(`\\goldC`,`\\textcolor{##ff9c39}{#1}`),$(`\\goldD`,`\\textcolor{##e07d10}{#1}`),$(`\\goldE`,`\\textcolor{##a75a05}{#1}`),$(`\\redA`,`\\textcolor{##fca9a9}{#1}`),$(`\\redB`,`\\textcolor{##ff8482}{#1}`),$(`\\redC`,`\\textcolor{##f9685d}{#1}`),$(`\\redD`,`\\textcolor{##e84d39}{#1}`),$(`\\redE`,`\\textcolor{##bc2612}{#1}`),$(`\\maroonA`,`\\textcolor{##ffbde0}{#1}`),$(`\\maroonB`,`\\textcolor{##ff92c6}{#1}`),$(`\\maroonC`,`\\textcolor{##ed5fa6}{#1}`),$(`\\maroonD`,`\\textcolor{##ca337c}{#1}`),$(`\\maroonE`,`\\textcolor{##9e034e}{#1}`),$(`\\purpleA`,`\\textcolor{##ddd7ff}{#1}`),$(`\\purpleB`,`\\textcolor{##c6b9fc}{#1}`),$(`\\purpleC`,`\\textcolor{##aa87ff}{#1}`),$(`\\purpleD`,`\\textcolor{##7854ab}{#1}`),$(`\\purpleE`,`\\textcolor{##543b78}{#1}`),$(`\\mintA`,`\\textcolor{##f5f9e8}{#1}`),$(`\\mintB`,`\\textcolor{##edf2df}{#1}`),$(`\\mintC`,`\\textcolor{##e0e5cc}{#1}`),$(`\\grayA`,`\\textcolor{##f6f7f7}{#1}`),$(`\\grayB`,`\\textcolor{##f0f1f2}{#1}`),$(`\\grayC`,`\\textcolor{##e3e5e6}{#1}`),$(`\\grayD`,`\\textcolor{##d6d8da}{#1}`),$(`\\grayE`,`\\textcolor{##babec2}{#1}`),$(`\\grayF`,`\\textcolor{##888d93}{#1}`),$(`\\grayG`,`\\textcolor{##626569}{#1}`),$(`\\grayH`,`\\textcolor{##3b3e40}{#1}`),$(`\\grayI`,`\\textcolor{##21242c}{#1}`),$(`\\kaBlue`,`\\textcolor{##314453}{#1}`),$(`\\kaGreen`,`\\textcolor{##71B307}{#1}`);var Ka={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},qa=class{constructor(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new La(Ra,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new Ia(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,n,r;if(e){if(this.consumeSpaces(),this.future().text!==`[`)return null;t=this.popToken();var i=this.consumeArg([`]`]);r=i.tokens,n=i.end}else{var a=this.consumeArg();r=a.tokens,t=a.start,n=a.end}return this.pushToken(new Li(`EOF`,n.loc)),this.pushTokens(r),new Li(``,Ii.range(t,n))}consumeSpaces(){for(;this.future().text===` `;)this.stack.pop()}consumeArg(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var r=this.future(),i,a=0,o=0;do{if(i=this.popToken(),t.push(i),i.text===`{`)++a;else if(i.text===`}`){if(--a,a===-1)throw new w(`Extra }`,i)}else if(i.text===`EOF`)throw new w(`Unexpected end of input in a macro argument, expected '`+(e&&n?e[o]:`}`)+`'`,i);if(e&&n){if((a===0||a===1&&e[o]===`{`)&&i.text===e[o]){if(++o,o===e.length){t.splice(-o,o);break}}else o=0}}while(a!==0||n);return r.text===`{`&&t[t.length-1].text===`}`&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:r,end:i}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new w(`The length of delimiters doesn't match the number of args!`);for(var n=t[0],r=0;rthis.settings.maxExpand)throw new w(`Too many expansions: infinite loop or need to increase maxExpand setting`)}expandOnce(e){var t=this.popToken(),n=t.text,r=t.noexpand?null:this._getExpansion(n);if(r==null||e&&r.unexpandable){if(e&&r==null&&n[0]===`\\`&&!this.isDefined(n))throw new w(`Undefined control sequence: `+n);return this.pushToken(t),!1}this.countExpansion(1);var i=r.tokens,a=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var s=i[o];if(s.text===`#`){if(o===0)throw new w(`Incomplete placeholder at end of macro body`,s);if(s=i[--o],s.text===`#`)i.splice(o+1,1);else if(/^[1-9]$/.test(s.text))i.splice(o,2,...a[s.text-1]);else throw new w(`Not a valid argument number`,s)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text=`\\relax`),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new Li(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var r=this.stack.pop();r.treatAsRelax&&=(r.noexpand=!1,!1),t.push(r)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(e=>e.text).join(``)}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var r=typeof t==`function`?t(this):t;if(typeof r==`string`){var i=0;if(r.includes(`#`))for(var a=r.replace(/##/g,``);a.includes(`#`+(i+1));)++i;for(var o=new Ia(r,this.settings),s=[],c=o.lex();c.text!==`EOF`;)s.push(c),c=o.lex();return s.reverse(),{tokens:s,numArgs:i}}return r}isDefined(e){return this.macros.has(e)||Object.prototype.hasOwnProperty.call(Da,e)||Object.prototype.hasOwnProperty.call(k.math,e)||Object.prototype.hasOwnProperty.call(k.text,e)||Object.prototype.hasOwnProperty.call(Ka,e)}isExpandable(e){var t=this.macros.get(e);return t==null?Object.prototype.hasOwnProperty.call(Da,e)&&!Da[e].primitive:typeof t==`string`||typeof t==`function`||!t.unexpandable}},Ja=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Ya=Object.freeze({"₊":`+`,"₋":`-`,"₌":`=`,"₍":`(`,"₎":`)`,"₀":`0`,"₁":`1`,"₂":`2`,"₃":`3`,"₄":`4`,"₅":`5`,"₆":`6`,"₇":`7`,"₈":`8`,"₉":`9`,ₐ:`a`,ₑ:`e`,ₕ:`h`,ᵢ:`i`,ⱼ:`j`,ₖ:`k`,ₗ:`l`,ₘ:`m`,ₙ:`n`,ₒ:`o`,ₚ:`p`,ᵣ:`r`,ₛ:`s`,ₜ:`t`,ᵤ:`u`,ᵥ:`v`,ₓ:`x`,ᵦ:`β`,ᵧ:`γ`,ᵨ:`ρ`,ᵩ:`ϕ`,ᵪ:`χ`,"⁺":`+`,"⁻":`-`,"⁼":`=`,"⁽":`(`,"⁾":`)`,"⁰":`0`,"¹":`1`,"²":`2`,"³":`3`,"⁴":`4`,"⁵":`5`,"⁶":`6`,"⁷":`7`,"⁸":`8`,"⁹":`9`,ᴬ:`A`,ᴮ:`B`,ᴰ:`D`,ᴱ:`E`,ᴳ:`G`,ᴴ:`H`,ᴵ:`I`,ᴶ:`J`,ᴷ:`K`,ᴸ:`L`,ᴹ:`M`,ᴺ:`N`,ᴼ:`O`,ᴾ:`P`,ᴿ:`R`,ᵀ:`T`,ᵁ:`U`,ⱽ:`V`,ᵂ:`W`,ᵃ:`a`,ᵇ:`b`,ᶜ:`c`,ᵈ:`d`,ᵉ:`e`,ᶠ:`f`,ᵍ:`g`,ʰ:`h`,ⁱ:`i`,ʲ:`j`,ᵏ:`k`,ˡ:`l`,ᵐ:`m`,ⁿ:`n`,ᵒ:`o`,ᵖ:`p`,ʳ:`r`,ˢ:`s`,ᵗ:`t`,ᵘ:`u`,ᵛ:`v`,ʷ:`w`,ˣ:`x`,ʸ:`y`,ᶻ:`z`,ᵝ:`β`,ᵞ:`γ`,ᵟ:`δ`,ᵠ:`ϕ`,ᵡ:`χ`,ᶿ:`θ`}),Xa={"́":{text:`\\'`,math:`\\acute`},"̀":{text:"\\`",math:`\\grave`},"̈":{text:`\\"`,math:`\\ddot`},"̃":{text:`\\~`,math:`\\tilde`},"̄":{text:`\\=`,math:`\\bar`},"̆":{text:`\\u`,math:`\\breve`},"̌":{text:`\\v`,math:`\\check`},"̂":{text:`\\^`,math:`\\hat`},"̇":{text:`\\.`,math:`\\dot`},"̊":{text:`\\r`,math:`\\mathring`},"̋":{text:`\\H`},"̧":{text:`\\c`}},Za={á:`á`,à:`à`,ä:`ä`,ǟ:`ǟ`,ã:`ã`,ā:`ā`,ă:`ă`,ắ:`ắ`,ằ:`ằ`,ẵ:`ẵ`,ǎ:`ǎ`,â:`â`,ấ:`ấ`,ầ:`ầ`,ẫ:`ẫ`,ȧ:`ȧ`,ǡ:`ǡ`,å:`å`,ǻ:`ǻ`,ḃ:`ḃ`,ć:`ć`,ḉ:`ḉ`,č:`č`,ĉ:`ĉ`,ċ:`ċ`,ç:`ç`,ď:`ď`,ḋ:`ḋ`,ḑ:`ḑ`,é:`é`,è:`è`,ë:`ë`,ẽ:`ẽ`,ē:`ē`,ḗ:`ḗ`,ḕ:`ḕ`,ĕ:`ĕ`,ḝ:`ḝ`,ě:`ě`,ê:`ê`,ế:`ế`,ề:`ề`,ễ:`ễ`,ė:`ė`,ȩ:`ȩ`,ḟ:`ḟ`,ǵ:`ǵ`,ḡ:`ḡ`,ğ:`ğ`,ǧ:`ǧ`,ĝ:`ĝ`,ġ:`ġ`,ģ:`ģ`,ḧ:`ḧ`,ȟ:`ȟ`,ĥ:`ĥ`,ḣ:`ḣ`,ḩ:`ḩ`,í:`í`,ì:`ì`,ï:`ï`,ḯ:`ḯ`,ĩ:`ĩ`,ī:`ī`,ĭ:`ĭ`,ǐ:`ǐ`,î:`î`,ǰ:`ǰ`,ĵ:`ĵ`,ḱ:`ḱ`,ǩ:`ǩ`,ķ:`ķ`,ĺ:`ĺ`,ľ:`ľ`,ļ:`ļ`,ḿ:`ḿ`,ṁ:`ṁ`,ń:`ń`,ǹ:`ǹ`,ñ:`ñ`,ň:`ň`,ṅ:`ṅ`,ņ:`ņ`,ó:`ó`,ò:`ò`,ö:`ö`,ȫ:`ȫ`,õ:`õ`,ṍ:`ṍ`,ṏ:`ṏ`,ȭ:`ȭ`,ō:`ō`,ṓ:`ṓ`,ṑ:`ṑ`,ŏ:`ŏ`,ǒ:`ǒ`,ô:`ô`,ố:`ố`,ồ:`ồ`,ỗ:`ỗ`,ȯ:`ȯ`,ȱ:`ȱ`,ő:`ő`,ṕ:`ṕ`,ṗ:`ṗ`,ŕ:`ŕ`,ř:`ř`,ṙ:`ṙ`,ŗ:`ŗ`,ś:`ś`,ṥ:`ṥ`,š:`š`,ṧ:`ṧ`,ŝ:`ŝ`,ṡ:`ṡ`,ş:`ş`,ẗ:`ẗ`,ť:`ť`,ṫ:`ṫ`,ţ:`ţ`,ú:`ú`,ù:`ù`,ü:`ü`,ǘ:`ǘ`,ǜ:`ǜ`,ǖ:`ǖ`,ǚ:`ǚ`,ũ:`ũ`,ṹ:`ṹ`,ū:`ū`,ṻ:`ṻ`,ŭ:`ŭ`,ǔ:`ǔ`,û:`û`,ů:`ů`,ű:`ű`,ṽ:`ṽ`,ẃ:`ẃ`,ẁ:`ẁ`,ẅ:`ẅ`,ŵ:`ŵ`,ẇ:`ẇ`,ẘ:`ẘ`,ẍ:`ẍ`,ẋ:`ẋ`,ý:`ý`,ỳ:`ỳ`,ÿ:`ÿ`,ỹ:`ỹ`,ȳ:`ȳ`,ŷ:`ŷ`,ẏ:`ẏ`,ẙ:`ẙ`,ź:`ź`,ž:`ž`,ẑ:`ẑ`,ż:`ż`,Á:`Á`,À:`À`,Ä:`Ä`,Ǟ:`Ǟ`,Ã:`Ã`,Ā:`Ā`,Ă:`Ă`,Ắ:`Ắ`,Ằ:`Ằ`,Ẵ:`Ẵ`,Ǎ:`Ǎ`,Â:`Â`,Ấ:`Ấ`,Ầ:`Ầ`,Ẫ:`Ẫ`,Ȧ:`Ȧ`,Ǡ:`Ǡ`,Å:`Å`,Ǻ:`Ǻ`,Ḃ:`Ḃ`,Ć:`Ć`,Ḉ:`Ḉ`,Č:`Č`,Ĉ:`Ĉ`,Ċ:`Ċ`,Ç:`Ç`,Ď:`Ď`,Ḋ:`Ḋ`,Ḑ:`Ḑ`,É:`É`,È:`È`,Ë:`Ë`,Ẽ:`Ẽ`,Ē:`Ē`,Ḗ:`Ḗ`,Ḕ:`Ḕ`,Ĕ:`Ĕ`,Ḝ:`Ḝ`,Ě:`Ě`,Ê:`Ê`,Ế:`Ế`,Ề:`Ề`,Ễ:`Ễ`,Ė:`Ė`,Ȩ:`Ȩ`,Ḟ:`Ḟ`,Ǵ:`Ǵ`,Ḡ:`Ḡ`,Ğ:`Ğ`,Ǧ:`Ǧ`,Ĝ:`Ĝ`,Ġ:`Ġ`,Ģ:`Ģ`,Ḧ:`Ḧ`,Ȟ:`Ȟ`,Ĥ:`Ĥ`,Ḣ:`Ḣ`,Ḩ:`Ḩ`,Í:`Í`,Ì:`Ì`,Ï:`Ï`,Ḯ:`Ḯ`,Ĩ:`Ĩ`,Ī:`Ī`,Ĭ:`Ĭ`,Ǐ:`Ǐ`,Î:`Î`,İ:`İ`,Ĵ:`Ĵ`,Ḱ:`Ḱ`,Ǩ:`Ǩ`,Ķ:`Ķ`,Ĺ:`Ĺ`,Ľ:`Ľ`,Ļ:`Ļ`,Ḿ:`Ḿ`,Ṁ:`Ṁ`,Ń:`Ń`,Ǹ:`Ǹ`,Ñ:`Ñ`,Ň:`Ň`,Ṅ:`Ṅ`,Ņ:`Ņ`,Ó:`Ó`,Ò:`Ò`,Ö:`Ö`,Ȫ:`Ȫ`,Õ:`Õ`,Ṍ:`Ṍ`,Ṏ:`Ṏ`,Ȭ:`Ȭ`,Ō:`Ō`,Ṓ:`Ṓ`,Ṑ:`Ṑ`,Ŏ:`Ŏ`,Ǒ:`Ǒ`,Ô:`Ô`,Ố:`Ố`,Ồ:`Ồ`,Ỗ:`Ỗ`,Ȯ:`Ȯ`,Ȱ:`Ȱ`,Ő:`Ő`,Ṕ:`Ṕ`,Ṗ:`Ṗ`,Ŕ:`Ŕ`,Ř:`Ř`,Ṙ:`Ṙ`,Ŗ:`Ŗ`,Ś:`Ś`,Ṥ:`Ṥ`,Š:`Š`,Ṧ:`Ṧ`,Ŝ:`Ŝ`,Ṡ:`Ṡ`,Ş:`Ş`,Ť:`Ť`,Ṫ:`Ṫ`,Ţ:`Ţ`,Ú:`Ú`,Ù:`Ù`,Ü:`Ü`,Ǘ:`Ǘ`,Ǜ:`Ǜ`,Ǖ:`Ǖ`,Ǚ:`Ǚ`,Ũ:`Ũ`,Ṹ:`Ṹ`,Ū:`Ū`,Ṻ:`Ṻ`,Ŭ:`Ŭ`,Ǔ:`Ǔ`,Û:`Û`,Ů:`Ů`,Ű:`Ű`,Ṽ:`Ṽ`,Ẃ:`Ẃ`,Ẁ:`Ẁ`,Ẅ:`Ẅ`,Ŵ:`Ŵ`,Ẇ:`Ẇ`,Ẍ:`Ẍ`,Ẋ:`Ẋ`,Ý:`Ý`,Ỳ:`Ỳ`,Ÿ:`Ÿ`,Ỹ:`Ỹ`,Ȳ:`Ȳ`,Ŷ:`Ŷ`,Ẏ:`Ẏ`,Ź:`Ź`,Ž:`Ž`,Ẑ:`Ẑ`,Ż:`Ż`,ά:`ά`,ὰ:`ὰ`,ᾱ:`ᾱ`,ᾰ:`ᾰ`,έ:`έ`,ὲ:`ὲ`,ή:`ή`,ὴ:`ὴ`,ί:`ί`,ὶ:`ὶ`,ϊ:`ϊ`,ΐ:`ΐ`,ῒ:`ῒ`,ῑ:`ῑ`,ῐ:`ῐ`,ό:`ό`,ὸ:`ὸ`,ύ:`ύ`,ὺ:`ὺ`,ϋ:`ϋ`,ΰ:`ΰ`,ῢ:`ῢ`,ῡ:`ῡ`,ῠ:`ῠ`,ώ:`ώ`,ὼ:`ὼ`,Ύ:`Ύ`,Ὺ:`Ὺ`,Ϋ:`Ϋ`,Ῡ:`Ῡ`,Ῠ:`Ῠ`,Ώ:`Ώ`,Ὼ:`Ὼ`},Qa=class e{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode=`math`,this.gullet=new qa(e,t,this.mode),this.settings=t,this.leftrightDepth=0,this.nextToken=null}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new w(`Expected '`+e+`', got '`+this.fetch().text+`'`,this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken??=this.gullet.expandNextToken(),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set(`\\color`,`\\textcolor`);try{var e=this.parseExpression(!1);return this.expect(`EOF`),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new Li(`}`)),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect(`}`),this.nextToken=t,n}parseExpression(t,n){for(var r=[];;){this.mode===`math`&&this.consumeSpaces();var i=this.fetch();if(e.endOfExpression.has(i.text)||n&&i.text===n||t&&Da[i.text]&&Da[i.text].infix)break;var a=this.parseAtom(n);if(!a)break;a.type!==`internal`&&r.push(a)}return this.mode===`text`&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t=-1,n,r=0;r=128)this.settings.strict&&(Ue(t.charCodeAt(0))?this.mode===`math`&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Unicode text character "`+t[0]+`" used in math mode`,e):this.settings.reportNonstrict(`unknownSymbol`,`Unrecognized Unicode character "`+t[0]+`"`+(` (`+t.charCodeAt(0)+`)`),e)),a={type:`textord`,mode:`text`,loc:Ii.range(e),text:t};else return null;if(this.consume(),i)for(var c=0;c{try{return ao.renderToString(u.expr,{displayMode:u.display,throwOnError:!1,output:`html`})}catch{return`${u.expr}`}});return(e,t)=>(y(),c(`span`,{class:p([`dl-katex`,{"is-display":u.display}]),innerHTML:d.value},null,10,oo))}}),[[`__scopeId`,`data-v-78921b68`]]),co={class:`dl-qkv`},lo={class:`dl-qkv__sentence`},uo=[`onClick`],fo={class:`dl-qkv__source`},po={class:`dl-qkv__sourcelabel`},mo={class:`dl-qkv__axis`},ho={class:`dl-qkv__val`},go={class:`dl-qkv__fan`,"aria-hidden":`true`},_o={class:`dl-qkv__lenses`},vo={class:`dl-qkv__lensname`},yo={class:`dl-qkv__role`},bo={class:`dl-qkv__formula`},xo={class:`dl-qkv__vec`},So={key:0,class:`dl-qkv__silent`},Co={key:0,class:`dl-qkv__note`},wo={key:1,class:`dl-qkv__note`},To={key:2,class:`dl-qkv__note`},Eo=b(m({__name:`QkvLab`,props:{sentence:{default:`river`},switchable:{type:Boolean,default:!1}},setup(e){let{$slidev:t,$nav:a,$clicksContext:m,$clicks:v,$page:b,$renderContext:S,$frontmatter:C}=x(),ue=e,w=u(ue.sentence),de=l(()=>ae[w.value]),fe=u(2),pe=l(()=>de.value[Math.min(fe.value,de.value.length-1)]),me=l(()=>re[pe.value]),T=[{key:`q`,name:`Query`,symbol:`q`,matrix:`W_Q`,role:`what I am looking for`,weights:ce},{key:`k`,name:`Key`,symbol:`k`,matrix:`W_K`,role:`what I advertise`,weights:se},{key:`v`,name:`Value`,symbol:`v`,matrix:`W_V`,role:`what I hand over`,weights:ie}],he=l(()=>T.map(e=>({...e,vec:oe(me.value,e.weights)})));function ge(e){return e.every(e=>e===0)}function _e(){fe.value=(fe.value+1)%de.value.length}function ve(){w.value=w.value===`river`?`money`:`river`}return(e,t)=>{let a=so,l=te,u=ee;return y(),f(u,{"max-width":`44rem`},{controls:n(()=>[r(l,{label:`Next word`,glyph:`▸`,onClick:_e}),ue.switchable?(y(),f(l,{key:0,label:w.value===`river`?`Swap river → money`:`Swap money → river`,variant:`ghost`,glyph:`⇄`,onClick:ve},null,8,[`label`])):_(`v-if`,!0)]),readout:n(()=>[o(`strong`,null,g(pe.value),1),t[6]||=h(` is four numbers, and the three boxes are three `,-1),t[7]||=o(`strong`,null,`learned`,-1),t[8]||=h(` projections of those same four numbers — not three stored things. `,-1),pe.value===`bank`?(y(),c(`span`,Co,[...t[1]||=[h(` Look at x: all of `,-1),o(`em`,null,`bank`,-1),h(`’s mass is on `,-1),o(`em`,null,`thing`,-1),h(`, and none of it on `,-1),o(`em`,null,`water`,-1),h(` or `,-1),o(`em`,null,`money`,-1),h(`. The sense is not in the vector. Its query asks the loudest question in the sentence, and its key advertises nothing — so nobody reads `,-1),o(`em`,null,`bank`,-1),h(` to find out what a bank is. `,-1)]])):pe.value===`the`?(y(),c(`span`,wo,[...t[2]||=[o(`em`,null,`the`,-1),h(` projects to a zero query and a zero key: it asks nothing and advertises nothing. Its row of attention weights will come out flat, and no other word will point at it. `,-1)]])):(y(),c(`span`,To,[o(`em`,null,g(pe.value),1),t[3]||=h(` advertises exactly the thing `,-1),t[4]||=o(`em`,null,`bank`,-1),t[5]||=h(` is about to ask for — which is the whole mechanism, and it is one dot product away. `,-1)]))]),default:n(()=>[o(`div`,co,[_(` One sentence, one word selected. `),o(`div`,lo,[(y(!0),c(d,null,i(de.value,(e,t)=>(y(),c(`button`,{key:e+t,type:`button`,class:p([`dl-qkv__word`,{"is-current":t===fe.value}]),onClick:e=>fe.value=t},g(e),11,uo))),128))]),_(` The one vector everything below is derived from. `),o(`div`,fo,[o(`span`,po,[t[0]||=h(`x`,-1),o(`sub`,null,g(fe.value+1),1)]),(y(!0),c(d,null,i(me.value,(e,t)=>(y(),c(`span`,{key:t,class:p([`dl-qkv__coord`,{"is-zero":e===0}])},[o(`span`,mo,g(s(le)[t]),1),o(`span`,ho,g(s(ne)(e)),1)],2))),128))]),o(`div`,go,[(y(),c(d,null,i(T,e=>o(`span`,{key:e.key,class:`dl-qkv__stem`})),64))]),_(` Three projections of it. `),o(`div`,_o,[(y(!0),c(d,null,i(he.value,e=>(y(),c(`div`,{key:e.key,class:p([`dl-qkv__lens`,{"is-silent":ge(e.vec)}])},[o(`div`,vo,g(e.name),1),o(`div`,yo,g(e.role),1),o(`div`,bo,[r(a,{expr:`\\mathbf{${e.symbol}} = \\mathbf{x}\\,${e.matrix}`},null,8,[`expr`])]),o(`div`,xo,[(y(!0),c(d,null,i(e.vec,(e,t)=>(y(),c(`span`,{key:t,class:`dl-qkv__cell`},g(s(ne)(e)),1))),128))]),ge(e.vec)?(y(),c(`div`,So,`all zero`)):_(`v-if`,!0)],2))),128))])])]),_:1})}}}),[[`__scopeId`,`data-v-88443cb2`]]),Do={class:`mt-2 dl-callout`},Oo={__name:`class.md__slidev_12`,setup(i){let{$slidev:l,$nav:u,$clicksContext:d,$clicks:p,$page:m,$renderContext:g,$frontmatter:_}=x();return d.setup(),(i,l)=>{let u=Eo,d=C,p=a(`click`);return y(),f(ue,v(t(s(S)(s(_),11))),{aside:n(t=>[l[2]||=o(`p`,null,[h(`Press `),o(`strong`,null,`Next word`),h(`. One vector, three projections of it.`)],-1),r(d,null,{default:n(()=>[...l[0]||=[o(`ul`,null,[o(`li`,null,[o(`em`,null,`the`),h(` — zero query, zero key. Asks nothing, advertises nothing`)]),o(`li`,null,[o(`em`,null,`river`),h(` advertises `),o(`strong`,null,`water`)]),o(`li`,null,[o(`em`,null,`bank`),h(` asks the loudest question, and advertises nothing`)])],-1)]]),_:1}),e((y(),c(`div`,Do,[...l[1]||=[o(`p`,null,[h(`Nobody reads `),o(`em`,null,`bank`),h(` to learn what a bank is.`)],-1)]])),[[p]])]),default:n(()=>[r(u)]),_:1},16)}}};export{Oo as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-CHQ8QitS.js b/lecture-06/class/assets/md-CHQ8QitS.js new file mode 100644 index 0000000000000000000000000000000000000000..7e5e196be67c34e0a2879199e2990b84f2d0601d --- /dev/null +++ b/lecture-06/class/assets/md-CHQ8QitS.js @@ -0,0 +1 @@ +import{$ as e,E as t,H as n,Q as r,S as i,W as a,_ as o,_t as s,b as c,m as l,v as u,w as d,x as f,xt as p,yt as m,z as h}from"./modules/shiki-BFOesOFp.js";import{t as g}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as _,t as v}from"./slidev/context-DrkI8qiD.js";import{t as y}from"./default-Dm4DVug5.js";var b={class:`dl-citation`},x=[`href`],S=g(d({__name:`Citation`,props:{source:{},url:{}},setup(e){let{$slidev:t,$nav:r,$clicksContext:i,$clicks:a,$page:o,$renderContext:s,$frontmatter:u}=_(),d=e;return(e,t)=>(h(),c(`span`,b,[d.url?(h(),c(`a`,{key:0,href:d.url,target:`_blank`,rel:`noopener`},p(d.source),9,x)):(h(),c(l,{key:1},[f(p(d.source),1)],64)),n(e.$slots,`default`,{},void 0,!0)]))}}),[[`__scopeId`,`data-v-11a8cabc`]]),C={class:`mt-1 flex justify-center`},w={viewBox:`0 0 680 200`,class:`dl-diagram`,style:{"max-width":`34rem`},role:`img`,"aria-label":`Left: attention sits on top of a recurrent chain. Right: the chain is gone and the words the, river, bank connect directly through attention`},T={class:`dl-tight`},E={class:`mt-2 dl-callout`},D={class:`mt-1`},O={__name:`class.md__slidev_5`,setup(n){let{$slidev:l,$nav:d,$clicksContext:p,$clicks:g,$page:b,$renderContext:x,$frontmatter:O}=_();return p.setup(),(n,l)=>{let d=S,p=a(`click`);return h(),u(y,m(t(s(v)(s(O),4))),{default:r(()=>[l[21]||=o(`h1`,null,`The move`,-1),l[22]||=o(`p`,null,[f(`Last week’s attention was a `),o(`strong`,null,`passenger`),f(` on a recurrent model that did the real work.`)],-1),o(`div`,C,[(h(),c(`svg`,w,[l[1]||=o(`defs`,null,[o(`marker`,{id:`l6s0-move-head`,markerWidth:`7`,markerHeight:`7`,refX:`6`,refY:`3.5`,orient:`auto`},[o(`path`,{class:`dl-dg-head`,d:`M0 0 L7 3.5 L0 7 z`})])],-1),l[2]||=o(`text`,{class:`dl-dg-small`,x:`8`,y:`16`},`last week — attention on top`,-1),l[3]||=o(`circle`,{class:`dl-dg-op`,cx:`95`,cy:`48`,r:`16`},null,-1),l[4]||=o(`text`,{class:`dl-dg-lab is-sm`,x:`95`,y:`53`,"text-anchor":`middle`},`Σ`,-1),l[5]||=o(`text`,{class:`dl-dg-small`,x:`120`,y:`52`},`weighted sum`,-1),l[6]||=o(`path`,{class:`dl-dg-line`,d:`M85 61 L31 128`},null,-1),l[7]||=o(`path`,{class:`dl-dg-line`,d:`M95 64 L99 128`},null,-1),l[8]||=o(`path`,{class:`dl-dg-line`,d:`M105 61 L167 128`},null,-1),l[9]||=o(`rect`,{class:`dl-dg-box`,x:`8`,y:`130`,width:`46`,height:`30`,rx:`4`},null,-1),l[10]||=o(`rect`,{class:`dl-dg-box`,x:`76`,y:`130`,width:`46`,height:`30`,rx:`4`},null,-1),l[11]||=o(`rect`,{class:`dl-dg-box`,x:`144`,y:`130`,width:`46`,height:`30`,rx:`4`},null,-1),l[12]||=o(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#l6s0-move-head)`,d:`M54 145 H74`},null,-1),l[13]||=o(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#l6s0-move-head)`,d:`M122 145 H142`},null,-1),l[14]||=o(`text`,{class:`dl-dg-small`,x:`31`,y:`184`,"text-anchor":`middle`},`the`,-1),l[15]||=o(`text`,{class:`dl-dg-small`,x:`99`,y:`184`,"text-anchor":`middle`},`river`,-1),l[16]||=o(`text`,{class:`dl-dg-small`,x:`167`,y:`184`,"text-anchor":`middle`},`bank`,-1),l[17]||=o(`text`,{class:`dl-dg-small`,x:`200`,y:`150`},`the chain does the work`,-1),l[18]||=o(`line`,{class:`dl-dg-split`,x1:`340`,y1:`8`,x2:`340`,y2:`192`},null,-1),e((h(),c(`g`,null,[...l[0]||=[o(`text`,{class:`dl-dg-small is-good`,x:`360`,y:`16`},`2017 — keep the weighted sum, delete the chain`,-1),o(`path`,{class:`dl-dg-line`,d:`M415 128 Q460 92 505 128`},null,-1),o(`path`,{class:`dl-dg-line`,d:`M505 128 Q550 92 595 128`},null,-1),o(`path`,{class:`dl-dg-line`,d:`M415 128 Q505 46 595 128`},null,-1),o(`rect`,{class:`dl-dg-box is-accent`,x:`380`,y:`130`,width:`70`,height:`30`,rx:`4`},null,-1),o(`rect`,{class:`dl-dg-box is-accent`,x:`470`,y:`130`,width:`70`,height:`30`,rx:`4`},null,-1),o(`rect`,{class:`dl-dg-box is-accent`,x:`560`,y:`130`,width:`70`,height:`30`,rx:`4`},null,-1),o(`text`,{class:`dl-dg-in`,x:`415`,y:`150`,"text-anchor":`middle`},`the`,-1),o(`text`,{class:`dl-dg-in`,x:`505`,y:`150`,"text-anchor":`middle`},`river`,-1),o(`text`,{class:`dl-dg-in`,x:`595`,y:`150`,"text-anchor":`middle`},`bank`,-1),o(`text`,{class:`dl-dg-small`,x:`505`,y:`184`,"text-anchor":`middle`},`all positions at once — nothing waits`,-1)]])),[[p]])]))]),e((h(),c(`div`,T,[...l[19]||=[o(`ul`,null,[o(`li`,null,[f(`They removed the RNN (recurrent neural network) as a test. Translation quality went `),o(`strong`,null,`up`),f(`.`)])],-1)]])),[[p]]),e((h(),c(`div`,E,[...l[20]||=[o(`p`,null,[o(`strong`,null,`Attention Is All You Need`),f(` (Vaswani et al., 2017): keep the weighted sum, delete everything it was bolted to.`)],-1)]])),[[p]]),o(`div`,D,[i(d,{source:`Vaswani, Shazeer, Parmar, Uszkoreit, Jones, Gomez, Kaiser & Polosukhin, Attention Is All You Need (2017)`,url:`https://arxiv.org/abs/1706.03762`})])]),_:1},16)}}};export{O as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-CKtUT4kh.js b/lecture-06/class/assets/md-CKtUT4kh.js new file mode 100644 index 0000000000000000000000000000000000000000..bdd1f7e75950e45506859935c973f7d303e66394 --- /dev/null +++ b/lecture-06/class/assets/md-CKtUT4kh.js @@ -0,0 +1 @@ +import{$ as e,E as t,Q as n,S as r,W as i,_ as a,_t as o,b as s,v as c,x as l,yt as u,z as d}from"./modules/shiki-BFOesOFp.js";import{n as f,t as p}from"./slidev/context-DrkI8qiD.js";import{t as m}from"./slidev/VClicks-BJ1JuBhK.js";import{t as h}from"./interactive-BCz0jAef.js";import{t as g}from"./PositionalEncoding-q3Ic_HFH.js";var _={class:`mt-2 dl-callout`},v={__name:`class.md__slidev_20`,setup(v){let{$slidev:y,$nav:b,$clicksContext:x,$clicks:S,$page:C,$renderContext:w,$frontmatter:T}=f();return x.setup(),(f,v)=>{let y=g,b=m,x=i(`click`);return d(),c(h,u(t(o(p)(o(T),19))),{aside:n(t=>[v[2]||=a(`p`,null,[l(`Press `),a(`strong`,null,`Shuffle the words`),l(`, then read the vectors.`)],-1),r(b,null,{default:n(()=>[...v[0]||=[a(`ul`,null,[a(`li`,null,[l(`Every word’s output is `),a(`strong`,null,`exactly`),l(` what it was`)]),a(`li`,null,[l(`A weighted sum is a sum over a `),a(`strong`,null,`set`),l(`. A set has no order`)]),a(`li`,null,[a(`em`,null,`the river bank`),l(` and `),a(`em`,null,`bank river the`),l(` look the same`)])],-1)]]),_:1}),e((d(),s(`div`,_,[...v[1]||=[a(`p`,null,`Last week’s lecture was about order. We have just thrown it away.`,-1)]])),[[x]])]),default:n(()=>[r(y,{mode:`blind`})]),_:1},16)}}};export{v as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-CLHejJIP.css b/lecture-06/class/assets/md-CLHejJIP.css new file mode 100644 index 0000000000000000000000000000000000000000..34b06657fe2818efb3f6f3fa6bc1bc3509b136e0 --- /dev/null +++ b/lecture-06/class/assets/md-CLHejJIP.css @@ -0,0 +1 @@ +.dl-katex[data-v-78921b68] .katex{color:var(--dl-heading)}.dl-katex.is-display[data-v-78921b68]{text-align:center;display:block}.dl-katex[data-v-78921b68] .dl-katex-error{color:var(--dl-danger);font-family:ui-monospace,monospace}.dl-qkv[data-v-88443cb2]{flex-direction:column;align-items:center;gap:.3rem;width:100%;display:flex}.dl-qkv__sentence[data-v-88443cb2]{gap:.5rem;display:flex}.dl-qkv__word[data-v-88443cb2]{border:1px solid var(--dl-border);background:var(--dl-bg);color:var(--dl-body);font:inherit;cursor:pointer;border-radius:5px;padding:.2rem .85rem;font-size:.95rem;transition:background .15s,border-color .15s}.dl-qkv__word[data-v-88443cb2]:hover{border-color:var(--dl-accent)}.dl-qkv__word.is-current[data-v-88443cb2]{background:var(--dl-accent);border-color:var(--dl-accent-strong);color:#fff;font-weight:600}.dl-qkv__word[data-v-88443cb2]:focus-visible{outline:2px solid var(--dl-accent);outline-offset:2px}.dl-qkv__source[data-v-88443cb2]{align-items:center;gap:.3rem;display:flex}.dl-qkv__sourcelabel[data-v-88443cb2]{color:var(--dl-heading);margin-right:.15rem;font-size:.92rem;font-style:italic;font-weight:600}.dl-qkv__coord[data-v-88443cb2]{border:1px solid var(--dl-border);background:var(--dl-surface);border-radius:4px;flex-direction:column;align-items:center;width:3.4rem;padding:.12rem 0;display:flex}.dl-qkv__coord.is-zero[data-v-88443cb2]{background:0 0;border-style:dashed}.dl-qkv__axis[data-v-88443cb2]{letter-spacing:.05em;color:var(--dl-muted);font-size:.6rem}.dl-qkv__val[data-v-88443cb2]{font-variant-numeric:tabular-nums;color:var(--dl-heading);font-size:.88rem;font-weight:600}.dl-qkv__coord.is-zero .dl-qkv__val[data-v-88443cb2]{color:var(--dl-muted);font-weight:400}.dl-qkv__fan[data-v-88443cb2]{grid-template-columns:repeat(3,1fr);width:100%;max-width:34rem;height:.6rem;display:grid}.dl-qkv__stem[data-v-88443cb2]{border-left:1px solid var(--dl-border);justify-self:center;height:100%}.dl-qkv__lenses[data-v-88443cb2]{grid-template-columns:repeat(3,1fr);gap:.7rem;width:100%;display:grid}.dl-qkv__lens[data-v-88443cb2]{border:1px solid var(--dl-border);border-top:3px solid var(--dl-accent);background:var(--dl-surface);text-align:center;border-radius:6px;padding:.4rem .6rem .5rem}.dl-qkv__lens.is-silent[data-v-88443cb2]{border-top-color:var(--dl-border);opacity:.72}.dl-qkv__lensname[data-v-88443cb2]{color:var(--dl-heading);font-size:.95rem;font-weight:700}.dl-qkv__role[data-v-88443cb2]{color:var(--dl-muted);min-height:1.3em;margin-top:.05rem;font-size:.76rem;line-height:1.3}.dl-qkv__formula[data-v-88443cb2]{margin:.3rem 0 .35rem}.dl-qkv__formula[data-v-88443cb2] .katex{font-size:.8em}.dl-qkv__vec[data-v-88443cb2]{justify-content:center;gap:.25rem;display:flex}.dl-qkv__cell[data-v-88443cb2]{border:1px solid var(--dl-accent);background:var(--dl-accent-soft);width:2.9rem;color:var(--dl-heading);font-variant-numeric:tabular-nums;border-radius:4px;padding:.18rem 0;font-size:.88rem;font-weight:600}.dl-qkv__lens.is-silent .dl-qkv__cell[data-v-88443cb2]{border-color:var(--dl-border);color:var(--dl-muted);background:0 0;font-weight:400}.dl-qkv__silent[data-v-88443cb2]{letter-spacing:.04em;text-transform:uppercase;color:var(--dl-muted);margin-top:.2rem;font-size:.68rem}.dl-qkv__note[data-v-88443cb2]{color:var(--dl-accent);margin-top:.15rem;display:block} diff --git a/lecture-06/class/assets/md-CMtQSW0f2.js b/lecture-06/class/assets/md-CMtQSW0f2.js new file mode 100644 index 0000000000000000000000000000000000000000..43b1b90b6ad1d600968e3466868b925740d61a95 --- /dev/null +++ b/lecture-06/class/assets/md-CMtQSW0f2.js @@ -0,0 +1 @@ +import{$ as e,E as t,Q as n,S as r,W as i,_ as a,_t as o,b as s,v as c,x as l,yt as u,z as d}from"./modules/shiki-BFOesOFp.js";import{n as f,t as p}from"./slidev/context-DrkI8qiD.js";import{t as m}from"./slidev/VClicks-BJ1JuBhK.js";import{t as h}from"./interactive-BCz0jAef.js";import{t as g}from"./TransformerBlock-D6V5Q80S.js";var _={class:`mt-2 dl-callout`},v={__name:`class.md__slidev_24`,setup(v){let{$slidev:y,$nav:b,$clicksContext:x,$clicks:S,$page:C,$renderContext:w,$frontmatter:T}=f();return x.setup(),(f,v)=>{let y=g,b=m,x=i(`click`);return d(),c(h,u(t(o(p)(o(T),23))),{aside:n(t=>[v[2]||=a(`p`,null,[l(`Press `),a(`strong`,null,`Walk the block`),l(`. Six parts, all of them already met.`)],-1),r(b,null,{default:n(()=>[...v[0]||=[a(`ul`,null,[a(`li`,null,[l(`attention — the `),a(`strong`,null,`only`),l(` sideways step`)]),a(`li`,null,`add — the residual`),a(`li`,null,`norm`),a(`li`,null,`feed-forward — each position alone`),a(`li`,null,`add, norm`)],-1)]]),_:1}),e((d(),s(`div`,_,[...v[1]||=[a(`p`,null,`Same shape at the top as at the bottom. Stack it.`,-1)]])),[[x]])]),default:n(()=>[r(y,{variant:`post`,switchable:!1})]),_:1},16)}}};export{v as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-CPUxpe3f2.js b/lecture-06/class/assets/md-CPUxpe3f2.js new file mode 100644 index 0000000000000000000000000000000000000000..b506659b0338a96ac7853461ccc8ee5cd221dd39 --- /dev/null +++ b/lecture-06/class/assets/md-CPUxpe3f2.js @@ -0,0 +1 @@ +import{$ as e,E as t,Q as n,W as r,_ as i,_t as a,b as o,v as s,yt as c,z as l}from"./modules/shiki-BFOesOFp.js";import{n as u,t as d}from"./slidev/context-DrkI8qiD.js";import{t as f}from"./default-Dm4DVug5.js";var p={class:`mt-2 flex justify-center`},m={viewBox:`0 0 680 220`,class:`dl-diagram`,role:`img`,"aria-label":`Wall one: the encoder squeezes the source into one vector c, and attention lines fix it. Wall two: a chain of 200 states, each waiting for the one before`},h={class:`mt-2 dl-callout`},g={__name:`class.md__slidev_4`,setup(g){let{$slidev:_,$nav:v,$clicksContext:y,$clicks:b,$page:x,$renderContext:S,$frontmatter:C}=u();return y.setup(),(u,g)=>{let _=r(`click`);return l(),s(f,c(t(a(d)(a(C),3))),{default:n(()=>[g[40]||=i(`h1`,null,`Where last week stopped`,-1),g[41]||=i(`p`,null,`We built a recurrent encoder–decoder and hit two walls (hard limits). Attention removed only one of them.`,-1),i(`div`,p,[(l(),o(`svg`,m,[g[2]||=i(`defs`,null,[i(`marker`,{id:`l6s0-walls-head`,markerWidth:`7`,markerHeight:`7`,refX:`6`,refY:`3.5`,orient:`auto`},[i(`path`,{class:`dl-dg-head`,d:`M0 0 L7 3.5 L0 7 z`})])],-1),g[3]||=i(`text`,{class:`dl-dg-small`,x:`8`,y:`16`},`wall one — the bottleneck`,-1),g[4]||=i(`rect`,{class:`dl-dg-box`,x:`8`,y:`120`,width:`46`,height:`34`,rx:`4`},null,-1),g[5]||=i(`rect`,{class:`dl-dg-box`,x:`72`,y:`120`,width:`46`,height:`34`,rx:`4`},null,-1),g[6]||=i(`rect`,{class:`dl-dg-box`,x:`136`,y:`120`,width:`46`,height:`34`,rx:`4`},null,-1),g[7]||=i(`text`,{class:`dl-dg-lab is-sm`,x:`31`,y:`142`,"text-anchor":`middle`},`h₁`,-1),g[8]||=i(`text`,{class:`dl-dg-lab is-sm`,x:`95`,y:`142`,"text-anchor":`middle`},`h₂`,-1),g[9]||=i(`text`,{class:`dl-dg-lab is-sm`,x:`159`,y:`142`,"text-anchor":`middle`},`h₃`,-1),g[10]||=i(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#l6s0-walls-head)`,d:`M54 137 H70`},null,-1),g[11]||=i(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#l6s0-walls-head)`,d:`M118 137 H134`},null,-1),g[12]||=i(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#l6s0-walls-head)`,d:`M182 137 H202`},null,-1),g[13]||=i(`rect`,{class:`dl-dg-box`,x:`204`,y:`124`,width:`30`,height:`26`,rx:`3`},null,-1),g[14]||=i(`text`,{class:`dl-dg-lab is-sm`,x:`219`,y:`142`,"text-anchor":`middle`},`c`,-1),g[15]||=i(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#l6s0-walls-head)`,d:`M234 137 H254`},null,-1),g[16]||=i(`rect`,{class:`dl-dg-box is-accent`,x:`256`,y:`120`,width:`46`,height:`34`,rx:`4`},null,-1),g[17]||=i(`rect`,{class:`dl-dg-box is-accent`,x:`316`,y:`120`,width:`30`,height:`34`,rx:`4`},null,-1),g[18]||=i(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#l6s0-walls-head)`,d:`M302 137 H314`},null,-1),g[19]||=i(`text`,{class:`dl-dg-small`,x:`95`,y:`174`,"text-anchor":`middle`},`encoder`,-1),g[20]||=i(`text`,{class:`dl-dg-small`,x:`219`,y:`174`,"text-anchor":`middle`},`one vector`,-1),g[21]||=i(`text`,{class:`dl-dg-small`,x:`301`,y:`174`,"text-anchor":`middle`},`decoder`,-1),e((l(),o(`g`,null,[...g[0]||=[i(`path`,{class:`dl-dg-line`,d:`M331 118 C 290 40, 70 40, 31 118`},null,-1),i(`path`,{class:`dl-dg-line`,d:`M331 118 C 300 60, 125 60, 95 118`},null,-1),i(`path`,{class:`dl-dg-line`,d:`M331 118 C 310 80, 180 80, 159 118`},null,-1),i(`text`,{class:`dl-dg-small is-good`,x:`8`,y:`204`},`attention fixed it: a fresh weighted sum at every step`,-1)]])),[[_]]),g[22]||=i(`line`,{class:`dl-dg-split`,x1:`360`,y1:`8`,x2:`360`,y2:`212`},null,-1),g[23]||=i(`text`,{class:`dl-dg-small`,x:`378`,y:`16`},`wall two — no parallelism`,-1),g[24]||=i(`rect`,{class:`dl-dg-box`,x:`378`,y:`120`,width:`42`,height:`34`,rx:`4`},null,-1),g[25]||=i(`rect`,{class:`dl-dg-box`,x:`436`,y:`120`,width:`42`,height:`34`,rx:`4`},null,-1),g[26]||=i(`rect`,{class:`dl-dg-box`,x:`494`,y:`120`,width:`42`,height:`34`,rx:`4`},null,-1),g[27]||=i(`rect`,{class:`dl-dg-box`,x:`552`,y:`120`,width:`42`,height:`34`,rx:`4`},null,-1),g[28]||=i(`rect`,{class:`dl-dg-box`,x:`610`,y:`120`,width:`54`,height:`34`,rx:`4`},null,-1),g[29]||=i(`text`,{class:`dl-dg-lab is-sm`,x:`399`,y:`142`,"text-anchor":`middle`},`h₁`,-1),g[30]||=i(`text`,{class:`dl-dg-lab is-sm`,x:`457`,y:`142`,"text-anchor":`middle`},`h₂`,-1),g[31]||=i(`text`,{class:`dl-dg-lab is-sm`,x:`515`,y:`142`,"text-anchor":`middle`},`h₃`,-1),g[32]||=i(`text`,{class:`dl-dg-lab is-sm`,x:`573`,y:`142`,"text-anchor":`middle`},`…`,-1),g[33]||=i(`text`,{class:`dl-dg-lab is-sm`,x:`637`,y:`142`,"text-anchor":`middle`},`h₂₀₀`,-1),g[34]||=i(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#l6s0-walls-head)`,d:`M420 137 H434`},null,-1),g[35]||=i(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#l6s0-walls-head)`,d:`M478 137 H492`},null,-1),g[36]||=i(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#l6s0-walls-head)`,d:`M536 137 H550`},null,-1),g[37]||=i(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#l6s0-walls-head)`,d:`M594 137 H608`},null,-1),g[38]||=i(`text`,{class:`dl-dg-small`,x:`378`,y:`182`},`200 tokens = 200 steps in a row`,-1),e((l(),o(`g`,null,[...g[1]||=[i(`rect`,{class:`dl-dg-box is-bad`,x:`370`,y:`110`,width:`302`,height:`54`,rx:`6`},null,-1),i(`text`,{class:`dl-dg-small is-bad`,x:`378`,y:`208`},`attention on top leaves this chain in place`,-1)]])),[[_]])]))]),e((l(),o(`div`,h,[...g[39]||=[i(`p`,null,`Two walls, one fix. This lecture removes the chain itself.`,-1)]])),[[_]])]),_:1},16)}}};export{g as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-CVoSWXDp.js b/lecture-06/class/assets/md-CVoSWXDp.js new file mode 100644 index 0000000000000000000000000000000000000000..7f9b69d2e10b2e3053e6431bbd215e525452816e --- /dev/null +++ b/lecture-06/class/assets/md-CVoSWXDp.js @@ -0,0 +1 @@ +import{$ as e,E as t,Q as n,W as r,_ as i,_t as a,b as o,v as s,x as c,yt as l,z as u}from"./modules/shiki-BFOesOFp.js";import{n as d,t as f}from"./slidev/context-DrkI8qiD.js";import{t as p}from"./default-Dm4DVug5.js";var m={class:`grid grid-cols-2 gap-6 mt-2`},h={viewBox:`0 0 480 140`,class:`dl-diagram`,style:{"max-height":`8rem`},role:`img`,"aria-label":`Each model drawn as a rectangle with width proportional to d_model and height proportional to the number of blocks; the growth is mostly in width`},g={class:`dl-callout`},_={class:`mt-2 dl-secondary`},v={__name:`class.md__slidev_34`,setup(v){let{$slidev:y,$nav:b,$clicksContext:x,$clicks:S,$page:C,$renderContext:w,$frontmatter:T}=d();return x.setup(),(d,v)=>{let y=r(`click`);return u(),s(p,l(t(a(f)(a(T),33))),{default:n(()=>[v[3]||=i(`h1`,null,`The same block, more of it`,-1),v[4]||=i(`div`,{class:`dl-ledger dl-ledger--scale mt-1`},[i(`table`,null,[i(`thead`,null,[i(`tr`,null,[i(`th`),i(`th`,null,`year`),i(`th`,null,`blocks`),i(`th`,null,[i(`span`,{class:`katex`},[i(`span`,{class:`katex-mathml`},[i(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[i(`semantics`,null,[i(`mrow`,null,[i(`msub`,null,[i(`mi`,null,`d`),i(`mtext`,null,`model`)])]),i(`annotation`,{encoding:`application/x-tex`},`d_{\\text{model}}`)])])]),i(`span`,{class:`katex-html`,"aria-hidden":`true`},[i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`0.8444em`,"vertical-align":`-0.15em`}}),i(`span`,{class:`mord`},[i(`span`,{class:`mord mathnormal`},`d`),i(`span`,{class:`msupsub`},[i(`span`,{class:`vlist-t vlist-t2`},[i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.3361em`}},[i(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[i(`span`,{class:`pstrut`,style:{height:`2.7em`}}),i(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[i(`span`,{class:`mord mtight`},[i(`span`,{class:`mord text mtight`},[i(`span`,{class:`mord mtight`},`model`)])])])])]),i(`span`,{class:`vlist-s`},`​`)]),i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.15em`}},[i(`span`)])])])])])])])])]),i(`th`,null,`heads`),i(`th`,null,`context`),i(`th`,null,`parameters`)])]),i(`tbody`,null,[i(`tr`,null,[i(`td`,null,`Transformer base`),i(`td`,null,`2017`),i(`td`,null,`6`),i(`td`,null,`512`),i(`td`,null,`8`),i(`td`,null,`512`),i(`td`,null,`65 M`)]),i(`tr`,null,[i(`td`,null,`BERT base`),i(`td`,null,`2018`),i(`td`,null,`12`),i(`td`,null,`768`),i(`td`,null,`12`),i(`td`,null,`512`),i(`td`,null,`110 M`)]),i(`tr`,null,[i(`td`,null,`GPT-2 XL`),i(`td`,null,`2019`),i(`td`,null,`48`),i(`td`,null,`1600`),i(`td`,null,`25`),i(`td`,null,`1024`),i(`td`,null,`1.5 B`)]),i(`tr`,null,[i(`td`,null,`GPT-3`),i(`td`,null,`2020`),i(`td`,null,`96`),i(`td`,null,`12288`),i(`td`,null,`96`),i(`td`,null,`2048`),i(`td`,null,`175 B`)]),i(`tr`,null,[i(`td`,null,`Llama 3.1 70B`),i(`td`,null,`2024`),i(`td`,null,`80`),i(`td`,null,`8192`),i(`td`,null,`64`),i(`td`,null,`128 k`),i(`td`,null,`70 B`)])])])],-1),i(`div`,m,[i(`div`,null,[(u(),o(`svg`,h,[...v[0]||=[i(`text`,{class:`dl-dg-small`,x:`4`,y:`12`},`width = d_model · height = blocks`,-1),i(`rect`,{class:`dl-dg-fill is-muted`,x:`10`,y:`94.4`,width:`6.2`,height:`5.6`},null,-1),i(`rect`,{class:`dl-dg-fill is-muted`,x:`75`,y:`88.8`,width:`9.4`,height:`11.2`},null,-1),i(`rect`,{class:`dl-dg-fill is-muted`,x:`135`,y:`55`,width:`19.5`,height:`45`},null,-1),i(`rect`,{class:`dl-dg-fill`,x:`190`,y:`10`,width:`150`,height:`90`},null,-1),i(`rect`,{class:`dl-dg-fill`,x:`360`,y:`25`,width:`100`,height:`75`},null,-1),i(`path`,{class:`dl-dg-split`,d:`M4 100 H476`},null,-1),i(`text`,{class:`dl-dg-small`,x:`13`,y:`118`,"text-anchor":`middle`},`2017`,-1),i(`text`,{class:`dl-dg-small`,x:`80`,y:`118`,"text-anchor":`middle`},`BERT`,-1),i(`text`,{class:`dl-dg-small`,x:`145`,y:`118`,"text-anchor":`middle`},`GPT-2 XL`,-1),i(`text`,{class:`dl-dg-small`,x:`265`,y:`118`,"text-anchor":`middle`},`GPT-3`,-1),i(`text`,{class:`dl-dg-small`,x:`410`,y:`118`,"text-anchor":`middle`},`Llama 3.1`,-1)]]))]),i(`div`,null,[e((u(),o(`div`,g,[...v[1]||=[i(`p`,null,[c(`Deeper, wider, longer — and the `),i(`strong`,null,`same block`),c(`.`)],-1)]])),[[y]]),e((u(),o(`div`,_,[...v[2]||=[i(`p`,null,[c(`Context grew 250-fold, so the `),i(`span`,{class:`katex`},[i(`span`,{class:`katex-mathml`},[i(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[i(`semantics`,null,[i(`mrow`,null,[i(`msup`,null,[i(`mi`,null,`T`),i(`mn`,null,`2`)])]),i(`annotation`,{encoding:`application/x-tex`},`T^2`)])])]),i(`span`,{class:`katex-html`,"aria-hidden":`true`},[i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`0.8141em`}}),i(`span`,{class:`mord`},[i(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.1389em`}},`T`),i(`span`,{class:`msupsub`},[i(`span`,{class:`vlist-t`},[i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.8141em`}},[i(`span`,{style:{top:`-3.063em`,"margin-right":`0.05em`}},[i(`span`,{class:`pstrut`,style:{height:`2.7em`}}),i(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[i(`span`,{class:`mord mtight`},`2`)])])])])])])])])])]),c(` cost grew too. Faster kernels and caching kept it affordable.`)],-1)]])),[[y]])])])]),_:1},16)}}};export{v as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-CWQvoV-6.js b/lecture-06/class/assets/md-CWQvoV-6.js new file mode 100644 index 0000000000000000000000000000000000000000..e1503cb67d99a4837853c37c8f584c48bfee3240 --- /dev/null +++ b/lecture-06/class/assets/md-CWQvoV-6.js @@ -0,0 +1 @@ +import{$ as e,E as t,Q as n,W as r,_ as i,_t as a,b as o,v as s,x as c,yt as l,z as u}from"./modules/shiki-BFOesOFp.js";import{n as d,t as f}from"./slidev/context-DrkI8qiD.js";import{t as p}from"./default-Dm4DVug5.js";var m={class:`mt-2 flex justify-center`},h={viewBox:`0 0 520 196`,class:`dl-diagram`,style:{"max-height":`14rem`},role:`img`,"aria-label":`One token vector x passes through three learned matrices W_Q, W_K and W_V and becomes a query, a key and a value`},g={class:`mt-2 dl-callout`},_={__name:`class.md__slidev_10`,setup(_){let{$slidev:v,$nav:y,$clicksContext:b,$clicks:x,$page:S,$renderContext:C,$frontmatter:w}=d();return b.setup(),(d,_)=>{let v=r(`click`);return u(),s(p,l(t(a(f)(a(w),9))),{default:n(()=>[_[2]||=i(`h1`,null,`Three roles, one vector`,-1),_[3]||=i(`p`,null,[c(`Each token makes all three from `),i(`strong`,null,`the same`),c(` vector `),i(`span`,{class:`katex`},[i(`span`,{class:`katex-mathml`},[i(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[i(`semantics`,null,[i(`mrow`,null,[i(`mi`,{mathvariant:`bold`},`x`)]),i(`annotation`,{encoding:`application/x-tex`},`\\mathbf{x}`)])])]),i(`span`,{class:`katex-html`,"aria-hidden":`true`},[i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`0.4444em`}}),i(`span`,{class:`mord mathbf`},`x`)])])]),c(`, through three `),i(`strong`,null,`learned`),c(` matrices: `),i(`span`,{class:`katex`},[i(`span`,{class:`katex-mathml`},[i(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[i(`semantics`,null,[i(`mrow`,null,[i(`mi`,{mathvariant:`bold`},`q`),i(`mo`,null,`=`),i(`mi`,{mathvariant:`bold`},`x`),i(`msub`,null,[i(`mi`,null,`W`),i(`mi`,null,`Q`)])]),i(`annotation`,{encoding:`application/x-tex`},`\\mathbf{q} = \\mathbf{x}W_Q`)])])]),i(`span`,{class:`katex-html`,"aria-hidden":`true`},[i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`0.6389em`,"vertical-align":`-0.1944em`}}),i(`span`,{class:`mord mathbf`},`q`),i(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),i(`span`,{class:`mrel`},`=`),i(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`0.9694em`,"vertical-align":`-0.2861em`}}),i(`span`,{class:`mord mathbf`},`x`),i(`span`,{class:`mord`},[i(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.1389em`}},`W`),i(`span`,{class:`msupsub`},[i(`span`,{class:`vlist-t vlist-t2`},[i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.3283em`}},[i(`span`,{style:{top:`-2.55em`,"margin-left":`-0.1389em`,"margin-right":`0.05em`}},[i(`span`,{class:`pstrut`,style:{height:`2.7em`}}),i(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[i(`span`,{class:`mord mathnormal mtight`},`Q`)])])]),i(`span`,{class:`vlist-s`},`​`)]),i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.2861em`}},[i(`span`)])])])])])])])]),c(`, `),i(`span`,{class:`katex`},[i(`span`,{class:`katex-mathml`},[i(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[i(`semantics`,null,[i(`mrow`,null,[i(`mi`,{mathvariant:`bold`},`k`),i(`mo`,null,`=`),i(`mi`,{mathvariant:`bold`},`x`),i(`msub`,null,[i(`mi`,null,`W`),i(`mi`,null,`K`)])]),i(`annotation`,{encoding:`application/x-tex`},`\\mathbf{k} = \\mathbf{x}W_K`)])])]),i(`span`,{class:`katex-html`,"aria-hidden":`true`},[i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`0.6944em`}}),i(`span`,{class:`mord mathbf`},`k`),i(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),i(`span`,{class:`mrel`},`=`),i(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`0.8333em`,"vertical-align":`-0.15em`}}),i(`span`,{class:`mord mathbf`},`x`),i(`span`,{class:`mord`},[i(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.1389em`}},`W`),i(`span`,{class:`msupsub`},[i(`span`,{class:`vlist-t vlist-t2`},[i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.3283em`}},[i(`span`,{style:{top:`-2.55em`,"margin-left":`-0.1389em`,"margin-right":`0.05em`}},[i(`span`,{class:`pstrut`,style:{height:`2.7em`}}),i(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[i(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0715em`}},`K`)])])]),i(`span`,{class:`vlist-s`},`​`)]),i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.15em`}},[i(`span`)])])])])])])])]),c(`, `),i(`span`,{class:`katex`},[i(`span`,{class:`katex-mathml`},[i(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[i(`semantics`,null,[i(`mrow`,null,[i(`mi`,{mathvariant:`bold`},`v`),i(`mo`,null,`=`),i(`mi`,{mathvariant:`bold`},`x`),i(`msub`,null,[i(`mi`,null,`W`),i(`mi`,null,`V`)])]),i(`annotation`,{encoding:`application/x-tex`},`\\mathbf{v} = \\mathbf{x}W_V`)])])]),i(`span`,{class:`katex-html`,"aria-hidden":`true`},[i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`0.4444em`}}),i(`span`,{class:`mord mathbf`,style:{"margin-right":`0.016em`}},`v`),i(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),i(`span`,{class:`mrel`},`=`),i(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`0.8333em`,"vertical-align":`-0.15em`}}),i(`span`,{class:`mord mathbf`},`x`),i(`span`,{class:`mord`},[i(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.1389em`}},`W`),i(`span`,{class:`msupsub`},[i(`span`,{class:`vlist-t vlist-t2`},[i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.3283em`}},[i(`span`,{style:{top:`-2.55em`,"margin-left":`-0.1389em`,"margin-right":`0.05em`}},[i(`span`,{class:`pstrut`,style:{height:`2.7em`}}),i(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[i(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.2222em`}},`V`)])])]),i(`span`,{class:`vlist-s`},`​`)]),i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.15em`}},[i(`span`)])])])])])])])]),c(`.`)],-1),i(`div`,m,[(u(),o(`svg`,h,[..._[0]||=[i(`defs`,null,[i(`marker`,{id:`l6s1-roles`,markerWidth:`7`,markerHeight:`7`,refX:`6`,refY:`3.5`,orient:`auto`},[i(`path`,{class:`dl-dg-head`,d:`M0 0 L7 3.5 L0 7 z`})])],-1),i(`rect`,{class:`dl-dg-box is-accent`,x:`10`,y:`74`,width:`70`,height:`46`,rx:`4`},null,-1),i(`text`,{class:`dl-dg-lab`,x:`45`,y:`103`,"text-anchor":`middle`},`x`,-1),i(`text`,{class:`dl-dg-small`,x:`45`,y:`138`,"text-anchor":`middle`},`one token`,-1),i(`path`,{class:`dl-dg-arrow`,d:`M80 97 C 110 97, 110 34, 140 34`,"marker-end":`url(#l6s1-roles)`},null,-1),i(`path`,{class:`dl-dg-arrow`,d:`M80 97 H140`,"marker-end":`url(#l6s1-roles)`},null,-1),i(`path`,{class:`dl-dg-arrow`,d:`M80 97 C 110 97, 110 160, 140 160`,"marker-end":`url(#l6s1-roles)`},null,-1),i(`polygon`,{class:`dl-dg-net`,points:`146,16 206,24 206,44 146,52`},null,-1),i(`polygon`,{class:`dl-dg-net`,points:`146,79 206,87 206,107 146,115`},null,-1),i(`polygon`,{class:`dl-dg-net`,points:`146,142 206,150 206,170 146,178`},null,-1),i(`text`,{class:`dl-dg-in`,x:`174`,y:`39`,"text-anchor":`middle`},[c(`W`),i(`tspan`,{"baseline-shift":`sub`,style:{"font-size":`9px`}},`Q`)],-1),i(`text`,{class:`dl-dg-in`,x:`174`,y:`102`,"text-anchor":`middle`},[c(`W`),i(`tspan`,{"baseline-shift":`sub`,style:{"font-size":`9px`}},`K`)],-1),i(`text`,{class:`dl-dg-in`,x:`174`,y:`165`,"text-anchor":`middle`},[c(`W`),i(`tspan`,{"baseline-shift":`sub`,style:{"font-size":`9px`}},`V`)],-1),i(`path`,{class:`dl-dg-arrow`,d:`M206 34 H238`,"marker-end":`url(#l6s1-roles)`},null,-1),i(`path`,{class:`dl-dg-arrow`,d:`M206 97 H238`,"marker-end":`url(#l6s1-roles)`},null,-1),i(`path`,{class:`dl-dg-arrow`,d:`M206 160 H238`,"marker-end":`url(#l6s1-roles)`},null,-1),i(`rect`,{class:`dl-dg-box`,x:`244`,y:`20`,width:`44`,height:`28`,rx:`3`},null,-1),i(`rect`,{class:`dl-dg-box`,x:`244`,y:`83`,width:`44`,height:`28`,rx:`3`},null,-1),i(`rect`,{class:`dl-dg-box`,x:`244`,y:`146`,width:`44`,height:`28`,rx:`3`},null,-1),i(`text`,{class:`dl-dg-lab`,x:`266`,y:`40`,"text-anchor":`middle`},`q`,-1),i(`text`,{class:`dl-dg-lab`,x:`266`,y:`103`,"text-anchor":`middle`},`k`,-1),i(`text`,{class:`dl-dg-lab`,x:`266`,y:`166`,"text-anchor":`middle`},`v`,-1),i(`text`,{class:`dl-dg-lab is-sm`,x:`302`,y:`39`},`query: what am I looking for?`,-1),i(`text`,{class:`dl-dg-lab is-sm`,x:`302`,y:`102`},`key: what do I advertise?`,-1),i(`text`,{class:`dl-dg-lab is-sm`,x:`302`,y:`165`},`value: what do I hand over?`,-1)]]))]),e((u(),o(`div`,g,[..._[1]||=[i(`p`,null,[c(`Three `),i(`strong`,null,`projections`),c(` of one vector, not three stored things. Every token is a query, a key and a value at once.`)],-1)]])),[[v]])]),_:1},16)}}};export{_ as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-CX-EJFbo.js b/lecture-06/class/assets/md-CX-EJFbo.js new file mode 100644 index 0000000000000000000000000000000000000000..da855954989dab2f51b25a7f2d9d3985e8913047 --- /dev/null +++ b/lecture-06/class/assets/md-CX-EJFbo.js @@ -0,0 +1 @@ +import{$ as e,E as t,Q as n,S as r,V as i,W as a,_ as o,_t as s,b as c,g as l,lt as u,m as d,v as f,vt as p,w as m,x as h,xt as g,y as _,yt as v,z as y}from"./modules/shiki-BFOesOFp.js";import{t as b}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as x,t as S}from"./slidev/context-DrkI8qiD.js";import{t as C}from"./slidev/VClicks-BJ1JuBhK.js";import{t as w}from"./WidgetFrame-D2L0MlKA.js";import{t as T}from"./StepButton-BcP33F-1.js";import{t as E}from"./interactive-BCz0jAef.js";var D=[`viewBox`],O=[`x`,`width`],k=[`x`],A=[`x`,`width`],j=[`x`],M=[`d`],N=[`cx`],P=[`x`],F=[`x`],I=[`x`,`y`],L=[`x`,`y`],R=[`x`,`y`],z=640,B=372,V=218,H=56,U=366,W=30,G=b(m({__name:`TransformerStack`,props:{layers:{default:6}},setup(e){let{$slidev:t,$nav:a,$clicksContext:s,$clicks:m,$page:v,$renderContext:b,$frontmatter:S}=x(),C=e,E=[{id:`enc-emb`,x:H,y:300,label:`Input embedding`,sub:`one vector per source token`},{id:`enc-sa`,x:H,y:218,label:`Self-attention`,sub:`every token sees every token`},{id:`enc-ff`,x:H,y:180,label:`Feed-forward`,sub:`each position on its own`},{id:`dec-emb`,x:U,y:300,label:`Output embedding`,sub:`what has been written so far`},{id:`dec-sa`,x:U,y:218,label:`Masked self-attention`,sub:`no peeking at the future`},{id:`dec-ca`,x:U,y:180,label:`Cross-attention`,sub:`Q from here, K and V from the encoder`},{id:`dec-ff`,x:U,y:142,label:`Feed-forward`},{id:`dec-lin`,x:U,y:96,label:`Linear`,sub:`d → vocabulary size`},{id:`dec-sm`,x:U,y:58,label:`Softmax`,sub:`a probability per word in the vocabulary`}],G=[{title:`Embed the source`,lit:[`enc-in`,`enc-emb`],note:"The source sentence is split into tokens and each one is looked up in an embedding table — the same `nn.Embedding` as last week. Nothing here knows anything about order yet."},{title:`Add position`,lit:[`enc-in`,`enc-emb`,`enc-pe`],note:`A fixed positional vector is added to each embedding. Without it the encoder would treat the sentence as a bag of words, because a weighted sum has no order in it.`},{title:`Encoder self-attention`,lit:[`enc-sa`],note:`Every source token attends to every other, in both directions — there is no mask here, because the whole source is available at once. This is the step that makes each vector *contextual*.`},{title:`Encoder block, ×N`,lit:[`enc-sa`,`enc-ff`,`enc-stack`],note:`Attention and feed-forward, each wrapped in a residual and a LayerNorm, repeated N times. The output is one vector per source token — not one vector for the whole sentence, which is precisely the bottleneck this architecture removes.`},{title:`The decoder starts`,lit:[`dec-in`,`dec-emb`,`dec-pe`],note:`The decoder is fed what has been produced so far, shifted right by one and starting from a begin-of-sequence token. During training that is the true target sentence, so every position trains at once — teacher forcing, exactly as last week.`},{title:`Masked self-attention`,lit:[`dec-sa`],note:`The decoder attends to its own output, with position t forbidden from seeing anything after t. Without the mask the model could read the answer off its own input and the loss would collapse to nothing.`},{title:`Cross-attention`,lit:[`dec-ca`,`cross`],note:`The only place the two stacks meet. Queries come from the decoder — “what do I need next?” — and keys and values from the encoder’s output. This is last week’s Bahdanau attention, with the recurrence removed from both sides.`},{title:`Decoder block, ×N`,lit:[`dec-sa`,`dec-ca`,`dec-ff`,`dec-stack`],note:`Three sub-layers now rather than two, again each with a residual and a norm, again repeated N times.`},{title:`Predict the next token`,lit:[`dec-lin`,`dec-sm`,`dec-out`],note:`A linear layer to vocabulary size and a softmax: a probability for every word. Take one, append it, and run the decoder again. The encoder runs once; the decoder runs once per output token — which is where “transformers are parallel” gets its asterisk.`}],K=u(0),q=l(()=>K.value>=G.length),J=l(()=>K.value===0?null:G[K.value-1]);function Y(){K.value=q.value?0:K.value+1}function X(e){return K.value===0?`idle`:J.value?.lit.includes(e)?`current`:G.slice(0,K.value).some(t=>t.lit.includes(e))?`seen`:`idle`}return(e,t)=>{let a=T,s=w;return y(),f(s,{"max-width":`43rem`},{controls:n(()=>[r(a,{label:q.value?`Start over`:K.value===0?`Walk the architecture`:`Next step`,glyph:`▸`,onClick:Y},null,8,[`label`])]),readout:n(()=>[J.value?(y(),c(d,{key:0},[o(`strong`,null,g(K.value)+`/`+g(G.length)+` · `+g(J.value.title),1),h(` — `+g(J.value.note),1)],64)):(y(),c(d,{key:1},[t[1]||=h(` Six boxes you have already met, arranged into two stacks. Press `,-1),t[2]||=o(`em`,null,`Walk the architecture`,-1),t[3]||=h(` and follow the data: up the encoder once, then up the decoder once for every word it writes. `,-1)],64))]),default:n(()=>[(y(),c(`svg`,{class:`dl-stack`,viewBox:`0 0 ${z} ${B}`,preserveAspectRatio:`xMidYMid meet`,role:`img`,"aria-label":`The 2017 encoder-decoder transformer: an encoder stack reading the source sentence and a decoder stack that attends to its own output and to the encoder's`},[t[0]||=o(`defs`,null,[o(`marker`,{id:`dl-stack-arrow`,viewBox:`0 0 8 8`,refX:`7`,refY:`4`,markerWidth:`5`,markerHeight:`5`,orient:`auto-start-reverse`},[o(`path`,{d:`M0,0 L8,4 L0,8 z`,fill:`currentColor`})])],-1),_(` Column spines, drawn first so the boxes sit on top of them. `),o(`line`,{class:`dl-stack__spine`,x1:165,y1:336,x2:165,y2:176}),o(`line`,{class:`dl-stack__spine`,x1:475,y1:336,x2:475,y2:54,"marker-end":`url(#dl-stack-arrow)`}),_(` Repeated-block brackets. `),o(`rect`,{class:p([`dl-stack__repeat`,`is-${X(`enc-stack`)}`]),x:44,y:`172`,width:242,height:`84`,rx:`8`},null,10,O),o(`text`,{class:p([`dl-stack__repeatlabel`,`is-${X(`enc-stack`)}`]),x:38,y:`214`,"text-anchor":`end`},`×`+g(C.layers),11,k),o(`rect`,{class:p([`dl-stack__repeat`,`is-${X(`dec-stack`)}`]),x:354,y:`134`,width:242,height:`122`,rx:`8`},null,10,A),o(`text`,{class:p([`dl-stack__repeatlabel`,`is-${X(`dec-stack`)}`]),x:602,y:`198`,"text-anchor":`start`},`×`+g(C.layers),11,j),_(` The one place the two stacks touch. `),o(`path`,{class:p([`dl-stack__cross`,`is-${X(`cross`)}`]),d:`M 165 176 V 158 H 320 V 195 H 362`,"marker-end":`url(#dl-stack-arrow)`},null,10,M),o(`text`,{class:p([`dl-stack__crosslabel`,`is-${X(`cross`)}`]),x:`318`,y:`152`,"text-anchor":`middle`},` K, V from the encoder `,2),_(` Positional-encoding adders. `),(y(!0),c(d,null,i([{id:`enc-pe`,x:165},{id:`dec-pe`,x:475}],e=>(y(),c(`g`,{key:e.id},[o(`circle`,{class:p([`dl-stack__add`,`is-${X(e.id)}`]),cx:e.x,cy:`272`,r:`11`},null,10,N),o(`text`,{class:`dl-stack__plus`,x:e.x,y:`277`,"text-anchor":`middle`},`+`,8,P),o(`text`,{class:p([`dl-stack__pe`,`is-${X(e.id)}`]),x:e.x-18,y:`276`,"text-anchor":`end`},`position`,10,F)]))),128)),_(` The boxes. `),(y(),c(d,null,i(E,e=>o(`g`,{key:e.id},[o(`rect`,{class:p([`dl-stack__box`,`is-${X(e.id)}`]),x:e.x,y:e.y,width:V,height:W,rx:`5`},null,10,I),o(`text`,{class:p([`dl-stack__label`,`is-${X(e.id)}`]),x:e.x+V/2,y:e.y+(e.sub?14:20),"text-anchor":`middle`},g(e.label),11,L),e.sub?(y(),c(`text`,{key:0,class:p([`dl-stack__sub`,`is-${X(e.id)}`]),x:e.x+V/2,y:e.y+25,"text-anchor":`middle`},g(e.sub),11,R)):_(`v-if`,!0)])),64)),_(` Ports. `),o(`text`,{class:p([`dl-stack__port`,`is-${X(`enc-in`)}`]),x:165,y:`350`,"text-anchor":`middle`},` source sentence `,2),o(`text`,{class:p([`dl-stack__port`,`is-${X(`dec-in`)}`]),x:475,y:`350`,"text-anchor":`middle`},` output so far, shifted right `,2),o(`text`,{class:p([`dl-stack__port`,`is-${X(`dec-out`)}`]),x:475,y:`44`,"text-anchor":`middle`},` probability of every next word `,2),o(`text`,{class:`dl-stack__side`,x:H,y:`18`},`ENCODER — reads once`),o(`text`,{class:`dl-stack__side`,x:U,y:`18`},`DECODER — runs once per output token`)],8,D))]),_:1})}}}),[[`__scopeId`,`data-v-b5551dcc`]]),K={class:`mt-2 dl-callout`},q={__name:`class.md__slidev_28`,setup(i){let{$slidev:l,$nav:u,$clicksContext:d,$clicks:p,$page:m,$renderContext:g,$frontmatter:_}=x();return d.setup(),(i,l)=>{let u=G,d=C,p=a(`click`);return y(),f(E,v(t(s(S)(s(_),27))),{aside:n(t=>[l[2]||=o(`p`,null,[h(`Press `),o(`strong`,null,`Walk the architecture`),h(` and follow the data: nine steps, no new boxes.`)],-1),r(d,null,{default:n(()=>[...l[0]||=[o(`ul`,null,[o(`li`,null,[h(`up the encoder `),o(`strong`,null,`once`)]),o(`li`,null,[h(`then up the decoder `),o(`strong`,null,`once per word it writes`)]),o(`li`,null,`cross-attention is the only wire between them`)],-1)]]),_:1}),e((y(),c(`div`,K,[...l[1]||=[o(`p`,null,`The famous figure, in the order the data actually moves.`,-1)]])),[[p]])]),default:n(()=>[r(u,{layers:6})]),_:1},16)}}};export{q as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-CYXxUBJM.css b/lecture-06/class/assets/md-CYXxUBJM.css new file mode 100644 index 0000000000000000000000000000000000000000..61e9e4648f6d8b40762f4b0525b8efe486b5c232 --- /dev/null +++ b/lecture-06/class/assets/md-CYXxUBJM.css @@ -0,0 +1 @@ +.dl-title[data-v-dc59a472]{flex-direction:column;justify-content:center;padding-left:4rem;padding-right:4rem;display:flex}.dl-title__eyebrow[data-v-dc59a472]{font-size:var(--dl-fs-secondary);letter-spacing:.14em;text-transform:uppercase;align-items:center;gap:.9rem;margin-bottom:1.1rem;display:flex}.dl-title__code[data-v-dc59a472]{color:var(--dl-accent);font-weight:700}.dl-title__lecture[data-v-dc59a472]{color:var(--dl-muted)}.dl-title__body[data-v-dc59a472] h1{font-size:var(--dl-fs-title);margin:0;line-height:1.05}.dl-title__body[data-v-dc59a472] p{font-size:var(--dl-fs-body);color:var(--dl-muted);max-width:34ch;margin-top:.7rem}.dl-title__rule[data-v-dc59a472]{margin:1.6rem 0 1.2rem}.dl-title__meta[data-v-dc59a472]{font-size:var(--dl-fs-secondary);line-height:1.7}.dl-title__author[data-v-dc59a472]{color:var(--dl-heading);font-weight:600}.dl-title__email[data-v-dc59a472]{color:var(--dl-accent)}.dl-title__date[data-v-dc59a472]{color:var(--dl-muted)} diff --git a/lecture-06/class/assets/md-CkUX2gzY2.js b/lecture-06/class/assets/md-CkUX2gzY2.js new file mode 100644 index 0000000000000000000000000000000000000000..0dd87dfb6b3e249c887eaef6a518076676bf8321 --- /dev/null +++ b/lecture-06/class/assets/md-CkUX2gzY2.js @@ -0,0 +1 @@ +import{$ as e,E as t,Q as n,W as r,_ as i,_t as a,b as o,v as s,x as c,yt as l,z as u}from"./modules/shiki-BFOesOFp.js";import{n as d,t as f}from"./slidev/context-DrkI8qiD.js";import{t as p}from"./default-Dm4DVug5.js";var m={class:`mt-2 dl-callout`},h={__name:`class.md__slidev_37`,setup(h){let{$slidev:g,$nav:_,$clicksContext:v,$clicks:y,$page:b,$renderContext:x,$frontmatter:S}=d();return v.setup(),(d,h)=>{let g=r(`click`);return u(),s(p,l(t(a(f)(a(S),36))),{default:n(()=>[h[1]||=i(`h1`,null,`Shapes, end to end`,-1),h[2]||=i(`div`,{class:`grid grid-cols-[1fr_12rem] gap-6 items-center`},[i(`div`,{class:`dl-ledger`},[i(`table`,null,[i(`thead`,null,[i(`tr`,null,[i(`th`,null,`step`),i(`th`,null,`shape`),i(`th`,null,`what it is`)])]),i(`tbody`,null,[i(`tr`,null,[i(`td`,null,[i(`code`,null,`ids`)]),i(`td`,null,[i(`code`,null,`(32, 128)`)]),i(`td`,null,`token ids, padded`)]),i(`tr`,null,[i(`td`,null,[i(`code`,null,`embed(ids)`),c(` + position`)]),i(`td`,null,[i(`code`,null,`(32, 128, 512)`)]),i(`td`,null,`added: same width`)]),i(`tr`,null,[i(`td`,null,[i(`code`,null,`qkv(x)`)]),i(`td`,null,[i(`code`,null,`(32, 128, 1536)`)]),i(`td`,null,`Q, K, V in one tensor`)]),i(`tr`,null,[i(`td`,null,`reshape`),i(`td`,null,[i(`code`,null,`(32, 8, 128, 64)`)]),i(`td`,null,`heads as batch`)]),i(`tr`,null,[i(`td`,null,[i(`span`,{class:`katex`},[i(`span`,{class:`katex-mathml`},[i(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[i(`semantics`,null,[i(`mrow`,null,[i(`mi`,null,`Q`),i(`msup`,null,[i(`mi`,null,`K`),i(`mi`,{mathvariant:`normal`},`⊤`)])]),i(`annotation`,{encoding:`application/x-tex`},`QK^\\top`)])])]),i(`span`,{class:`katex-html`,"aria-hidden":`true`},[i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`1.0435em`,"vertical-align":`-0.1944em`}}),i(`span`,{class:`mord mathnormal`},`Q`),i(`span`,{class:`mord`},[i(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0715em`}},`K`),i(`span`,{class:`msupsub`},[i(`span`,{class:`vlist-t`},[i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.8491em`}},[i(`span`,{style:{top:`-3.063em`,"margin-right":`0.05em`}},[i(`span`,{class:`pstrut`,style:{height:`2.7em`}}),i(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[i(`span`,{class:`mord mtight`},`⊤`)])])])])])])])])])])]),i(`td`,null,[i(`code`,null,`(32, 8, 128, 128)`)]),i(`td`,null,[i(`strong`,null,`the scores`)])]),i(`tr`,null,[i(`td`,null,`weights @ V`),i(`td`,null,[i(`code`,null,`(32, 8, 128, 64)`)]),i(`td`,null,`output per head`)]),i(`tr`,null,[i(`td`,null,[c(`merged + `),i(`span`,{class:`katex`},[i(`span`,{class:`katex-mathml`},[i(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[i(`semantics`,null,[i(`mrow`,null,[i(`msub`,null,[i(`mi`,null,`W`),i(`mi`,null,`O`)])]),i(`annotation`,{encoding:`application/x-tex`},`W_O`)])])]),i(`span`,{class:`katex-html`,"aria-hidden":`true`},[i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`0.8333em`,"vertical-align":`-0.15em`}}),i(`span`,{class:`mord`},[i(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.1389em`}},`W`),i(`span`,{class:`msupsub`},[i(`span`,{class:`vlist-t vlist-t2`},[i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.3283em`}},[i(`span`,{style:{top:`-2.55em`,"margin-left":`-0.1389em`,"margin-right":`0.05em`}},[i(`span`,{class:`pstrut`,style:{height:`2.7em`}}),i(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[i(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0278em`}},`O`)])])]),i(`span`,{class:`vlist-s`},`​`)]),i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.15em`}},[i(`span`)])])])])])])])])]),i(`td`,null,[i(`code`,null,`(32, 128, 512)`)]),i(`td`,null,`residual stream`)]),i(`tr`,null,[i(`td`,null,[i(`code`,null,`head(x)`)]),i(`td`,null,[i(`code`,null,`(32, 128, 50257)`)]),i(`td`,null,`logit per vocabulary entry`)])])])]),i(`div`,null,[i(`svg`,{class:`dl-diagram`,viewBox:`0 0 200 224`,role:`img`,"aria-label":`The scores tensor drawn to scale by area. At 128 tokens it is a tiny square of 4.2 million numbers in the corner. At 2048 tokens it is the large square, 1.07 billion numbers, 256 times the area.`},[i(`rect`,{x:`20`,y:`20`,width:`160`,height:`160`,class:`dl-dg-fill is-muted is-dashed`}),i(`rect`,{x:`20`,y:`20`,width:`10`,height:`10`,class:`dl-dg-fill`}),i(`text`,{x:`20`,y:`13`,class:`dl-dg-small is-good`},`T = 128: 4.2 M (corner)`),i(`text`,{x:`100`,y:`198`,class:`dl-dg-small`,"text-anchor":`middle`},`T = 2048: 1.07 billion`)])])],-1),e((u(),o(`div`,m,[...h[0]||=[i(`p`,null,[c(`Only the scores grow with `),i(`span`,{class:`katex`},[i(`span`,{class:`katex-mathml`},[i(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[i(`semantics`,null,[i(`mrow`,null,[i(`mi`,null,`T`)]),i(`annotation`,{encoding:`application/x-tex`},`T`)])])]),i(`span`,{class:`katex-html`,"aria-hidden":`true`},[i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),i(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.1389em`}},`T`)])])]),c(),i(`strong`,null,`twice`),c(`. That row is the long-context problem.`)],-1)]])),[[g]])]),_:1},16)}}};export{h as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-Cp4p0FvF.css b/lecture-06/class/assets/md-Cp4p0FvF.css new file mode 100644 index 0000000000000000000000000000000000000000..f08f40c095b05b1f2b193f8e17c6f62e9a1c06bf --- /dev/null +++ b/lecture-06/class/assets/md-Cp4p0FvF.css @@ -0,0 +1 @@ +.dl-fam[data-v-be69a577]{flex-direction:column;gap:.6rem;width:100%;display:flex}.dl-fam__tabs[data-v-be69a577]{grid-template-columns:repeat(3,1fr);gap:.5rem;display:grid}.dl-fam__tab[data-v-be69a577]{border:1px solid var(--dl-border);border-bottom:3px solid var(--dl-border);background:var(--dl-bg);font:inherit;text-align:left;cursor:pointer;border-radius:5px;flex-direction:column;gap:.1rem;padding:.35rem .6rem;transition:border-color .15s,background .15s;display:flex}.dl-fam__tab[data-v-be69a577]:hover{border-color:var(--dl-accent)}.dl-fam__tab.is-current[data-v-be69a577]{background:var(--dl-surface);border-bottom-color:var(--dl-accent)}.dl-fam__tab[data-v-be69a577]:focus-visible{outline:2px solid var(--dl-accent);outline-offset:2px}.dl-fam__tabname[data-v-be69a577]{color:var(--dl-muted);font-size:.95rem;font-weight:700}.dl-fam__tab.is-current .dl-fam__tabname[data-v-be69a577]{color:var(--dl-accent)}.dl-fam__tabshape[data-v-be69a577]{color:var(--dl-muted);font-size:.68rem;line-height:1.25}.dl-fam__panel[data-v-be69a577]{align-items:flex-start;gap:1rem;display:flex}.dl-fam__masks[data-v-be69a577]{flex-shrink:0;gap:.6rem;display:flex}.dl-fam__mask[data-v-be69a577]{text-align:center}.dl-fam__maskcap[data-v-be69a577]{letter-spacing:.08em;text-transform:uppercase;color:var(--dl-muted);margin-bottom:.18rem;font-size:.62rem}.dl-fam__grid[data-v-be69a577]{grid-template-columns:repeat(5,.62rem);gap:2px;display:grid}.dl-fam__cell[data-v-be69a577]{border:1px solid var(--dl-border);border-radius:1px;width:.62rem;height:.62rem}.dl-fam__cell.is-on[data-v-be69a577]{background:var(--dl-accent);border-color:var(--dl-accent)}.dl-fam__cell.is-cross[data-v-be69a577]{background:var(--dl-accent-strong);border-color:var(--dl-accent-strong)}.dl-fam__maskrole[data-v-be69a577]{color:var(--dl-muted);max-width:5rem;margin-top:.2rem;font-size:.6rem;line-height:1.25}.dl-fam__facts[data-v-be69a577]{flex-direction:column;flex:auto;gap:.35rem;min-width:0;margin:0;display:flex}.dl-fam__facts div[data-v-be69a577]{grid-template-columns:4.6rem 1fr;align-items:baseline;gap:.6rem;display:grid}.dl-fam__facts dt[data-v-be69a577]{letter-spacing:.08em;text-transform:uppercase;color:var(--dl-muted);text-align:right;font-size:.66rem}.dl-fam__facts dd[data-v-be69a577]{color:var(--dl-body);margin:0;font-size:.8rem;line-height:1.4}.dl-fam__examples[data-v-be69a577]{border-top:1px solid var(--dl-border);flex-wrap:wrap;gap:.4rem;padding-top:.45rem;display:flex}.dl-fam__ex[data-v-be69a577]{border:1px solid var(--dl-border);color:var(--dl-heading);background:var(--dl-surface);border-radius:999px;align-items:baseline;gap:.3rem;padding:.12rem .5rem;font-size:.75rem;display:inline-flex}.dl-fam__year[data-v-be69a577]{color:var(--dl-muted);font-variant-numeric:tabular-nums;font-size:.66rem} diff --git a/lecture-06/class/assets/md-Cvt7i2LC.js b/lecture-06/class/assets/md-Cvt7i2LC.js new file mode 100644 index 0000000000000000000000000000000000000000..6c7614a61066f421368b875429b0e10f76e40fb5 --- /dev/null +++ b/lecture-06/class/assets/md-Cvt7i2LC.js @@ -0,0 +1,2 @@ +import{$ as e,E as t,Q as n,S as r,V as i,W as a,Y as o,_ as s,_t as c,b as l,bt as u,g as d,lt as f,m as p,v as m,vt as h,w as g,x as _,xt as v,y,yt as b,z as x}from"./modules/shiki-BFOesOFp.js";import{t as S}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as C,t as w}from"./slidev/context-DrkI8qiD.js";import{t as ee}from"./slidev/VClicks-BJ1JuBhK.js";import{t as T}from"./WidgetFrame-D2L0MlKA.js";import{t as E}from"./StepButton-BcP33F-1.js";import{t as D}from"./useConvolution-qO1u8ksh.js";import{i as O,u as k}from"./useAttention-Blk0c2BZ.js";import{t as A}from"./interactive-BCz0jAef.js";var j={class:`dl-att`},te={class:`dl-att__query`},ne=[`onClick`],re={key:0,class:`dl-att__qvec`},M={class:`dl-att__grid`},N={class:`dl-att__given`},P={class:`dl-att__given`},F={key:0,class:`dl-att__step`},I={key:1,class:`dl-att__step`},L={key:2,class:`dl-att__step is-weights`},R={class:`dl-att__weight`},z={class:`dl-att__bar`},B={key:3,class:`dl-att__step`},V={class:`dl-att__outlabel`},H={class:`dl-att__outvec`},U={key:0,class:`dl-att__note`},W=5,G=S(g({__name:`AttentionTrace`,props:{sentence:{default:`river`},query:{default:2},switchable:{type:Boolean,default:!0},causal:{type:Boolean,default:!1}},setup(e){let{$slidev:t,$nav:a,$clicksContext:g,$clicks:b,$page:S,$renderContext:w,$frontmatter:ee}=C(),A=e,G=f(A.sentence),K=f(A.query),q=f(0),J=d(()=>k(O[G.value],A.causal)),Y=d(()=>J.value.words),X=d(()=>J.value.rows[Math.min(K.value,Y.value.length-1)]),Z=d(()=>{let e=X.value.weights,t=e.indexOf(Math.max(...e));return{index:t,word:Y.value[t],weight:e[t]}}),Q=d(()=>q.value>=W);function ie(){q.value=Q.value?0:q.value+1}function ae(e){K.value=e,q.value=0}function oe(){G.value=G.value===`river`?`money`:`river`}o(G,()=>{q.value=0});function $(e){return e.toFixed(2)}let se=[`press Next step — the keys and values are already here, the query is what is new`,`the query: one vector, and the only thing about this step that is new`,`score it against every key — one dot product per position, including its own`,`divide by √d_k, so the softmax does not saturate once d_k gets large`,`softmax: the scores become weights that are positive and sum to exactly 1`,`multiply each value by its weight and add them up — that is the new vector`],ce=d(()=>se[q.value]);return(e,t)=>{let a=E,o=T;return x(),m(o,{"max-width":`44rem`},{controls:n(()=>[r(a,{label:Q.value?`Start over`:`Next step`,glyph:`▸`,onClick:ie},null,8,[`label`]),A.switchable?(x(),m(a,{key:0,label:G.value===`river`?`Swap river → money`:`Swap money → river`,variant:`ghost`,glyph:`⇄`,onClick:oe},null,8,[`label`])):y(`v-if`,!0)]),readout:n(()=>[q.valuec(D)(e)).join(`, `))+`]. `,1),X.value.word===`bank`?(x(),l(`span`,U,[t[11]||=_(` Press `,-1),t[12]||=s(`em`,null,`Swap`,-1),t[13]||=_(`. The four matrices do not change and neither does the word — only its neighbour does — and `,-1),t[14]||=s(`em`,null,`bank`,-1),_(`’s output flips to [`+v([...X.value.out].reverse().map(e=>c(D)(e)).join(`, `))+`]. That is what “contextual” means, and it is the entire reason this mechanism exists. `,1)])):y(`v-if`,!0)],64))]),default:n(()=>[s(`div`,j,[y(` Who is asking. `),s(`div`,te,[t[0]||=s(`span`,{class:`dl-att__qlabel`},`query`,-1),(x(!0),l(p,null,i(Y.value,(e,t)=>(x(),l(`button`,{key:e+t,type:`button`,class:h([`dl-att__word`,{"is-current":t===K.value}]),onClick:e=>ae(t)},v(e),11,ne))),128)),q.value>=1?(x(),l(`span`,re,` q = [`+v(X.value.q.map(e=>c(D)(e)).join(`, `))+`] `,1)):y(`v-if`,!0)]),s(`table`,M,[s(`thead`,null,[s(`tr`,null,[t[1]||=s(`th`,{class:`dl-att__rowlabel`},null,-1),(x(!0),l(p,null,i(Y.value,(e,t)=>(x(),l(`th`,{key:e+t,class:h([`dl-att__col`,{"is-focus":q.value>=4&&t===Z.value.index}])},v(e),3))),128))])]),s(`tbody`,null,[y(` Present from the start: these are not recomputed per query. `),s(`tr`,N,[t[2]||=s(`th`,{class:`dl-att__rowlabel`},`key`,-1),(x(!0),l(p,null,i(J.value.k,(e,t)=>(x(),l(`td`,{key:`k${t}`},`[`+v(e.map(e=>c(D)(e)).join(`, `))+`]`,1))),128))]),s(`tr`,P,[t[3]||=s(`th`,{class:`dl-att__rowlabel`},`value`,-1),(x(!0),l(p,null,i(J.value.v,(e,t)=>(x(),l(`td`,{key:`v${t}`},`[`+v(e.map(e=>c(D)(e)).join(`, `))+`]`,1))),128))]),q.value>=2?(x(),l(`tr`,F,[t[4]||=s(`th`,{class:`dl-att__rowlabel`},[s(`span`,{class:`dl-att__n`},`1`),_(` q · k`)],-1),(x(!0),l(p,null,i(X.value.raw,(e,t)=>(x(),l(`td`,{key:`s${t}`},v(c(D)(e)),1))),128))])):y(`v-if`,!0),q.value>=3?(x(),l(`tr`,I,[t[5]||=s(`th`,{class:`dl-att__rowlabel`},[s(`span`,{class:`dl-att__n`},`2`),_(` ÷ √d`),s(`sub`,null,`k`)],-1),(x(!0),l(p,null,i(X.value.scaled,(e,t)=>(x(),l(`td`,{key:`c${t}`},v(e===null?`−∞`:c(D)(e)),1))),128))])):y(`v-if`,!0),q.value>=4?(x(),l(`tr`,L,[t[6]||=s(`th`,{class:`dl-att__rowlabel`},[s(`span`,{class:`dl-att__n`},`3`),_(` softmax`)],-1),(x(!0),l(p,null,i(X.value.weights,(e,t)=>(x(),l(`td`,{key:`w${t}`},[s(`div`,R,v($(e)),1),s(`div`,z,[s(`span`,{style:u({width:`${e*100}%`})},null,4)])]))),128))])):y(`v-if`,!0),q.value>=5?(x(),l(`tr`,B,[t[7]||=s(`th`,{class:`dl-att__rowlabel`},[s(`span`,{class:`dl-att__n`},`4`),_(` w · v`)],-1),(x(!0),l(p,null,i(X.value.terms,(e,t)=>(x(),l(`td`,{key:`t${t}`},`[`+v(e.map(e=>c(D)(e)).join(`, `))+`]`,1))),128))])):y(`v-if`,!0)])]),y(` Height reserved whether or not line 5 is showing, so the widget does + not walk down the slide as the room clicks through it. `),s(`div`,{class:h([`dl-att__out`,{"is-empty":q.value=W?(x(),l(p,{key:0},[t[8]||=s(`span`,{class:`dl-att__n`},`5`,-1),t[9]||=s(`span`,{class:`dl-att__sum`},`sum`,-1),t[10]||=s(`span`,{class:`dl-att__arrow`},`→`,-1),s(`span`,V,v(X.value.word)+`′ =`,1),s(`span`,H,[(x(!0),l(p,null,i(X.value.out,(e,t)=>(x(),l(`span`,{key:t,class:`dl-att__outcell`},v(c(D)(e)),1))),128))])],64)):y(`v-if`,!0)],2)])]),_:1})}}}),[[`__scopeId`,`data-v-284316ce`]]),K={class:`mt-2 dl-callout`},q={__name:`class.md__slidev_14`,setup(i){let{$slidev:o,$nav:u,$clicksContext:d,$clicks:f,$page:p,$renderContext:h,$frontmatter:g}=C();return d.setup(),(i,o)=>{let u=G,d=ee,f=a(`click`);return x(),m(A,b(t(c(w)(c(g),13))),{aside:n(t=>[o[2]||=s(`p`,null,[_(`Walk to line 5, then press `),s(`strong`,null,`Swap river → money`),_(`.`)],-1),r(d,null,{default:n(()=>[...o[0]||=[s(`ul`,null,[s(`li`,null,[_(`The model did not change — same `),s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`msub`,null,[s(`mi`,null,`W`),s(`mi`,null,`Q`)])]),s(`annotation`,{encoding:`application/x-tex`},`W_Q`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.9694em`,"vertical-align":`-0.2861em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.1389em`}},`W`),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t vlist-t2`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.3283em`}},[s(`span`,{style:{top:`-2.55em`,"margin-left":`-0.1389em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mathnormal mtight`},`Q`)])])]),s(`span`,{class:`vlist-s`},`​`)]),s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.2861em`}},[s(`span`)])])])])])])])]),_(`, `),s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`msub`,null,[s(`mi`,null,`W`),s(`mi`,null,`K`)])]),s(`annotation`,{encoding:`application/x-tex`},`W_K`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.8333em`,"vertical-align":`-0.15em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.1389em`}},`W`),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t vlist-t2`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.3283em`}},[s(`span`,{style:{top:`-2.55em`,"margin-left":`-0.1389em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0715em`}},`K`)])])]),s(`span`,{class:`vlist-s`},`​`)]),s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.15em`}},[s(`span`)])])])])])])])]),_(`, `),s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`msub`,null,[s(`mi`,null,`W`),s(`mi`,null,`V`)])]),s(`annotation`,{encoding:`application/x-tex`},`W_V`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.8333em`,"vertical-align":`-0.15em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.1389em`}},`W`),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t vlist-t2`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.3283em`}},[s(`span`,{style:{top:`-2.55em`,"margin-left":`-0.1389em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.2222em`}},`V`)])])]),s(`span`,{class:`vlist-s`},`​`)]),s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.15em`}},[s(`span`)])])])])])])])])]),s(`li`,null,[s(`em`,null,`bank`),_(` is the same word, with the same embedding`)]),s(`li`,null,[_(`Its output goes `),s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mo`,{stretchy:`false`},`[`),s(`mn`,null,`1.68`),s(`mo`,{separator:`true`},`,`),s(`mtext`,null,` `),s(`mn`,null,`0.33`),s(`mo`,{stretchy:`false`},`]`),s(`mo`,null,`→`),s(`mo`,{stretchy:`false`},`[`),s(`mn`,null,`0.33`),s(`mo`,{separator:`true`},`,`),s(`mtext`,null,` `),s(`mn`,null,`1.68`),s(`mo`,{stretchy:`false`},`]`)]),s(`annotation`,{encoding:`application/x-tex`},`[1.68,\\, 0.33] \\to [0.33,\\, 1.68]`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),s(`span`,{class:`mopen`},`[`),s(`span`,{class:`mord`},`1.68`),s(`span`,{class:`mpunct`},`,`),s(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),s(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),s(`span`,{class:`mord`},`0.33`),s(`span`,{class:`mclose`},`]`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),s(`span`,{class:`mrel`},`→`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),s(`span`,{class:`mopen`},`[`),s(`span`,{class:`mord`},`0.33`),s(`span`,{class:`mpunct`},`,`),s(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),s(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),s(`span`,{class:`mord`},`1.68`),s(`span`,{class:`mclose`},`]`)])])])])],-1)]]),_:1}),e((x(),l(`div`,K,[...o[1]||=[s(`p`,null,`Sense is not in the word. It is assembled, per sentence, by the layer.`,-1)]])),[[f]])]),default:n(()=>[r(u,{query:2})]),_:1},16)}}};export{q as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-D0kJP7fQ2.js b/lecture-06/class/assets/md-D0kJP7fQ2.js new file mode 100644 index 0000000000000000000000000000000000000000..6edba678f7f5d35ebf6b7bf1dbec885c3c1cd164 --- /dev/null +++ b/lecture-06/class/assets/md-D0kJP7fQ2.js @@ -0,0 +1 @@ +import{$ as e,E as t,Q as n,S as r,W as i,_ as a,_t as o,b as s,v as c,x as l,yt as u,z as d}from"./modules/shiki-BFOesOFp.js";import{n as f,t as p}from"./slidev/context-DrkI8qiD.js";import{t as m}from"./TransformerGlyph-1pDKmZ2i.js";import{t as h}from"./default-Dm4DVug5.js";var g={class:`grid grid-cols-2 gap-x-8 gap-y-2 mt-2 dl-tight`},_={class:`flex items-center gap-3`},v={class:`flex items-center gap-3`},y={class:`flex items-center gap-3`},b={class:`flex items-center gap-3`},x={class:`flex items-center gap-3`},S={class:`flex items-center gap-3`},C={class:`flex items-center gap-3`},w={class:`mt-3 dl-callout`},T={__name:`class.md__slidev_39`,setup(T){let{$slidev:E,$nav:D,$clicksContext:O,$clicks:k,$page:A,$renderContext:j,$frontmatter:M}=f();return O.setup(),(f,T)=>{let E=m,D=i(`click`);return d(),c(h,u(t(o(p)(o(M),38))),{default:n(()=>[T[8]||=a(`h1`,null,`Where we got to`,-1),a(`div`,g,[e((d(),s(`div`,_,[r(E,{kind:`cut`,size:52}),T[0]||=a(`div`,null,[a(`strong`,null,`Recurrence deleted:`),l(` all positions processed at once.`)],-1)])),[[D]]),e((d(),s(`div`,v,[r(E,{kind:`qkv`,size:52}),T[1]||=a(`div`,null,[l(`A `),a(`strong`,null,`query`),l(` meets each `),a(`strong`,null,`key`),l(`; `),a(`strong`,null,`values`),l(` are mixed.`)],-1)])),[[D]]),e((d(),s(`div`,y,[r(E,{kind:`heads`,size:52}),T[2]||=a(`div`,null,[l(`Several `),a(`strong`,null,`heads`),l(` ask different questions; `),a(`strong`,null,`position`),l(` is added in.`)],-1)])),[[D]]),e((d(),s(`div`,b,[r(E,{kind:`block`,size:52}),T[3]||=a(`div`,null,[a(`strong`,null,`Block:`),l(` attention, then a per-position network, plus residuals and norms.`)],-1)])),[[D]]),e((d(),s(`div`,x,[r(E,{kind:`encdec`,size:52}),T[4]||=a(`div`,null,[a(`strong`,null,`Original:`),l(` two stacks; a mask hides future words.`)],-1)])),[[D]]),e((d(),s(`div`,S,[r(E,{kind:`decoder`,size:52}),T[5]||=a(`div`,null,[a(`strong`,null,`Modern:`),l(` decoder-only, new details, same mechanism.`)],-1)])),[[D]]),e((d(),s(`div`,C,[r(E,{kind:`code`,size:52}),T[6]||=a(`div`,null,[a(`strong`,null,`PyTorch:`),l(` one function call on (B, T, d) tensors.`)],-1)])),[[D]])]),e((d(),s(`div`,w,[...T[7]||=[a(`p`,null,`Mix across positions, then think about each position alone.`,-1)]])),[[D]])]),_:1},16)}}};export{T as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-DDIIGHBg.js b/lecture-06/class/assets/md-DDIIGHBg.js new file mode 100644 index 0000000000000000000000000000000000000000..d6b40b77908a7af7e3624038ae6deb7d114eb7a5 --- /dev/null +++ b/lecture-06/class/assets/md-DDIIGHBg.js @@ -0,0 +1 @@ +import{E as e,Q as t,S as n,V as r,_ as i,_t as a,b as o,bt as s,g as c,lt as l,m as u,v as d,vt as f,w as p,xt as m,y as h,yt as g,z as _}from"./modules/shiki-BFOesOFp.js";import{t as v}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as y,t as b}from"./slidev/context-DrkI8qiD.js";import{t as x}from"./interactive-BCz0jAef.js";var S={class:`dl-syllabus`},C=[`title`,`onClick`],w={class:`dl-syllabus__num`},T={class:`dl-syllabus__detail`},E={class:`dl-syllabus__heading`},D={class:`dl-syllabus__weeklabel`},O=v(p({__name:`SyllabusTimeline`,props:{entries:{default:()=>[{section:`Introduction to DL`,description:`Course content, evaluation and exams. What is deep learning, where it is applied, the frameworks, and getting a environment running in Colab or Jupyter.`,weeks:[1]},{section:`Basics of Neural Networks`,description:`Artificial neurons and neural networks; implementing and training a multilayer network from scratch.`,weeks:[2]},{section:`PyTorch for DL`,description:`What PyTorch is and why. Tensors for data representation, the PyTorch training pipeline, and an ANN built with it.`,weeks:[3]},{section:`Deep Convolutional Neural Networks`,description:`What a CNN is and where it applies. Telling classification, detection and segmentation apart. Implementing CNN models in PyTorch.`,weeks:[4,5]},{section:`Recurrent Networks, Transformers and LLMs`,description:`What an RNN is and where it applies; the mechanism, and an implementation in PyTorch. What a transformer is, and the original architecture. Then large language models: how one is trained, how one is adapted, and how to build on top of one.`,weeks:[6,7,8]},{section:`Generative Adversarial Networks`,description:`Generative models and autoencoders. Implementing a GAN in Colab, improving synthetic data quality, and the main GAN variants and applications.`,weeks:[9,10]},{section:`Deep Reinforcement Learning`,description:`What reinforcement learning is and why. RL algorithm basics, implementations, and deep Q-learning in PyTorch.`,weeks:[11,12]}]},totalWeeks:{default:12},currentWeek:{default:null}},setup(e){let{$slidev:t,$nav:n,$clicksContext:a,$clicks:d,$page:p,$renderContext:g,$frontmatter:v}=y(),b=e,x=l(Math.max(0,b.entries.findIndex(e=>e.weeks.includes(b.currentWeek??0)))),O=c(()=>b.entries[x.value]);function k(e){return e.weeks.length===1?`Week ${e.weeks[0]}`:`Weeks ${e.weeks[0]}–${e.weeks[e.weeks.length-1]}`}return(e,t)=>(_(),o(`div`,S,[i(`div`,{class:`dl-syllabus__track`,style:s({gridTemplateColumns:`repeat(${b.totalWeeks}, 1fr)`})},[(_(!0),o(u,null,r(b.entries,(e,t)=>(_(),o(`button`,{key:e.section,type:`button`,class:f([`dl-syllabus__block`,{"is-selected":t===x.value}]),style:s({gridColumn:`${e.weeks[0]} / span ${e.weeks.length}`}),title:e.section,onClick:e=>x.value=t},[i(`span`,w,m(t+1),1)],14,C))),128)),b.currentWeek?(_(),o(`div`,{key:0,class:`dl-syllabus__now`,style:s({gridColumn:`${b.currentWeek} / span 1`})},null,4)):h(`v-if`,!0)],4),i(`div`,{class:`dl-syllabus__weeks`,style:s({gridTemplateColumns:`repeat(${b.totalWeeks}, 1fr)`})},[(_(!0),o(u,null,r(b.totalWeeks,e=>(_(),o(`span`,{key:e},m(e),1))),128))],4),i(`div`,T,[i(`div`,E,[i(`span`,D,m(k(O.value)),1),i(`h3`,null,m(O.value.section),1)]),i(`p`,null,m(O.value.description),1)])]))}}),[[`__scopeId`,`data-v-45e850fb`]]),k={__name:`class.md__slidev_2`,setup(r){let{$slidev:o,$nav:s,$clicksContext:c,$clicks:l,$page:u,$renderContext:f,$frontmatter:p}=y();return c.setup(),(r,o)=>{let s=O;return _(),d(x,g(e(a(b)(a(p),1))),{aside:t(e=>[...o[0]||=[i(`p`,null,`Same block as last week, second of three.`,-1),i(`p`,null,`Week 6 built the recurrent network and ended on the two things it cannot do. Today is the architecture that does both. Next week is what happens when you make it very large.`,-1)]]),default:t(()=>[n(s,{"current-week":7})]),_:1},16)}}};export{k as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-DE2QGCpb.css b/lecture-06/class/assets/md-DE2QGCpb.css new file mode 100644 index 0000000000000000000000000000000000000000..5cc79e1fa351b99f8fdea52a83ab73fdc12822e1 --- /dev/null +++ b/lecture-06/class/assets/md-DE2QGCpb.css @@ -0,0 +1 @@ +.dl-end[data-v-f8d31aa3]{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:1.2rem;display:flex}.dl-end__body[data-v-f8d31aa3] h1{font-size:var(--dl-fs-section);margin:0}.dl-end__meta[data-v-f8d31aa3]{font-size:var(--dl-fs-secondary);color:var(--dl-muted);gap:1.4rem;display:flex} diff --git a/lecture-06/class/assets/md-DYDKkl4y.js b/lecture-06/class/assets/md-DYDKkl4y.js new file mode 100644 index 0000000000000000000000000000000000000000..2ab58abd90babdcdb85ef52df2bc9abb87de75df --- /dev/null +++ b/lecture-06/class/assets/md-DYDKkl4y.js @@ -0,0 +1,9 @@ +import{E as e,M as t,Q as n,S as r,_ as i,_t as a,v as o,x as s,yt as c,z as l}from"./modules/shiki-BFOesOFp.js";import{n as u,t as d}from"./slidev/context-DrkI8qiD.js";import{t as f}from"./default-Dm4DVug5.js";import{t as p}from"./slidev/VClicks-BJ1JuBhK.js";import{t as m}from"./slidev/CodeBlockWrapper-iqMg4CiG.js";var h={class:`grid grid-cols-[1fr_1fr] gap-6 mt-2 items-center`},g={class:`dl-tight`},_={__name:`class.md__slidev_36`,setup(_){let{$slidev:v,$nav:y,$clicksContext:b,$clicks:x,$page:S,$renderContext:C,$frontmatter:w}=u();return b.setup(),(u,_)=>{let v=m,y=p;return l(),o(f,c(e(a(d)(a(w),35))),{default:n(()=>[_[3]||=i(`h1`,null,`The mechanism is one function call`,-1),r(v,t({lines:!0},{title:``,ranges:[`all`,`1-4`,`6`,`8-9`,`all`]}),{default:n(()=>[..._[0]||=[i(`pre`,{class:`shiki shiki-themes vitesse-dark vitesse-light slidev-code`,style:{"--shiki-dark":`#dbd7caee`,"--shiki-light":`#393a34`,"--shiki-dark-bg":`#121212`,"--shiki-light-bg":`#ffffff`}},[i(`code`,{class:`language-python`},[i(`span`,{class:`line`},[i(`span`,{style:{"--shiki-dark":`#4D9375`,"--shiki-light":`#1E754F`}},`import`),i(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` torch`)]),s(` +`),i(`span`,{class:`line`},[i(`span`,{style:{"--shiki-dark":`#4D9375`,"--shiki-light":`#1E754F`}},`import`),i(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` torch`),i(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),i(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`nn`),i(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),i(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`functional `),i(`span`,{style:{"--shiki-dark":`#4D9375`,"--shiki-light":`#1E754F`}},`as`),i(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` F`)]),s(` +`),i(`span`,{class:`line`}),s(` +`),i(`span`,{class:`line`},[i(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`q`),i(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`,`),i(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` k`),i(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`,`),i(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` v `),i(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`=`),i(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},` (`),i(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`torch`),i(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),i(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`randn`),i(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),i(`span`,{style:{"--shiki-dark":`#4C9A91`,"--shiki-light":`#2F798A`}},`32`),i(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`,`),i(`span`,{style:{"--shiki-dark":`#4C9A91`,"--shiki-light":`#2F798A`}},` 8`),i(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`,`),i(`span`,{style:{"--shiki-dark":`#4C9A91`,"--shiki-light":`#2F798A`}},` 128`),i(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`,`),i(`span`,{style:{"--shiki-dark":`#4C9A91`,"--shiki-light":`#2F798A`}},` 64`),i(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`)`),i(`span`,{style:{"--shiki-dark":`#4D9375`,"--shiki-light":`#1E754F`}},` for`),i(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` _ `),i(`span`,{style:{"--shiki-dark":`#4D9375`,"--shiki-light":`#1E754F`}},`in`),i(`span`,{style:{"--shiki-dark":`#B8A965`,"--shiki-light":`#998418`}},` range`),i(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),i(`span`,{style:{"--shiki-dark":`#4C9A91`,"--shiki-light":`#2F798A`}},`3`),i(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`))`),i(`span`,{style:{"--shiki-dark":`#758575DD`,"--shiki-light":`#A0ADA0`}},` # (B, heads, T, d_k)`)]),s(` +`),i(`span`,{class:`line`}),s(` +`),i(`span`,{class:`line`},[i(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`out `),i(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`=`),i(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` F`),i(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),i(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`scaled_dot_product_attention`),i(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),i(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`q`),i(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`,`),i(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` k`),i(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`,`),i(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` v`),i(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`,`),i(`span`,{style:{"--shiki-dark":`#BD976A`,"--shiki-light":`#B07D48`}},` is_causal`),i(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`=`),i(`span`,{style:{"--shiki-dark":`#4D9375`,"--shiki-light":`#1E754F`}},`True`),i(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`)`)]),s(` +`),i(`span`,{class:`line`}),s(` +`),i(`span`,{class:`line`},[i(`span`,{style:{"--shiki-dark":`#B8A965`,"--shiki-light":`#998418`}},`print`),i(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),i(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`out`),i(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),i(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`shape`),i(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`)`),i(`span`,{style:{"--shiki-dark":`#758575DD`,"--shiki-light":`#A0ADA0`}},` # torch.Size([32, 8, 128, 64])`)]),s(` +`),i(`span`,{class:`line`},[i(`span`,{style:{"--shiki-dark":`#758575DD`,"--shiki-light":`#A0ADA0`}},`# scores (32, 8, 128, 128) are never built — that is what FlashAttention buys`)])])],-1)]]),_:1},16),i(`div`,h,[_[2]||=i(`div`,null,[i(`svg`,{class:`dl-diagram`,viewBox:`0 0 440 130`,role:`img`,"aria-label":`q, k and v, each of shape 32 by 8 by 128 by 64, go into one attention call that scales, masks, applies softmax and multiplies by v. The output has the same shape. The scores tensor, 32 by 8 by 128 by 128, is drawn dashed in red: it is never stored.`},[i(`defs`,null,[i(`marker`,{id:`l6s5-a1`,markerWidth:`8`,markerHeight:`8`,refX:`7`,refY:`4`,orient:`auto`},[i(`path`,{d:`M0 0 L8 4 L0 8 z`,class:`dl-dg-head`})])]),i(`rect`,{x:`4`,y:`8`,width:`70`,height:`24`,rx:`3`,class:`dl-dg-box`}),i(`text`,{x:`39`,y:`25`,class:`dl-dg-lab is-sm`,"text-anchor":`middle`},`q`),i(`rect`,{x:`4`,y:`38`,width:`70`,height:`24`,rx:`3`,class:`dl-dg-box`}),i(`text`,{x:`39`,y:`55`,class:`dl-dg-lab is-sm`,"text-anchor":`middle`},`k`),i(`rect`,{x:`4`,y:`68`,width:`70`,height:`24`,rx:`3`,class:`dl-dg-box`}),i(`text`,{x:`39`,y:`85`,class:`dl-dg-lab is-sm`,"text-anchor":`middle`},`v`),i(`text`,{x:`44`,y:`112`,class:`dl-dg-small`,"text-anchor":`middle`},`(32, 8, 128, 64)`),i(`path`,{d:`M78 50 H122`,class:`dl-dg-arrow`,"marker-end":`url(#l6s5-a1)`}),i(`rect`,{x:`126`,y:`26`,width:`176`,height:`48`,rx:`6`,class:`dl-dg-op`}),i(`text`,{x:`214`,y:`46`,class:`dl-dg-lab is-sm`,"text-anchor":`middle`},`attention`),i(`text`,{x:`214`,y:`64`,class:`dl-dg-small`,"text-anchor":`middle`},`scale, mask, softmax, @ v`),i(`rect`,{x:`144`,y:`88`,width:`140`,height:`38`,rx:`4`,class:`dl-dg-box is-bad`}),i(`text`,{x:`214`,y:`103`,class:`dl-dg-small is-bad`,"text-anchor":`middle`},`scores (32, 8, 128, 128)`),i(`text`,{x:`214`,y:`119`,class:`dl-dg-small is-bad`,"text-anchor":`middle`},`never stored`),i(`path`,{d:`M306 50 H340`,class:`dl-dg-arrow`,"marker-end":`url(#l6s5-a1)`}),i(`rect`,{x:`344`,y:`38`,width:`70`,height:`24`,rx:`3`,class:`dl-dg-box is-accent`}),i(`text`,{x:`379`,y:`55`,class:`dl-dg-lab is-sm`,"text-anchor":`middle`},`out`),i(`text`,{x:`384`,y:`80`,class:`dl-dg-small`,"text-anchor":`middle`},`(32, 8, 128, 64)`)])],-1),i(`div`,g,[r(y,null,{default:n(()=>[..._[1]||=[i(`ul`,null,[i(`li`,null,[s(`Scaling, the mask and the softmax all happen inside; `),i(`code`,null,`is_causal=True`),s(` is the triangle`)]),i(`li`,null,[s(`A fused kernel never stores the `),i(`span`,{class:`katex`},[i(`span`,{class:`katex-mathml`},[i(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[i(`semantics`,null,[i(`mrow`,null,[i(`mi`,null,`T`),i(`mo`,null,`×`),i(`mi`,null,`T`)]),i(`annotation`,{encoding:`application/x-tex`},`T \\times T`)])])]),i(`span`,{class:`katex-html`,"aria-hidden":`true`},[i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`0.7667em`,"vertical-align":`-0.0833em`}}),i(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.1389em`}},`T`),i(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),i(`span`,{class:`mbin`},`×`),i(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),i(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.1389em`}},`T`)])])]),s(` scores`)]),i(`li`,null,[s(`Heads are a `),i(`strong`,null,`batch dimension`),s(`: `),i(`code`,null,`(B, heads, T, d_k)`)])],-1)]]),_:1})])])]),_:1},16)}}};export{_ as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-D_l5cPMO.js b/lecture-06/class/assets/md-D_l5cPMO.js new file mode 100644 index 0000000000000000000000000000000000000000..23a459c96d143c83e89aae3ff604cf7e18f7be8d --- /dev/null +++ b/lecture-06/class/assets/md-D_l5cPMO.js @@ -0,0 +1 @@ +import{$ as e,E as t,Q as n,W as r,_ as i,_t as a,b as o,v as s,x as c,yt as l,z as u}from"./modules/shiki-BFOesOFp.js";import{n as d,t as f}from"./slidev/context-DrkI8qiD.js";import{t as p}from"./default-Dm4DVug5.js";var m={class:`mt-1 flex justify-center`},h={viewBox:`0 0 620 132`,class:`dl-diagram`,style:{"max-height":`11rem`},role:`img`,"aria-label":`Four boxes in a row — score, scale, softmax, mix — with the bank row after each: 0 2 0, then 0 1.41 0, then 0.16 0.67 0.16, then a new vector for bank`},g={class:`mt-3 dl-callout`},_={__name:`class.md__slidev_13`,setup(_){let{$slidev:v,$nav:y,$clicksContext:b,$clicks:x,$page:S,$renderContext:C,$frontmatter:w}=d();return b.setup(),(d,_)=>{let v=r(`click`);return u(),s(p,l(t(a(f)(a(w),12))),{default:n(()=>[_[7]||=i(`h1`,null,`Four steps, and that is the whole mechanism`,-1),i(`div`,m,[(u(),o(`svg`,h,[_[4]||=i(`defs`,null,[i(`marker`,{id:`l6s1-steps`,markerWidth:`7`,markerHeight:`7`,refX:`6`,refY:`3.5`,orient:`auto`},[i(`path`,{class:`dl-dg-head`,d:`M0 0 L7 3.5 L0 7 z`})])],-1),_[5]||=i(`text`,{class:`dl-dg-small`,x:`10`,y:`12`},`the bank row of "the river bank"`,-1),e((u(),o(`g`,null,[..._[0]||=[i(`rect`,{class:`dl-dg-box`,x:`10`,y:`22`,width:`130`,height:`40`,rx:`4`},null,-1),i(`text`,{class:`dl-dg-lab is-sm`,x:`75`,y:`47`,"text-anchor":`middle`},`1 · score`,-1),i(`text`,{class:`dl-dg-in`,x:`75`,y:`90`,"text-anchor":`middle`},`0, 2, 0`,-1),i(`text`,{class:`dl-dg-small`,x:`75`,y:`110`,"text-anchor":`middle`},`q · k, every key`,-1)]])),[[v]]),e((u(),o(`g`,null,[..._[1]||=[i(`path`,{class:`dl-dg-arrow`,d:`M140 42 H162`,"marker-end":`url(#l6s1-steps)`},null,-1),i(`rect`,{class:`dl-dg-box`,x:`166`,y:`22`,width:`130`,height:`40`,rx:`4`},null,-1),i(`text`,{class:`dl-dg-lab is-sm`,x:`231`,y:`47`,"text-anchor":`middle`},`2 · scale`,-1),i(`text`,{class:`dl-dg-in`,x:`231`,y:`90`,"text-anchor":`middle`},`0, 1.41, 0`,-1),i(`text`,{class:`dl-dg-small`,x:`231`,y:`110`,"text-anchor":`middle`},`÷ √2`,-1)]])),[[v]]),e((u(),o(`g`,null,[..._[2]||=[i(`path`,{class:`dl-dg-arrow`,d:`M296 42 H318`,"marker-end":`url(#l6s1-steps)`},null,-1),i(`rect`,{class:`dl-dg-box`,x:`322`,y:`22`,width:`130`,height:`40`,rx:`4`},null,-1),i(`text`,{class:`dl-dg-lab is-sm`,x:`387`,y:`47`,"text-anchor":`middle`},`3 · softmax`,-1),i(`text`,{class:`dl-dg-in`,x:`387`,y:`90`,"text-anchor":`middle`},`0.16, 0.67, 0.16`,-1),i(`text`,{class:`dl-dg-small`,x:`387`,y:`110`,"text-anchor":`middle`},`positive, sum to 1`,-1)]])),[[v]]),e((u(),o(`g`,null,[..._[3]||=[i(`path`,{class:`dl-dg-arrow`,d:`M452 42 H474`,"marker-end":`url(#l6s1-steps)`},null,-1),i(`rect`,{class:`dl-dg-box is-accent`,x:`478`,y:`22`,width:`130`,height:`40`,rx:`4`},null,-1),i(`text`,{class:`dl-dg-lab is-sm`,x:`543`,y:`47`,"text-anchor":`middle`},`4 · mix`,-1),i(`text`,{class:`dl-dg-in`,x:`543`,y:`90`,"text-anchor":`middle`},`new vector for bank`,-1),i(`text`,{class:`dl-dg-small`,x:`543`,y:`110`,"text-anchor":`middle`},`weighted sum of values`,-1)]])),[[v]])]))]),_[8]||=i(`div`,{class:`dl-tight mt-2`},[i(`p`,null,[c(`The score `),i(`span`,{class:`katex`},[i(`span`,{class:`katex-mathml`},[i(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[i(`semantics`,null,[i(`mrow`,null,[i(`msub`,null,[i(`mi`,null,`e`),i(`mrow`,null,[i(`mi`,null,`i`),i(`mi`,null,`j`)])]),i(`mo`,null,`=`),i(`msub`,null,[i(`mi`,{mathvariant:`bold`},`q`),i(`mi`,null,`i`)]),i(`mo`,null,`⋅`),i(`msub`,null,[i(`mi`,{mathvariant:`bold`},`k`),i(`mi`,null,`j`)])]),i(`annotation`,{encoding:`application/x-tex`},`e_{ij} = \\mathbf{q}_i \\cdot \\mathbf{k}_j`)])])]),i(`span`,{class:`katex-html`,"aria-hidden":`true`},[i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`0.7167em`,"vertical-align":`-0.2861em`}}),i(`span`,{class:`mord`},[i(`span`,{class:`mord mathnormal`},`e`),i(`span`,{class:`msupsub`},[i(`span`,{class:`vlist-t vlist-t2`},[i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.3117em`}},[i(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[i(`span`,{class:`pstrut`,style:{height:`2.7em`}}),i(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[i(`span`,{class:`mord mtight`},[i(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0572em`}},`ij`)])])])]),i(`span`,{class:`vlist-s`},`​`)]),i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.2861em`}},[i(`span`)])])])])]),i(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),i(`span`,{class:`mrel`},`=`),i(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`0.6389em`,"vertical-align":`-0.1944em`}}),i(`span`,{class:`mord`},[i(`span`,{class:`mord mathbf`},`q`),i(`span`,{class:`msupsub`},[i(`span`,{class:`vlist-t vlist-t2`},[i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.3117em`}},[i(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[i(`span`,{class:`pstrut`,style:{height:`2.7em`}}),i(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[i(`span`,{class:`mord mathnormal mtight`},`i`)])])]),i(`span`,{class:`vlist-s`},`​`)]),i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.15em`}},[i(`span`)])])])])]),i(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),i(`span`,{class:`mbin`},`⋅`),i(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`0.9805em`,"vertical-align":`-0.2861em`}}),i(`span`,{class:`mord`},[i(`span`,{class:`mord mathbf`},`k`),i(`span`,{class:`msupsub`},[i(`span`,{class:`vlist-t vlist-t2`},[i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.3117em`}},[i(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[i(`span`,{class:`pstrut`,style:{height:`2.7em`}}),i(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[i(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0572em`}},`j`)])])]),i(`span`,{class:`vlist-s`},`​`)]),i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.2861em`}},[i(`span`)])])])])])])])]),c(` is large when query `),i(`span`,{class:`katex`},[i(`span`,{class:`katex-mathml`},[i(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[i(`semantics`,null,[i(`mrow`,null,[i(`mi`,null,`i`)]),i(`annotation`,{encoding:`application/x-tex`},`i`)])])]),i(`span`,{class:`katex-html`,"aria-hidden":`true`},[i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`0.6595em`}}),i(`span`,{class:`mord mathnormal`},`i`)])])]),c(` and key `),i(`span`,{class:`katex`},[i(`span`,{class:`katex-mathml`},[i(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[i(`semantics`,null,[i(`mrow`,null,[i(`mi`,null,`j`)]),i(`annotation`,{encoding:`application/x-tex`},`j`)])])]),i(`span`,{class:`katex-html`,"aria-hidden":`true`},[i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`0.854em`,"vertical-align":`-0.1944em`}}),i(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0572em`}},`j`)])])]),c(` point the same way. `),i(`span`,{class:`katex`},[i(`span`,{class:`katex-mathml`},[i(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[i(`semantics`,null,[i(`mrow`,null,[i(`msub`,null,[i(`mi`,null,`d`),i(`mi`,null,`k`)])]),i(`annotation`,{encoding:`application/x-tex`},`d_k`)])])]),i(`span`,{class:`katex-html`,"aria-hidden":`true`},[i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`0.8444em`,"vertical-align":`-0.15em`}}),i(`span`,{class:`mord`},[i(`span`,{class:`mord mathnormal`},`d`),i(`span`,{class:`msupsub`},[i(`span`,{class:`vlist-t vlist-t2`},[i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.3361em`}},[i(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[i(`span`,{class:`pstrut`,style:{height:`2.7em`}}),i(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[i(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0315em`}},`k`)])])]),i(`span`,{class:`vlist-s`},`​`)]),i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.15em`}},[i(`span`)])])])])])])])]),c(` is the key width.`)])],-1),e((u(),o(`div`,g,[..._[6]||=[i(`p`,null,`Score, scale, softmax, mix. Steps 1, 3 and 4 are last week’s attention. Step 2 is new, and it is one division.`,-1)]])),[[v]])]),_:1},16)}}};export{_ as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-DfWMIvp7.css b/lecture-06/class/assets/md-DfWMIvp7.css new file mode 100644 index 0000000000000000000000000000000000000000..6bd840969caad4c853704957b080b0802490a484 --- /dev/null +++ b/lecture-06/class/assets/md-DfWMIvp7.css @@ -0,0 +1 @@ +.dl-mh[data-v-d4d1022e]{flex-direction:column;gap:.4rem;width:100%;display:flex}.dl-mh__sentence[data-v-d4d1022e]{flex-wrap:wrap;align-items:center;gap:.2rem;display:flex}.dl-mh__label[data-v-d4d1022e]{letter-spacing:.1em;text-transform:uppercase;color:var(--dl-muted);margin-right:.35rem;font-size:.68rem}.dl-mh__word[data-v-d4d1022e]{color:var(--dl-body);font:inherit;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:4px;padding:.1rem .45rem;font-size:.82rem}.dl-mh__word[data-v-d4d1022e]:hover{border-color:var(--dl-accent)}.dl-mh__word.is-current[data-v-d4d1022e]{background:var(--dl-accent);color:#fff;font-weight:600}.dl-mh__word[data-v-d4d1022e]:focus-visible{outline:2px solid var(--dl-accent);outline-offset:1px}.dl-mh__rows[data-v-d4d1022e]{flex-direction:column;gap:.2rem;display:flex}.dl-mh__row[data-v-d4d1022e]{grid-template-columns:8.6rem 1fr 4.2rem;align-items:center;gap:.6rem;display:grid}.dl-mh__headname[data-v-d4d1022e]{font:inherit;text-align:left;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:4px;flex-direction:column;align-items:flex-start;padding:.1rem .3rem;display:flex}.dl-mh__headname[data-v-d4d1022e]:hover,.dl-mh__headname.is-solo[data-v-d4d1022e]{border-color:var(--dl-accent)}.dl-mh__headname[data-v-d4d1022e]:focus-visible{outline:2px solid var(--dl-accent);outline-offset:1px}.dl-mh__headlabel[data-v-d4d1022e]{color:var(--dl-accent);font-size:.78rem;font-weight:700}.dl-mh__headreads[data-v-d4d1022e]{color:var(--dl-muted);font-size:.63rem;line-height:1.2}.dl-mh__bars[data-v-d4d1022e]{grid-auto-columns:1fr;grid-auto-flow:column;gap:3px;height:1.75rem;display:grid}.dl-mh__bar[data-v-d4d1022e]{border-bottom:1px solid var(--dl-border);background:var(--dl-surface);border-radius:2px 2px 0 0;align-items:flex-end;display:flex;position:relative}.dl-mh__bar.is-dead[data-v-d4d1022e]{background:0 0}.dl-mh__fill[data-v-d4d1022e]{background:var(--dl-accent);opacity:.55;border-radius:2px 2px 0 0;width:100%;transition:height .25s}.dl-mh__bar.is-top .dl-mh__fill[data-v-d4d1022e]{opacity:1}.dl-mh__reads[data-v-d4d1022e]{color:var(--dl-body);white-space:nowrap;font-size:.78rem}.dl-mh__concat[data-v-d4d1022e]{border-top:1px solid var(--dl-border);font-variant-numeric:tabular-nums;color:var(--dl-muted);align-items:center;gap:.25rem;margin-top:.15rem;padding-top:.3rem;font-size:.7rem;display:flex}.dl-mh__slice[data-v-d4d1022e]{border:1px solid var(--dl-border);background:var(--dl-surface);border-radius:3px;padding:.1rem .5rem}.dl-mh__op[data-v-d4d1022e]{margin:0 .2rem}.dl-mh__whole[data-v-d4d1022e]{border:1px solid var(--dl-border);background:var(--dl-surface);border-radius:3px;padding:.1rem .9rem}.dl-mh__whole.is-out[data-v-d4d1022e]{border-color:var(--dl-accent);background:var(--dl-accent-soft);color:var(--dl-heading);font-weight:600}.dl-mh__note[data-v-d4d1022e]{color:var(--dl-accent);margin-top:.15rem;display:block} diff --git a/lecture-06/class/assets/md-DhZ23yU-.css b/lecture-06/class/assets/md-DhZ23yU-.css new file mode 100644 index 0000000000000000000000000000000000000000..4fa42dfcec45a8be26c0e45f16c3ef5f119f4d31 --- /dev/null +++ b/lecture-06/class/assets/md-DhZ23yU-.css @@ -0,0 +1 @@ +.dl-linkcard[data-v-77ab5d10]{border:1px solid var(--dl-border);border-left:3px solid var(--dl-accent);background:var(--dl-surface);border-radius:8px;align-items:flex-start;gap:.85rem;padding:.9rem 1rem;text-decoration:none;transition:transform .15s,border-color .15s;display:flex}.dl-linkcard[data-v-77ab5d10]:hover{border-color:var(--dl-accent);transform:translateY(-2px)}.dl-linkcard__icon[data-v-77ab5d10]{font-family:Apple Color Emoji,Segoe UI Emoji,Noto Color Emoji,Twemoji Mozilla,sans-serif;font-size:1.6rem;line-height:1}.dl-linkcard__text[data-v-77ab5d10]{min-width:0}.dl-linkcard__title[data-v-77ab5d10]{color:var(--dl-heading);font-size:1.05rem;font-weight:600}.dl-linkcard__blurb[data-v-77ab5d10]{color:var(--dl-body);margin-top:.15rem;font-size:.9rem}.dl-linkcard__host[data-v-77ab5d10]{color:var(--dl-accent);margin-top:.3rem;font-size:.78rem} diff --git a/lecture-06/class/assets/md-DmVH_S1g.js b/lecture-06/class/assets/md-DmVH_S1g.js new file mode 100644 index 0000000000000000000000000000000000000000..6ac6f33a60b0fca8ed7470904a0a54a07a4e5086 --- /dev/null +++ b/lecture-06/class/assets/md-DmVH_S1g.js @@ -0,0 +1 @@ +import{E as e,Q as t,S as n,_ as r,_t as i,v as a,yt as o,z as s}from"./modules/shiki-BFOesOFp.js";import{n as c,t as l}from"./slidev/context-DrkI8qiD.js";import{t as u}from"./TransformerGlyph-1pDKmZ2i.js";import{t as d}from"./section-C2g2VRmZ.js";var f={class:`absolute right-18 top-1/2 -translate-y-1/2`},p={__name:`class.md__slidev_3`,setup(p){let{$slidev:m,$nav:h,$clicksContext:g,$clicks:_,$page:v,$renderContext:y,$frontmatter:b}=c();return g.setup(),(c,p)=>{let m=u;return s(),a(d,o(e(i(l)(i(b),2))),{default:t(()=>[p[0]||=r(`h1`,null,`Delete the recurrence`,-1),r(`div`,f,[n(m,{kind:`cut`,size:190})])]),_:1},16)}}};export{p as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-DqiQvtl5.css b/lecture-06/class/assets/md-DqiQvtl5.css new file mode 100644 index 0000000000000000000000000000000000000000..cb39889ef4bac6627f7be564ef443236a8d6f5b1 --- /dev/null +++ b/lecture-06/class/assets/md-DqiQvtl5.css @@ -0,0 +1 @@ +.dl-stack[data-v-b5551dcc]{width:100%;height:100%}.dl-stack__spine[data-v-b5551dcc]{stroke:var(--dl-border);stroke-width:2px;color:var(--dl-border)}.dl-stack__box[data-v-b5551dcc]{fill:var(--dl-bg);stroke:var(--dl-border);stroke-width:1.3px;transition:fill .2s,stroke .2s}.dl-stack__box.is-seen[data-v-b5551dcc]{fill:var(--dl-surface);stroke:var(--dl-body)}.dl-stack__box.is-current[data-v-b5551dcc]{fill:var(--dl-accent-soft);stroke:var(--dl-accent);stroke-width:2.2px}.dl-stack__label[data-v-b5551dcc]{fill:var(--dl-muted);font-size:11.5px;font-weight:600;transition:fill .2s}.dl-stack__label.is-seen[data-v-b5551dcc],.dl-stack__label.is-current[data-v-b5551dcc]{fill:var(--dl-heading)}.dl-stack__sub[data-v-b5551dcc]{fill:var(--dl-muted);font-size:8.8px}.dl-stack__sub.is-current[data-v-b5551dcc]{fill:var(--dl-accent-strong)}.dl-stack__repeat[data-v-b5551dcc]{fill:none;stroke:var(--dl-border);stroke-width:1.2px;stroke-dasharray:5 4;transition:stroke .2s}.dl-stack__repeat.is-current[data-v-b5551dcc]{stroke:var(--dl-accent)}.dl-stack__repeatlabel[data-v-b5551dcc]{fill:var(--dl-muted);font-size:11px;font-weight:700}.dl-stack__repeatlabel.is-current[data-v-b5551dcc]{fill:var(--dl-accent)}.dl-stack__cross[data-v-b5551dcc]{fill:none;stroke:var(--dl-border);stroke-width:1.6px;color:var(--dl-border);transition:stroke .2s}.dl-stack__cross.is-seen[data-v-b5551dcc]{stroke:var(--dl-body);color:var(--dl-body)}.dl-stack__cross.is-current[data-v-b5551dcc]{stroke:var(--dl-accent);color:var(--dl-accent);stroke-width:2.2px}.dl-stack__crosslabel[data-v-b5551dcc]{fill:var(--dl-muted);opacity:0;font-size:9px;transition:opacity .2s}.dl-stack__crosslabel.is-seen[data-v-b5551dcc],.dl-stack__crosslabel.is-current[data-v-b5551dcc]{opacity:1}.dl-stack__crosslabel.is-current[data-v-b5551dcc]{fill:var(--dl-accent);font-weight:700}.dl-stack__add[data-v-b5551dcc]{fill:var(--dl-bg);stroke:var(--dl-border);stroke-width:1.4px}.dl-stack__add.is-seen[data-v-b5551dcc]{stroke:var(--dl-body)}.dl-stack__add.is-current[data-v-b5551dcc]{fill:var(--dl-accent-soft);stroke:var(--dl-accent);stroke-width:2.2px}.dl-stack__plus[data-v-b5551dcc]{fill:var(--dl-heading);font-size:12px;font-weight:700}.dl-stack__pe[data-v-b5551dcc]{fill:var(--dl-muted);font-size:9px}.dl-stack__pe.is-current[data-v-b5551dcc]{fill:var(--dl-accent);font-weight:700}.dl-stack__port[data-v-b5551dcc]{fill:var(--dl-muted);font-size:10px;transition:fill .2s}.dl-stack__port.is-current[data-v-b5551dcc]{fill:var(--dl-accent);font-weight:700}.dl-stack__side[data-v-b5551dcc]{fill:var(--dl-muted);letter-spacing:.09em;font-size:9.5px} diff --git a/lecture-06/class/assets/md-DrvbTEIQ.js b/lecture-06/class/assets/md-DrvbTEIQ.js new file mode 100644 index 0000000000000000000000000000000000000000..119ca98ef4a0445c0fc67cb1afbc297f2911924c --- /dev/null +++ b/lecture-06/class/assets/md-DrvbTEIQ.js @@ -0,0 +1 @@ +import{$ as e,E as t,Q as n,S as r,V as i,W as a,_ as o,_t as s,b as c,bt as l,g as u,lt as d,m as f,v as p,vt as m,w as h,x as g,xt as _,y as v,yt as y,z as b}from"./modules/shiki-BFOesOFp.js";import{t as x}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as S,t as C}from"./slidev/context-DrkI8qiD.js";import{t as w}from"./slidev/VClicks-BJ1JuBhK.js";import{t as T}from"./WidgetFrame-D2L0MlKA.js";import{t as E}from"./StepButton-BcP33F-1.js";import{t as D}from"./useConvolution-qO1u8ksh.js";import{n as O,r as k}from"./useAttention-Blk0c2BZ.js";import{t as A}from"./interactive-BCz0jAef.js";var j={class:`dl-mh`},M={class:`dl-mh__sentence`},N=[`onClick`],P={class:`dl-mh__rows`},F=[`onClick`],I={class:`dl-mh__headlabel`},L={class:`dl-mh__headreads`},R={class:`dl-mh__bars`},z=[`title`],B={class:`dl-mh__reads`},V={class:`dl-mh__concat`},H={class:`dl-mh__whole`},U={class:`dl-mh__whole is-out`},W=x(h({__name:`MultiHeadLab`,props:{query:{default:6},dModel:{default:512}},setup(e){let{$slidev:t,$nav:a,$clicksContext:h,$clicks:y,$page:x,$renderContext:C,$frontmatter:w}=S(),A=e,W=d(A.query),G=d(null),K=k,q=u(()=>O.map((e,t)=>({...e,index:t,weights:e.weights[W.value],top:e.weights[W.value].indexOf(Math.max(...e.weights[W.value]))}))),J=u(()=>G.value===null?q.value:[q.value[G.value]]),Y=u(()=>Math.round(A.dModel/O.length));function X(){W.value=(W.value+1)%K.length}function Z(e){return e<=W.value}return(e,t)=>{let a=E,u=T;return b(),p(u,{"max-width":`45rem`},{controls:n(()=>[r(a,{label:`Next query word`,glyph:`▸`,onClick:X}),G.value===null?v(`v-if`,!0):(b(),p(a,{key:0,label:`All heads`,variant:`ghost`,glyph:`▦`,onClick:t[0]||=e=>G.value=null}))]),readout:n(()=>[W.value===6?(b(),c(f,{key:0},[t[5]||=o(`strong`,null,`it`,-1),t[6]||=g(` asks four questions at once: head 1 takes the word before it, head 2 the nearby nouns, head 3 goes back five words to `,-1),t[7]||=o(`strong`,null,`cat`,-1),t[8]||=g(` — what `,-1),t[9]||=o(`em`,null,`it`,-1),t[10]||=g(` refers to — and head 4 parks on the first token. One softmax puts its mass in one place, so one head could answer only one of those. `,-1),t[11]||=o(`span`,{class:`dl-mh__note`},[g(` Head 4 is not a drawing error: heads that sit almost entirely on the first token turn up in every trained model. Nothing after `),o(`em`,null,`it`),g(` is drawn because this is a decoder, which may not look forward — section 03. `)],-1)],64)):(b(),c(f,{key:1},[o(`strong`,null,_(s(K)[W.value]),1),t[12]||=g(` asking, four heads answering differently: `,-1),(b(!0),c(f,null,i(q.value,(e,t)=>(b(),c(f,{key:e.name},[t>0?(b(),c(f,{key:0},[g(`, `)],64)):v(`v-if`,!0),g(` `+_(e.name)+` → `,1),o(`strong`,null,_(s(K)[e.top]),1)],64))),128)),t[13]||=g(`. Each head is its own W`,-1),t[14]||=o(`sub`,null,`Q`,-1),t[15]||=g(`, W`,-1),t[16]||=o(`sub`,null,`K`,-1),t[17]||=g(`, W`,-1),t[18]||=o(`sub`,null,`V`,-1),g(` at width `+_(Y.value)+` = `+_(A.dModel)+`/`+_(s(O).length)+`, so all `+_(s(O).length)+` together cost exactly what one head of width `+_(A.dModel)+` would. `,1)],64))]),default:n(()=>[o(`div`,j,[v(` The sentence, and which word is asking. `),o(`div`,M,[t[1]||=o(`span`,{class:`dl-mh__label`},`query`,-1),(b(!0),c(f,null,i(s(K),(e,t)=>(b(),c(`button`,{key:e+t,type:`button`,class:m([`dl-mh__word`,{"is-current":t===W.value}]),onClick:e=>W.value=t},_(e),11,N))),128))]),v(` One row per head: the same question, four different answers. `),o(`div`,P,[(b(!0),c(f,null,i(J.value,e=>(b(),c(`div`,{key:e.name,class:`dl-mh__row`},[o(`button`,{type:`button`,class:m([`dl-mh__headname`,{"is-solo":G.value===e.index}]),onClick:t=>G.value=G.value===e.index?null:e.index},[o(`span`,I,_(e.name),1),o(`span`,L,_(e.reads),1)],10,F),o(`div`,R,[(b(!0),c(f,null,i(e.weights,(t,n)=>(b(),c(`div`,{key:n,class:m([`dl-mh__bar`,{"is-top":n===e.top&&Z(n),"is-dead":!Z(n)}]),title:`${s(K)[n]}: ${s(D)(t)}`},[o(`span`,{class:`dl-mh__fill`,style:l({height:`${Z(n)?t*100:0}%`})},null,4)],10,z))),128))]),o(`div`,B,[e.weights[e.top]>.4?(b(),c(f,{key:0},[t[2]||=g(`→ `,-1),o(`strong`,null,_(s(K)[e.top]),1)],64)):(b(),c(f,{key:1},[g(`→ spread`)],64))])]))),128))]),v(` What happens to the four outputs. `),o(`div`,V,[(b(!0),c(f,null,i(q.value,e=>(b(),c(`span`,{key:`c${e.index}`,class:`dl-mh__slice`},_(Y.value),1))),128)),t[3]||=o(`span`,{class:`dl-mh__op`},`concat →`,-1),o(`span`,H,_(A.dModel),1),t[4]||=o(`span`,{class:`dl-mh__op`},[g(`× W`),o(`sub`,null,`O`),g(` →`)],-1),o(`span`,U,_(A.dModel),1)])])]),_:1})}}}),[[`__scopeId`,`data-v-d4d1022e`]]),G={class:`mt-2 dl-callout`},K={__name:`class.md__slidev_19`,setup(i){let{$slidev:l,$nav:u,$clicksContext:d,$clicks:f,$page:m,$renderContext:h,$frontmatter:_}=S();return d.setup(),(i,l)=>{let u=W,d=w,f=a(`click`);return b(),p(A,y(t(s(C)(s(_),18))),{aside:n(t=>[l[2]||=o(`p`,null,[o(`em`,null,`it`),g(` is asking. Four heads, four different answers.`)],-1),r(d,null,{default:n(()=>[...l[0]||=[o(`ul`,null,[o(`li`,null,[o(`strong`,null,`head 1`),g(` — the previous word`)]),o(`li`,null,[o(`strong`,null,`head 3`),g(` — five words back, to `),o(`em`,null,`cat`)]),o(`li`,null,[o(`strong`,null,`head 4`),g(` — parks on token 1 and does nothing`)])],-1)]]),_:1}),e((b(),c(`div`,G,[...l[1]||=[o(`p`,null,`Head 4 is not a drawing error. Nearly-dead heads are in every model anyone has looked inside.`,-1)]])),[[f]])]),default:n(()=>[r(u)]),_:1},16)}}};export{K as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-DuNbnbeN.js b/lecture-06/class/assets/md-DuNbnbeN.js new file mode 100644 index 0000000000000000000000000000000000000000..51b79c2402020422ec51b3dbfae7c79b07903604 --- /dev/null +++ b/lecture-06/class/assets/md-DuNbnbeN.js @@ -0,0 +1 @@ +import{$ as e,E as t,Q as n,V as r,W as i,_ as a,_t as o,b as s,m as c,v as l,vt as u,x as d,xt as f,yt as p,z as m}from"./modules/shiki-BFOesOFp.js";import{n as h,t as g}from"./slidev/context-DrkI8qiD.js";import{t as _}from"./default-Dm4DVug5.js";var v={class:`mt-1 flex justify-center`},y={viewBox:`0 0 660 240`,class:`dl-diagram`,style:{"max-height":`12rem`},role:`img`,"aria-label":`The sentence the cat ate the fish because it was hungry. One softmax arc from it lands on cat; dashed lines mark three other questions: nearby noun, previous word, which clause`},b=[`x`],x=[`x`],S={class:`grid grid-cols-2 gap-8 mt-1`},C={class:`dl-callout`},w={__name:`class.md__slidev_18`,setup(w){let{$slidev:T,$nav:E,$clicksContext:D,$clicks:O,$page:k,$renderContext:A,$frontmatter:j}=h();return D.setup(),(h,w)=>{let T=i(`click`);return m(),l(_,p(t(o(g)(o(j),17))),{default:n(()=>[w[5]||=a(`h1`,null,`One softmax can only point at one thing`,-1),w[6]||=a(`p`,null,[d(`To read `),a(`em`,null,`it`),d(`, the model needs several answers at once.`)],-1),a(`div`,v,[(m(),s(`svg`,y,[w[1]||=a(`path`,{class:`dl-dg-grad is-good`,d:`M476 128 Q296 20 116 128`,style:{"stroke-width":`4`}},null,-1),w[2]||=a(`text`,{class:`dl-dg-small is-good`,x:`296`,y:`54`,"text-anchor":`middle`},`one softmax: most weight on one word`,-1),(m(),s(c,null,r([`the`,`cat`,`ate`,`the`,`fish`,`because`,`it`,`was`,`hungry`],(e,t)=>a(`g`,{key:t},[a(`rect`,{class:u(t===6?`dl-dg-box is-accent`:`dl-dg-box`),x:12+t*72,y:`130`,width:`64`,height:`30`,rx:`4`},null,10,b),a(`text`,{class:`dl-dg-lab is-sm`,x:44+t*72,y:`150`,"text-anchor":`middle`},f(e),9,x)])),64)),e((m(),s(`g`,null,[...w[0]||=[a(`path`,{class:`dl-dg-loss`,d:`M116 162 V188`},null,-1),a(`text`,{class:`dl-dg-small`,x:`116`,y:`202`,"text-anchor":`middle`},`what it refers to`,-1),a(`path`,{class:`dl-dg-loss`,d:`M332 162 V188`},null,-1),a(`text`,{class:`dl-dg-small`,x:`332`,y:`202`,"text-anchor":`middle`},`nearby noun`,-1),a(`path`,{class:`dl-dg-loss`,d:`M404 162 V216`},null,-1),a(`text`,{class:`dl-dg-small`,x:`404`,y:`230`,"text-anchor":`middle`},`previous word`,-1),a(`path`,{class:`dl-dg-loss`,d:`M374 172 H634`},null,-1),a(`text`,{class:`dl-dg-small`,x:`560`,y:`190`,"text-anchor":`middle`},`which clause`,-1)]])),[[T]])]))]),a(`div`,S,[e((m(),s(`div`,C,[...w[3]||=[a(`p`,null,[d(`A softmax puts its weight in `),a(`strong`,null,`one`),d(` place. Four questions need four sets of weights.`)],-1)]])),[[T]]),e((m(),s(`div`,null,[...w[4]||=[a(`p`,null,[d(`So run attention `),a(`strong`,null,`several times side by side`),d(`, each copy with its own `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`msub`,null,[a(`mi`,null,`W`),a(`mi`,null,`Q`)])]),a(`annotation`,{encoding:`application/x-tex`},`W_Q`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.9694em`,"vertical-align":`-0.2861em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.1389em`}},`W`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.3283em`}},[a(`span`,{style:{top:`-2.55em`,"margin-left":`-0.1389em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mathnormal mtight`},`Q`)])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.2861em`}},[a(`span`)])])])])])])])]),d(`, `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`msub`,null,[a(`mi`,null,`W`),a(`mi`,null,`K`)])]),a(`annotation`,{encoding:`application/x-tex`},`W_K`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.8333em`,"vertical-align":`-0.15em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.1389em`}},`W`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.3283em`}},[a(`span`,{style:{top:`-2.55em`,"margin-left":`-0.1389em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0715em`}},`K`)])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.15em`}},[a(`span`)])])])])])])])]),d(`, `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`msub`,null,[a(`mi`,null,`W`),a(`mi`,null,`V`)])]),a(`annotation`,{encoding:`application/x-tex`},`W_V`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.8333em`,"vertical-align":`-0.15em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.1389em`}},`W`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.3283em`}},[a(`span`,{style:{top:`-2.55em`,"margin-left":`-0.1389em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.2222em`}},`V`)])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.15em`}},[a(`span`)])])])])])])])]),d(`. Each copy is a `),a(`strong`,null,`head`),d(`.`)],-1)]])),[[T]])])]),_:1},16)}}};export{w as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-HHaq088F2.js b/lecture-06/class/assets/md-HHaq088F2.js new file mode 100644 index 0000000000000000000000000000000000000000..526ff7d7328ad79b8f405491b75cb2c36c84fee2 --- /dev/null +++ b/lecture-06/class/assets/md-HHaq088F2.js @@ -0,0 +1 @@ +import{$ as e,E as t,Q as n,S as r,V as i,W as a,_ as o,_t as s,b as c,g as l,lt as u,m as d,v as f,vt as p,w as m,x as h,xt as g,y as _,yt as v,z as y}from"./modules/shiki-BFOesOFp.js";import{t as b}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as x,t as S}from"./slidev/context-DrkI8qiD.js";import{t as C}from"./slidev/VClicks-BJ1JuBhK.js";import{t as w}from"./WidgetFrame-D2L0MlKA.js";import{t as T}from"./interactive-BCz0jAef.js";var E={class:`dl-fam`},D={class:`dl-fam__tabs`,role:`tablist`},O=[`aria-selected`,`onClick`],k={class:`dl-fam__tabname`},A={class:`dl-fam__tabshape`},j={class:`dl-fam__panel`},M={class:`dl-fam__masks`},N={key:0,class:`dl-fam__mask`},P={class:`dl-fam__maskcap`},F={class:`dl-fam__grid`},I={key:1,class:`dl-fam__mask`},L={class:`dl-fam__maskcap`},R={class:`dl-fam__grid`},z={key:2,class:`dl-fam__mask`},B={class:`dl-fam__grid`},V={class:`dl-fam__facts`},H={class:`dl-fam__examples`},U={class:`dl-fam__year`},W=5,G=b(m({__name:`ModelFamilies`,setup(e){let{$slidev:t,$nav:r,$clicksContext:a,$clicks:s,$page:m,$renderContext:v,$frontmatter:b}=x(),S=[{key:`enc`,name:`Encoder-only`,shape:`the encoder stack, on its own`,mask:`full`,trained:`Mask out 15% of the tokens and predict them from both sides — “masked language modelling”.`,good:`Understanding a text you already have in full: classification, sentiment, named entities, retrieval embeddings, reranking.`,bad:`Cannot generate. There is no notion of “next”, because every position was trained while seeing the future.`,examples:[{name:`BERT`,year:2018},{name:`RoBERTa`,year:2019},{name:`DeBERTa`,year:2020},{name:`ModernBERT`,year:2024}]},{key:`dec`,name:`Decoder-only`,shape:`the decoder stack, with the cross-attention removed`,mask:`causal`,trained:`Predict the next token, over and over, on everything ever written. Every position is a training example, and no labels are needed.`,good:`Generation — and, as it turned out, nearly everything else, because any task phrased as text becomes next-token prediction.`,bad:`Each position only ever sees its left context, so a pure embedding of a whole sentence is weaker than an encoder’s.`,examples:[{name:`GPT-2`,year:2019},{name:`GPT-3`,year:2020},{name:`Llama`,year:2023},{name:`everything since`,year:2024}]},{key:`encdec`,name:`Encoder–decoder`,shape:`the 2017 original, both stacks`,mask:`both`,trained:`Map one sequence to another: translation, summarisation, or a span-corruption objective that rewrites the whole task as text-to-text.`,good:`Problems with a clear source and a clear target, where the source should be read bidirectionally and the target written left to right.`,bad:`Two stacks to train and serve, and a strict source/target split that a general-purpose chat model does not want.`,examples:[{name:`the 2017 paper`,year:2017},{name:`T5`,year:2019},{name:`BART`,year:2019},{name:`Whisper`,year:2022}]}],C=u(1),T=l(()=>S[C.value]);function G(e,t,n){return n===`full`||t<=e}return(e,t)=>{let r=w;return y(),f(r,{"max-width":`44rem`},{readout:n(()=>[T.value.key===`dec`?(y(),c(d,{key:0},[t[7]||=h(` One stack, one mask, one objective — and it ate the field. Not because it is the most expressive of the three, but because “predict the next token” needs `,-1),t[8]||=o(`strong`,null,`no labelled data at all`,-1),t[9]||=h(`, so it is the only one of the three whose training set is the whole internet. `,-1)],64)):T.value.key===`enc`?(y(),c(d,{key:1},[h(` Still the right answer when you have the whole text and want a vector for it. A sentence-embedding or reranking model in production today is far more likely to be encoder-only than to be a chat model. `)],64)):(y(),c(d,{key:2},[h(` The original, and the one all three of these descend from. It is still what you want when the source and the target are genuinely different things — which is why speech recognition and translation kept it long after chat models stopped using it. `)],64))]),default:n(()=>[o(`div`,E,[o(`div`,D,[(y(),c(d,null,i(S,(e,t)=>o(`button`,{key:e.key,type:`button`,role:`tab`,class:p([`dl-fam__tab`,{"is-current":t===C.value}]),"aria-selected":t===C.value,onClick:e=>C.value=t},[o(`span`,k,g(e.name),1),o(`span`,A,g(e.shape),1)],10,O)),64))]),o(`div`,j,[_(` The mask is the difference, so it leads. `),o(`div`,M,[T.value.mask===`causal`?_(`v-if`,!0):(y(),c(`div`,N,[o(`div`,P,g(T.value.mask===`both`?`source`:`all positions`),1),o(`div`,F,[(y(!0),c(d,null,i(25,e=>(y(),c(`span`,{key:e,class:p([`dl-fam__cell`,{"is-on":G(Math.floor((e-1)/W),(e-1)%W,`full`)}])},null,2))),128))]),t[0]||=o(`div`,{class:`dl-fam__maskrole`},`sees both ways`,-1)])),T.value.mask===`full`?_(`v-if`,!0):(y(),c(`div`,I,[o(`div`,L,g(T.value.mask===`both`?`target`:`all positions`),1),o(`div`,R,[(y(!0),c(d,null,i(25,e=>(y(),c(`span`,{key:e,class:p([`dl-fam__cell`,{"is-on":G(Math.floor((e-1)/W),(e-1)%W,`causal`)}])},null,2))),128))]),t[1]||=o(`div`,{class:`dl-fam__maskrole`},`left context only`,-1)])),T.value.mask===`both`?(y(),c(`div`,z,[t[2]||=o(`div`,{class:`dl-fam__maskcap`},`cross`,-1),o(`div`,B,[(y(!0),c(d,null,i(25,e=>(y(),c(`span`,{key:e,class:`dl-fam__cell is-on is-cross`}))),128))]),t[3]||=o(`div`,{class:`dl-fam__maskrole`},`target reads all of source`,-1)])):_(`v-if`,!0)]),o(`dl`,V,[o(`div`,null,[t[4]||=o(`dt`,null,`trained by`,-1),o(`dd`,null,g(T.value.trained),1)]),o(`div`,null,[t[5]||=o(`dt`,null,`use it for`,-1),o(`dd`,null,g(T.value.good),1)]),o(`div`,null,[t[6]||=o(`dt`,null,`cannot`,-1),o(`dd`,null,g(T.value.bad),1)])])]),o(`div`,H,[(y(!0),c(d,null,i(T.value.examples,e=>(y(),c(`span`,{key:e.name,class:`dl-fam__ex`},[h(g(e.name),1),o(`span`,U,g(e.year),1)]))),128))])])]),_:1})}}}),[[`__scopeId`,`data-v-be69a577`]]),K={class:`mt-2 dl-callout`},q={__name:`class.md__slidev_31`,setup(i){let{$slidev:l,$nav:u,$clicksContext:d,$clicks:p,$page:m,$renderContext:g,$frontmatter:_}=x();return d.setup(),(i,l)=>{let u=G,d=C,p=a(`click`);return y(),f(T,v(t(s(S)(s(_),30))),{aside:n(t=>[l[2]||=o(`p`,null,[h(`One paper, three descendants. The difference is `),o(`strong`,null,`the mask`),h(`, not the layer.`)],-1),r(d,null,{default:n(()=>[...l[0]||=[o(`ul`,null,[o(`li`,null,[o(`strong`,null,`encoder-only`),h(` — sees both ways, cannot generate`)]),o(`li`,null,[o(`strong`,null,`decoder-only`),h(` — left context only, generates`)]),o(`li`,null,[o(`strong`,null,`encoder–decoder`),h(` — the 2017 original, both`)])],-1)]]),_:1}),e((y(),c(`div`,K,[...l[1]||=[o(`p`,null,`Same blocks, same attention. Click through all three.`,-1)]])),[[p]])]),default:n(()=>[r(u)]),_:1},16)}}};export{q as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-KMiNvInO.js b/lecture-06/class/assets/md-KMiNvInO.js new file mode 100644 index 0000000000000000000000000000000000000000..e39211cf55328c1cced5be7095be66e8c6eb2fe5 --- /dev/null +++ b/lecture-06/class/assets/md-KMiNvInO.js @@ -0,0 +1,12 @@ +import{$ as e,E as t,Q as n,S as r,W as i,_ as a,_t as o,b as s,v as c,w as l,x as u,xt as d,y as f,yt as p,z as m}from"./modules/shiki-BFOesOFp.js";import{t as h}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as g,t as _}from"./slidev/context-DrkI8qiD.js";import{t as v}from"./TransformerGlyph-1pDKmZ2i.js";import{t as y}from"./default-Dm4DVug5.js";var b=[`href`],x={key:0,class:`dl-linkcard__icon`},S={class:`dl-linkcard__text`},C={class:`dl-linkcard__title`},w={key:0,class:`dl-linkcard__blurb`},T={class:`dl-linkcard__host`},E=h(l({__name:`LinkCard`,props:{href:{},title:{},blurb:{},icon:{}},setup(e){let{$slidev:t,$nav:n,$clicksContext:r,$clicks:i,$page:c,$renderContext:l,$frontmatter:u}=g(),p=e,h=p.href.replace(/^https?:\/\//,``).replace(/\/.*$/,``);return(e,t)=>(m(),s(`a`,{class:`dl-linkcard`,href:p.href,target:`_blank`,rel:`noopener`},[p.icon?(m(),s(`div`,x,d(p.icon),1)):f(`v-if`,!0),a(`div`,S,[a(`div`,C,d(p.title),1),p.blurb?(m(),s(`div`,w,d(p.blurb),1)):f(`v-if`,!0),a(`div`,T,d(o(h)),1)])],8,b))}}),[[`__scopeId`,`data-v-77ab5d10`]]),D={class:`grid grid-cols-3 gap-4 mt-4`},O={class:`mt-4 flex items-center gap-4 dl-tight`},k={class:`mt-2 dl-secondary`},A={__name:`class.md__slidev_40`,setup(l){let{$slidev:d,$nav:f,$clicksContext:h,$clicks:b,$page:x,$renderContext:S,$frontmatter:C}=g();return h.setup(),(l,d)=>{let f=E,h=v,g=i(`click`);return m(),c(y,p(t(o(_)(o(C),39))),{default:n(()=>[d[2]||=a(`h1`,null,`Reading, and the lab`,-1),a(`div`,D,[e((m(),s(`div`,null,[r(f,{href:`https://jalammar.github.io/illustrated-transformer/`,title:`The Illustrated Transformer`,blurb:`Alammar, 2018. The pictures everyone has seen, and still the best first read. Do this one before the lab.`,icon:`🖼️`})])),[[g]]),e((m(),s(`div`,null,[r(f,{href:`https://sebastianraschka.com/blog/2023/self-attention-from-scratch.html`,title:`Self-attention from scratch`,blurb:`Raschka, 2023. The same worked example as today's widgets, in NumPy and PyTorch, at full size.`,icon:`✍️`})])),[[g]]),e((m(),s(`div`,null,[r(f,{href:`https://github.com/karpathy/nanoGPT`,title:`nanoGPT`,blurb:`Karpathy. A complete, readable, trainable decoder-only transformer in about 300 lines. Its attention is our “Self-attention, written out”.`,icon:`💻`})])),[[g]])]),e((m(),s(`div`,O,[r(h,{kind:`decoder`,size:64}),d[0]||=a(`div`,null,[a(`p`,null,[a(`strong`,null,`In the lab.`),u(` Build the block from “A block, and a stack”. Train a small decoder-only model on character-level text. Then drop `),a(`code`,null,`is_causal`),u(`, the `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`msqrt`,null,[a(`msub`,null,[a(`mi`,null,`d`),a(`mi`,null,`k`)])])]),a(`annotation`,{encoding:`application/x-tex`},`\\sqrt{d_k}`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1.04em`,"vertical-align":`-0.1828em`}}),a(`span`,{class:`mord sqrt`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.8572em`}},[a(`span`,{class:`svg-align`,style:{top:`-3em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`mord`,style:{"padding-left":`0.833em`}},[a(`span`,{class:`mord`},[a(`span`,{class:`mord mathnormal`},`d`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.3361em`}},[a(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0315em`}},`k`)])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.15em`}},[a(`span`)])])])])])])]),a(`span`,{style:{top:`-2.8172em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`hide-tail`,style:{"min-width":`0.853em`,height:`1.08em`}},[a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`400em`,height:`1.08em`,viewBox:`0 0 400000 1080`,preserveAspectRatio:`xMinYMin slice`},[a(`path`,{d:`M95,702 +c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 +c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 +c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 +s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 +c69,-144,104.5,-217.7,106.5,-221 +l0 -0 +c5.3,-9.3,12,-14,20,-14 +H400000v40H845.2724 +s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 +c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z +M834 80h400000v40h-400000z`})])])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.1828em`}},[a(`span`)])])])])])])]),u(` and the positional encoding, one at a time. Report what each one costs.`)])],-1)])),[[g]]),e((m(),s(`div`,k,[...d[1]||=[a(`p`,null,`Dropping the positional encoding is the interesting one. Predict first.`,-1)]])),[[g]])]),_:1},16)}}};export{A as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-Q5AUu7Ga.js b/lecture-06/class/assets/md-Q5AUu7Ga.js new file mode 100644 index 0000000000000000000000000000000000000000..080880f4beaa861ffcee4c140f6331e2433e2c3a --- /dev/null +++ b/lecture-06/class/assets/md-Q5AUu7Ga.js @@ -0,0 +1 @@ +import{E as e,H as t,Q as n,S as r,_ as i,_t as a,b as o,v as s,w as c,x as l,xt as u,y as d,yt as f,z as p}from"./modules/shiki-BFOesOFp.js";import{t as m}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as h,t as g}from"./slidev/context-DrkI8qiD.js";import{t as _}from"./TransformerGlyph-1pDKmZ2i.js";var v={class:`slidev-layout dl-title`},y={class:`dl-title__eyebrow`},b={key:0,class:`dl-title__code`},x={key:1,class:`dl-title__lecture`},S={class:`dl-title__body`},C={class:`dl-title__meta`},w={key:0,class:`dl-title__author`},T=[`href`],E={key:2,class:`dl-title__date`},D=m(c({__name:`title`,props:{courseCode:{},lecture:{},author:{},email:{},date:{}},setup(e){let{$slidev:n,$nav:r,$clicksContext:a,$clicks:s,$page:c,$renderContext:l,$frontmatter:f}=h(),m=e;return(e,n)=>(p(),o(`div`,v,[i(`div`,y,[m.courseCode?(p(),o(`span`,b,u(m.courseCode),1)):d(`v-if`,!0),m.lecture?(p(),o(`span`,x,`Lecture `+u(m.lecture),1)):d(`v-if`,!0)]),i(`div`,S,[t(e.$slots,`default`,{},void 0,!0)]),n[0]||=i(`div`,{class:`dl-rule dl-title__rule`},null,-1),i(`div`,C,[m.author?(p(),o(`div`,w,u(m.author),1)):d(`v-if`,!0),m.email?(p(),o(`a`,{key:1,href:`mailto:${m.email}`,class:`dl-title__email`},u(m.email),9,T)):d(`v-if`,!0),m.date?(p(),o(`div`,E,u(m.date),1)):d(`v-if`,!0)])]))}}),[[`__scopeId`,`data-v-dc59a472`]]),O={class:`mt-6 flex items-center gap-6`},k={__name:`class.md__slidev_1`,setup(t){let{$slidev:o,$nav:c,$clicksContext:u,$clicks:d,$page:m,$renderContext:v,$frontmatter:y}=h();return u.setup(),(t,o)=>{let c=_;return p(),s(D,f(e(a(g)(a(y),0))),{default:n(()=>[o[3]||=i(`h1`,null,`Transformers`,-1),o[4]||=i(`p`,null,`Last week’s network could look anywhere, but it had to read in order. Delete the reading-in-order part and almost nothing is lost. Everything since 2017 is built on that idea.`,-1),i(`div`,O,[r(c,{kind:`cut`,size:110},{default:n(()=>[...o[0]||=[l(`read in order`,-1)]]),_:1}),o[2]||=i(`span`,{class:`text-3xl`,style:{color:`var(--dl-accent)`}},`→`,-1),r(c,{kind:`block`,size:110},{default:n(()=>[...o[1]||=[l(`look everywhere`,-1)]]),_:1})])]),_:1},16)}}};export{k as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-ckgb6fzE.js b/lecture-06/class/assets/md-ckgb6fzE.js new file mode 100644 index 0000000000000000000000000000000000000000..ef79debbd2b720cd819bfc37b37c1143b70933f8 --- /dev/null +++ b/lecture-06/class/assets/md-ckgb6fzE.js @@ -0,0 +1 @@ +import{$ as e,E as t,Q as n,S as r,W as i,_ as a,_t as o,b as s,v as c,x as l,yt as u,z as d}from"./modules/shiki-BFOesOFp.js";import{n as f,t as p}from"./slidev/context-DrkI8qiD.js";import{t as m}from"./slidev/VClicks-BJ1JuBhK.js";import{t as h}from"./interactive-BCz0jAef.js";import{t as g}from"./AttentionMatrix-CVQjcu-J.js";var _={class:`mt-2 dl-callout`},v={__name:`class.md__slidev_29`,setup(v){let{$slidev:y,$nav:b,$clicksContext:x,$clicks:S,$page:C,$renderContext:w,$frontmatter:T}=f();return x.setup(),(f,v)=>{let y=g,b=m,x=i(`click`);return d(),c(h,u(t(o(p)(o(T),28))),{aside:n(t=>[v[2]||=a(`p`,null,[l(`Position `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`t`)]),a(`annotation`,{encoding:`application/x-tex`},`t`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6151em`}}),a(`span`,{class:`mord mathnormal`},`t`)])])]),l(` may read positions `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mn`,null,`1`),a(`mo`,null,`…`),a(`mi`,null,`t`)]),a(`annotation`,{encoding:`application/x-tex`},`1 \\ldots t`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),a(`span`,{class:`mord`},`1`),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`minner`},`…`),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mord mathnormal`},`t`)])])]),l(` only.`)],-1),r(b,null,{default:n(()=>[...v[0]||=[a(`ul`,null,[a(`li`,null,[l(`Row `),a(`em`,null,`the`),l(` becomes `),a(`strong`,null,`1.00`),l(`: it can only see itself`)]),a(`li`,null,[l(`Rows still sum to 1: the softmax comes `),a(`strong`,null,`after`),l(` the `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mo`,null,`−`),a(`mi`,{mathvariant:`normal`},`∞`)]),a(`annotation`,{encoding:`application/x-tex`},`-\\infty`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6667em`,"vertical-align":`-0.0833em`}}),a(`span`,{class:`mord`},`−`),a(`span`,{class:`mord`},`∞`)])])])]),a(`li`,null,`The button takes the mask off and puts it back`)],-1)]]),_:1}),e((d(),s(`div`,_,[...v[1]||=[a(`p`,null,`Without the mask, the model reads the answer off its own input.`,-1)]])),[[x]])]),default:n(()=>[r(y,{causal:!0})]),_:1},16)}}};export{v as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-otyMe-S12.js b/lecture-06/class/assets/md-otyMe-S12.js new file mode 100644 index 0000000000000000000000000000000000000000..901110b2ea92e58ba3362ed135d306e9e42c2290 --- /dev/null +++ b/lecture-06/class/assets/md-otyMe-S12.js @@ -0,0 +1 @@ +import{$ as e,E as t,Q as n,S as r,V as i,W as a,_ as o,_t as s,b as c,m as l,v as u,x as d,xt as f,yt as p,z as m}from"./modules/shiki-BFOesOFp.js";import{n as h,t as g}from"./slidev/context-DrkI8qiD.js";import{t as _}from"./default-Dm4DVug5.js";import{t as v}from"./slidev/VClicks-BJ1JuBhK.js";var y={class:`grid grid-cols-2 gap-8 mt-2 dl-tight`},b={viewBox:`0 0 400 190`,class:`dl-diagram`,role:`img`,"aria-label":`Five words of text give four next-word training examples: each word predicts the word after it`},x=[`x`],S=[`x`],C=[`d`],w=[`x`],T=[`x`],E={class:`mt-3 dl-callout`},D={__name:`class.md__slidev_32`,setup(D){let{$slidev:O,$nav:k,$clicksContext:A,$clicks:j,$page:M,$renderContext:N,$frontmatter:P}=h();return A.setup(),(h,D)=>{let O=v,k=a(`click`);return m(),u(_,p(t(s(g)(s(P),31))),{default:n(()=>[D[5]||=o(`h1`,null,`Why decoder-only took over`,-1),D[6]||=o(`p`,null,[d(`Not the most expressive design. The one with the most `),o(`strong`,null,`training data`),d(`.`)],-1),o(`div`,y,[o(`div`,null,[(m(),c(`svg`,b,[D[0]||=o(`defs`,null,[o(`marker`,{id:`l6s4-next`,markerWidth:`6`,markerHeight:`6`,refX:`5`,refY:`3`,orient:`auto`},[o(`path`,{class:`dl-dg-head`,d:`M0 0 L6 3 L0 6 z`})])],-1),D[1]||=o(`text`,{class:`dl-dg-small`,x:`6`,y:`24`},`predicts the next word`,-1),(m(),c(l,null,i([`river`,`bank`,`was`,`flooded`],(e,t)=>o(`g`,{key:`p`+t},[o(`rect`,{class:`dl-dg-fill`,x:6+t*78,y:`36`,width:`70`,height:`30`,rx:`4`},null,8,x),o(`text`,{class:`dl-dg-in`,x:41+t*78,y:`56`,"text-anchor":`middle`},f(e),9,S),o(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#l6s4-next)`,d:`M${41+t*78} 128 V72`},null,8,C)])),64)),(m(),c(l,null,i([`the`,`river`,`bank`,`was`,`flooded`],(e,t)=>o(`g`,{key:`t`+t},[o(`rect`,{class:`dl-dg-box`,x:6+t*78,y:`130`,width:`70`,height:`30`,rx:`4`},null,8,w),o(`text`,{class:`dl-dg-lab is-sm`,x:41+t*78,y:`150`,"text-anchor":`middle`},f(e),9,T)])),64)),D[2]||=o(`text`,{class:`dl-dg-small is-good`,x:`6`,y:`182`},`5 words of text → 4 training examples, no labels`,-1)]))]),o(`div`,null,[r(O,null,{default:n(()=>[...D[3]||=[o(`ul`,null,[o(`li`,null,[d(`Next-token prediction needs `),o(`strong`,null,`no labels`),d(`: any text is training data`)]),o(`li`,null,[o(`strong`,null,`Every position`),d(` is an example, so one document gives thousands`)]),o(`li`,null,`Any task written as text becomes next-token prediction`),o(`li`,null,`One stack instead of two: simpler to scale and to serve`)],-1)]]),_:1})])]),e((m(),c(`div`,E,[...D[4]||=[o(`p`,null,`The design that won was the one whose training data was free.`,-1)]])),[[k]])]),_:1},16)}}};export{D as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-r7fws9Pg.js b/lecture-06/class/assets/md-r7fws9Pg.js new file mode 100644 index 0000000000000000000000000000000000000000..ad86a0928067c1a1249cff92406fa6f2e439ce96 --- /dev/null +++ b/lecture-06/class/assets/md-r7fws9Pg.js @@ -0,0 +1 @@ +import{E as e,Q as t,S as n,_ as r,_t as i,v as a,yt as o,z as s}from"./modules/shiki-BFOesOFp.js";import{n as c,t as l}from"./slidev/context-DrkI8qiD.js";import{t as u}from"./TransformerGlyph-1pDKmZ2i.js";import{t as d}from"./section-C2g2VRmZ.js";var f={class:`absolute right-18 top-1/2 -translate-y-1/2`},p={__name:`class.md__slidev_26`,setup(p){let{$slidev:m,$nav:h,$clicksContext:g,$clicks:_,$page:v,$renderContext:y,$frontmatter:b}=c();return g.setup(),(c,p)=>{let m=u;return s(),a(d,o(e(i(l)(i(b),25))),{default:t(()=>[p[0]||=r(`h1`,null,`The original transformer`,-1),p[1]||=r(`p`,null,`One stack reads, one stack writes.`,-1),r(`div`,f,[n(m,{kind:`encdec`,size:190})])]),_:1},16)}}};export{p as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-rKswDcIu2.js b/lecture-06/class/assets/md-rKswDcIu2.js new file mode 100644 index 0000000000000000000000000000000000000000..21dccf37fba558cda83474321b13bb796c1c070f --- /dev/null +++ b/lecture-06/class/assets/md-rKswDcIu2.js @@ -0,0 +1 @@ +import{E as e,Q as t,S as n,_ as r,_t as i,v as a,yt as o,z as s}from"./modules/shiki-BFOesOFp.js";import{n as c,t as l}from"./slidev/context-DrkI8qiD.js";import{t as u}from"./TransformerGlyph-1pDKmZ2i.js";import{t as d}from"./section-C2g2VRmZ.js";var f={class:`absolute right-18 top-1/2 -translate-y-1/2`},p={__name:`class.md__slidev_38`,setup(p){let{$slidev:m,$nav:h,$clicksContext:g,$clicks:_,$page:v,$renderContext:y,$frontmatter:b}=c();return g.setup(),(c,p)=>{let m=u;return s(),a(d,o(e(i(l)(i(b),37))),{default:t(()=>[p[0]||=r(`h1`,null,`Where that leaves us`,-1),p[1]||=r(`p`,null,`One idea, applied twice per block.`,-1),r(`div`,f,[n(m,{kind:`block`,size:190})])]),_:1},16)}}};export{p as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/md-rca7ok54.css b/lecture-06/class/assets/md-rca7ok54.css new file mode 100644 index 0000000000000000000000000000000000000000..e05f98641af8c02e0c505fbe6d1239942e4d8dd3 --- /dev/null +++ b/lecture-06/class/assets/md-rca7ok54.css @@ -0,0 +1 @@ +.dl-citation[data-v-11a8cabc]{font-size:var(--dl-fs-citation);color:var(--dl-muted)}.dl-citation a[data-v-11a8cabc]{color:inherit;border-bottom:1px dotted} diff --git a/lecture-06/class/assets/modules/file-saver-BpWusTEB.js b/lecture-06/class/assets/modules/file-saver-BpWusTEB.js new file mode 100644 index 0000000000000000000000000000000000000000..d51ba687ddb2a77bc46265ef5845f6be048ed538 --- /dev/null +++ b/lecture-06/class/assets/modules/file-saver-BpWusTEB.js @@ -0,0 +1 @@ +import{t as e}from"../rolldown-runtime-hePW80VL.js";var t=e(((e,t)=>{(function(t,n){typeof define==`function`&&define.amd?define([],n):e===void 0?(n(),t.FileSaver={exports:{}}.exports):n()})(e,function(){function e(e,t){return t===void 0?t={autoBom:!1}:typeof t!=`object`&&(console.warn(`Deprecated: Expected third argument to be a object`),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}function n(e,t,n){var r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){s(r.response,t,n)},r.onerror=function(){console.error(`could not download file`)},r.send()}function r(e){var t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return 200<=t.status&&299>=t.status}function i(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{var t=document.createEvent(`MouseEvents`);t.initMouseEvent(`click`,!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var a=typeof window==`object`&&window.window===window?window:typeof self==`object`&&self.self===self?self:typeof global==`object`&&global.global===global?global:void 0,o=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=a.saveAs||(typeof window!=`object`||window!==a?function(){}:`download`in HTMLAnchorElement.prototype&&!o?function(e,t,o){var s=a.URL||a.webkitURL,c=document.createElement(`a`);t=t||e.name||`download`,c.download=t,c.rel=`noopener`,typeof e==`string`?(c.href=e,c.origin===location.origin?i(c):r(c.href)?n(e,t,o):i(c,c.target=`_blank`)):(c.href=s.createObjectURL(e),setTimeout(function(){s.revokeObjectURL(c.href)},4e4),setTimeout(function(){i(c)},0))}:`msSaveOrOpenBlob`in navigator?function(t,a,o){if(a=a||t.name||`download`,typeof t!=`string`)navigator.msSaveOrOpenBlob(e(t,o),a);else if(r(t))n(t,a,o);else{var s=document.createElement(`a`);s.href=t,s.target=`_blank`,setTimeout(function(){i(s)})}}:function(e,t,r,i){if(i||=open(``,`_blank`),i&&(i.document.title=i.document.body.innerText=`downloading...`),typeof e==`string`)return n(e,t,r);var s=e.type===`application/octet-stream`,c=/constructor/i.test(a.HTMLElement)||a.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||s&&c||o)&&typeof FileReader<`u`){var u=new FileReader;u.onloadend=function(){var e=u.result;e=l?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),i?i.location.href=e:location=e,i=null},u.readAsDataURL(e)}else{var d=a.URL||a.webkitURL,f=d.createObjectURL(e);i?i.location=f:location.href=f,i=null,setTimeout(function(){d.revokeObjectURL(f)},4e4)}});a.saveAs=s.saveAs=s,t!==void 0&&(t.exports=s)})}));export{t}; \ No newline at end of file diff --git a/lecture-06/class/assets/modules/shiki-BFOesOFp.js b/lecture-06/class/assets/modules/shiki-BFOesOFp.js new file mode 100644 index 0000000000000000000000000000000000000000..8d3c17f6d49fa18b33378a9b14228c1c28710a38 --- /dev/null +++ b/lecture-06/class/assets/modules/shiki-BFOesOFp.js @@ -0,0 +1,10 @@ +import{n as e}from"../rolldown-runtime-hePW80VL.js";function t(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var n={},r=[],i=()=>{},a=()=>!1,o=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),s=e=>e.startsWith(`onUpdate:`),c=Object.assign,l=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},u=Object.prototype.hasOwnProperty,d=(e,t)=>u.call(e,t),f=Array.isArray,p=e=>C(e)===`[object Map]`,m=e=>C(e)===`[object Set]`,h=e=>C(e)===`[object Date]`,g=e=>C(e)===`[object RegExp]`,_=e=>typeof e==`function`,v=e=>typeof e==`string`,y=e=>typeof e==`symbol`,b=e=>typeof e==`object`&&!!e,x=e=>(b(e)||_(e))&&_(e.then)&&_(e.catch),S=Object.prototype.toString,C=e=>S.call(e),w=e=>C(e).slice(8,-1),T=e=>C(e)===`[object Object]`,E=e=>v(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,D=t(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),ee=t(`bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo`),te=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},O=/-\w/g,k=te(e=>e.replace(O,e=>e.slice(1).toUpperCase())),ne=/\B([A-Z])/g,A=te(e=>e.replace(ne,`-$1`).toLowerCase()),re=te(e=>e.charAt(0).toUpperCase()+e.slice(1)),j=te(e=>e?`on${re(e)}`:``),M=(e,t)=>!Object.is(e,t),ie=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},oe=e=>{let t=parseFloat(e);return isNaN(t)?e:t},se=e=>{let t=v(e)?Number(e):NaN;return isNaN(t)?e:t},ce,le=()=>ce||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function ue(e,t){return e+JSON.stringify(t,(e,t)=>typeof t==`function`?t.toString():t)}var de=t(`Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol`);function fe(e){if(f(e)){let t={};for(let n=0;n{if(e){let n=e.split(me);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function _e(e){let t=``;if(v(e))t=e;else if(f(e))for(let n=0;nje(e,t))}var Ne=e=>!!(e&&e.__v_isRef===!0),Pe=e=>v(e)?e:e==null?``:f(e)||b(e)&&(e.toString===S||!_(e.toString))?Ne(e)?Pe(e.value):JSON.stringify(e,Fe,2):String(e),Fe=(e,t)=>Ne(t)?Fe(e,t.value):p(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Ie(t,r)+` =>`]=n,e),{})}:m(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Ie(e))}:y(t)?Ie(t):b(t)&&!f(t)&&!T(t)?String(t):t,Ie=(e,t=``)=>y(e)?`Symbol(${e.description??t})`:e;function Le(e){return e==null?`initial`:typeof e==`string`?e===``?` `:e:String(e)}var N,Re=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&N&&(N.active?(this.parent=N,this.index=(N.scopes||(N.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e0&&--this._on===0){if(N===this)N=this.prevScope;else{let e=N;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t0)return;if(Ke){let e=Ke;for(Ke=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Ge;){let t=Ge;for(Ge=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function Xe(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ze(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),et(r),tt(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Qe(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&($e(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function $e(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===lt)||(e.globalVersion=lt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Qe(e))))return;e.flags|=2;let t=e.dep,n=P,r=it;P=e,it=!0;try{Xe(e);let n=e.fn(e._value);(t.version===0||M(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{P=n,it=r,Ze(e),e.flags&=-3}}function et(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)et(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function tt(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function nt(e,t){e.effect instanceof Ue&&(e=e.effect.fn);let n=new Ue(e);t&&c(n,t);try{n.run()}catch(e){throw n.stop(),e}let r=n.run.bind(n);return r.effect=n,r}function rt(e){e.effect.stop()}var it=!0,at=[];function ot(){at.push(it),it=!1}function st(){let e=at.pop();it=e===void 0||e}function ct(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=P;P=void 0;try{t()}finally{P=e}}}var lt=0,ut=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},dt=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!P||!it||P===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==P)t=this.activeLink=new ut(P,this),P.deps?(t.prevDep=P.depsTail,P.depsTail.nextDep=t,P.depsTail=t):P.deps=P.depsTail=t,ft(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=P.depsTail,t.nextDep=void 0,P.depsTail.nextDep=t,P.depsTail=t,P.deps===t&&(P.deps=e)}return t}trigger(e){this.version++,lt++,this.notify(e)}notify(e){Je();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Ye()}}};function ft(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)ft(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var pt=new WeakMap,mt=Symbol(``),ht=Symbol(``),gt=Symbol(``);function _t(e,t,n){if(it&&P){let t=pt.get(e);t||pt.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new dt),r.map=t,r.key=n),r.track()}}function vt(e,t,n,r,i,a){let o=pt.get(e);if(!o){lt++;return}let s=e=>{e&&e.trigger()};if(Je(),t===`clear`)o.forEach(s);else{let i=f(e),a=i&&E(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===gt||!y(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(gt)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(mt)),p(e)&&s(o.get(ht)));break;case`delete`:i||(s(o.get(mt)),p(e)&&s(o.get(ht)));break;case`set`:p(e)&&s(o.get(mt))}}Ye()}function yt(e,t){let n=pt.get(e);return n&&n.get(t)}function bt(e){let t=F(e);return t===e?t:(_t(t,`iterate`,gt),ln(e)?t:t.map(fn))}function xt(e){return _t(e=F(e),`iterate`,gt),e}function St(e,t){return cn(e)?pn(sn(e)?fn(t):t):fn(t)}var Ct={__proto__:null,[Symbol.iterator](){return wt(this,Symbol.iterator,e=>St(this,e))},concat(...e){return bt(this).concat(...e.map(e=>f(e)?bt(e):e))},entries(){return wt(this,`entries`,e=>(e[1]=St(this,e[1]),e))},every(e,t){return Et(this,`every`,e,t,void 0,arguments)},filter(e,t){return Et(this,`filter`,e,t,e=>e.map(e=>St(this,e)),arguments)},find(e,t){return Et(this,`find`,e,t,e=>St(this,e),arguments)},findIndex(e,t){return Et(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return Et(this,`findLast`,e,t,e=>St(this,e),arguments)},findLastIndex(e,t){return Et(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return Et(this,`forEach`,e,t,void 0,arguments)},includes(...e){return Ot(this,`includes`,e)},indexOf(...e){return Ot(this,`indexOf`,e)},join(e){return bt(this).join(e)},lastIndexOf(...e){return Ot(this,`lastIndexOf`,e)},map(e,t){return Et(this,`map`,e,t,void 0,arguments)},pop(){return kt(this,`pop`)},push(...e){return kt(this,`push`,e)},reduce(e,...t){return Dt(this,`reduce`,e,t)},reduceRight(e,...t){return Dt(this,`reduceRight`,e,t)},shift(){return kt(this,`shift`)},some(e,t){return Et(this,`some`,e,t,void 0,arguments)},splice(...e){return kt(this,`splice`,e)},toReversed(){return bt(this).toReversed()},toSorted(e){return bt(this).toSorted(e)},toSpliced(...e){return bt(this).toSpliced(...e)},unshift(...e){return kt(this,`unshift`,e)},values(){return wt(this,`values`,e=>St(this,e))}};function wt(e,t,n){let r=xt(e),i=r[t]();return r!==e&&!ln(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var Tt=Array.prototype;function Et(e,t,n,r,i,a){let o=xt(e),s=o!==e&&!ln(e),c=o[t];if(c!==Tt[t]){let t=c.apply(e,a);return s?fn(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,St(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function Dt(e,t,n,r){let i=xt(e),a=i!==e&&!ln(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=St(e,t)),n.call(this,t,St(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?St(e,c):c}function Ot(e,t,n){let r=F(e);_t(r,`iterate`,gt);let i=r[t](...n);return(i===-1||i===!1)&&un(n[0])?(n[0]=F(n[0]),r[t](...n)):i}function kt(e,t,n=[]){ot(),Je();let r=F(e)[t].apply(e,n);return Ye(),st(),r}var At=t(`__proto__,__v_isRef,__isVue`),jt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(y));function Mt(e){y(e)||(e=String(e));let t=F(this);return _t(t,`has`,e),t.hasOwnProperty(e)}var Nt=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?$t:Qt:i?Zt:Xt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=f(e);if(!r){let e;if(a&&(e=Ct[t]))return e;if(t===`hasOwnProperty`)return Mt}let o=Reflect.get(e,t,I(e)?e:n);if((y(t)?jt.has(t):At(t))||(r||_t(e,`get`,t),i))return o;if(I(o)){let e=a&&E(t)?o:o.value;return r&&b(e)?rn(e):e}return b(o)?r?rn(o):tn(o):o}},Pt=class extends Nt{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=f(e)&&E(t);if(!this._isShallow){let e=cn(i);if(!ln(n)&&!cn(n)&&(i=F(i),n=F(n)),!a&&I(i)&&!I(n))return e||(i.value=n),!0}let o=a?Number(t)e,Vt=e=>Reflect.getPrototypeOf(e);function Ht(e,t,n){return function(...r){let i=this.__v_raw,a=F(i),o=p(a),s=e===`entries`||e===Symbol.iterator&&o,l=e===`keys`&&o,u=i[e](...r),d=n?Bt:t?pn:fn;return!t&&_t(a,`iterate`,l?ht:mt),c(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:s?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function Ut(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function Wt(e,t){let n={get(n){let r=this.__v_raw,i=F(r),a=F(n);e||(M(n,a)&&_t(i,`get`,n),_t(i,`get`,a));let{has:o}=Vt(i),s=t?Bt:e?pn:fn;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&_t(F(t),`iterate`,mt),t.size},has(t){let n=this.__v_raw,r=F(n),i=F(t);return e||(M(t,i)&&_t(r,`has`,t),_t(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=F(a),s=t?Bt:e?pn:fn;return!e&&_t(o,`iterate`,mt),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return c(n,e?{add:Ut(`add`),set:Ut(`set`),delete:Ut(`delete`),clear:Ut(`clear`)}:{add(e){let n=F(this),r=Vt(n),i=F(e),a=!t&&!ln(e)&&!cn(e)?i:e;return r.has.call(n,a)||M(e,a)&&r.has.call(n,e)||M(i,a)&&r.has.call(n,i)||(n.add(a),vt(n,`add`,a,a)),this},set(e,n){!t&&!ln(n)&&!cn(n)&&(n=F(n));let r=F(this),{has:i,get:a}=Vt(r),o=i.call(r,e);o||=(e=F(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?M(n,s)&&vt(r,`set`,e,n,s):vt(r,`add`,e,n),this},delete(e){let t=F(this),{has:n,get:r}=Vt(t),i=n.call(t,e);i||=(e=F(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&vt(t,`delete`,e,void 0,a),o},clear(){let e=F(this),t=e.size!==0,n=e.clear();return t&&vt(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=Ht(r,e,t)}),n}function Gt(e,t){let n=Wt(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(d(n,r)&&r in t?n:t,r,i)}var Kt={get:Gt(!1,!1)},qt={get:Gt(!1,!0)},Jt={get:Gt(!0,!1)},Yt={get:Gt(!0,!0)},Xt=new WeakMap,Zt=new WeakMap,Qt=new WeakMap,$t=new WeakMap;function en(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function tn(e){return cn(e)?e:on(e,!1,It,Kt,Xt)}function nn(e){return on(e,!1,Rt,qt,Zt)}function rn(e){return on(e,!0,Lt,Jt,Qt)}function an(e){return on(e,!0,zt,Yt,$t)}function on(e,t,n,r,i){if(!b(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=en(w(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function sn(e){return cn(e)?sn(e.__v_raw):!!(e&&e.__v_isReactive)}function cn(e){return!!(e&&e.__v_isReadonly)}function ln(e){return!!(e&&e.__v_isShallow)}function un(e){return e?!!e.__v_raw:!1}function F(e){let t=e&&e.__v_raw;return t?F(t):e}function dn(e){return!d(e,`__v_skip`)&&Object.isExtensible(e)&&ae(e,`__v_skip`,!0),e}var fn=e=>b(e)?tn(e):e,pn=e=>b(e)?rn(e):e;function I(e){return e?e.__v_isRef===!0:!1}function mn(e){return gn(e,!1)}function hn(e){return gn(e,!0)}function gn(e,t){return I(e)?e:new _n(e,t)}var _n=class{constructor(e,t){this.dep=new dt,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:F(e),this._value=t?e:fn(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||ln(e)||cn(e);e=n?e:F(e),M(e,t)&&(this._rawValue=e,this._value=n?e:fn(e),this.dep.trigger())}};function vn(e){e.dep&&e.dep.trigger()}function yn(e){return I(e)?e.value:e}function bn(e){return _(e)?e():yn(e)}var xn={get:(e,t,n)=>t===`__v_raw`?e:yn(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return I(i)&&!I(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Sn(e){return sn(e)?e:new Proxy(e,xn)}var Cn=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new dt,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}};function wn(e){return new Cn(e)}function Tn(e){let t=f(e)?Array(e.length):{};for(let n in e)t[n]=kn(e,n);return t}var En=class{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=y(t)?t:String(t),this._raw=F(e);let r=!0,i=e;if(!f(e)||y(this._key)||!E(this._key))do r=!un(i)||ln(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=yn(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&I(this._raw[this._key])){let t=this._object[this._key];if(I(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return yt(this._raw,this._key)}},Dn=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function On(e,t,n){return I(e)?e:_(e)?new Dn(e):b(e)&&arguments.length>1?kn(e,t,n):mn(e)}function kn(e,t,n){return new En(e,t,n)}var An=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new dt(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=lt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&P!==this)return qe(this,!0),!0}get value(){let e=this.dep.track();return $e(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function jn(e,t,n=!1){let r,i;return _(e)?r=e:(r=e.get,i=e.set),new An(r,i,n)}var Mn={GET:`get`,HAS:`has`,ITERATE:`iterate`},Nn={SET:`set`,ADD:`add`,DELETE:`delete`,CLEAR:`clear`},Pn={},Fn=new WeakMap,In=void 0;function Ln(){return In}function Rn(e,t=!1,n=In){if(n){let t=Fn.get(n);t||Fn.set(n,t=[]),t.push(e)}}function zn(e,t,r=n){let{immediate:a,deep:o,once:s,scheduler:c,augmentJob:u,call:d}=r,p=e=>o?e:ln(e)||o===!1||o===0?Bn(e,1):Bn(e),m,h,g,v,y=!1,b=!1;if(I(e)?(h=()=>e.value,y=ln(e)):sn(e)?(h=()=>p(e),y=!0):f(e)?(b=!0,y=e.some(e=>sn(e)||ln(e)),h=()=>e.map(e=>{if(I(e))return e.value;if(sn(e))return p(e);if(_(e))return d?d(e,2):e()})):h=_(e)?t?d?()=>d(e,2):e:()=>{if(g){ot();try{g()}finally{st()}}let t=In;In=m;try{return d?d(e,3,[v]):e(v)}finally{In=t}}:i,t&&o){let e=h,t=o===!0?1/0:o;h=()=>Bn(e(),t)}let x=Be(),S=()=>{m.stop(),x&&x.active&&l(x.effects,m)};if(s&&t){let e=t;t=(...t)=>{let n=e(...t);return S(),n}}let C=b?Array(e.length).fill(Pn):Pn,w=e=>{if(!(!(m.flags&1)||!m.dirty&&!e)){if(t){let n=m.run();if(e||o||y||(b?n.some((e,t)=>M(e,C[t])):M(n,C))){g&&g();let e=In;In=m;try{let e=[n,C===Pn?void 0:b&&C[0]===Pn?[]:C,v];C=n,d?d(t,3,e):t(...e)}finally{In=e}}}else m.run()}};return u&&u(w),m=new Ue(h),m.scheduler=c?()=>c(w,!1):w,v=e=>Rn(e,!1,m),g=m.onStop=()=>{let e=Fn.get(m);if(e){if(d)d(e,4);else for(let t of e)t();Fn.delete(m)}},t?a?w(!0):C=m.run():c?c(w.bind(null,!0),!0):m.run(),S.pause=m.pause.bind(m),S.resume=m.resume.bind(m),S.stop=S,S}function Bn(e,t=1/0,n){if(t<=0||!b(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,I(e))Bn(e.value,t,n);else if(f(e))for(let r=0;r{Bn(e,t,n)});else if(T(e)){for(let r in e)Bn(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Bn(e[r],t,n)}return e}var Vn=[];function Hn(e){Vn.push(e)}function Un(){Vn.pop()}function Wn(e,t){}var Gn={SETUP_FUNCTION:0,0:`SETUP_FUNCTION`,RENDER_FUNCTION:1,1:`RENDER_FUNCTION`,NATIVE_EVENT_HANDLER:5,5:`NATIVE_EVENT_HANDLER`,COMPONENT_EVENT_HANDLER:6,6:`COMPONENT_EVENT_HANDLER`,VNODE_HOOK:7,7:`VNODE_HOOK`,DIRECTIVE_HOOK:8,8:`DIRECTIVE_HOOK`,TRANSITION_HOOK:9,9:`TRANSITION_HOOK`,APP_ERROR_HANDLER:10,10:`APP_ERROR_HANDLER`,APP_WARN_HANDLER:11,11:`APP_WARN_HANDLER`,FUNCTION_REF:12,12:`FUNCTION_REF`,ASYNC_COMPONENT_LOADER:13,13:`ASYNC_COMPONENT_LOADER`,SCHEDULER:14,14:`SCHEDULER`,COMPONENT_UPDATE:15,15:`COMPONENT_UPDATE`,APP_UNMOUNT_CLEANUP:16,16:`APP_UNMOUNT_CLEANUP`},Kn={sp:`serverPrefetch hook`,bc:`beforeCreate hook`,c:`created hook`,bm:`beforeMount hook`,m:`mounted hook`,bu:`beforeUpdate hook`,u:`updated`,bum:`beforeUnmount hook`,um:`unmounted hook`,a:`activated hook`,da:`deactivated hook`,ec:`errorCaptured hook`,rtc:`renderTracked hook`,rtg:`renderTriggered hook`,0:`setup function`,1:`render function`,2:`watcher getter`,3:`watcher callback`,4:`watcher cleanup function`,5:`native event handler`,6:`component event handler`,7:`vnode hook`,8:`directive hook`,9:`transition hook`,10:`app errorHandler`,11:`app warnHandler`,12:`ref function`,13:`async component loader`,14:`scheduler flush`,15:`component update`,16:`app unmount cleanup function`};function qn(e,t,n,r){try{return r?e(...r):e()}catch(e){Yn(e,t,n)}}function Jn(e,t,n,r){if(_(e)){let i=qn(e,t,n,r);return i&&x(i)&&i.catch(e=>{Yn(e,t,n)}),i}if(f(e)){let i=[];for(let a=0;a>>1,i=Zn[r],a=dr(i);a=dr(n)?Zn.push(e):Zn.splice(ar(t),0,e),e.flags|=1,sr()}}function sr(){rr||=nr.then(fr)}function cr(e){if(!f(e))er&&e.id===-1?er.splice(tr+1,0,e):e.flags&1||($n.push(e),e.flags|=1);else for(let t=0;tdr(e)-dr(t));if($n.length=0,er){for(let t=0;te.id==null?e.flags&2?-1:1/0:e.id;function fr(e){try{for(Qn=0;Qnpr.emit(e,...t)),mr=[]):typeof window<`u`&&window.HTMLElement&&!(window.navigator?.userAgent)?.includes(`jsdom`)?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(e=>{hr(e,t)}),setTimeout(()=>{pr||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,mr=[])},3e3)):mr=[]}var L=null,gr=null;function _r(e){let t=L;return L=e,gr=e&&e.type.__scopeId||null,t}function vr(e){gr=e}function yr(){gr=null}var br=e=>xr;function xr(e,t=L,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&xs(-1);let i=_r(t),a=gs.length,o;try{o=e(...n)}finally{for(let e=gs.length;e>a;e--)ys();_r(i),r._d&&xs(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Sr(e,t){if(L===null)return e;let r=cc(L),i=e.dirs||=[];for(let e=0;e1)return n&&_(t)?t.call(r&&r.proxy):t}}function Er(){return!!(Gs()||uo)}var Dr=Symbol.for(`v-scx`),Or=()=>Tr(Dr);function kr(e,t){return Nr(e,null,t)}function Ar(e,t){return Nr(e,null,{flush:`post`})}function jr(e,t){return Nr(e,null,{flush:`sync`})}function Mr(e,t,n){return Nr(e,t,n)}function Nr(e,t,r=n){let{immediate:a,deep:o,flush:s,once:l}=r,u=c({},r),d=t&&a||!t&&s!==`post`,f;if(Zs){if(s===`sync`){let e=Or();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=i,e.resume=i,e.pause=i,e}}let p=H;u.call=(e,t,n)=>Jn(e,p,t,n);let m=!1;s===`post`?u.scheduler=e=>{R(e,p&&p.suspense)}:s!==`sync`&&(m=!0,u.scheduler=(e,t)=>{t?e():or(e)}),u.augmentJob=e=>{t&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=zn(e,t,u);return Zs&&(f?f.push(h):d&&h()),h}function Pr(e,t,n){let r=this.proxy,i=v(e)?e.includes(`.`)?Fr(r,e):()=>r[e]:e.bind(r,r),a;_(t)?a=t:(a=t.handler,n=t);let o=Js(this),s=Nr(i,a.bind(r),n);return o(),s}function Fr(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;ee.__isTeleport,zr=e=>e&&(e.disabled||e.disabled===``),Br=e=>e&&(e.defer||e.defer===``),Vr=e=>typeof SVGElement<`u`&&e instanceof SVGElement,Hr=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,Ur=(e,t)=>{let n=e&&e.to;return v(n)?t?t(n):null:n},Wr={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g,parentNode:_}}=l,v=zr(t.props),{dynamicChildren:y}=t,b=(e,t,n)=>{e.shapeFlag&16&&u(e.children,t,n,i,a,o,s,c)},x=(e=t)=>{let n=zr(e.props),r=e.target=Ur(e.props,m),a=Yr(r,e,h,p);r&&(o!==`svg`&&Vr(r)?o=`svg`:o!==`mathml`&&Hr(r)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(b(e,r,a),Jr(e,!1)))},S=e=>{let t=()=>{if(Ir.get(e)===t){if(Ir.delete(e),zr(e.props)){let t=_(e.el)||n;b(e,t,e.anchor),Jr(e,!0)}x(e)}};Ir.set(e,t),R(t,a)};if(e==null){let e=t.el=h(``),i=t.anchor=h(``);if(p(e,n,r),p(i,n,r),Br(t.props)||a&&a.pendingBranch){S(t);return}v&&(b(t,n,i),Jr(t,!0)),x()}else{t.el=e.el;let r=t.anchor=e.anchor,u=Ir.get(e);if(u){u.flags|=8,Ir.delete(e),S(t);return}t.targetStart=e.targetStart;let p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=zr(e.props),_=g?n:p,b=g?r:h;if(o===`svg`||Vr(p)?o=`svg`:(o===`mathml`||Hr(p))&&(o=`mathml`),y?(f(e.dynamicChildren,y,_,i,a,o,s),Xo(e,t,!0)):c||d(e,t,_,b,i,a,o,s,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Gr(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=Ur(t.props,m);e&&(t.target=e,Gr(t,e,null,l,0))}else g&&Gr(t,p,h,l,1);Jr(t,v)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e,p=zr(f),m=a||!p,h=Ir.get(e);if(h&&(h.flags|=8,Ir.delete(e)),d&&(i(l),i(u)),a&&i(c),!h&&(p||d)&&o&16)for(let e=0;e{e.isMounted=!0}),sa(()=>{e.isUnmounting=!0}),e}var $r=[Function,Array],ei={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:$r,onEnter:$r,onAfterEnter:$r,onEnterCancelled:$r,onBeforeLeave:$r,onLeave:$r,onAfterLeave:$r,onLeaveCancelled:$r,onBeforeAppear:$r,onAppear:$r,onAfterAppear:$r,onAppearCancelled:$r},ti=e=>{let t=e.subTree;return t.component?ti(t.component):t},ni={name:`BaseTransition`,props:ei,setup(e,{slots:t}){let n=Gs(),r=Qr();return()=>{let i=t.default&&ui(t.default(),!0),a=i&&i.length?ri(i):n.subTree?Is():void 0;if(!a)return;let o=F(e),{mode:s}=o;if(r.isLeaving)return si(a);let c=ci(a);if(!c)return si(a);let l=oi(c,o,r,n,e=>l=e);c.type!==B&&li(c,l);let u=n.subTree&&ci(n.subTree);if(u&&u.type!==B&&!Es(u,c)&&ti(n).type!==B){let e=oi(u,o,r,n);if(li(u,e),s===`out-in`&&c.type!==B)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete e.afterLeave,u=void 0},si(a);s===`in-out`&&c.type!==B?e.delayLeave=(e,t,n)=>{let i=ai(r,u);i[String(u.key)]=u,e[Xr]=()=>{t(),e[Xr]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{n(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&=void 0;return a}}};function ri(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==B){t=n;break}}return t}var ii=ni;function ai(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function oi(e,t,n,r,i){let{appear:a,mode:o,persisted:s=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:p,onLeave:m,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:_,onAppear:v,onAfterAppear:y,onAppearCancelled:b}=t,x=String(e.key),S=ai(n,e),C=(e,t)=>{e&&Jn(e,r,9,t)},w=(e,t)=>{let n=t[1];C(e,t),f(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},T={mode:o,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted){if(a)r=_||c;else return}t[Xr]&&t[Xr](!0);let i=S[x];i&&Es(e,i)&&i.el[Xr]&&i.el[Xr](),C(r,[t])},enter(t){if(S[x]===e)return;let r=l,i=u,o=d;if(!n.isMounted){if(a)r=v||l,i=y||u,o=b||d;else return}let s=!1;t[Zr]=e=>{s||(s=!0,C(e?o:i,[t]),T.delayedLeave&&T.delayedLeave(),t[Zr]=void 0)};let c=t[Zr].bind(null,!1);r?w(r,[t,c]):c()},leave(t,r){let i=String(e.key);if(t[Zr]&&t[Zr](!0),n.isUnmounting)return r();C(p,[t]);let a=!1;t[Xr]=n=>{a||(a=!0,r(),C(n?g:h,[t]),t[Xr]=void 0,S[i]===e&&delete S[i])};let o=t[Xr].bind(null,!1);S[i]=e,m?w(m,[t,o]):o()},clone(e){let a=oi(e,t,n,r,i);return i&&i(a),a}};return T}function si(e){if(Ki(e))return e=Ns(e),e.children=null,e}function ci(e){if(!Ki(e))return Rr(e.type)&&e.children?ri(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&_(n.default))return n.default()}}function li(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let n=e.component.subTree;li(Rr(n.type)&&ci(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ui(e,t=!1,n){let r=[],i=0;for(let a=0;a1)for(let e=0;er.value,set:e=>r.value=e})}return r}function hi(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var gi=new WeakMap;function _i(e,t,r,i,o=!1){if(f(e)){e.forEach((e,n)=>_i(e,t&&(f(t)?t[n]:t),r,i,o));return}if(Ui(i)&&!o){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&_i(e,t,r,i.component.subTree);return}let s=i.shapeFlag&4?cc(i.component):i.el,c=o?null:s,{i:u,r:p}=e,m=t&&t.r,h=u.refs===n?u.refs={}:u.refs,g=u.setupState,y=F(g),b=g===n?a:e=>!hi(h,e)&&d(y,e),x=(e,t)=>!(t&&hi(h,t));if(m!=null&&m!==p){if(vi(t),v(m))h[m]=null,b(m)&&(g[m]=null);else if(I(m)){let e=t;x(m,e.k)&&(m.value=null),e.k&&(h[e.k]=null)}}if(_(p))qn(p,u,12,[c,h]);else{let t=v(p),n=I(p);if(t||n){let i=()=>{if(e.f){let n=t?b(p)?g[p]:h[p]:x(p)||!e.k?p.value:h[e.k];if(o)f(n)&&l(n,s);else if(f(n))n.includes(s)||n.push(s);else if(t)h[p]=[s],b(p)&&(g[p]=h[p]);else{let t=[s];x(p,e.k)&&(p.value=t),e.k&&(h[e.k]=t)}}else t?(h[p]=c,b(p)&&(g[p]=c)):n&&(x(p,e.k)&&(p.value=c),e.k&&(h[e.k]=c))};if(c){let t=()=>{i(),gi.delete(e)};t.id=-1,gi.set(e,t),R(t,r)}else vi(e),i()}}}function vi(e){let t=gi.get(e);t&&(t.flags|=8,gi.delete(e))}var yi=!1,bi=()=>{yi||=(console.error(`Hydration completed but contains mismatches.`),!0)},xi=e=>e.namespaceURI.includes(`svg`)&&e.tagName!==`foreignObject`,Si=e=>e.namespaceURI.includes(`MathML`),Ci=e=>{if(e.nodeType===1){if(xi(e))return`svg`;if(Si(e))return`mathml`}},wi=e=>e.nodeType===8;function Ti(e){let{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:a,parentNode:s,remove:c,insert:l,createComment:u}}=e,d=(e,t)=>{if(!t.hasChildNodes()){n(null,e,t),ur(),t._vnode=e;return}f(t.firstChild,e,null,null,null),ur(),t._vnode=e},f=(n,r,o,c,u,d=!1)=>{d||=!!r.dynamicChildren;let b=wi(n)&&n.data===`[`,x=()=>g(n,r,o,c,u,b),{type:S,ref:C,shapeFlag:w,patchFlag:T}=r,E=n.nodeType;r.el=n,T===-2&&(d=!1,r.dynamicChildren=null);let D=null;switch(S){case ms:E===3?(n.data!==r.children&&(bi(),n.data=r.children),D=a(n)):r.children===``?(l(r.el=i(``),s(n),n),D=n):D=x();break;case B:y(n)?(D=a(n),v(r.el=n.content.firstChild,n,o)):D=E!==8||b?x():a(n);break;case hs:if(b&&(n=a(n),E=n.nodeType),E===1||E===3){D=n;let e=!r.children.length;for(let t=0;t{s||=!!t.dynamicChildren;let{type:l,dynamicProps:u,props:d,patchFlag:f,shapeFlag:p,dirs:h,transition:g}=t,_=l===`input`||l===`option`,b=!!u;if(_||b||f!==-1){h&&Cr(t,null,n,`created`);let l=!1;if(y(e)){l=Yo(null,g)&&n&&n.vnode.props&&n.vnode.props.appear;let r=e.content.firstChild;if(l){let e=r.getAttribute(`class`);e&&(r.$cls=e),g.beforeEnter(r)}v(r,e,n),t.el=e=r}if(p&16&&!(d&&(d.innerHTML||d.textContent))){let r=m(e.firstChild,t,e,n,i,a,s);for(r&&!Ai(e,1)&&bi();r;){let e=r;r=r.nextSibling,c(e)}}else if(p&8){let n=t.children;n[0]===` +`&&(e.tagName===`PRE`||e.tagName===`TEXTAREA`)&&(n=n.slice(1));let{textContent:r}=e;r!==n&&r!==n.replace(/\r\n|\r/g,` +`)&&(Ai(e,0)||bi(),e.textContent=t.children)}if(d){if(_||b||!s||f&48){let t=e.tagName.includes(`-`),i=e.namespaceURI.includes(`svg`)?`svg`:e.namespaceURI.includes(`MathML`)?`mathml`:void 0;for(let a in d)if(_&&(a.endsWith(`value`)||a===`indeterminate`)||o(a)&&!D(a)||a[0]===`.`||t&&!D(a)||u&&u.includes(a)){if(Di(e,a,d[a]))continue;r(e,a,null,d[a],i,n)}}else if(d.onClick)r(e,`onClick`,null,d.onClick,void 0,n);else if(f&4&&sn(d.style))for(let e in d.style)d.style[e]}let x;(x=d&&d.onVnodeBeforeMount)&&Vs(x,n,t),h&&Cr(t,null,n,`beforeMount`),((x=d&&d.onVnodeMounted)||h||l)&&ds(()=>{x&&Vs(x,n,t),l&&g.enter(e),h&&Cr(t,null,n,`mounted`)},i)}return e.nextSibling},m=(e,t,r,o,s,c,u)=>{u||=!!t.dynamicChildren;let d=t.children,p=d.length,m=!1;for(let t=0;t{let{slotScopeIds:c}=t;c&&(i=i?i.concat(c):c);let d=s(e),f=m(a(e),t,d,n,r,i,o);return f&&wi(f)&&f.data===`]`?a(t.anchor=f):(bi(),l(t.anchor=u(`]`),d,f),f)},g=(e,t,r,i,o,l)=>{if(Mi(e,t)||bi(),t.el=null,l){let t=_(e);for(;;){let n=a(e);if(n&&n!==t)c(n);else break}}let u=a(e),d=s(e);return c(e),n(null,t,d,u,r,i,Ci(d),o),r&&(r.vnode.el=t.el,To(r,t.el)),u},_=(e,t=`[`,n=`]`)=>{let r=0;for(;e;)if(e=a(e),e&&wi(e)&&(e.data===t&&r++,e.data===n)){if(r===0)return a(e);r--}return e},v=(e,t,n)=>{let r=t.parentNode;r&&r.replaceChild(e,t);let i=n;for(;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},y=e=>e.nodeType===1&&e.tagName===`TEMPLATE`;return[d,f]}var Ei=new Set([`src`,`srcset`,`href`,`poster`]);function Di(e,t,n){return Ei.has(t)?e.getAttribute(t)===(n==null?null:`${n}`):!1}var Oi=`data-allow-mismatch`,ki={0:`text`,1:`children`,2:`class`,3:`style`,4:`attribute`};function Ai(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Oi);)e=e.parentElement;return ji(e&&e.getAttribute(Oi),t)}function ji(e,t){if(e==null)return!1;if(e===``)return!0;{let n=e.split(`,`);return t===0&&n.includes(`children`)?!0:n.includes(ki[t])}}function Mi(e,t){return Ai(e.parentElement,1)||Ni(e)||Pi(t)}function Ni(e){return e.nodeType===1&&ji(e.getAttribute(Oi),1)}function Pi({props:e}){let t=e&&e[Oi];return typeof t==`string`&&ji(t,1)}var Fi=le().requestIdleCallback||(e=>setTimeout(e,1)),Ii=le().cancelIdleCallback||(e=>clearTimeout(e)),Li=(e=1e4)=>t=>{let n=Fi(t,{timeout:e});return()=>Ii(n)};function Ri(e){let{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=window;return(t>0&&t0&&r0&&n0&&i(t,n)=>{let r=new IntersectionObserver(e=>{for(let n of e)if(n.isIntersecting){r.disconnect(),t();break}},e);return n(e=>{if(e instanceof Element){if(Ri(e))return t(),r.disconnect(),!1;r.observe(e)}}),()=>r.disconnect()},Bi=e=>t=>{if(e){let n=matchMedia(e);if(n.matches)t();else return n.addEventListener(`change`,t,{once:!0}),()=>n.removeEventListener(`change`,t)}},Vi=(e=[])=>(t,n)=>{v(e)&&(e=[e]);let r=!1,i=e=>{r||(r=!0,a(),t(),e.target.dispatchEvent(new e.constructor(e.type,e)))},a=()=>{n(t=>{for(let n of e)t.removeEventListener(n,i)})};return n(t=>{for(let n of e)t.addEventListener(n,i,{once:!0})}),a};function Hi(e,t){if(wi(e)&&e.data===`[`){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(wi(r)){if(r.data===`]`){if(--n===0)break}else r.data===`[`&&n++}r=r.nextSibling}}else t(e)}var Ui=e=>!!e.type.__asyncLoader;function Wi(e){_(e)&&(e={loader:e});let{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:c}=e,l=null,u,d=0,f=()=>(d++,l=null,p()),p=()=>{let e;return l||(e=l=t().catch(e=>{if(e=e instanceof Error?e:Error(String(e)),c)return new Promise((t,n)=>{c(e,()=>t(f()),()=>n(e),d+1)});throw e}).then(t=>e!==l&&l?l:(t&&(t.__esModule||t[Symbol.toStringTag]===`Module`)&&(t=t.default),u=t,t)))};return di({name:`AsyncComponentWrapper`,__asyncLoader:p,__asyncHydrate(e,t,n){let r=e.isConnected,i=!1;(t.bu||=[]).push(()=>i=!0);let o=()=>{i||!e.parentNode||r&&!e.isConnected||n()},s=a?()=>{let n=a(o,t=>Hi(e,t));n&&(t.bum||=[]).push(n)}:o;u?s():p().then(()=>!t.isUnmounted&&s())},get __asyncResolved(){return u},setup(){let e=H;if(pi(e),u)return()=>Gi(u,e);let t=t=>{l=null,Yn(t,e,13,!r)};if(s&&e.suspense||Zs)return p().then(t=>()=>Gi(t,e)).catch(e=>(t(e),()=>r?V(r,{error:e}):null));let a=mn(!1),c=mn(),d=mn(!!i),f,m;return ca(()=>{f!=null&&clearTimeout(f),m!=null&&clearTimeout(m)}),i&&(m=setTimeout(()=>{e.isUnmounted||(d.value=!1)},i)),o!=null&&(f=setTimeout(()=>{if(!e.isUnmounted&&!a.value&&!c.value){let e=Error(`Async component timed out after ${o}ms.`);t(e),c.value=e}},o)),p().then(()=>{e.isUnmounted||(a.value=!0,e.parent&&Ki(e.parent.vnode)&&e.parent.update())}).catch(n=>{if(e.isUnmounted){l=null;return}t(n),c.value=n}),()=>{if(a.value&&u)return Gi(u,e);if(c.value&&r)return V(r,{error:c.value});if(n&&!d.value)return Gi(n,e)}}})}function Gi(e,t){let{ref:n,props:r,children:i,ce:a}=t.vnode,o=V(e,r,i);return o.ref=n,o.ce=a,delete t.vnode.ce,o}var Ki=e=>e.type.__isKeepAlive,qi={name:`KeepAlive`,__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){let n=Gs(),r=n.ctx;if(!r.renderer)return()=>{let e=t.default&&t.default();return e&&e.length===1?e[0]:e};let i=new Map,a=new Set,o=null,s=n.suspense,{renderer:{p:c,m:l,um:u,o:{createElement:d}}}=r,f=d(`div`);r.activate=(e,t,n,r,i)=>{let a=e.component;l(e,t,n,0,s),c(a.vnode,e,t,n,a,s,r,e.slotScopeIds,i),R(()=>{a.isDeactivated=!1,a.a&&ie(a.a);let t=e.props&&e.props.onVnodeMounted;t&&Vs(t,a.parent,e)},s)},r.deactivate=e=>{let t=e.component;$o(t.m),$o(t.a),l(e,f,null,1,s),R(()=>{t.da&&ie(t.da);let n=e.props&&e.props.onVnodeUnmounted;n&&Vs(n,t.parent,e),t.isDeactivated=!0},s)};function p(e){$i(e),u(e,n,s,!0)}function m(e){i.forEach((t,n)=>{let r=lc(Ui(t)?t.type.__asyncResolved||{}:t.type);r&&!e(r)&&h(n)})}function h(e){let t=i.get(e);t&&(!o||!Es(t,o))?p(t):o&&$i(o),i.delete(e),a.delete(e)}Mr(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>Ji(e,t)),t&&m(e=>!Ji(t,e))},{flush:`post`,deep:!0});let g=null,_=()=>{g!=null&&(ts(n.subTree.type)?R(()=>{i.set(g,ea(n.subTree))},n.subTree.suspense):i.set(g,ea(n.subTree)))};return ia(_),oa(_),sa(()=>{i.forEach(e=>{let{subTree:t,suspense:r}=n,i=ea(t);if(e.type===i.type&&e.key===i.key){$i(i);let e=i.component.da;e&&R(e,r);return}p(e)})}),()=>{if(g=null,!t.default)return o=null;let n=t.default(),r=n[0];if(n.length>1)return o=null,n;if(!Ts(r)||!(r.shapeFlag&4)&&!(r.shapeFlag&128))return o=null,r;let s=ea(r);if(s.type===B)return o=null,s;let c=s.type,l=lc(Ui(s)?s.type.__asyncResolved||{}:c),{include:u,exclude:d,max:f}=e;if(u&&(!l||!Ji(u,l))||d&&l&&Ji(d,l))return s.shapeFlag&=-257,o=s,r;let p=s.key==null?c:s.key,m=i.get(p);return s.el&&(s=Ns(s),r.shapeFlag&128&&(r.ssContent=s)),g=p,m?(s.el=m.el,s.component=m.component,s.transition&&li(s,s.transition),s.shapeFlag|=512,a.delete(p),a.add(p)):(a.add(p),f&&a.size>parseInt(f,10)&&h(a.values().next().value)),s.shapeFlag|=256,o=s,ts(r.type)?r:s}}};function Ji(e,t){return f(e)?e.some(e=>Ji(e,t)):v(e)?e.split(`,`).includes(t):g(e)?(e.lastIndex=0,e.test(t)):!1}function Yi(e,t){Zi(e,`a`,t)}function Xi(e,t){Zi(e,`da`,t)}function Zi(e,t,n=H){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(ta(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Ki(e.parent.vnode)&&Qi(r,t,n,e),e=e.parent}}function Qi(e,t,n,r){let i=ta(t,e,r,!0);ca(()=>{l(r[t],i)},n)}function $i(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function ea(e){return e.shapeFlag&128?e.ssContent:e}function ta(e,t,n=H,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{ot();let i=Js(n),a=Jn(t,n,e,r);return i(),st(),a};return r?i.unshift(a):i.push(a),a}}var na=e=>(t,n=H)=>{(!Zs||e===`sp`)&&ta(e,(...e)=>t(...e),n)},ra=na(`bm`),ia=na(`m`),aa=na(`bu`),oa=na(`u`),sa=na(`bum`),ca=na(`um`),la=na(`sp`),ua=na(`rtg`),da=na(`rtc`);function fa(e,t=H){ta(`ec`,e,t)}var pa=`components`,ma=`directives`;function ha(e,t){return ya(pa,e,!0,t)||e}var ga=Symbol.for(`v-ndc`);function _a(e){return v(e)?ya(pa,e,!1)||e:e||ga}function va(e){return ya(ma,e)}function ya(e,t,n=!0,r=!1){let i=L||H;if(i){let n=i.type;if(e===pa){let e=lc(n,!1);if(e&&(e===t||e===k(t)||e===re(k(t))))return n}let a=ba(i[e]||n[e],t)||ba(i.appContext[e],t);return!a&&r?n:a}}function ba(e,t){return e&&(e[t]||e[k(t)]||e[re(k(t))])}function xa(e,t,n,r){let i,a=n&&n[r],o=f(e);if(o||v(e)){let n=o&&sn(e),r=!1,s=!1;n&&(r=!ln(e),s=cn(e),e=xt(e)),i=Array(e.length);for(let n=0,o=e.length;nt(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r{let t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function Ca(e,t,n,r,i,a){if(n??={},L.ce||L.parent&&Ui(L.parent)&&L.parent.ce){let e=a!=null&&n.key==null?c({},n,{key:a}):n,i=Object.keys(e).length>0;return t!=="default"&&(e.name=t),vs(),ws(z,null,[V(`slot`,e,r&&r())],i?-2:64)}let o=e[t];o&&o._c&&(o._d=!1);let s=gs.length;vs();let l;try{let i=o&&wa(o(n)),s=n.key||a||i&&i.key;l=ws(z,{key:(s&&!y(s)?s:`_${t}`)+(!i&&r?`_fb`:``)},i||(r?r():[]),i&&e._===1?64:-2)}catch(e){for(let e=gs.length;e>s;e--)ys();throw e}finally{o&&o._c&&(o._d=!0)}return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+`-s`]),l}function wa(e){return e.some(e=>!Ts(e)||!(e.type===B||e.type===z&&!wa(e.children)))?e:null}function Ta(e,t){let n={};for(let r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:j(r)]=e[r];return n}var Ea=e=>e?Xs(e)?cc(e):Ea(e.parent):null,Da=c(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ea(e.parent),$root:e=>Ea(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Za(e),$forceUpdate:e=>e.f||=()=>{or(e.update)},$nextTick:e=>e.n||=ir.bind(e.proxy),$watch:e=>Pr.bind(e)}),Oa=(e,t)=>e!==n&&!e.__isScriptSetup&&d(e,t),ka={get({_:e},t){if(t===`__v_skip`)return!0;let{ctx:r,setupState:i,data:a,props:o,accessCache:s,type:c,appContext:l}=e;if(t[0]!==`$`){let e=s[t];if(e!==void 0)switch(e){case 1:return i[t];case 2:return a[t];case 4:return r[t];case 3:return o[t]}else if(Oa(i,t))return s[t]=1,i[t];else if(a!==n&&d(a,t))return s[t]=2,a[t];else if(d(o,t))return s[t]=3,o[t];else if(r!==n&&d(r,t))return s[t]=4,r[t];else Ka&&(s[t]=0)}let u=Da[t],f,p;if(u)return t===`$attrs`&&_t(e.attrs,`get`,``),u(e);if((f=c.__cssModules)&&(f=f[t]))return f;if(r!==n&&d(r,t))return s[t]=4,r[t];if(p=l.config.globalProperties,d(p,t))return p[t]},set({_:e},t,r){let{data:i,setupState:a,ctx:o}=e;return Oa(a,t)?(a[t]=r,!0):i!==n&&d(i,t)?(i[t]=r,!0):d(e.props,t)||t[0]===`$`&&t.slice(1)in e?!1:(o[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:i,appContext:a,props:o,type:s}},c){let l;return!!(r[c]||e!==n&&c[0]!==`$`&&d(e,c)||Oa(t,c)||d(o,c)||d(i,c)||d(Da,c)||d(a.config.globalProperties,c)||(l=s.__cssModules)&&l[c])},defineProperty(e,t,n){return n.get==null?d(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}},Aa=c({},ka,{get(e,t){if(t!==Symbol.unscopables)return ka.get(e,t,e)},has(e,t){return t[0]!==`_`&&!de(t)}});function ja(){return null}function Ma(){return null}function Na(e){}function Pa(e){}function Fa(){return null}function Ia(){}function La(e,t){return null}function Ra(){return Ba(`useSlots`).slots}function za(){return Ba(`useAttrs`).attrs}function Ba(e){let t=Gs();return t.setupContext||=sc(t)}function Va(e){return f(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function Ha(e,t){let n=Va(e);for(let e in t){if(e.startsWith(`__skip`))continue;let r=n[e];r?f(r)||_(r)?r=n[e]={type:r,default:t[e]}:r.default=t[e]:r===null&&(r=n[e]={default:t[e]}),r&&t[`__skip_${e}`]&&(r.skipFactory=!0)}return n}function Ua(e,t){return!e||!t?e||t:f(e)&&f(t)?e.concat(t):c({},Va(e),Va(t))}function Wa(e,t){let n={};for(let r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function Ga(e){let t=Gs(),n=Zs,r=e();Ys(),n&&qs(!1);let i=()=>{Js(t),n&&qs(!0)},a=()=>{Gs()!==t&&t.scope.off(),Ys(),n&&qs(!1)};return x(r)&&(r=r.catch(e=>{throw i(),Promise.resolve().then(()=>Promise.resolve().then(a)),e})),[r,()=>{i(),Promise.resolve().then(a)}]}var Ka=!0;function qa(e){let t=Za(e),n=e.proxy,r=e.ctx;Ka=!1,t.beforeCreate&&Ya(t.beforeCreate,e,`bc`);let{data:a,computed:o,methods:s,watch:c,provide:l,inject:u,created:d,beforeMount:p,mounted:m,beforeUpdate:h,updated:g,activated:v,deactivated:y,beforeDestroy:x,beforeUnmount:S,destroyed:C,unmounted:w,render:T,renderTracked:E,renderTriggered:D,errorCaptured:ee,serverPrefetch:te,expose:O,inheritAttrs:k,components:ne,directives:A,filters:re}=t;if(u&&Ja(u,r,null),s)for(let e in s){let t=s[e];_(t)&&(r[e]=t.bind(n))}if(a){let t=a.call(n,n);b(t)&&(e.data=tn(t))}if(Ka=!0,o)for(let e in o){let t=o[e],a=dc({get:_(t)?t.bind(n,n):_(t.get)?t.get.bind(n,n):i,set:!_(t)&&_(t.set)?t.set.bind(n):i});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(c)for(let e in c)Xa(c[e],r,n,e);if(l){let e=_(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{wr(t,e[t])})}d&&Ya(d,e,`c`);function j(e,t){f(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(j(ra,p),j(ia,m),j(aa,h),j(oa,g),j(Yi,v),j(Xi,y),j(fa,ee),j(da,E),j(ua,D),j(sa,S),j(ca,w),j(la,te),f(O)){if(O.length){let t=e.exposed||={};O.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={}}T&&e.render===i&&(e.render=T),k!=null&&(e.inheritAttrs=k),ne&&(e.components=ne),A&&(e.directives=A),te&&pi(e)}function Ja(e,t,n=i){f(e)&&(e=no(e));for(let n in e){let r=e[n],i;i=b(r)?`default`in r?Tr(r.from||n,r.default,!0):Tr(r.from||n):Tr(r),I(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function Ya(e,t,n){Jn(f(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Xa(e,t,n,r){let i=r.includes(`.`)?Fr(n,r):()=>n[r];if(v(e)){let n=t[e];_(n)&&Mr(i,n)}else if(_(e))Mr(i,e.bind(n));else if(b(e)){if(f(e))e.forEach(e=>Xa(e,t,n,r));else{let r=_(e.handler)?e.handler.bind(n):t[e.handler];_(r)&&Mr(i,r,e)}}}function Za(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>Qa(c,e,o,!0)),Qa(c,t,o)),b(t)&&a.set(t,c),c}function Qa(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&Qa(e,a,n,!0),i&&i.forEach(t=>Qa(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=$a[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var $a={data:eo,props:ao,emits:ao,methods:io,computed:io,beforeCreate:ro,created:ro,beforeMount:ro,mounted:ro,beforeUpdate:ro,updated:ro,beforeDestroy:ro,beforeUnmount:ro,destroyed:ro,unmounted:ro,activated:ro,deactivated:ro,errorCaptured:ro,serverPrefetch:ro,components:io,directives:io,watch:oo,provide:eo,inject:to};function eo(e,t){return t?e?function(){return c(_(e)?e.call(this,this):e,_(t)?t.call(this,this):t)}:t:e}function to(e,t){return io(no(e),no(t))}function no(e){if(f(e)){let t={};for(let n=0;n{let l,u=n,d;return jr(()=>{let t=e[a];M(l,t)&&(l=t,c())}),{get(){return s(),r.get?r.get(l):l},set(e){let s=r.set?r.set(e):e;if(!M(s,l)&&!(u!==n&&M(e,u)))return;let f=i.vnode.props,p=!!(f&&(t in f||a in f||o in f)&&(`onUpdate:${t}`in f||`onUpdate:${a}`in f||`onUpdate:${o}`in f));p||(l=e,c()),i.emit(`update:${t}`,s),M(e,u)&&(M(e,s)&&!M(s,d)||p&&u!==n&&!M(s,l))&&c(),u=e,d=s}}});return c[Symbol.iterator]=()=>{let e=0;return{next(){return e<2?{value:e++?s||n:c,done:!1}:{done:!0}}}},c}var po=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${k(t)}Modifiers`]||e[`${A(t)}Modifiers`];function mo(e,t,...r){if(e.isUnmounted)return;let i=e.vnode.props||n,a=r,o=t.startsWith(`update:`),s=o&&po(i,t.slice(7));s&&(s.trim&&(a=r.map(e=>v(e)?e.trim():e)),s.number&&(a=r.map(oe)));let c,l=i[c=j(t)]||i[c=j(k(t))];!l&&o&&(l=i[c=j(A(t))]),l&&Jn(l,e,6,a);let u=i[c+`Once`];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,Jn(u,e,6,a)}}var ho=new WeakMap;function go(e,t,n=!1){let r=n?ho:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},s=!1;if(!_(e)){let r=e=>{let n=go(e,t,!0);n&&(s=!0,c(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!s?(b(e)&&r.set(e,null),null):(f(a)?a.forEach(e=>o[e]=null):c(o,a),b(e)&&r.set(e,o),o)}function _o(e,t){return!e||!o(t)?!1:(t=t.slice(2),t=t===`Once`?t:t.replace(/Once$/,``),d(e,t[0].toLowerCase()+t.slice(1))||d(e,A(t))||d(e,t))}function vo(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:o,attrs:c,emit:l,render:u,renderCache:d,props:f,data:p,setupState:m,ctx:h,inheritAttrs:g}=e,_=_r(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=Ls(u.call(t,e,d,f,m,p,h)),y=c}else{let e=t;v=Ls(e.length>1?e(f,{attrs:c,slots:o,emit:l}):e(f,null)),y=t.props?c:bo(c)}}catch(t){gs.length=0,Yn(t,e,1),v=V(B)}let b=v;if(y&&g!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(s)&&(y=xo(y,a)),b=Ns(b,y,!1,!0))}return n.dirs&&(b=Ns(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&li(Rr(b.type)&&ci(b)||b,n.transition),v=b,_r(_),v}function yo(e,t=!0){let n;for(let t=0;t{let t;for(let n in e)(n===`class`||n===`style`||o(n))&&((t||={})[n]=e[n]);return t},xo=(e,t)=>{let n={};for(let r in e)(!s(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function So(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Co(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;tObject.create(Eo),Oo=e=>Object.getPrototypeOf(e)===Eo;function ko(e,t,n,r=!1){let i={},a=Do();e.propsDefaults=Object.create(null),jo(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);e.props=n?r?i:nn(i):e.type.props?i:a,e.attrs=a}function Ao(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=F(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r{p=!0;let[n,r]=Po(e,t,!0);c(l,n),r&&u.push(...r)};!i&&t.mixins.length&&t.mixins.forEach(n),e.extends&&n(e.extends),e.mixins&&e.mixins.forEach(n)}if(!s&&!p)return b(e)&&a.set(e,r),r;if(f(s))for(let e=0;ee===`_`||e===`_ctx`||e===`$stable`,Lo=e=>f(e)?e.map(Ls):[Ls(e)],Ro=(e,t,n)=>{if(t._n)return t;let r=xr((...e)=>Lo(t(...e)),n);return r._c=!1,r},zo=(e,t,n)=>{let r=e._ctx;for(let n in e){if(Io(n))continue;let i=e[n];if(_(i))t[n]=Ro(n,i,r);else if(i!=null){let e=Lo(i);t[n]=()=>e}}},Bo=(e,t)=>{let n=Lo(t);e.slots.default=()=>n},Vo=(e,t,n)=>{for(let r in t)(n||!Io(r))&&(e[r]=t[r])},Ho=(e,t,n)=>{let r=e.slots=Do();if(e.vnode.shapeFlag&32){let e=t._;e?(Vo(r,t,n),n&&ae(r,`_`,e,!0)):zo(t,r)}else t&&Bo(e,t)},Uo=(e,t,r)=>{let{vnode:i,slots:a}=e,o=!0,s=n;if(i.shapeFlag&32){let e=t._;e?r&&e===1?o=!1:Vo(a,t,r):(o=!t.$stable,zo(t,a)),s=t}else t&&(Bo(e,t),s={default:1});if(o)for(let e in a)!Io(e)&&s[e]==null&&delete a[e]},R=ds;function Wo(e){return Ko(e)}function Go(e){return Ko(e,Ti)}function Ko(e,t){let a=le();a.__VUE__=!0;let{insert:o,remove:s,patchProp:c,createElement:l,createText:u,createComment:d,setText:f,setElementText:p,parentNode:m,nextSibling:h,setScopeId:g=i,insertStaticContent:_}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!Es(e,t)&&(r=ge(e),de(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case ms:y(e,t,n,r);break;case B:b(e,t,n,r);break;case hs:e??x(t,n,r,o);break;case z:ne(e,t,n,r,i,a,o,s,c);break;default:d&1?w(e,t,n,r,i,a,o,s,c):d&6?A(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,ye)}u!=null&&i?_i(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&_i(e.ref,null,a,e,!0)},y=(e,t,n,r)=>{if(e==null)o(t.el=u(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},b=(e,t,n,r)=>{e==null?o(t.el=d(t.children||``),n,r):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=h(e),o(e,n,r),e=i;o(t,n,r)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)},w=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)T(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),te(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},T=(e,t,n,r,i,a,s,u)=>{let d,f,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(d=e.el=l(e.type,a,m&&m.is,m),h&8?p(d,e.children):h&16&&ee(e.children,d,null,r,i,qo(e,a),s,u),_&&Cr(e,null,r,`created`),E(d,e,e.scopeId,s,r),m){for(let e in m)e!==`value`&&!D(e)&&c(d,e,null,m[e],a,r);`value`in m&&c(d,`value`,null,m.value,a),(f=m.onVnodeBeforeMount)&&Vs(f,r,e)}_&&Cr(e,null,r,`beforeMount`);let v=Yo(i,g);v&&g.beforeEnter(d),o(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&R(()=>{try{f&&Vs(f,r,e),v&&g.enter(d),_&&Cr(e,null,r,`mounted`)}finally{}},i)},E=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t{for(let l=c;l{let l=t.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:f}=t;u|=e.patchFlag&16;let m=e.props||n,h=t.props||n,g;if(r&&Jo(r,!1),(g=h.onVnodeBeforeUpdate)&&Vs(g,r,t,e),f&&Cr(t,e,r,`beforeUpdate`),r&&Jo(r,!0),d&&(!e.dynamicChildren||e.dynamicChildren.length!==d.length)&&(u=0,s=!1,d=null),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&p(l,``),d?O(e.dynamicChildren,d,l,r,i,qo(t,a),o):s||oe(e,t,l,null,r,i,qo(t,a),o,!1),u>0){if(u&16)k(l,m,h,r,a);else if(u&2&&m.class!==h.class&&c(l,`class`,null,h.class,a),u&4&&c(l,`style`,m.style,h.style,a),u&8){let e=t.dynamicProps;for(let t=0;t{g&&Vs(g,r,t,e),f&&Cr(t,e,r,`updated`)},i)},O=(e,t,n,r,i,a,o)=>{for(let s=0;s{if(t!==r){if(t!==n)for(let n in t)!D(n)&&!(n in r)&&c(e,n,t[n],null,a,i);for(let n in r){if(D(n))continue;let o=r[n],s=t[n];o!==s&&n!==`value`&&c(e,n,s,o,a,i)}`value`in r&&c(e,`value`,t.value,r.value,a)}},ne=(e,t,n,r,i,a,s,c,l)=>{let d=t.el=e?e.el:u(``),f=t.anchor=e?e.anchor:u(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),e==null?(o(d,n,r),o(f,n,r),ee(t.children||[],n,f,i,a,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(O(e.dynamicChildren,m,n,i,a,s,c),(t.key!=null||i&&t===i.subTree)&&Xo(e,t,!0)):oe(e,t,n,f,i,a,s,c,l)},A=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):re(t,n,r,i,a,o,c):j(e,t,c)},re=(e,t,n,r,i,a,o)=>{let s=e.component=Ws(e,r,i);if(Ki(e)&&(s.ctx.renderer=ye),Qs(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,M,o),!e.el){let r=s.subTree=V(B);b(null,r,t,n),e.placeholder=r.el}}else M(s,e,t,n,i,a,o)},j=(e,t,n)=>{let r=t.component=e.component;if(So(e,t,n)){if(r.asyncDep&&!r.asyncResolved){ae(r,t,n);return}r.next=t,r.update()}else t.el=e.el,r.vnode=t},M=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=Qo(e);if(n){t&&(t.el=c.el,ae(e,t,o)),n.asyncDep.then(()=>{R(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;Jo(e,!1),t?(t.el=c.el,ae(e,t,o)):t=c,n&&ie(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&Vs(d,s,t,c),Jo(e,!0);let f=vo(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),ge(p),e,i,a),t.el=f.el,u===null&&To(e,f.el),r&&R(r,i),(d=t.props&&t.props.onVnodeUpdated)&&R(()=>Vs(d,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=Ui(t);if(Jo(e,!1),l&&ie(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Vs(o,d,t),Jo(e,!0),s&&xe){let t=()=>{e.subTree=vo(e),xe(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=vo(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&R(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;R(()=>Vs(o,d,e),i)}(t.shapeFlag&256||d&&Ui(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&R(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new Ue(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>or(u),Jo(e,!0),l()},ae=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,Ao(e,t.props,r,n),Uo(e,t.children,n),ot(),lr(e),st()},oe=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:m}=t;if(f>0){if(f&128){ce(l,d,n,r,i,a,o,s,c);return}if(f&256){se(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&he(l,i,a),d!==l&&p(n,d)):u&16?m&16?ce(l,d,n,r,i,a,o,s,c):he(l,i,a,!0):(u&8&&p(n,``),m&16&&ee(d,n,r,i,a,o,s,c))},se=(e,t,n,i,a,o,s,c,l)=>{e||=r,t||=r;let u=e.length,d=t.length,f=Math.min(u,d),p;for(p=0;pd?he(e,a,o,!0,!1,f):ee(t,n,i,a,o,s,c,l,f)},ce=(e,t,n,i,a,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let r=e[u],i=t[u]=l?Rs(t[u]):Ls(t[u]);if(Es(r,i))v(r,i,n,null,a,o,s,c,l);else break;u++}for(;u<=f&&u<=p;){let r=e[f],i=t[p]=l?Rs(t[p]):Ls(t[p]);if(Es(r,i))v(r,i,n,null,a,o,s,c,l);else break;f--,p--}if(u>f){if(u<=p){let e=p+1,r=ep)for(;u<=f;)de(e[u],a,o,!0),u++;else{let m=u,h=u,g=new Map;for(u=h;u<=p;u++){let e=t[u]=l?Rs(t[u]):Ls(t[u]);e.key!=null&&g.set(e.key,u)}let _,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(u=0;u=b){de(r,a,o,!0);continue}let i;if(r.key!=null)i=g.get(r.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&Es(r,t[_])){i=_;break}i===void 0?de(r,a,o,!0):(C[i-h]=u+1,i>=S?S=i:x=!0,v(r,t[i],n,null,a,o,s,c,l),y++)}let w=x?Zo(C):r;for(_=w.length-1,u=b-1;u>=0;u--){let e=h+u,r=t[e],f=t[e+1],p=e+1{let{el:a,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){ue(e.component.subTree,t,n,r);return}if(d&128){e.suspense.move(t,n,r);return}if(d&64){c.move(e,t,n,ye);return}if(c===z){o(a,t,n);for(let e=0;el.enter(a),i));else{let{leave:r,delayLeave:i,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?s(a):o(a,t,n)},d=()=>{let e=a._isLeaving||!!a[Xr];a._isLeaving&&a[Xr](!0),l.persisted&&!e?u():r(a,()=>{u(),c&&c()})};i?i(a,u,d):d()}}else o(a,t,n)},de=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if(d===-2&&(i=!1),s!=null&&(ot(),_i(s,null,n,e,!0),st()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!Ui(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&Vs(_,t,e),u&6)me(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&Cr(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,ye,r):l&&!l.hasOnce&&(a!==z||d>0&&d&64)?he(l,t,n,!1,!0):(a===z&&d&384||!i&&u&16)&&he(c,t,n),r&&fe(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&R(()=>{_&&Vs(_,t,e),h&&Cr(e,null,t,`unmounted`),v&&(e.el=null)},n)},fe=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===z){pe(n,r);return}if(t===hs){C(e);return}let a=()=>{s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(e.shapeFlag&1&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},pe=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},me=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;$o(c),$o(l),r&&ie(r),i.stop(),a&&(a.flags|=8,de(o,e,t,n)),s&&R(s,t),R(()=>{e.isUnmounted=!0},t)},he=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o{if(e.shapeFlag&6)return ge(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[Lr];return n?h(n):t},_e=!1,ve=(e,t,n)=>{let r;e==null?t._vnode&&(de(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,_e||=(_e=!0,lr(r),ur(),!1)},ye={p:v,um:de,m:ue,r:fe,mt:re,mc:ee,pc:oe,pbc:O,n:ge,o:e},be,xe;return t&&([be,xe]=t(ye)),{render:ve,hydrate:be,createApp:lo(ve,be)}}function qo({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function Jo({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Yo(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Xo(e,t,n=!1){let r=e.children,i=t.children;if(f(r)&&f(i))for(let e=0;e>1,e[n[s]]0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-->0;)n[a]=o,o=t[o];return n}function Qo(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Qo(t)}function $o(e){if(e)for(let t=0;te.__isSuspense,ns=0,rs={name:`Suspense`,__isSuspense:!0,process(e,t,n,r,i,a,o,s,c,l){if(e==null)as(t,n,r,i,a,o,s,c,l);else{if(a&&a.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}os(e,t,n,r,i,o,s,c,l)}},hydrate:cs,normalize:ls};function is(e,t){let n=e.props&&e.props[t];_(n)&&n()}function as(e,t,n,r,i,a,o,s,c){let{p:l,o:{createElement:u}}=c,d=u(`div`),f=e.suspense=ss(e,i,r,t,d,n,a,o,s,c);l(null,f.pendingBranch=e.ssContent,d,null,r,f,a,o),f.deps>0?(is(e,`onPending`),is(e,`onFallback`),l(null,e.ssFallback,t,n,r,null,a,o),fs(f,e.ssFallback)):f.resolve(!1,!0)}function os(e,t,n,r,i,a,o,s,{p:c,um:l,o:{createElement:u}}){let d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;let f=t.ssContent,p=t.ssFallback,{activeBranch:m,pendingBranch:h,isInFallback:g,isHydrating:_}=d;if(h)d.pendingBranch=f,Es(h,f)?(c(h,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():g&&(_||(c(m,p,n,r,i,null,a,o,s),fs(d,p)))):(d.pendingId=ns++,_?(d.isHydrating=!1,d.activeBranch=h):l(h,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u(`div`),g?(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():(c(m,p,n,r,i,null,a,o,s),fs(d,p))):m&&Es(m,f)?(c(m,f,n,r,i,d,a,o,s),d.resolve(!0)):(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0&&d.resolve()));else if(m&&Es(m,f))c(m,f,n,r,i,d,a,o,s),fs(d,f);else if(is(t,`onPending`),d.pendingBranch=f,d.pendingId=f.shapeFlag&512?f.component.suspenseId:ns++,c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0)d.resolve();else{let{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(p)},e):e===0&&d.fallback(p)}}function ss(e,t,n,r,i,a,o,s,c,l,u=!1){let{p:d,m:f,um:p,n:m,o:{parentNode:h,remove:g}}=l,_,v=ps(e);v&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);let y=e.props?se(e.props.timeout):void 0,b=a,x={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:i,deps:0,pendingId:ns++,timeout:typeof y==`number`?y:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){let{vnode:r,activeBranch:i,pendingBranch:o,pendingId:s,effects:c,parentComponent:l,container:u,isInFallback:d}=x,g=!1;if(x.isHydrating)x.isHydrating=!1;else if(!e){g=i&&o.transition&&o.transition.mode===`out-in`;let e=!1;g&&(i.transition.afterLeave=()=>{s===x.pendingId&&(f(o,u,a===b&&!e?m(i):a,0),cr(c),d&&r.ssFallback&&(r.ssFallback.el=null))}),i&&!x.isFallbackMountPending&&(h(i.el)===u&&(a=m(i),e=!0),p(i,l,x,!0),!g&&d&&r.ssFallback&&R(()=>r.ssFallback.el=null,x)),g||f(o,u,a,0)}x.isFallbackMountPending=!1,fs(x,o),x.pendingBranch=null,x.isInFallback=!1;let y=x.parent,S=!1;for(;y;){if(y.pendingBranch){for(let e=0;e{x.isFallbackMountPending=!1,x.isInFallback&&(d(null,e,i,o,r,null,a,s,c),fs(x,e))},u=e.transition&&e.transition.mode===`out-in`;u&&(x.isFallbackMountPending=!0,n.transition.afterLeave=l),x.isInFallback=!0,p(n,r,null,!0),u||l()},move(e,t,n){x.activeBranch&&f(x.activeBranch,e,t,n),x.container=e},next(){return x.activeBranch&&m(x.activeBranch)},registerDep(e,t,n){let r=!!x.pendingBranch;r&&x.deps++;let i=e.vnode.el;e.asyncDep.catch(t=>{Yn(t,e,0)}).then(a=>{if(e.isUnmounted||x.isUnmounted||x.pendingId!==e.suspenseId)return;Ys(),e.asyncResolved=!0;let{vnode:s}=e;ec(e,a,!1),i&&(s.el=i);let c=!i&&e.subTree.el;t(e,s,h(i||e.subTree.el),i?null:m(e.subTree),x,o,n),c&&(s.placeholder=null,g(c)),To(e,s.el),r&&--x.deps===0&&x.resolve()})},unmount(e,t){x.isUnmounted=!0,x.activeBranch&&p(x.activeBranch,n,e,t),x.pendingBranch&&p(x.pendingBranch,n,e,t)}};return x}function cs(e,t,n,r,i,a,o,s,c){let l=t.suspense=ss(t,r,n,e.parentNode,document.createElement(`div`),null,i,a,o,s,!0),u=c(e,l.pendingBranch=t.ssContent,n,l,a,o);return l.deps===0&&l.resolve(!1,!0),u}function ls(e){let{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=us(r?n.default:n),e.ssFallback=r?us(n.fallback):V(B)}function us(e){let t;if(_(e)){let n=bs&&e._c;n&&(e._d=!1,vs()),e=e(),n&&(e._d=!0,t=_s,ys())}return f(e)&&(e=yo(e)),e=Ls(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function ds(e,t){t&&t.pendingBranch?f(e)?t.effects.push(...e):t.effects.push(e):cr(e)}function fs(e,t){e.activeBranch=t;let{vnode:n,parentComponent:r}=e,i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,To(r,i))}function ps(e){let t=e.props&&e.props.suspensible;return t!=null&&t!==!1}var z=Symbol.for(`v-fgt`),ms=Symbol.for(`v-txt`),B=Symbol.for(`v-cmt`),hs=Symbol.for(`v-stc`),gs=[],_s=null;function vs(e=!1){gs.push(_s=e?null:[])}function ys(){gs.pop(),_s=gs[gs.length-1]||null}var bs=1;function xs(e,t=!1){bs+=e,e<0&&_s&&t&&(_s.hasOnce=!0)}function Ss(e){return e.dynamicChildren=bs>0?_s||r:null,ys(),bs>0&&_s&&_s.push(e),e}function Cs(e,t,n,r,i,a){return Ss(As(e,t,n,r,i,a,!0))}function ws(e,t,n,r,i){return Ss(V(e,t,n,r,i,!0))}function Ts(e){return e?e.__v_isVNode===!0:!1}function Es(e,t){return e.type===t.type&&e.key===t.key}function Ds(e){}var Os=({key:e})=>e??null,ks=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:v(e)||I(e)||_(e)?{i:L,r:e,k:t,f:!!n}:e);function As(e,t=null,n=null,r=0,i=null,a=e===z?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Os(t),ref:t&&ks(t),scopeId:gr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:L};return s?(zs(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=v(n)?8:16),bs>0&&!o&&_s&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&_s.push(c),c}var V=js;function js(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===ga)&&(e=B),Ts(e)){let r=Ns(e,t,!0);return n&&zs(r,n),bs>0&&!a&&_s&&(r.shapeFlag&6?_s[_s.indexOf(e)]=r:_s.push(r)),r.patchFlag=-2,r}if(uc(e)&&(e=e.__vccOpts),t){t=Ms(t);let{class:e,style:n}=t;e&&!v(e)&&(t.class=_e(e)),b(n)&&(un(n)&&!f(n)&&(n=c({},n)),t.style=fe(n))}let o=v(e)?1:ts(e)?128:Rr(e)?64:b(e)?4:_(e)?2:0;return As(e,t,n,r,i,o,a,!0)}function Ms(e){return e?un(e)||Oo(e)?c({},e):e:null}function Ns(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?Bs(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Os(l),ref:t&&t.ref?n&&a?f(a)?a.concat(ks(t)):[a,ks(t)]:ks(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==z?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ns(e.ssContent),ssFallback:e.ssFallback&&Ns(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&li(u,c.clone(u)),u}function Ps(e=` `,t=0){return V(ms,null,e,t)}function Fs(e,t){let n=V(hs,null,e);return n.staticCount=t,n}function Is(e=``,t=!1){return t?(vs(),ws(B,null,e)):V(B,null,e)}function Ls(e){return e==null||typeof e==`boolean`?V(B):f(e)?V(z,null,e.slice()):Ts(e)?Rs(e):V(ms,null,String(e))}function Rs(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ns(e)}function zs(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(f(t))n=16;else if(typeof t==`object`){if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),zs(e,n()),n._c&&(n._d=!0));return}{n=32;let r=t._;!r&&!Oo(t)?t._ctx=L:r===3&&L&&(L.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}}else if(_(t)){if(r&65){zs(e,{default:t});return}t={default:t,_ctx:L},n=32}else t=String(t),r&64?(n=16,t=[Ps(t)]):n=8;e.children=t,e.shapeFlag|=n}function Bs(...e){let t={};for(let n=0;nH||L,Ks,qs;{let e=le(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};Ks=t(`__VUE_INSTANCE_SETTERS__`,e=>H=e),qs=t(`__VUE_SSR_SETTERS__`,e=>Zs=e)}var Js=e=>{let t=H;return Ks(e),e.scope.on(),()=>{e.scope.off(),Ks(t)}},Ys=()=>{H&&H.scope.off(),Ks(null)};function Xs(e){return e.vnode.shapeFlag&4}var Zs=!1;function Qs(e,t=!1,n=!1){t&&qs(t);let{props:r,children:i}=e.vnode,a=Xs(e);ko(e,r,a,t),Ho(e,i,n||t);let o=a?$s(e,t):void 0;return t&&qs(!1),o}function $s(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ka);let{setup:r}=n;if(r){ot();let n=e.setupContext=r.length>1?sc(e):null,i=Js(e),a=qn(r,e,0,[e.props,n]),o=x(a);if(st(),i(),(o||e.sp)&&!Ui(e)&&pi(e),o){if(a.then(Ys,Ys),t)return a.then(n=>{qs(!0);try{ec(e,n,t)}finally{qs(!1)}}).catch(t=>{Yn(t,e,0)});e.asyncDep=a}else ec(e,a,t)}else ac(e,t)}function ec(e,t,n){_(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:b(t)&&(e.setupState=Sn(t)),ac(e,n)}var tc,nc;function rc(e){tc=e,nc=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Aa))}}var ic=()=>!tc;function ac(e,t,n){let r=e.type;if(!e.render){if(!t&&tc&&!r.render){let t=r.template||Za(e).template;if(t){let{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:o}=r,s=c(c({isCustomElement:n,delimiters:a},i),o);r.render=tc(t,s)}}e.render=r.render||i,nc&&nc(e)}{let t=Js(e);ot();try{qa(e)}finally{st(),t()}}}var oc={get(e,t){return _t(e,`get`,``),e[t]}};function sc(e){return{attrs:new Proxy(e.attrs,oc),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function cc(e){return e.exposed?e.exposeProxy||=new Proxy(Sn(dn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Da)return Da[n](e)},has(e,t){return t in e||t in Da}}):e.proxy}function lc(e,t=!0){return _(e)?e.displayName||e.name:e.name||t&&e.__name}function uc(e){return _(e)&&`__vccOpts`in e}var dc=(e,t)=>jn(e,t,Zs);function fc(e,t,n){try{xs(-1);let r=arguments.length;return r===2?b(t)&&!f(t)?Ts(t)?V(e,null,[t]):V(e,t):V(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ts(n)&&(n=[n]),V(e,t,n))}finally{xs(1)}}function pc(){}function mc(e,t,n,r){let i=n[r];if(i&&hc(i,e))return i;let a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function hc(e,t){let n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&_s&&_s.push(e),!0}var gc=`3.5.41`,_c=i,vc=Kn,yc=pr,bc=hr,xc={createComponentInstance:Ws,setupComponent:Qs,renderComponentRoot:vo,setCurrentRenderingInstance:_r,isVNode:Ts,normalizeVNode:Ls,getComponentPublicInstance:cc,ensureValidVNode:wa,pushWarningContext:Hn,popWarningContext:Un},Sc=e({BaseTransition:()=>ii,BaseTransitionPropsValidators:()=>ei,Comment:()=>B,DeprecationTypes:()=>null,EffectScope:()=>Re,ErrorCodes:()=>Gn,ErrorTypeStrings:()=>vc,Fragment:()=>z,KeepAlive:()=>qi,ReactiveEffect:()=>Ue,Static:()=>hs,Suspense:()=>rs,Teleport:()=>qr,Text:()=>ms,TrackOpTypes:()=>Mn,Transition:()=>Ic,TransitionGroup:()=>Gl,TriggerOpTypes:()=>Nn,VueElement:()=>Ll,assertNumber:()=>Wn,callWithAsyncErrorHandling:()=>Jn,callWithErrorHandling:()=>qn,camelize:()=>k,capitalize:()=>re,cloneVNode:()=>Ns,compatUtils:()=>null,computed:()=>dc,createApp:()=>Du,createBlock:()=>ws,createCommentVNode:()=>Is,createElementBlock:()=>Cs,createElementVNode:()=>As,createHydrationRenderer:()=>Go,createPropsRestProxy:()=>Wa,createRenderer:()=>Wo,createSSRApp:()=>Ou,createSlots:()=>Sa,createStaticVNode:()=>Fs,createTextVNode:()=>Ps,createVNode:()=>V,customRef:()=>wn,defineAsyncComponent:()=>Wi,defineComponent:()=>di,defineCustomElement:()=>Pl,defineEmits:()=>Ma,defineExpose:()=>Na,defineModel:()=>Ia,defineOptions:()=>Pa,defineProps:()=>ja,defineSSRCustomElement:()=>Fl,defineSlots:()=>Fa,devtools:()=>yc,effect:()=>nt,effectScope:()=>ze,getCurrentInstance:()=>Gs,getCurrentScope:()=>Be,getCurrentWatcher:()=>Ln,getTransitionRawChildren:()=>ui,guardReactiveProps:()=>Ms,h:()=>fc,handleError:()=>Yn,hasInjectionContext:()=>Er,hydrate:()=>Eu,hydrateOnIdle:()=>Li,hydrateOnInteraction:()=>Vi,hydrateOnMediaQuery:()=>Bi,hydrateOnVisible:()=>zi,initCustomFormatter:()=>pc,initDirectivesForSSR:()=>Mu,inject:()=>Tr,isMemoSame:()=>hc,isProxy:()=>un,isReactive:()=>sn,isReadonly:()=>cn,isRef:()=>I,isRuntimeOnly:()=>ic,isShallow:()=>ln,isVNode:()=>Ts,markRaw:()=>dn,mergeDefaults:()=>Ha,mergeModels:()=>Ua,mergeProps:()=>Bs,nextTick:()=>ir,nodeOps:()=>Ac,normalizeClass:()=>_e,normalizeProps:()=>ve,normalizeStyle:()=>fe,onActivated:()=>Yi,onBeforeMount:()=>ra,onBeforeUnmount:()=>sa,onBeforeUpdate:()=>aa,onDeactivated:()=>Xi,onErrorCaptured:()=>fa,onMounted:()=>ia,onRenderTracked:()=>da,onRenderTriggered:()=>ua,onScopeDispose:()=>Ve,onServerPrefetch:()=>la,onUnmounted:()=>ca,onUpdated:()=>oa,onWatcherCleanup:()=>Rn,openBlock:()=>vs,patchProp:()=>Al,popScopeId:()=>yr,provide:()=>wr,proxyRefs:()=>Sn,pushScopeId:()=>vr,queuePostFlushCb:()=>cr,reactive:()=>tn,readonly:()=>rn,ref:()=>mn,registerRuntimeCompiler:()=>rc,render:()=>Tu,renderList:()=>xa,renderSlot:()=>Ca,resolveComponent:()=>ha,resolveDirective:()=>va,resolveDynamicComponent:()=>_a,resolveFilter:()=>null,resolveTransitionHooks:()=>oi,setBlockTracking:()=>xs,setDevtoolsHook:()=>bc,setTransitionHooks:()=>li,shallowReactive:()=>nn,shallowReadonly:()=>an,shallowRef:()=>hn,ssrContextKey:()=>Dr,ssrUtils:()=>xc,stop:()=>rt,toDisplayString:()=>Pe,toHandlerKey:()=>j,toHandlers:()=>Ta,toRaw:()=>F,toRef:()=>On,toRefs:()=>Tn,toValue:()=>bn,transformVNodeArgs:()=>Ds,triggerRef:()=>vn,unref:()=>yn,useAttrs:()=>za,useCssModule:()=>Bl,useCssVars:()=>il,useHost:()=>Rl,useId:()=>fi,useModel:()=>fo,useSSRContext:()=>Or,useShadowRoot:()=>zl,useSlots:()=>Ra,useTemplateRef:()=>mi,useTransitionState:()=>Qr,vModelCheckbox:()=>iu,vModelDynamic:()=>du,vModelRadio:()=>ou,vModelSelect:()=>su,vModelText:()=>ru,vShow:()=>el,version:()=>gc,warn:()=>_c,watch:()=>Mr,watchEffect:()=>kr,watchPostEffect:()=>Ar,watchSyncEffect:()=>jr,withAsyncContext:()=>Ga,withCtx:()=>xr,withDefaults:()=>La,withDirectives:()=>Sr,withKeys:()=>yu,withMemo:()=>mc,withModifiers:()=>_u,withScopeId:()=>br}),Cc=void 0,wc=typeof window<`u`&&window.trustedTypes;if(wc)try{Cc=wc.createPolicy(`vue`,{createHTML:e=>e})}catch{}var Tc=Cc?e=>Cc.createHTML(e):e=>e,Ec=`http://www.w3.org/2000/svg`,Dc=`http://www.w3.org/1998/Math/MathML`,Oc=typeof document<`u`?document:null,kc=Oc&&Oc.createElement(`template`),Ac={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?Oc.createElementNS(Ec,e):t===`mathml`?Oc.createElementNS(Dc,e):n?Oc.createElement(e,{is:n}):Oc.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>Oc.createTextNode(e),createComment:e=>Oc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Oc.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{kc.innerHTML=Tc(r===`svg`?`${e}`:r===`mathml`?`${e}`:e);let i=kc.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},jc=`transition`,Mc=`animation`,Nc=Symbol(`_vtc`),Pc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Fc=c({},ei,Pc),Ic=(e=>(e.displayName=`Transition`,e.props=Fc,e))((e,{slots:t})=>fc(ii,zc(e),t)),Lc=(e,t=[])=>{f(e)?e.forEach(e=>e(...t)):e&&e(...t)},Rc=e=>e?f(e)?e.some(e=>e.length>1):e.length>1:!1;function zc(e){let t={};for(let n in e)n in Pc||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=a,appearActiveClass:u=o,appearToClass:d=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,h=Bc(i),g=h&&h[0],_=h&&h[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:x,onLeaveCancelled:S,onBeforeAppear:C=v,onAppear:w=y,onAppearCancelled:T=b}=t,E=(e,t,n,r)=>{e._enterCancelled=r,Uc(e,t?d:s),Uc(e,t?u:o),n&&n()},D=(e,t)=>{e._isLeaving=!1,Uc(e,f),Uc(e,m),Uc(e,p),t&&t()},ee=e=>(t,n)=>{let i=e?w:y,o=()=>E(t,e,n);Lc(i,[t,o]),Wc(()=>{Uc(t,e?l:a),Hc(t,e?d:s),Rc(i)||Kc(t,r,g,o)})};return c(t,{onBeforeEnter(e){Lc(v,[e]),Hc(e,a),Hc(e,o)},onBeforeAppear(e){Lc(C,[e]),Hc(e,l),Hc(e,u)},onEnter:ee(!1),onAppear:ee(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>D(e,t);Hc(e,f),e._enterCancelled?(Hc(e,p),Xc(e)):(Xc(e),Hc(e,p)),Wc(()=>{e._isLeaving&&(Uc(e,f),Hc(e,m),Rc(x)||Kc(e,r,_,n))}),Lc(x,[e,n])},onEnterCancelled(e){E(e,!1,void 0,!0),Lc(b,[e])},onAppearCancelled(e){E(e,!0,void 0,!0),Lc(T,[e])},onLeaveCancelled(e){D(e),Lc(S,[e])}})}function Bc(e){if(e==null)return null;if(b(e))return[Vc(e.enter),Vc(e.leave)];{let t=Vc(e);return[t,t]}}function Vc(e){return se(e)}function Hc(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[Nc]||(e[Nc]=new Set)).add(t)}function Uc(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[Nc];n&&(n.delete(t),n.size||(e[Nc]=void 0))}function Wc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var Gc=0;function Kc(e,t,n,r){let i=e._endId=++Gc,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=qc(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u(n[e]||``).split(`, `),i=r(`${jc}Delay`),a=r(`${jc}Duration`),o=Jc(i,a),s=r(`${Mc}Delay`),c=r(`${Mc}Duration`),l=Jc(s,c),u=null,d=0,f=0;t===jc?o>0&&(u=jc,d=o,f=a.length):t===Mc?l>0&&(u=Mc,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?jc:Mc:null,f=u?u===jc?a.length:c.length:0);let p=u===jc&&/\b(?:transform|all)(?:,|$)/.test(r(`${jc}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function Jc(e,t){for(;e.lengthYc(t)+Yc(e[n])))}function Yc(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function Xc(e){return(e?e.ownerDocument:document).body.offsetHeight}function Zc(e,t,n){let r=e[Nc];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Qc=Symbol(`_vod`),$c=Symbol(`_vsh`),el={name:`show`,beforeMount(e,{value:t},{transition:n}){e[Qc]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):tl(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),tl(e,!0),r.enter(e)):r.leave(e,()=>{tl(e,!1)}):tl(e,t))},beforeUnmount(e,{value:t}){tl(e,t)}};function tl(e,t){e.style.display=t?e[Qc]:`none`,e[$c]=!t}function nl(){el.getSSRProps=({value:e})=>{if(!e)return{style:{display:`none`}}}}var rl=Symbol(``);function il(e){let t=Gs();if(!t)return;let n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>ol(e,n))},r=()=>{let r=e(t.proxy);t.ce?ol(t.ce,r):al(t.subTree,r),n(r)};aa(()=>{cr(r)}),ia(()=>{Mr(r,i,{flush:`post`});let e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),ca(()=>e.disconnect())})}function al(e,t){if(e.shapeFlag&128){let n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{al(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)ol(e.el,t);else if(e.type===z)e.children.forEach(e=>al(e,t));else if(e.type===hs){let{el:n,anchor:r}=e;for(;n&&(ol(n,t),n!==r);)n=n.nextSibling}}function ol(e,t){if(e.nodeType===1){let n=e.style,r=``;for(let e in t){let i=Le(t[e]);n.setProperty(`--${e}`,i),r+=`--${e}: ${i};`}n[rl]=r}}var sl=/(?:^|;)\s*display\s*:/;function cl(e,t,n){let r=e.style,i=v(n),a=!1;if(n&&!i){if(t){if(v(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??ul(r,t,``)}else for(let e in t)n[e]??ul(r,e,``)}for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?ul(r,i,``):ml(e,i,!v(t)&&t?t[i]:void 0,o)||ul(r,i,o)}}else if(i){if(t!==n){let e=r[rl];e&&(n+=`;`+e),r.cssText=n,a=sl.test(n)}}else t&&e.removeAttribute(`style`);Qc in e&&(e[Qc]=a?r.display:``,e[$c]&&(r.display=`none`))}var ll=/\s*!important$/;function ul(e,t,n){if(f(n))n.forEach(n=>ul(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=pl(e,t);ll.test(n)?e.setProperty(A(r),n.replace(ll,``),`important`):e[r]=n}}var dl=[`Webkit`,`Moz`,`ms`],fl={};function pl(e,t){let n=fl[t];if(n)return n;let r=k(t);if(r!==`filter`&&r in e)return fl[t]=r;r=re(r);for(let n=0;nTl||=(El.then(()=>Tl=0),Date.now());function Ol(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(f(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;ne.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Al=(e,t,n,r,i,a)=>{let c=i===`svg`;t===`class`?Zc(e,r,c):t===`style`?cl(e,n,r):o(t)?s(t)||xl(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):jl(e,t,r,c))?(_l(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&gl(e,t,r,c,a,t!==`value`)):e._isVueCE&&(Ml(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!v(r)))?_l(e,k(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),gl(e,t,r,c))};function jl(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&kl(t)&&_(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return kl(t)&&v(n)?!1:t in e}function Ml(e,t){let n=e._def.props;if(!n)return!1;let r=k(t);return Array.isArray(n)?n.some(e=>k(e)===r):Object.keys(n).some(e=>k(e)===r)}var Nl={};function Pl(e,t,n){let r=di(e,t);T(r)&&(r=c({},r,t));class i extends Ll{constructor(e){super(r,e,n)}}return i.def=r,i}var Fl=((e,t)=>Pl(e,t,Ou)),Il=typeof HTMLElement<`u`?HTMLElement:class{},Ll=class e extends Il{constructor(e,t={},n=Du){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&n!==Du?this._root=this.shadowRoot:e.shadowRoot===!1?this._root=this:(this.attachShadow(c({},e.shadowRootOptions,{mode:`open`})),this._root=this.shadowRoot)}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t&&=t.assignedSlot||t.parentNode||t.host;)if(t instanceof e){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{if(this._pendingResolve=void 0,this.isConnected)return this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,ir(()=>{this._connected||(this._ob&&=(this._ob.disconnect(),null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&=(this._teleportTargets.clear(),void 0))})}_processMutations(e){for(let t of e)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return this._pendingResolve;for(let e=0;e{this._resolved=!0,this._pendingResolve=void 0;let{props:n,styles:r}=e,i;if(n&&!f(n))for(let e in n){let t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=se(this._props[e])),(i||=Object.create(null))[k(e)]=!0)}this._numberProps=i,this._resolveProps(e),this.shadowRoot&&this._applyStyles(r),this._mount(e)},t=this._def.__asyncLoader;if(t)return this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}),this._pendingResolve;e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);let t=this._instance&&this._instance.exposed;if(t)for(let e in t)d(this,e)||Object.defineProperty(this,e,{get:()=>yn(t[e])})}_resolveProps(e){let{props:t}=e,n=f(t)?t:Object.keys(t||{});for(let e of Object.keys(this))e[0]!==`_`&&n.includes(e)&&this._setProp(e,this[e]);for(let e of n.map(k))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!this._patching)}})}_setAttr(e){if(e.startsWith(`data-v-`))return;let t=this.hasAttribute(e),n=t?this.getAttribute(e):Nl,r=k(e);t&&this._numberProps&&this._numberProps[r]&&(n=se(n)),this._setProp(r,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!1){if(t!==this._props[e]&&(this._dirty=!0,t===Nl?delete this._props[e]:(this._props[e]=t,e===`key`&&this._app&&(this._app._ceVNode.key=t)),r&&this._instance&&this._update(),n)){let n=this._ob;n&&(this._processMutations(n.takeRecords()),n.disconnect()),t===!0?this.setAttribute(A(e),``):typeof t==`string`||typeof t==`number`?this.setAttribute(A(e),t+``):t||this.removeAttribute(A(e)),n&&n.observe(this,{attributes:!0})}}_update(){let e=this._createVNode();this._app&&(e.appContext=this._app._context),Tu(e,this._root)}_createVNode(){let e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));let t=V(this._def,c(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;let t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,T(t[0])?c({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),A(e)!==e&&t(A(e),n)},this._setParent()}),t}_applyStyles(e,t,n){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}let r=this._nonce,i=this.shadowRoot,a=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(i),o=null;for(let s=e.length-1;s>=0;s--){let c=document.createElement(`style`);r&&c.setAttribute(`nonce`,r),c.textContent=e[s],i.insertBefore(c,o||a),o=c,s===0&&(n||this._styleAnchors.set(this._def,c),t&&this._styleAnchors.set(t,c))}}_getStyleAnchor(e){if(!e)return null;let t=this._styleAnchors.get(e);return t&&t.parentNode===this.shadowRoot?t:(t&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let t=0;t(delete e.props.mode,e))({name:`TransitionGroup`,props:c({},Fc,{tag:String,moveClass:String}),setup(e,{slots:t}){let n=Gs(),r=Qr(),i,a;return oa(()=>{if(!i.length)return;let t=e.moveClass||`${e.name||`v`}-move`;if(!Xl(i[0].el,n.vnode.el,t)){i=[];return}i.forEach(Kl),i.forEach(ql);let r=i.filter(Jl);Xc(n.vnode.el),r.forEach(e=>{let n=e.el,r=n.style;Hc(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[Ul]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[Ul]=null,Uc(n,t))};n.addEventListener(`transitionend`,i)}),i=[]}),()=>{let o=F(e),s=zc(o),c=o.tag||z;if(i=[],a)for(let e=0;e{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=qc(r);return a.removeChild(r),o}var Zl=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return f(t)?e=>ie(t,e):t};function Ql(e){e.target.composing=!0}function $l(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var eu=Symbol(`_assign`),tu=Symbol(`_initialValue`);function nu(e,t,n){return t&&(e=e.trim()),n&&(e=oe(e)),e}var ru={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e.parentNode&&(e.type===`text`?e[tu]=e.defaultValue.replace(/[\r\n]/g,``):e.type===`textarea`&&(e[tu]=e.defaultValue.replace(/\r\n?/g,` +`))),e[eu]=Zl(i);let a=r||i.props&&i.props.type===`number`;vl(e,t?`change`:`input`,t=>{t.target.composing||e[eu](nu(e.value,n,a))}),(n||a)&&vl(e,`change`,()=>{e.value=nu(e.value,n,a)}),t||(vl(e,`compositionstart`,Ql),vl(e,`compositionend`,$l),vl(e,`change`,$l))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){let i=t??``,a=e[tu];delete e[tu],a!==void 0&&(e.type===`text`||e.type===`textarea`)&&e.value!==a?e[eu](nu(e.value,n,r)):e.value=i},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[eu]=Zl(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?oe(e.value):e.value,c=t??``;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},iu={deep:!0,created(e,t,n){e[eu]=Zl(n),vl(e,`change`,()=>{let t=e._modelValue,n=lu(e),r=e.checked,i=e[eu];if(f(t)){let e=Me(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(m(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(uu(e,r))})},mounted:au,beforeUpdate(e,t,n){e[eu]=Zl(n),au(e,t,n)}};function au(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(f(t))i=Me(t,r.props.value)>-1;else if(m(t))i=t.has(r.props.value);else{if(t===n)return;i=je(t,uu(e,!0))}e.checked!==i&&(e.checked=i)}var ou={created(e,{value:t},n){e.checked=je(t,n.props.value),e[eu]=Zl(n),vl(e,`change`,()=>{e[eu](lu(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[eu]=Zl(r),t!==n&&(e.checked=je(t,r.props.value))}},su={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,vl(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?oe(lu(e)):lu(e));e[eu](e.multiple?m(e._modelValue)?new Set(t):t:t[0]),e._assigning=!0,ir(()=>{e._assigning=!1})}),e[eu]=Zl(r)},mounted(e,{value:t}){cu(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[eu]=Zl(n)},updated(e,{value:t}){e._assigning||cu(e,t)}};function cu(e,t){let n=e.multiple,r=f(t);if(!(n&&!r&&!m(t))){for(let i=0,a=e.options.length;iString(e)===String(o)):Me(t,o)>-1}else a.selected=t.has(o)}else if(je(lu(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function lu(e){return`_value`in e?e._value:e.value}function uu(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var du={created(e,t,n){pu(e,t,n,null,`created`)},mounted(e,t,n){pu(e,t,n,null,`mounted`)},beforeUpdate(e,t,n,r){pu(e,t,n,r,`beforeUpdate`)},updated(e,t,n,r){pu(e,t,n,r,`updated`)}};function fu(e,t){switch(e){case`SELECT`:return su;case`TEXTAREA`:return ru;default:switch(t){case`checkbox`:return iu;case`radio`:return ou;default:return ru}}}function pu(e,t,n,r,i){let a=fu(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}function mu(){ru.getSSRProps=({value:e})=>({value:e}),ou.getSSRProps=({value:e},t)=>{if(t.props&&je(t.props.value,e))return{checked:!0}},iu.getSSRProps=({value:e},t)=>{if(f(e)){if(t.props&&Me(e,t.props.value)>-1)return{checked:!0}}else if(m(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},du.getSSRProps=(e,t)=>{if(typeof t.type!=`string`)return;let n=fu(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}var hu=[`ctrl`,`shift`,`alt`,`meta`],gu={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>hu.some(n=>e[`${n}Key`]&&!t.includes(n))},_u=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=A(n.key);if(t.some(e=>e===r||vu[e]===r))return e(n)}))},bu=c({patchProp:Al},Ac),xu,Su=!1;function Cu(){return xu||=Wo(bu)}function wu(){return xu=Su?xu:Go(bu),Su=!0,xu}var Tu=((...e)=>{Cu().render(...e)}),Eu=((...e)=>{wu().hydrate(...e)}),Du=((...e)=>{let t=Cu().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=Au(e);if(!r)return;let i=t._component;!_(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,ku(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t}),Ou=((...e)=>{let t=wu().createApp(...e),{mount:n}=t;return t.mount=e=>{let t=Au(e);if(t)return n(t,!0,ku(t))},t});function ku(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function Au(e){return v(e)?document.querySelector(e):e}var ju=!1,Mu=()=>{ju||(ju=!0,mu(),nl())},Nu=Symbol(``),Pu=Symbol(``),Fu=Symbol(``),Iu=Symbol(``),Lu=Symbol(``),Ru=Symbol(``),zu=Symbol(``),Bu=Symbol(``),Vu=Symbol(``),Hu=Symbol(``),Uu=Symbol(``),Wu=Symbol(``),Gu=Symbol(``),Ku=Symbol(``),qu=Symbol(``),Ju=Symbol(``),Yu=Symbol(``),Xu=Symbol(``),Zu=Symbol(``),Qu=Symbol(``),$u=Symbol(``),ed=Symbol(``),td=Symbol(``),nd=Symbol(``),rd=Symbol(``),id=Symbol(``),ad=Symbol(``),od=Symbol(``),sd=Symbol(``),cd=Symbol(``),ld=Symbol(``),ud=Symbol(``),dd=Symbol(``),fd=Symbol(``),pd=Symbol(``),md=Symbol(``),hd=Symbol(``),gd=Symbol(``),_d=Symbol(``),vd={[Nu]:`Fragment`,[Pu]:`Teleport`,[Fu]:`Suspense`,[Iu]:`KeepAlive`,[Lu]:`BaseTransition`,[Ru]:`openBlock`,[zu]:`createBlock`,[Bu]:`createElementBlock`,[Vu]:`createVNode`,[Hu]:`createElementVNode`,[Uu]:`createCommentVNode`,[Wu]:`createTextVNode`,[Gu]:`createStaticVNode`,[Ku]:`resolveComponent`,[qu]:`resolveDynamicComponent`,[Ju]:`resolveDirective`,[Yu]:`resolveFilter`,[Xu]:`withDirectives`,[Zu]:`renderList`,[Qu]:`renderSlot`,[$u]:`createSlots`,[ed]:`toDisplayString`,[td]:`mergeProps`,[nd]:`normalizeClass`,[rd]:`normalizeStyle`,[id]:`normalizeProps`,[ad]:`guardReactiveProps`,[od]:`toHandlers`,[sd]:`camelize`,[cd]:`capitalize`,[ld]:`toHandlerKey`,[ud]:`setBlockTracking`,[dd]:`pushScopeId`,[fd]:`popScopeId`,[pd]:`withCtx`,[md]:`unref`,[hd]:`isRef`,[gd]:`withMemo`,[_d]:`isMemoSame`};function yd(e){Object.getOwnPropertySymbols(e).forEach(t=>{vd[t]=e[t]})}var bd={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:``};function xd(e,t=``){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:bd}}function Sd(e,t,n,r,i,a,o,s=!1,c=!1,l=!1,u=bd){return e&&(s?(e.helper(Ru),e.helper(jd(e.inSSR,l))):e.helper(Ad(e.inSSR,l)),o&&e.helper(Xu)),{type:13,tag:t,props:n,children:r,patchFlag:i,dynamicProps:a,directives:o,isBlock:s,disableTracking:c,isComponent:l,loc:u}}function Cd(e,t=bd){return{type:17,loc:t,elements:e}}function wd(e,t=bd){return{type:15,loc:t,properties:e}}function U(e,t){return{type:16,loc:bd,key:v(e)?W(e,!0):e,value:t}}function W(e,t=!1,n=bd,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function Td(e,t=bd){return{type:8,loc:t,children:e}}function G(e,t=[],n=bd){return{type:14,loc:n,callee:e,arguments:t}}function Ed(e,t=void 0,n=!1,r=!1,i=bd){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:i}}function Dd(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:bd}}function Od(e,t,n=!1,r=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:bd}}function kd(e){return{type:21,body:e,loc:bd}}function Ad(e,t){return e||t?Vu:Hu}function jd(e,t){return e||t?zu:Bu}function Md(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Ad(r,e.isComponent)),t(Ru),t(jd(r,e.isComponent)))}var Nd=new Uint8Array([123,123]),Pd=new Uint8Array([125,125]);function Fd(e){return e>=97&&e<=122||e>=65&&e<=90}function Id(e){return e===32||e===10||e===9||e===12||e===13}function Ld(e){return e===47||e===62||Id(e)}function Rd(e){let t=new Uint8Array(e.length);for(let n=0;n100){let t=-1,n=r;for(;t+1>>1;this.newlines[r]=0;t--)if(e>this.newlines[t]){i=t;break}return i>=0&&(t=i+2,n=e-this.newlines[i]),{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){e===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&e===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex]){if(this.delimiterIndex===this.delimiterOpen.length-1){let e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++}else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.state=this.inRCDATA?32:1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){let t=this.sequenceIndex===this.currentSequence.length;if(!(t?Ld(e):(e|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!t){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(e===62||Id(e)){let t=this.index-this.currentSequence.length;if(this.sectionStart=e||(this.state===28?this.currentSequence===zd.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}};function Vd(e,{compatConfig:t}){let n=t&&t[e];return e===`MODE`?n||3:n}function Hd(e,t){let n=Vd(`MODE`,t),r=Vd(e,t);return n===3?r===!0:r!==!1}function Ud(e,t,n,...r){return Hd(e,t)}function Wd(e){throw e}function Gd(e){}function K(e,t,n,r){let i=`https://vuejs.org/error-reference/#compiler-${e}`,a=SyntaxError(String(i));return a.code=e,a.loc=t,a}var Kd=e=>e.type===4&&e.isStatic;function qd(e){switch(e){case`Teleport`:case`teleport`:return Pu;case`Suspense`:case`suspense`:return Fu;case`KeepAlive`:case`keep-alive`:return Iu;case`BaseTransition`:case`base-transition`:return Lu}}var Jd=/^$|^\d|[^\$\w\xA0-\uFFFF]/,Yd=e=>!Jd.test(e),Xd=/[A-Za-z_$\xA0-\uFFFF]/,Zd=/[\.\?\w$\xA0-\uFFFF]/,Qd=/\s+[.[]\s*|\s*[.[]\s+/g,$d=e=>e.type===4?e.content:e.loc.source,ef=e=>{let t=$d(e).trim().replace(Qd,e=>e.trim()),n=0,r=[],i=0,a=0,o=null;for(let e=0;e|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,nf=e=>tf.test($d(e));function rf(e,t,n=!1){for(let r=0;re.type===7&&e.name===`bind`&&(!e.arg||e.arg.type!==4||!e.arg.isStatic))}function cf(e){return e.type===5||e.type===2}function lf(e){return e.type===7&&e.name===`pre`}function uf(e){return e.type===7&&e.name===`slot`}function df(e){return e.type===1&&e.tagType===3}function ff(e){return e.type===1&&e.tagType===2}var pf=new Set([id,ad]);function mf(e,t=[]){if(e&&!v(e)&&e.type===14){let n=e.callee;if(!v(n)&&pf.has(n))return mf(e.arguments[0],t.concat(e))}return[e,t]}function hf(e,t,n){if(e.type!==13&&gf(e,t))return;let r,i=e.type===13?e.props:e.arguments[2],a=[],o;if(i&&!v(i)&&i.type===14){let e=mf(i);i=e[0],a=e[1],o=a[a.length-1]}if(i==null||v(i))r=wd([t]);else if(i.type===14){let e=i.arguments[0];!v(e)&&e.type===15?_f(t,e)||e.properties.unshift(t):i.callee===od?r=G(n.helper(td),[wd([t]),i]):i.arguments.unshift(wd([t])),!r&&(r=i)}else i.type===15?(_f(t,i)||i.properties.unshift(t),r=i):(r=G(n.helper(td),[wd([t]),i]),o&&o.callee===ad&&(o=a[a.length-2]));e.type===13?o?o.arguments[0]=r:e.props=r:o?o.arguments[0]=r:e.arguments[2]=r}function gf(e,t){var n,r,i;if(t.key.type!==4||t.key.content!==`key`)return!1;let a=e.arguments[2];if(a&&!v(a)){let[e]=mf(a);if(e&&!v(e)&&e.type===15&&_f(t,e))return!0}return(n=e.arguments)[2]||(n[2]=`{}`),(r=e.arguments)[3]||(r[3]=`undefined`),(i=e.arguments)[4]||(i[4]=`undefined`),e.arguments[5]=t.value,!0}function _f(e,t){let n=!1;if(e.key.type===4){let r=e.key.content;n=t.properties.some(e=>e.key.type===4&&e.key.content===r)}return n}function vf(e,t){return`_${t}_${e.replace(/[^\w]/g,(t,n)=>t===`-`?`_`:e.charCodeAt(n).toString())}`}function yf(e){return e.type===14&&e.callee===gd?e.arguments[1].returns:e}var bf=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/;function xf(e){for(let t=0;t0,isVoidTag:a,isPreTag:a,isIgnoreNewlineTag:a,isCustomElement:a,onError:Wd,onWarn:Gd,comments:!1,prefixIdentifiers:!1},q=wf,Tf=null,Ef=``,Df=null,J=null,Of=``,kf=-1,Af=-1,jf=0,Mf=!1,Nf=null,Y=[],X=new Bd(Y,{onerr:tp,ontext(e,t){Rf(Z(e,t),e,t)},ontextentity(e,t,n){Rf(e,t,n)},oninterpolation(e,t){if(Mf)return Rf(Z(e,t),e,t);let n=e+X.delimiterOpen.length,r=t-X.delimiterClose.length;for(;Id(Ef.charCodeAt(n));)n++;for(;Id(Ef.charCodeAt(r-1));)r--;let i=Z(n,r);i.includes(`&`)&&(i=q.decodeEntities(i,!1)),Xf({type:5,content:ep(i,!1,Q(n,r)),loc:Q(e,t)})},onopentagname(e,t){let n=Z(e,t);Df={type:1,tag:n,ns:q.getNamespace(n,Y[0],q.ns),tagType:0,props:[],children:[],loc:Q(e-1,t),codegenNode:void 0}},onopentagend(e){Lf(e)},onclosetag(e,t){let n=Z(e,t);if(!q.isVoidTag(n)){let r=!1;for(let e=0;e0&&tp(24,Y[0].loc.start.offset);for(let n=0;n<=e;n++)zf(Y.shift(),t,n(e.type===7?e.rawName:e.name)===n)&&tp(2,t)},onattribend(e,t){if(Df&&J){if(Qf(J.loc,t),e!==0){if(Of.includes(`&`)&&(Of=q.decodeEntities(Of,!0)),J.type===6)J.name===`class`&&(Of=Yf(Of).trim()),e===1&&!Of&&tp(13,t),J.value={type:2,content:Of,loc:e===1?Q(kf,Af):Q(kf-1,Af+1)},X.inSFCRoot&&Df.tag===`template`&&J.name===`lang`&&Of&&Of!==`html`&&X.enterRCDATA(Rd(`e.content===`sync`))>-1&&Ud(`COMPILER_V_BIND_SYNC`,q,J.loc,J.arg.loc.source)&&(J.name=`model`,J.modifiers.splice(e,1))}}(J.type!==7||J.name!==`pre`)&&Df.props.push(J)}Of=``,kf=Af=-1},oncomment(e,t){q.comments&&Xf({type:3,content:Z(e,t),loc:Q(e-4,t+3)})},onend(){let e=Ef.length;for(let t=0;t{let i=t.start.offset+n;return ep(e,!1,Q(i,i+e.length),0,+!!r)},s={source:o(a.trim(),n.indexOf(a,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1},c=i.trim().replace(Ff,``).trim(),l=i.indexOf(c),u=c.match(Pf);if(u){c=c.replace(Pf,``).trim();let e=u[1].trim(),t;if(e&&(t=n.indexOf(e,l+c.length),s.key=o(e,t,!0)),u[2]){let r=u[2].trim();r&&(s.index=o(r,n.indexOf(r,s.key?t+e.length:l+c.length),!0))}}return c&&(s.value=o(c,l,!0)),s}function Z(e,t){return Ef.slice(e,t)}function Lf(e){X.inSFCRoot&&(Df.innerLoc=Q(e+1,e+1)),Xf(Df);let{tag:t,ns:n}=Df;n===0&&q.isPreTag(t)&&jf++,q.isVoidTag(t)?zf(Df,e):(Y.unshift(Df),(n===1||n===2)&&(X.inXML=!0)),Df=null}function Rf(e,t,n){{let t=Y[0]&&Y[0].tag;t!==`script`&&t!==`style`&&e.includes(`&`)&&(e=q.decodeEntities(e,!1))}let r=Y[0]||Tf,i=r.children[r.children.length-1];i&&i.type===2?(i.content+=e,Qf(i.loc,n)):r.children.push({type:2,content:e,loc:Q(t,n)})}function zf(e,t,n=!1){n?Qf(e.loc,Vf(t,60)):Qf(e.loc,Bf(t,62)+1),X.inSFCRoot&&(e.children.length?e.innerLoc.end=c({},e.children[e.children.length-1].loc.end):e.innerLoc.end=c({},e.innerLoc.start),e.innerLoc.source=Z(e.innerLoc.start.offset,e.innerLoc.end.offset));let{tag:r,ns:i,children:a}=e;if(Mf||(r===`slot`?e.tagType=2:Uf(e)?e.tagType=3:Wf(e)&&(e.tagType=1)),X.inRCDATA||(e.children=qf(a)),i===0&&q.isIgnoreNewlineTag(r)){let e=a[0];e&&e.type===2&&(e.content=e.content.replace(/^\r?\n/,``))}i===0&&q.isPreTag(r)&&jf--,Nf===e&&(Mf=X.inVPre=!1,Nf=null),X.inXML&&(Y[0]?Y[0].ns:q.ns)===0&&(X.inXML=!1);{let t=e.props;if(!X.inSFCRoot&&Hd(`COMPILER_NATIVE_TEMPLATE`,q)&&e.tag===`template`&&!Uf(e)){let t=Y[0]||Tf,n=t.children.indexOf(e);t.children.splice(n,1,...e.children)}let n=t.find(e=>e.type===6&&e.name===`inline-template`);n&&Ud(`COMPILER_INLINE_TEMPLATE`,q,n.loc)&&e.children.length&&(n.value={type:2,content:Z(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function Bf(e,t){let n=e;for(;Ef.charCodeAt(n)!==t&&n=0;)n--;return n}var Hf=new Set([`if`,`else`,`else-if`,`for`,`slot`]);function Uf({tag:e,props:t}){if(e===`template`){for(let e=0;e64&&e<91}var Kf=/\r\n/g;function qf(e){let t=q.whitespace!==`preserve`,n=!1;for(let r=0;re.type!==3);return t.length===1&&t[0].type===1&&!ff(t[0])?t[0]:null}function op(e,t,n,r=!1,i=!1){let{children:a}=e,o=[];for(let t=0;t0){if(e>=2){s.codegenNode.patchFlag=-1,o.push(s);continue}}else{let e=s.codegenNode;if(e.type===13){let t=e.patchFlag;if((t===void 0||t===512||t===1)&&up(s,n)>=2){let t=dp(s);t&&(e.props=n.hoist(t))}e.dynamicProps&&=n.hoist(e.dynamicProps)}}}else if(s.type===12&&(r?0:sp(s,n))>=2){s.codegenNode.type===14&&s.codegenNode.arguments.length>0&&s.codegenNode.arguments.push(`-1`),o.push(s);continue}if(s.type===1){let t=s.tagType===1;t&&n.scopes.vSlot++,op(s,e,n,!1,i),t&&n.scopes.vSlot--}else if(s.type===11)op(s,e,n,s.children.length===1,!0);else if(s.type===9)for(let t=0;te.key===t||e.key.content===t);return n&&n.value}}o.length&&n.transformHoist&&n.transformHoist(a,n,e)}function sp(e,t){let{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;let r=n.get(e);if(r!==void 0)return r;let i=e.codegenNode;if(i.type!==13||i.isBlock&&e.tag!==`svg`&&e.tag!==`foreignObject`&&e.tag!==`math`)return 0;if(i.patchFlag===void 0){let r=3,a=up(e,t);if(a===0)return n.set(e,0),0;a1)for(let i=0;in&&(D.childIndex--,D.onNodeRemoved()),D.parent.children.splice(n,1)},onNodeRemoved:i,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){v(e)&&(e=W(e)),D.hoists.push(e);let t=W(`_hoisted_${D.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache(e,t=!1,n=!1){let r=Od(D.cached.length,e,t,n);return D.cached.push(r),r}};return D.filters=new Set,D}function pp(e,t){let n=fp(e,t);gp(e,n),t.hoistStatic&&ip(e,n),t.ssr||mp(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function mp(e,t){let{helper:n}=t,{children:r}=e;if(r.length===1){let n=ap(e);if(n&&n.codegenNode){let r=n.codegenNode;r.type===13&&Md(r,t),e.codegenNode=r}else e.codegenNode=r[0]}else r.length>1&&(e.codegenNode=Sd(t,n(Nu),void 0,e.children,64,void 0,void 0,!0,void 0,!1))}function hp(e,t){let n=0,r=()=>{n--};for(;nt===e:t=>e.test(t);return(e,r)=>{if(e.type===1){let{props:i}=e;if(e.tagType===3&&i.some(uf))return;let a=[];for(let o=0;o`${vd[e]}: _${vd[e]}`;function bp(e,{mode:t=`function`,prefixIdentifiers:n=t===`module`,sourceMap:r=!1,filename:i=`template.vue.html`,scopeId:a=null,optimizeImports:o=!1,runtimeGlobalName:s=`Vue`,runtimeModuleName:c=`vue`,ssrRuntimeModuleName:l=`vue/server-renderer`,ssr:u=!1,isTS:d=!1,inSSR:f=!1}){let p={mode:t,prefixIdentifiers:n,sourceMap:r,filename:i,scopeId:a,optimizeImports:o,runtimeGlobalName:s,runtimeModuleName:c,ssrRuntimeModuleName:l,ssr:u,isTS:d,inSSR:f,source:e.source,code:``,column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(e){return`_${vd[e]}`},push(e,t=-2,n){p.code+=e},indent(){m(++p.indentLevel)},deindent(e=!1){e?--p.indentLevel:m(--p.indentLevel)},newline(){m(p.indentLevel)}};function m(e){p.push(` +`+` `.repeat(e),0)}return p}function xp(e,t={}){let n=bp(e,t);t.onContextCreated&&t.onContextCreated(n);let{mode:r,push:i,prefixIdentifiers:a,indent:o,deindent:s,newline:c,scopeId:l,ssr:u}=n,d=Array.from(e.helpers),f=d.length>0,p=!a&&r!==`module`;if(Sp(e,n),i(`function ${u?`ssrRender`:`render`}(${(u?[`_ctx`,`_push`,`_parent`,`_attrs`]:[`_ctx`,`_cache`]).join(`, `)}) {`),o(),p&&(i(`with (_ctx) {`),o(),f&&(i(`const { ${d.map(yp).join(`, `)} } = _Vue +`,-1),c())),e.components.length&&(Cp(e.components,`component`,n),(e.directives.length||e.temps>0)&&c()),e.directives.length&&(Cp(e.directives,`directive`,n),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),Cp(e.filters,`filter`,n),c()),e.temps>0){i(`let `);for(let t=0;t0?`, `:``}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(i(` +`,0),c()),u||i(`return `),e.codegenNode?Dp(e.codegenNode,n):i(`null`),p&&(s(),i(`}`)),s(),i(`}`),{ast:e,code:n.code,preamble:``,map:n.map?n.map.toJSON():void 0}}function Sp(e,t){let{ssr:n,prefixIdentifiers:r,push:i,newline:a,runtimeModuleName:o,runtimeGlobalName:s,ssrRuntimeModuleName:c}=t,l=s,u=Array.from(e.helpers);u.length>0&&(i(`const _Vue = ${l} +`,-1),e.hoists.length&&i(`const { ${[Vu,Hu,Uu,Wu,Gu].filter(e=>u.includes(e)).map(yp).join(`, `)} } = _Vue +`,-1)),wp(e.hoists,t),a(),i(`return `)}function Cp(e,t,{helper:n,push:r,newline:i,isTS:a}){let o=n(t===`filter`?Yu:t===`component`?Ku:Ju);for(let n=0;n3||!1;t.push(`[`),n&&t.indent(),Ep(e,t,n),n&&t.deindent(),t.push(`]`)}function Ep(e,t,n=!1,r=!0){let{push:i,newline:a}=t;for(let o=0;oe||`null`)}function Ip(e,t){let{push:n,helper:r,pure:i}=t,a=v(e.callee)?e.callee:r(e.callee);i&&n(vp),n(a+`(`,-2,e),Ep(e.arguments,t),n(`)`)}function Lp(e,t){let{push:n,indent:r,deindent:i,newline:a}=t,{properties:o}=e;if(!o.length){n(`{}`,-2,e);return}let s=o.length>1||!1;n(s?`{`:`{ `),s&&r();for(let e=0;e `),(c||s)&&(n(`{`),r()),o?(c&&n(`return `),f(o)?Tp(o,t):Dp(o,t)):s&&Dp(s,t),(c||s)&&(i(),n(`}`)),l&&(e.isNonScopedSlot&&n(`, undefined, true`),n(`)`))}function Bp(e,t){let{test:n,consequent:r,alternate:i,newline:a}=e,{push:o,indent:s,deindent:c,newline:l}=t;if(n.type===4){let e=!Yd(n.content);e&&o(`(`),kp(n,t),e&&o(`)`)}else o(`(`),Dp(n,t),o(`)`);a&&s(),t.indentLevel++,a||o(` `),o(`? `),Dp(r,t),t.indentLevel--,a&&l(),a||o(` `),o(`: `);let u=i.type===19;u||t.indentLevel++,Dp(i,t),u||t.indentLevel--,a&&c(!0)}function Vp(e,t){let{push:n,helper:r,indent:i,deindent:a,newline:o}=t,{needPauseTracking:s,needArraySpread:c}=e;c&&n(`[...(`),n(`_cache[${e.index}] || (`),s&&(i(),n(`${r(ud)}(-1`),e.inVOnce&&n(`, true`),n(`),`),o(),n(`(`)),n(`_cache[${e.index}] = `),Dp(e.value,t),s&&(n(`).cacheIndex = ${e.index},`),o(),n(`${r(ud)}(1),`),o(),n(`_cache[${e.index}]`),a()),n(`)`),c&&n(`)]`)}RegExp(`\\b`+`arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield`.split(`,`).join(`\\b|\\b`)+`\\b`);var Hp=_p(/^(?:if|else|else-if)$/,(e,t,n)=>Up(e,t,n,(e,t,r)=>{let i=n.parent.children,a=i.indexOf(e),o=0;for(;a-->=0;){let e=i[a];e&&e.type===9&&(o+=e.branches.length)}return()=>{if(r)e.codegenNode=Gp(t,o,n);else{let r=qp(e.codegenNode);r.alternate=Gp(t,o+e.branches.length-1,n)}}}));function Up(e,t,n,r){if(t.name!==`else`&&(!t.exp||!t.exp.content.trim())){let r=t.exp?t.exp.loc:e.loc;n.onError(K(28,t.loc)),t.exp=W(`true`,!1,r)}if(t.name===`if`){let i=Wp(e,t),a={type:9,loc:Zf(e.loc),branches:[i]};if(n.replaceNode(a),r)return r(a,i,!0)}else{let i=n.parent.children,a=i.indexOf(e);for(;a-->=-1;){let o=i[a];if(o&&Cf(o)){n.removeNode(o);continue}if(o&&o.type===9){(t.name===`else-if`||t.name===`else`)&&o.branches[o.branches.length-1].condition===void 0&&n.onError(K(30,e.loc)),n.removeNode();let i=Wp(e,t);o.branches.push(i);let a=r&&r(o,i,!1);gp(i,n),a&&a(),n.currentNode=null}else n.onError(K(30,e.loc));break}}}function Wp(e,t){let n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name===`else`?void 0:t.exp,children:n&&!rf(e,`for`)?e.children:[e],userKey:af(e,`key`),isTemplateIf:n}}function Gp(e,t,n){return e.condition?Dd(e.condition,Kp(e,t,n),G(n.helper(Uu),[`""`,`true`])):Kp(e,t,n)}function Kp(e,t,n){let{helper:r}=n,i=U(`key`,W(`${t}`,!1,bd,2)),{children:a}=e,o=a[0];if(a.length!==1||o.type!==1){if(a.length===1&&o.type===11){let e=o.codegenNode;return hf(e,i,n),e}return Sd(n,r(Nu),wd([i]),a,64,void 0,void 0,!0,!1,!1,e.loc)}{let e=o.codegenNode,t=yf(e);return t.type===13&&Md(t,n),hf(t,i,n),e}}function qp(e){for(;;)if(e.type===19){if(e.alternate.type===19)e=e.alternate;else return e}else e.type===20&&(e=e.value)}var Jp=_p(`for`,(e,t,n)=>{let{helper:r,removeHelper:i}=n;return Yp(e,t,n,t=>{let a=G(r(Zu),[t.source]),o=df(e),s=rf(e,`memo`),c=af(e,`key`,!1,!0);c&&c.type;let l=c&&(c.type===6?c.value?W(c.value.content,!0):void 0:c.exp),u=l?U(`key`,l):null,d=t.source.type===4&&t.source.constType>0,f=d?64:c?128:256;return t.codegenNode=Sd(n,r(Nu),void 0,a,f,void 0,void 0,!0,!d,!1,e.loc),()=>{let c,{children:f}=t,p=f.length!==1||f[0].type!==1,m=ff(e)?e:o&&e.children.length===1&&ff(e.children[0])?e.children[0]:null;if(m)c=m.codegenNode,o&&u&&hf(c,u,n);else if(p)c=Sd(n,r(Nu),u?wd([u]):void 0,e.children,64,void 0,void 0,!0,void 0,!1);else{c=f[0].codegenNode,o&&u&&hf(c,u,n);let e=!d||c.isBlockRequired===!0;c.isBlock!==e&&(c.isBlock?(i(Ru),i(jd(n.inSSR,c.isComponent))):i(Ad(n.inSSR,c.isComponent))),c.isBlock=e,c.isBlock?(r(Ru),r(jd(n.inSSR,c.isComponent))):(r(Ad(n.inSSR,c.isComponent)),c.needsPatch&&(c.patchFlag=(c.patchFlag??0)|512))}if(s){let e=Ed(Zp(t.parseResult,[W(`_cached`)]));e.body=kd([Td([`const _memo = (`,s.exp,`)`]),Td([`if (_cached && _cached.el`,...l?[` && _cached.key === `,l]:[],` && ${n.helperString(_d)}(_cached, _memo)) return _cached`]),Td([`const _item = `,c]),W(`_item.memo = _memo`),W(`return _item`)]),a.arguments.push(e,W(`_cache`),W(String(n.cached.length))),n.cached.push(null)}else a.arguments.push(Ed(Zp(t.parseResult),c,!0))}})});function Yp(e,t,n,r){if(!t.exp){n.onError(K(31,t.loc));return}let i=t.forParseResult;if(!i){n.onError(K(32,t.loc));return}Xp(i,n);let{addIdentifiers:a,removeIdentifiers:o,scopes:s}=n,{source:c,value:l,key:u,index:d}=i,f={type:11,loc:t.loc,source:c,valueAlias:l,keyAlias:u,objectIndexAlias:d,parseResult:i,children:df(e)?e.children:[e]};n.replaceNode(f),s.vFor++;let p=r&&r(f);return()=>{s.vFor--,p&&p()}}function Xp(e,t){e.finalized||=!0}function Zp({value:e,key:t,index:n},r=[]){return Qp([e,t,n,...r])}function Qp(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((e,t)=>e||W(`_`.repeat(t+1),!1))}var $p=W(`undefined`,!1),em=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){let n=rf(e,`slot`);if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},tm=(e,t,n,r)=>Ed(e,n,!1,!0,n.length?n[0].loc:r);function nm(e,t,n=tm){t.helper(pd);let{children:r,loc:i}=e,a=[],o=[],s=t.scopes.vSlot>0||t.scopes.vFor>0,c=rf(e,`slot`,!0);if(c){let{arg:e,exp:t}=c;e&&!Kd(e)&&(s=!0),a.push(U(e||W(`default`,!0),n(t,void 0,r,i)))}let l=!1,u=!1,d=[],f=new Set,p=0;for(let e=0;e{let a=n(e,void 0,r,i);return t.compatConfig&&(a.isNonScopedSlot=!0),U(`default`,a)};l?d.length&&!d.every(Sf)&&(u?t.onError(K(39,d[0].loc)):a.push(e(void 0,d))):a.push(e(void 0,r))}let m=s?2:im(e.children)?3:1,h=wd(a.concat(U(`_`,W(m+``,!1))),i);return o.length&&(h=G(t.helper($u),[h,Cd(o)])),{slots:h,hasDynamicSlots:s}}function rm(e,t,n){let r=[U(`name`,e),U(`fn`,t)];return n!=null&&r.push(U(`key`,W(String(n),!0))),wd(r)}function im(e){for(let t=0;tfunction(){if(e=t.currentNode,e.type!==1||e.tagType!==0&&e.tagType!==1)return;let{tag:n,props:r}=e,i=e.tagType===1,a=i?sm(e,t):`"${n}"`,o=b(a)&&a.callee===qu,s,c,l=0,u,d,f,p=!1,m=!1,h=o||a===Pu||a===Fu||!i&&(n===`svg`||n===`foreignObject`||n===`math`);if(r.length>0){let n=cm(e,t,void 0,i,o);s=n.props,l=n.patchFlag,d=n.dynamicPropNames,p=n.needsPatch,m=n.isBlockRequired;let r=n.directives;f=r&&r.length?Cd(r.map(e=>dm(e,t))):void 0,n.shouldUseBlock&&(h=!0)}if(e.children.length>0){if(a===Iu&&(h=!0,l|=1024),i&&a!==Pu&&a!==Iu){let{slots:n,hasDynamicSlots:r}=nm(e,t);c=n,r&&(l|=1024)}else if(e.children.length===1&&a!==Pu){let n=e.children[0],r=n.type,i=r===5||r===8;i&&sp(n,t)===0&&(l|=1),c=i||r===2?n:e.children}else c=e.children}d&&d.length&&(u=fm(d));let g=e.codegenNode=Sd(t,a,s,c,l===0?void 0:l,u,f,!!h,!1,i,e.loc);p&&=l===0||l===32,p&&(g.needsPatch=!0),m&&(g.isBlockRequired=!0)};function sm(e,t,n=!1){let{tag:r}=e,i=pm(r),a=af(e,`is`,!1,!0);if(a){if(i||Hd(`COMPILER_IS_ON_ELEMENT`,t)){let e;if(a.type===6?e=a.value&&W(a.value.content,!0):(e=a.exp,e||=W(`is`,!1,a.arg.loc)),e)return G(t.helper(qu),[e])}else a.type===6&&a.value.content.startsWith(`vue:`)&&(r=a.value.content.slice(4))}let o=qd(r)||t.isBuiltInComponent(r);return o?(n||t.helper(o),o):(t.helper(Ku),t.components.add(r),vf(r,`component`))}function cm(e,t,n=e.props,r,i,a=!1){let{tag:s,loc:c,children:l}=e,u=[],d=[],f=[],p=l.length>0,m=!1,h=!1,g=0,_=!1,v=!1,b=!1,x=!1,S=!1,C=!1,w=[],T=e=>{u.length&&(d.push(wd(lm(u),c)),u=[]),e&&d.push(e)},E=()=>{t.scopes.vFor>0&&u.push(U(W(`ref_for`,!0),W(`true`)))},te=({key:e,value:n})=>{if(Kd(e)){let a=e.content,s=o(a);if(s&&(!r||i)&&a.toLowerCase()!==`onclick`&&a!==`onUpdate:modelValue`&&!D(a)&&(x=!0),s&&D(a)&&(C=!0),a===`ref`&&(_=!0),s&&n.type===14&&(n=n.arguments[0]),n.type===20||(n.type===4||n.type===8)&&sp(n,t)>0)return;a===`class`?v=!0:a===`style`?b=!0:a!==`ref`&&a!==`key`&&!w.includes(a)&&w.push(a),r&&(a===`class`||a===`style`)&&!w.includes(a)&&w.push(a)}else S=!0};for(let i=0;ie.content===`prop`)&&(g|=32);let C=t.directiveTransforms[n];if(C){let{props:n,needRuntime:r}=C(o,e,t);!a&&n.forEach(te),x&&i&&!Kd(i)?T(wd(n,c)):u.push(...n),r&&(f.push(o),y(r)&&am.set(o,r))}else ee(n)||(f.push(o),p&&(m=!0,h=!0))}}let O;d.length?(T(),O=d.length>1?G(t.helper(td),d,c):d[0]):u.length&&(O=wd(lm(u),c)),S?g|=16:(v&&!r&&(g|=2),b&&!r&&(g|=4),w.length&&(g|=8),x&&(g|=32));let ne=(g===0||g===32)&&(_||C||f.length>0);if(!m&&ne&&(g|=512),!t.inSSR&&O)switch(O.type){case 15:let e=-1,n=-1,r=!1;for(let t=0;tU(e,t)),i))}return Cd(n,e.loc)}function fm(e){let t=`[`;for(let n=0,r=e.length;n{if(ff(e)){let{children:n,loc:r}=e,{slotName:i,slotProps:a}=hm(e,t),o=[t.prefixIdentifiers?`_ctx.$slots`:`$slots`,i,`{}`,`undefined`,`true`],s=2;a&&(o[2]=a,s=3),n.length&&(o[3]=Ed([],n,!1,!1,r),s=4),t.scopeId&&!t.slotted&&(s=5),o.splice(s),e.codegenNode=G(t.helper(Qu),o,r)}};function hm(e,t){let n=`"default"`,r,i=[];for(let t=0;t0){let{props:n,directives:a}=cm(e,t,i,!1,!1);r=n,a.length&&t.onError(K(36,a[0].loc))}return{slotName:n,slotProps:r}}var gm=(e,t,n,r)=>{let{loc:i,modifiers:a,arg:o}=e;!e.exp&&!a.length&&n.onError(K(35,i));let s;if(o.type===4){if(o.isStatic){let e=o.content;e.startsWith(`vue:`)&&(e=`vnode-${e.slice(4)}`),s=W(t.tagType!==0||e.startsWith(`vnode`)||!/[A-Z]/.test(e)?j(k(e)):`on:${e}`,!0,o.loc)}else s=Td([`${n.helperString(ld)}(`,o,`)`])}else s=o,s.children.unshift(`${n.helperString(ld)}(`),s.children.push(`)`);let c=e.exp;c&&!c.content.trim()&&(c=void 0);let l=n.cacheHandlers&&!c&&!n.inVOnce;if(c){let e=ef(c),t=!(e||nf(c)),n=c.content.includes(`;`);(t||l&&e)&&(c=Td([`${t?`$event`:`(...args)`} => ${n?`{`:`(`}`,c,n?`}`:`)`]))}let u={props:[U(s,c||W(`() => {}`,!1,i))]};return r&&(u=r(u)),l&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach(e=>e.key.isHandlerKey=!0),u},_m=(e,t,n)=>{let{modifiers:r,loc:i}=e,a=e.arg,{exp:o}=e;return o&&o.type===4&&!o.content.trim()&&(o=void 0),a.type===4?a.isStatic||(a.content=a.content?`${a.content} || ""`:`""`):(a.children.unshift(`(`),a.children.push(`) || ""`)),r.some(e=>e.content===`camel`)&&(a.type===4?a.content=a.isStatic?k(a.content):`${n.helperString(sd)}(${a.content})`:(a.children.unshift(`${n.helperString(sd)}(`),a.children.push(`)`))),n.inSSR||(r.some(e=>e.content===`prop`)&&vm(a,`.`),r.some(e=>e.content===`attr`)&&vm(a,`^`)),{props:[U(a,o)]}},vm=(e,t)=>{e.type===4?e.content=e.isStatic?t+e.content:`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(`)`))},ym=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{let n=e.children,r,i=!1;for(let e=0;ee.type===7&&!t.directiveTransforms[e.name])&&e.tag!==`template`)))for(let e=0;e{if(e.type===1&&rf(e,`once`,!0))return bm.has(e)||t.inVOnce||t.inSSR?void 0:(bm.add(e),t.inVOnce=!0,t.helper(ud),()=>{t.inVOnce=!1;let e=t.currentNode;e.codegenNode&&=t.cache(e.codegenNode,!0,!0)})},Sm=(e,t,n)=>{let{exp:r,arg:i}=e;if(!r)return n.onError(K(41,e.loc)),Cm();let a=r.loc.source.trim(),o=r.type===4?r.content:a,s=n.bindingMetadata[a];if(s===`props`||s===`props-aliased`)return n.onError(K(44,r.loc)),Cm();if(s===`literal-const`||s===`setup-const`)return n.onError(K(45,r.loc)),Cm();if(!o.trim()||!ef(r))return n.onError(K(42,r.loc)),Cm();let c=i||W(`modelValue`,!0),l=i?Kd(i)?`onUpdate:${k(i.content)}`:Td([`"onUpdate:" + `,i]):`onUpdate:modelValue`,u;u=Td([`${n.isTS?`($event: any)`:`$event`} => ((`,r,`) = $event)`]);let d=[U(c,e.exp),U(l,u)];if(e.modifiers.length&&t.tagType===1){let t=e.modifiers.map(e=>e.content).map(e=>(Yd(e)?e:JSON.stringify(e))+`: true`).join(`, `),n=i?Kd(i)?`${i.content}Modifiers`:Td([i,` + "Modifiers"`]):`modelModifiers`;d.push(U(n,W(`{ ${t} }`,!1,e.loc,2)))}return Cm(d)};function Cm(e=[]){return{props:e}}var wm=/[\w).+\-_$\]]/,Tm=(e,t)=>{Hd(`COMPILER_FILTERS`,t)&&(e.type===5?Em(e.content,t):e.type===1&&e.props.forEach(e=>{e.type===7&&e.name!==`for`&&e.exp&&Em(e.exp,t)}))};function Em(e,t){if(e.type===4)Dm(e,t);else for(let n=0;n=0&&(t=n.charAt(e),t===` `);e--);(!t||!wm.test(t))&&(o=!0)}}m===void 0?m=n.slice(0,p).trim():u!==0&&g();function g(){h.push(n.slice(u,p).trim()),u=p+1}if(h.length){for(p=0;p{if(e.type===1){let n=rf(e,`memo`);return!n||km.has(e)||t.inSSR?void 0:(km.add(e),()=>{let r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&Md(r,t),e.codegenNode=G(t.helper(gd),[n.exp,Ed(void 0,r),`_cache`,String(t.cached.length)]),t.cached.push(null))})}},jm=(e,t)=>{if(e.type===1){for(let n of e.props)if(n.type===7&&n.name===`bind`&&(!n.exp||n.exp.type===4&&!n.exp.content.trim())&&n.arg){let e=n.arg;if(e.type!==4||!e.isStatic)t.onError(K(53,e.loc)),n.exp=W(``,!0,e.loc);else{let t=k(e.content);(Xd.test(t[0])||t[0]===`-`)&&(n.exp=W(t,!1,e.loc))}}}};function Mm(e){return[[jm,xm,Hp,Am,Jp,Tm,mm,om,em,ym],{on:gm,bind:_m,model:Sm}]}function Nm(e,t={}){let n=t.onError||Wd,r=t.mode===`module`;t.prefixIdentifiers===!0?n(K(48)):r&&n(K(49)),t.cacheHandlers&&n(K(50)),t.scopeId&&!r&&n(K(51));let i=c({},t,{prefixIdentifiers:!1}),a=v(e)?rp(e,i):e,[o,s]=Mm();return pp(a,c({},i,{nodeTransforms:[...o,...t.nodeTransforms||[]],directiveTransforms:c({},s,t.directiveTransforms||{})})),xp(a,i)}var Pm=()=>({props:[]}),Fm=Symbol(``),Im=Symbol(``),Lm=Symbol(``),Rm=Symbol(``),zm=Symbol(``),Bm=Symbol(``),Vm=Symbol(``),Hm=Symbol(``),Um=Symbol(``),Wm=Symbol(``);yd({[Fm]:`vModelRadio`,[Im]:`vModelCheckbox`,[Lm]:`vModelText`,[Rm]:`vModelSelect`,[zm]:`vModelDynamic`,[Bm]:`withModifiers`,[Vm]:`withKeys`,[Hm]:`vShow`,[Um]:`Transition`,[Wm]:`TransitionGroup`});var Gm;function Km(e,t=!1){return Gm||=document.createElement(`div`),t?(Gm.innerHTML=`
`,Gm.children[0].getAttribute(`foo`)):(Gm.innerHTML=e,Gm.textContent)}var qm={parseMode:`html`,isVoidTag:Ee,isNativeTag:e=>Ce(e)||we(e)||Te(e),isPreTag:e=>e===`pre`,isIgnoreNewlineTag:e=>e===`pre`||e===`textarea`,decodeEntities:Km,isBuiltInComponent:e=>{if(e===`Transition`||e===`transition`)return Um;if(e===`TransitionGroup`||e===`transition-group`)return Wm},getNamespace(e,t,n){let r=t?t.ns:n;if(t&&r===2){if(t.tag===`annotation-xml`){if(e===`svg`)return 1;t.props.some(e=>e.type===6&&e.name===`encoding`&&e.value!=null&&(e.value.content===`text/html`||e.value.content===`application/xhtml+xml`))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!==`mglyph`&&e!==`malignmark`&&(r=0)}else t&&r===1&&(t.tag===`foreignObject`||t.tag===`desc`||t.tag===`title`)&&(r=0);if(r===0){if(e===`svg`)return 1;if(e===`math`)return 2}return r}},Jm=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name===`style`&&t.value&&(e.props[n]={type:7,name:`bind`,arg:W(`style`,!0,t.loc),exp:Ym(t.value.content,t.loc),modifiers:[],loc:t.loc})})},Ym=(e,t)=>{let n=ge(e);return W(JSON.stringify(n),!1,t,3)};function Xm(e,t){return K(e,t,void 0)}var Zm=(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(Xm(54,i)),t.children.length&&(n.onError(Xm(55,i)),t.children.length=0),{props:[U(W(`innerHTML`,!0,i),r||W(``,!0))]}},Qm=(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(Xm(56,i)),t.children.length&&(n.onError(Xm(57,i)),t.children.length=0),{props:[U(W(`textContent`,!0),r?sp(r,n)>0?r:G(n.helperString(ed),[r],i):W(``,!0))]}},$m=(e,t,n)=>{let r=Sm(e,t,n);if(!r.props.length||t.tagType===1)return r;e.arg&&n.onError(Xm(59,e.arg.loc));let{tag:i}=t,a=n.isCustomElement(i);if(i===`input`||i===`textarea`||i===`select`||a){let o=Lm,s=!1;if(i===`input`||a){let r=af(t,`type`);if(r){if(r.type===7)o=zm;else if(r.value)switch(r.value.content){case`radio`:o=Fm;break;case`checkbox`:o=Im;break;case`file`:s=!0,n.onError(Xm(60,e.loc))}}else sf(t)&&(o=zm)}else i===`select`&&(o=Rm);s||(r.needRuntime=n.helper(o))}else n.onError(Xm(58,e.loc));return r.props=r.props.filter(e=>e.key.type!==4||e.key.content!==`modelValue`),r},eh=t(`passive,once,capture`),th=t(`stop,prevent,self,ctrl,shift,alt,meta,exact,middle`),nh=t(`left,right`),rh=t(`onkeyup,onkeydown,onkeypress`),ih=(e,t,n,r)=>{let i=[],a=[],o=[];for(let s=0;sKd(e)&&e.content.toLowerCase()===`onclick`?W(t,!0):e.type===4?e:Td([`(`,e,`) === "onClick" ? "${t}" : (`,e,`)`]),oh=(e,t,n)=>gm(e,t,n,t=>{let{modifiers:r}=e;if(!r.length)return t;let{key:i,value:a}=t.props[0],{keyModifiers:o,nonKeyModifiers:s,eventOptionModifiers:c}=ih(i,r,n,e.loc);if(s.includes(`right`)&&(i=ah(i,`onContextmenu`)),s.includes(`middle`)&&(i=ah(i,`onMouseup`)),s.length&&(a=G(n.helper(Bm),[a,JSON.stringify(s)])),o.length&&(!Kd(i)||rh(i.content.toLowerCase()))&&(a=G(n.helper(Vm),[a,JSON.stringify(o)])),c.length){let e=c.map(re).join(``);i=Kd(i)?W(`${i.content}${e}`,!0):Td([`(`,i,`) + "${e}"`])}return{props:[U(i,a)]}}),sh=(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(Xm(62,i)),{props:[],needRuntime:n.helper(Hm)}},ch=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag===`script`||e.tag===`style`)&&t.removeNode()},lh=[Jm],uh={cloak:Pm,html:Zm,text:Qm,model:$m,on:oh,show:sh};function dh(e,t={}){return Nm(e,c({},qm,t,{nodeTransforms:[ch,...lh,...t.nodeTransforms||[]],directiveTransforms:c({},uh,t.directiveTransforms||{}),transformHoist:null}))}var fh=Object.create(null);function ph(e,t){if(!v(e)){if(e.nodeType)e=e.innerHTML;else return i}let n=ue(e,t),r=fh[n];if(r)return r;if(e[0]===`#`){let t=document.querySelector(e);e=t?t.innerHTML:``}let a=c({hoistStatic:!0,onError:void 0,onWarn:i},t);!a.isCustomElement&&typeof customElements<`u`&&(a.isCustomElement=e=>!!customElements.get(e));let{code:o}=dh(e,a),s=Function(`Vue`,o)(Sc);return s._rc=!0,fh[n]=s}rc(ph);var mh=[`top`,`right`,`bottom`,`left`],hh=[`start`,`end`],gh=mh.reduce((e,t)=>e.concat(t,t+`-`+hh[0],t+`-`+hh[1]),[]),_h=Math.min,vh=Math.max,yh={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function bh(e,t,n){return vh(e,_h(t,n))}function xh(e,t){return typeof e==`function`?e(t):e}function Sh(e){return e.split(`-`)[0]}function Ch(e){return e.split(`-`)[1]}function wh(e){return e===`x`?`y`:`x`}function Th(e){return e===`y`?`height`:`width`}function Eh(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Dh(e){return wh(Eh(e))}function Oh(e,t,n){n===void 0&&(n=!1);let r=Ch(e),i=Dh(e),a=Th(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Lh(o)),[o,Lh(o)]}function kh(e){let t=Lh(e);return[Ah(e),t,Ah(t)]}function Ah(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var jh=[`left`,`right`],Mh=[`right`,`left`],Nh=[`top`,`bottom`],Ph=[`bottom`,`top`];function Fh(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Mh:jh:t?jh:Mh;case`left`:case`right`:return t?Nh:Ph;default:return[]}}function Ih(e,t,n,r){let i=Ch(e),a=Fh(Sh(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Ah)))),a}function Lh(e){let t=Sh(e);return yh[t]+e.slice(t.length)}function Rh(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function zh(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Rh(e)}function Bh(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Vh(e,t,n){let{reference:r,floating:i}=e,a=Eh(t),o=Dh(t),s=Th(o),c=Sh(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=Ch(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Hh(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=xh(t,e),p=zh(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Bh(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Bh(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Uh=50,Wh=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Hh},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Vh(l,r,c),f=r,p=0,m={};for(let n=0;n({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=xh(e,t)||{};if(l==null)return{};let d=zh(u),f={x:n,y:r},p=Dh(i),m=Th(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=_h(d[_],T),D=_h(d[v],T),ee=C-h[m]-D,te=C/2-h[m]/2+w,O=bh(E,te,ee),k=!c.arrow&&Ch(i)!=null&&te!==O&&a.reference[m]/2-(teCh(t)===e),...n.filter(t=>Ch(t)!==e)]:n.filter(e=>Sh(e)===e)).filter(n=>!e||Ch(n)===e||(t?Ah(n)!==n:!1))}var qh=function(e){return e===void 0&&(e={}),{name:`autoPlacement`,options:e,async fn(t){let{rects:n,middlewareData:r,placement:i,platform:a,elements:o}=t,{crossAxis:s=!1,alignment:c,allowedPlacements:l=gh,autoAlignment:u=!0,...d}=xh(e,t),f=c!==void 0||l===gh?Kh(c||null,u,l):l,p=r.autoPlacement?.index||0,m=f[p];if(m==null)return{};if(i!==m)return{reset:{placement:f[0]}};let h=await a.detectOverflow(t,d),g=Oh(m,n,await(a.isRTL==null?void 0:a.isRTL(o.floating))),_=[h[Sh(m)],h[g[0]],h[g[1]]],v=[...r.autoPlacement?.overflows||[],{placement:m,overflows:_}],y=f[p+1];if(y)return{data:{index:p+1,overflows:v},reset:{placement:y}};let b=v.map(e=>{let t=Ch(e.placement);return[e.placement,t&&s?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),x=b.filter(e=>e[2].slice(0,Ch(e[0])?2:3).every(e=>e<=0))[0]?.[0]||b[0][0];return x===i?{}:{data:{index:p+1,overflows:v},reset:{placement:x}}}}},Jh=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=xh(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Sh(r),_=Eh(o),v=Sh(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Lh(o)]:kh(o)),x=p!==`none`;!d&&x&&b.push(...Ih(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Oh(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===Eh(t)||T.every(e=>Eh(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Eh(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}},Yh=new Set([`left`,`top`]);async function Xh(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Sh(n),s=Ch(n),c=Eh(n)===`y`,l=Yh.has(o)?-1:1,u=a&&c?-1:1,d=xh(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Zh=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Xh(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Qh=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=xh(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Eh(i),p=wh(f),m=u[p],h=u[f],g=(e,t)=>bh(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},$h=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=xh(e,t),c=await i.detectOverflow(t,s),l=Sh(n),u=Ch(n),d=Eh(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=_h(p-c[m],g),y=_h(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*vh(c.left,c.right):S=p-2*vh(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function eg(e){return e.ownerDocument?.defaultView||window}function tg(e){return eg(e).getComputedStyle(e)}var ng=Math.min,rg=Math.max,ig=Math.round;function ag(e){let t=tg(e),n=parseFloat(t.width),r=parseFloat(t.height),i=e.offsetWidth,a=e.offsetHeight,o=ig(n)!==i||ig(r)!==a;return o&&(n=i,r=a),{width:n,height:r,fallback:o}}function og(e){return dg(e)?(e.nodeName||``).toLowerCase():``}var sg;function cg(){if(sg)return sg;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(sg=e.brands.map((e=>e.brand+`/`+e.version)).join(` `),sg):navigator.userAgent}function lg(e){return e instanceof eg(e).HTMLElement}function ug(e){return e instanceof eg(e).Element}function dg(e){return e instanceof eg(e).Node}function fg(e){return typeof ShadowRoot>`u`?!1:e instanceof eg(e).ShadowRoot||e instanceof ShadowRoot}function pg(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=tg(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&![`inline`,`contents`].includes(i)}function mg(e){return[`table`,`td`,`th`].includes(og(e))}function hg(e){let t=/firefox/i.test(cg()),n=tg(e),r=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!==`none`||n.perspective!==`none`||!!r&&r!==`none`||t&&n.willChange===`filter`||t&&!!n.filter&&n.filter!==`none`||[`transform`,`perspective`].some((e=>n.willChange.includes(e)))||[`paint`,`layout`,`strict`,`content`].some((e=>{let t=n.contain;return t!=null&&t.includes(e)}))}function gg(){return!/^((?!chrome|android).)*safari/i.test(cg())}function _g(e){return[`html`,`body`,`#document`].includes(og(e))}function vg(e){return ug(e)?e:e.contextElement}var yg={x:1,y:1};function bg(e){let t=vg(e);if(!lg(t))return yg;let n=t.getBoundingClientRect(),{width:r,height:i,fallback:a}=ag(t),o=(a?ig(n.width):n.width)/r,s=(a?ig(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}function xg(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=vg(e),o=yg;t&&(r?ug(r)&&(o=bg(r)):o=bg(e));let s=a?eg(a):window,c=!gg()&&n,l=(i.left+(c&&s.visualViewport?.offsetLeft||0))/o.x,u=(i.top+(c&&s.visualViewport?.offsetTop||0))/o.y,d=i.width/o.x,f=i.height/o.y;if(a){let e=eg(a),t=r&&ug(r)?eg(r):r,n=e.frameElement;for(;n&&r&&t!==e;){let e=bg(n),t=n.getBoundingClientRect(),r=getComputedStyle(n);t.x+=(n.clientLeft+parseFloat(r.paddingLeft))*e.x,t.y+=(n.clientTop+parseFloat(r.paddingTop))*e.y,l*=e.x,u*=e.y,d*=e.x,f*=e.y,l+=t.x,u+=t.y,n=eg(n).frameElement}}return{width:d,height:f,top:u,right:l+d,bottom:u+f,left:l,x:l,y:u}}function Sg(e){return((dg(e)?e.ownerDocument:e.document)||window.document).documentElement}function Cg(e){return ug(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function wg(e){return xg(Sg(e)).left+Cg(e).scrollLeft}function Tg(e){if(og(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||fg(e)&&e.host||Sg(e);return fg(t)?t.host:t}function Eg(e){let t=Tg(e);return _g(t)?t.ownerDocument.body:lg(t)&&pg(t)?t:Eg(t)}function Dg(e,t){t===void 0&&(t=[]);let n=Eg(e),r=n===e.ownerDocument?.body,i=eg(n);return r?t.concat(i,i.visualViewport||[],pg(n)?n:[]):t.concat(n,Dg(n))}function Og(e,t,n){return t===`viewport`?Bh(function(e,t){let n=eg(e),r=Sg(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=gg();(e||!e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s,y:c}}(e,n)):ug(t)?Bh(function(e,t){let n=xg(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=lg(e)?bg(e):{x:1,y:1};return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}(t,n)):Bh(function(e){let t=Sg(e),n=Cg(e),r=e.ownerDocument.body,i=rg(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=rg(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+wg(e),s=-n.scrollTop;return tg(r).direction===`rtl`&&(o+=rg(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}(Sg(e)))}function kg(e){return lg(e)&&tg(e).position!==`fixed`?e.offsetParent:null}function Ag(e){let t=eg(e),n=kg(e);for(;n&&mg(n)&&tg(n).position===`static`;)n=kg(n);return n&&(og(n)===`html`||og(n)===`body`&&tg(n).position===`static`&&!hg(n))?t:n||function(e){let t=Tg(e);for(;lg(t)&&!_g(t);){if(hg(t))return t;t=Tg(t)}return null}(e)||t}function jg(e,t,n){let r=lg(t),i=Sg(t),a=xg(e,!0,n===`fixed`,t),o={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(r||!r&&n!==`fixed`){if((og(t)!==`body`||pg(i))&&(o=Cg(t)),lg(t)){let e=xg(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=wg(i))}return{x:a.left+o.scrollLeft-s.x,y:a.top+o.scrollTop-s.y,width:a.width,height:a.height}}var Mg={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?function(e,t){let n=t.get(e);if(n)return n;let r=Dg(e).filter((e=>ug(e)&&og(e)!==`body`)),i=null,a=tg(e).position===`fixed`,o=a?Tg(e):e;for(;ug(o)&&!_g(o);){let e=tg(o),t=hg(o);(a?t||i:t||e.position!==`static`||!i||![`absolute`,`fixed`].includes(i.position))?i=e:r=r.filter((e=>e!==o)),o=Tg(o)}return t.set(e,r),r}(t,this._c):[].concat(n),r],o=a[0],s=a.reduce(((e,n)=>{let r=Og(t,n,i);return e.top=rg(r.top,e.top),e.right=ng(r.right,e.right),e.bottom=ng(r.bottom,e.bottom),e.left=rg(r.left,e.left),e}),Og(t,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e,i=lg(n),a=Sg(n);if(n===a)return t;let o={scrollLeft:0,scrollTop:0},s={x:1,y:1},c={x:0,y:0};if((i||!i&&r!==`fixed`)&&((og(n)!==`body`||pg(a))&&(o=Cg(n)),lg(n))){let e=xg(n);s=bg(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-o.scrollLeft*s.x+c.x,y:t.y*s.y-o.scrollTop*s.y+c.y}},isElement:ug,getDimensions:function(e){return lg(e)?ag(e):e.getBoundingClientRect()},getOffsetParent:Ag,getDocumentElement:Sg,getScale:bg,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e,i=this.getOffsetParent||Ag,a=this.getDimensions;return{reference:jg(t,await i(n),r),floating:{x:0,y:0,...await a(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>tg(e).direction===`rtl`},Ng=(e,t,n)=>{let r=new Map,i={platform:Mg,...n},a={...i.platform,_c:r};return Wh(e,t,{...i,platform:a})};function Pg(e,t){for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]==`object`&&e[n]?Pg(e[n],t[n]):e[n]=t[n])}var Fg={disabled:!1,distance:5,skidding:0,container:`body`,boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:`absolute`,preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:`top`,triggers:[`hover`,`focus`,`touch`],hideTriggers:e=>[...e,`click`],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:`...`},dropdown:{placement:`bottom`,triggers:[`click`],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:`dropdown`,triggers:[`hover`,`focus`],popperTriggers:[`hover`],delay:{show:0,hide:400}}}};function Ig(e,t){let n=Fg.themes[e]||{},r;do r=n[t],typeof r>`u`?n.$extend?n=Fg.themes[n.$extend]||{}:(n=null,r=Fg[t]):n=null;while(n);return r}function Lg(e){let t=[e],n=Fg.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=Fg.themes[n.$extend]||{}):n=null;while(n);return t.map(e=>`v-popper--theme-${e}`)}function Rg(e){let t=[e],n=Fg.themes[e]||{};do n.$extend?(t.push(n.$extend),n=Fg.themes[n.$extend]||{}):n=null;while(n);return t}var zg=!1;if(typeof window<`u`){zg=!1;try{let e=Object.defineProperty({},"passive",{get(){zg=!0}});window.addEventListener(`test`,null,e)}catch{}}var Bg=!1;typeof window<`u`&&typeof navigator<`u`&&(Bg=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);var Vg=[`auto`,`top`,`bottom`,`left`,`right`].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Hg={hover:`mouseenter`,focus:`focus`,click:`click`,touch:`touchstart`,pointer:`pointerdown`},Ug={hover:`mouseleave`,focus:`blur`,click:`click`,touch:`touchend`,pointer:`pointerup`};function Wg(e,t){let n=e.indexOf(t);n!==-1&&e.splice(n,1)}function Gg(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}var Kg=[],qg=null,Jg={};function Yg(e){let t=Jg[e];return t||=Jg[e]=[],t}var Xg=function(){};typeof window<`u`&&(Xg=window.Element);function $(e){return function(t){return Ig(t.theme,e)}}var Zg=`__floating-vue__popper`,Qg=()=>di({name:`VPopper`,provide(){return{[Zg]:{parentPopper:this}}},inject:{[Zg]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:$(`disabled`)},positioningDisabled:{type:Boolean,default:$(`positioningDisabled`)},placement:{type:String,default:$(`placement`),validator:e=>Vg.includes(e)},delay:{type:[String,Number,Object],default:$(`delay`)},distance:{type:[Number,String],default:$(`distance`)},skidding:{type:[Number,String],default:$(`skidding`)},triggers:{type:Array,default:$(`triggers`)},showTriggers:{type:[Array,Function],default:$(`showTriggers`)},hideTriggers:{type:[Array,Function],default:$(`hideTriggers`)},popperTriggers:{type:Array,default:$(`popperTriggers`)},popperShowTriggers:{type:[Array,Function],default:$(`popperShowTriggers`)},popperHideTriggers:{type:[Array,Function],default:$(`popperHideTriggers`)},container:{type:[String,Object,Xg,Boolean],default:$(`container`)},boundary:{type:[String,Xg],default:$(`boundary`)},strategy:{type:String,validator:e=>[`absolute`,`fixed`].includes(e),default:$(`strategy`)},autoHide:{type:[Boolean,Function],default:$(`autoHide`)},handleResize:{type:Boolean,default:$(`handleResize`)},instantMove:{type:Boolean,default:$(`instantMove`)},eagerMount:{type:Boolean,default:$(`eagerMount`)},popperClass:{type:[String,Array,Object],default:$(`popperClass`)},computeTransformOrigin:{type:Boolean,default:$(`computeTransformOrigin`)},autoMinSize:{type:Boolean,default:$(`autoMinSize`)},autoSize:{type:[Boolean,String],default:$(`autoSize`)},autoMaxSize:{type:Boolean,default:$(`autoMaxSize`)},autoBoundaryMaxSize:{type:Boolean,default:$(`autoBoundaryMaxSize`)},preventOverflow:{type:Boolean,default:$(`preventOverflow`)},overflowPadding:{type:[Number,String],default:$(`overflowPadding`)},arrowPadding:{type:[Number,String],default:$(`arrowPadding`)},arrowOverflow:{type:Boolean,default:$(`arrowOverflow`)},flip:{type:Boolean,default:$(`flip`)},shift:{type:Boolean,default:$(`shift`)},shiftCrossAxis:{type:Boolean,default:$(`shiftCrossAxis`)},noAutoFocus:{type:Boolean,default:$(`noAutoFocus`)},disposeTimeout:{type:Number,default:$(`disposeTimeout`)}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:``,strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join(`_`)}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId==null?this.randomId:this.ariaId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide==`function`?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){return this[Zg]?.parentPopper},hasPopperShowTriggerHover(){return this.popperTriggers?.includes(`hover`)||this.popperShowTriggers?.includes(`hover`)}},watch:{shown:`$_autoShowHide`,disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:`$_refreshListeners`,deep:!0},positioningDisabled:`$_refreshListeners`,...[`placement`,`distance`,`skidding`,`boundary`,`strategy`,`overflowPadding`,`arrowPadding`,`preventOverflow`,`shift`,`shiftCrossAxis`,`flip`].reduce((e,t)=>(e[t]=`$_computePosition`,e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:n=!1}={}){var r;(r=this.parentPopper)!=null&&r.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(n||!this.disabled)&&(this.parentPopper?.lockedChild===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit(`show`),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit(`update:shown`,!0))},hide({event:e=null,skipDelay:t=!1}={}){if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}this.parentPopper?.lockedChild===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit(`hide`),this.$emit(`update:shown`,!1)}},init(){this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=this.referenceNode?.call(this)??this.$el,this.$_targetNodes=this.targetNodes().filter(e=>e.nodeType===e.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(`.v-popper__inner`),this.$_arrowNode=this.$_popperNode.querySelector(`.v-popper__arrow-container`),this.$_swapTargetAttrs(`title`,`data-original-title`),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs(`data-original-title`,`title`))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit(`resize`))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;let e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(Zh({mainAxis:this.distance,crossAxis:this.skidding}));let t=this.placement.startsWith(`auto`);if(t?e.middleware.push(qh({alignment:this.placement.split(`-`)[1]??``})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(Qh({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(Jh({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(Gh({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:`arrowOverflow`,fn:({placement:e,rects:t,middlewareData:n})=>{let r,{centerOffset:i}=n.arrow;return r=e.startsWith(`top`)||e.startsWith(`bottom`)?Math.abs(i)>t.reference.width/2:Math.abs(i)>t.reference.height/2,{data:{overflow:r}}}}),this.autoMinSize||this.autoSize){let t=this.autoSize?this.autoSize:this.autoMinSize?`min`:null;e.middleware.push({name:`autoSize`,fn:({rects:e,placement:n,middlewareData:r})=>{var i;if((i=r.autoSize)!=null&&i.skip)return{};let a,o;return n.startsWith(`top`)||n.startsWith(`bottom`)?a=e.reference.width:o=e.reference.height,this.$_innerNode.style[t===`min`?`minWidth`:t===`max`?`maxWidth`:`width`]=a==null?null:`${a}px`,this.$_innerNode.style[t===`min`?`minHeight`:t===`max`?`maxHeight`:`height`]=o==null?null:`${o}px`,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push($h({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:e,availableHeight:t})=>{this.$_innerNode.style.maxWidth=e==null?null:`${e}px`,this.$_innerNode.style.maxHeight=t==null?null:`${t}px`}})));let n=await Ng(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:{...n.middlewareData.arrow,...n.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),qg&&this.instantMove&&qg.instantMove&&qg!==this.parentPopper){qg.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay(`show`))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(qg=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay(`hide`))},$_computeDelay(e){let t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await Gg(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Dg(this.$_referenceNode),...Dg(this.$_popperNode)],`scroll`,()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){let e=this.$_referenceNode.getBoundingClientRect(),t=this.$_popperNode.querySelector(`.v-popper__wrapper`),n=t.parentNode.getBoundingClientRect(),r=e.x+e.width/2-(n.left+t.offsetLeft),i=e.y+e.height/2-(n.top+t.offsetTop);this.result.transformOrigin=`${r}px ${i}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":``});let e=this.showGroup;if(e){let t;for(let n=0;n0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,Wg(Kg,this),Kg.length===0&&document.body.classList.remove(`v-popper--some-open`);for(let e of Rg(this.theme)){let t=Yg(e);Wg(t,this),t.length===0&&document.body.classList.remove(`v-popper--some-open--${e}`)}qg===this&&(qg=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);let t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners(`scroll`),this.$emit(`apply-hide`),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Gg(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e==`string`?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw Error(`No container for popover: `+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){let e=e=>{this.isShown&&!this.$_hideInProgress||(e.usedByTooltip=!0,!this.$_preventShow&&this.show({event:e}))};this.$_registerTriggerListeners(this.$_targetNodes,Hg,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Hg,this.popperTriggers,this.popperShowTriggers,e);let t=e=>{e.usedByTooltip||this.hide({event:e})};this.$_registerTriggerListeners(this.$_targetNodes,Ug,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Ug,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(e=>e.addEventListener(t,n,zg?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,r,i){let a=n;r!=null&&(a=typeof r==`function`?r(a):r),a.forEach(n=>{let r=t[n];r&&this.$_registerEventListeners(e,r,i)})},$_removeEventListeners(e){let t=[];this.$_events.forEach(n=>{let{targetNodes:r,eventType:i,handler:a}=n;!e||e===i?r.forEach(e=>e.removeEventListener(i,a)):t.push(n)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit(`close-directive`):this.$emit(`auto-hide`),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(let n of this.$_targetNodes){let r=n.getAttribute(e);r&&(n.removeAttribute(e),n.setAttribute(t,r))}},$_applyAttrsToTarget(e){for(let t of this.$_targetNodes)for(let n in e){let r=e[n];r==null?t.removeAttribute(n):t.setAttribute(n,r)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){let e=this.$_referenceNode.getBoundingClientRect();if(s_>=e.left&&s_<=e.right&&c_>=e.top&&c_<=e.bottom){let e=this.$_popperNode.getBoundingClientRect(),t=s_-a_,n=c_-o_,r=e.left+e.width/2-a_+(e.top+e.height/2)-o_+e.width+e.height,i=a_+t*r,a=o_+n*r;return l_(a_,o_,i,a,e.left,e.top,e.left,e.bottom)||l_(a_,o_,i,a,e.left,e.top,e.right,e.top)||l_(a_,o_,i,a,e.right,e.top,e.right,e.bottom)||l_(a_,o_,i,a,e.left,e.bottom,e.right,e.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<`u`&&typeof window<`u`){if(Bg){let e=!zg||{passive:!0,capture:!0};document.addEventListener(`touchstart`,e=>$g(e,!0),e),document.addEventListener(`touchend`,e=>e_(e,!0),e)}else window.addEventListener(`mousedown`,e=>$g(e,!1),!0),window.addEventListener(`click`,e=>e_(e,!1),!0);window.addEventListener(`resize`,i_)}function $g(e,t){if(Fg.autoHideOnMousedown)t_(e,t);else for(let t=0;t=0;r--){let i=Kg[r];try{let r=i.containsGlobalTarget=i.mouseDownContains||i.popperNode().contains(e.target);i.pendingHide=!1,requestAnimationFrame(()=>{if(i.pendingHide=!1,!n[i.randomId]&&n_(i,r,e)){if(i.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&r){let e=i.parentPopper;for(;e;)n[e.randomId]=!0,e=e.parentPopper;return}let a=i.parentPopper;for(;a&&n_(a,a.containsGlobalTarget,e);)a.$_handleGlobalClose(e,t),a=a.parentPopper}})}catch{}}}function n_(e,t,n){return n.closeAllPopover||n.closePopover&&t||r_(e,n)&&!t}function r_(e,t){if(typeof e.autoHide==`function`){let n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function i_(){for(let e=0;e{a_=s_,o_=c_,s_=e.clientX,c_=e.clientY},zg?{passive:!0}:void 0);function l_(e,t,n,r,i,a,o,s){let c=((o-i)*(t-a)-(s-a)*(e-i))/((s-a)*(n-e)-(o-i)*(r-t)),l=((n-e)*(t-a)-(r-t)*(e-i))/((s-a)*(n-e)-(o-i)*(r-t));return c>=0&&c<=1&&l>=0&&l<=1}var u_={extends:Qg()},d_=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n};function f_(e,t,n,r,i,a){return vs(),Cs(`div`,{ref:`reference`,class:_e([`v-popper`,{"v-popper--shown":e.slotData.isShown}])},[Ca(e.$slots,`default`,ve(Ms(e.slotData)))],2)}var p_=d_(u_,[[`render`,f_]]);function m_(){var e=window.navigator.userAgent,t=e.indexOf(`MSIE `);if(t>0)return parseInt(e.substring(t+5,e.indexOf(`.`,t)),10);if(e.indexOf(`Trident/`)>0){var n=e.indexOf(`rv:`);return parseInt(e.substring(n+3,e.indexOf(`.`,n)),10)}var r=e.indexOf(`Edge/`);return r>0?parseInt(e.substring(r+5,e.indexOf(`.`,r)),10):-1}var h_;function g_(){g_.init||(g_.init=!0,h_=m_()!==-1)}var __={name:`ResizeObserver`,props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:[`notify`],mounted(){g_(),ir(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});let e=document.createElement(`object`);this._resizeObject=e,e.setAttribute(`aria-hidden`,`true`),e.setAttribute(`tabindex`,-1),e.onload=this.addResizeHandlers,e.type=`text/html`,h_&&this.$el.appendChild(e),e.data=`about:blank`,h_||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit(`notify`,{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener(`resize`,this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!h_&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener(`resize`,this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},v_=br(`data-v-b329ee4c`);vr(`data-v-b329ee4c`);var y_={class:`resize-observer`,tabindex:`-1`};yr(),__.render=v_((e,t,n,r,i,a)=>(vs(),ws(`div`,y_))),__.__scopeId=`data-v-b329ee4c`,__.__file=`src/components/ResizeObserver.vue`;var b_=(e=`theme`)=>({computed:{themeClass(){return Lg(this[e])}}}),x_=di({name:`VPopperContent`,components:{ResizeObserver:__},mixins:[b_()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:[`hide`,`resize`],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),S_=[`id`,`aria-hidden`,`tabindex`,`data-popper-placement`],C_={ref:`inner`,class:`v-popper__inner`},w_=[As(`div`,{class:`v-popper__arrow-outer`},null,-1),As(`div`,{class:`v-popper__arrow-inner`},null,-1)];function T_(e,t,n,r,i,a){let o=ha(`ResizeObserver`);return vs(),Cs(`div`,{id:e.popperId,ref:`popover`,class:_e([`v-popper__popper`,[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:fe(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?`false`:`true`,tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||=yu(t=>e.autoHide&&e.$emit(`hide`),[`esc`])},[As(`div`,{class:`v-popper__backdrop`,onClick:t[0]||=t=>e.autoHide&&e.$emit(`hide`)}),As(`div`,{class:`v-popper__wrapper`,style:fe(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[As(`div`,C_,[e.mounted?(vs(),Cs(z,{key:0},[As(`div`,null,[Ca(e.$slots,`default`)]),e.handleResize?(vs(),ws(o,{key:0,onNotify:t[1]||=t=>e.$emit(`resize`,t)})):Is(``,!0)],64)):Is(``,!0)],512),As(`div`,{ref:`arrow`,class:`v-popper__arrow-container`,style:fe(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},w_,4)],4)],46,S_)}var E_=d_(x_,[[`render`,T_]]),D_={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}},O_=function(){};typeof window<`u`&&(O_=window.Element);var k_=di({name:`VPopperWrapper`,components:{Popper:p_,PopperContent:E_},mixins:[D_,b_(`finalTheme`)],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,O_,Boolean],default:void 0},boundary:{type:[String,O_],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function A_(e,t,n,r,i,a){let o=ha(`PopperContent`),s=ha(`Popper`);return vs(),ws(s,Bs({ref:`popper`},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||=()=>e.$emit(`show`),onHide:t[1]||=()=>e.$emit(`hide`),"onUpdate:shown":t[2]||=t=>e.$emit(`update:shown`,t),onApplyShow:t[3]||=()=>e.$emit(`apply-show`),onApplyHide:t[4]||=()=>e.$emit(`apply-hide`),onCloseGroup:t[5]||=()=>e.$emit(`close-group`),onCloseDirective:t[6]||=()=>e.$emit(`close-directive`),onAutoHide:t[7]||=()=>e.$emit(`auto-hide`),onResize:t[8]||=()=>e.$emit(`resize`)}),{default:xr(({popperId:t,isShown:n,shouldMountContent:r,skipTransition:i,autoHide:a,show:s,hide:c,handleResize:l,onResize:u,classes:d,result:f})=>[Ca(e.$slots,`default`,{shown:n,show:s,hide:c}),V(o,{ref:`popperContent`,"popper-id":t,theme:e.finalTheme,shown:n,mounted:r,"skip-transition":i,"auto-hide":a,"handle-resize":l,classes:d,result:f,onHide:c,onResize:u},{default:xr(()=>[Ca(e.$slots,`popper`,{shown:n,hide:c})]),_:2},1032,[`popper-id`,`theme`,`shown`,`mounted`,`skip-transition`,`auto-hide`,`handle-resize`,`classes`,`result`,`onHide`,`onResize`])]),_:3},16,[`theme`,`target-nodes`,`popper-node`,`class`])}var j_=d_(k_,[[`render`,A_]]),M_={...j_,name:`VDropdown`,vPopperTheme:`dropdown`},N_={...j_,name:`VMenu`,vPopperTheme:`menu`},P_={...j_,name:`VTooltip`,vPopperTheme:`tooltip`},F_=di({name:`VTooltipDirective`,components:{Popper:Qg(),PopperContent:E_},mixins:[D_],inheritAttrs:!1,props:{theme:{type:String,default:`tooltip`},html:{type:Boolean,default:e=>Ig(e.theme,`html`)},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Ig(e.theme,`loadingContent`)},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content==`function`},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content==`function`&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;let e=++this.$_fetchId,t=this.content(this);t.then?t.then(t=>this.onResult(e,t)):this.onResult(e,t)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),I_=[`innerHTML`],L_=[`textContent`];function R_(e,t,n,r,i,a){let o=ha(`PopperContent`),s=ha(`Popper`);return vs(),ws(s,Bs({ref:`popper`},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:xr(({popperId:t,isShown:n,shouldMountContent:r,skipTransition:i,autoHide:a,hide:s,handleResize:c,onResize:l,classes:u,result:d})=>[V(o,{ref:`popperContent`,class:_e({"v-popper--tooltip-loading":e.loading}),"popper-id":t,theme:e.theme,shown:n,mounted:r,"skip-transition":i,"auto-hide":a,"handle-resize":c,classes:u,result:d,onHide:s,onResize:l},{default:xr(()=>[e.html?(vs(),Cs(`div`,{key:0,innerHTML:e.finalContent},null,8,I_)):(vs(),Cs(`div`,{key:1,textContent:Pe(e.finalContent)},null,8,L_))]),_:2},1032,[`class`,`popper-id`,`theme`,`shown`,`mounted`,`skip-transition`,`auto-hide`,`handle-resize`,`classes`,`result`,`onHide`,`onResize`])]),_:1},16,[`theme`,`target-nodes`,`popper-node`,`onApplyShow`,`onApplyHide`])}var z_=d_(F_,[[`render`,R_]]),B_=`v-popper--has-tooltip`;function V_(e,t){let n=e.placement;if(!n&&t)for(let e of Vg)t[e]&&(n=e);return n||=Ig(e.theme||`tooltip`,`placement`),n}function H_(e,t,n){let r,i=typeof t;return r=i===`string`?{content:t}:t&&i===`object`?t:{content:!1},r.placement=V_(r,n),r.targetNodes=()=>[e],r.referenceNode=()=>e,r}var U_,W_,G_=0;function K_(){if(U_)return;W_=mn([]),U_=Du({name:`VTooltipDirectiveApp`,setup(){return{directives:W_}},render(){return this.directives.map(e=>fc(z_,{...e.options,shown:e.shown||e.options.shown,key:e.id}))},devtools:{hide:!0}});let e=document.createElement(`div`);document.body.appendChild(e),U_.mount(e)}function q_(e,t,n){K_();let r=mn(H_(e,t,n)),i=mn(!1),a={id:G_++,options:r,shown:i};return W_.value.push(a),e.classList&&e.classList.add(B_),e.$_popper={options:r,item:a,show(){i.value=!0},hide(){i.value=!1}}}function J_(e){if(e.$_popper){let t=W_.value.indexOf(e.$_popper.item);t!==-1&&W_.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(B_)}function Y_(e,{value:t,modifiers:n}){let r=H_(e,t,n);if(!r.content||Ig(r.theme||`tooltip`,`disabled`))J_(e);else{let i;e.$_popper?(i=e.$_popper,i.options.value=r):i=q_(e,t,n),typeof t.shown<`u`&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?i.show():i.hide())}}var X_={beforeMount:Y_,updated:Y_,beforeUnmount(e){J_(e)}};function Z_(e){e.addEventListener(`mousedown`,$_),e.addEventListener(`click`,$_),e.addEventListener(`touchstart`,ev,zg?{passive:!0}:!1)}function Q_(e){e.removeEventListener(`mousedown`,$_),e.removeEventListener(`click`,$_),e.removeEventListener(`touchstart`,ev),e.removeEventListener(`touchend`,tv),e.removeEventListener(`touchcancel`,nv)}function $_(e){let t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function ev(e){if(e.changedTouches.length===1){let t=e.currentTarget;t.$_vclosepopover_touch=!0,t.$_vclosepopover_touchPoint=e.changedTouches[0],t.addEventListener(`touchend`,tv),t.addEventListener(`touchcancel`,nv)}}function tv(e){let t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){let n=e.changedTouches[0],r=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-r.screenY)<20&&Math.abs(n.screenX-r.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function nv(e){let t=e.currentTarget;t.$_vclosepopover_touch=!1}var rv={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>`u`||t)&&Z_(e)},updated(e,{value:t,oldValue:n,modifiers:r}){e.$_closePopoverModifiers=r,t!==n&&(typeof t>`u`||t?Z_(e):Q_(e))},beforeUnmount(e){Q_(e)}},iv=M_,av=P_;function ov(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,Pg(Fg,t),e.directive(`tooltip`,X_),e.directive(`close-popper`,rv),e.component(`VTooltip`,P_),e.component(`VDropdown`,M_),e.component(`VMenu`,N_))}var sv={version:`5.2.2`,install:ov,options:Fg},cv=typeof navigator<`u`&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),lv={install:(e,t={})=>{if(typeof window<`u`&&(window.addEventListener(`vitepress:codeGroupTabActivate`,i_,{passive:!0}),window.addEventListener(`click`,e=>{e.composedPath().some(e=>e?.classList?.contains?.(`vp-code-group`)||e?.classList?.contains?.(`tabs`))&&i_()},{passive:!0}),!cv)){let t=!1;window.addEventListener(`mousedown`,()=>{t=!0},{passive:!0}),window.addEventListener(`mouseup`,()=>{t=!1},{passive:!0});let n=e.component;e.component=function(...e){let r=n.apply(this,e);if(e.length>=2&&e[0]===`VMenu`)try{let n=e[1].components.Popper.extends,r=n.methods.show;n.methods.show=function(...e){if(!t)return r.apply(this,e)};let i=n.methods.hide;n.methods.hide=function(...e){if(!t)return i.apply(this,e)}}catch(e){console.error(`Failed to patch FloatingVue`,e)}return r}}e.use(sv,{strategy:`fixed`,...t,themes:{...t.themes,twoslash:{$extend:`dropdown`,triggers:cv?[`touch`]:[`hover`,`touch`],popperTriggers:cv?[`touch`]:[`hover`,`touch`],placement:`bottom-start`,overflowPadding:10,delay:{show:200,hide:0},handleResize:!1,autoHide:!0,noAutoFocus:!0,instantMove:!0,flip:!1,arrowPadding:8,autoBoundaryMaxSize:!0,...t.themes?.twoslash??{}},"twoslash-query":{$extend:`twoslash`,triggers:[`click`],popperTriggers:[`click`],autoHide:!1,noAutoFocus:!0,...t.themes?.[`twoslash-query`]??{}},"twoslash-completion":{$extend:`twoslash-query`,triggers:[`click`],popperTriggers:[`click`],autoHide:!1,noAutoFocus:!0,distance:0,arrowOverflow:!0,...t.themes?.[`twoslash-completion`]??{}}}})}};export{Sr as $,Ts as A,wr as B,Wi as C,fc as D,Ms as E,sa as F,_a as G,Ca as H,Xi as I,mi as J,fo as K,ia as L,Bs as M,ir as N,Er as O,Yi as P,xr as Q,ca as R,V as S,Gs as T,ha as U,xa as V,va as W,kr as X,Mr as Y,jr as Z,As as _,yn as _t,Ic as a,dn as at,Cs as b,fe as bt,iu as c,rn as ct,yu as d,an as dt,wn as et,_u as f,hn as ft,dc as g,bn as gt,qi as h,Tn as ht,i_ as i,I as it,Ua as j,Tr as k,ru as l,mn as lt,z as m,On as mt,av as n,Be as nt,Gl as o,Ve as ot,B as p,F as pt,Ra as q,iv as r,cn as rt,Du as s,tn as st,lv as t,ze as tt,el as u,nn as ut,ws as v,_e as vt,di as w,Ps as x,Pe as xt,Is as y,ve as yt,vs as z}; \ No newline at end of file diff --git a/lecture-06/class/assets/modules/shiki-BrmBd2_v.css b/lecture-06/class/assets/modules/shiki-BrmBd2_v.css new file mode 100644 index 0000000000000000000000000000000000000000..be27a11806f53e2a186afcc8baba6c680d0e3ce3 --- /dev/null +++ b/lecture-06/class/assets/modules/shiki-BrmBd2_v.css @@ -0,0 +1 @@ +.shiki-magic-move-container{white-space:pre;position:relative}.shiki-magic-move-line-number{opacity:.3;-webkit-user-select:none;user-select:none}.shiki-magic-move-item{transition:color var(--smm-duration,.5s) var(--smm-easing,"ease");display:inline-block}.shiki-magic-move-enter-active,.shiki-magic-move-leave-active,.shiki-magic-move-move{transition:all var(--smm-duration,.5s) var(--smm-easing,"ease")}.shiki-magic-move-container-resize,.shiki-magic-move-container-restyle{transition:all var(--smm-duration,.5s) var(--smm-easing,"ease");transition-delay:calc(var(--smm-duration,.5s)*var(--smm-delay-container,1))}.shiki-magic-move-move{transition-delay:calc(var(--smm-duration,.5s)*var(--smm-delay-move,1) + var(--smm-stagger,0));z-index:1}.shiki-magic-move-enter-active{transition-delay:calc(var(--smm-duration,.5s)*var(--smm-delay-enter,1) + var(--smm-stagger,0));z-index:1}.shiki-magic-move-leave-active{transition-delay:calc(var(--smm-duration,.5s)*var(--smm-delay-leave,1) + var(--smm-stagger,0))}.shiki-magic-move-enter-from,.shiki-magic-move-leave-to{opacity:0}br.shiki-magic-move-leave-active{display:none}.resize-observer[data-v-b329ee4c]{z-index:-1;pointer-events:none;opacity:0;background-color:#0000;border:none;width:100%;height:100%;display:block;position:absolute;top:0;left:0;overflow:hidden}.resize-observer[data-v-b329ee4c] object{pointer-events:none;z-index:-1;width:100%;height:100%;display:block;position:absolute;top:0;left:0;overflow:hidden}.v-popper__popper{z-index:10000;outline:none;top:0;left:0}.v-popper__popper.v-popper__popper--hidden{visibility:hidden;opacity:0;pointer-events:none;transition:opacity .15s,visibility .15s}.v-popper__popper.v-popper__popper--shown{visibility:visible;opacity:1;transition:opacity .15s}.v-popper__popper.v-popper__popper--skip-transition,.v-popper__popper.v-popper__popper--skip-transition>.v-popper__wrapper{transition:none!important}.v-popper__backdrop{width:100%;height:100%;display:none;position:absolute;top:0;left:0}.v-popper__inner{box-sizing:border-box;position:relative;overflow-y:auto}.v-popper__inner>div{z-index:1;max-width:inherit;max-height:inherit;position:relative}.v-popper__arrow-container{width:10px;height:10px;position:absolute}.v-popper__popper--arrow-overflow .v-popper__arrow-container,.v-popper__popper--no-positioning .v-popper__arrow-container{display:none}.v-popper__arrow-inner,.v-popper__arrow-outer{border-style:solid;width:0;height:0;position:absolute;top:0;left:0}.v-popper__arrow-inner{visibility:hidden;border-width:7px}.v-popper__arrow-outer{border-width:6px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner{left:-2px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-outer,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{left:-1px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-outer{border-bottom-width:0;border-bottom-color:#0000!important;border-left-color:#0000!important;border-right-color:#0000!important}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner{top:-2px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-container{top:0}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{border-top-width:0;border-top-color:#0000!important;border-left-color:#0000!important;border-right-color:#0000!important}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner{top:-4px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{top:-6px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner{top:-2px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-outer,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{top:-1px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{border-left-width:0;border-top-color:#0000!important;border-bottom-color:#0000!important;border-left-color:#0000!important}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner{left:-4px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{left:-6px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-container{right:-10px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-outer{border-right-width:0;border-top-color:#0000!important;border-bottom-color:#0000!important;border-right-color:#0000!important}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner{left:-2px}.v-popper--theme-tooltip .v-popper__inner{color:#fff;background:#000c;border-radius:6px;padding:7px 12px 6px}.v-popper--theme-tooltip .v-popper__arrow-outer{border-color:#000c}.v-popper--theme-dropdown .v-popper__inner{color:#000;background:#fff;border:1px solid #ddd;border-radius:6px;box-shadow:0 6px 30px #0000001a}.v-popper--theme-dropdown .v-popper__arrow-inner{visibility:visible;border-color:#fff}.v-popper--theme-dropdown .v-popper__arrow-outer{border-color:#ddd}:root{--twoslash-border-color:#8888;--twoslash-underline-color:currentColor;--twoslash-highlighted-border:#c37d0d50;--twoslash-highlighted-bg:#c37d0d20;--twoslash-popup-bg:#f8f8f8;--twoslash-popup-color:inherit;--twoslash-popup-shadow:#00000014 0px 1px 4px;--twoslash-docs-color:#888;--twoslash-docs-font:sans-serif;--twoslash-code-font:inherit;--twoslash-code-font-size:1em;--twoslash-matched-color:inherit;--twoslash-unmatched-color:#888;--twoslash-cursor-color:#8888;--twoslash-error-color:#d45656;--twoslash-error-bg:#d4565620;--twoslash-warn-color:#c37d0d;--twoslash-warn-bg:#c37d0d20;--twoslash-tag-color:#3772cf;--twoslash-tag-bg:#3772cf20;--twoslash-tag-warn-color:var(--twoslash-warn-color);--twoslash-tag-warn-bg:var(--twoslash-warn-bg);--twoslash-tag-annotate-color:#1ba673;--twoslash-tag-annotate-bg:#1ba67320}@media (prefers-reduced-motion:reduce){.twoslash *{transition:none!important}}.twoslash:hover .twoslash-hover{border-color:var(--twoslash-underline-color)}.twoslash .twoslash-hover{border-bottom:1px dotted #0000;transition:border-color .3s;position:relative}.twoslash .twoslash-popup-container{opacity:0;background:var(--twoslash-popup-bg);color:var(--twoslash-popup-color);border:1px solid var(--twoslash-border-color);pointer-events:none;z-index:10;-webkit-user-select:none;user-select:none;text-align:left;box-shadow:var(--twoslash-popup-shadow);border-radius:4px;flex-direction:column;transition:opacity .3s;display:inline-flex;position:absolute;transform:translateY(1.1em)}.twoslash .twoslash-query-persisted .twoslash-popup-container{z-index:9;transform:translateY(1.5em)}.twoslash .twoslash-hover:hover .twoslash-popup-container,.twoslash .twoslash-error-hover:hover .twoslash-popup-container,.twoslash .twoslash-query-persisted .twoslash-popup-container,.twoslash .twoslash-query-line .twoslash-popup-container{opacity:1;pointer-events:auto}.twoslash .twoslash-popup-container:hover{-webkit-user-select:auto;user-select:auto}.twoslash .twoslash-popup-arrow{border-top:1px solid var(--twoslash-border-color);border-right:1px solid var(--twoslash-border-color);background:var(--twoslash-popup-bg);pointer-events:none;width:6px;height:6px;position:absolute;top:-4px;left:1em;transform:rotate(-45deg)}.twoslash .twoslash-popup-code,.twoslash .twoslash-popup-error,.twoslash .twoslash-popup-docs{padding:6px 8px!important}.twoslash .twoslash-popup-code{font-family:var(--twoslash-code-font);font-size:var(--twoslash-code-font-size)}.twoslash .twoslash-popup-docs{color:var(--twoslash-docs-color);font-family:var(--twoslash-docs-font);border-top:1px solid var(--twoslash-border-color);font-size:.8em}.twoslash .twoslash-popup-error{color:var(--twoslash-error-color);background-color:var(--twoslash-error-bg);font-family:var(--twoslash-docs-font);font-size:.8em}.twoslash .twoslash-popup-docs-tags{font-family:var(--twoslash-docs-font);flex-direction:column;display:flex}.twoslash .twoslash-popup-docs-tags,.twoslash .twoslash-popup-docs-tag-name{margin-right:.5em}.twoslash .twoslash-popup-docs-tag-name{font-family:var(--twoslash-code-font)}.twoslash .twoslash-query-line .twoslash-popup-container{margin-bottom:1.4em;position:relative;transform:translateY(.6em)}.twoslash .twoslash-error-line{background-color:var(--twoslash-error-bg);border-left:3px solid var(--twoslash-error-color);color:var(--twoslash-error-color);width:max-content;min-width:100%;margin:.2em 0;padding:6px 12px;position:relative}.twoslash .twoslash-error-line.twoslash-error-level-warning{background-color:var(--twoslash-warn-bg);border-left:3px solid var(--twoslash-warn-color);color:var(--twoslash-warn-color)}.twoslash .twoslash-error{background:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%206%203'%20enable-background%3D'new%200%200%206%203'%20height%3D'3'%20width%3D'6'%3E%3Cg%20fill%3D'%23c94824'%3E%3Cpolygon%20points%3D'5.5%2C0%202.5%2C3%201.1%2C3%204.1%2C0'%2F%3E%3Cpolygon%20points%3D'4%2C0%206%2C2%206%2C0.6%205.4%2C0'%2F%3E%3Cpolygon%20points%3D'0%2C2%201%2C3%202.4%2C3%200%2C0.6'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") 0 100% repeat-x;padding-bottom:2px}.twoslash .twoslash-error.twoslash-error-level-warning{background:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%206%203'%20enable-background%3D'new%200%200%206%203'%20height%3D'3'%20width%3D'6'%3E%3Cg%20fill%3D'%23c37d0d'%3E%3Cpolygon%20points%3D'5.5%2C0%202.5%2C3%201.1%2C3%204.1%2C0'%2F%3E%3Cpolygon%20points%3D'4%2C0%206%2C2%206%2C0.6%205.4%2C0'%2F%3E%3Cpolygon%20points%3D'0%2C2%201%2C3%202.4%2C3%200%2C0.6'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") 0 100% repeat-x;padding-bottom:2px}.twoslash .twoslash-completion-cursor{position:relative}.twoslash .twoslash-completion-cursor .twoslash-completion-list{-webkit-user-select:none;user-select:none;z-index:8;box-shadow:var(--twoslash-popup-shadow);background:var(--twoslash-popup-bg);border:1px solid var(--twoslash-border-color);margin:3px 0 0 -1px;display:inline-block;position:absolute;top:0;left:0;transform:translateY(1.2em)}.twoslash-completion-list{flex-direction:column;gap:4px;width:240px;padding:4px;font-size:.8rem;display:flex}.twoslash-completion-list:hover{-webkit-user-select:auto;user-select:auto}.twoslash-completion-list:before{background-color:var(--twoslash-cursor-color);content:" ";width:2px;height:1.4em;position:absolute;top:-1.6em;left:-1px}.twoslash-completion-list li{align-items:center;gap:.25em;line-height:1em;display:flex;overflow:hidden}.twoslash-completion-list li span.twoslash-completions-unmatched{color:var(--twoslash-unmatched-color)}.twoslash-completion-list .deprecated{opacity:.5;text-decoration:line-through}.twoslash-completion-list li span.twoslash-completions-matched{color:var(--twoslash-matched-color)}.twoslash-highlighted{background-color:var(--twoslash-highlighted-bg);border:1px solid var(--twoslash-highlighted-border);border-radius:4px;margin:-1px -3px;padding:1px 2px}.twoslash-completion-list .twoslash-completions-icon{color:var(--twoslash-unmatched-color);flex:none;width:1em}.twoslash .twoslash-tag-line{background-color:var(--twoslash-tag-bg);border-left:3px solid var(--twoslash-tag-color);color:var(--twoslash-tag-color);align-items:center;gap:.3em;width:max-content;min-width:100%;margin:.2em 0;padding:6px 10px;display:flex;position:relative}.twoslash .twoslash-tag-line .twoslash-tag-icon{width:1.1em;color:inherit}.twoslash .twoslash-tag-line.twoslash-tag-error-line{background-color:var(--twoslash-error-bg);border-left:3px solid var(--twoslash-error-color);color:var(--twoslash-error-color)}.twoslash .twoslash-tag-line.twoslash-tag-warn-line{background-color:var(--twoslash-tag-warn-bg);border-left:3px solid var(--twoslash-tag-warn-color);color:var(--twoslash-tag-warn-color)}.twoslash .twoslash-tag-line.twoslash-tag-annotate-line{background-color:var(--twoslash-tag-annotate-bg);border-left:3px solid var(--twoslash-tag-annotate-color);color:var(--twoslash-tag-annotate-color)}:root{--twoslash-popup-bg:var(--vp-c-bg,inherit);--twoslash-popup-color:var(--vp-c-text-1);--twoslash-docs-color:var(--vp-c-text-1);--twoslash-docs-font:var(--vp-font-family-base);--twoslash-code-font:var(--vp-font-family-mono);--twoslash-code-size:var(--vp-code-font-size);--twoslash-underline-color:#8888;--twoslash-border-color:var(--vp-c-border);--twoslash-cursor-color:var(--vp-c-brand);--twoslash-matched-color:var(--vp-c-brand);--twoslash-unmatched-color:var(--vp-c-text-2)}.v-popper--theme-twoslash{z-index:calc(var(--vp-z-index-local-nav) - 1)}.v-popper--theme-twoslash .v-popper__inner{background:var(--twoslash-popup-bg);color:var(--twoslash-popup-color);border-color:var(--twoslash-border-color)}.v-popper--theme-twoslash .v-popper__arrow-outer{border-color:var(--twoslash-border-color)}.v-popper--theme-twoslash .v-popper__arrow-inner{border-color:var(--twoslash-popup-bg)}.twoslash-popup-container{transform:translateY(1.5em)}.twoslash-query-persisted .twoslash-popup-container{transform:translateY(1.8em)}.twoslash .v-popper{display:inline-block}.twoslash-completion-list .twoslash-completions-icon{color:var(--twoslash-unmatched-color)!important}.twoslash-floating .twoslash-popup-code{width:fit-content;min-width:100%;max-width:600px;line-height:var(--vp-code-line-height);font-size:var(--twoslash-code-size);white-space:pre-wrap;padding:6px 12px;transition:color .5s;display:block}.twoslash-floating .twoslash-popup-docs,.twoslash-floating .twoslash-popup-error{font-family:var(--twoslash-docs-font);text-wrap:balance;max-width:700px;max-height:500px;font-size:.9em;overflow:hidden auto;padding:12px!important}.twoslash-floating .twoslash-popup-docs p:first-child,.twoslash-floating .twoslash-popup-error p:first-child{margin-top:0}.twoslash-floating .twoslash-popup-docs p:last-child,.twoslash-floating .twoslash-popup-error p:last-child{margin-bottom:0}.twoslash-floating .twoslash-popup-docs{border-top:1px solid var(--twoslash-border-color);color:var(--twoslash-docs-color)}.twoslash-floating .twoslash-popup-error{color:var(--twoslash-error-color)}.twoslash-floating .twoslash-popup-error.twoslash-error-level-warning{color:var(--twoslash-warn-color)}.twoslash-floating .twoslash-popup-docs p,.twoslash-floating .twoslash-popup-error p{text-wrap:balance;margin:6px 0}.twoslash-floating .twoslash-popup-docs pre .twoslash-floating .twoslash-popup-error pre{background-color:var(--vp-code-block-bg);border-radius:8px;margin:6px -2px;padding:12px;overflow-x:auto}.twoslash-floating .twoslash-popup-docs-tags{flex-direction:column;display:flex;padding:8px 12px!important}.twoslash-floating .twoslash-popup-docs-tags .twoslash-popup-docs-tag-name{font-family:var(--twoslash-code-font);color:var(--twoslash-unmatched-color);margin-right:.5em}.twoslash-completion-cursor{background:var(--twoslash-cursor-color);-webkit-user-select:none;user-select:none;width:2px;height:1.2em;margin-bottom:-.2em;display:inline-block}.twoslash-floating.twoslash-completion .v-popper__arrow-container{display:none}.twoslash-floating.twoslash-completion .twoslash-completion-list{font-family:var(--twoslash-code-font);padding:6px;font-size:var(--twoslash-code-size)!important}.twoslash-floating.twoslash-completion .twoslash-completion-list li{padding:3px 0}.twoslash-error:empty,.twoslash-error-empty{vertical-align:middle;min-width:.55em;min-height:1.2em;display:inline-block} diff --git a/lecture-06/class/assets/modules/unplugin-icons-BIrNarL0.js b/lecture-06/class/assets/modules/unplugin-icons-BIrNarL0.js new file mode 100644 index 0000000000000000000000000000000000000000..1b47c35f5e9bba0fa0d6885fc544aa8f3c8980cc --- /dev/null +++ b/lecture-06/class/assets/modules/unplugin-icons-BIrNarL0.js @@ -0,0 +1 @@ +import{_ as e,at as t,b as n,z as r}from"./shiki-BFOesOFp.js";var i={class:`slidev-icon`,viewBox:`0 0 256 256`,width:`1.2em`,height:`1.2em`};function a(t,a){return r(),n(`svg`,i,[...a[0]||=[e(`path`,{fill:`currentColor`,d:`M200 32h-36.26a47.92 47.92 0 0 0-71.48 0H56a16 16 0 0 0-16 16v168a16 16 0 0 0 16 16h144a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16m-72 0a32 32 0 0 1 32 32H96a32 32 0 0 1 32-32m72 184H56V48h26.75A47.9 47.9 0 0 0 80 64v8a8 8 0 0 0 8 8h80a8 8 0 0 0 8-8v-8a47.9 47.9 0 0 0-2.75-16H200Z`},null,-1)]])}var o=t({name:`ph-clipboard`,render:a}),s={class:`slidev-icon`,viewBox:`0 0 256 256`,width:`1.2em`,height:`1.2em`};function c(t,i){return r(),n(`svg`,s,[...i[0]||=[e(`path`,{fill:`currentColor`,d:`M173.66 98.34a8 8 0 0 1 0 11.32l-56 56a8 8 0 0 1-11.32 0l-24-24a8 8 0 0 1 11.32-11.32L112 148.69l50.34-50.35a8 8 0 0 1 11.32 0M232 128A104 104 0 1 1 128 24a104.11 104.11 0 0 1 104 104m-16 0a88 88 0 1 0-88 88a88.1 88.1 0 0 0 88-88`},null,-1)]])}var l=t({name:`ph-check-circle`,render:c}),u={class:`slidev-icon`,viewBox:`0 0 32 32`,width:`1.2em`,height:`1.2em`};function d(t,i){return r(),n(`svg`,u,[...i[0]||=[e(`path`,{fill:`currentColor`,d:`M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6M5.394 6.813L6.81 5.399l3.505 3.506L8.9 10.319zM2 15.005h5v2H2zm3.394 10.193L8.9 21.692l1.414 1.414l-3.505 3.506zM15 25.005h2v5h-2zm6.687-1.9l1.414-1.414l3.506 3.506l-1.414 1.414zm3.313-8.1h5v2h-5zm-3.313-6.101l3.506-3.506l1.414 1.414l-3.506 3.506zM15 2.005h2v5h-2z`},null,-1)]])}var f=t({name:`carbon-sun`,render:d}),p={class:`slidev-icon`,viewBox:`0 0 32 32`,width:`1.2em`,height:`1.2em`};function m(t,i){return r(),n(`svg`,p,[...i[0]||=[e(`path`,{fill:`currentColor`,d:`M13.503 5.414a15.076 15.076 0 0 0 11.593 18.194a11.1 11.1 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1 1 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.07 13.07 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3`},null,-1)]])}var h=t({name:`carbon-moon`,render:m}),g={class:`slidev-icon`,viewBox:`0 0 256 256`,width:`1.2em`,height:`1.2em`};function _(t,i){return r(),n(`svg`,g,[...i[0]||=[e(`path`,{fill:`currentColor`,d:`m220.49 207.8l-12.69 12.69a12 12 0 0 1-17 0l-56.57-56.57L115 214.08l-.13.33a15.84 15.84 0 0 1-14.61 9.59h-.78a15.82 15.82 0 0 1-14.41-11L32.8 52.92A15.95 15.95 0 0 1 52.92 32.8L213 85.07a16 16 0 0 1 1.41 29.8l-.33.13l-50.16 19.27l56.57 56.56a12 12 0 0 1 0 16.97`},null,-1)]])}var v=t({name:`ph-cursor-fill`,render:_});export{o as a,l as i,h as n,f as r,v as t}; \ No newline at end of file diff --git a/lecture-06/class/assets/modules/vue-Ymwlffw_.js b/lecture-06/class/assets/modules/vue-Ymwlffw_.js new file mode 100644 index 0000000000000000000000000000000000000000..689f98df2d3c8a94d86dcde3d9f897274740cb12 --- /dev/null +++ b/lecture-06/class/assets/modules/vue-Ymwlffw_.js @@ -0,0 +1,5 @@ +import{B as e,D as t,L as n,N as r,O as i,R as a,T as o,X as s,Y as c,_t as l,ct as u,dt as d,et as f,ft as p,g as m,gt as h,ht as g,it as _,k as v,lt as y,m as b,mt as x,nt as S,ot as C,pt as w,q as T,st as E,tt as D,ut as O,w as k}from"./shiki-BFOesOFp.js";function ee(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function A(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&ee(e.default)}var j=Object.assign;function te(e,t){let n={};for(let r in t){let i=t[r];n[r]=N(i)?i.map(e):e(i)}return n}var M=()=>{},N=Array.isArray;function ne(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var re=Symbol(``);function ie(e,t){return j(Error(),{type:e,[re]:!0},t)}function P(e,t){return e instanceof Error&&re in e&&(t==null||!!(e.type&t))}var ae=Symbol(``),oe=Symbol(``),se=Symbol(``),ce=Symbol(``),le=Symbol(``);function ue(){return v(se)}function de(e){return v(ce)}var fe=typeof document<`u`,pe=/#/g,me=/&/g,he=/\//g,ge=/=/g,_e=/\?/g,ve=/\+/g,ye=/%5B/g,be=/%5D/g,F=/%5E/g,xe=/%60/g,Se=/%7B/g,Ce=/%7C/g,we=/%7D/g,Te=/%20/g;function Ee(e){return e==null?``:encodeURI(``+e).replace(Ce,`|`).replace(ye,`[`).replace(be,`]`)}function De(e){return Ee(e).replace(Se,`{`).replace(we,`}`).replace(F,`^`)}function Oe(e){return Ee(e).replace(ve,`%2B`).replace(Te,`+`).replace(pe,`%23`).replace(me,`%26`).replace(xe,"`").replace(Se,`{`).replace(we,`}`).replace(F,`^`)}function ke(e){return Oe(e).replace(ge,`%3D`)}function Ae(e){return Ee(e).replace(pe,`%23`).replace(_e,`%3F`)}function je(e){return Ae(e).replace(he,`%2F`)}function Me(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var Ne=/\/$/,Pe=e=>e.replace(Ne,``);function Fe(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=Ue(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:Me(o)}}function Ie(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function Le(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function Re(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&ze(t.matched[r],n.matched[i])&&Be(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function ze(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Be(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Ve(e[n],t[n]))return!1;return!0}function Ve(e,t){return N(e)?He(e,t):N(t)?He(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function He(e,t){return N(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function Ue(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o1&&a--;else break}return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var I={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};function We(e){if(!e){if(fe){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^/]+/,``)}else e=`/`}return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),Pe(e)}var Ge=/^[^#]+#/;function Ke(e,t){return e.replace(Ge,`#`)+t}function qe(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var Je=()=>({left:window.scrollX,top:window.scrollY});function Ye(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=qe(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function Xe(e,t){return(history.state?history.state.position-t:-1)+e}var Ze=new Map;function Qe(e,t){Ze.set(e,t)}function $e(e){let t=Ze.get(e);return Ze.delete(e),t}function et(e){return typeof e==`string`||e&&typeof e==`object`}function tt(e){return typeof e==`string`||typeof e==`symbol`}function nt(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;ee&&Oe(e)):[r&&Oe(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function it(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=N(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function at(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function L(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(ie(4,{from:n,to:t})):e instanceof Error?c(e):et(e)?c(ie(2,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function ot(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e])){if(ee(s)){let c=(s.__vccOpts||s)[t];c&&a.push(L(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=A(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&L(c,n,r,o,e,i)()}))}}}return a}function st(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;oze(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>ze(e,s))||i.push(s))}return[n,r,i]}var ct=()=>location.protocol+`//`+location.host;function lt(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),Le(n,``)}return Le(n,e)+r+i}function ut(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=lt(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:`pop`,direction:u?u>0?`forward`:`back`:``})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(j({},e.state,{scroll:Je()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function dt(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Je():null}}function ft(e){let{history:t,location:n}=window,r={value:lt(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:ct()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,j({},t.state,dt(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=j({},i.value,t.state,{forward:e,scroll:Je()});a(o.current,o,!0),a(e,j({},dt(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function pt(e){e=We(e);let t=ft(e),n=ut(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=j({location:``,base:e,go:r,createHref:Ke.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function mt(e){return e=location.host?e||location.pathname+location.search:``,e.includes(`#`)||(e+=`#`),pt(e)}var ht={type:0,value:``},gt=/[a-zA-Z0-9_]/;function _t(e){if(!e)return[[]];if(e===`/`)return[[ht]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;st.length?t.length===1&&t[0]===80?1:-1:0}function Ct(e,t){let n=0,r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}var Tt={strict:!1,end:!0,sensitive:!1};function Et(e,t,n){let r=j(xt(_t(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Dt(e,t){let n=[],r=new Map;t=ne(Tt,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=kt(e);s.aliasOf=r&&r.record;let l=ne(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(kt(j({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=Et(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!jt(d)&&o(e.name)),Ft(d)&&c(d),s.children){let e=s.children;for(let t=0;t{o(f)}:M}function o(e){if(tt(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=Nt(e,n);n.splice(t,0,e),e.record.name&&!jt(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw ie(1,{location:e});s=i.record.name,a=j(Ot(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Ot(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name,i.keys.forEach(e=>{e.optional&&!a[e.name]&&delete a[e.name]}));else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw ie(1,{location:e,currentLocation:t});s=i.record.name,a=j({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:Mt(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function Ot(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function kt(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:At(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function At(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function jt(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Mt(e){return e.reduce((e,t)=>j(e,t.meta),{})}function Nt(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Ct(e,t[i])<0?r=i:n=i+1}let i=Pt(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function Pt(e){let t=e;for(;t=t.parent;)if(Ft(t)&&Ct(e,t)===0)return t}function Ft({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function It(e){let t=v(se),n=v(ce),r=m(()=>{let n=l(e.to);return t.resolve(n)}),i=m(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(ze.bind(null,i));if(o>-1)return o;let s=Vt(e[t-2]);return t>1&&Vt(i)===s&&a[a.length-1].path!==s?a.findIndex(ze.bind(null,e[t-2])):o}),a=m(()=>i.value>-1&&Bt(n.params,r.value.params)),o=m(()=>i.value>-1&&i.value===n.matched.length-1&&Be(n.params,r.value.params));function s(n={}){if(zt(n)){let n=t[l(e.replace)?`replace`:`push`](l(e.to)).catch(M);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:m(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function Lt(e){return e.length===1?e[0]:e}var Rt=k({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:It,setup(e,{slots:n}){let r=E(It(e)),{options:i}=v(se),a=m(()=>({[Ht(e.activeClass,i.linkActiveClass,`router-link-active`)]:r.isActive,[Ht(e.exactActiveClass,i.linkExactActiveClass,`router-link-exact-active`)]:r.isExactActive}));return()=>{let i=n.default&&Lt(n.default(r));return e.custom?i:t(`a`,{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:a.value},i)}}});function zt(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(e.button===void 0||e.button===0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Bt(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!N(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function Vt(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var Ht=(e,t,n)=>e??t??n,Ut=k({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(n,{attrs:r,slots:i}){let a=v(le),o=m(()=>n.route||a.value),s=v(oe,0),u=m(()=>{let e=l(s),{matched:t}=o.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),d=m(()=>o.value.matched[u.value]);e(oe,m(()=>u.value+1)),e(ae,d),e(le,o);let f=y();return c(()=>[f.value,d.value,n.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!ze(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let e=o.value,a=n.name,s=d.value,c=s&&s.components[a];if(!c)return Wt(i.default,{Component:c,route:e});let l=s.props[a],u=l?l===!0?e.params:typeof l==`function`?l(e):l:null,p=t(c,j({},u,r,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(s.instances[a]=null)},ref:f}));return Wt(i.default,{Component:p,route:e})||p}}});function Wt(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var Gt=Ut;function Kt(e){let t=Dt(e.routes,e),n=e.parseQuery||nt,i=e.stringifyQuery||rt,a=e.history,o=at(),s=at(),c=at(),u=p(I),d=I;fe&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let f=te.bind(null,e=>``+e),m=te.bind(null,je),h=te.bind(null,Me);function g(e,n){let r,i;return tt(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function _(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function v(){return t.getRoutes().map(e=>e.record)}function y(e){return!!t.getRecordMatcher(e)}function b(e,r){if(r=j({},r||u.value),typeof e==`string`){let i=Fe(n,e,r.path),o=t.resolve({path:i.path},r),s=a.createHref(i.fullPath);return j(i,o,{params:h(o.params),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=j({},e,{path:Fe(n,e.path,r.path).path});else{let t=j({},e.params);for(let e in t)t[e]??delete t[e];o=j({},e,{params:m(t)}),r.params=m(r.params)}let s=t.resolve(o,r),c=e.hash||``;s.params=f(h(s.params));let l=Ie(i,j({},e,{hash:De(c),path:s.path})),d=a.createHref(l);return j({fullPath:l,hash:c,query:i===rt?it(e.query):e.query||{}},s,{redirectedFrom:void 0,href:d})}function x(e){return typeof e==`string`?Fe(n,e,u.value.path):j({},e)}function S(e,t){if(d!==e)return ie(8,{from:t,to:e})}function C(e){return E(e)}function w(e){return C(j(x(e),{replace:!0}))}function T(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=x(i):{path:i},i.params={}),j({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function E(e,t){let n=d=b(e),r=u.value,a=e.state,o=e.force,s=e.replace===!0,c=T(n,r);if(c)return E(j(x(c),{state:typeof c==`object`?j({},a,c.state):a,force:o,replace:s}),t||n);let l=n;l.redirectedFrom=t;let f;return!o&&Re(i,r,n)&&(f=ie(16,{to:l,from:r}),ge(r,r,!0,!1)),(f?Promise.resolve(f):ee(l,r)).catch(e=>P(e)?P(e,2)?e:he(e):pe(e,l,r)).then(e=>{if(e){if(P(e,2))return E(j({replace:s},x(e.to),{state:typeof e.to==`object`?j({},a,e.to.state):a,force:o}),t||l)}else e=ne(l,r,!0,s,a);return A(l,r,e),e})}function D(e,t){let n=S(e,t);return n?Promise.reject(n):Promise.resolve()}function k(e){let t=ye.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function ee(e,t){let n,[r,i,a]=st(e,t);n=ot(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(L(r,e,t))});let c=D.bind(null,e,t);return n.push(c),F(n).then(()=>{n=[];for(let r of o.list())n.push(L(r,e,t));return n.push(c),F(n)}).then(()=>{n=ot(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(L(r,e,t))});return n.push(c),F(n)}).then(()=>{n=[];for(let r of a)if(r.beforeEnter){if(N(r.beforeEnter))for(let i of r.beforeEnter)n.push(L(i,e,t));else n.push(L(r.beforeEnter,e,t))}return n.push(c),F(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=ot(a,`beforeRouteEnter`,e,t,k),n.push(c),F(n))).then(()=>{n=[];for(let r of s.list())n.push(L(r,e,t));return n.push(c),F(n)}).catch(e=>P(e,8)?e:Promise.reject(e))}function A(e,t,n){c.list().forEach(r=>k(()=>r(e,t,n)))}function ne(e,t,n,r,i){let o=S(e,t);if(o)return o;let s=t===I,c=fe?history.state:{};n&&(r||s?a.replace(e.fullPath,j({scroll:s&&c&&c.scroll},i)):a.push(e.fullPath,i)),u.value=e,ge(e,t,n,s),he()}let re;function ae(){re||=a.listen((e,t,n)=>{if(!be.listening)return;let r=b(e),i=T(r,be.currentRoute.value);if(i){E(j(i,{replace:!0,force:!0}),r).catch(M);return}d=r;let o=u.value;fe&&Qe(Xe(o.fullPath,n.delta),Je()),ee(r,o).catch(e=>P(e,12)?e:P(e,2)?(E(j(x(e.to),{force:!0}),r).then(e=>{P(e,20)&&!n.delta&&n.type===`pop`&&a.go(-1,!1)}).catch(M),Promise.reject()):(n.delta&&a.go(-n.delta,!1),pe(e,r,o))).then(e=>{e||=ne(r,o,!1),e&&(n.delta&&!P(e,8)?a.go(-n.delta,!1):n.type===`pop`&&P(e,20)&&a.go(-1,!1)),A(r,o,e)}).catch(M)})}let oe=at(),ue=at(),de;function pe(e,t,n){he(e);let r=ue.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function me(){return de&&u.value!==I?Promise.resolve():new Promise((e,t)=>{oe.add([e,t])})}function he(e){return de||(de=!e,ae(),oe.list().forEach(([t,n])=>e?n(e):t()),oe.reset()),e}function ge(t,n,i,a){let{scrollBehavior:o}=e;if(!fe||!o)return Promise.resolve();let s=!i&&$e(Xe(t.fullPath,0))||(a||!i)&&history.state&&history.state.scroll||null;return r().then(()=>o(t,n,s)).then(e=>t===u.value&&e&&Ye(e)).catch(e=>t===u.value&&pe(e,t,n))}let _e=e=>a.go(e),ve,ye=new Set,be={currentRoute:u,listening:!0,addRoute:g,removeRoute:_,clearRoutes:t.clearRoutes,hasRoute:y,getRoutes:v,resolve:b,options:e,push:C,replace:w,go:_e,back:()=>_e(-1),forward:()=>_e(1),beforeEach:o.add,beforeResolve:s.add,afterEach:c.add,onError:ue.add,isReady:me,install(e){e.component(`RouterLink`,Rt),e.component(`RouterView`,Gt),e.config.globalProperties.$router=be,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>l(u)}),fe&&!ve&&u.value===I&&(ve=!0,C(a.location).catch(e=>{}));let t={};for(let e in I)Object.defineProperty(t,e,{get:()=>u.value[e],enumerable:!0});e.provide(se,be),e.provide(ce,O(t)),e.provide(le,u);let n=e.unmount;ye.add(e),e.unmount=function(){ye.delete(e),ye.size<1&&(d=I,re&&re(),re=null,u.value=I,ve=!1,de=!1),n()}}};function F(e){return e.reduce((e,t)=>e.then(()=>k(t)),Promise.resolve())}return be}function R(e,t){return S()?(C(e,t),!0):!1}var qt=new WeakMap,Jt=(...e)=>{let t=e[0],n=o()?.proxy??S();if(n==null&&!i())throw Error(`injectLocal must be called in setup`);return n&&qt.has(n)&&t in qt.get(n)?qt.get(n)[t]:v(...e)};function Yt(t,n){let r=o()?.proxy??S();if(r==null)throw Error(`provideLocal must be called in setup`);qt.has(r)||qt.set(r,Object.create(null));let i=qt.get(r);return i[t]=n,e(t,n)}var z=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var Xt=e=>e!==void 0,Zt=e=>e!=null,Qt=Object.prototype.toString,$t=e=>Qt.call(e)===`[object Object]`,en=()=>+Date.now(),B=()=>{},tn=nn();function nn(){var e,t;return z&&!!((e=window)!=null&&(e=e.navigator)!=null&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)==null||(t=t.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function rn(...e){if(e.length!==1)return x(...e);let t=e[0];return typeof t==`function`?u(f(()=>({get:t,set:B}))):y(t)}function an(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return`cancel`in e&&Object.assign(n,{cancel:e.cancel,flush:e.flush,isPending:e.isPending}),n}var on=e=>e();function sn(e,t={}){let n,r,i=B,a=B,o=p(!1),s=e=>{clearTimeout(e),i(),i=B},c;return Object.assign(l=>{let u=h(e),d=h(t.maxWait);return n&&s(n),u<=0||d!==void 0&&d<=0?(r&&=(s(r),void 0),o.value=!1,Promise.resolve(l())):(o.value=!0,new Promise((e,f)=>{i=t.rejectOnCancel?f:e,a=e,c=l,d&&!r&&(r=setTimeout(()=>{n&&s(n),r=void 0,o.value=!1,e(c())},d)),n=setTimeout(()=>{r&&s(r),r=void 0,o.value=!1,e(l())},u)}))},{cancel:()=>{n&&=(s(n),void 0),r&&=(s(r),void 0),o.value=!1,a=B},flush:()=>{if(o.value){n&&=(clearTimeout(n),void 0),r&&=(clearTimeout(r),void 0),o.value=!1;let e=a;i=B,a=B,e(c())}},isPending:d(o)})}function cn(e=on,t={}){let{initialState:n=`active`}=t,r=rn(n===`active`);function i(){r.value=!1}function a(){r.value=!0}return{isActive:d(r),pause:i,resume:a,eventFilter:(...t)=>{r.value&&e(...t)}}}function ln(e){let t;function n(){return t||=e(),t}return n.reset=async()=>{let e=t;t=void 0,e&&await e},n}function un(e,t){if(typeof e==`number`)return e+t;let n=e.match(/^-?\d+\.?\d*/)?.[0]||``,r=e.slice(n.length),i=Number.parseFloat(n)+t;return Number.isNaN(i)?e:i+r}function dn(e){return e.endsWith(`rem`)?Number.parseFloat(e)*16:Number.parseFloat(e)}function fn(e,t,n=!1){return Object.fromEntries(Object.entries(e).filter(([e,r])=>(!n||r!==void 0)&&!t.includes(e)))}function pn(e){return Array.isArray(e)?e:[e]}function mn(e){return e||o()}function hn(e){if(!z)return e;let t=0,n,r,i=()=>{--t,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return((...a)=>(t+=1,r||(r=D(!0),n=r.run(()=>e(...a))),R(i),n))}function gn(e,t,n={}){let{eventFilter:r=on,...i}=n;return c(e,an(r,t),i)}function _n(e,t,n={}){let{eventFilter:r,initialState:i=`active`,...a}=n,{eventFilter:o,pause:s,resume:c,isActive:l}=cn(r,{initialState:i});return{stop:gn(e,t,{...a,eventFilter:o}),pause:s,resume:c,isActive:l}}function vn(e,t={}){if(!_(e))return g(e);let n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(let r in e.value)n[r]=f(()=>({get(){return e.value[r]},set(n){if(h(t.replaceRef)??!0){if(Array.isArray(e.value)){let t=[...e.value];t[r]=n,e.value=t}else{let t={...e.value,[r]:n};Object.setPrototypeOf(t,Object.getPrototypeOf(e.value)),e.value=t}}else e.value[r]=n}}));return n}function V(e,t=!0,i){mn(i)?n(e,i):t?e():r(e)}function yn(e,t=1e3,n={}){let{immediate:r=!0,immediateCallback:i=!1}=n,a=null,o=p(!1);function s(){a&&=(clearInterval(a),null)}function l(){o.value=!1,s()}function u(){let n=h(t);n<=0||(o.value=!0,i&&e(),s(),o.value&&(a=setInterval(e,n)))}return r&&z&&u(),(_(t)||typeof t==`function`)&&R(c(t,()=>{o.value&&z&&u()})),R(l),{isActive:d(o),pause:l,resume:u}}function bn(e=1e3,t={}){let{controls:n=!1,immediate:r=!0,callback:i}=t,a=p(0),o=()=>a.value+=1,s=()=>{a.value=0},c=yn(i?()=>{o(),i(a.value)}:o,e,{immediate:r});return n?{counter:d(a),reset:s,...c}:d(a)}function xn(e,t,n={}){let{immediate:r=!0,immediateCallback:i=!1}=n,a=p(!1),o;function s(){o&&=(clearTimeout(o),void 0)}function c(){a.value=!1,s()}function l(...n){i&&e(),s(),a.value=!0,o=setTimeout(()=>{a.value=!1,o=void 0,e(...n)},h(t))}return r&&(a.value=!0,z&&l()),R(c),{isPending:d(a),start:l,stop:c}}function Sn(e=!1,t={}){let{truthyValue:n=!0,falsyValue:r=!1}=t,i=_(e),a=p(e);function o(e){if(arguments.length)return a.value=e,a.value;{let e=h(n);return a.value=a.value===e?h(r):e,a.value}}return i?o:[a,o]}function Cn(e,t,n={}){let{debounce:r=0,maxWait:i=void 0,...a}=n;return gn(e,t,{...a,eventFilter:sn(r,{maxWait:i})})}var wn=Cn;function Tn(e,t,n={}){let{eventFilter:r=on,...i}=n,a=an(r,t),o,s,l;if(i.flush===`sync`){let t=!1;s=()=>{},o=e=>{t=!0,e(),t=!1},l=c(e,(...e)=>{t||a(...e)},i)}else{let t=[],n=0,r=0;s=()=>{n=r},t.push(c(e,()=>{r++},{...i,flush:`sync`})),o=e=>{let t=r;e(),n+=r-t},t.push(c(e,(...e)=>{let t=n>0&&n===r;n=0,r=0,!t&&a(...e)},i)),l=()=>{t.forEach(e=>e())}}return{stop:l,ignoreUpdates:o,ignorePrevAsyncUpdates:s}}var En=Tn;function Dn(e,t,n){return c(e,t,{...n,immediate:!0})}function On(e,t,n){let i=c(e,(e,a,o)=>{e&&(n?.once&&r(()=>i()),t(e,a,o))},{...n,once:!1});return i}var H=z?window:void 0,kn=z?window.document:void 0,An=z?window.navigator:void 0;z&&window.location;function U(e){let t=h(e);return t?.$el??t}function W(...e){let t=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),n=m(()=>{let t=pn(h(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0});return Dn(()=>[n.value?.map(e=>U(e))??[H].filter(e=>e!=null),pn(h(n.value?e[1]:e[0])),pn(l(n.value?e[2]:e[1])),h(n.value?e[3]:e[2])],([e,n,r,i],a,o)=>{if(!e?.length||!n?.length||!r?.length)return;let s=$t(i)?{...i}:i,c=e.flatMap(e=>n.flatMap(n=>r.map(r=>t(e,n,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}var jn=!1;function Mn(e,t,n={}){let{window:r=H,ignore:i=[],capture:a=!0,detectIframe:o=!1,controls:s=!1}=n;if(!r)return s?{stop:B,cancel:B,trigger:B}:B;if(tn&&!jn){jn=!0;let e={passive:!0};Array.from(r.document.body.children).forEach(t=>t.addEventListener(`click`,B,e)),r.document.documentElement.addEventListener(`click`,B,e)}let c=!0,l=e=>h(i).some(t=>{if(typeof t==`string`)return Array.from(r.document.querySelectorAll(t)).some(t=>t===e.target||e.composedPath().includes(t));{let n=U(t);return n&&(e.target===n||e.composedPath().includes(n))}});function u(e){let t=h(e);return t&&t.$.subTree.shapeFlag===16}function d(e,t){let n=h(e),r=n.$.subTree&&n.$.subTree.children;return r==null||!Array.isArray(r)?!1:r.some(e=>e.el===t.target||t.composedPath().includes(e.el))}let f=n=>{let r=U(e);if(n.target!=null&&!(!(r instanceof Element)&&u(e)&&d(e,n))&&!(!r||r===n.target||n.composedPath().includes(r))){if(`detail`in n&&n.detail===0&&(c=!l(n)),!c){c=!0;return}t(n)}},p=!1,m=[W(r,`click`,e=>{p||(p=!0,setTimeout(()=>{p=!1},0),f(e))},{passive:!0,capture:a}),W(r,`pointerdown`,t=>{let n=U(e);c=!l(t)&&!!(n&&!t.composedPath().includes(n))},{passive:!0}),o&&W(r,`blur`,n=>{setTimeout(()=>{let i=U(e),a=r.document.activeElement;for(;a?.shadowRoot;)a=a.shadowRoot.activeElement;a?.tagName===`IFRAME`&&!i?.contains(r.document.activeElement)&&t(n)},0)},{passive:!0})].filter(Boolean),g=()=>m.forEach(e=>e());return s?{stop:g,cancel:()=>{c=!1},trigger:e=>{c=!0,f(e),c=!1}}:g}function Nn(){let e=p(!1),t=o();return t&&n(()=>{e.value=!0},t),e}function G(e){let t=Nn();return m(()=>(t.value,!!e()))}function Pn(e,t,n={}){let{window:r=H,...i}=n,a,o=G(()=>r&&`MutationObserver`in r),s=()=>{a&&=(a.disconnect(),void 0)},l=c(m(()=>{let t=pn(h(e)).map(U).filter(Zt);return new Set(t)}),e=>{s(),o.value&&e.size&&(a=new MutationObserver(t),e.forEach(e=>a.observe(e,i)))},{immediate:!0,flush:`post`}),u=()=>a?.takeRecords(),d=()=>{l(),s()};return R(d),{isSupported:o,stop:d,takeRecords:u}}function Fn(e,t,n={}){let{window:r=H,document:i=r?.document,flush:a=`sync`}=n;if(!r||!i)return B;let o,c=e=>{o?.(),o=e},l=s(()=>{let n=U(e);if(n){let{stop:e}=Pn(i,e=>{e.map(e=>[...e.removedNodes]).flat().some(e=>e===n||e.contains(n))&&t(e)},{window:r,childList:!0,subtree:!0});c(e)}},{flush:a}),u=()=>{l(),c()};return R(u),u}function In(e){return typeof e==`function`?e:typeof e==`string`?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Ln(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]==`object`?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);let{target:i=H,eventName:a=`keydown`,passive:o=!1,dedupe:s=!1}=r,c=In(t);return W(i,a,e=>{e.repeat&&h(s)||c(e)&&n(e)},o)}function Rn(e={}){let{window:t=H,deep:n=!0,triggerOnRemoval:r=!1}=e,i=e.document??t?.document,a=()=>{let e=i?.activeElement;if(n)for(var t;e?.shadowRoot;)e=e==null||(t=e.shadowRoot)==null?void 0:t.activeElement;return e},o=p(),s=()=>{o.value=a()};if(t){let e={capture:!0,passive:!0};W(t,`blur`,e=>{e.relatedTarget===null&&s()},e),W(t,`focus`,s,e)}return r&&Fn(o,s,{document:i}),s(),o}var zn=Symbol(`vueuse-ssr-width`);function Bn(){let e=i()?Jt(zn,null):null;return typeof e==`number`?e:void 0}function K(e,t={}){let{window:n=H,ssrWidth:r=Bn()}=t,i=G(()=>n&&`matchMedia`in n&&typeof n.matchMedia==`function`),a=p(typeof r==`number`),o=p(),c=p(!1);return s(()=>{if(a.value){a.value=!i.value;let t=h(e).split(`,`);c.value=t.some(e=>{let t=e.includes(`not all`),n=e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),i=e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),a=!!(n||i);return n&&a&&(a=r>=dn(n[1])),i&&a&&(a=r<=dn(i[1])),t?!a:a});return}i.value&&(o.value=n.matchMedia(h(e)),c.value=o.value.matches)}),W(o,`change`,e=>{c.value=e.matches},{passive:!0}),m(()=>c.value)}var Vn={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function Hn(e,t={}){function n(t,n){let r=h(e[h(t)]);return n!=null&&(r=un(r,n)),typeof r==`number`&&(r=`${r}px`),r}let{window:r=H,strategy:i=`min-width`,ssrWidth:a=Bn()}=t,o=typeof a==`number`,s=o?p(!1):{value:!0};o&&V(()=>s.value=!!r);function c(e,t){return!s.value&&o?e===`min`?a>=dn(t):a<=dn(t):r?r.matchMedia(`(${e}-width: ${t})`).matches:!1}let l=e=>K(()=>`(min-width: ${n(e)})`,t),u=e=>K(()=>`(max-width: ${n(e)})`,t),d=Object.keys(e).reduce((e,t)=>(Object.defineProperty(e,t,{get:()=>i===`min-width`?l(t):u(t),enumerable:!0,configurable:!0}),e),{});function f(){let t=Object.keys(e).map(e=>[e,d[e],dn(n(e))]).sort((e,t)=>e[2]-t[2]);return m(()=>t.filter(([,e])=>e.value).map(([e])=>e))}return Object.assign(d,{greaterOrEqual:l,smallerOrEqual:u,greater(e){return K(()=>`(min-width: ${n(e,.1)})`,t)},smaller(e){return K(()=>`(max-width: ${n(e,-.1)})`,t)},between(e,r){return K(()=>`(min-width: ${n(e)}) and (max-width: ${n(r,-.1)})`,t)},isGreater(e){return c(`min`,n(e,.1))},isGreaterOrEqual(e){return c(`min`,n(e))},isSmaller(e){return c(`max`,n(e,-.1))},isSmallerOrEqual(e){return c(`max`,n(e))},isInBetween(e,t){return c(`min`,n(e))&&c(`max`,n(t,-.1))},current:f,active(){let e=f();return m(()=>e.value.length===0?``:e.value.at(i===`min-width`?-1:0))}})}function Un(e,t={}){let{controls:n=!1,navigator:r=An}=t,i=G(()=>r&&`permissions`in r),a=p(),o=typeof e==`string`?{name:e}:e,s=p(),c=()=>{s.value=a.value?.state??`prompt`};W(a,`change`,c,{passive:!0});let l=ln(async()=>{if(i.value){if(!a.value)try{a.value=await r.permissions.query(o)}catch{a.value=void 0}finally{c()}if(n)return w(a.value)}});return l(),n?{state:s,isSupported:i,query:l}:s}function Wn(e={}){let{navigator:t=An,read:n=!1,source:r,copiedDuring:i=1500,legacy:a=!1}=e,o=G(()=>t&&`clipboard`in t),s=Un(`clipboard-read`),c=Un(`clipboard-write`),l=m(()=>o.value||a),u=p(``),f=p(!1),g=p(!1),_=xn(()=>f.value=!1,i,{immediate:!1}),v=0;async function y(){let e=!(o.value&&w(s.value));if(!e)try{u.value=await t.clipboard.readText()}catch{e=!0}e&&(u.value=C())}l.value&&n&&W([`copy`,`cut`],y,{passive:!0});async function b(e){let n=e??h(r);if(l.value&&n!=null){g.value=!0;let e=!(o.value&&w(c.value));if(!e)try{let e=x(n);await t.clipboard.write([e])}catch{e=!0}if(e){if(typeof n==`string`)u.value=n,S(n);else{let e=++v,t=await n();t!=null&&e===v&&(u.value=t,S(t))}}f.value=!0,_.start(),g.value=!1}}function x(e){return typeof e==`string`?(u.value=e,new ClipboardItem({"text/plain":e})):new ClipboardItem({"text/plain":e().then((e=``)=>(u.value=e,new Blob([e],{type:`text/plain`})))})}function S(e){let t=document.createElement(`textarea`);t.value=e,t.style.position=`absolute`,t.style.opacity=`0`,t.setAttribute(`readonly`,``),document.body.appendChild(t),t.select(),document.execCommand(`copy`),t.remove()}function C(){var e,t;return((e=document)==null||(t=e.getSelection)==null||(t=t.call(e))==null?void 0:t.toString())??``}function w(e){return e===`granted`||e===`prompt`}return{copyPending:d(g),isSupported:l,text:d(u),copied:d(f),copy:b}}function Gn(e){return JSON.parse(JSON.stringify(e))}var Kn=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},qn=`__vueuse_ssr_handlers__`,Jn=Yn();function Yn(){return qn in Kn||(Kn[qn]=Kn[qn]||{}),Kn[qn]}function Xn(e,t){return Jn[e]||t}function Zn(e){return K(`(prefers-color-scheme: dark)`,e)}function Qn(e){return e==null?`any`:e instanceof Set?`set`:e instanceof Map?`map`:e instanceof Date?`date`:typeof e==`boolean`?`boolean`:typeof e==`string`?`string`:typeof e==`object`?`object`:Number.isNaN(e)?`any`:`number`}var $n={boolean:{read:e=>e===`true`,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},er=`vueuse-storage`;function tr(e,t,n,i={}){let{flush:a=`pre`,deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:d,window:f=H,eventFilter:g,onError:_=e=>{console.error(e)},initOnMounted:v}=i,b=(d?p:y)(typeof t==`function`?t():t),x=m(()=>h(e));if(!n)try{n=Xn(`getDefaultStorage`,()=>H?.localStorage)()}catch(e){_(e)}if(!n)return b;let S=h(t),C=Qn(S),w=i.serializer??$n[C],{pause:T,resume:E}=_n(b,e=>k(e),{flush:a,deep:o,eventFilter:g});c(x,()=>A(),{flush:a});let D=!1;f&&s&&(n instanceof Storage?W(f,`storage`,e=>{v&&!D||A(e)},{passive:!0}):W(f,er,e=>{v&&!D||j(e)})),v?V(()=>{D=!0,A()}):A();function O(e,t){if(f){let r={key:x.value,oldValue:e,newValue:t,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent(`storage`,r):new CustomEvent(er,{detail:r}))}}function k(e){try{let t=n.getItem(x.value);if(e==null)O(t,null),n.removeItem(x.value);else{let r=w.write(e);t!==r&&(n.setItem(x.value,r),O(t,r))}}catch(e){_(e)}}function ee(e){let t=e?e.newValue:n.getItem(x.value);if(t==null)return l&&S!=null&&n.setItem(x.value,w.write(S)),S;if(!e&&u){let e=w.read(t);return typeof u==`function`?u(e,S):C===`object`&&!Array.isArray(e)?{...S,...e}:e}return typeof t==`string`?w.read(t):t}function A(e){if(!(e&&e.storageArea!==n)){if(e&&e.key==null){b.value=S;return}if(!(e&&e.key!==x.value)){T();try{let t=w.write(b.value);(e===void 0||e?.newValue!==t)&&(b.value=ee(e))}catch(e){_(e)}finally{e?r(E):E()}}}}function j(e){A(e.detail)}return b}function nr(e={}){let{document:t=kn}=e;if(!t)return p(`visible`);let n=p(t.visibilityState);return W(t,`visibilitychange`,()=>{n.value=t.visibilityState},{passive:!0}),n}var rr={speed:2,margin:30,direction:`both`};function ir(e){e.scrollLeft>e.scrollWidth-e.clientWidth&&(e.scrollLeft=Math.max(0,e.scrollWidth-e.clientWidth)),e.scrollTop>e.scrollHeight-e.clientHeight&&(e.scrollTop=Math.max(0,e.scrollHeight-e.clientHeight))}function ar(e,t={}){let{pointerTypes:n,preventDefault:r,stopPropagation:i,exact:a,onMove:o,onEnd:s,onStart:l,initialValue:u,axis:d=`both`,draggingElement:f=H,containerElement:p,handle:g=e,buttons:_=[0],restrictInView:v,autoScroll:b=!1}=t,x=y(h(u)??{x:0,y:0}),S=y(),C=e=>!n||n.includes(e.pointerType),w=e=>{h(r)&&e.preventDefault(),h(i)&&e.stopPropagation()},T=h(b),E=typeof T==`object`?{speed:h(T.speed)??rr.speed,margin:h(T.margin)??rr.margin,direction:T.direction??rr.direction}:rr,D=e=>typeof e==`number`?[e,e]:[e.x,e.y],O=(e,t,n)=>{let{clientWidth:r,clientHeight:i,scrollLeft:a,scrollTop:o,scrollWidth:s,scrollHeight:c}=e,[l,u]=D(E.margin),[d,f]=D(E.speed),p=0,m=0;(E.direction===`x`||E.direction===`both`)&&(n.x0?p=-d:n.x+t.width>r-l&&a0?m=-f:n.y+t.height>i-u&&o{let t=h(p);t&&!k&&(k=setInterval(()=>{let n=h(e).getBoundingClientRect(),{x:r,y:i}=x.value,a={x:r-t.scrollLeft,y:i-t.scrollTop};a.x>=0&&a.y>=0&&(O(t,n,a),a.x+=t.scrollLeft,a.y+=t.scrollTop,x.value=a)},1e3/60))},A=()=>{k&&=(clearInterval(k),null)},j=(e,t,n,r)=>{let[i,a]=typeof n==`number`?[n,n]:[n.x,n.y],{clientWidth:o,clientHeight:s}=t;return e.xo-i||e.ys-a};h(b)&&c(x,()=>{if(h(t.disabled)||!S.value)return;let n=h(p);if(!n)return;let r=h(e).getBoundingClientRect(),{x:i,y:a}=x.value,o={x:i-n.scrollLeft,y:a-n.scrollTop};j(o,n,E.margin,r)?ee():A()});let te=n=>{var r;if(!h(_).includes(n.button)||h(t.disabled)||!C(n)||h(a)&&n.target!==h(e))return;let i=h(p),o=i==null||(r=i.getBoundingClientRect)==null?void 0:r.call(i),s=h(e).getBoundingClientRect(),c={x:n.clientX-(i?s.left-o.left+(b?0:i.scrollLeft):s.left),y:n.clientY-(i?s.top-o.top+(b?0:i.scrollTop):s.top)};l?.(c,n)!==!1&&(S.value=c,w(n))},M=n=>{if(h(t.disabled)||!C(n)||!S.value)return;let r=h(p);r instanceof HTMLElement&&ir(r);let i=h(e).getBoundingClientRect(),{x:a,y:s}=x.value;if((d===`x`||d===`both`)&&(a=n.clientX-S.value.x,r&&(a=Math.min(Math.max(0,a),r.scrollWidth-i.width))),(d===`y`||d===`both`)&&(s=n.clientY-S.value.y,r&&(s=Math.min(Math.max(0,s),r.scrollHeight-i.height))),h(b)&&r&&(k===null&&O(r,i,{x:a,y:s}),a+=r.scrollLeft,s+=r.scrollTop),r&&(v||b)){if(d!==`y`){let e=a-r.scrollLeft;e<0?a=r.scrollLeft:e>r.clientWidth-i.width&&(a=r.clientWidth-i.width+r.scrollLeft)}if(d!==`x`){let e=s-r.scrollTop;e<0?s=r.scrollTop:e>r.clientHeight-i.height&&(s=r.clientHeight-i.height+r.scrollTop)}}x.value={x:a,y:s},o?.(x.value,n),w(n)},N=e=>{h(t.disabled)||!C(e)||S.value&&(S.value=void 0,b&&A(),s?.(x.value,e),w(e))};if(z){let e=()=>({capture:t.capture??!0,passive:!h(r)});W(g,`pointerdown`,te,e),W(f,`pointermove`,M,e),W(f,[`pointerup`,`pointercancel`],N,e)}return{...vn(x),position:x,isDragging:m(()=>!!S.value),style:m(()=>` + left: ${x.value.x}px; + top: ${x.value.y}px; + ${b?`text-wrap: nowrap;`:``} + `)}}function or(e,t,n={}){let{window:r=H,...i}=n,a,o=G(()=>r&&`ResizeObserver`in r),s=()=>{a&&=(a.disconnect(),void 0)},l=c(m(()=>{let t=h(e);return Array.isArray(t)?t.map(e=>U(e)):[U(t)]}),e=>{if(s(),o.value&&r){a=new ResizeObserver(t);for(let t of e)t&&a.observe(t,i)}},{immediate:!0,flush:`post`}),u=()=>{s(),l()};return R(u),{isSupported:o,stop:u}}function sr(e,t={}){let{reset:n=!0,windowResize:r=!0,windowScroll:i=!0,immediate:a=!0,updateTiming:o=`sync`}=t,s=p(0),l=p(0),u=p(0),d=p(0),f=p(0),m=p(0),h=p(0),g=p(0);function _(){let t=U(e);if(!t){n&&(s.value=0,l.value=0,u.value=0,d.value=0,f.value=0,m.value=0,h.value=0,g.value=0);return}let r=t.getBoundingClientRect();s.value=r.height,l.value=r.bottom,u.value=r.left,d.value=r.right,f.value=r.top,m.value=r.width,h.value=r.x,g.value=r.y}function v(){o===`sync`?_():o===`next-frame`&&requestAnimationFrame(()=>_())}return or(e,v),c(()=>U(e),e=>!e&&v()),Pn(e,v,{attributeFilter:[`style`,`class`]}),i&&W(`scroll`,v,{capture:!0,passive:!0}),r&&W(`resize`,v,{passive:!0}),V(()=>{a&&v()}),{height:s,bottom:l,left:u,right:d,top:f,width:m,x:h,y:g,update:v}}function cr(e,t={width:0,height:0},n={}){let{window:r=H,box:i=`content-box`}=n,a=m(()=>{var t;return(t=U(e))==null||(t=t.namespaceURI)==null?void 0:t.includes(`svg`)}),o=p(t.width),s=p(t.height),{stop:l}=or(e,([t])=>{let n=i===`border-box`?t.borderBoxSize:i===`content-box`?t.contentBoxSize:t.devicePixelContentBoxSize;if(r&&a.value){let t=U(e);if(t){let e=t.getBoundingClientRect();o.value=e.width,s.value=e.height}}else if(n){let e=pn(n);o.value=e.reduce((e,{inlineSize:t})=>e+t,0),s.value=e.reduce((e,{blockSize:t})=>e+t,0)}else o.value=t.contentRect.width,s.value=t.contentRect.height},n);V(()=>{let n=U(e);if(n&&`offsetWidth`in n){if(i===`content-box`&&r){let e=r.getComputedStyle(n),t=Number.parseFloat(e.paddingLeft)+Number.parseFloat(e.paddingRight),i=Number.parseFloat(e.paddingTop)+Number.parseFloat(e.paddingBottom),a=Number.parseFloat(e.borderLeftWidth)+Number.parseFloat(e.borderRightWidth),c=Number.parseFloat(e.borderTopWidth)+Number.parseFloat(e.borderBottomWidth);o.value=n.offsetWidth-t-a,s.value=n.offsetHeight-i-c}else o.value=n.offsetWidth,s.value=n.offsetHeight}else n&&(o.value=t.width,s.value=t.height)});let u=c(()=>U(e),e=>{o.value=e?t.width:0,s.value=e?t.height:0});function d(){l(),u()}return{width:o,height:s,stop:d}}var lr=[`fullscreenchange`,`webkitfullscreenchange`,`webkitendfullscreen`,`mozfullscreenchange`,`MSFullscreenChange`];function ur(e,t={}){let{document:n=kn,autoExit:r=!1}=t,i=m(()=>U(e)??n?.documentElement),a=p(!1),o=m(()=>[`requestFullscreen`,`webkitRequestFullscreen`,`webkitEnterFullscreen`,`webkitEnterFullScreen`,`webkitRequestFullScreen`,`mozRequestFullScreen`,`msRequestFullscreen`].find(e=>n&&e in n||i.value&&e in i.value)),s=m(()=>[`exitFullscreen`,`webkitExitFullscreen`,`webkitExitFullScreen`,`webkitCancelFullScreen`,`mozCancelFullScreen`,`msExitFullscreen`].find(e=>n&&e in n||i.value&&e in i.value)),c=m(()=>[`fullScreen`,`webkitIsFullScreen`,`webkitDisplayingFullscreen`,`mozFullScreen`,`msFullscreenElement`].find(e=>n&&e in n||i.value&&e in i.value)),l=[`fullscreenElement`,`webkitFullscreenElement`,`mozFullScreenElement`,`msFullscreenElement`].find(e=>n&&e in n),u=G(()=>i.value&&n&&o.value!==void 0&&s.value!==void 0&&c.value!==void 0),d=()=>l?n?.[l]===i.value:!1,f=()=>{if(c.value){if(n&&n[c.value]!=null)return n[c.value];{let e=i.value;if(e?.[c.value]!=null)return!!e[c.value]}}return!1};async function h(){if(!(!u.value||!a.value)){if(s.value){if(n?.[s.value]!=null)await n[s.value]();else{let e=i.value;e?.[s.value]!=null&&await e[s.value]()}}a.value=!1}}async function g(){if(!u.value||a.value)return;f()&&await h();let e=i.value;o.value&&e?.[o.value]!=null&&(await e[o.value](),a.value=!0)}async function _(){await(a.value?h():g())}let v=()=>{let e=f();(!e||e&&d())&&(a.value=e)},y={capture:!1,passive:!0};return W(n,lr,v,y),W(()=>U(i),lr,v,y),V(v,!1),r&&R(h),{isSupported:u,isFullscreen:a,enter:g,exit:h,toggle:_}}function dr(e,t,n={}){let{window:r=H}=n;return tr(e,t,r?.localStorage,n)}var fr={ctrl:`control`,command:`meta`,cmd:`meta`,option:`alt`,up:`arrowup`,down:`arrowdown`,left:`arrowleft`,right:`arrowright`};function pr(e={}){let{reactive:t=!1,target:n=H,aliasMap:r=fr,passive:i=!0,onEventFired:a=B}=e,o=E(new Set),s={toJSON(){return{}},current:o},c=t?E(s):s,l=new Set,u=new Map([[`Meta`,l],[`Shift`,new Set],[`Alt`,new Set]]),d=new Set;function f(e,n){e in c&&(t?c[e]=n:c[e].value=n)}function g(){o.clear();for(let e of d)f(e,!1)}function _(e,t,n){if(!(!e||typeof t.getModifierState!=`function`)){for(let[e,r]of u)if(t.getModifierState(e)){n.forEach(e=>r.add(e));break}}}function v(e,t){if(e)return;let n=`${t[0].toUpperCase()}${t.slice(1)}`,r=u.get(n);if(![`shift`,`alt`].includes(t)||!r)return;let i=Array.from(r),a=i.indexOf(t);i.forEach((e,t)=>{t>=a&&(o.delete(e),f(e,!1))}),r.clear()}function y(e,t){let n=e.key?.toLowerCase(),r=[e.code?.toLowerCase(),n].filter(Boolean);if(n){n&&(t?o.add(n):o.delete(n));for(let e of r)d.add(e),f(e,t);_(t,e,[...o,...r]),v(t,n),n===`meta`&&!t&&(l.forEach(e=>{o.delete(e),f(e,!1)}),l.clear())}}W(n,`keydown`,e=>(y(e,!0),a(e)),{passive:i}),W(n,`keyup`,e=>(y(e,!1),a(e)),{passive:i}),W(`blur`,g,{passive:i}),W(`focus`,g,{passive:i});let b=new Proxy(c,{get(e,n,i){if(typeof n!=`string`)return Reflect.get(e,n,i);if(n=n.toLowerCase(),n in r&&(n=r[n]),!(n in c)){if(/[+_-]/.test(n)){let e=n.split(/[+_-]/g).map(e=>e.trim());c[n]=m(()=>e.map(e=>h(b[e])).every(Boolean))}else c[n]=p(!1)}let a=Reflect.get(e,n,i);return t?h(a):a}});return b}var mr={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof MouseEvent?[e.movementX,e.movementY]:null};function hr(e={}){let{type:t=`page`,touch:n=!0,resetOnTouchEnds:r=!1,initialValue:i={x:0,y:0},window:a=H,target:o=a,scroll:s=!0,eventFilter:c}=e,l=null,u=0,d=0,f=p(i.x),m=p(i.y),h=p(null),g=typeof t==`function`?t:mr[t],_=e=>{let t=g(e);l=e,t&&([f.value,m.value]=t,h.value=`mouse`),a&&(u=a.scrollX,d=a.scrollY)},v=e=>{if(e.touches.length>0){let t=g(e.touches[0]);t&&([f.value,m.value]=t,h.value=`touch`)}},y=()=>{if(!l||!a)return;let e=g(l);l instanceof MouseEvent&&e&&(f.value=e[0]+a.scrollX-u,m.value=e[1]+a.scrollY-d)},b=()=>{f.value=i.x,m.value=i.y},x=c?e=>c(()=>_(e),{}):e=>_(e),S=c?e=>c(()=>v(e),{}):e=>v(e),C=c?()=>c(()=>y(),{}):()=>y();if(o){let e={passive:!0};W(o,[`mousemove`,`dragover`],x,e),n&&t!==`movement`&&(W(o,[`touchstart`,`touchmove`],S,e),r&&W(o,`touchend`,b,e)),s&&t===`page`&&W(a,`scroll`,C,e)}return{x:f,y:m,sourceType:h}}function gr(e,t={}){let n=rn(e),{threshold:r=50,onSwipe:i,onSwipeEnd:a,onSwipeStart:o,disableTextSelect:s=!1}=t,c=E({x:0,y:0}),l=(e,t)=>{c.x=e,c.y=t},f=E({x:0,y:0}),h=(e,t)=>{f.x=e,f.y=t},g=m(()=>c.x-f.x),_=m(()=>c.y-f.y),{max:v,abs:y}=Math,b=m(()=>v(y(g.value),y(_.value))>=r),x=p(!1),S=p(!1),C=m(()=>b.value?y(g.value)>y(_.value)?g.value>0?`left`:`right`:_.value>0?`up`:`down`:`none`),w=e=>{let n=e.buttons===0,r=e.buttons===1;return t.pointerTypes?.includes(e.pointerType)??(n||r)??!0},T={passive:!0},D=[W(e,`pointerdown`,e=>{if(!w(e))return;S.value=!0,e.target?.setPointerCapture(e.pointerId);let{clientX:t,clientY:n}=e;l(t,n),h(t,n),o?.(e)},T),W(e,`pointermove`,e=>{if(!w(e)||!S.value)return;let{clientX:t,clientY:n}=e;h(t,n),!x.value&&b.value&&(x.value=!0),x.value&&i?.(e)},T),W(e,[`pointerup`,`pointercancel`],e=>{w(e)&&(x.value&&a?.(e,C.value),S.value=!1,x.value=!1)},T)];return V(()=>{var e;if((e=n.value)==null||(e=e.style)==null||e.setProperty(`touch-action`,`pan-y`),s){var t,r,i;(t=n.value)==null||(t=t.style)==null||t.setProperty(`-webkit-user-select`,`none`),(r=n.value)==null||(r=r.style)==null||r.setProperty(`-ms-user-select`,`none`),(i=n.value)==null||(i=i.style)==null||i.setProperty(`user-select`,`none`)}}),{isSwiping:d(x),direction:d(C),posStart:u(c),posEnd:u(f),distanceX:g,distanceY:_,stop:()=>D.forEach(e=>e())}}var _r=0,vr=new WeakMap;function yr(e,t={}){let n=p(!1),{document:r=kn,immediate:i=!0,manual:a=!1,id:o=`vueuse_styletag_${++_r}`}=t,s=p(e),l=()=>{},u=()=>{if(!r)return;let e=r.getElementById(o)||r.createElement(`style`);e.isConnected||(e.id=o,t.nonce&&(e.nonce=t.nonce),t.media&&(e.media=t.media),r.head.appendChild(e)),!n.value&&(vr.set(e,(vr.get(e)??0)+1),l=c(s,t=>{e.textContent=t},{immediate:!0}),n.value=!0)},f=()=>{if(!r||!n.value)return;l();let e=r.getElementById(o);if(e){let t=(vr.get(e)??1)-1;t<=0?(vr.delete(e),r.head.removeChild(e)):vr.set(e,t)}n.value=!1};return i&&!a&&V(u),a||R(f),{id:o,css:s,unload:f,load:u,isLoaded:d(n)}}function br(e,t,n,i={}){var a,s;let{clone:l=!1,passive:u=!1,eventName:d,deep:f=!1,defaultValue:p,shouldEmit:h}=i,g=o(),_=n||g?.emit||(g==null||(a=g.$emit)==null?void 0:a.bind(g))||(g==null||(s=g.proxy)==null||(s=s.$emit)==null?void 0:s.bind(g?.proxy)),v=d;t||=`modelValue`,v||=`update:${t.toString()}`;let b=e=>l?typeof l==`function`?l(e):Gn(e):e,x=()=>Xt(e[t])?b(e[t]):p,S=e=>{h?h(e)&&_(v,e):_(v,e)};if(u){let n=y(x()),i=!1;return c(()=>e[t],e=>{i||(i=!0,n.value=b(e),r(()=>i=!1))}),c(n,n=>{!i&&(n!==e[t]||f)&&S(n)},{deep:f}),n}return m({get(){return x()},set(e){S(e)}})}function xr(e={}){let{navigator:t=An,document:n=kn}=e,r=p(!1),i=p(null),a=nr({document:n}),o=G(()=>t&&`wakeLock`in t),s=m(()=>!!i.value&&a.value===`visible`);o.value&&(W(i,`release`,()=>{r.value=i.value?.type??!1},{passive:!0}),On(()=>a.value===`visible`&&n?.visibilityState===`visible`&&r.value,e=>{r.value=!1,c(e)}));async function c(e){await i.value?.release(),i.value=o.value?await t.wakeLock.request(e):null}async function l(e){a.value===`visible`?await c(e):r.value=e}async function u(){r.value=!1;let e=i.value;i.value=null,await e?.release()}return R(()=>{u()}),{sentinel:i,isSupported:o,isActive:s,request:l,forceRequest:c,release:u}}function Sr(e={}){let{window:t=H}=e;if(!t)return p(!1);let n=p(t.document.hasFocus()),r={passive:!0};return W(t,`blur`,()=>{n.value=!1},r),W(t,`focus`,()=>{n.value=!0},r),n}function Cr(e={}){let{window:t=H,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:i=!0,includeScrollbar:a=!0,type:o=`inner`}=e,s=p(n),l=p(r),u=()=>{if(t){if(o===`outer`)s.value=t.outerWidth,l.value=t.outerHeight;else if(o===`visual`&&t.visualViewport){let{width:e,height:n,scale:r}=t.visualViewport;s.value=Math.round(e*r),l.value=Math.round(n*r)}else a?(s.value=t.innerWidth,l.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight)}};u(),V(u);let d={passive:!0};return W(`resize`,u,d),t&&o===`visual`&&t.visualViewport&&W(t.visualViewport,`resize`,u,d),i&&c(K(`(orientation: portrait)`),()=>u()),{width:s,height:l}}function wr(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)===`[object Module]`:!0}function Tr(e,t,n=`.`,r){if(!wr(t))return Tr(e,{},n,r);let i={...t};for(let t of Object.keys(e)){if(t===`__proto__`||t===`constructor`)continue;let a=e[t];a!=null&&(r&&r(i,t,a,n)||(i[t]=Array.isArray(a)&&Array.isArray(i[t])?[...a,...i[t]]:wr(a)&&wr(i[t])?Tr(a,i[t],(n?`${n}.`:``)+t.toString(),r):a))}return i}function Er(e){return(...t)=>t.reduce((t,n)=>Tr(t,n,``,e),{})}var Dr=Er();function Or(e){return S()?(C(e),!0):!1}var kr=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var Ar=e=>e!=null,jr=Object.prototype.toString,Mr=e=>jr.call(e)===`[object Object]`,Nr=()=>{};function Pr(e){return Array.isArray(e)?e:[e]}function Fr(e){return e||o()}function Ir(e,t){Fr(t)&&a(e,t)}function Lr(e,t,n){return c(e,t,{...n,immediate:!0})}var Rr=kr?window:void 0;kr&&window.document,kr&&window.navigator,kr&&window.location;function zr(e){let t=h(e);return t?.$el??t}function q(...e){let t=[],n=()=>{t.forEach(e=>e()),t.length=0},r=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),i=m(()=>{let t=Pr(h(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0}),a=Lr(()=>[i.value?.map(e=>zr(e))??[Rr].filter(e=>e!=null),Pr(h(i.value?e[1]:e[0])),Pr(l(i.value?e[2]:e[1])),h(i.value?e[3]:e[2])],([e,i,a,o])=>{if(n(),!e?.length||!i?.length||!a?.length)return;let s=Mr(o)?{...o}:o;t.push(...e.flatMap(e=>i.flatMap(t=>a.map(n=>r(e,t,n,s)))))},{flush:`post`});return Or(n),()=>{a(),n()}}function Br(){let e=p(!1),t=o();return t&&n(()=>{e.value=!0},t),e}function Vr(e){let t=Br();return m(()=>(t.value,!!e()))}function Hr(e,t,n={}){let{root:r,rootMargin:i=`0px`,threshold:a=0,window:o=Rr,immediate:s=!0}=n,l=Vr(()=>o&&`IntersectionObserver`in o),u=m(()=>Pr(h(e)).map(zr).filter(Ar)),d=Nr,f=p(s),g=l.value?c(()=>[u.value,zr(r),f.value],([e,n])=>{if(d(),!f.value||!e.length)return;let r=new IntersectionObserver(t,{root:zr(n),rootMargin:i,threshold:a});e.forEach(e=>e&&r.observe(e)),d=()=>{r.disconnect(),d=Nr}},{immediate:s,flush:`post`}):Nr,_=()=>{d(),g(),f.value=!1};return Or(_),{isSupported:l,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:_}}var Ur=1/60*1e3,Wr=typeof performance<`u`?()=>performance.now():()=>Date.now(),Gr=typeof window<`u`?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(Wr()),Ur);function Kr(e){let t=[],n=[],r=0,i=!1,a=!1,o=new WeakSet,s={schedule:(e,a=!1,s=!1)=>{let c=s&&i,l=c?t:n;return a&&o.add(e),l.indexOf(e)===-1&&(l.push(e),c&&i&&(r=t.length)),e},cancel:e=>{let t=n.indexOf(e);t!==-1&&n.splice(t,1),o.delete(e)},process:c=>{if(i){a=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n(e[t]=Kr(()=>Yr=!0),e),{}),ei=Qr.reduce((e,t)=>{let n=$r[t];return e[t]=(e,t=!1,r=!1)=>(Yr||ii(),n.schedule(e,t,r)),e},{}),ti=Qr.reduce((e,t)=>(e[t]=$r[t].cancel,e),{});Qr.reduce((e,t)=>(e[t]=()=>$r[t].process(Zr),e),{});var ni=e=>$r[e].process(Zr),ri=e=>{Yr=!1,Zr.delta=Jr?Ur:Math.max(Math.min(e-Zr.timestamp,qr),1),Zr.timestamp=e,Xr=!0,Qr.forEach(ni),Xr=!1,Yr&&(Jr=!1,Gr(ri))},ii=()=>{Yr=!0,Jr=!0,Xr||Gr(ri)},ai=()=>Zr;function oi(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);iMath.min(Math.max(n,e),t),ci=.001,li=.01,ui=.05;function di({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,a,o=1-t;o=si(ui,1,o),e=si(li,10,e/1e3),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=mi(t,o),c=Math.exp(-i);return ci-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=mi(t**2,o);return(-i(t)+ci>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=pi(i,a,s);if(e*=1e3,isNaN(c))return{stiffness:100,damping:10,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var fi=12;function pi(e,t,n){let r=n;for(let n=1;ne[t]!==void 0)}function vi(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!_i(e,gi)&&_i(e,hi)){let n=di(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function yi(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,a=oi(e,[`from`,`to`,`restSpeed`,`restDelta`]);let o={done:!1,value:t},{stiffness:s,damping:c,mass:l,velocity:u,duration:d,isResolvedFromDuration:f}=vi(a),p=bi,m=bi;function h(){let e=u?-(u/1e3):0,r=n-t,a=c/(2*Math.sqrt(s*l)),o=Math.sqrt(s/l)/1e3;if(i===void 0&&(i=Math.min(Math.abs(n-t)/100,.4)),a<1){let t=mi(o,a);p=i=>{let s=Math.exp(-a*o*i);return n-s*((e+a*o*r)/t*Math.sin(t*i)+r*Math.cos(t*i))},m=n=>{let i=Math.exp(-a*o*n);return a*o*i*(Math.sin(t*n)*(e+a*o*r)/t+r*Math.cos(t*n))-i*(Math.cos(t*n)*(e+a*o*r)-t*r*Math.sin(t*n))}}else if(a===1)p=t=>n-Math.exp(-o*t)*(r+(e+o*r)*t);else{let t=o*Math.sqrt(a*a-1);p=i=>{let s=Math.exp(-a*o*i),c=Math.min(t*i,300);return n-s*((e+a*o*r)*Math.sinh(c)+t*r*Math.cosh(c))/t}}}return h(),{next:e=>{let t=p(e);if(f)o.done=e>=d;else{let a=m(e)*1e3,s=Math.abs(a)<=r,c=Math.abs(n-t)<=i;o.done=s&&c}return o.value=o.done?n:t,o},flipTarget:()=>{u=-u,[t,n]=[n,t],h()}}}yi.needsInterpolation=(e,t)=>typeof e==`string`||typeof t==`string`;var bi=e=>0,xi=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},Si=(e,t,n)=>-n*e+n*t+e,Ci=(e,t)=>n=>Math.max(Math.min(n,t),e),wi=e=>e%1?Number(e.toFixed(5)):e,Ti=/(-)?([\d]*\.?[\d])+/g,Ei=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Di=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Oi(e){return typeof e==`string`}var ki={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Ai=Object.assign(Object.assign({},ki),{transform:Ci(0,1)}),ji=Object.assign(Object.assign({},ki),{default:1}),Mi=e=>({test:t=>Oi(t)&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),J=Mi(`deg`),Ni=Mi(`%`),Y=Mi(`px`),Pi=Object.assign(Object.assign({},Ni),{parse:e=>Ni.parse(e)/100,transform:e=>Ni.transform(e*100)}),Fi=(e,t)=>n=>!!(Oi(n)&&Di.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Ii=(e,t,n)=>r=>{if(!Oi(r))return r;let[i,a,o,s]=r.match(Ti);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},X={test:Fi(`hsl`,`hue`),parse:Ii(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+Ni.transform(wi(t))+`, `+Ni.transform(wi(n))+`, `+wi(Ai.transform(r))+`)`},Li=Ci(0,255),Ri=Object.assign(Object.assign({},ki),{transform:e=>Math.round(Li(e))}),Z={test:Fi(`rgb`,`red`),parse:Ii(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Ri.transform(e)+`, `+Ri.transform(t)+`, `+Ri.transform(n)+`, `+wi(Ai.transform(r))+`)`};function zi(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var Bi={test:Fi(`#`),parse:zi,transform:Z.transform},Q={test:e=>Z.test(e)||Bi.test(e)||X.test(e),parse:e=>Z.test(e)?Z.parse(e):X.test(e)?X.parse(e):Bi.parse(e),transform:e=>Oi(e)?e:e.hasOwnProperty(`red`)?Z.transform(e):X.transform(e)},Vi="${c}",Hi="${n}";function Ui(e){return isNaN(e)&&Oi(e)&&(e.match(Ti)?.length??0)+(e.match(Ei)?.length??0)>0}function Wi(e){typeof e==`number`&&(e=`${e}`);let t=[],n=0,r=e.match(Ei);r&&(n=r.length,e=e.replace(Ei,Vi),t.push(...r.map(Q.parse)));let i=e.match(Ti);return i&&(e=e.replace(Ti,Hi),t.push(...i.map(ki.parse))),{values:t,numColors:n,tokenised:e}}function Gi(e){return Wi(e).values}function Ki(e){let{values:t,numColors:n,tokenised:r}=Wi(e),i=t.length;return e=>{let t=r;for(let r=0;rtypeof e==`number`?0:e;function Ji(e){let t=Gi(e);return Ki(e)(t.map(qi))}var Yi={test:Ui,parse:Gi,createTransformer:Ki,getAnimatableNone:Ji},Xi=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Zi(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Ti)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Xi.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Qi=/([a-z-]*)\(.*?\)/g,$i=Object.assign(Object.assign({},Yi),{getAnimatableNone:e=>{let t=e.match(Qi);return t?t.map(Zi).join(` `):e}});function ea(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ta({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=ea(s,r,e+1/3),a=ea(s,r,e),o=ea(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}var na=(e,t,n)=>{let r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},ra=[Bi,Z,X],ia=e=>ra.find(t=>t.test(e)),aa=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,oa=(e,t)=>{let n=ia(e),r=ia(t);aa(e),aa(t);let i=n.parse(e),a=r.parse(t);n===X&&(i=ta(i),n=Z),r===X&&(a=ta(a),r=Z);let o=Object.assign({},i);return e=>{for(let t in o)t!==`alpha`&&(o[t]=na(i[t],a[t],e));return o.alpha=Si(i.alpha,a.alpha,e),n.transform(o)}},sa=e=>typeof e==`number`,ca=(e,t)=>n=>t(e(n)),la=(...e)=>e.reduce(ca);function ua(e,t){return sa(e)?n=>Si(e,t,n):Q.test(e)?oa(e,t):ma(e,t)}var da=(e,t)=>{let n=[...e],r=n.length,i=e.map((e,n)=>ua(e,t[n]));return e=>{for(let t=0;t{let n=Object.assign(Object.assign({},e),t),r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=ua(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}};function pa(e){let t=Yi.parse(e),n=t.length,r=0,i=0,a=0;for(let e=0;e{let n=Yi.createTransformer(t),r=pa(e),i=pa(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?la(da(r.parsed,i.parsed),n):(`${e}${t}`,n=>`${n>0?t:e}`)},ha=(e,t)=>n=>Si(e,t,n);function ga(e){if(typeof e==`number`)return ha;if(typeof e==`string`)return Q.test(e)?oa:ma;if(Array.isArray(e))return da;if(typeof e==`object`)return fa}function _a(e,t,n){let r=[],i=n||ga(e[0]),a=e.length-1;for(let n=0;nn(xi(e,t,r))}function ya(e,t){let n=e.length,r=n-1;return i=>{let a=0,o=!1;if(i<=e[0]?o=!0:i>=e[r]&&(a=r-1,o=!0),!o){let t=1;for(;ti||t===r);t++);a=t-1}let s=xi(e[a],e[a+1],i);return t[a](s)}}function ba(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;t.length,!r||!Array.isArray(r)||(r.length,a-1),e[0]>e[a-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());let o=_a(t,r,i),s=a===2?va(e,o):ya(e,o);return n?t=>s(si(e[0],e[a-1],t)):s}var xa=e=>t=>1-e(1-t),Sa=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ca=e=>t=>t**+e,wa=e=>t=>t*t*((e+1)*t-e),Ta=e=>{let t=wa(e);return e=>(e*=2)<1?.5*t(e):.5*(2-2**(-10*(e-1)))},Ea=1.525,Da=4/11,Oa=8/11,ka=9/10,Aa=e=>e,ja=Ca(2),Ma=xa(ja),Na=Sa(ja),Pa=e=>1-Math.sin(Math.acos(e)),Fa=xa(Pa),Ia=Sa(Fa),La=wa(Ea),Ra=xa(La),za=Sa(La),Ba=Ta(Ea),Va=4356/361,Ha=35442/1805,Ua=16061/1805,Wa=e=>{if(e===1||e===0)return e;let t=e*e;return ee<.5?.5*(1-Wa(1-e*2)):.5*Wa(e*2-1)+.5;function qa(e,t){return e.map(()=>t||Na).splice(0,e.length-1)}function Ja(e){let t=e.length;return e.map((e,n)=>n===0?0:n/(t-1))}function Ya(e,t){return e.map(e=>e*t)}function Xa({from:e=0,to:t=1,ease:n,offset:r,duration:i=300}){let a={done:!1,value:e},o=Array.isArray(t)?t:[e,t],s=Ya(r&&r.length===o.length?r:Ja(o),i);function c(){return ba(s,o,{ease:Array.isArray(n)?n:qa(o,n)})}let l=c();return{next:e=>(a.value=l(e),a.done=e>=i,a),flipTarget:()=>{o.reverse(),l=c()}}}function Za({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:a}){let o={done:!1,value:t},s=n*e,c=t+s,l=a===void 0?c:a(c);return l!==c&&(s=l-t),{next:e=>{let t=-s*Math.exp(-e/r);return o.done=!(t>i||t<-i),o.value=o.done?l:l+t,o},flipTarget:()=>{}}}var Qa={keyframes:Xa,spring:yi,decay:Za};function $a(e){if(Array.isArray(e.to))return Xa;if(Qa[e.type])return Qa[e.type];let t=new Set(Object.keys(e));return t.has(`ease`)||t.has(`duration`)&&!t.has(`dampingRatio`)?Xa:t.has(`dampingRatio`)||t.has(`stiffness`)||t.has(`mass`)||t.has(`damping`)||t.has(`restSpeed`)||t.has(`restDelta`)?yi:Xa}function eo(e,t,n=0){return e-t-n}function to(e,t,n=0,r=!0){return r?eo(t+-e,t,n):t-(e-t)+n}function no(e,t,n,r){return r?e>=t+n:e<=-n}var ro=e=>{let t=({delta:t})=>e(t);return{start:()=>ei.update(t,!0),stop:()=>ti.update(t)}};function io(e){var t,{from:n,autoplay:r=!0,driver:i=ro,elapsed:a=0,repeat:o=0,repeatType:s=`loop`,repeatDelay:c=0,onPlay:l,onStop:u,onComplete:d,onRepeat:f,onUpdate:p}=e,m=oi(e,[`from`,`autoplay`,`driver`,`elapsed`,`repeat`,`repeatType`,`repeatDelay`,`onPlay`,`onStop`,`onComplete`,`onRepeat`,`onUpdate`]);let{to:h}=m,g,_=0,v=m.duration,y,b=!1,x=!0,S,C=$a(m);(t=C).needsInterpolation?.call(t,n,h)&&(S=ba([0,100],[n,h],{clamp:!1}),n=0,h=100);let w=C(Object.assign(Object.assign({},m),{from:n,to:h}));function T(){_++,s===`reverse`?(x=_%2==0,a=to(a,v,c,x)):(a=eo(a,v,c),s===`mirror`&&w.flipTarget()),b=!1,f&&f()}function E(){g.stop(),d&&d()}function D(e){if(x||(e=-e),a+=e,!b){let e=w.next(Math.max(0,a));y=e.value,S&&(y=S(y)),b=x?e.done:a<=0}p?.(y),b&&(_===0&&(v??=a),_{u?.(),g.stop()}}}function ao(e,t){return t?1e3/t*e:0}function oo({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:a=750,bounceStiffness:o=500,bounceDamping:s=10,restDelta:c=1,modifyTarget:l,driver:u,onUpdate:d,onComplete:f,onStop:p}){let m;function h(e){return n!==void 0&&er}function g(e){return n===void 0?r:r===void 0||Math.abs(n-e){var n;d?.(t),(n=e.onUpdate)==null||n.call(e,t)},onComplete:f,onStop:p}))}function v(e){_(Object.assign({type:`spring`,stiffness:o,damping:s,restDelta:c},e))}if(h(e))v({from:e,velocity:t,to:g(e)});else{let r=i*t+e;l!==void 0&&(r=l(r));let o=g(r),s=o===n?-1:1,u,d;_({type:`decay`,from:e,velocity:t,timeConstant:a,power:i,restDelta:c,modifyTarget:l,onUpdate:h(r)?e=>{u=d,d=e,t=ao(e-u,ai().delta),(s===1&&e>o||s===-1&&em?.stop()}}var so=(e,t)=>1-3*t+3*e,co=(e,t)=>3*t-6*e,lo=e=>3*e,uo=(e,t,n)=>((so(t,n)*e+co(t,n))*e+lo(t))*e,fo=(e,t,n)=>3*so(t,n)*e*e+2*co(t,n)*e+lo(t),po=1e-7,mo=10;function ho(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=uo(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>po&&++s=_o?vo(t,s,e,n):c===0?s:ho(t,r,r+bo,e,n)}return e=>e===0||e===1?e:uo(a(e),t,r)}var So={},Co=class{subscriptions=new Set;add(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}notify(e,t,n){if(this.subscriptions.size)for(let r of this.subscriptions)r(e,t,n)}clear(){this.subscriptions.clear()}};function wo(e){return!Number.isNaN(Number.parseFloat(e))}var To=class{current;prev;timeDelta=0;lastUpdated=0;updateSubscribers=new Co;stopAnimation;canTrackVelocity=!1;constructor(e){this.prev=this.current=e,this.canTrackVelocity=wo(this.current)}onChange(e){return this.updateSubscribers.add(e)}clearListeners(){this.updateSubscribers.clear()}set(e){this.updateAndNotify(e)}updateAndNotify=e=>{this.prev=this.current,this.current=e;let{delta:t,timestamp:n}=ai();this.lastUpdated!==n&&(this.timeDelta=t,this.lastUpdated=n),ei.postRender(this.scheduleVelocityCheck),this.updateSubscribers.notify(this.current)};get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?ao(Number.parseFloat(this.current)-Number.parseFloat(this.prev),this.timeDelta):0}scheduleVelocityCheck=()=>ei.postRender(this.velocityCheck);velocityCheck=({timestamp:e})=>{this.canTrackVelocity||=wo(this.current),e!==this.lastUpdated&&(this.prev=this.current)};start(e){return this.stop(),new Promise(t=>{let{stop:n}=e(t);this.stopAnimation=n}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.stop()}};function Eo(e){return new To(e)}var{isArray:Do}=Array;function Oo(){let e=y({}),t=t=>{let n=t=>{e.value[t]&&(e.value[t].stop(),e.value[t].destroy(),delete e.value[t])};t?Do(t)?t.forEach(n):n(t):Object.keys(e.value).forEach(n)};return Ir(t),{motionValues:e,get:(t,n,r)=>{if(e.value[t])return e.value[t];let i=Eo(n);return i.onChange(e=>r[t]=e),e.value[t]=i,i},stop:t}}function ko(e){return Array.isArray(e)}function $(){return{type:`spring`,stiffness:500,damping:25,restDelta:.5,restSpeed:10}}function Ao(e){return{type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}}function jo(e){return{type:`spring`,stiffness:550,damping:e===0?100:30,restDelta:.01,restSpeed:10}}function Mo(){return{type:`keyframes`,ease:`linear`,duration:300}}function No(e){return{type:`keyframes`,duration:800,values:e}}var Po={default:jo,x:$,y:$,z:$,rotate:$,rotateX:$,rotateY:$,rotateZ:$,scaleX:Ao,scaleY:Ao,scale:Ao,backgroundColor:Mo,color:Mo,opacity:Mo};function Fo(e,t){let n;return n=ko(t)?No:Po[e]||Po.default,{to:t,...n(t)}}var Io={...ki,transform:Math.round},Lo={color:Q,backgroundColor:Q,outlineColor:Q,fill:Q,stroke:Q,borderColor:Q,borderTopColor:Q,borderRightColor:Q,borderBottomColor:Q,borderLeftColor:Q,borderWidth:Y,borderTopWidth:Y,borderRightWidth:Y,borderBottomWidth:Y,borderLeftWidth:Y,borderRadius:Y,radius:Y,borderTopLeftRadius:Y,borderTopRightRadius:Y,borderBottomRightRadius:Y,borderBottomLeftRadius:Y,width:Y,maxWidth:Y,height:Y,maxHeight:Y,size:Y,top:Y,right:Y,bottom:Y,left:Y,padding:Y,paddingTop:Y,paddingRight:Y,paddingBottom:Y,paddingLeft:Y,margin:Y,marginTop:Y,marginRight:Y,marginBottom:Y,marginLeft:Y,rotate:J,rotateX:J,rotateY:J,rotateZ:J,scale:ji,scaleX:ji,scaleY:ji,scaleZ:ji,skew:J,skewX:J,skewY:J,distance:Y,translateX:Y,translateY:Y,translateZ:Y,x:Y,y:Y,z:Y,perspective:Y,transformPerspective:Y,opacity:Ai,originX:Pi,originY:Pi,originZ:Y,zIndex:Io,filter:$i,WebkitFilter:$i,fillOpacity:Ai,strokeOpacity:Ai,numOctaves:Io},Ro=e=>Lo[e];function zo(e,t){return t&&typeof e==`number`&&t.transform?t.transform(e):e}function Bo(e,t){let n=Ro(e);return n!==$i&&(n=Yi),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var Vo={linear:Aa,easeIn:ja,easeInOut:Na,easeOut:Ma,circIn:Pa,circInOut:Ia,circOut:Fa,backIn:La,backInOut:za,backOut:Ra,anticipate:Ba,bounceIn:Ga,bounceInOut:Ka,bounceOut:Wa};function Ho(e){if(Array.isArray(e)){let[t,n,r,i]=e;return xo(t,n,r,i)}return typeof e==`string`?Vo[e]:e}function Uo(e){return Array.isArray(e)&&typeof e[0]!=`number`}function Wo(e,t){return e!==`zIndex`&&!!(typeof t==`number`||Array.isArray(t)||typeof t==`string`&&Yi.test(t)&&!t.startsWith(`url(`))}function Go(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=[...e.to],e.to[0]=e.from),e}function Ko({ease:e,times:t,delay:n,...r}){let i={...r};return t&&(i.offset=t),e&&(i.ease=Uo(e)?e.map(Ho):Ho(e)),n&&(i.elapsed=-n),i}function qo(e,t,n){return Array.isArray(t.to)&&(e.duration||(e.duration=800)),Go(t),Jo(e)||(e={...e,...Fo(n,t.to)}),{...t,...Ko(e)}}function Jo({delay:e,repeat:t,repeatType:n,repeatDelay:r,from:i,...a}){return!!Object.keys(a).length}function Yo(e,t){return e[t]||e.default||e}function Xo(e,t,n,r,i){let a=Yo(r,e),o=a.from===null||a.from===void 0?t.get():a.from,s=Wo(e,n);o===`none`&&s&&typeof n==`string`&&(o=Bo(e,n));let c=Wo(e,o);function l(s){let c={from:o,to:n,velocity:r.velocity?r.velocity:t.getVelocity(),onUpdate:e=>t.set(e)};return a.type===`inertia`||a.type===`decay`?oo({...c,...a}):io({...qo(a,c,e),onUpdate:e=>{c.onUpdate(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{i&&i(),s&&s()}})}function u(e){return t.set(n),i&&i(),e&&e(),{stop:()=>{}}}return!c||!s||a.type===!1?u:l}function Zo(){let{motionValues:e,stop:t,get:n}=Oo();return{motionValues:e,stop:t,push:(e,t,r,i={},a)=>{let o=r[e],s=n(e,o,r);if(i&&i.immediate){s.set(t);return}let c=Xo(e,s,t,i,a);s.start(c)}}}function Qo(e,t={},{motionValues:n,push:r,stop:i}=Zo()){let a=l(t),o=y(!1);c(n,e=>{o.value=Object.values(e).filter(e=>e.isAnimating()).length>0},{immediate:!0,deep:!0});let s=e=>{if(!a||!a[e])throw Error(`The variant ${e} does not exist.`);return a[e]},u=t=>{typeof t==`string`&&(t=s(t));let n=Object.entries(t).map(([n,i])=>{if(n!==`transition`)return new Promise(a=>r(n,i,e,t.transition||Fo(n,t[n]),a))}).filter(Boolean);async function i(){await Promise.all(n),t.transition?.onComplete?.()}return Promise.all([i()])};return{isAnimating:o,apply:u,set:t=>{let n=Mr(t)?t:s(t);Object.entries(n).forEach(([t,n])=>{t!==`transition`&&r(t,n,e,{immediate:!0})})},leave:async e=>{let t;if(a&&(a.leave&&(t=a.leave),!a.leave&&a.initial&&(t=a.initial)),!t){e();return}await u(t),e()},stop:i}}var $o=typeof window<`u`,es=()=>$o&&(window.onpointerdown===null||void 0),ts=()=>$o&&(window.ontouchstart===null||void 0),ns=()=>$o&&(window.onmousedown===null||void 0);function rs({target:e,state:t,variants:n,apply:r}){let i=l(n),a=y(!1),o=y(!1),s=y(!1),u=m(()=>{let e=[...Object.keys(t.value||{})];return i?(i.hovered&&(e=[...e,...Object.keys(i.hovered)]),i.tapped&&(e=[...e,...Object.keys(i.tapped)]),i.focused&&(e=[...e,...Object.keys(i.focused)]),e):e}),d=m(()=>{let e={};Object.assign(e,t.value),a.value&&i.hovered&&Object.assign(e,i.hovered),o.value&&i.tapped&&Object.assign(e,i.tapped),s.value&&i.focused&&Object.assign(e,i.focused);for(let t in e)u.value.includes(t)||delete e[t];return e});i.hovered&&(q(e,`mouseenter`,()=>a.value=!0),q(e,`mouseleave`,()=>{a.value=!1,o.value=!1})),i.tapped&&(ns()&&(q(e,`mousedown`,()=>o.value=!0),q(e,`mouseup`,()=>o.value=!1)),es()&&(q(e,`pointerdown`,()=>o.value=!0),q(e,`pointerup`,()=>o.value=!1)),ts()&&(q(e,`touchstart`,()=>o.value=!0),q(e,`touchend`,()=>o.value=!1))),i.focused&&(q(e,`focus`,()=>s.value=!0),q(e,`blur`,()=>s.value=!1)),c([a,o,s],()=>{r(d.value)})}function is({set:e,target:t,variants:n,variant:r}){let i=l(n);c(()=>t,()=>{i&&(i.initial&&(e(`initial`),r.value=`initial`),i.enter&&(r.value=`enter`))},{immediate:!0,flush:`pre`})}function as({state:e,apply:t}){c(e,e=>{e&&t(e)},{immediate:!0})}function os({target:e,variants:t,variant:n}){let r=l(t);r&&(r.visible||r.visibleOnce)&&Hr(e,([{isIntersecting:e}])=>{r.visible?n.value=e?`visible`:`initial`:r.visibleOnce&&(e&&n.value!==`visibleOnce`?n.value=`visibleOnce`:n.value||=`initial`)})}function ss(e,t={syncVariants:!0,lifeCycleHooks:!0,visibilityHooks:!0,eventListeners:!0}){t.lifeCycleHooks&&is(e),t.syncVariants&&as(e),t.visibilityHooks&&os(e),t.eventListeners&&rs(e)}function cs(e={}){let t=E({...e}),n=y({});return c(t,()=>{let e={};for(let[n,r]of Object.entries(t))e[n]=zo(r,Ro(n));n.value=e},{immediate:!0,deep:!0}),{state:t,style:n}}function ls(e,t){c(()=>zr(e),e=>{e&&t(e)},{immediate:!0})}var us={x:`translateX`,y:`translateY`,z:`translateZ`};function ds(e={},t=!0){let n=E({...e}),r=y(``);return c(n,e=>{let n=``,i=!1;if(t&&(e.x||e.y||e.z)){let t=[e.x||0,e.y||0,e.z||0].map(e=>zo(e,Y)).join(`,`);n+=`translate3d(${t}) `,i=!0}for(let[r,i]of Object.entries(e)){if(t&&(r===`x`||r===`y`||r===`z`))continue;let e=zo(i,Ro(r));n+=`${us[r]||r}(${e}) `}t&&!i&&(n+=`translateZ(0px) `),r.value=n.trim()},{immediate:!0,deep:!0}),{state:n,transform:r}}var fs=[``,`X`,`Y`,`Z`],ps=[`perspective`,`translate`,`scale`,`rotate`,`skew`],ms=[`transformPerspective`,`x`,`y`,`z`];ps.forEach(e=>{fs.forEach(t=>{let n=e+t;ms.push(n)})});var hs=new Set(ms);function gs(e){return hs.has(e)}var _s=new Set([`originX`,`originY`,`originZ`]);function vs(e){return _s.has(e)}function ys(e){let t={},n={};return Object.entries(e).forEach(([e,r])=>{gs(e)||vs(e)?t[e]=r:n[e]=r}),{transform:t,style:n}}function bs(e){let{transform:t,style:n}=ys(e),{transform:r}=ds(t),{style:i}=cs(n);return r.value&&(i.value.transform=r.value),i.value}function xs(e,t){let n,r,{state:i,style:a}=cs();return ls(e,e=>{r=e;for(let t of Object.keys(Lo))e.style[t]===null||e.style[t]===``||gs(t)||vs(t)||(i[t]=e.style[t]);n&&Object.entries(n).forEach(([t,n])=>e.style[t]=n),t&&t(i)}),c(a,e=>{if(!r){n=e;return}for(let t in e)r.style[t]=e[t]},{immediate:!0}),{style:i}}function Ss(e){let t=e.trim().split(/\) |\)/);if(t.length===1)return{};let n=e=>e.endsWith(`px`)||e.endsWith(`deg`)?Number.parseFloat(e):Number.isNaN(Number(e))?Number(e):e;return t.reduce((e,t)=>{if(!t)return e;let[r,i]=t.split(`(`),a=i.split(`,`).map(e=>n(e.endsWith(`)`)?e.replace(`)`,``):e.trim())),o=a.length===1?a[0]:a;return{...e,[r]:o}},{})}function Cs(e,t){Object.entries(Ss(t)).forEach(([t,n])=>{let r=[`x`,`y`,`z`];if(t===`translate3d`){if(n===0){r.forEach(t=>e[t]=0);return}n.forEach((t,n)=>e[r[n]]=t);return}if(n=Number.parseFloat(`${n}`),t===`translateX`){e.x=n;return}if(t===`translateY`){e.y=n;return}if(t===`translateZ`){e.z=n;return}e[t]=n})}function ws(e,t){let n,r,{state:i,transform:a}=ds();return ls(e,e=>{r=e,e.style.transform&&Cs(i,e.style.transform),n&&(e.style.transform=n),t&&t(i)}),c(a,e=>{if(!r){n=e;return}r.style.transform=e},{immediate:!0}),{transform:i}}function Ts(e){return Object.entries(e)}function Es(e,t){let n=E({}),r=e=>Object.entries(e).forEach(([e,t])=>n[e]=t),{style:i}=xs(e,r),{transform:a}=ws(e,r);return c(n,e=>{Ts(e).forEach(([e,t])=>{let n=gs(e)?a:i;n[e]&&n[e]===t||(n[e]=t)})},{immediate:!0,deep:!0}),ls(e,()=>t&&r(t)),{motionProperties:n,style:i,transform:a}}function Ds(e={}){let t=l(e),n=y();return{state:m(()=>{if(n.value)return t[n.value]}),variant:n}}function Os(e,t={},n){let{motionProperties:r}=Es(e),{variant:i,state:a}=Ds(t),o={target:e,variant:i,variants:t,state:a,motionProperties:r,...Qo(r,t)};return ss(o,n),o}var ks=[`delay`,`duration`],As=[`initial`,`enter`,`leave`,`visible`,`visible-once`,`visibleOnce`,`hovered`,`tapped`,`focused`,...ks];function js(e){return ks.includes(e)}function Ms(e,t){let n=e.props?e.props:e.data&&e.data.attrs?e.data.attrs:{};if(n){n.variants&&Mr(n.variants)&&(t.value={...t.value,...n.variants});for(let e of As)if(!(!n||!n[e])){if(js(e)&&typeof n[e]==`number`){for(let r of[`enter`,`visible`,`visibleOnce`]){let i=t.value[r];i!=null&&(i.transition??={},i.transition[e]=n[e])}continue}if(Mr(n[e])){let r=n[e];e===`visible-once`&&(e=`visibleOnce`),t.value[e]=r}}}}function Ns(e,t=!1){return{created:(n,r,i)=>{let a=r.value&&typeof r.value==`string`?r.value:i.key;a&&So[a]&&So[a].stop();let o=t?structuredClone(w(e)||{}):e||{},s=y(o);typeof r.value==`object`&&(s.value=r.value),Ms(i,s);let c=Os(n,s,{eventListeners:!0,lifeCycleHooks:!0,syncVariants:!0,visibilityHooks:!1});n.motionInstance=c,a&&(So[a]=c)},mounted:(e,t,n)=>{e.motionInstance&&os(e.motionInstance)},getSSRProps(t,n){let{initial:r}=t.value||n&&n?.props||{};r=l(r);let i=Dr({},e?.initial||{},r||{});if(!(!i||Object.keys(i).length===0))return{style:bs(i)}}}}var Ps={__proto__:null,fade:{initial:{opacity:0},enter:{opacity:1}},fadeVisible:{initial:{opacity:0},visible:{opacity:1}},fadeVisibleOnce:{initial:{opacity:0},visibleOnce:{opacity:1}},pop:{initial:{scale:0,opacity:0},enter:{scale:1,opacity:1}},popVisible:{initial:{scale:0,opacity:0},visible:{scale:1,opacity:1}},popVisibleOnce:{initial:{scale:0,opacity:0},visibleOnce:{scale:1,opacity:1}},rollBottom:{initial:{y:100,rotate:90,opacity:0},enter:{y:0,rotate:0,opacity:1}},rollLeft:{initial:{x:-100,rotate:90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rollRight:{initial:{x:100,rotate:-90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rollTop:{initial:{y:-100,rotate:-90,opacity:0},enter:{y:0,rotate:0,opacity:1}},rollVisibleBottom:{initial:{y:100,rotate:90,opacity:0},visible:{y:0,rotate:0,opacity:1}},rollVisibleLeft:{initial:{x:-100,rotate:90,opacity:0},visible:{x:0,rotate:0,opacity:1}},rollVisibleOnceBottom:{initial:{y:100,rotate:90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},rollVisibleOnceLeft:{initial:{x:-100,rotate:90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rollVisibleOnceRight:{initial:{x:100,rotate:-90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rollVisibleOnceTop:{initial:{y:-100,rotate:-90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},rollVisibleRight:{initial:{x:100,rotate:-90,opacity:0},visible:{x:0,rotate:0,opacity:1}},rollVisibleTop:{initial:{y:-100,rotate:-90,opacity:0},visible:{y:0,rotate:0,opacity:1}},slideBottom:{initial:{y:100,opacity:0},enter:{y:0,opacity:1}},slideLeft:{initial:{x:-100,opacity:0},enter:{x:0,opacity:1}},slideRight:{initial:{x:100,opacity:0},enter:{x:0,opacity:1}},slideTop:{initial:{y:-100,opacity:0},enter:{y:0,opacity:1}},slideVisibleBottom:{initial:{y:100,opacity:0},visible:{y:0,opacity:1}},slideVisibleLeft:{initial:{x:-100,opacity:0},visible:{x:0,opacity:1}},slideVisibleOnceBottom:{initial:{y:100,opacity:0},visibleOnce:{y:0,opacity:1}},slideVisibleOnceLeft:{initial:{x:-100,opacity:0},visibleOnce:{x:0,opacity:1}},slideVisibleOnceRight:{initial:{x:100,opacity:0},visibleOnce:{x:0,opacity:1}},slideVisibleOnceTop:{initial:{y:-100,opacity:0},visibleOnce:{y:0,opacity:1}},slideVisibleRight:{initial:{x:100,opacity:0},visible:{x:0,opacity:1}},slideVisibleTop:{initial:{y:-100,opacity:0},visible:{y:0,opacity:1}}},Fs=Symbol(``),Is={preset:{type:String,required:!1},instance:{type:Object,required:!1},variants:{type:Object,required:!1},initial:{type:Object,required:!1},enter:{type:Object,required:!1},leave:{type:Object,required:!1},visible:{type:Object,required:!1},visibleOnce:{type:Object,required:!1},hovered:{type:Object,required:!1},tapped:{type:Object,required:!1},focused:{type:Object,required:!1},delay:{type:[Number,String],required:!1},duration:{type:[Number,String],required:!1}};function Ls(e){return Object.prototype.toString.call(e)===`[object Object]`}function Rs(e){if(Array.isArray(e))return e.map(Rs);if(Ls(e)){let t={};for(let n in e)t[n]=Rs(e[n]);return t}return e}function zs(e){let t=E({}),n=v(Fs,{}),r=m(()=>e.preset==null?{}:n!=null&&e.preset in n?structuredClone(w(n)[e.preset]):e.preset in Ps?structuredClone(Ps[e.preset]):{}),i=m(()=>({initial:e.initial,enter:e.enter,leave:e.leave,visible:e.visible,visibleOnce:e.visibleOnce,hovered:e.hovered,tapped:e.tapped,focused:e.focused}));function a(e,t){for(let n of[`delay`,`duration`]){if(t[n]==null)continue;let r=Number.parseInt(t[n]);for(let t of[`enter`,`visible`,`visibleOnce`]){let i=e[t];i!=null&&(i.transition??={},i.transition[n]=r)}}return e}let o=m(()=>a({...Dr({},i.value,r.value,e.variants||{})},e));function s(e,n,r){e.props??={},e.props.style??={},e.props.style={...e.props.style,...r};let i=a(Rs(o.value),e.props);return e.props.onVnodeMounted=({el:e})=>{t[n]=Os(e,i)},e.props.onVnodeUpdated=({el:e})=>{let r=bs(t[n].state);for(let[t,n]of Object.entries(r))e.style[t]=n},e}return{motionConfig:o,setNodeInstance:s}}k({name:`Motion`,props:{...Is,is:{type:[String,Object],default:`div`}},setup(e){let n=T(),{motionConfig:r,setNodeInstance:i}=zs(e);return()=>{let a=bs(r.value.initial||{}),o=t(e.is,void 0,n);return i(o,0,a),o}}}),k({name:`MotionGroup`,props:{...Is,is:{type:[String,Object],required:!1}},setup(e){let n=T(),{motionConfig:r,setNodeInstance:i}=zs(e);return()=>{let a=bs(r.value.initial||{}),o=n.default?.()||[];for(let e=0;ee.every(e=>h(e)))}var Vs=Bs;function Hs(e){return m(()=>!h(e))}var Us=Hs;function Ws(...e){return m(()=>e.some(e=>h(e)))}var Gs=Ws;export{Jt as A,de as B,br as C,hn as D,Cr as E,bn as F,yn as I,Sn as L,fn as M,Yt as N,wn as O,en as P,Kt as R,yr as S,Sr as T,ue as V,pr as _,Vn as a,gr as b,Rn as c,ar as d,sr as f,dr as g,ur as h,Ns as i,z as j,En as k,Hn as l,W as m,Us as n,Mn as o,cr as p,Gs as r,Ln as s,Vs as t,Wn as u,K as v,xr as w,Zn as x,hr as y,mt as z}; \ No newline at end of file diff --git a/lecture-06/class/assets/overview-BIQ10iVu.css b/lecture-06/class/assets/overview-BIQ10iVu.css new file mode 100644 index 0000000000000000000000000000000000000000..5ac480cef2330ef92e6970e4ce48338b846b6bd0 --- /dev/null +++ b/lecture-06/class/assets/overview-BIQ10iVu.css @@ -0,0 +1 @@ +.overview-slide-block:hover .overview-slide-action[data-v-47f32601]{opacity:.6}.overview-slide-action[data-v-47f32601]:hover{opacity:.8} diff --git a/lecture-06/class/assets/play-D_7yfuao.css b/lecture-06/class/assets/play-D_7yfuao.css new file mode 100644 index 0000000000000000000000000000000000000000..397d386dd314e2c98360c571f82fe57cf792b617 --- /dev/null +++ b/lecture-06/class/assets/play-D_7yfuao.css @@ -0,0 +1 @@ +.slidev-info-dialog{max-width:37.5rem;padding:1rem!important} diff --git a/lecture-06/class/assets/presenter-J5ibmAMh.css b/lecture-06/class/assets/presenter-J5ibmAMh.css new file mode 100644 index 0000000000000000000000000000000000000000..894310ab10e45ab878c88c883d0863829e21b29e --- /dev/null +++ b/lecture-06/class/assets/presenter-J5ibmAMh.css @@ -0,0 +1 @@ +.slidev-presenter[data-v-e7a794bf]{--slidev-controls-foreground:current}.grid-container[data-v-e7a794bf]{--slidev-presenter-notes-width:360px;--slidev-presenter-notes-row-size:280px;background-color:#9ca3af33;flex:1;gap:1px;display:grid;position:relative;overflow:hidden}.grid-container.layout1[data-v-e7a794bf]{grid-template-columns:var(--slidev-presenter-notes-width) minmax(0, 1fr);grid-template-rows:minmax(0, 2fr) minmax(0, var(--slidev-presenter-notes-row-size)) min-content;grid-template-areas:"main main""note next""bottom bottom"}.grid-container.layout2[data-v-e7a794bf]{grid-template-columns:var(--slidev-presenter-notes-width) minmax(0, 1fr);grid-template-rows:minmax(0, var(--slidev-presenter-notes-row-size)) minmax(0, 1fr) min-content;grid-template-areas:"note main""note next""bottom bottom"}@media (aspect-ratio<=3/5){.grid-container.layout1[data-v-e7a794bf]{grid-template:"main"2fr"note"1fr"next"1fr"bottom"min-content/1fr}}@media (aspect-ratio>=1){.grid-container.layout1[data-v-e7a794bf]{grid-template-columns:minmax(0, 1fr) minmax(0, 1.1fr) var(--slidev-presenter-notes-width);grid-template-rows:minmax(0, 1fr) minmax(0, var(--slidev-presenter-notes-row-size)) min-content;grid-template-areas:"main main next""main main note""bottom bottom bottom"}}.grid-container.layout3[data-v-e7a794bf]{grid-template-columns:var(--slidev-presenter-notes-width) minmax(0, 1fr);grid-template-rows:minmax(0, var(--slidev-presenter-notes-row-size)) minmax(0, 1fr) min-content;grid-template-areas:"note next""main next""bottom bottom"}.grid-section[data-v-e7a794bf]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.dark .grid-section[data-v-e7a794bf]{--un-bg-opacity:1;background-color:rgb(18 18 18/var(--un-bg-opacity))}.grid-section.top[data-v-e7a794bf]{grid-area:top}.grid-section.main[data-v-e7a794bf]{grid-area:main}.grid-section.next[data-v-e7a794bf]{grid-area:next}.grid-section.note[data-v-e7a794bf]{grid-area:note}.grid-section.bottom[data-v-e7a794bf]{grid-area:bottom}.notes-resizer[data-v-e7a794bf]{cursor:col-resize;z-index:10;touch-action:none;width:12px;height:100%;position:absolute;top:0}.notes-resizer[data-v-e7a794bf]:before{content:"";opacity:.2;background-color:currentColor;width:1px;height:100%;position:absolute;top:0;left:50%;transform:translate(-50%)}.notes-row-resizer[data-v-e7a794bf]{cursor:row-resize;z-index:10;touch-action:none;width:100%;height:12px;position:absolute;left:0}.notes-row-resizer[data-v-e7a794bf]:before{content:"";opacity:.2;background-color:currentColor;width:100%;height:1px;position:absolute;top:50%;left:0;transform:translateY(-50%)}.notes-vertical-resizer[data-v-e7a794bf]{right:var(--slidev-presenter-notes-width);top:0;bottom:var(--slidev-presenter-bottom-height,0px);cursor:col-resize;z-index:10;touch-action:none;width:12px;position:absolute;transform:translate(50%)}.notes-vertical-resizer[data-v-e7a794bf]:before{content:"";width:1px;height:100%;position:absolute;top:0;left:50%;transform:translate(-50%)}.notes-vertical-resizer-left[data-v-e7a794bf]{left:var(--slidev-presenter-notes-width);top:0;bottom:var(--slidev-presenter-bottom-height,0px);cursor:col-resize;z-index:10;touch-action:none;width:12px;position:absolute;transform:translate(-50%)}.notes-vertical-resizer-left[data-v-e7a794bf]:before{content:"";width:1px;height:100%;position:absolute;top:0;left:50%;transform:translate(-50%)} diff --git a/lecture-06/class/assets/rolldown-runtime-hePW80VL.js b/lecture-06/class/assets/rolldown-runtime-hePW80VL.js new file mode 100644 index 0000000000000000000000000000000000000000..19803821aea2e74c5c1a9c81c33bbad26f2ac631 --- /dev/null +++ b/lecture-06/class/assets/rolldown-runtime-hePW80VL.js @@ -0,0 +1 @@ +var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;li[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));export{s as n,l as r,o as t}; \ No newline at end of file diff --git a/lecture-06/class/assets/section-BZ9Dfv_4.css b/lecture-06/class/assets/section-BZ9Dfv_4.css new file mode 100644 index 0000000000000000000000000000000000000000..d27ca99afbadaf5a880bb2ca13a5955a547e6164 --- /dev/null +++ b/lecture-06/class/assets/section-BZ9Dfv_4.css @@ -0,0 +1 @@ +.dl-section[data-v-833128c2]{background:var(--dl-surface);flex-direction:column;justify-content:center;padding-left:4rem;display:flex}.dl-section__index[data-v-833128c2]{font-size:var(--dl-fs-secondary);letter-spacing:.2em;color:var(--dl-accent);margin-bottom:.8rem;font-weight:700}.dl-section__body[data-v-833128c2] h1,.dl-section__body[data-v-833128c2] h2{font-size:var(--dl-fs-section);margin:0;line-height:1.1}.dl-section__body[data-v-833128c2] p{color:var(--dl-muted);max-width:46ch;margin-top:.6rem}.dl-section__rule[data-v-833128c2]{margin-top:1.4rem} diff --git a/lecture-06/class/assets/section-C2g2VRmZ.js b/lecture-06/class/assets/section-C2g2VRmZ.js new file mode 100644 index 0000000000000000000000000000000000000000..db4a563bd1e259d14f728411643a967844e4e29d --- /dev/null +++ b/lecture-06/class/assets/section-C2g2VRmZ.js @@ -0,0 +1 @@ +import{H as e,_ as t,b as n,w as r,xt as i,y as a,z as o}from"./modules/shiki-BFOesOFp.js";import{t as s}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as c}from"./slidev/context-DrkI8qiD.js";var l={class:`slidev-layout dl-section`},u={key:0,class:`dl-section__index`},d={class:`dl-section__body`},f=s(r({__name:`section`,props:{index:{}},setup(r){let{$slidev:s,$nav:f,$clicksContext:p,$clicks:m,$page:h,$renderContext:g,$frontmatter:_}=c(),v=r;return(r,s)=>(o(),n(`div`,l,[v.index?(o(),n(`div`,u,i(v.index),1)):a(`v-if`,!0),t(`div`,d,[e(r.$slots,`default`,{},void 0,!0)]),s[0]||=t(`div`,{class:`dl-rule dl-section__rule`},null,-1)]))}}),[[`__scopeId`,`data-v-833128c2`]]);export{f as t}; \ No newline at end of file diff --git a/lecture-06/class/assets/shortcuts-nRB69a7e.css b/lecture-06/class/assets/shortcuts-nRB69a7e.css new file mode 100644 index 0000000000000000000000000000000000000000..e7e39cdb869e4b320cccd3cb3ea85ebffcf1274d --- /dev/null +++ b/lecture-06/class/assets/shortcuts-nRB69a7e.css @@ -0,0 +1 @@ +.autocomplete-list[data-v-61e41ebd]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity));max-height:calc(100vh - 100px);margin-top:.25rem;overflow:auto}.dark .autocomplete-list[data-v-61e41ebd]{--un-bg-opacity:1;background-color:rgb(18 18 18/var(--un-bg-opacity))}.autocomplete[data-v-61e41ebd]{cursor:pointer}.laser-pointer[data-v-1d1438ab]{background:radial-gradient(circle,#ff5050 0%,#ff0000f2 55%,#ff00001a 100%);border-radius:9999px;width:6px;height:6px;position:absolute;transform:translate(-50%,-50%);box-shadow:0 0 10px #ff0000e6,0 0 22px #ff00008c}.slidev-self-laser-active .slidev-slide-container{cursor:none}.slider{appearance:none;opacity:.7;-webkit-transition:all .2s;background-color:#9ca3af0d;border-width:1px;border-color:#9ca3af33;border-radius:.25rem;outline:none;height:22px;transition:opacity .2s;overflow:hidden}.slider:hover{opacity:1}.slider::-webkit-slider-thumb{appearance:none;background:var(--slidev-theme-primary);cursor:pointer;z-index:10;width:5px;height:22px}.slider::-moz-range-thumb{background:var(--slidev-theme-primary);cursor:pointer;z-index:10;width:5px;height:22px}.item[data-v-aa3b28a6]{cursor:default;white-space:nowrap;border-radius:.25rem;gap:.25rem;padding:.25rem .5rem;display:flex}.item[data-v-aa3b28a6]:hover{--un-bg-opacity:.1;background-color:rgb(156 163 175/var(--un-bg-opacity))}.title[data-v-aa3b28a6]{-webkit-user-select:none;user-select:none;text-wrap:nowrap;opacity:.75;padding:.25rem .75rem;font-size:.875rem;font-weight:700;line-height:1.25rem}#slideshow[data-v-835d2635]{height:100%} diff --git a/lecture-06/class/assets/slidev/404-DJYONsN4.js b/lecture-06/class/assets/slidev/404-DJYONsN4.js new file mode 100644 index 0000000000000000000000000000000000000000..25e39b1c2f2752de56951faadc5228df18582ae5 --- /dev/null +++ b/lecture-06/class/assets/slidev/404-DJYONsN4.js @@ -0,0 +1 @@ +import{Q as e,U as t,_ as n,_t as r,b as i,g as a,v as o,w as s,x as c,xt as l,y as u,z as d}from"../modules/shiki-BFOesOFp.js";import{t as f}from"../useNav-BF8Ehznl.js";import{t as p}from"../_plugin-vue_export-helper-BDNMzG2s.js";import{V as m}from"../modules/vue-Ymwlffw_.js";var h={class:`grid justify-center text-center pt-15% gap-5`},g={class:`text-2xl`},_={class:`op-60`},v={class:`mt-3 flex flex-col gap-2 max-w-xs mx-auto w-full`},y=p(s({__name:`404`,setup(s){let p=/\d+/,{currentRoute:y}=m(),{total:b}=f(),x=a(()=>{let e=y.value.path.match(p);if(e){let t=+e[0];if(t>0&&t<=b.value)return t}return null});return(a,s)=>{let f=t(`RouterLink`);return d(),i(`div`,h,[n(`div`,null,[s[2]||=n(`h1`,{class:`text-9xl font-light`},` 404 `,-1),n(`p`,g,[s[0]||=c(` Page `,-1),n(`code`,_,l(r(y).path),1),s[1]||=c(` not found `,-1)])]),n(`div`,v,[x.value===1?u(`v-if`,!0):(d(),o(f,{key:0,to:`/`,class:`page-link`},{default:e(()=>[...s[3]||=[c(` Go Home `,-1)]]),_:1})),x.value?(d(),o(f,{key:1,to:`/${x.value}`,class:`page-link`},{default:e(()=>[c(` Go to Slide `+l(x.value),1)]),_:1},8,[`to`])):u(`v-if`,!0)])])}}}),[[`__scopeId`,`data-v-b584852f`]]);export{y as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/slidev/CodeBlockWrapper-iqMg4CiG.js b/lecture-06/class/assets/slidev/CodeBlockWrapper-iqMg4CiG.js new file mode 100644 index 0000000000000000000000000000000000000000..8051ddf9cddcc6ccefdd15c8fcb3950c234d2736 --- /dev/null +++ b/lecture-06/class/assets/slidev/CodeBlockWrapper-iqMg4CiG.js @@ -0,0 +1 @@ +import{H as e,L as t,R as n,S as r,X as i,_ as a,_t as o,b as s,bt as c,g as l,k as u,lt as d,v as f,vt as p,w as m,xt as h,y as g,z as _}from"../modules/shiki-BFOesOFp.js";import{tt as v}from"../useNav-BF8Ehznl.js";import{u as y}from"../modules/vue-Ymwlffw_.js";import{a as b,l as x,n as S}from"./context-DrkI8qiD.js";import{d as C,u as w}from"../index-BSNgeX_T.js";import{a as T,i as E}from"../modules/unplugin-icons-BIrNarL0.js";var D=m({__name:`TitleIcon`,props:{title:{}},setup(e){let t={pnpm:`i-vscode-icons:file-type-light-pnpm`,npm:`i-vscode-icons:file-type-npm`,yarn:`i-vscode-icons:file-type-yarn`,bun:`i-vscode-icons:file-type-bun`,deno:`i-vscode-icons:file-type-deno`,vue:`i-vscode-icons:file-type-vue`,svelte:`i-vscode-icons:file-type-svelte`,angular:`i-vscode-icons:file-type-angular`,react:`i-vscode-icons:file-type-reactjs`,next:`i-vscode-icons:file-type-light-next`,nuxt:`i-vscode-icons:file-type-nuxt`,solid:`logos:solidjs-icon`,astro:`i-vscode-icons:file-type-light-astro`,rollup:`i-vscode-icons:file-type-rollup`,webpack:`i-vscode-icons:file-type-webpack`,vite:`i-vscode-icons:file-type-vite`,esbuild:`i-vscode-icons:file-type-esbuild`,"package.json":`i-vscode-icons:file-type-node`,"tsconfig.json":`i-vscode-icons:file-type-tsconfig`,".npmrc":`i-vscode-icons:file-type-npm`,".editorconfig":`i-vscode-icons:file-type-editorconfig`,".eslintrc":`i-vscode-icons:file-type-eslint`,".eslintignore":`i-vscode-icons:file-type-eslint`,"eslint.config":`i-vscode-icons:file-type-eslint`,".gitignore":`i-vscode-icons:file-type-git`,".gitattributes":`i-vscode-icons:file-type-git`,".env":`i-vscode-icons:file-type-dotenv`,".env.example":`i-vscode-icons:file-type-dotenv`,".vscode":`i-vscode-icons:file-type-vscode`,"tailwind.config":`vscode-icons:file-type-tailwind`,"uno.config":`i-vscode-icons:file-type-unocss`,"unocss.config":`i-vscode-icons:file-type-unocss`,".oxlintrc":`i-vscode-icons:file-type-oxlint`,"vue.config":`i-vscode-icons:file-type-vueconfig`,".mts":`i-vscode-icons:file-type-typescript`,".cts":`i-vscode-icons:file-type-typescript`,".ts":`i-vscode-icons:file-type-typescript`,".tsx":`i-vscode-icons:file-type-typescript`,".mjs":`i-vscode-icons:file-type-js`,".cjs":`i-vscode-icons:file-type-js`,".json":`i-vscode-icons:file-type-json`,".js":`i-vscode-icons:file-type-js`,".jsx":`i-vscode-icons:file-type-js`,".md":`i-vscode-icons:file-type-markdown`,".py":`i-vscode-icons:file-type-python`,".ico":`i-vscode-icons:file-type-favicon`,".html":`i-vscode-icons:file-type-html`,".css":`i-vscode-icons:file-type-css`,".scss":`i-vscode-icons:file-type-scss`,".yml":`i-vscode-icons:file-type-light-yaml`,".yaml":`i-vscode-icons:file-type-light-yaml`,".php":`i-vscode-icons:file-type-php`,".svg":`i-vscode-icons:file-type-svg`};function n(e){let n=e.match(/~([^~]+)~/g);if(n&&n.length>0)return n[0].slice(1,-1);let r=Object.keys(t).sort((e,t)=>t.length-e.length);for(let n of r)if(e.toLowerCase().includes(n.toLowerCase()))return t[n];return``}return(t,r)=>n(e.title)?(_(),s(`div`,{key:0,class:p([`w-3.5 h-3.5 relative`,n(e.title)])},null,2)):g(`v-if`,!0)}}),O=[`data-title`],k={key:0,class:`slidev-code-block-title`},A={class:`leading-1em`},j=[`title`],M=m({__name:`CodeBlockWrapper`,props:{ranges:{type:Array,default:()=>[]},finally:{type:[String,Number],default:`last`},startLine:{type:Number,default:1},lines:{type:Boolean,default:v.lineNumbers},at:{type:[String,Number],default:`+1`},maxHeight:{type:String,default:void 0},title:{type:String,default:``}},setup(m){let M=m,{$frontmatter:N,$clicksContext:P}=S(),F=l(()=>N?.codeCopy??v.codeCopy),I=d(),L=w();n(()=>{P.unregister(L)}),i(()=>{I.value?.classList.toggle(`slidev-code-line-numbers`,M.lines)}),t(()=>{if(!P||!M.ranges?.length)return;let e=P.calculateSince(M.at,M.ranges.length-1);P.register(L,e);let t=l(()=>e?Math.max(0,P.current-e.start+1):x),n=l(()=>M.finally===`last`?M.ranges.at(-1):M.finally.toString());i(()=>{if(!I.value)return;let e=M.ranges[t.value]??n.value,r=e===`hide`;I.value.classList.toggle(b,r),r&&(e=M.ranges[t.value+1]??n.value);let i=I.value.querySelector(`.shiki`),a=Array.from(i.querySelectorAll(`code > .line`)),o=a.length;if(C(e,o,M.startLine,e=>[a[e]]),M.maxHeight){let e=Array.from(i.querySelectorAll(`.line.highlighted`));e.reduce((e,t)=>t.offsetHeight+e,0)>I.value.offsetHeight?e[0].scrollIntoView({behavior:`smooth`,block:`start`}):e.length>0&&e[Math.round((e.length-1)/2)].scrollIntoView({behavior:`smooth`,block:`center`})}})});let{copied:R,copy:z}=y();function B(){let e=I.value?.querySelector(`.slidev-code`)?.textContent;e&&z(e)}let V=u(`activeTitle`,null),H=l(()=>V===null&&M.title);return(t,n)=>{let i=E,l=T;return _(),s(`div`,{ref_key:`el`,ref:I,class:p([`slidev-code-wrapper relative group`,{"slidev-code-line-numbers":M.lines,active:o(V)===m.title}]),style:c({"max-height":M.maxHeight,"overflow-y":M.maxHeight?`scroll`:void 0,"--start":M.startLine}),"data-title":m.title},[H.value?(_(),s(`div`,k,[r(D,{title:m.title},null,8,[`title`]),a(`div`,A,h(m.title.replace(/~([^~]+)~/g,``).trim()),1)])):g(`v-if`,!0),e(t.$slots,`default`),F.value?(_(),s(`button`,{key:1,class:p([`slidev-code-copy absolute right-0 transition opacity-0 group-hover:opacity-20 hover:!opacity-100`,H.value?`top-10`:`top-0`]),title:o(R)?`Copied`:`Copy`,onClick:n[0]||=e=>B()},[o(R)?(_(),f(i,{key:0,class:`p-2 w-8 h-8`})):(_(),f(l,{key:1,class:`p-2 w-8 h-8`}))],10,j)):g(`v-if`,!0)],14,O)}}});export{M as t}; \ No newline at end of file diff --git a/lecture-06/class/assets/slidev/DrawingControls-BwcPRVjT.js b/lecture-06/class/assets/slidev/DrawingControls-BwcPRVjT.js new file mode 100644 index 0000000000000000000000000000000000000000..ff7c3451c61f09cd8a251169a91bb9bbf47489fd --- /dev/null +++ b/lecture-06/class/assets/slidev/DrawingControls-BwcPRVjT.js @@ -0,0 +1 @@ +import{n as e}from"../rolldown-runtime-hePW80VL.js";import{$ as t,H as n,Q as r,S as i,V as a,_ as o,_t as s,b as c,bt as l,l as u,lt as d,m as f,r as p,u as m,v as h,vt as g,w as _,xt as v,y,z as b}from"../modules/shiki-BFOesOFp.js";import{d as x,g as S}from"../modules/vue-Ymwlffw_.js";import{t as C}from"../useDrawings-DF8n2zfQ.js";import{t as w}from"./IconButton-B5keGFol.js";import{t as T}from"./VerticalDivider-D_ScNBWw.js";var E=_({__name:`Draggable`,props:{storageKey:{},initial:{}},setup(e){let t=e,r=d(null),i=t.initial??{x:0,y:0},a=t.storageKey?S(t.storageKey,i):d(i),{style:o}=x(r,{initialValue:a});return(e,t)=>(b(),c(`div`,{ref_key:`el`,ref:r,class:`fixed`,style:l(s(o))},[n(e.$slots,`default`)],4))}}),D={class:`flex bg-main p-2`},O={class:`inline-block w-7 text-center`},k={class:`pt-.5`},A={class:`i-carbon:pin-filled transform -rotate-45`},j={class:`i-carbon:pin`},M={class:`i-carbon:error`},N={class:`i-carbon:close-outline`},P=_({__name:`DrawingControls`,setup(e){let{brush:n,canClear:_,canRedo:x,canUndo:S,clear:P,drauu:F,drawingEnabled:I,drawingMode:L,drawingPinned:R,brushColors:z}=C(),B=d(!1);function V(e){e.preventDefault(),e.stopPropagation(),requestAnimationFrame(()=>{requestAnimationFrame(()=>{B.value=!0})})}function H(e){e.pointerType!==`mouse`&&V(e)}function U(){F.undo()}function W(){F.redo()}let G=`stylus`;function K(e){L.value=e,I.value=!0,e!==`eraseLine`&&(G=e)}function q(e){n.value.color=e,I.value=!0,L.value=G}return(e,d)=>s(I)||s(R)?(b(),h(E,{key:0,class:g([`flex flex-wrap text-xl p-2 gap-1 rounded-md bg-main shadow transition-opacity duration-200 z-nav border border-main`,!s(I)&&s(R)?`opacity-40 hover:opacity-90`:``]),"storage-key":`slidev-drawing-pos`,"initial-x":10,"initial-y":10},{default:r(()=>[i(w,{title:`Draw with stylus`,class:g({shallow:s(L)!==`stylus`}),onClick:d[0]||=e=>K(`stylus`)},{default:r(()=>[...d[14]||=[o(`div`,{class:`i-carbon:pen`},null,-1)]]),_:1},8,[`class`]),i(w,{title:`Draw a line`,class:g({shallow:s(L)!==`line`}),onClick:d[1]||=e=>K(`line`)},{default:r(()=>[...d[15]||=[o(`svg`,{width:`1em`,height:`1em`,class:`-mt-0.5`,preserveAspectRatio:`xMidYMid meet`,viewBox:`0 0 24 24`},[o(`path`,{d:`M21.71 3.29a1 1 0 0 0-1.42 0l-18 18a1 1 0 0 0 0 1.42a1 1 0 0 0 1.42 0l18-18a1 1 0 0 0 0-1.42z`,fill:`currentColor`})],-1)]]),_:1},8,[`class`]),i(w,{title:`Draw an arrow`,class:g({shallow:s(L)!==`arrow`}),onClick:d[2]||=e=>K(`arrow`)},{default:r(()=>[...d[16]||=[o(`div`,{class:`i-carbon:arrow-up-right`},null,-1)]]),_:1},8,[`class`]),i(w,{title:`Draw an ellipse`,class:g({shallow:s(L)!==`ellipse`}),onClick:d[3]||=e=>K(`ellipse`)},{default:r(()=>[...d[17]||=[o(`div`,{class:`i-carbon:radio-button`},null,-1)]]),_:1},8,[`class`]),i(w,{title:`Draw a rectangle`,class:g({shallow:s(L)!==`rectangle`}),onClick:d[4]||=e=>K(`rectangle`)},{default:r(()=>[...d[18]||=[o(`div`,{class:`i-carbon:checkbox`},null,-1)]]),_:1},8,[`class`]),i(w,{title:`Erase`,class:g({shallow:s(L)!==`eraseLine`}),onClick:d[5]||=e=>K(`eraseLine`)},{default:r(()=>[...d[19]||=[o(`div`,{class:`i-carbon:erase`},null,-1)]]),_:1},8,[`class`]),i(T),i(s(p),{shown:B.value,"onUpdate:shown":d[8]||=e=>B.value=e,triggers:[]},{popper:r(()=>[o(`div`,D,[o(`div`,O,v(s(n).size),1),o(`div`,k,[t(o(`input`,{"onUpdate:modelValue":d[6]||=e=>s(n).size=e,type:`range`,min:`1`,max:`15`,onChange:d[7]||=e=>L.value=s(G)},null,544),[[u,s(n).size]])])])]),default:r(()=>[i(w,{title:`Adjust stroke width`,class:g({shallow:s(L)===`eraseLine`}),onClick:V,onPointerdown:H,onPointerup:H,onTouchend:V},{default:r(()=>[...d[20]||=[o(`svg`,{viewBox:`0 0 32 32`,width:`1.2em`,height:`1.2em`},[o(`line`,{x1:`2`,y1:`15`,x2:`22`,y2:`4`,stroke:`currentColor`,"stroke-width":`1`,"stroke-linecap":`round`}),o(`line`,{x1:`2`,y1:`24`,x2:`28`,y2:`10`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`}),o(`line`,{x1:`7`,y1:`31`,x2:`29`,y2:`19`,stroke:`currentColor`,"stroke-width":`3`,"stroke-linecap":`round`})],-1)]]),_:1},8,[`class`])]),_:1},8,[`shown`]),(b(!0),c(f,null,a(s(z),e=>(b(),h(w,{key:e,title:`Set brush color`,class:g(s(n).color===e&&s(L)!==`eraseLine`?`active`:`shallow`),onClick:t=>q(e)},{default:r(()=>[o(`div`,{class:g([`w-6 h-6 transition-all transform border`,s(n).color===e?`rounded-md border-gray-300/50`:`rounded-1/2 scale-85 border-white`]),style:l(s(I)?{background:e}:{borderColor:e})},null,6)]),_:2},1032,[`class`,`onClick`]))),128)),i(T),i(w,{title:`Undo`,class:g({disabled:!s(S)}),onClick:d[9]||=e=>U()},{default:r(()=>[...d[21]||=[o(`div`,{class:`i-carbon:undo`},null,-1)]]),_:1},8,[`class`]),i(w,{title:`Redo`,class:g({disabled:!s(x)}),onClick:d[10]||=e=>W()},{default:r(()=>[...d[22]||=[o(`div`,{class:`i-carbon:redo`},null,-1)]]),_:1},8,[`class`]),i(w,{title:`Delete`,class:g({disabled:!s(_)}),onClick:d[11]||=e=>s(P)()},{default:r(()=>[...d[23]||=[o(`div`,{class:`i-carbon:trash-can`},null,-1)]]),_:1},8,[`class`]),i(T),i(w,{title:s(R)?`Unpin drawing`:`Pin drawing`,class:g({shallow:!s(R)}),onClick:d[12]||=e=>R.value=!s(R)},{default:r(()=>[t(o(`div`,A,null,512),[[m,s(R)]]),t(o(`div`,j,null,512),[[m,!s(R)]])]),_:1},8,[`title`,`class`]),s(I)?(b(),h(w,{key:0,title:s(R)?`Drawing pinned`:`Drawing unpinned`,class:g({shallow:!s(I)}),onClick:d[13]||=e=>I.value=!s(I)},{default:r(()=>[t(o(`div`,M,null,512),[[m,s(R)]]),t(o(`div`,N,null,512),[[m,!s(R)]])]),_:1},8,[`title`,`class`])):y(`v-if`,!0)]),_:1},8,[`class`])):y(`v-if`,!0)}}),F=e({default:()=>I}),I=P;export{F as n,I as t}; \ No newline at end of file diff --git a/lecture-06/class/assets/slidev/DrawingLayer-vJt7NoKg.js b/lecture-06/class/assets/slidev/DrawingLayer-vJt7NoKg.js new file mode 100644 index 0000000000000000000000000000000000000000..924f2de487e28f262e48fa5e9142a3f1fce0b5b1 --- /dev/null +++ b/lecture-06/class/assets/slidev/DrawingLayer-vJt7NoKg.js @@ -0,0 +1 @@ +import{F as e,L as t,Y as n,_t as r,b as i,lt as a,vt as o,w as s,z as c}from"../modules/shiki-BFOesOFp.js";import{n as l}from"./context-DrkI8qiD.js";import{t as u}from"../useDrawings-DF8n2zfQ.js";var d=s({__name:`DrawingLayer`,setup(s){let{drauu:d,drawingEnabled:f,loadCanvas:p}=u(),m=l().$scale,h=a();return t(()=>{d.mount(h.value,h.value.parentElement),n(m,e=>d.options.coordinateScale=1/e,{immediate:!0}),p()}),e(()=>{d.unmount()}),(e,t)=>(c(),i(`svg`,{ref_key:`svg`,ref:h,class:o([`w-full h-full absolute top-0`,{"pointer-events-none":!r(f),"touch-none":r(f)}])},null,2))}});export{d as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/slidev/IconButton-B5keGFol.js b/lecture-06/class/assets/slidev/IconButton-B5keGFol.js new file mode 100644 index 0000000000000000000000000000000000000000..9c22ee4dc8e63d41f87aa17ab8beaba053b8ee13 --- /dev/null +++ b/lecture-06/class/assets/slidev/IconButton-B5keGFol.js @@ -0,0 +1 @@ +import{G as e,H as t,Q as n,_ as r,g as i,v as a,vt as o,w as s,xt as c,z as l}from"../modules/shiki-BFOesOFp.js";var u={class:`sr-only`},d=s({__name:`IconButton`,props:{title:{},icon:{},as:{},to:{},disabled:{type:Boolean},active:{type:Boolean}},setup(s){let d=s,f=i(()=>d.as||(d.to?`router-link`:`button`));return(i,d)=>(l(),a(e(f.value),{class:o([`slidev-icon-btn`,{disabled:s.disabled,active:s.active}]),title:s.title,to:s.to},{default:n(()=>[r(`span`,u,c(s.title),1),t(i.$slots,`default`,{},()=>[r(`div`,{class:o(s.icon)},null,2)])]),_:3},8,[`class`,`title`,`to`]))}});export{d as t}; \ No newline at end of file diff --git a/lecture-06/class/assets/slidev/KaTexBlockWrapper-D5wJOb_T.js b/lecture-06/class/assets/slidev/KaTexBlockWrapper-D5wJOb_T.js new file mode 100644 index 0000000000000000000000000000000000000000..0cf304f70722fc94f91f5ef880d98bc3cc544ac1 --- /dev/null +++ b/lecture-06/class/assets/slidev/KaTexBlockWrapper-D5wJOb_T.js @@ -0,0 +1 @@ +import{H as e,L as t,R as n,X as r,b as i,g as a,lt as o,w as s,z as c}from"../modules/shiki-BFOesOFp.js";import{H as l}from"../useNav-BF8Ehznl.js";import{a as u,c as d,l as f,n as p}from"./context-DrkI8qiD.js";import{u as m}from"../index-BSNgeX_T.js";var h=`.mtable > [class*=col-align]`,g=`:scope > .vlist-t > .vlist-r > .vlist > span > .mord`;function _(e){let t=Array.from(e.querySelectorAll(h)).filter(e=>!e.parentElement?.closest(h)),n=[];for(let e of t)Array.from(e.querySelectorAll(g)).forEach((e,t)=>{e&&(Array.isArray(n[t])?n[t].push(e):n[t]=[e])});return n}var v=s({__name:`KaTexBlockWrapper`,props:{ranges:{type:Array,default:()=>[]},finally:{type:[String,Number],default:`last`},startLine:{type:Number,default:1},at:{type:[String,Number],default:`+1`}},setup(s){let h=s,{$clicksContext:g}=p(),v=o(),y=m();return n(()=>{g.unregister(y)}),t(()=>{if(!g||!h.ranges?.length)return;let e=g.calculateSince(h.at,h.ranges.length-1);g.register(y,e);let t=a(()=>e?Math.max(0,g.current-e.start+1):f),n=a(()=>h.finally===`last`?h.ranges.at(-1):h.finally.toString());r(()=>{if(!v.value)return;let e=h.ranges[t.value]??n.value,r=e===`hide`;v.value.classList.toggle(u,r),r&&(e=h.ranges[t.value+1]??n.value);let i=_(v.value);if(!i.length)return;let a=h.startLine,o=l(i.length+a-1,e);i.forEach((e,t)=>{let n=o.includes(t+a);e.forEach(e=>{e.classList.toggle(d,!0),e.classList.toggle(`highlighted`,n),e.classList.toggle(`dishonored`,!n)})})})}),(t,n)=>(c(),i(`div`,{ref_key:`el`,ref:v,class:`slidev-katex-wrapper`},[e(t.$slots,`default`)],512))}});export{v as t}; \ No newline at end of file diff --git a/lecture-06/class/assets/slidev/Modal-CjKJrPTu.js b/lecture-06/class/assets/slidev/Modal-CjKJrPTu.js new file mode 100644 index 0000000000000000000000000000000000000000..0329085d8d0528588f33d8898b541240c3347740 --- /dev/null +++ b/lecture-06/class/assets/slidev/Modal-CjKJrPTu.js @@ -0,0 +1 @@ +import{H as e,_ as t,_t as n,b as r,h as i,v as a,vt as o,w as s,y as c,z as l}from"../modules/shiki-BFOesOFp.js";import{C as u}from"../modules/vue-Ymwlffw_.js";var d={key:0,class:`fixed top-0 bottom-0 left-0 right-0 grid z-modal`},f=s({__name:`Modal`,props:{modelValue:{default:!1},class:{default:``}},emits:[`update:modelValue`],setup(s,{emit:f}){let p=s,m=u(p,`modelValue`,f);function h(){m.value=!1}return(s,u)=>(l(),a(i,null,[n(m)?(l(),r(`div`,d,[t(`div`,{bg:`black opacity-80`,class:`absolute top-0 bottom-0 left-0 right-0 -z-1`,onClick:u[0]||=e=>h()}),t(`div`,{class:o([`m-auto rounded-md bg-main shadow`,p.class]),"dark:border":`~ main`},[e(s.$slots,`default`)],2)])):c(`v-if`,!0)],1024))}});export{f as t}; \ No newline at end of file diff --git a/lecture-06/class/assets/slidev/NoteDisplay-BHXyxEbM.js b/lecture-06/class/assets/slidev/NoteDisplay-BHXyxEbM.js new file mode 100644 index 0000000000000000000000000000000000000000..d2a88107b2777076743a32aa4dd22f77b7ebd74f --- /dev/null +++ b/lecture-06/class/assets/slidev/NoteDisplay-BHXyxEbM.js @@ -0,0 +1 @@ +import{L as e,N as t,V as n,X as r,Y as i,_ as a,_t as o,b as s,bt as c,g as l,it as u,lt as d,m as f,vt as p,w as m,xt as h,y as g,z as _}from"../modules/shiki-BFOesOFp.js";import{nt as v,rt as y}from"../useNav-BF8Ehznl.js";import{l as b}from"./context-DrkI8qiD.js";var x=[`title`],S={key:0,"flex-auto":``},C={"text-primary":``},w={op50:``,"text-sm":``},T={key:0,absolute:``,"inset-y-0":``,"right-0":``,"w-0.5":``,"bg-primary":``,"z-1":``},E=m({__name:`ClicksSlider`,props:{clicksContext:{},readonly:{type:Boolean},active:{type:Boolean,default:!0},resettable:{type:Boolean},compact:{type:Boolean},attached:{type:Boolean}},emits:[`activate`,`reset`],setup(e,{emit:t}){let r=e,i=t,m=l(()=>r.clicksContext.total),E=l(()=>v(0,r.clicksContext.clicksStart,m.value)),D=l(()=>m.value-E.value+1),O=l({get(){return r.resettable&&!r.active||r.clicksContext.current>m.value?-1:r.clicksContext.current},set(e){if(r.resettable&&e<0){i(`reset`),r.clicksContext.current=b;return}i(`activate`),r.clicksContext.current=e}}),k=l(()=>r.resettable&&O.value<0),A=l(()=>y(E.value,m.value+1)),j=d(),M;function N(e){let t=j.value.getBoundingClientRect();return(e.clientX-t.left)/Math.max(1,t.width)}function P(e,t){if(r.readonly||!j.value||!t&&!(e.buttons&1))return;let n=N(e);if(r.resettable&&n<0){O.value=-1;return}let i=v(0,n,t?.999999:1)*D.value,a=v(0,O.value-E.value,D.value-1),o=t?E.value+Math.floor(i):O.value;!t&&i>=a+1.5?o=E.value+Math.floor(i-.5):!t&&i(_(),s(`div`,{class:p([`flex gap-1 select-none`,[e.attached?`items-end`:`items-center`,D.value&&r.clicksContext.isMounted?``:`op50`]]),title:`Clicks in this slide: ${D.value}`},[a(`div`,{class:p([`flex items-center font-mono`,[e.compact?`gap-1 min-w-0 mr0`:`gap-0.2 min-w-16 mr1`,e.attached?`h-[22px]`:``]])},[a(`div`,{class:p([`i-carbon:cursor-1 text-sm op50`,e.compact?`ml-1`:``])},null,2),O.value>=0&&O.value!==o(999999)&&e.active?(_(),s(f,{key:0},[e.compact?g(`v-if`,!0):(_(),s(`div`,S)),a(`span`,null,[a(`span`,C,h(O.value),1),i[2]||=a(`span`,{op25:``,"text-sm":``},`/`,-1),a(`span`,w,h(m.value),1)])],64)):(_(),s(`div`,{key:1,op50:``,class:p(e.compact?``:`flex-auto pl1`)},[a(`span`,{class:p(e.compact?`inline-block text-center`:``),style:c(e.compact?{width:`${String(m.value).length*2+1}ch`,marginLeft:`-0.25ch`}:void 0)},h(m.value),7)],2))],2),a(`div`,{ref_key:`sliderEl`,ref:j,relative:``,"flex-auto":``,"font-mono":``,flex:`~`,"touch-none":``,class:p([e.attached?`h-[22px]`:`h5`,k.value?`op80`:``]),onPointerdownCapture:F,onPointermove:I,onPointerup:i[0]||=e=>u(M)?M.value=void 0:M=void 0,onPointercancel:i[1]||=e=>u(M)?M.value=void 0:M=void 0},[(_(!0),s(f,null,n(A.value,t=>(_(),s(`div`,{key:t,border:`y main`,"of-hidden":``,relative:``,class:p([t===0?`border-l`:``,t===0?e.attached?`rounded-tl`:`rounded-l`:``,t===m.value?`border-r`:``,t===m.value&&+t!=+O.value?e.attached?`rounded-tr`:`rounded-r`:``,e.attached?`border-b-0`:``]),style:c({width:D.value>0?`${1/D.value*100}%`:`100%`})},[a(`div`,{absolute:``,"inset-0":``,class:p(t<=O.value&&e.active?`bg-primary op15`:``)},null,2),+t==+O.value&&e.active?(_(),s(`div`,T)):g(`v-if`,!0),a(`div`,{class:p([+t==+O.value&&e.active?`text-primary font-bold op100`:`op30`,t===m.value?``:`border-r-2 border-main`]),"w-full":``,"h-full":``,"text-xs":``,flex:``,"items-center":``,"justify-center":``,"z-1":``},h(t),3)],6))),128))],34)],10,x))}}),D=[`innerHTML`],O=[`textContent`],k=[`textContent`],A=`slidev-note-fade`,j=`slidev-note-click-mark`,M=m({__name:`NoteDisplay`,props:{class:{},noteHtml:{},note:{},highlight:{type:Boolean,default:!0},placeholder:{},clicksContext:{},autoScroll:{type:Boolean}},emits:[`markerDblclick`,`markerClick`],setup(n,{emit:o}){let c=n,u=o,f=l(()=>c.clicksContext!=null&&c.noteHtml?.includes(j)),m=d(null);function g(){if(!m.value||!f.value)return;let e=Array.from(m.value.querySelectorAll(`.${j}`)),t=new Map,n=new Map,r=0;for(let i of e){let e=Number(i.dataset.clicks);t.set(i,e);let a=i,o=i.parentElement;for(;o&&a!==m.value;)n.has(o)||n.set(o,[[null,r]]),n.get(o).push([a,e]),a=o,o=o.parentElement;r=e}let i=new Map;for(let[e,t]of n){let n=!1,r=0;for(let a of Array.from(e.childNodes)){let o=!1;for(;a===t[r+1]?.[0];)o=!0,r++;if(o)continue;let s=a;if(a.nodeType===3){if(!a.textContent?.trim())continue;s=document.createElement(`span`),s.textContent=a.textContent,e.insertBefore(s,a),a.remove()}n||=r===0,i.set(s,t[r][1])}n||(t[0][1]=-1)}return e=>{let r=c.highlight;for(let[t,i]of n)t.classList.toggle(A,r&&!i.some(([t,n])=>n===e));for(let[t,n]of i)t.classList.toggle(A,r&&n!==e);for(let[n,i]of t)n.classList.remove(A),n.classList.toggle(`${j}-past`,r&&ie+1),n.ondblclick=e=>{r&&(u(`markerDblclick`,e,i),!e.defaultPrevented&&(c.clicksContext.current=i,e.stopPropagation(),e.stopImmediatePropagation()))},n.onclick=e=>{r&&u(`markerClick`,e,i)},r&&c.autoScroll&&i===e&&n.scrollIntoView({block:`center`,behavior:`smooth`})}}let v=d();return i(()=>[c.noteHtml,c.highlight],()=>{t(()=>{v.value=g()})},{immediate:!0}),e(()=>{g()}),r(()=>{let e=c.clicksContext?.current??999999;v.value?.(e)}),(e,t)=>n.noteHtml?(_(),s(`div`,{key:0,ref_key:`noteDisplay`,ref:m,class:p([`prose dark:prose-invert overflow-auto outline-none slidev-note`,[c.class,f.value?`slidev-note-with-clicks`:``]]),innerHTML:n.noteHtml},null,10,D)):n.note?(_(),s(`div`,{key:1,class:p([`prose dark:prose-invert overflow-auto outline-none slidev-note`,c.class])},[a(`p`,{textContent:h(n.note)},null,8,O)],2)):(_(),s(`div`,{key:2,class:p([`prose dark:prose-invert overflow-auto outline-none opacity-50 italic select-none slidev-note`,c.class])},[a(`p`,{textContent:h(c.placeholder||`No notes.`)},null,8,k)],2))}});export{E as n,M as t}; \ No newline at end of file diff --git a/lecture-06/class/assets/slidev/NoteEditable-BNfDAKyc.js b/lecture-06/class/assets/slidev/NoteEditable-BNfDAKyc.js new file mode 100644 index 0000000000000000000000000000000000000000..6ee3e8a49a02d1378fc04825a820769956b64afe --- /dev/null +++ b/lecture-06/class/assets/slidev/NoteEditable-BNfDAKyc.js @@ -0,0 +1 @@ +import{$ as e,N as t,X as n,Y as r,_t as i,b as a,bt as o,d as s,l as c,lt as l,mt as u,v as d,vt as f,w as p,z as m}from"../modules/shiki-BFOesOFp.js";import{C as h,k as g,o as _}from"../modules/vue-Ymwlffw_.js";import{t as v}from"../index-BSNgeX_T.js";import{t as y}from"./NoteDisplay-BHXyxEbM.js";var b=[`placeholder`],x=p({__name:`NoteEditable`,props:{no:{type:Number,required:!0},class:{default:``},editing:{default:!1},style:{default:()=>({})},placeholder:{default:`No notes for this slide`},clicksContext:{type:Object},highlight:{default:!0},autoHeight:{default:!1}},emits:[`update:editing`,`markerDblclick`,`markerClick`],setup(p,{emit:x}){let S=p,C=x,w=h(S,`editing`,C,{passive:!0}),{info:T,update:E}=v(u(S,`no`)),D=l(``),O,{ignoreUpdates:k}=g(D,e=>{if(!w.value)return;let t=S.no;clearTimeout(O),O=setTimeout(()=>{E({note:e},t)},500)});r(()=>T.value?.note,(e=``)=>{w.value||(clearTimeout(O),k(()=>{D.value=e}))},{immediate:!0,flush:`sync`});let A=l(),j=l();n(()=>{w.value&&A.value?.focus()}),_(A,()=>{w.value=!1});function M(){!S.autoHeight||!A.value||!w.value||A.value.scrollHeight>A.value.clientHeight&&(A.value.style.height=`${A.value.scrollHeight}px`)}function N(e){w.value&&e.metaKey&&e.key===`s`&&(e.preventDefault(),E({note:D.value},S.no))}return r([D,w],()=>{t(()=>{M()})},{flush:`post`,immediate:!0}),(t,n)=>i(w)?e((m(),a(`textarea`,{key:1,ref_key:`inputEl`,ref:A,"onUpdate:modelValue":n[2]||=e=>D.value=e,class:f([`prose dark:prose-invert resize-none overflow-auto outline-none bg-transparent block border-primary border-2 slidev-note placeholder:op25`,[S.class,D.value?``:`italic`]]),style:o([S.style,j.value==null?{}:{height:`${j.value}px`}]),placeholder:p.placeholder,onKeydown:[n[3]||=s(e=>w.value=!1,[`esc`]),N]},null,46,b)),[[c,D.value]]):(m(),d(y,{key:0,class:f([`border-transparent border-2`,[S.class,D.value?``:`opacity-25 italic select-none`]]),style:o(S.style),note:D.value||p.placeholder,"note-html":i(T)?.noteHTML,"clicks-context":p.clicksContext,"auto-scroll":!p.autoHeight,highlight:S.highlight,onMarkerClick:n[0]||=(e,t)=>C(`markerClick`,e,t),onMarkerDblclick:n[1]||=(e,t)=>C(`markerDblclick`,e,t)},null,8,[`class`,`style`,`note`,`note-html`,`clicks-context`,`auto-scroll`,`highlight`]))}});export{x as t}; \ No newline at end of file diff --git a/lecture-06/class/assets/slidev/TimerBar-BPutpYq6.js b/lecture-06/class/assets/slidev/TimerBar-BPutpYq6.js new file mode 100644 index 0000000000000000000000000000000000000000..ad270d0654b6adf1c1f49664657ac42a3efa5195 --- /dev/null +++ b/lecture-06/class/assets/slidev/TimerBar-BPutpYq6.js @@ -0,0 +1 @@ +import{Q as e,S as t,V as n,_t as r,a as i,b as a,bt as o,g as s,m as c,mt as l,st as u,vt as d,w as f,y as p,z as m}from"../modules/shiki-BFOesOFp.js";import{U as h,t as g,tt as _}from"../useNav-BF8Ehznl.js";import{F as v}from"../modules/vue-Ymwlffw_.js";import{o as y}from"../index-BSNgeX_T.js";var b={class:`relative flex gap-px`},x=f({__name:`CurrentProgressBar`,props:{clicksContext:{},current:{}},setup(l){let u=l,f=g(),h=s(()=>u.clicksContext??f.clicksContext.value),_=s(()=>u.current??f.currentSlideNo.value),{total:v}=f;return(s,l)=>(m(),a(`div`,b,[(m(!0),a(c,null,n(r(v)-1,n=>(m(),a(`div`,{key:n,class:d([`border-x border-b border-main h-4px transition-all`,n<_.value?`bg-primary border-primary`:``]),style:o({width:`${1/(r(v)-1)*100}%`})},[t(i,{name:`fade`},{default:e(()=>[n===_.value?(m(),a(`div`,{key:0,class:`h-full bg-primary op75 transition-all`,style:o({width:`${h.value.total===0?0:h.value.current/(h.value.total+1)*100}%`})},null,4)):p(`v-if`,!0)]),_:2},1024)],6))),128))]))}});function S(){let e=s(()=>_.timer||`stopwatch`),t=s(()=>h(_.duration).seconds),n=v(100,{controls:!0}),r=l(y,`timer`),i=s(()=>r.value?.status),a=s(()=>(n.counter.value,r.value.status===`stopped`||!r.value.startedAt?0:r.value.status===`paused`?r.value.pausedAt-r.value.startedAt:Date.now()-r.value.startedAt)),o=s(()=>a.value/1e3),c=s(()=>o.value/t.value*100),u=s(()=>{if(e.value===`stopwatch`&&(r.value.status===`stopped`||!r.value.startedAt))return{h:``,m:`-`,s:`--`,ms:`-`};let n=e.value===`countdown`?t.value*1e3-a.value:a.value,i=Math.floor(n/1e3/60/60).toString();i===`0`&&(i=``);let o=Math.floor(n/1e3/60%60).toString();i&&(o=o.padStart(2,`0`));let s=Math.floor(n/1e3%60).toString().padStart(2,`0`),c=Math.floor(n%1e3/100).toString();return{h:i,m:o,s,ms:c}});function d(){n.pause(),r.value={status:`stopped`,slides:{},startedAt:0,pausedAt:0}}function f(){r.value&&(r.value?.status===`stopped`?(r.value.status=`running`,r.value.startedAt=Date.now()):r.value.status===`paused`&&(r.value.status=`running`,r.value.startedAt=Date.now()-(r.value.pausedAt-r.value.startedAt)),n.resume())}function p(){r.value.status=`paused`,r.value.pausedAt=Date.now(),n.pause()}function m(){r.value.status===`running`?p():f()}return{state:r,status:i,timer:u,reset:d,toggle:m,resume:f,pause:p,passed:o,percentage:c,duration:t,mode:e}}var C={class:`border-b mt-px border-main relative flex h-4px`},w=f({__name:`TimerBar`,setup(e){let t=u(S()),n=s(()=>t.status===`stopped`?`op50`:t.status===`paused`?`bg-blue`:t.percentage>100?`bg-red`:t.percentage>80?`bg-yellow`:`bg-green`);return(e,r)=>(m(),a(`div`,C,[t.status===`stopped`?p(`v-if`,!0):(m(),a(`div`,{key:0,class:d([`h-4px`,n.value]),style:o({width:`${t.percentage}%`})},null,6)),p(` {{ timesplits }} `)]))}});export{S as n,x as r,w as t}; \ No newline at end of file diff --git a/lecture-06/class/assets/slidev/VClicks-BJ1JuBhK.js b/lecture-06/class/assets/slidev/VClicks-BJ1JuBhK.js new file mode 100644 index 0000000000000000000000000000000000000000..ca7134b06a622714b94c78a746425c25133d3e02 --- /dev/null +++ b/lecture-06/class/assets/slidev/VClicks-BJ1JuBhK.js @@ -0,0 +1 @@ +import{$ as e,A as t,D as n,L as r,R as i,S as a,W as o,m as s,p as c,v as l,w as u,z as d}from"../modules/shiki-BFOesOFp.js";import{K as f,it as p}from"../useNav-BF8Ehznl.js";import{n as m}from"./context-DrkI8qiD.js";import{u as h}from"../index-BSNgeX_T.js";var g=u({__name:`VClickGap`,props:{size:{type:[String,Number],default:1}},setup(e){let t=e,{$clicksContext:n}=m(),a=h(),o=+t.size;return Number.isNaN(o)&&(console.warn(`[slidev] Invalid size for VClickGap: ${t.size}`),o=1),r(()=>{let e=n.currentOffset+o-1;n.register(a,{max:e,delta:o})}),i(()=>{n.unregister(a)}),(e,t)=>(d(),l(s))}}),_=[`ul`,`ol`],v=/[\s,]+/,y=u({props:{depth:{type:[Number,String],default:1},every:{type:[Number,String],default:1},at:{type:[Number,String],default:`+1`},hide:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},animation:{type:[String,Array],default:void 0},handleSpecialElements:{type:Boolean,default:!0}},render(){let r=+this.every,i=f(this.at),s=typeof i==`string`,l=this.$slots.default?.();if(i==null||!l)return l;let u=o(`click`),d=(t,n)=>{let r={hide:this.hide};return typeof this.animation==`string`?this.animation.split(v).forEach(e=>{e&&(r[e]=!0)}):Array.isArray(this.animation)&&this.animation.forEach(e=>r[e]=!0),this.fade&&(r.fade=!0),e(t,[[u,n,``,r]])},m=e=>e.flatMap(e=>t(e)&&typeof e.type==`symbol`&&Array.isArray(e.children)?m(e.children):[e]);l=m(p(l));let h=(e,r=1)=>m(e).map(e=>{if(!t(e))return e;if(_.includes(e.type)&&Array.isArray(e.children)){let t=x(e.children,r+1);return n(e,{},t)}return n(e)}),y=1,b=0,x=(e,a=1)=>m(e).map(e=>{if(!t(e)||e.type===c)return e;let o=+i+Math.ceil(y++/r)-1,l;l=a<+this.depth&&Array.isArray(e.children)?n(e,{},h(e.children,a)):n(e);let u=o-b;return b=o,d(l,s?u>=0?`+${u}`:`${u}`:o)}),S=()=>a(g,{size:+i+Math.ceil((y-1)/r)-1-b});if(this.handleSpecialElements){if(l.length===1&&_.includes(l[0].type)&&Array.isArray(l[0].children))return n(l[0],{},[...x(l[0].children),S()]);if(l.length===1&&l[0].type===`table`){let e=l[0];if(Array.isArray(e.children))return n(e,{},e.children.map(e=>t(e)?e.type===`tbody`&&Array.isArray(e.children)?n(e,{},[...x(e.children),S()]):n(e):e))}}return[...x(l),S()]}});export{y as t}; \ No newline at end of file diff --git a/lecture-06/class/assets/slidev/VerticalDivider-D_ScNBWw.js b/lecture-06/class/assets/slidev/VerticalDivider-D_ScNBWw.js new file mode 100644 index 0000000000000000000000000000000000000000..ed9c1a5902c314172ddfb40f1fb37efd4bedb631 --- /dev/null +++ b/lecture-06/class/assets/slidev/VerticalDivider-D_ScNBWw.js @@ -0,0 +1 @@ +import{b as e,z as t}from"../modules/shiki-BFOesOFp.js";import{t as n}from"../_plugin-vue_export-helper-BDNMzG2s.js";var r={},i={class:`w-1px opacity-10 bg-current m-1 lg:m-2`};function a(n,r){return t(),e(`div`,i)}var o=n(r,[[`render`,a]]);export{o as t}; \ No newline at end of file diff --git a/lecture-06/class/assets/slidev/client-DrWBSyE4.js b/lecture-06/class/assets/slidev/client-DrWBSyE4.js new file mode 100644 index 0000000000000000000000000000000000000000..f86516d5fab18f9bd04b07a7363921952bba787f --- /dev/null +++ b/lecture-06/class/assets/slidev/client-DrWBSyE4.js @@ -0,0 +1 @@ +import"../useNav-BF8Ehznl.js";import"./context-DrkI8qiD.js";import"../syncState-BrWO1mSt.js";import"../index-BSNgeX_T.js";import"../useDrawings-DF8n2zfQ.js"; \ No newline at end of file diff --git a/lecture-06/class/assets/slidev/context-DrkI8qiD.js b/lecture-06/class/assets/slidev/context-DrkI8qiD.js new file mode 100644 index 0000000000000000000000000000000000000000..dc7e4c3a1681c746c0b613990c4225bd5b6e5147 --- /dev/null +++ b/lecture-06/class/assets/slidev/context-DrkI8qiD.js @@ -0,0 +1 @@ +import{g as e,lt as t,mt as n}from"../modules/shiki-BFOesOFp.js";import{A as r,M as i}from"../modules/vue-Ymwlffw_.js";var a=`$$slidev-clicks-context`,o=`$$slidev-page`,s=`$$slidev-slide-element`,c=`$$slidev-slide-scale`,l=`$$slidev-context`,u=`$$slidev-route`,d=`$$slidev-render-context`,f=`$$slidev-fontmatter`,p=`$$slidev-slide-zoom`,m=`slidev-vclick-target`,h=`slidev-vclick-hidden`,g=`slidev-vclick-hidden-explicitly`,_=`slidev-vclick-current`,v=`slidev-vclick-prior`,y=`slidev-vclick-anim-`,b=999999,x=[`localhost`,`127.0.0.1`],S=[`clicks`,`clicksStart`,`disabled`,`hide`,`hideInToc`,`layout`,`level`,`preload`,`routeAlias`,`src`,`title`,`transition`,`zoom`,`dragPos`,`lang`,`clickAnimation`],C=[...S,`theme`,`titleTemplate`,`info`,`author`,`keywords`,`presenter`,`browserExporter`,`download`,`exportFilename`,`export`,`highlighter`,`lineNumbers`,`monaco`,`monacoTypesSource`,`monacoTypesAdditionalPackages`,`monacoRunAdditionalDeps`,`monacoRunUseStrict`,`remoteAssets`,`selectable`,`record`,`colorSchema`,`routerMode`,`aspectRatio`,`canvasWidth`,`themeConfig`,`favicon`,`plantUmlServer`,`fonts`,`defaults`,`drawings`,`htmlAttrs`,`mdc`,`comark`,`contextMenu`,`wakeLock`,`pwa`,`seoMeta`,`notesAutoRuby`,`magicMoveDuration`,`preloadImages`];function w(){let i=r(l),s=n(i,`nav`),m=r(a).value,h=n(m,`current`),g=r(o),_=r(d),v=r(f,{});return{$slidev:i,$nav:s,$clicksContext:m,$clicks:h,$page:g,$route:r(u,void 0),$renderContext:_,$frontmatter:v,$scale:r(c,t(1)),$zoom:r(p,e(()=>1))}}function T(e,t){return{...i(e,t===0?C:S),frontmatter:e}}export{c as _,h as a,m as c,a as d,o as f,s as g,u as h,_ as i,b as l,d as m,w as n,g as o,f as p,y as r,v as s,T as t,x as u,p as v,l as y}; \ No newline at end of file diff --git a/lecture-06/class/assets/slidev/entry-DSOswi5I.js b/lecture-06/class/assets/slidev/entry-DSOswi5I.js new file mode 100644 index 0000000000000000000000000000000000000000..ffaf5291cbe986b9b06e3673e82d49e77731fd8b --- /dev/null +++ b/lecture-06/class/assets/slidev/entry-DSOswi5I.js @@ -0,0 +1 @@ +import{Q as e,S as t,U as n,_ as r,b as i,x as a,z as o}from"../modules/shiki-BFOesOFp.js";import{t as s}from"../_plugin-vue_export-helper-BDNMzG2s.js";var c={},l={class:`h-full w-full flex items-center justify-center gap-5 lt-md:flex-col`};function u(s,c){let u=n(`RouterLink`);return o(),i(`div`,l,[t(u,{to:`/`,class:`page-link`},{default:e(()=>[...c[0]||=[r(`div`,{class:`i-carbon:presentation-file`},null,-1),a(` Slides `,-1)]]),_:1}),t(u,{to:`/presenter`,class:`page-link`},{default:e(()=>[...c[1]||=[r(`div`,{class:`i-carbon:user-speaker`},null,-1),a(` Presenter `,-1)]]),_:1}),t(u,{to:`/notes`,class:`page-link`},{default:e(()=>[...c[2]||=[r(`div`,{class:`i-carbon:catalog`},null,-1),a(` Notes `,-1)]]),_:1}),t(u,{to:`/overview`,class:`page-link`},{default:e(()=>[...c[3]||=[r(`div`,{class:`i-carbon:list-boxes`},null,-1),a(` Overview `,-1)]]),_:1})])}var d=s(c,[[`render`,u],[`__scopeId`,`data-v-966650ef`]]);export{d as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/slidev/notes-BUQ8DzVc.js b/lecture-06/class/assets/slidev/notes-BUQ8DzVc.js new file mode 100644 index 0000000000000000000000000000000000000000..18bb55c9839fcdddab0ef9de6e2e9b53a12dfa48 --- /dev/null +++ b/lecture-06/class/assets/slidev/notes-BUQ8DzVc.js @@ -0,0 +1 @@ +import{Q as e,S as t,Y as n,_ as r,_t as i,b as a,bt as o,g as s,lt as c,m as l,w as u,x as d,xt as f,z as p}from"../modules/shiki-BFOesOFp.js";import{$ as m,W as h,t as g,u as _}from"../useNav-BF8Ehznl.js";import{g as v}from"../modules/vue-Ymwlffw_.js";import{h as y,o as b}from"../index-BSNgeX_T.js";import{t as x}from"./IconButton-B5keGFol.js";import{t as S}from"./Modal-CjKJrPTu.js";import{n as C,t as w}from"./NoteDisplay-BHXyxEbM.js";import{r as T,t as E}from"./TimerBar-BPutpYq6.js";var D={class:`flex my-1`},O={class:`h-full flex flex-col`},k={class:`flex-none border-t border-main`,px3:``,py2:``},A={class:`flex-none border-t border-main`},j={class:`flex gap-1 items-center px-6 py-3`},M={key:0,class:`i-carbon:minimize`},N={key:1,class:`i-carbon:maximize`},P={class:`px2 my-auto`},F={class:`text-lg`},I={class:`opacity-50 text-sm`},L=u({__name:`notes`,setup(u){y({title:`Notes - ${m}`});let{slides:L,total:R}=g(),{isFullscreen:z,toggle:B}=_,V=c(),H=v(`slidev-notes-font-size`,18),U=s(()=>b.page),W=c(!1),G=s(()=>L.value.find(e=>e.no===U.value));n(U,()=>{V.value?.scrollTo({left:0,top:0,behavior:`smooth`}),window.scrollTo({left:0,top:0,behavior:`smooth`})});function K(){H.value+=1}function q(){--H.value}let J=s(()=>{let e=b.clicks,t=b.clicksTotal;return h(c(e),void 0,t)});return(n,s)=>(p(),a(l,null,[t(S,{modelValue:W.value,"onUpdate:modelValue":s[1]||=e=>W.value=e,class:`px-6 py-4 flex flex-col gap-2`},{default:e(()=>[s[3]||=r(`div`,{class:`flex gap-2 text-xl`},[r(`div`,{class:`i-carbon:information my-auto`}),d(` Help `)],-1),s[4]||=r(`div`,{class:`prose dark:prose-invert`},[r(`p`,null,`This is the hands-free live notes viewer.`),r(`p`,null,`It's designed to be used in a separate view or device. The progress is controlled by and auto synced with the main presenter or slide.`)],-1),r(`div`,D,[r(`button`,{class:`slidev-form-button`,onClick:s[0]||=e=>W.value=!1},` Close `)])]),_:1},8,[`modelValue`]),r(`div`,O,[t(T,{"clicks-context":J.value,current:U.value},null,8,[`clicks-context`,`current`]),t(E),r(`div`,{ref_key:`scroller`,ref:V,class:`px-5 py-3 flex-auto h-full overflow-auto`,style:o({fontSize:`${i(H)}px`})},[t(w,{note:G.value?.meta.slide.note,"note-html":G.value?.meta.slide.noteHTML,placeholder:`No notes for Slide ${U.value}.`,"clicks-context":J.value,"auto-scroll":!0},null,8,[`note`,`note-html`,`placeholder`,`clicks-context`])],4),r(`div`,k,[t(C,{"clicks-context":J.value,readonly:``},null,8,[`clicks-context`])]),r(`div`,A,[r(`div`,j,[t(x,{title:i(z)?`Close fullscreen`:`Enter fullscreen`,onClick:i(B)},{default:e(()=>[i(z)?(p(),a(`div`,M)):(p(),a(`div`,N))]),_:1},8,[`title`,`onClick`]),t(x,{title:`Increase font size`,onClick:K},{default:e(()=>[...s[5]||=[r(`div`,{class:`i-carbon:zoom-in`},null,-1)]]),_:1}),t(x,{title:`Decrease font size`,onClick:q},{default:e(()=>[...s[6]||=[r(`div`,{class:`i-carbon:zoom-out`},null,-1)]]),_:1}),t(x,{title:`Edit notes`,to:`/notes-edit`,target:`_blank`},{default:e(()=>[...s[7]||=[r(`div`,{class:`i-carbon:edit`},null,-1)]]),_:1}),t(x,{title:`Help`,class:`rounded-full`,onClick:s[2]||=e=>W.value=!0},{default:e(()=>[...s[8]||=[r(`div`,{class:`i-carbon:help`},null,-1)]]),_:1}),s[9]||=r(`div`,{class:`flex-auto`},null,-1),r(`div`,P,[r(`span`,F,f(U.value),1),r(`span`,I,` / `+f(i(R)),1)])])])])],64))}});export{L as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/slidev/notes-edit-BoULxCyS.js b/lecture-06/class/assets/slidev/notes-edit-BoULxCyS.js new file mode 100644 index 0000000000000000000000000000000000000000..e4f31643f91e0eb2c676b9f832cd52e664e3e645 --- /dev/null +++ b/lecture-06/class/assets/slidev/notes-edit-BoULxCyS.js @@ -0,0 +1,2 @@ +import{$ as e,Q as t,S as n,_ as r,b as i,l as a,lt as o,m as s,w as c,x as l,z as u}from"../modules/shiki-BFOesOFp.js";import{$ as d,t as f}from"../useNav-BF8Ehznl.js";import{O as p}from"../modules/vue-Ymwlffw_.js";import{h as m,t as h}from"../index-BSNgeX_T.js";import{t as g}from"./IconButton-B5keGFol.js";import{t as _}from"./Modal-CjKJrPTu.js";var v={class:`flex my-1`},y={class:`h-full`},b={class:`slidev-glass-effect fixed bottom-5 right-5 rounded-full border border-main`},x=c({__name:`notes-edit`,setup(c){let x=/^---\s*#(\d+)\s*$/;m({title:`Notes Edit - ${d}`});let{slides:S}=f(),C=o(!1),w=o(T(S.value));function T(e){let t=[];for(let n of e)n.meta.slide.note?.trim()&&(t.push(`--- #${n.no}`),t.push(``),t.push(n.meta.slide.note),t.push(``));return t.join(` +`)}function E(e,t){let n=e.split(/^(---\s*#\d+\s*)$/gm);n.forEach((e,r)=>{let i=e.match(x);if(i){let e=Number.parseInt(i[1]),a=n[r+1].trim(),o=t.find(t=>t.no===e);o&&(o.meta.slide.note=a,h(e).update({note:a}))}})}return p(w,e=>{E(e,S.value)},{debounce:300}),(o,c)=>(u(),i(s,null,[n(_,{modelValue:C.value,"onUpdate:modelValue":c[1]||=e=>C.value=e,class:`px-6 py-4 flex flex-col gap-2`},{default:t(()=>[c[4]||=r(`div`,{class:`flex gap-2 text-xl`},[r(`div`,{class:`i-carbon:information my-auto`}),l(` Help `)],-1),c[5]||=r(`div`,{class:`prose dark:prose-invert`},[r(`p`,null,`This is the batch notes editor. You can edit the notes for all the slides at once here.`),r(`p`,null,[l(`The note for each slide are separated by `),r(`code`,null,`--- #[no]`),l(` lines, you might want to keep them while editing.`)])],-1),r(`div`,v,[r(`button`,{class:`slidev-form-button`,onClick:c[0]||=e=>C.value=!1},` Close `)])]),_:1},8,[`modelValue`]),r(`div`,y,[r(`div`,b,[n(g,{title:`Help`,class:`rounded-full`,onClick:c[2]||=e=>C.value=!0},{default:t(()=>[...c[6]||=[r(`div`,{class:`i-carbon:help text-2xl`},null,-1)]]),_:1})]),e(r(`textarea`,{"onUpdate:modelValue":c[3]||=e=>w.value=e,class:`prose dark:prose-invert resize-none p5 outline-none bg-transparent block h-full w-full! max-w-full! max-h-full! min-h-full! min-w-full!`},null,512),[[a,w.value]])])],64))}});export{x as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/slidev/overview-DDcnTVmh.js b/lecture-06/class/assets/slidev/overview-DDcnTVmh.js new file mode 100644 index 0000000000000000000000000000000000000000..02128d5b08583939816c9b9b6ad131b50a807f92 --- /dev/null +++ b/lecture-06/class/assets/slidev/overview-DDcnTVmh.js @@ -0,0 +1 @@ +import{L as e,N as t,Q as n,R as r,S as i,V as a,_ as o,_t as s,b as c,bt as l,ft as u,g as d,lt as f,m as p,st as m,v as h,vt as g,w as ee,xt as _,y as v,z as y}from"../modules/shiki-BFOesOFp.js";import{$ as te,B as b,G as ne,R as x,X as re,Y as S,t as ie}from"../useNav-BF8Ehznl.js";import{t as C}from"../_plugin-vue_export-helper-BDNMzG2s.js";import{B as ae,V as oe}from"../modules/vue-Ymwlffw_.js";import{l as w}from"./context-DrkI8qiD.js";import{f as se,h as ce,m as le,p as T}from"../index-BSNgeX_T.js";import{n as ue,r as de}from"../modules/unplugin-icons-BIrNarL0.js";import{t as E}from"./IconButton-B5keGFol.js";import{n as D}from"./NoteDisplay-BHXyxEbM.js";import{i as fe,o as pe,t as me}from"../SlideWrapper-BV3rJSuv.js";import{t as he}from"./NoteEditable-BNfDAKyc.js";var ge={class:`h-screen w-screen of-hidden flex`},_e={key:0,class:`grid grid-rows-[auto_max-content] border-r border-main select-none max-h-full h-full`},ve={class:`relative`},ye={class:`absolute left-0 top-0 bottom-0 w-200 flex flex-col flex-auto items-end group p-6px md:p-10px gap-1 max-h-full of-x-visible of-y-auto`,style:{direction:`rtl`}},be=[`onClick`],xe={p2:``,border:`t main`},Se={class:`flex flex-col gap-1 mx-1 items-end`},Ce={key:0,class:`flex items-end gap-2`},we=[`onClick`],Te=[`onDblclick`],Ee={key:2,class:`select-none absolute bottom-0 right-0 bg-main rounded-tl p2 op35 text-xs`},De={key:1,class:`absolute z-2 top-0 right-0 px3 py1.5 border-b border-l rounded-lb bg-main/80 backdrop-blur border-main select-none`},Oe={class:`text-xs op50`},O=450,k=C(ee({__name:`overview`,setup(ee){ce({title:`Overview - ${te}`});let C=ae(),k=oe(),{openInEditor:ke,slides:A,isEmbedded:j}=ie(),M=d(()=>C.query.mode===`preview`),N=d(()=>M.value&&j.value),P=d(()=>M.value?N.value?Math.max(0,x.width.value-16):Math.min(900,Math.max(320,x.width.value-160)):O),Ae=d(()=>P.value/re.value),F=m(new Map),je=m(new Map),I=f([]),L=f(),R=f(null),z=0,B,V,H=d(()=>A.value.map(e=>Fe(e.meta?.slide?.note||``))),Me=d(()=>H.value.reduce((e,t)=>e+t,0)),Ne=d(()=>A.value.map(e=>K(e)).reduce((e,t)=>e+t,0)),Pe=d(()=>String(Math.max(1,A.value.length)).length),U=u(),W=new WeakMap;function G(e){return W.has(e)||W.set(e,ne(e,w)),W.get(e)}function K(e){return e.meta?.clicks||G(e)?.total}function q(e){U.value===e?U.value=void 0:U.value=e}function Fe(e){let t=e.match(/[\w`'\-\u0392-\u03C9\u00C0-\u00FF\u0600-\u06FF\u0400-\u04FF]+|[\u4E00-\u9FFF\u3400-\u4DBF\uF900-\uFAFF\u3040-\u309F\uAC00-\uD7AF]+/g),n=0;if(!t)return 0;for(let e=0;e=19968?n+=t[e].length:n+=1;return n}function J(){let e=window.innerHeight||document.documentElement.clientHeight,t,n=[];for(let[r,i]of F.entries()){let a=i.getBoundingClientRect(),o=Math.max(0,Math.min(a.bottom,e)-Math.max(a.top,0));o!==0&&(o>=a.height&&n.push(r),(!t||o>t.visibleHeight)&&(t={idx:r,visibleHeight:o}))}I.value=n.length?n:t?[t.idx]:[]}function Y(e){let t=document.createElement(`a`);t.target=`_blank`,t.href=S+e.slice(1),t.click()}function Ie(e){let t=new URL(S+e.slice(1),location.href).href;if(j.value){window.parent.postMessage({target:`slidev`,sender:`slidev`,type:`open-external`,url:t},`*`);return}Y(e)}function Le(e){let t=F.get(e);t&&t.scrollIntoView({behavior:`smooth`,block:`start`})}function X(e){let t=je.get(e)||F.get(e);if(!t||!L.value)return null;let n=L.value.getBoundingClientRect();return t.getBoundingClientRect().top-n.top+L.value.scrollTop}function Z(e){if(!L.value||A.value.length===0)return;let t=Math.min(Math.max(e,1),A.value.length),n=Math.floor(t)-1,r=t-(n+1),i=X(n),a=X(n+1);if(i==null)return;let o=i+(a==null?0:(a-i)*r)-L.value.clientHeight*.5;Math.abs(L.value.scrollTop-o)<1||L.value.scrollTo({top:o})}function Re(){let e=C.query.slideNo,t=Number(Array.isArray(e)?e[0]:e);return Number.isFinite(t)&&t>0?t:void 0}function Q(e){if(!N.value)return;let t=Number(e.toFixed(3)).toString();C.query.slideNo!==t&&k.replace({query:{...C.query,slideNo:t}})}function ze(){if(!L.value||A.value.length===0)return null;let e=L.value.scrollTop+L.value.clientHeight*.5,t=A.value.map((e,t)=>X(t)).filter(e=>e!=null);if(t.length===0)return null;if(t.length===1||e<=t[0])return 1;for(let n=1;n{V=void 0;let e=B;B=void 0,e!=null&&(Q(e),!(Date.now()0&&(z=Date.now()+300,B=void 0,Q(t),Z(t))}function He(e,t,n){let r=G(n);r.current=r.current===t?w:t,e.preventDefault()}function Ue(e,t){if(e.ctrlKey||e.metaKey){e.preventDefault(),Ie(b(t,!1));return}let n=t.meta?.slide;n&&window.parent.postMessage({target:`slidev`,type:`command`,command:`goto`,args:[n.filepath,n.sourceIndex]},`*`)}return e(()=>{window.addEventListener(`message`,$);let e=N.value?Re():void 0;e!=null&&(z=Date.now()+300,Z(e)),t(()=>{e!=null&&Z(e),J()})}),r(()=>{window.removeEventListener(`message`,$),V&&clearTimeout(V)}),(e,t)=>{let r=ue,u=de;return y(),c(`div`,ge,[s(j)?v(`v-if`,!0):(y(),c(`nav`,_e,[o(`div`,ve,[o(`div`,ye,[(y(!0),c(p,null,a(s(A),(e,t)=>(y(),c(`div`,{key:e.no,class:`relative`,style:{direction:`ltr`}},[o(`button`,{class:g([`relative transition duration-300 w-8 h-8 rounded hover:bg-active hover:op100`,I.value.includes(t)?`op100 text-primary bg-gray:5`:`op20`]),onClick:e=>Le(t)},[o(`div`,null,_(t+1),1)],10,be),e.meta?.slide?.title?(y(),c(`div`,{key:0,class:g([`pointer-events-none select-none absolute left-110% top-50% translate-y--50% ws-nowrap z-label px2 slidev-glass-effect transition duration-400 op0 group-hover:op100`,I.value.includes(t)?`text-primary`:`text-main important-text-op-50`])},_(e.meta?.slide?.title),3)):v(`v-if`,!0)]))),128))])]),o(`div`,xe,[s(se)?(y(),h(E,{key:1,title:s(T)?`Dark mode`:`Light mode`,"pointer-events-none":``,op50:``},{default:n(()=>[s(T)?(y(),h(r,{key:0})):(y(),h(u,{key:1}))]),_:1},8,[`title`])):(y(),h(E,{key:0,title:s(T)?`Switch to light mode theme`:`Switch to dark mode theme`,onClick:t[0]||=e=>s(le)()},{default:n(()=>[s(T)?(y(),h(r,{key:0})):(y(),h(u,{key:1}))]),_:1},8,[`title`]))])])),o(`main`,{ref_key:`scroller`,ref:L,class:`flex-1 h-full of-auto`,style:l(`grid-template-columns: repeat(auto-fit,minmax(${O}px,1fr))`),onScroll:Ve},[(y(!0),c(p,null,a(s(A),(e,r)=>(y(),c(`div`,{key:e.no,ref_for:!0,ref:e=>F.set(r,e),class:g([`overview-slide-block relative of-hidden flex gap-4 min-h-50`,[r===0&&!N.value?`pt2`:``,N.value?`justify-center`:`border-t border-main`]])},[N.value?v(`v-if`,!0):(y(),c(`div`,{key:0,class:g([`select-none text-right my5 flex flex-col justify-between items-end`,M.value?`w-9`:`w-13`]),style:l({height:`${Ae.value}px`})},[o(`div`,{class:`self-center text-3xl op20 mb2 text-center mr--14px tabular-nums`,style:l({width:`${Pe.value}ch`})},_(r+1),5),o(`div`,Se,[i(E,{class:g([`overview-slide-action mr--4 op0`,M.value?`text-lg`:``]),title:`Play in new tab`,onClick:t=>Y(s(b)(e,!1))},{default:n(()=>[...t[4]||=[o(`div`,{class:`i-carbon:presentation-file`},null,-1)]]),_:1},8,[`class`,`onClick`]),v(`v-if`,!0)])],6)),o(`div`,{class:g([`flex flex-col`,N.value?`my1 gap-0`:`my5 gap-2`]),style:l({width:`${P.value}px`})},[N.value?(y(),c(`div`,Ce,[o(`button`,{type:`button`,class:`select-none pl-1 text-lg leading-tight op60 tabular-nums hover:op90 hover:underline underline-offset-2`,onClick:t=>Ue(t,e)},_(r+1),9,we),K(e)?(y(),h(D,{key:0,active:U.value===e,"clicks-context":G(e),resettable:``,compact:``,attached:``,class:`ml-auto w-88 min-w-[70%] max-w-[calc(100%-3rem)]`,onDblclick:t=>q(e),onActivate:t=>U.value=e,onReset:t[1]||=e=>U.value=void 0},null,8,[`active`,`clicks-context`,`onDblclick`,`onActivate`])):v(`v-if`,!0)])):v(`v-if`,!0),o(`div`,{ref_for:!0,ref:e=>je.set(r,e),class:g([`border rounded border-main overflow-hidden bg-main h-max`,[N.value&&K(e)?`rounded-tr-0`:``,N.value?``:`select-none`]]),onDblclick:t=>!N.value&&Y(s(b)(e,!1))},[(y(),h(fe,{key:e.no,width:P.value,class:g(N.value?``:`pointer-events-none important:[&_*]:select-none`)},{default:n(()=>[i(me,{"clicks-context":G(e),route:e,"render-context":`overview`},null,8,[`clicks-context`,`route`]),i(pe,{page:e.no},null,8,[`page`])]),_:2},1032,[`width`,`class`]))],42,Te),K(e)&&!N.value?(y(),h(D,{key:1,active:U.value===e,"clicks-context":G(e),resettable:``,class:g([`ml-1 w-[calc(100%-0.25rem)]`,M.value?``:`mt-2`]),onDblclick:t=>q(e),onActivate:t=>U.value=e,onReset:t[2]||=e=>U.value=void 0},null,8,[`active`,`clicks-context`,`class`,`onDblclick`,`onActivate`])):v(`v-if`,!0)],6),M.value?v(`v-if`,!0):(y(),h(he,{key:1,no:e.no,class:`relative z-1 max-w-250 w-250 text-lg rounded p3`,"auto-height":!0,highlight:U.value===e,editing:R.value===e.no,"clicks-context":G(e),onDblclick:t=>R.value===e.no?null:R.value=e.no,"onUpdate:editing":t[3]||=e=>R.value=null,onMarkerClick:(t,n)=>He(t,n,e)},null,8,[`no`,`highlight`,`editing`,`clicks-context`,`onDblclick`,`onMarkerClick`])),!M.value&&H.value[r]>0?(y(),c(`div`,Ee,_(H.value[r])+` words `,1)):v(`v-if`,!0)],2))),128))],36),s(j)?v(`v-if`,!0):(y(),c(`div`,De,[o(`div`,Oe,_(s(A).length)+` slides · `+_(Ne.value+s(A).length-1)+` clicks · `+_(Me.value)+` words `,1)]))])}}}),[[`__scopeId`,`data-v-47f32601`]]);export{k as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/slidev/play-BjP6zyAu.js b/lecture-06/class/assets/slidev/play-BjP6zyAu.js new file mode 100644 index 0000000000000000000000000000000000000000..9f40a27d4f69448decef7e94851ff540b69c8774 --- /dev/null +++ b/lecture-06/class/assets/slidev/play-BjP6zyAu.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DrawingControls-BwcPRVjT.js","../rolldown-runtime-hePW80VL.js","../modules/shiki-BFOesOFp.js","../modules/shiki-BrmBd2_v.css","../modules/vue-Ymwlffw_.js","../useDrawings-DF8n2zfQ.js","../useNav-BF8Ehznl.js","../_plugin-vue_export-helper-BDNMzG2s.js","./context-DrkI8qiD.js","../index-BSNgeX_T.js","../syncState-BrWO1mSt.js","../index-DkUnP7jn.css","./IconButton-B5keGFol.js","./VerticalDivider-D_ScNBWw.js","../DrawingControls-Dhbx0szf.css"])))=>i.map(i=>d[i]); +import{Q as e,S as t,Y as n,_ as r,_t as i,b as a,bt as o,ft as s,g as c,it as l,lt as u,m as d,ot as f,v as p,vt as m,w as h,x as g,y as _,z as v}from"../modules/shiki-BFOesOFp.js";import{E as y,F as b,I as x,f as S,h as C,k as w,q as T,t as E,tt as D,v as O,w as k}from"../useNav-BF8Ehznl.js";import{C as A,m as j}from"../modules/vue-Ymwlffw_.js";import{o as M}from"../index-BSNgeX_T.js";import{t as N}from"../useDrawings-DF8n2zfQ.js";import{t as P}from"../modules/unplugin-icons-BIrNarL0.js";import{t as F}from"./Modal-CjKJrPTu.js";import{i as I}from"../SlideWrapper-BV3rJSuv.js";import{a as L,c as R,d as z,f as B,l as V,n as H,r as U,s as W,t as G,u as K}from"./shortcuts-DGsUa403.js";var q=2e3;function J(e){let t=c(()=>e.value&&S.value);function r(){document.body.style.cursor=`none`}function i(){document.body.style.cursor=``}let a=null;n(t,e=>{e||(i(),a&&clearTimeout(a),a=null)}),f(()=>{i(),a&&clearTimeout(a),a=null}),j(document.body,[`pointermove`,`pointerdown`],()=>{i(),a&&clearTimeout(a),a=t.value?setTimeout(r,q):null},{passive:!0})}``+new URL(`../logo-BYkHSa_O.png`,import.meta.url).href;var Y={class:`slidev-info-dialog slidev-layout flex flex-col gap-4 text-base`},X=[`innerHTML`],Z=h({__name:`InfoDialog`,props:{modelValue:{default:!1}},emits:[`update:modelValue`],setup(t,{emit:n}){let o=A(t,`modelValue`,n),s=c(()=>typeof D.info==`string`);return(t,n)=>(v(),p(F,{modelValue:i(o),"onUpdate:modelValue":n[0]||=e=>l(o)?o.value=e:null,class:`px-6 py-4`},{default:e(()=>[r(`div`,Y,[s.value?(v(),a(`div`,{key:0,class:`mb-4`,innerHTML:i(D).info},null,8,X)):_(`v-if`,!0),n[1]||=r(`a`,{href:`https://github.com/slidevjs/slidev`,target:`_blank`,class:`!opacity-100 !border-none !text-current`},[r(`div`,{class:`flex gap-1 children:my-auto`},[r(`div`,{class:`opacity-50 text-sm mr-2`},`Powered by`),r(`img`,{class:`w-5 h-5`,src:``+new URL(`../logo-BYkHSa_O.png`,import.meta.url).href,alt:`Slidev logo`}),r(`div`,{style:{color:`#2082A6`}},[r(`b`,null,`Sli`),g(`dev `)])])],-1)])]),_:1},8,[`modelValue`]))}}),Q=h({__name:`Controls`,setup(e){let{isEmbedded:n}=E(),r=!D.drawings.presenterOnly&&!n.value,o=s();r&&T(()=>import(`./DrawingControls-BwcPRVjT.js`).then(e=>e.n).then(e=>o.value=e.default),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]),import.meta.url);let c=s(),u=s();return(e,n)=>(v(),a(d,null,[o.value?(v(),p(i(o),{key:0})):_(`v-if`,!0),t(W),t(R),c.value?(v(),p(i(c),{key:1})):_(`v-if`,!0),u.value?(v(),p(i(u),{key:2,modelValue:i(w),"onUpdate:modelValue":n[0]||=e=>l(w)?w.value=e:null},null,8,[`modelValue`])):_(`v-if`,!0),i(D).info?(v(),p(Z,{key:3,modelValue:i(y),"onUpdate:modelValue":n[1]||=e=>l(y)?y.value=e:null},null,8,[`modelValue`])):_(`v-if`,!0),t(V)],64))}}),$={key:0,class:`absolute top-0 left-0 right-0 bottom-0 pointer-events-none text-xl`},ee=h({__name:`PresenterMouse`,setup(e){return(e,n)=>{let r=P;return i(M).cursor?.style===`cursor`?(v(),a(`div`,$,[t(r,{class:`absolute stroke-white dark:stroke-black`,style:o({left:`${i(M).cursor.x}%`,top:`${i(M).cursor.y}%`,strokeWidth:16})},null,8,[`style`])])):_(`v-if`,!0)}}}),te=h({__name:`play`,setup(n){let{next:o,prev:l,isPrintMode:f,isPlaying:h,isEmbedded:g}=E(),{isDrawing:y}=N(),S=u();function w(e){k.value||e.button===0&&e.target?.id===`slide-container`&&(e.pageX/window.innerWidth>.5?o():l())}B(S),G(),z(),J(c(()=>h.value&&!g.value&&!k.value));let T=c(()=>O.value||k.value),D=s(),A=c(()=>{let e=``;return b.value.brightness!==x.brightness&&(e+=`brightness(${b.value.brightness}) `),b.value.contrast!==x.contrast&&(e+=`contrast(${b.value.contrast}) `),b.value.sepia!==x.sepia&&(e+=`sepia(${b.value.sepia}) `),b.value.hueRotate!==x.hueRotate&&(e+=`hue-rotate(${b.value.hueRotate}deg) `),b.value.invert&&(e+=`invert(1) `),{filter:e}});return(n,o)=>(v(),a(d,null,[r(`div`,{id:`page-root`,ref_key:`root`,ref:S,class:m([`grid`,i(C)?`grid-rows-[1fr_max-content]`:`grid-cols-[1fr_max-content]`])},[t(I,{style:{background:`var(--slidev-slide-container-background, black)`},"is-main":``,"content-style":A.value,onPointerdown:w,onContextmenu:i(K)},{default:e(()=>[t(H,{"render-context":`slide`}),t(ee),t(L)]),controls:e(()=>[i(f)?_(`v-if`,!0):(v(),a(`div`,{key:0,class:m([`absolute bottom-0 left-0 transition duration-300 opacity-0 hover:opacity-100 focus-within:opacity-100 focus-visible:opacity-100`,[T.value?`!opacity-100 right-0`:`opacity-0 p-2`,i(y)?`pointer-events-none`:``]])},[t(U,{persist:T.value},null,8,[`persist`])],2))]),_:1},8,[`content-style`,`onContextmenu`]),D.value&&i(k)?(v(),p(i(D),{key:0,resize:!0})):_(`v-if`,!0)],2),i(f)?_(`v-if`,!0):(v(),p(Q,{key:0})),o[0]||=r(`div`,{id:`twoslash-container`},null,-1)],64))}});export{te as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/slidev/presenter-B1LQ84XE.js b/lecture-06/class/assets/slidev/presenter-B1LQ84XE.js new file mode 100644 index 0000000000000000000000000000000000000000..95ace57efd48e00a9766431872ca6420f08bf615 --- /dev/null +++ b/lecture-06/class/assets/slidev/presenter-B1LQ84XE.js @@ -0,0 +1 @@ +import{$ as e,J as t,L as n,Q as r,S as i,X as a,Y as o,_ as s,_t as c,b as l,bt as u,ft as d,g as f,it as ee,lt as p,m as te,u as ne,v as m,vt as h,w as g,x as _,xt as v,y,z as b}from"../modules/shiki-BFOesOFp.js";import{$ as re,O as ie,W as ae,a as oe,b as x,m as se,o as ce,t as le,w as ue,x as de}from"../useNav-BF8Ehznl.js";import{t as S}from"../_plugin-vue_export-helper-BDNMzG2s.js";import{T as C,g as w,m as T,v as fe}from"../modules/vue-Ymwlffw_.js";import{h as pe,n as E,o as me}from"../index-BSNgeX_T.js";import{t as he}from"../useDrawings-DF8n2zfQ.js";import{t as ge}from"./DrawingControls-BwcPRVjT.js";import{t as _e}from"./IconButton-B5keGFol.js";import{n as ve,t as D}from"./NoteDisplay-BHXyxEbM.js";import{n as O,r as ye,t as be}from"./TimerBar-BPutpYq6.js";import{i as k,t as xe}from"../SlideWrapper-BV3rJSuv.js";import"./NoteEditable-BNfDAKyc.js";import{a as Se,c as Ce,d as we,f as Te,i as Ee,l as De,n as Oe,o as ke,r as Ae,s as je,t as Me,u as Ne}from"./shortcuts-DGsUa403.js";var Pe=g({__name:`NoteStatic`,props:{no:{},class:{},clicksContext:{}},setup(e){let t=e,{info:n}=E(t.no);return(r,i)=>(b(),m(D,{class:h(t.class),note:c(n)?.note,"note-html":c(n)?.noteHTML,"clicks-context":e.clicksContext},null,8,[`class`,`note`,`note-html`,`clicks-context`]))}}),A={"h-full":``,"w-full":``},j={key:0,"w-full":``,"h-full":``,flex:`~ col gap-4 items-center justify-center`},Fe=g({__name:`ScreenCaptureMirror`,setup(n){let r=t(`video`),i=d(null),a=d(!1);async function o(){i.value=await navigator.mediaDevices.getDisplayMedia({video:{cursor:`always`},audio:!1,selfBrowserSurface:`include`,preferCurrentTab:!1}),r.value.srcObject=i.value,r.value.play(),a.value=!0,i.value.addEventListener(`inactive`,()=>{r.value.srcObject=null,a.value=!1}),i.value.addEventListener(`ended`,()=>{r.value.srcObject=null,a.value=!1})}return(t,n)=>(b(),l(`div`,A,[e(s(`video`,{ref_key:`video`,ref:r,class:`w-full h-full object-contain`},null,512),[[ne,a.value]]),a.value?y(`v-if`,!0):(b(),l(`div`,j,[n[0]||=s(`div`,{op50:``},[_(` Use screen capturing to mirror your main screen back to presenter view.`),s(`br`),_(` Click the button below and `),s(`b`,null,`select your other monitor or window`),_(`. `)],-1),s(`button`,{class:`slidev-form-button`,onClick:o},` Start Screen Mirroring `)]))]))}}),M={class:`w-22px cursor-pointer`},N={class:`group-not-hover:hidden flex flex-col items-center`},P={key:0,class:`i-carbon:pause text-lg`},F={key:1,class:`i-carbon:play`},I={class:`text-3xl px-3 my-auto font-mono`},Ie=g({__name:`TimerInlined`,setup(e){let{status:t,percentage:n,mode:r,timer:i,reset:a,toggle:o}=O(),u=f(()=>t.value===`stopped`?`op50`:t.value===`paused`?`text-blue6 dark:text-blue3`:n.value>100?`text-red6 dark:text-red3`:n.value>80?`text-yellow6 dark:text-yellow3`:`text-green6 dark:text-green3`);return(e,n)=>(b(),l(`div`,{class:h([`group flex items-center justify-center pl-4 select-none`,u.value])},[s(`div`,M,[s(`div`,{class:h([`group-hover:hidden text-2xl`,c(r)===`countdown`?`i-carbon:timer`:`i-carbon:time`])},null,2),s(`div`,N,[s(`div`,{class:`relative op-80 hover:op-100`,onClick:n[0]||=(...e)=>c(o)&&c(o)(...e)},[c(t)===`running`?(b(),l(`div`,P)):(b(),l(`div`,F))]),s(`div`,{class:`op-80 hover:op-100`,onClick:n[1]||=(...e)=>c(a)&&c(a)(...e)},[...n[2]||=[s(`div`,{class:`i-carbon:renew`},null,-1)]])])]),s(`div`,I,[c(i).h?(b(),l(te,{key:0},[s(`span`,null,v(c(i).h),1),n[3]||=s(`span`,{op50:``},`:`,-1)],64)):y(`v-if`,!0),s(`span`,null,v(c(i).m),1),n[4]||=s(`span`,{op50:``},`:`,-1),s(`span`,null,v(c(i).s),1)])],2))}}),Le={class:`bg-main h-full slidev-presenter grid grid-rows-[max-content_1fr] of-hidden`},Re={flex:`~ gap-4 items-center`,border:`b main`,p1:``},ze={class:`relative grid-section next flex flex-col p-2 lg:p-4`},Be={key:2,class:`h-full flex justify-center items-center`},Ve={key:3,class:`h-full grid grid-rows-[1fr_min-content]`},L=S(g({__name:`presenter`,setup(t){let g=C(),_=p(),v=p(),S=p(),E=p();Me(),Te(_),we();let{clicksContext:D,currentSlideNo:O,currentSlideRoute:A,hasNext:j,nextRoute:M,slides:N,getPrimaryClicks:P}=le(),{isDrawing:F}=he();pe({title:`Presenter - ${re}`}),p(!1);let I=f(()=>N.value.map(e=>{let t=p(0);return{context:ae(t,e?.meta.slide?.frontmatter.clicksStart??0,e?.meta.clicks),clicks:t}})),L=f(()=>D.value.currentL.value&&I.value[L.value[0].no-1]);o(L,()=>{R.value&&L.value&&(R.value.clicks.value=L.value[1])},{immediate:!0});let z=w(`slidev-presenter-main-slide-mode`,`slides`),B=w(`slidev-presenter-notes-width`,360),V=w(`slidev-presenter-notes-row-size`,280),He=p(0),H=p(!1),U=p(!1),Ue=p(0),W=p(360),We=p(0),G=p(280),K={minNotesWidth:240,maxNotesWidth:720,minNotesRowSize:160,maxNotesWidthRatio:.7,maxNotesRowHeightRatio:.75},Ge=fe(`(min-aspect-ratio: 1/1)`),q=fe(`(max-aspect-ratio: 3/5)`),J=f(()=>x.value===1&&Ge.value),Y=f(()=>!(x.value===1&&q.value)),X=f(()=>x.value===1&&!q.value||x.value===2||x.value===3),Ke=f(()=>x.value===1&&!q.value);function qe(e){return Number.isFinite(e)?Math.max(K.minNotesWidth,Math.min(K.maxNotesWidth,Math.round(e))):K.minNotesWidth}function Je(e){let t=v.value;if(!t)return;let n=t.getBoundingClientRect(),r=e-Ue.value,i=qe(J.value?W.value-r:W.value+r),a=Math.round(n.width*K.maxNotesWidthRatio);B.value=Math.min(i,Math.max(K.minNotesWidth,a))}function Z(e){Y.value&&e.button===0&&(e.preventDefault(),Ue.value=e.clientX,W.value=B.value,H.value=!0)}function Q(e){return Number.isFinite(e)?Math.max(K.minNotesRowSize,Math.round(e)):K.minNotesRowSize}function Ye(e){let t=v.value;if(!t)return;let n=t.getBoundingClientRect(),r=e-We.value,i=Ke.value?G.value-r:G.value+r,a=Math.round(n.height*K.maxNotesRowHeightRatio);V.value=Math.min(Q(i),Math.max(K.minNotesRowSize,a))}function Xe(e){if(!X.value||e.button!==0)return;e.preventDefault();let t=x.value===2?_.value?.getBoundingClientRect().height:S.value?.getBoundingClientRect().height;We.value=e.clientY,G.value=Q(t??V.value),U.value=!0}function Ze(){let e=E.value;e&&(He.value=Math.round(e.getBoundingClientRect().height))}function Qe(){H.value=!1,U.value=!1}function $e(){Ze(),et()}T(window,`pointermove`,e=>{H.value&&Je(e.clientX),U.value&&Ye(e.clientY)}),T(window,`pointerup`,Qe),T(window,`pointercancel`,Qe),n(()=>{$e()}),T(window,`resize`,()=>{$e()});function et(){B.value=qe(B.value),V.value=Q(V.value);let e=v.value;if(!e)return;let t=e.getBoundingClientRect(),n=Math.round(t.width*K.maxNotesWidthRatio),r=Math.round(t.height*K.maxNotesRowHeightRatio);B.value=Math.min(B.value,Math.max(K.minNotesWidth,n)),V.value=Math.min(V.value,Math.max(K.minNotesRowSize,r))}let $=d();return n(()=>{let e=ke(),t=C();a(()=>{!e.value||!t.value||F.value||!ie.value?me.cursor=void 0:me.cursor={...e.value,style:oe.value}})}),(t,n)=>(b(),l(te,null,[s(`div`,Le,[s(`div`,null,[i(ye),i(be)]),s(`div`,{ref_key:`gridContainer`,ref:v,class:h([`grid-container`,`layout${c(x)}`]),style:u({"--slidev-presenter-notes-width":`${c(B)}px`,"--slidev-presenter-notes-row-size":`${c(V)}px`,"--slidev-presenter-bottom-height":`${He.value}px`})},[y(` Unified vertical resizer for wide layout `),Y.value&&J.value?(b(),l(`div`,{key:0,class:`notes-vertical-resizer`,role:`separator`,"aria-orientation":`vertical`,title:`Resize notes panel`,onPointerdown:Z},null,32)):y(`v-if`,!0),y(` Unified vertical resizer for layout 3 `),Y.value&&c(x)===3?(b(),l(`div`,{key:1,class:`notes-vertical-resizer-left`,role:`separator`,"aria-orientation":`vertical`,title:`Resize notes panel`,onPointerdown:Z},null,32)):y(`v-if`,!0),s(`div`,{ref_key:`main`,ref:_,class:`relative grid-section main flex flex-col`},[s(`div`,Re,[n[3]||=s(`span`,{op50:``,px2:``},`Current`,-1),n[4]||=s(`div`,{"flex-auto":``},null,-1),i(Ee,{modelValue:c(z),"onUpdate:modelValue":n[0]||=e=>ee(z)?z.value=e:null,options:[{label:`Slides`,value:`slides`},{label:`Screen Mirror`,value:`mirror`}]},null,8,[`modelValue`])]),c(z)===`mirror`?(b(),m(Fe,{key:0})):y(`v-if`,!0),y(` We use v-show here to still infer the clicks context `),e(i(k,{key:`main`,class:`p-2 lg:p-4 flex-auto`,"is-main":``,onContextmenu:c(Ne)},{default:r(()=>[i(Oe,{"render-context":`presenter`}),i(Se)]),_:1},8,[`onContextmenu`]),[[ne,c(z)===`slides`]]),(b(),m(ve,{key:c(A)?.no,"clicks-context":c(P)(c(A)),class:`w-full pb2 px4 flex-none`},null,8,[`clicks-context`]))],512),s(`div`,ze,[X.value&&c(x)===2?(b(),l(`div`,{key:0,class:`notes-row-resizer top-[-6px]`,role:`separator`,"aria-orientation":`horizontal`,title:`Resize notes panel height`,onPointerdown:Xe},null,32)):y(`v-if`,!0),L.value&&R.value?(b(),m(k,{key:`next`},{default:r(()=>[(b(),m(xe,{key:L.value[0].no,"clicks-context":R.value.context,route:L.value[0],"render-context":`previewNext`},null,8,[`clicks-context`,`route`]))]),_:1})):(b(),l(`div`,Be,[...n[5]||=[s(`div`,{class:`text-gray-500`},` End of the presentation `,-1)]])),n[6]||=s(`div`,{class:`absolute left-0 top-0 bg-main border-b border-r border-main px2 py1 op50 text-sm`},` Next `,-1)]),s(`div`,{ref_key:`noteSection`,ref:S,class:`relative grid-section note overflow-hidden`},[Y.value&&!J.value&&c(x)!==3?(b(),l(`div`,{key:0,class:`notes-resizer right-[-6px]`,role:`separator`,"aria-orientation":`vertical`,title:`Resize notes panel`,onPointerdown:Z},null,32)):y(`v-if`,!0),X.value&&c(x)!==2?(b(),l(`div`,{key:1,class:h([`notes-row-resizer`,Ke.value?`top-[-6px]`:`bottom-[-6px]`]),role:`separator`,"aria-orientation":`horizontal`,title:`Resize notes panel height`,onPointerdown:Xe},null,34)):y(`v-if`,!0),$.value&&c(ue)?(b(),m(c($),{key:2,class:`h-full`})):(b(),l(`div`,Ve,[(b(),m(Pe,{key:`static-${c(O)}`,no:c(O),class:`w-full max-w-full h-full overflow-auto p-2 lg:p-4`,style:u({fontSize:`${c(de)}em`}),"clicks-context":c(D)},null,8,[`no`,`style`,`clicks-context`])),n[10]||=s(`div`,{"border-t":``,"border-main":``},null,-1),s(`div`,{class:h([`py-1 px-2 text-sm transition`,c(g)?``:`op25`])},[i(_e,{title:`Increase font size`,onClick:c(se)},{default:r(()=>[...n[7]||=[s(`div`,{class:`i-carbon:zoom-in`},null,-1)]]),_:1},8,[`onClick`]),i(_e,{title:`Decrease font size`,onClick:c(ce)},{default:r(()=>[...n[8]||=[s(`div`,{class:`i-carbon:zoom-out`},null,-1)]]),_:1},8,[`onClick`]),y(`v-if`,!0)],2)]))],512),s(`div`,{ref_key:`bottomSection`,ref:E,class:`grid-section bottom flex`},[i(Ae,{persist:!0,class:h([`transition`,c(g)?``:`op25`])},null,8,[`class`]),n[11]||=s(`div`,{"flex-auto":``},null,-1),i(Ie)],512),(b(),m(ge,{key:2}))],6)]),i(Ce),i(je),i(De)],64))}}),[[`__scopeId`,`data-v-e7a794bf`]]);export{L as default}; \ No newline at end of file diff --git a/lecture-06/class/assets/slidev/shortcuts-DGsUa403.js b/lecture-06/class/assets/slidev/shortcuts-DGsUa403.js new file mode 100644 index 0000000000000000000000000000000000000000..cdcc96c7f295421766b89f285ed83330f48f9758 --- /dev/null +++ b/lecture-06/class/assets/slidev/shortcuts-DGsUa403.js @@ -0,0 +1,4 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DrawingLayer-vJt7NoKg.js","../modules/shiki-BFOesOFp.js","../rolldown-runtime-hePW80VL.js","../modules/shiki-BrmBd2_v.css","./context-DrkI8qiD.js","../modules/vue-Ymwlffw_.js","../useDrawings-DF8n2zfQ.js","../useNav-BF8Ehznl.js","../_plugin-vue_export-helper-BDNMzG2s.js","../index-BSNgeX_T.js","../syncState-BrWO1mSt.js","../index-DkUnP7jn.css"])))=>i.map(i=>d[i]); +import{$ as e,E as t,G as n,H as r,K as i,L as a,M as o,Q as s,S as c,V as l,X as u,Y as d,_ as f,_t as p,a as m,b as h,bt as g,c as _,d as v,f as y,ft as b,g as x,h as S,i as C,it as w,j as T,k as ee,l as E,lt as D,m as O,n as te,o as ne,u as re,v as k,vt as A,w as j,x as ie,xt as M,y as N,yt as P,z as F}from"../modules/shiki-BFOesOFp.js";import{A as ae,C as oe,D as I,E as se,F as L,G as ce,I as R,L as le,M as ue,N as de,O as fe,P as pe,Q as me,R as he,S as ge,T as z,V as _e,Y as ve,Z as ye,_ as be,a as xe,b as Se,d as Ce,f as we,g as Te,i as Ee,j as B,n as De,nt as Oe,p as ke,q as Ae,r as je,s as Me,t as V,tt as H,u as Ne,w as Pe,y as Fe,z as Ie}from"../useNav-BF8Ehznl.js";import{t as Le}from"../_plugin-vue_export-helper-BDNMzG2s.js";import{C as Re,I as ze,P as Be,T as Ve,V as He,b as Ue,f as We,m as Ge,n as U,o as Ke,r as qe,s as Je,t as W,w as Ye,y as Xe}from"../modules/vue-Ymwlffw_.js";import{_ as Ze,l as Qe,n as $e}from"./context-DrkI8qiD.js";import{f as et,i as tt,m as nt,o as rt,p as it,r as at,t as ot}from"../index-BSNgeX_T.js";import{t as st}from"../useDrawings-DF8n2zfQ.js";import{t as G}from"./IconButton-B5keGFol.js";import{t as ct}from"./VerticalDivider-D_ScNBWw.js";import{a as lt,i as ut,n as dt,o as ft,r as pt,t as mt}from"../SlideWrapper-BV3rJSuv.js";function ht(e){let{next:t,nextSlide:n,prev:r,prevSlide:i}=V(),{isDrawing:a}=st(),o=D(0),{direction:s,distanceX:c,distanceY:l}=Ue(e,{pointerTypes:[`touch`],onSwipeStart(){a.value||(o.value=Be())},onSwipeEnd(){if(!o.value||a.value)return;let e=Math.abs(c.value),u=Math.abs(l.value);e/window.innerWidth>.3||e>75?s.value===`left`?t():r():(u/window.innerHeight>.4||u>200)&&(s.value===`down`?i():n())}})}function gt(){let{request:e,release:t}=Ye();d(le,n=>{n?e(`screen`):t()},{immediate:!0})}var _t=Object.assign({}),vt=Object.assign({}),yt=Object.assign({}),bt=[Object.values(_t)[0],Object.values(vt)[0],Object.values(yt)[0]].filter(Boolean),xt,St=()=>{if(xt)return xt;let{next:e,nextSlide:t,prev:n,prevSlide:r,hasNext:i,hasPrev:a,currentPage:o,total:s,isPresenter:c,enterPresenter:l,exitPresenter:u,isEmbedded:d,isPresenterAvailable:f}=V(),{drawingEnabled:p}=st(),{isFullscreen:m,toggle:h}=Ne;return xt=bt.reduce((e,t)=>t(e),x(()=>[{small:!0,icon:`i-carbon:arrow-left`,label:`Previous Click`,action:n,disabled:!a.value},{small:!0,icon:`i-carbon:arrow-right`,label:`Next Click`,action:e,disabled:!i.value},{small:!0,icon:`i-carbon:arrow-up`,label:`Previous Slide`,action:r,disabled:o.value<=1},{small:!0,icon:`i-carbon:arrow-down`,label:`Next Slide`,action:t,disabled:o.value>=s.value},`separator`,{icon:`i-carbon:text-annotation-toggle`,label:Pe.value?`Hide editor`:`Show editor`,action:()=>Pe.value=!Pe.value,show:!1},{icon:`i-carbon:pen`,label:p.value?`Hide drawing toolbar`:`Show drawing toolbar`,action:()=>p.value=!p.value},{icon:`i-carbon:apps`,label:`Show slide overview`,action:ue},c.value&&{icon:`i-carbon:presentation-file`,label:`Exit Presenter Mode`,action:u},f.value&&{icon:`i-carbon:user-speaker`,label:`Enter Presenter Mode`,action:l},!d.value&&{icon:m.value?`i-carbon:minimize`:`i-carbon:maximize`,label:m.value?`Close fullscreen`:`Enter fullscreen`,action:h}].filter(Boolean)))},Ct=b(null);function wt(e,t){Ct.value={x:e,y:t,items:St()}}function Tt(){Ct.value=null}function Et(e){if(H.contextMenu!==!0&&H.contextMenu!=null&&H.contextMenu!==`build`||e.shiftKey||e.defaultPrevented)return;let{isEmbedded:t}=V();t.value||(wt(e.pageX,e.pageY),e.preventDefault(),e.stopPropagation())}var Dt=[`title`,`onClick`],Ot=[`onClick`],kt={class:`mx-auto flex`},At={key:0},jt={class:`w-full text-xs p2`},Mt={class:`text-main text-opacity-50!`},Nt=j({__name:`ContextMenu`,setup(e){let t=D();Ke(t,Tt),Ge(document,`mousedown`,e=>{e.buttons&2&&Tt()},{passive:!0,capture:!0});let r=x(()=>H.contextMenu!=null),i=Ve();d(i,e=>{e||Tt()}),ot(1);let{width:a,height:o}=We(t),s=x(()=>{let e=Ct.value?.x;return e?e+a.value>he.width.value?he.width.value-a.value:e:0}),c=x(()=>{let e=Ct.value?.y;return e?e+o.value>he.height.value?he.height.value-o.value:e:0});return(e,i)=>p(Ct)?(F(),h(`div`,{key:0,ref_key:`container`,ref:t,style:g(`left:${s.value}px;top:${c.value}px`),class:`slidev-glass-effect fixed z-context-menu w-60 flex flex-wrap justify-items-start p-1 animate-fade-in animate-duration-100 rounded-md shadow overflow-hidden select-none`,onContextmenu:i[1]||=y(()=>{},[`prevent`]),onClick:i[2]||=(...e)=>p(Tt)&&p(Tt)(...e)},[(F(!0),h(O,null,l(p(Ct).items.value,(e,t)=>(F(),h(O,{key:t},[e===`separator`?(F(),h(`div`,{key:t,class:`w-full my1 border-t border-main`})):e.show??!0?(F(),h(O,{key:1},[e.small?(F(),h(`div`,{key:0,class:A([`p-2 w-[40px] h-[40px] inline-block text-center cursor-pointer rounded flex`,e.disabled?`op40`:`hover:bg-active`]),title:e.label,onClick:e.action},[typeof e.icon==`string`?(F(),h(`div`,{key:0,class:A([e.icon,`text-1.2em ma`])},null,2)):(F(),k(n(e.icon),{key:1}))],10,Dt)):(F(),h(`div`,{key:1,class:A([`w-full grid grid-cols-[35px_1fr] p-2 pl-0 cursor-pointer rounded`,e.disabled?`op40`:`hover:bg-active`]),onClick:e.action},[f(`div`,kt,[typeof e.icon==`string`?(F(),h(`div`,{key:0,class:A([e.icon,`text-1.2em ma`])},null,2)):(F(),k(n(e.icon),{key:1}))]),typeof e.label==`string`?(F(),h(`div`,At,M(e.label),1)):(F(),k(n(e.label),{key:1}))],10,Ot))],64)):N(`v-if`,!0)],64))),128)),r.value?N(`v-if`,!0):(F(),h(O,{key:0},[i[6]||=f(`div`,{class:`w-full my1 border-t border-main`},null,-1),f(`div`,jt,[f(`div`,Mt,[i[3]||=ie(` Hold `,-1),i[4]||=f(`kbd`,{class:`border px1 py0.5 border-main rounded text-primary`},`Shift`,-1),i[5]||=ie(` and right click to open the native context menu `,-1),N(`v-if`,!0)])])],64))],36)):N(`v-if`,!0)}});function K(e){return Array.isArray?Array.isArray(e):Vt(e)===`[object Array]`}function Pt(e){if(typeof e==`string`)return e;if(typeof e==`bigint`)return e.toString();let t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function Ft(e){return e==null?``:Pt(e)}function q(e){return typeof e==`string`}function It(e){return typeof e==`number`}function Lt(e){return e===!0||e===!1||zt(e)&&Vt(e)==`[object Boolean]`}function Rt(e){return typeof e==`object`}function zt(e){return Rt(e)&&e!==null}function J(e){return e!=null}function Bt(e){return!e.trim().length}function Vt(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var Ht=`Incorrect 'index' type`,Ut=`Invalid doc index: must be a non-negative integer within the bounds of the docs array`,Wt=e=>`Invalid value for key ${e}`,Gt=e=>`Pattern length exceeds max of ${e}.`,Kt=e=>`Missing ${e} property in key`,qt=e=>`Property 'weight' in key '${e}' must be a positive integer`,Jt=`Fuse.match does not support useTokenSearch: token search requires corpus-level statistics (df, fieldCount) that a one-off string comparison does not have. Use new Fuse(...).search(...) instead.`,Yt=Object.prototype.hasOwnProperty,Xt=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let n=Zt(e);this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function Zt(e){let t=null,n=null,r=null,i=1,a=null;if(q(e)||K(e))r=e,t=Qt(e),n=$t(e);else{if(!Yt.call(e,`name`))throw Error(Kt(`name`));let o=e.name;if(r=o,Yt.call(e,`weight`)&&e.weight!==void 0&&(i=e.weight,i<=0))throw Error(qt($t(o)));t=Qt(o),n=$t(o),a=e.getFn??null}return{path:t,id:n,weight:i,src:r,getFn:a}}function Qt(e){return K(e)?e:e.split(`.`)}function $t(e){return K(e)?e.join(`.`):e}function en(e,t){let n=[],r=!1,i=(e,t,a,o)=>{if(J(e)){if(!t[a])n.push(o===void 0?e:{v:e,i:o});else{let s=e[t[a]];if(!J(s))return;if(a===t.length-1&&(q(s)||It(s)||Lt(s)||typeof s==`bigint`))n.push(o===void 0?Ft(s):{v:Ft(s),i:o});else if(K(s)){r=!0;for(let e=0,n=s.length;ee.score===t.score?e.idx=9&&e<=13||e===32||e===160}function sn(e=1,t=3){let n=new Map,r=10**t;return{get(t){let i=0,a=!1;for(let e=0;e{this._keysMap[e.id]=t})}create(){if(this.isCreated||!this.docs.length)return;this.isCreated=!0;let e=this.docs.length;this.records=Array(e);let t=0;if(q(this.docs[0]))for(let n=0;ne&&--this.records[t].i}removeAll(e){let t=new Set;for(let n of e)Number.isInteger(n)&&n>=0&&t.add(n);if(t.size===0)return;this.records=this.records.filter(e=>!t.has(e.i));let n=Array.from(t).sort((e,t)=>e-t);for(let e of this.records){let t=0,r=n.length;for(;t>>1;n[i]t),records:this.records}}};function ln(e,t,{getFn:n=Y.getFn,fieldNormWeight:r=Y.fieldNormWeight}={}){let i=new cn({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(Zt)),i.setSources(t),i.create(),i}function un(e,{getFn:t=Y.getFn,fieldNormWeight:n=Y.fieldNormWeight}={}){let{keys:r,records:i}=e,a=new cn({getFn:t,fieldNormWeight:n});return a.setKeys(r),a.setIndexRecords(i),a}function dn(e=[],t=Y.minMatchCharLength){let n=[],r=-1,i=-1,a=0;for(let o=e.length;a=t&&n.push([r,i]),r=-1)}return e[a-1]&&a-r>=t&&n.push([r,a-1]),n}function fn(e,t,n,{location:r=Y.location,distance:i=Y.distance,threshold:a=Y.threshold,findAllMatches:o=Y.findAllMatches,minMatchCharLength:s=Y.minMatchCharLength,includeMatches:c=Y.includeMatches,ignoreLocation:l=Y.ignoreLocation}={}){if(t.length>32)throw Error(Gt(32));let u=t.length,d=e.length,f=Math.max(0,Math.min(r,d)),p=a,m=f,h=(e,t)=>{let n=e/u;if(l)return n;let r=Math.abs(f-t);return i?n+r/i:r?1:n},g=s>1||c,_=g?Array(d):[],v;for(;(v=e.indexOf(t,m))>-1;){let e=h(0,v);if(p=Math.min(e,p),m=v+u,g){let e=0;for(;e=a;--r){let i=r-1,o=n[e[i]];if(c[r]=(c[r+1]<<1|1)&o,t&&(c[r]|=(y[r+1]|y[r])<<1|1|y[r+1]),c[r]&C&&(b=h(t,i),b<=p)){if(p=b,m=i,x=t,m<=f)break;a=Math.max(1,2*f-m)}}if(h(t+1,f)>p)break;y=c}if(g&&m>=0){let t=Math.min(d-1,m+u-1+x);for(let r=m;r<=t;r+=1)n[e[r]]&&(_[r]=1)}let w={isMatch:m>=0,score:Math.max(.001,b)};if(g){let e=dn(_,s);e.length?c&&(w.indices=e):w.isMatch=!1}return w}function pn(e){let t={};for(let n=0,r=e.length;ne[0]-t[0]||e[1]-t[1]);let t=[e[0]];for(let n=1,r=e.length;ne.normalize(`NFD`).replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,``).replace(gn,e=>hn[e]):e=>e,vn=class{constructor(e,{location:t=Y.location,threshold:n=Y.threshold,distance:r=Y.distance,includeMatches:i=Y.includeMatches,findAllMatches:a=Y.findAllMatches,minMatchCharLength:o=Y.minMatchCharLength,isCaseSensitive:s=Y.isCaseSensitive,ignoreDiacritics:c=Y.ignoreDiacritics,ignoreLocation:l=Y.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:s,ignoreDiacritics:c,ignoreLocation:l},e=s?e:e.toLowerCase(),e=c?_n(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;let u=(e,t)=>{this.chunks.push({pattern:e,alphabet:pn(e),startIndex:t})},d=this.pattern.length;if(d>32){let e=0,t=d%32,n=d-t;for(;e{let{isMatch:m,score:h,indices:g}=fn(e,t,n,{location:i+p,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,includeMatches:r,ignoreLocation:l});m&&(f=!0),d+=h,m&&g&&u.push(...g)});let p={isMatch:f,score:f?d/this.chunks.length:1};return f&&r&&(p.indices=mn(u)),p}},yn=new Set([`fuzzy`,`include`]);function bn(e){return e.startsWith(`inverse`)}var xn=[{type:`exact`,multiRegex:/^="(.*)"$/,singleRegex:/^=(.*)$/,create:e=>({type:`exact`,search(t){let n=t===e;return{isMatch:n,score:+!n,indices:[0,e.length-1]}}})},{type:`include`,multiRegex:/^'"(.*)"$/,singleRegex:/^'(.*)$/,create:e=>({type:`include`,search(t){let n=0,r,i=[],a=e.length;for(;(r=t.indexOf(e,n))>-1;)n=r+a,i.push([r,n-1]);let o=!!i.length;return{isMatch:o,score:+!o,indices:i}}})},{type:`prefix-exact`,multiRegex:/^\^"(.*)"$/,singleRegex:/^\^(.*)$/,create:e=>({type:`prefix-exact`,search(t){let n=t.startsWith(e);return{isMatch:n,score:+!n,indices:[0,e.length-1]}}})},{type:`inverse-prefix-exact`,multiRegex:/^!\^"(.*)"$/,singleRegex:/^!\^(.*)$/,create:e=>({type:`inverse-prefix-exact`,search(t){let n=!t.startsWith(e);return{isMatch:n,score:+!n,indices:[0,t.length-1]}}})},{type:`inverse-suffix-exact`,multiRegex:/^!"(.*)"\$$/,singleRegex:/^!(.*)\$$/,create:e=>({type:`inverse-suffix-exact`,search(t){let n=!t.endsWith(e);return{isMatch:n,score:+!n,indices:[0,t.length-1]}}})},{type:`suffix-exact`,multiRegex:/^"(.*)"\$$/,singleRegex:/^(.*)\$$/,create:e=>({type:`suffix-exact`,search(t){let n=t.endsWith(e);return{isMatch:n,score:+!n,indices:[t.length-e.length,t.length-1]}}})},{type:`inverse-exact`,multiRegex:/^!"(.*)"$/,singleRegex:/^!(.*)$/,create:e=>({type:`inverse-exact`,search(t){let n=t.indexOf(e)===-1;return{isMatch:n,score:+!n,indices:[0,t.length-1]}}})},{type:`fuzzy`,multiRegex:/^"(.*)"$/,singleRegex:/^(.*)$/,create:(e,t={})=>{let n=new vn(e,{location:t.location??Y.location,threshold:t.threshold??Y.threshold,distance:t.distance??Y.distance,includeMatches:t.includeMatches??Y.includeMatches,findAllMatches:t.findAllMatches??Y.findAllMatches,minMatchCharLength:t.minMatchCharLength??Y.minMatchCharLength,isCaseSensitive:t.isCaseSensitive??Y.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics??Y.ignoreDiacritics,ignoreLocation:t.ignoreLocation??Y.ignoreLocation});return{type:`fuzzy`,search(e){return n.searchIn(e)}}}}],Sn=xn.length,Cn=`\0`,wn=`|`;function Tn(e){let t=[],n=e.length,r=0;for(;r=n)break;let i=r;for(;i=n||e[t]===` `){i++;break}if(e[t]===`$`&&(t+1>=n||e[t+1]===` `)){i+=2;break}}i++}t.push(e.substring(r,i)),r=i}else{for(;i{let n=Tn(e.replace(/\u0000/g,`|`).trim()).filter(e=>e&&!!e.trim()),r=[];for(let e=0,i=n.length;e!!(e[Mn.AND]||e[Mn.OR]),Fn=e=>!!e[Nn.PATH],In=e=>!K(e)&&Rt(e)&&!Pn(e),Ln=e=>({[Mn.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function Rn(e,t,{auto:n=!0}={}){let r=e=>{if(q(e)){let r={keyId:null,pattern:e};return n&&(r.searcher=jn(e,t)),r}let i=Object.keys(e),a=Fn(e);if(!a&&i.length>1&&!Pn(e))return r(Ln(e));if(In(e)){let r=a?e[Nn.PATH]:i[0],o=a?e[Nn.PATTERN]:e[r];if(!q(o))throw Error(Wt(r));let s={keyId:$t(r),pattern:o};return n&&(s.searcher=jn(o,t)),s}let o={children:[],operator:i[0]};return i.forEach(t=>{let n=e[t];K(n)&&n.forEach(e=>{o.children.push(r(e))})}),o};return Pn(e)||(e=Ln(e)),r(e)}function zn(e,{ignoreFieldNorm:t=Y.ignoreFieldNorm}){let n=1;return e.forEach(({key:e,norm:r,score:i})=>{let a=e?e.weight:null;n*=(i===0&&a?2**-52:i)**+((a||1)*(t?1:r))}),n}function Bn(e,{ignoreFieldNorm:t=Y.ignoreFieldNorm}){e.forEach(e=>{e.score=zn(e.matches,{ignoreFieldNorm:t})})}var Vn=class{constructor(e,t){this.limit=e,this.heap=[],this.comparator=t}get size(){return this.heap.length}insert(e){this.size0;){let n=e-1>>1;if(this.comparator(t[e],t[n])<=0)break;let r=t[e];t[e]=t[n],t[n]=r,e=n}}_sinkDown(e){let t=this.heap,n=t.length,r=e;do{e=r;let i=2*e+1,a=2*e+2;if(i0&&(r=i),a0&&(r=a),r!==e){let n=t[e];t[e]=t[r],t[r]=n}}while(r!==e)}};function Hn(e){let t=[];return e.matches.forEach(e=>{if(!J(e.indices)||!e.indices.length)return;let n={indices:e.indices,value:e.value};e.key&&(n.key=e.key.id),e.idx>-1&&(n.refIndex=e.idx),t.push(n)}),t}function Un(e,t,{includeMatches:n=Y.includeMatches,includeScore:r=Y.includeScore}={}){return e.map(e=>{let{idx:i}=e,a={item:t[i],refIndex:i};return n&&(a.matches=Hn(e)),r&&(a.score=e.score),a})}var Wn=/[\p{L}\p{M}\p{N}_]+/gu,Gn=new WeakSet;function Kn(e){Gn.has(e)||(Gn.add(e),console.warn(`[Fuse] tokenize regex ${e} lacks the global flag; only the first match per text will be returned. Add the 'g' flag.`))}function qn(e){if(typeof e==`function`){let t=!1;return n=>{let r=e(n);if(!t&&(t=!0,!Array.isArray(r)||r.some(e=>typeof e!=`string`)))throw Error(`[Fuse] tokenize function must return string[]; received ${Array.isArray(r)?`array containing non-strings`:typeof r}.`);return r}}return e instanceof RegExp?(e.global||Kn(e),t=>t.match(e)||[]):e=>e.match(Wn)||[]}function Jn({isCaseSensitive:e=!1,ignoreDiacritics:t=!1,tokenize:n}={}){let r=qn(n);return{tokenize(n){return e||(n=n.toLowerCase()),t&&(n=_n(n)),r(n)}}}var Yn=class{static condition(e,t){return t.useTokenSearch}constructor(e,t){this.options=t,this.analyzer=Jn({isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,tokenize:t.tokenize});let n=this.analyzer.tokenize(e),{df:r,fieldCount:i}=t._invertedIndex;this.termSearchers=[],this.idfWeights=[];for(let e of n){this.termSearchers.push(new vn(e,{location:t.location,threshold:t.threshold,distance:t.distance,includeMatches:t.includeMatches,findAllMatches:t.findAllMatches,minMatchCharLength:t.minMatchCharLength,isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,ignoreLocation:!0}));let n=r.get(e)||0,a=Math.log(1+(i-n+.5)/(n+.5));this.idfWeights.push(a)}this.combineAll=t.tokenMatch===`all`,this.numTerms=this.termSearchers.length,this.useMask=this.numTerms<=31}searchIn(e){if(!this.termSearchers.length)return{isMatch:!1,score:1};let t=[],n=0,r=0,i=0,a=0,o=this.combineAll&&!this.useMask?new Set:null;for(let s=0;s0?1-n/r:0,c={isMatch:!0,score:Math.max(.001,s)};return this.options.includeMatches&&t.length&&(c.indices=mn(t)),this.combineAll&&(this.useMask?c.matchedMask=a:c.matchedTerms=o,c.termCount=this.numTerms),c}};function Xn(e,t,n,r){let i=r.tokenize(t);if(!i.length)return;e.fieldCount++,e.docFieldCount.set(n,(e.docFieldCount.get(n)||0)+1);let a=new Set(i),o=e.docTermFieldHits.get(n);o||(o=new Map,e.docTermFieldHits.set(n,o));for(let t of a)o.set(t,(o.get(t)||0)+1),e.df.set(t,(e.df.get(t)||0)+1)}function Zn(e,t,n,r){let{i,v:a,$:o}=t;if(a!==void 0){Xn(e,a,i,r);return}if(o)for(let t=0;te-t);for(let t of n)er(e,t);let r=e=>{let t=0,r=n.length;for(;t>>1;n[i]i?r(t):t,n);e.docFieldCount=a;let o=new Map;for(let[t,n]of e.docTermFieldHits)o.set(t>i?r(t):t,n);e.docTermFieldHits=o}var X=class{constructor(e,t,n){this.options={...Y,...t},this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new Xt(this.options.keys),this._docs=e,this._myIndex=null,this._invertedIndex=null,this.setCollection(e,n),this._lastQuery=null,this._lastSearcher=null}_getSearcher(e){if(this._lastQuery===e)return this._lastSearcher;let t=jn(e,this._invertedIndex?{...this.options,_invertedIndex:this._invertedIndex}:this.options);return this._lastQuery=e,this._lastSearcher=t,t}setCollection(e,t){if(this._docs=e,t&&!(t instanceof cn))throw Error(Ht);if(this._myIndex=t||ln(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){let e=Jn({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});this._invertedIndex=Qn(this._myIndex.records,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}add(e){if(!J(e))return;this._docs.push(e);let t=this._myIndex.add(e,this._docs.length-1);if(this._invertedIndex&&t){let e=Jn({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});$n(this._invertedIndex,t,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}remove(e=()=>!1){let t=[],n=[];for(let r=0,i=this._docs.length;r!e.has(n)),this._myIndex.removeAll(n),this._invalidateSearcherCache()}return t}removeAt(e){if(!Number.isInteger(e)||e<0||e>=this._docs.length)throw Error(Ut);this._invertedIndex&&tr(this._invertedIndex,[e]);let t=this._docs.splice(e,1)[0];return this._myIndex.removeAt(e),this._invalidateSearcherCache(),t}_invalidateSearcherCache(){this._lastQuery=null,this._lastSearcher=null}getIndex(){return this._myIndex}_normalizedKeys(){return this._myIndex.keys.map(e=>this._keyStore.get(e.id)||e)}search(e,t){let{limit:n=-1}=t||{},{includeMatches:r,includeScore:i,shouldSort:a,sortFn:o,ignoreFieldNorm:s}=this.options;if(q(e)&&!e.trim()){let e=this._docs.map((e,t)=>({item:e,refIndex:t}));return It(n)&&n>-1&&(e=e.slice(0,n)),e}let c=a&&It(n)&&n>0&&q(e),l=o,u=(e,t)=>l(e,t)||e.idx-t.idx,d;if(c){let t=new Vn(n,u);q(this._docs[0])?this._searchStringList(e,{heap:t,ignoreFieldNorm:s}):this._searchObjectList(e,{heap:t,ignoreFieldNorm:s}),d=t.extractSorted()}else d=q(e)?q(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e),Bn(d,{ignoreFieldNorm:s}),a&&d.sort(q(e)?u:l),It(n)&&n>-1&&(d=d.slice(0,n));return Un(d,this._docs,{includeMatches:r,includeScore:i})}_searchStringList(e,{heap:t,ignoreFieldNorm:n}={}){let r=this._getSearcher(e),i=this.options.useTokenSearch&&this.options.tokenMatch===`all`,{records:a}=this._myIndex,o=t?null:[];return a.forEach(({v:e,i:a,n:s})=>{if(!J(e))return;let c=r.searchIn(e);if(c.isMatch){let r={score:c.score,value:e,norm:s,indices:c.indices};i&&(r.matchedMask=c.matchedMask,r.matchedTerms=c.matchedTerms,r.termCount=c.termCount);let l=[r];if(!i||this._coversAllTokens(l)){let r={item:e,idx:a,matches:l};t?(r.score=zn(r.matches,{ignoreFieldNorm:n}),t.insert(r)):o.push(r)}}}),o}_searchLogical(e){let t=Rn(e,this.options),n=this._normalizedKeys(),r=(e,t,i)=>{if(!(`children`in e)){let{keyId:r,searcher:a}=e,o;return r===null?(o=[],n.forEach((e,n)=>{o.push(...this._findMatches({key:e,value:t[n],searcher:a}))})):o=this._findMatches({key:this._keyStore.get(r),value:this._myIndex.getValueForItemAtKeyId(t,r),searcher:a}),o&&o.length?[{idx:i,item:t,matches:o}]:[]}let{children:a,operator:o}=e,s=[];for(let e=0,n=a.length;e{if(J(e)){let i=r(t,e,n);i.length&&(a.has(n)||(a.set(n,{idx:n,item:e,matches:[]}),o.push(a.get(n))),i.forEach(({matches:e})=>{a.get(n).matches.push(...e)}))}}),o}_searchObjectList(e,{heap:t,ignoreFieldNorm:n}={}){let r=this._getSearcher(e),i=this.options.useTokenSearch&&this.options.tokenMatch===`all`,{records:a}=this._myIndex,o=this._normalizedKeys(),s=t?null:[];return a.forEach(({$:e,i:a})=>{if(!J(e))return;let c=[],l=!1,u=!1;if(o.forEach((t,n)=>{let i=this._findMatches({key:t,value:e[n],searcher:r});i.length?(c.push(...i),i[0].hasInverse&&(u=!0)):l=!0}),!(u&&l)&&c.length&&(!i||this._coversAllTokens(c))){let r={idx:a,item:e,matches:c};t?(r.score=zn(r.matches,{ignoreFieldNorm:n}),t.insert(r)):s.push(r)}}),s}_findMatches({key:e,value:t,searcher:n}){if(!J(t))return[];let r=[];if(K(t))t.forEach(({v:t,i,n:a})=>{if(!J(t))return;let o=n.searchIn(t);if(o.isMatch){let n={score:o.score,key:e,value:t,idx:i,norm:a,indices:o.indices,hasInverse:o.hasInverse};o.termCount!==void 0&&(n.matchedMask=o.matchedMask,n.matchedTerms=o.matchedTerms,n.termCount=o.termCount),r.push(n)}});else{let{v:i,n:a}=t,o=n.searchIn(i);if(o.isMatch){let t={score:o.score,key:e,value:i,norm:a,indices:o.indices,hasInverse:o.hasInverse};o.termCount!==void 0&&(t.matchedMask=o.matchedMask,t.matchedTerms=o.matchedTerms,t.termCount=o.termCount),r.push(t)}}return r}_coversAllTokens(e){let t=e.length?e[0].termCount:void 0;if(t===void 0)return!0;if(t<=31){let n=0;for(let t=0;tAn(e))};var nr=X,rr={key:0},ir={key:1},ar={key:2},or={key:3},sr={key:4},cr={key:5},lr={key:6},ur={key:7},dr={key:8},fr={key:9},pr={key:10},mr={key:11},hr={key:12},gr={key:13},_r={key:14},vr={key:15},yr={key:16},br={key:17},xr={key:18},Sr={key:19},Cr={key:20},wr={key:21},Tr={key:22},Er={key:23},Dr={key:24},Or={key:25},kr={key:26},Ar={key:27},jr={key:28},Mr={key:29},Nr={key:30},Pr={key:31},Fr={key:32},Ir={key:33},Lr={key:34},Rr={key:35},zr={key:36},Br={key:37},Vr={key:38},Hr={key:39},Ur={key:40},Wr=j({__name:`title-renderer`,props:{no:{}},setup(e){let t=e,{$page:n}=$e(),r=x(()=>+(t.no??n.value));return(e,t)=>(F(),h(`div`,null,[r.value===1?(F(),h(`p`,rr,`Transformers (class)`)):r.value===2?(F(),h(`p`,ir,`Where we are`)):r.value===3?(F(),h(`p`,ar,`Delete the recurrence`)):r.value===4?(F(),h(`p`,or,`Where last week stopped`)):r.value===5?(F(),h(`p`,sr,`The move`)):r.value===6?(F(),h(`p`,cr,`What a transformer is`)):r.value===7?(F(),h(`p`,lr,`Poll: which wall attention solves`)):r.value===8?(F(),h(`p`,ur,`Query, key, value`)):r.value===9?(F(),h(`p`,dr,`Start from a lookup`)):r.value===10?(F(),h(`p`,fr,`Three roles, one vector`)):r.value===11?(F(),h(`p`,pr,`The sentence we will use all lecture`)):r.value===12?(F(),h(`p`,mr,`Three lenses on one word`)):r.value===13?(F(),h(`p`,hr,`Four steps, and that is the whole mechanism`)):r.value===14?(F(),h(`p`,gr,`Same word, same weights, different neighbour`)):r.value===15?(F(),h(`p`,_r,`Every query at once`)):r.value===16?(F(),h(`p`,vr,`The whole layer, in one line`)):r.value===17?(F(),h(`p`,yr,`From one head to one block`)):r.value===18?(F(),h(`p`,br,`One softmax can only point at one thing`)):r.value===19?(F(),h(`p`,xr,`Four heads, one question each`)):r.value===20?(F(),h(`p`,Sr,`Attention does not know what order the words came in`)):r.value===21?(F(),h(`p`,Cr,`So put the position into the vector`)):r.value===22?(F(),h(`p`,wr,`The other half of the block`)):r.value===23?(F(),h(`p`,Tr,`Two wrappers that make it stackable`)):r.value===24?(F(),h(`p`,Er,`The block, assembled`)):r.value===25?(F(),h(`p`,Dr,`The bill for looking everywhere`)):r.value===26?(F(),h(`p`,Or,`The original transformer`)):r.value===27?(F(),h(`p`,kr,`Two stacks`)):r.value===28?(F(),h(`p`,Ar,`The architecture, step by step`)):r.value===29?(F(),h(`p`,jr,`The mask, and why the loss collapses without it`)):r.value===30?(F(),h(`p`,Mr,`Modern transformers`)):r.value===31?(F(),h(`p`,Nr,`The architecture forked three ways`)):r.value===32?(F(),h(`p`,Pr,`Why decoder-only took over`)):r.value===33?(F(),h(`p`,Fr,`One wire moved, and deep stacks started training`)):r.value===34?(F(),h(`p`,Ir,`The same block, more of it`)):r.value===35?(F(),h(`p`,Lr,`In PyTorch`)):r.value===36?(F(),h(`p`,Rr,`The mechanism is one function call`)):r.value===37?(F(),h(`p`,zr,`Shapes, end to end`)):r.value===38?(F(),h(`p`,Br,`Where that leaves us`)):r.value===39?(F(),h(`p`,Vr,`Where we got to`)):r.value===40?(F(),h(`p`,Hr,`Reading, and the lab`)):r.value===41?(F(),h(`p`,Ur,`To be continued…`)):N(`v-if`,!0)]))}}),Gr={class:`bg-main transform`,shadow:`~`,p:`x-4 y-2`,border:`~ transparent rounded dark:main`},Kr=[`value`,`disabled`],qr={table:``,"w-full":``,"border-collapse":``},Jr=[`border`,`onClick`],Yr={"text-right":``,op50:``,"text-sm":``,"table-cell":``,"py-2":``,"pl-4":``,"pr-3":``,"vertical-middle":``},Xr=Le(j({__name:`Goto`,setup(e){let t=D(),n=D(),r=D(),i=D(),a=D(``),o=D(0),{go:s,slides:u}=V();function m(e){return e!=null}let g=x(()=>new nr(u.value.map(e=>e.meta?.slide).filter(m),{keys:[`no`,`title`],threshold:.3,shouldSort:!0,minMatchCharLength:1})),_=x(()=>a.value.startsWith(`/`)?a.value.substring(1):a.value),b=x(()=>_.value?g.value.search(_.value).map(e=>e.item):[]),S=x(()=>!!b.value.length);function C(){if(S.value){let e=b.value.at(o.value||0);e&&s(e.no)}w()}function w(){a.value=``,z.value=!1}function T(e){e.preventDefault(),o.value++,o.value>=b.value.length&&(o.value=0),E()}function ee(e){e.preventDefault(),o.value--,o.value<=-2&&(o.value=b.value.length-1),E()}function E(){let e=i.value?.[o.value];e&&r.value&&(e.offsetTop+e.offsetHeight>r.value.offsetHeight+r.value.scrollTop?r.value.scrollTo({behavior:`smooth`,top:e.offsetTop+e.offsetHeight-r.value.offsetHeight+1}):e.offsetTop{e?(a.value=``,o.value=0,setTimeout(()=>n.value?.focus(),0)):n.value?.blur()}),d(je,()=>{t.value?.contains(je.value)||w()}),(e,s)=>(F(),h(`div`,{id:`slidev-goto-dialog`,ref_key:`container`,ref:t,class:A([`fixed right-5 transition-all`,p(z)?`top-5`:`-top-20 op0 pointer-events-none`]),"w-90":``,"max-w-90":``,"min-w-90":``},[f(`div`,Gr,[f(`input`,{id:`slidev-goto-input`,ref_key:`input`,ref:n,value:a.value,type:`text`,disabled:!p(z),class:A([`outline-none bg-transparent`,{"text-red-400":!S.value&&a.value}]),placeholder:`Goto...`,onKeydown:[v(C,[`enter`]),v(w,[`escape`]),v(T,[`down`]),v(ee,[`up`])],onInput:te},null,42,Kr)]),p(z)&&b.value.length>0?(F(),h(`div`,{key:0,ref_key:`list`,ref:r,class:`autocomplete-list`,shadow:`~`,border:`~ transparent rounded dark:main`},[f(`ul`,qr,[(F(!0),h(O,null,l(b.value,(e,t)=>(F(),h(`li`,{ref_for:!0,ref_key:`items`,ref:i,key:e.id,role:`button`,tabindex:`0`,"cursor-pointer":``,hover:`op100`,"table-row":``,"items-center":``,border:t===0?void 0:`t main`,class:A(o.value===t?`bg-active op100`:`op80`),onClick:y(t=>ne(e.no),[`stop`,`prevent`])},[f(`div`,Yr,M(e.no),1),c(p(Wr),{"table-cell":``,"py-2":``,"pr-4":``,"w-full":``,no:e.no},null,8,[`no`])],10,Jr))),128))])],512)):N(`v-if`,!0)],2))}}),[[`__scopeId`,`data-v-61e41ebd`]]),Zr=D(1),Qr=x(()=>_e.value.length),Z=D(0),$r=D(0);function ei(){Z.value>Zr.value&&--Z.value}function ti(){Z.valueZr.value){let e=Z.value-$r.value;eQr.value&&(e=Qr.value),Z.value=e}}var ii=[`onClick`],ai={class:`text-green font-bold`},oi={class:`opacity-50`},si={key:1,class:`opacity-50`},ci={class:`fixed top-4 right-4 z-modal text-gray-400 flex flex-col items-center gap-2`},li=128,ui=32,di=j({__name:`QuickOverview`,setup(t){let{currentSlideNo:n,go:r,slides:i}=V();function a(){I.value=!1}function o(e){r(e),a()}function d(e){return e===Z.value}let _=Ee.smaller(`xs`),v=Ee.smaller(`sm`),y=x(()=>_.value?he.width.value-li:v.value?(he.width.value-li-ui)/2:300),b=x(()=>Math.floor((he.width.value-li)/(y.value+ui))),S=D(``);return Ge(`keypress`,e=>{if(!I.value){S.value=``;return}if(e.key===`Enter`){e.preventDefault(),S.value?(o(+S.value),S.value=``):o(Z.value);return}let t=Number.parseInt(e.key.replace(/\D/g,``));if(Number.isNaN(t)){S.value=``;return}if(!S.value&&t===0)return;if(S.value+=String(t),+S.value>i.value.length){S.value=``;return}let n=i.value.findIndex(e=>`/${e.no}`===S.value);n!==-1&&(Z.value=n+1),S.value*10>i.value.length&&(o(+S.value),S.value=``)}),u(()=>{Z.value=n.value,$r.value=b.value}),(t,n)=>(F(),h(O,null,[c(m,{"enter-active-class":`duration-150 ease-out`,"enter-from-class":`opacity-0 scale-102 !backdrop-blur-0px`,"leave-active-class":`duration-200 ease-in`,"leave-to-class":`opacity-0 scale-102 !backdrop-blur-0px`},{default:s(()=>[p(I)?(F(),h(`div`,{key:0,class:`fixed left-0 right-0 top-0 h-[calc(var(--vh,1vh)*100)] z-modal bg-main !bg-opacity-75 p-16 py-20 overflow-y-auto backdrop-blur-5px select-none`,onClick:a},[f(`div`,{class:`grid gap-y-4 gap-x-8 w-full`,style:g(`grid-template-columns: repeat(auto-fit,minmax(${y.value}px,1fr))`)},[(F(!0),h(O,null,l(p(i),(e,t)=>(F(),h(`div`,{key:e.no,class:`relative`},[f(`div`,{class:A([`inline-block border rounded overflow-hidden bg-main hover:border-primary transition`,d(t+1)||p(Z)===t+1?`border-primary`:`border-main`]),onClick:t=>o(e.no)},[(F(),k(ut,{key:e.no,no:e.no,"use-snapshot":!0,width:y.value,class:`pointer-events-none`},{default:s(()=>[c(mt,{"clicks-context":p(ce)(e,p(Qe)),route:e,"render-context":`overview`},null,8,[`clicks-context`,`route`]),c(ft,{page:e.no},null,8,[`page`])]),_:2},1032,[`no`,`width`]))],10,ii),f(`div`,{class:`absolute top-0`,style:g(`left: ${y.value+5}px`)},[S.value&&String(t+1).startsWith(S.value)?(F(),h(O,{key:0},[f(`span`,ai,M(S.value),1),f(`span`,oi,M(String(t+1).slice(S.value.length)),1)],64)):(F(),h(`span`,si,M(t+1),1))],4)]))),128))],4)])):N(`v-if`,!0)]),_:1}),e(f(`div`,ci,[c(G,{title:`Close`,class:`text-2xl`,onClick:a},{default:s(()=>[...n[0]||=[f(`div`,{class:`i-carbon:close`},null,-1)]]),_:1}),(F(),k(G,{key:0,as:`a`,title:`Slides Overview`,target:`_blank`,href:`${p(ve)}overview`,"tab-index":`-1`,class:`text-2xl`},{default:s(()=>[...n[1]||=[f(`div`,{class:`i-carbon:list-boxes`},null,-1)]]),_:1},8,[`href`])),N(`v-if`,!0)],512),[[re,p(I)]])],64))}});function fi(){let e=Xe();return x(()=>{let t=lt.value?.getBoundingClientRect();if(!t)return;let n=(e.x.value-t.left)/t.width*100,r=(e.y.value-t.top)/t.height*100;if(!(n<0||n>100||r<0||r>100))return{x:n,y:r}})}var pi={key:0,class:`absolute top-0 left-0 right-0 bottom-0 pointer-events-none text-xl`},mi=Le(j({__name:`LaserPointer`,setup(e){let t=fi(),{isPresenter:n}=V(),r=x(()=>!n.value&&rt.cursor?.style===`laser`?rt.cursor:xe.value===`laser`?t.value:null);return a(()=>{u(()=>{document.body.classList.toggle(`slidev-self-laser-active`,xe.value===`laser`&&!!r.value)})}),(e,t)=>r.value?(F(),h(`div`,pi,[f(`div`,{class:`laser-pointer`,style:g({left:`${r.value.x}%`,top:`${r.value.y}%`})},null,4)])):N(`v-if`,!0)}}),[[`__scopeId`,`data-v-1d1438ab`]]),hi={render:()=>[]},gi={key:0,class:`bg-main text-main shadow-xl absolute bottom-10 left-0 z-menu py2`,border:`~ main rounded-md`},_i=j({__name:`MenuButton`,props:{modelValue:{default:!1},disabled:{default:!1}},setup(e,{emit:t}){let n=Re(e,`modelValue`,t,{passive:!0}),i=D();return Ke(i,()=>{n.value=!1}),(t,a)=>(F(),h(`div`,{ref_key:`el`,ref:i,class:`flex relative`},[f(`button`,{class:A({disabled:e.disabled}),onClick:a[0]||=e=>n.value=!p(n)},[r(t.$slots,`button`,{value:p(n),class:A({disabled:e.disabled})})],2),(F(),k(S,null,[p(n)?(F(),h(`div`,gi,[r(t.$slots,`menu`)])):N(`v-if`,!0)],1024))],512))}}),vi={border:`~ main rounded`,flex:`~ gap-2 items-center`,relative:``,"h-5":``,"w-5":``,"p0.5":``,"hover:bg-active":``,p1:``},yi=[`disabled`],bi=j({__name:`FormCheckbox`,props:T({disabled:{type:Boolean}},{modelValue:{type:Boolean,type:Boolean},modelModifiers:{}}),emits:[`update:modelValue`],setup(t){let n=i(t,`modelValue`);return(r,i)=>(F(),h(`div`,vi,[f(`div`,{"i-ri-check-line":``,class:A(n.value?``:`op0`)},null,2),e(f(`input`,{"onUpdate:modelValue":i[0]||=e=>n.value=e,type:`checkbox`,absolute:``,"inset-0":``,"opacity-10":``,disabled:t.disabled},null,8,yi),[[_,n.value]])]))}}),xi={"w-30":``,"h-8":``,flex:`~ gap-1 items-center`},Si={key:0,"w-1.5":``,"h-1.5":``,"bg-primary":``,rounded:``,absolute:``,"top-0":``,"right--2":``},Ci={key:0,"w-1.5":``,"h-1.5":``,"bg-primary":``,rounded:``,absolute:``,"top-0":``,"right--2":``},wi=[`innerHTML`],Q=j({__name:`FormItem`,props:{title:{},nested:{type:[Boolean,Number]},div:{type:Boolean},description:{},dot:{type:Boolean}},emits:[`reset`],setup(e,{emit:t}){let i=t;function a(){i(`reset`)}return(t,i)=>(F(),k(n(e.div?`div`:`label`),{flex:`~ row gap-2 items-center`,"select-none":``},{default:s(()=>[f(`div`,xi,[e.nested?(F(),h(`div`,{key:0,"i-ri-corner-down-right-line":``,op40:``,style:g(typeof e.nested==`number`?{marginLeft:`${e.nested*.5+.5}rem`}:{marginLeft:`0.25rem`})},null,4)):N(`v-if`,!0),e.description?(F(),k(p(te),{key:2,distance:`10`},{popper:s(()=>[f(`div`,{"text-sm":``,"min-w-90":``,innerHTML:e.description},null,8,wi)]),default:s(()=>[f(`div`,{op75:``,"text-right":``,relative:``,onDblclick:a},[ie(M(e.title)+` `,1),e.dot?(F(),h(`div`,Ci)):N(`v-if`,!0)],32)]),_:1})):(F(),h(`div`,{key:1,op75:``,relative:``,onDblclick:a},[ie(M(e.title)+` `,1),e.dot?(F(),h(`div`,Si)):N(`v-if`,!0)],32))]),r(t.$slots,`default`)]),_:3}))}}),Ti={relative:``,"h-22px":``},Ei={key:0,"pointer-events-none":``,absolute:``,"right-1":``,"top-0.5":``,"text-xs":``,op25:``},Di=j({__name:`FormSlider`,props:T({max:{},min:{},step:{},unit:{},default:{}},{modelValue:{type:Number},modelModifiers:{}}),emits:[`update:modelValue`],setup(t){let n=t,r=i(t,`modelValue`);return(i,a)=>(F(),h(O,null,[f(`div`,{relative:``,"h-22px":``,"w-60":``,"flex-auto":``,onDblclick:a[1]||=e=>n.default===void 0?null:r.value=n.default},[e(f(`input`,o({"onUpdate:modelValue":a[0]||=e=>r.value=e,type:`range`,class:`slider`},n,{absolute:``,"bottom-0":``,"left-0":``,"right-0":``,"top-0":``,"z-10":``,"w-full":``,"align-top":``}),null,16),[[E,r.value,void 0,{number:!0}]]),n.default==null?N(`v-if`,!0):(F(),h(`span`,{key:0,border:`r main`,absolute:``,"bottom-0":``,"top-0":``,"h-full":``,"w-1px":``,op75:``,style:g({left:`${(n.default-t.min)/(t.max-t.min)*100}%`})},null,4))],32),f(`div`,Ti,[e(f(`input`,o({"onUpdate:modelValue":a[2]||=e=>r.value=e,type:`number`},n,{border:`~ main rounded`,m0:``,"w-20":``,"bg-gray:5":``,pl2:``,"align-top":``,"text-sm":``}),null,16),[[E,r.value,void 0,{number:!0}]]),n.unit?(F(),h(`span`,Ei,M(n.unit),1)):N(`v-if`,!0)])],64))}}),Oi={error:0,client:60,Light:60,Dark:240};function ki(e,t=1){if(Oi[e])return Ai(Oi[e],t);let n=0;for(let t=0;t!t.text||t.color===!1?{}:{color:typeof t.color==`number`?Ai(t.color):ki(t.text),background:typeof t.color==`number`?Ai(t.color,.1):ki(t.text,.1)}),a=x(()=>(t.size||`sm`)===`sm`?`px-1.5 text-11px leading-1.6em`:``);return(o,c)=>(F(),k(n(e.as||`span`),{"ws-nowrap":``,rounded:``,class:A(a.value),style:g(i.value)},{default:s(()=>[r(o.$slots,`default`,{},()=>[f(`span`,{textContent:M(t.text)},null,8,ji)])]),_:3},8,[`class`,`style`]))}}),Ni={flex:`~ gap-1 items-center`,rounded:``,"bg-gray:4":``,p1:``,"m--1":``},Pi=j({__name:`SegmentControl`,props:{options:{},modelValue:{}},emits:[`update:modelValue`],setup(e){return(t,n)=>(F(),h(`div`,Ni,[(F(!0),h(O,null,l(e.options,n=>(F(),k(Mi,{key:n.value,class:A([`px-2 py-1 text-xs font-mono`,n.value===e.modelValue?``:`op50`]),color:n.value===e.modelValue,"aria-pressed":n.value===e.modelValue,size:`none`,text:n.label,as:`button`,onClick:e=>t.$emit(`update:modelValue`,n.value)},null,8,[`class`,`color`,`aria-pressed`,`text`,`onClick`]))),128))]))}}),Fi={"text-sm":``,"select-none":``,flex:`~ col gap-1`,"min-w-30":``,px4:``},Ii=j({__name:`Settings`,setup(e){let{isPresenter:t}=V(),{isSupported:n}=Ye();return(e,r)=>(F(),h(`div`,Fi,[c(Q,{title:`Invert`,dot:p(L).invert!==p(R).invert,onReset:r[1]||=e=>p(L).invert=p(R).invert},{default:s(()=>[c(bi,{modelValue:p(L).invert,"onUpdate:modelValue":r[0]||=e=>p(L).invert=e},null,8,[`modelValue`])]),_:1},8,[`dot`]),c(Q,{title:`Brightness`,dot:p(L).brightness!==p(R).brightness,onReset:r[3]||=e=>p(L).brightness=p(R).brightness},{default:s(()=>[c(Di,{modelValue:p(L).brightness,"onUpdate:modelValue":r[2]||=e=>p(L).brightness=e,max:1.5,min:.5,step:.02,default:p(R).brightness},null,8,[`modelValue`,`default`])]),_:1},8,[`dot`]),c(Q,{title:`Contrast`,dot:p(L).contrast!==p(R).contrast,onReset:r[5]||=e=>p(L).contrast=p(R).contrast},{default:s(()=>[c(Di,{modelValue:p(L).contrast,"onUpdate:modelValue":r[4]||=e=>p(L).contrast=e,max:1.5,min:.5,step:.02,default:p(R).contrast},null,8,[`modelValue`,`default`])]),_:1},8,[`dot`]),c(Q,{title:`Saturation`,dot:p(L).saturate!==p(R).saturate,onReset:r[7]||=e=>p(L).saturate=p(R).saturate},{default:s(()=>[c(Di,{modelValue:p(L).saturate,"onUpdate:modelValue":r[6]||=e=>p(L).saturate=e,max:1.5,min:.5,step:.02,default:p(R).saturate},null,8,[`modelValue`,`default`])]),_:1},8,[`dot`]),c(Q,{title:`Sepia`,dot:p(L).sepia!==p(R).sepia,onReset:r[9]||=e=>p(L).sepia=p(R).sepia},{default:s(()=>[c(Di,{modelValue:p(L).sepia,"onUpdate:modelValue":r[8]||=e=>p(L).sepia=e,max:2,min:-2,step:.02,default:p(R).sepia},null,8,[`modelValue`,`default`])]),_:1},8,[`dot`]),c(Q,{title:`Hue Rotate`,dot:p(L).hueRotate!==p(R).hueRotate,onReset:r[11]||=e=>p(L).hueRotate=p(R).hueRotate},{default:s(()=>[c(Di,{modelValue:p(L).hueRotate,"onUpdate:modelValue":r[10]||=e=>p(L).hueRotate=e,max:180,min:-180,step:.1,default:p(R).hueRotate},null,8,[`modelValue`,`default`])]),_:1},8,[`dot`]),r[16]||=f(`div`,{class:`h-1px opacity-5 bg-current w-full my2`},null,-1),c(Q,{title:`Cursor Style`},{default:s(()=>[c(Pi,{modelValue:p(xe),"onUpdate:modelValue":r[12]||=e=>w(xe)?xe.value=e:null,options:[{label:`Cursor`,value:`cursor`},{label:`Laser`,value:`laser`}]},null,8,[`modelValue`])]),_:1}),p(t)?N(`v-if`,!0):(F(),k(Q,{key:0,title:`Slide Scale`},{default:s(()=>[c(Pi,{modelValue:p(ae),"onUpdate:modelValue":r[13]||=e=>w(ae)?ae.value=e:null,options:[{label:`Fit`,value:0},{label:`1:1`,value:1}]},null,8,[`modelValue`])]),_:1})),p(n)?(F(),k(Q,{key:1,title:`Wake Lock`},{default:s(()=>[c(bi,{modelValue:p(le),"onUpdate:modelValue":r[14]||=e=>w(le)?le.value=e:null},null,8,[`modelValue`])]),_:1})):N(`v-if`,!0),p(t)?N(`v-if`,!0):(F(),k(Q,{key:2,title:`Hide Idle Cursor`},{default:s(()=>[c(bi,{modelValue:p(we),"onUpdate:modelValue":r[15]||=e=>w(we)?we.value=e:null},null,8,[`modelValue`])]),_:1}))]))}}),Li={class:`select-list`},Ri={class:`title`},zi={class:`items`},Bi=[`onClick`],Vi=Le(j({__name:`SelectList`,props:{modelValue:{type:[Object,String,Number,Boolean]},title:{type:String},items:{type:Array}},setup(e,{emit:t}){let n=Re(e,`modelValue`,t,{passive:!0});return(t,r)=>(F(),h(`div`,Li,[f(`div`,Ri,M(e.title),1),f(`div`,zi,[(F(!0),h(O,null,l(e.items,e=>(F(),h(`div`,{key:e.value,class:A([`item`,{active:p(n)===e.value}]),onClick:()=>{n.value=e.value,e.onClick?.()}},[f(`div`,{class:A([`i-carbon:checkmark text-green-500 mya`,{"opacity-0":p(n)!==e.value}])},null,2),f(`div`,{class:A({"opacity-50":p(n)!==e.value})},M(e.display||e.value),3)],10,Bi))),128))])]))}}),[[`__scopeId`,`data-v-aa3b28a6`]]),Hi={"text-sm":``,flex:`~ col gap-2`},Ui={px3:``,"ws-nowrap":``},Wi={"font-bold":``,"text-primary":``},Gi=j({__name:`SyncControls`,setup(e){let{isPresenter:t}=V(),n=x({get:()=>t.value?B.value.presenterReceive:B.value.viewerReceive,set(e){t.value?B.value.presenterReceive=e:B.value.viewerReceive=e}}),r=x({get:()=>t.value?B.value.presenterSend:B.value.viewerSend,set(e){t.value?B.value.presenterSend=e:B.value.viewerSend=e}}),i=x({get:()=>n.value&&r.value?`bidirectional`:n.value&&!r.value?`receive-only`:!n.value&&r.value?`send-only`:`off`,set(e){switch(e){case`bidirectional`:n.value=!0,r.value=!0;break;case`receive-only`:n.value=!0,r.value=!1;break;case`send-only`:n.value=!1,r.value=!0;break;case`off`:n.value=!1,r.value=!1}}});return(e,a)=>(F(),k(_i,null,{button:s(()=>[c(G,{title:`Change sync settings`},{default:s(()=>[f(`div`,{class:A([`i-ph:arrow-up-bold mx--1.2 scale-x-80`,r.value?`text-green6 dark:text-green`:`op30`])},null,2),f(`div`,{class:A([`i-ph:arrow-down-bold mx--1.2 scale-x-80`,n.value?`text-green6 dark:text-green`:`op30`])},null,2)]),_:1})]),menu:s(()=>[f(`div`,Hi,[f(`div`,Ui,[a[1]||=f(`span`,{op75:``},`Slides navigation syncing for `,-1),f(`span`,Wi,M(p(t)?`presenter`:`viewer`),1)]),a[2]||=f(`div`,{class:`h-1px opacity-10 bg-current w-full`},null,-1),c(Vi,{modelValue:i.value,"onUpdate:modelValue":a[0]||=e=>i.value=e,title:`Sync Mode`,items:[{value:`bidirectional`,display:`Bidirectional Sync`},{value:`receive-only`,display:`Receive Only`},{value:`send-only`,display:`Send Only`},{value:`off`,display:`Disable`}]},null,8,[`modelValue`])])]),_:1}))}}),Ki={key:0,class:`i-carbon:minimize`},qi={key:1,class:`i-carbon:maximize`},Ji={key:0,class:`i-carbon-moon`},Yi={key:1,class:`i-carbon-sun`},Xi={key:0,class:`i-carbon-magic-wand-filled color-red-600 dark:color-red-400`},Zi={key:1,class:`i-carbon-magic-wand`},Qi={key:0,class:`i-ph-cursor-fill`},$i={key:1,class:`i-ph-cursor-duotone`},ea={key:0,"w-2":``,"h-2":``,"bg-primary":``,"rounded-full":``,absolute:``,"top-0.5":``,"right-0.5":``},ta={class:`px2 my-auto`},na={class:`text-lg`},ra={class:`opacity-50 text-sm`},ia=j({__name:`NavControls`,props:{persist:{default:!1}},setup(e){let t=e,{currentSlideNo:n,hasNext:r,hasPrev:i,isEmbedded:a,isPresenter:o,isPresenterAvailable:l,next:u,prev:d,total:m,enterPresenter:_,exitPresenter:v}=V(),{brush:y,drawingEnabled:S}=st(),C=Ee.smaller(`md`),{isFullscreen:w,toggle:T}=Ne,ee=D();function E(){ee.value&&je.value&&ee.value.contains(je.value)&&je.value.blur()}let te=x(()=>t.persist?`text-$slidev-controls-foreground bg-transparent`:`rounded-md bg-main shadow-xl border border-main`),ne=b();return(e,t)=>(F(),h(`nav`,{ref_key:`root`,ref:ee,class:`flex flex-col`},[f(`div`,{class:A([`flex flex-wrap-reverse text-xl gap-0.5 p-1 lg:p-2`,te.value]),onMouseleave:E},[p(a)?N(`v-if`,!0):(F(),k(G,{key:0,title:p(w)?`Close fullscreen`:`Enter fullscreen`,onClick:p(T)},{default:s(()=>[p(w)?(F(),h(`div`,Ki)):(F(),h(`div`,qi))]),_:1},8,[`title`,`onClick`])),c(G,{disabled:!p(i),title:`Go to previous slide`,onClick:p(d)},{default:s(()=>[...t[6]||=[f(`div`,{class:`i-carbon:arrow-left`},null,-1)]]),_:1},8,[`disabled`,`onClick`]),c(G,{disabled:!p(r),title:`Go to next slide`,onClick:p(u)},{default:s(()=>[...t[7]||=[f(`div`,{class:`i-carbon:arrow-right`},null,-1)]]),_:1},8,[`disabled`,`onClick`]),p(a)?N(`v-if`,!0):(F(),k(G,{key:1,title:`Show slide overview`,onClick:t[0]||=e=>p(ue)()},{default:s(()=>[...t[8]||=[f(`div`,{class:`i-carbon:apps`},null,-1)]]),_:1})),p(et)?N(`v-if`,!0):(F(),k(G,{key:2,title:p(it)?`Switch to light mode theme`:`Switch to dark mode theme`,onClick:t[1]||=e=>p(nt)()},{default:s(()=>[p(it)?(F(),h(`div`,Ji)):(F(),h(`div`,Yi))]),_:1},8,[`title`])),c(ct),p(a)?N(`v-if`,!0):(F(),h(O,{key:3},[!p(o)&&!p(C)&&ne.value?(F(),h(O,{key:0},[c(p(ne)),c(ct)],64)):N(`v-if`,!0),p(o)?(F(),k(G,{key:1,title:p(xe)===`laser`?p(fe)?`Disable laser pointer`:`Enable laser pointer`:p(fe)?`Hide presenter cursor`:`Show presenter cursor`,active:p(fe),onClick:t[2]||=e=>p(de)()},{default:s(()=>[p(xe)===`laser`?(F(),h(O,{key:0},[p(fe)?(F(),h(`div`,Xi)):(F(),h(`div`,Zi))],64)):(F(),h(O,{key:1},[p(fe)?(F(),h(`div`,Qi)):(F(),h(`div`,$i))],64))]),_:1},8,[`title`,`active`])):N(`v-if`,!0),!p(H).drawings.presenterOnly||p(o)?(F(),k(G,{key:2,class:`relative`,title:p(S)?`Hide drawing toolbar`:`Show drawing toolbar`,active:p(S),onClick:t[3]||=e=>S.value=!p(S)},{default:s(()=>[t[9]||=f(`div`,{class:`i-carbon:pen`},null,-1),p(S)?(F(),h(`div`,{key:0,class:`absolute left-1 right-1 bottom-0 h-0.7 rounded-full`,style:g({background:p(y).color})},null,4)):N(`v-if`,!0)]),_:1},8,[`title`,`active`])):N(`v-if`,!0),c(ct),p(o)?(F(),k(G,{key:3,title:`Play Mode`,onClick:p(v)},{default:s(()=>[...t[10]||=[f(`div`,{class:`i-carbon:presentation-file`},null,-1)]]),_:1},8,[`onClick`])):N(`v-if`,!0),p(l)?(F(),k(G,{key:4,title:`Presenter Mode`,onClick:p(_)},{default:s(()=>[...t[11]||=[f(`div`,{class:`i-carbon:user-speaker`},null,-1)]]),_:1},8,[`onClick`])):N(`v-if`,!0),N(`v-if`,!0)],64)),(F(),h(O,{key:4},[p(H).download?(F(),k(G,{key:0,title:`Download as PDF`,onClick:p(tt)},{default:s(()=>[...t[13]||=[f(`div`,{class:`i-carbon:download`},null,-1)]]),_:1},8,[`onClick`])):N(`v-if`,!0)],64)),N(`v-if`,!0),!p(o)&&p(H).info&&!p(a)?(F(),k(G,{key:6,title:`Show info`,onClick:t[5]||=e=>se.value=!p(se)},{default:s(()=>[...t[15]||=[f(`div`,{class:`i-carbon:information`},null,-1)]]),_:1})):N(`v-if`,!0),p(a)?N(`v-if`,!0):(F(),h(O,{key:7},[c(ct),p(o)?(F(),k(G,{key:0,title:`Toggle Presenter Layout`,class:`aspect-ratio-initial flex items-center`,onClick:p(pe)},{default:s(()=>[t[16]||=f(`div`,{class:`i-carbon:template`},null,-1),ie(` `+M(p(Se)),1)]),_:1},8,[`onClick`])):N(`v-if`,!0),(F(),k(Gi,{key:1})),c(_i,null,{button:s(({value:e})=>[c(G,{title:`More Options`,active:e},{default:s(()=>[t[17]||=f(`div`,{class:`i-carbon:settings-adjust`},null,-1),p(Ce)?(F(),h(`div`,ea)):N(`v-if`,!0)]),_:1},8,[`active`])]),menu:s(()=>[c(Ii)]),_:1})],64)),p(a)?N(`v-if`,!0):(F(),k(ct,{key:8})),f(`div`,ta,[f(`span`,na,M(p(n)),1),f(`span`,ra,` / `+M(p(m)),1)]),c(p(hi))],34)],512))}}),aa=new Set,oa=new Set,sa=/\/$/;function ca(e){return e.startsWith(`http`)||e.startsWith(`//`)?e:`${`./`.replace(sa,``)}${e.startsWith(`/`)?e:`/${e}`}`}var la=2,ua=new Map,da=D(0),fa=D(0),pa=x(()=>fa.value===0?1:da.value/fa.value);x(()=>pa.value>=1);function ma(e){let t=ca(e);if(aa.has(t)||oa.has(t))return;oa.add(t);let n=new Image;n.onload=()=>{oa.delete(t),aa.add(t),ua.delete(t),da.value=aa.size},n.onerror=()=>{oa.delete(t);let n=ua.get(t)??0;n{let e=r.value;if(!e?.length)return;let t=new Set;for(let n of e)for(let e of n.meta?.slide?.images??[])t.add(ca(e));fa.value=t.size}),u(()=>{let i=e.value,o=r.value;if(!i||!o?.length)return;ha(i),ha(t.value),ha(n.value);let s=i.no-1;for(let e=1;e<=a;e++){let t=s+e;t{let t=r.value,n=setTimeout(()=>{if(t?.length)for(let e of t)ha(e)},3e3);e(()=>clearTimeout(n))})}function _a(){let e=He(),t=D(!1),n,r,i=typeof document<`u`&&`startViewTransition`in document;return e.beforeResolve((e,a)=>{let o=Ie(a.params.no)?.meta,s=Ie(e.params.no)?.meta,c=o?.slide?.no,l=s?.slide?.no;if((c!=null&&l!=null&&c!==l&&((c{n=e,r=t}),d,f=new Promise(e=>d=e);return setTimeout(()=>{document.startViewTransition(()=>(d(),u))},50),f}),i&&e.afterEach(()=>{n?.(),r?.()}),t}var va=[`data-drag-id`],$=10,ya=10,ba=`absolute border border-gray bg-gray dark:border-gray-500 dark:bg-gray-800 bg-opacity-30 `,xa=20,Sa=j({__name:`DragControl`,props:{data:{}},setup(e){let{dragId:n,zoom:r,autoHeight:i,x0:a,y0:o,width:s,height:c,rotate:l,isArrow:d}=e.data,m=ee(Ze,D(1)),_=x(()=>m.value*r.value),{left:v,top:y}=at(),b=d?-1/0:40,S=x(()=>l.value*Math.PI/180),C=x(()=>Math.sin(S.value)),w=x(()=>Math.cos(S.value)),T=x(()=>s.value*w.value+c.value*C.value),E=x(()=>s.value*C.value+c.value*w.value),te=x(()=>a.value-T.value/2),ne=x(()=>o.value-E.value/2),re=x(()=>a.value+T.value/2),k=x(()=>o.value+E.value/2),j=x(()=>d&&s.value<0),ie=x(()=>d&&c.value<0),M=null;function ae(e){if(e.buttons!==1)return;e.preventDefault(),e.stopPropagation();let t=e.target.getBoundingClientRect(),n=s.value*w.value-c.value*C.value,r=s.value*C.value+c.value*w.value,i=s.value*w.value+c.value*C.value,u=-s.value*C.value+c.value*w.value;M={x0:a.value,y0:o.value,width:s.value,height:c.value,rotate:l.value,dx0:e.clientX-(t.left+t.right)/2,dy0:e.clientY-(t.top+t.bottom)/2,ltx:a.value-n/2,lty:o.value-r/2,rtx:a.value+i/2,rty:o.value-u/2,lbx:a.value-i/2,lby:o.value+u/2,rbx:a.value+n/2,rby:o.value+r/2},e.currentTarget.setPointerCapture(e.pointerId)}function oe(e){if(!M||e.buttons!==1)return;e.preventDefault(),e.stopPropagation();let t=(e.clientX-v.value-M.dx0)/_.value,n=(e.clientY-y.value-M.dy0)/_.value;a.value=Oe(t,-T.value/2+ya,me.value+T.value/2-ya),o.value=Oe(n,-E.value/2+ya,ye.value+E.value/2-ya)}function I(e){M&&=(e.preventDefault(),e.stopPropagation(),null)}function se(e,t){return{onPointerdown:ae,onPointermove:n=>{if(!M||n.buttons!==1)return;n.preventDefault(),n.stopPropagation();let r=(n.clientX-v.value)/_.value,i=(n.clientY-y.value)/_.value,{ltx:l,lty:u,rtx:d,rty:f,lbx:p,lby:m,rbx:h,rby:g}=M,x=M.width/M.height,S=Math.max(b,b*x);function T(e,t){if(n.shiftKey){let n=Math.max(e,t*x,S);return{w:n,h:n/x}}return{w:Math.max(e,b),h:Math.max(t,b)}}if(e){if(t){let{w:e,h:t}=T((h-r)*w.value+(g-i)*C.value,-(h-r)*C.value+(g-i)*w.value);r=h-e*w.value+t*C.value,i=g-e*C.value-t*w.value}else{let{w:e,h:t}=T((d-r)*w.value-(i-f)*C.value,(d-r)*C.value+(i-f)*w.value);r=d-e*w.value-t*C.value,i=f-e*C.value+t*w.value}}else if(t){let{w:e,h:t}=T((r-p)*w.value-(m-i)*C.value,(r-p)*C.value+(m-i)*w.value);r=p+e*w.value+t*C.value,i=m+e*C.value-t*w.value}else{let{w:e,h:t}=T((r-l)*w.value+(i-u)*C.value,-(r-l)*C.value+(i-u)*w.value);r=l+e*w.value-t*C.value,i=u+e*C.value+t*w.value}e?t?(a.value=(r+h)/2,o.value=(i+g)/2,s.value=(h-r)*w.value+(g-i)*C.value,c.value=-(h-r)*C.value+(g-i)*w.value):(a.value=(r+d)/2,o.value=(i+f)/2,s.value=(d-r)*w.value-(i-f)*C.value,c.value=(d-r)*C.value+(i-f)*w.value):t?(a.value=(r+p)/2,o.value=(i+m)/2,s.value=(r-p)*w.value-(m-i)*C.value,c.value=(r-p)*C.value+(m-i)*w.value):(a.value=(r+l)/2,o.value=(i+u)/2,s.value=(r-l)*w.value+(i-u)*C.value,c.value=-(r-l)*C.value+(i-u)*w.value)},onPointerup:I,style:{width:`${$}px`,height:`${$}px`,margin:`-${$/2}px`,left:e===j.value?void 0:`0`,right:e===j.value?`0`:void 0,top:t===ie.value?void 0:`0`,bottom:t===ie.value?`0`:void 0,cursor:d?`move`:+e+ +t==1?`nesw-resize`:`nwse-resize`,borderRadius:d?`50%`:void 0},class:ba}}function L(e){return{onPointerdown:ae,onPointermove:t=>{if(!M||t.buttons!==1)return;t.preventDefault(),t.stopPropagation();let n=(t.clientX-v.value)/_.value,r=(t.clientY-y.value)/_.value,{ltx:i,lty:l,rtx:u,rty:d,lbx:f,lby:p,rbx:m,rby:h}=M;if(e===`l`){let e=(u+m)/2,t=(d+h)/2;s.value=Math.max((e-n)*w.value+(t-r)*C.value,b),a.value=e-s.value*w.value/2,o.value=t-s.value*C.value/2}else if(e===`r`){let e=(i+f)/2,t=(l+p)/2;s.value=Math.max((n-e)*w.value+(r-t)*C.value,b),a.value=e+s.value*w.value/2,o.value=t+s.value*C.value/2}else if(e===`t`){let e=(f+m)/2,t=(p+h)/2;c.value=Math.max((t-r)*w.value-(e-n)*C.value,b),a.value=e+c.value*C.value/2,o.value=t-c.value*w.value/2}else if(e===`b`){let e=(i+u)/2,t=(l+d)/2;c.value=Math.max((r-t)*w.value-(n-e)*C.value,b),a.value=e-c.value*C.value/2,o.value=t+c.value*w.value/2}},onPointerup:I,style:{width:`${$}px`,height:`${$}px`,margin:`-${$/2}px`,left:e===`l`?`0`:e===`r`?`100%`:`50%`,top:e===`t`?`0`:e===`b`?`100%`:`50%`,cursor:`lr`.includes(e)?`ew-resize`:`ns-resize`,borderRadius:`50%`},class:ba}}function ce(){return{onPointerdown:ae,onPointermove:e=>{if(!M||e.buttons!==1)return;e.preventDefault(),e.stopPropagation();let t=(e.clientX-v.value-M.dx0)/_.value-$/4,n=(e.clientY-y.value-M.dy0)/_.value-$/4,r=Math.atan2(n-o.value,t-a.value)*180/Math.PI+90;for(let e of[0,90,180,270,360])if(Math.abs(r-e)<5){r=e%360;break}l.value=r},onPointerup:I,style:{width:`${$}px`,height:`${$}px`,margin:`-${$/2}px`,left:`50%`,top:`-20px`,cursor:`grab`,borderRadius:`50%`},class:ba}}let R={immediate:!1,immediateCallback:!1},le=ze(()=>{re.value<=ya||a.value--},xa,R),ue=ze(()=>{te.value>=me.value-ya||a.value++},xa,R),de=ze(()=>{k.value<=ya||o.value--},xa,R),fe=ze(()=>{ne.value>=ye.value-ya||o.value++},xa,R);return u(()=>{function e(e,t){Fe[e].value?t.resume():t.pause()}e(`left`,le),e(`right`,ue),e(`up`,de),e(`down`,fe)}),(e,u)=>Number.isFinite(p(a))?(F(),h(`div`,{key:0,id:`drag-control-container`,"data-drag-id":p(n),style:g({position:`absolute`,zIndex:100,left:`${p(r)*(p(a)-Math.abs(p(s))/2)}px`,top:`${p(r)*(p(o)-Math.abs(p(c))/2)}px`,width:`${p(r)*Math.abs(p(s))}px`,height:`${p(r)*Math.abs(p(c))}px`,transformOrigin:`center center`,transform:`rotate(${p(l)}deg)`}),onPointerdown:ae,onPointermove:oe,onPointerup:I},[f(`div`,{class:A([`absolute inset-0 z-nav dark:b-gray-400`,p(d)?``:`b b-dark`])},[p(i)?N(`v-if`,!0):(F(),h(O,{key:0},[f(`div`,P(t(se(!0,!0))),null,16),f(`div`,P(t(se(!1,!1))),null,16),p(d)?N(`v-if`,!0):(F(),h(O,{key:0},[f(`div`,P(t(se(!0,!1))),null,16),f(`div`,P(t(se(!1,!0))),null,16)],64))],64)),p(d)?N(`v-if`,!0):(F(),h(O,{key:1},[f(`div`,P(t(L(`l`))),null,16),f(`div`,P(t(L(`r`))),null,16),p(i)?N(`v-if`,!0):(F(),h(O,{key:0},[f(`div`,P(t(L(`t`))),null,16),f(`div`,P(t(L(`b`))),null,16)],64)),f(`div`,P(t(ce())),null,16),f(`div`,{class:`absolute -top-15px w-0 b b-dashed b-dark dark:b-gray-400`,style:g({left:`calc(50% - 1px)`,height:p(i)?`14px`:`10px`})},null,4)],64))],2)],44,va)):N(`v-if`,!0)}}),Ca=Le(j({__name:`SlidesShow`,props:{renderContext:{}},setup(t){let{currentSlideRoute:r,currentTransition:i,getPrimaryClicks:a,prevRoute:d,nextRoute:f,slides:m,isPrintMode:g,isPrintWithClicks:_,clicksDirection:v,printRange:y}=V();function S(e){e.meta.preload!==!1&&(e.meta.__preloaded=!0,e.load())}u(()=>{S(r.value),S(d.value),S(f.value)}),u(e=>{let t=m.value,n=setTimeout(()=>{t.forEach(S)},3e3);e(()=>clearTimeout(n))}),ga(r,d,f,m);let w=_a(),T=b();Ae(()=>import(`./DrawingLayer-vJt7NoKg.js`).then(e=>T.value=e.default),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url);let ee=x(()=>g.value?y.value.map(e=>m.value[e-1]):m.value.filter(e=>e.meta?.__preloaded||e===r.value));function E(){ke.value=!0,C()}return(u,d)=>(F(),h(O,null,[N(` Global Bottom `),c(p(dt)),N(` Slides `),(F(),k(n(p(w)&&!p(g)&&!p(ke)&&!p(Me)?`div`:ne),o(p(ke)||p(Me)||p(g)?{}:p(i),{id:`slideshow`,tag:`div`,class:{"slidev-nav-go-forward":p(v)>0,"slidev-nav-go-backward":p(v)<0},onAfterLeave:E}),{default:s(()=>[(F(!0),h(O,null,l(ee.value,n=>e((F(),k(mt,{key:n.no,"clicks-context":p(g)&&!p(_)?p(ce)(n,p(Qe)):p(a)(n),route:n,"render-context":t.renderContext},null,8,[`clicks-context`,`route`,`render-context`])),[[re,n===p(r)]])),128))]),_:1},16,[`class`])),p(De)?(F(),k(Sa,{key:0,data:p(De)},null,8,[`data`])):N(`v-if`,!0),N(` Global Top `),c(p(pt)),T.value?(F(),k(p(T),{key:1})):N(`v-if`,!0)],64))}}),[[`__scopeId`,`data-v-835d2635`]]),wa=Object.assign({}),Ta=Object.assign({}),Ea=Object.assign({}),Da=[Object.values(wa)[0],Object.values(Ta)[0],Object.values(Ea)[0]].filter(Boolean);function Oa(){let{go:e,goFirst:t,goLast:n,next:r,nextSlide:i,prev:a,prevSlide:o}=V(),{drawingEnabled:s}=st(),{escape:c,space:l,shift:u,left:d,right:f,up:p,down:m,enter:h,d:g,g:_,o:v,"`":y}=Fe,b={next:r,prev:a,nextSlide:i,prevSlide:o,go:e,goFirst:t,goLast:n,downloadPDF:tt,toggleDark:nt,toggleOverview:ue,toggleDrawing:()=>s.value=!s.value,escapeOverview:()=>I.value=!1,showGotoDialog:()=>z.value=!z.value},x=W(U(I),U(De)),S=[{name:`next_space`,key:W(l,U(u)),fn:r,autoRepeat:!0},{name:`prev_space`,key:W(l,u),fn:a,autoRepeat:!0},{name:`next_right`,key:W(f,U(u),x),fn:r,autoRepeat:!0},{name:`prev_left`,key:W(d,U(u),x),fn:a,autoRepeat:!0},{name:`next_page_key`,key:`pageDown`,fn:r,autoRepeat:!0},{name:`prev_page_key`,key:`pageUp`,fn:a,autoRepeat:!0},{name:`next_down`,key:W(m,x),fn:i,autoRepeat:!0},{name:`prev_up`,key:W(p,x),fn:o,autoRepeat:!0},{name:`next_shift`,key:W(f,u),fn:i,autoRepeat:!0},{name:`prev_shift`,key:W(d,u),fn:o,autoRepeat:!0},{name:`toggle_dark`,key:W(g,U(s)),fn:nt},{name:`toggle_overview`,key:W(qe(v,y),U(s)),fn:ue},{name:`hide_overview`,key:W(c,U(s)),fn:()=>I.value=!1},{name:`goto`,key:W(_,U(s)),fn:()=>z.value=!z.value},{name:`next_overview`,key:W(f,I),fn:ti},{name:`prev_overview`,key:W(d,I),fn:ei},{name:`up_overview`,key:W(p,I),fn:ni},{name:`down_overview`,key:W(m,I),fn:ri},{name:`goto_from_overview`,key:W(h,I),fn:()=>{e(Z.value),I.value=!1}}],C=new Set(S.map(e=>e.name));for(let e of Da)S=e(b,S);if(S.filter(e=>e.name&&C.has(e.name)).length===0){let e=[`========== WARNING ==========`,`defineShortcutsSetup did not return any of the base shortcuts.`,`See https://sli.dev/custom/config-shortcuts.html for migration.`,`If it is intentional, return at least one shortcut with one of the base names (e.g. name:"goto").`].join(` + +`);alert(e),console.warn(e)}return S}function ka(){let{isPrintMode:e}=V(),t=W(U(Te),U(be),U(e),ge,U(oe)),n=Oa();new Map(n.map(e=>[e.key,e])).forEach(e=>{e.fn&&r(e.key,e.fn,e.autoRepeat)}),i(`f`,()=>Ne.toggle());function r(e,n,r=!1){typeof e==`string`&&(e=Fe[e]);let i=W(e,t),a=0,o,s=()=>{if(clearTimeout(o),!i.value){a=0;return}r&&(o=setTimeout(s,Math.max(1e3-a*250,150)),a++),n()};return d(i,s,{flush:`sync`})}function i(e,n){return Je(e,e=>{t.value&&(e.repeat||n())})}}export{mi as a,Xr as c,gt as d,ht as f,Pi as i,Nt as l,Ca as n,fi as o,ia as r,di as s,ka as t,Et as u}; \ No newline at end of file diff --git a/lecture-06/class/assets/syncState-BrWO1mSt.js b/lecture-06/class/assets/syncState-BrWO1mSt.js new file mode 100644 index 0000000000000000000000000000000000000000..00d5b04b271e3f17f25fe172712f949bf7e5d1e6 --- /dev/null +++ b/lecture-06/class/assets/syncState-BrWO1mSt.js @@ -0,0 +1 @@ +import{Y as e,lt as t,pt as n,st as r}from"./modules/shiki-BFOesOFp.js";function i(){return Math.random().toString(36).replace(/[^a-z]+/g,``).substr(2,10)}function a(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!1})}var o=r([{channels:[],enabled:!0,init(e,t,r,i=!1){let a;if(!i)a=new BroadcastChannel(e),a.addEventListener(`message`,e=>t(e.data)),this.channels.push(a);else if(i){this.listener=function(n){n&&n.key===e&&n.newValue&&t(JSON.parse(n.newValue))},window.addEventListener(`storage`,this.listener);let n=window.localStorage.getItem(e);n&&t(JSON.parse(n))}return(t,r=!1)=>{this.enabled&&(!i&&a&&!r&&a.postMessage(n(t)),i&&!r&&window.localStorage.setItem(e,JSON.stringify(t)))}},disable(){this.enabled=!1,this.channels.forEach(e=>e.close()),this.listener&&window.removeEventListener(`storage`,this.listener)}}]),s=new Map,c=t({});function l(t,i,a=!1){let l=[],u=!1,d=!1,f,p,m=r(i);function h(e){l.push(e)}function g(e,t){m[e]!==t&&(clearTimeout(f),u=!0,m[e]=t,f=setTimeout(()=>u=!1,0))}function _(e){u||(clearTimeout(p),d=!0,Object.entries(e).forEach(([e,t])=>{m[e]=t}),p=setTimeout(()=>d=!1,0))}function v(t){s.set(t,{onUpdate:_,persist:a,state:m}),c.value[t]=o.map(e=>e.init(t,_,m,a)).filter(e=>!!e);function r(){c.value[t].forEach(e=>e?.(n(m),d)),u||l.forEach(e=>e(m))}e(m,r,{deep:!0})}return{init:v,onPatch:h,onUpdate:_,patch:g,state:m}}export{a as n,i as r,l as t}; \ No newline at end of file diff --git a/lecture-06/class/assets/useAttention-Blk0c2BZ.js b/lecture-06/class/assets/useAttention-Blk0c2BZ.js new file mode 100644 index 0000000000000000000000000000000000000000..16ce25973c5d7bee0e165f901910898b96e10b14 --- /dev/null +++ b/lecture-06/class/assets/useAttention-Blk0c2BZ.js @@ -0,0 +1 @@ +var e=[`det`,`water`,`money`,`thing`],t={the:[1,0,0,0],river:[0,2,0,1],money:[0,0,2,1],bank:[0,0,0,2]},n=[[0,0],[0,0],[0,0],[.5,.5]],r=[[0,0],[1,0],[0,1],[0,0]],i=[[.2,.2],[1,0],[0,1],[.3,.3]],a={river:[`the`,`river`,`bank`],money:[`the`,`money`,`bank`]},o=[`the`,`cat`,`ate`,`the`,`fish`,`because`,`it`,`was`,`hungry`];function s(e,t){let n=t[0].map(()=>0);return t.forEach((t,r)=>t.forEach((t,i)=>{n[i]+=(e[r]??0)*t})),n}function c(e,t){return e.reduce((e,n,r)=>e+n*(t[r]??0),0)}function l(e,t){return e.map(e=>e*t)}function u(e){let t=Math.max(0,...e.map(e=>e.length));return Array.from({length:t},(t,n)=>e.reduce((e,t)=>e+(t[n]??0),0))}function d(e){let t=e.filter(e=>e!==null);if(t.length===0)return e.map(()=>0);let n=Math.max(...t),r=e.map(e=>e===null?0:Math.exp(e-n)),i=r.reduce((e,t)=>e+t,0);return r.map(e=>e/i)}function f(e,a=!1){let o=e.map(e=>t[e]??t.the),f=o.map(e=>s(e,n)),p=o.map(e=>s(e,r)),m=o.map(e=>s(e,i)),h=r[0].length,g=1/Math.sqrt(h);return{words:e,x:o,q:f,k:p,v:m,rows:f.map((t,n)=>{let r=p.map(e=>c(t,e)),i=r.map((e,t)=>a&&t>n?null:e*g),o=d(i),s=o.map((e,t)=>l(m[t],e));return{i:n,word:e[n],q:t,raw:r,scaled:i,weights:o,terms:s,out:u(s)}}),dk:h,scale:g,causal:a}}var p=[{name:`head 1`,reads:`the previous word`,weights:[[1,0,0,0,0,0,0,0,0],[.82,.18,0,0,0,0,0,0,0],[.09,.8,.11,0,0,0,0,0,0],[.04,.08,.78,.1,0,0,0,0,0],[.03,.05,.06,.8,.06,0,0,0,0],[.02,.04,.05,.06,.78,.05,0,0,0],[.02,.03,.04,.04,.06,.76,.05,0,0],[.02,.03,.03,.03,.04,.06,.75,.04,0],[.01,.02,.03,.03,.04,.04,.06,.73,.04]]},{name:`head 2`,reads:`the nearest noun`,weights:[[1,0,0,0,0,0,0,0,0],[.14,.86,0,0,0,0,0,0,0],[.05,.84,.11,0,0,0,0,0,0],[.06,.1,.08,.76,0,0,0,0,0],[.03,.06,.05,.79,.07,0,0,0,0],[.03,.22,.09,.05,.56,.05,0,0,0],[.02,.31,.06,.03,.5,.04,.04,0,0],[.02,.28,.05,.03,.47,.04,.08,.03,0],[.02,.34,.05,.02,.41,.03,.09,.02,.02]]},{name:`head 3`,reads:`what a pronoun refers to`,weights:[[1,0,0,0,0,0,0,0,0],[.5,.5,0,0,0,0,0,0,0],[.33,.34,.33,0,0,0,0,0,0],[.25,.25,.25,.25,0,0,0,0,0],[.2,.2,.2,.2,.2,0,0,0,0],[.1,.24,.14,.08,.34,.1,0,0,0],[.02,.62,.03,.02,.24,.03,.04,0,0],[.03,.54,.04,.02,.26,.03,.05,.03,0],[.02,.58,.03,.02,.22,.03,.07,.01,.02]]},{name:`head 4`,reads:`almost nothing — it parks on token 1`,weights:[[1,0,0,0,0,0,0,0,0],[.93,.07,0,0,0,0,0,0,0],[.9,.05,.05,0,0,0,0,0,0],[.89,.04,.04,.03,0,0,0,0,0],[.88,.03,.03,.03,.03,0,0,0,0],[.87,.03,.03,.02,.03,.02,0,0,0],[.86,.03,.02,.02,.03,.02,.02,0,0],[.85,.03,.02,.02,.03,.02,.02,.01,0],[.84,.03,.02,.02,.03,.02,.02,.01,.01]]}];export{t as a,i as c,a as i,s as l,p as n,r as o,o as r,n as s,e as t,f as u}; \ No newline at end of file diff --git a/lecture-06/class/assets/useConvolution-qO1u8ksh.js b/lecture-06/class/assets/useConvolution-qO1u8ksh.js new file mode 100644 index 0000000000000000000000000000000000000000..1b0248bb358beb4b341c6d6d348c4ff933d7f0a2 --- /dev/null +++ b/lecture-06/class/assets/useConvolution-qO1u8ksh.js @@ -0,0 +1 @@ +function e(e,t=2){let n=Number(e.toFixed(t));return Object.is(n,-0)?`0`:String(n)}export{e as t}; \ No newline at end of file diff --git a/lecture-06/class/assets/useDrawings-DF8n2zfQ.js b/lecture-06/class/assets/useDrawings-DF8n2zfQ.js new file mode 100644 index 0000000000000000000000000000000000000000..06cc0996042e3ab38eda725e9af0970647a275a7 --- /dev/null +++ b/lecture-06/class/assets/useDrawings-DF8n2zfQ.js @@ -0,0 +1 @@ +import{N as e,Y as t,at as n,g as r,lt as i,st as a}from"./modules/shiki-BFOesOFp.js";import{g as o,t as s,tt as c}from"./useNav-BF8Ehznl.js";import{D as l,g as u}from"./modules/vue-Ymwlffw_.js";import{c as d,l as f,s as p}from"./index-BSNgeX_T.js";var m=()=>({emit(e,...t){for(let n=this.events[e]||[],r=0,i=n.length;r{this.events[e]=this.events[e]?.filter(e=>t!==e)}}});function h(e,t){return e-t}function g(e){return e<0?-1:1}function _(e){return[Math.abs(e),g(e)]}function v(){let e=()=>((1+Math.random())*65536|0).toString(16).substring(1);return`${e()+e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}var y=2;function b(e,t){let n=document.createElementNS(`http://www.w3.org/2000/svg`,`defs`),r=document.createElementNS(`http://www.w3.org/2000/svg`,`marker`),i=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return i.setAttribute(`fill`,t),r.setAttribute(`id`,e),r.setAttribute(`viewBox`,`0 -5 10 10`),r.setAttribute(`refX`,`5`),r.setAttribute(`refY`,`0`),r.setAttribute(`markerWidth`,`4`),r.setAttribute(`markerHeight`,`4`),r.setAttribute(`orient`,`auto`),i.setAttribute(`d`,`M0,-5L10,0L0,5`),r.appendChild(i),n.appendChild(r),n}function x(e,t){let n=e.x-t.x,r=e.y-t.y;return n*n+r*r}function S(e,t,n){let r=t.x,i=t.y,a=n.x-r,o=n.y-i;if(a!==0||o!==0){let t=((e.x-r)*a+(e.y-i)*o)/(a*a+o*o);t>1?(r=n.x,i=n.y):t>0&&(r+=a*t,i+=o*t)}return a=e.x-r,o=e.y-i,a*a+o*o}function C(e,t){let n=e[0],r=[n],i;for(let a=1,o=e.length;at&&(r.push(i),n=i);return n!==i&&i&&r.push(i),r}function w(e,t,n,r,i){let a=r,o=0;for(let r=t+1;ra&&(o=r,a=i)}a>r&&(o-t>1&&w(e,t,o,r,i),i.push(e[o]),n-o>1&&w(e,o,n,r,i))}function T(e,t){let n=e.length-1,r=[e[0]];return w(e,0,n,t,r),r.push(e[n]),r}function E(e,t,n=!1){if(e.length<=2)return e;let r=t===void 0?1:t*t;return e=n?e:C(e,r),e=T(e,r),e}var D=class{constructor(e){this.drauu=e,this.event=void 0,this.point=void 0,this.start=void 0,this.el=null}onSelected(e){}onUnselected(){}onStart(e){}onMove(e){return!1}onEnd(e){}get brush(){return this.drauu.brush}get shiftPressed(){return this.drauu.shiftPressed}get altPressed(){return this.drauu.altPressed}get svgElement(){return this.drauu.el}getMousePosition(e){let t=this.drauu.el,n=this.drauu.options.cssZoom??1,r=this.drauu.options.coordinateScale??1,i=this.drauu.options.offset??{x:0,y:0};if(this.drauu.options.coordinateTransform===!1){let t=this.drauu.el.getBoundingClientRect();return{x:(e.pageX/n-t.left+i.x)*r,y:(e.pageY/n-t.top+i.y)*r,pressure:e.pressure}}{let a=this.drauu.svgPoint;a.x=e.clientX/n+i.x,a.y=e.clientY/n+i.y;let o=a.matrixTransform(t.getScreenCTM()?.inverse());return{x:o.x*r,y:o.y*r,pressure:e.pressure}}}createElement(e,t){let n=document.createElementNS(`http://www.w3.org/2000/svg`,e),r=t?{...this.brush,...t}:this.brush;return n.setAttribute(`fill`,r.fill??`transparent`),n.setAttribute(`stroke`,r.color),n.setAttribute(`stroke-width`,r.size.toString()),n.setAttribute(`stroke-linecap`,`round`),r.dasharray&&n.setAttribute(`stroke-dasharray`,r.dasharray),n}attr(e,t){this.el.setAttribute(e,typeof t==`string`?t:t.toFixed(y))}_setEvent(e){this.event=e,this.point=this.getMousePosition(e)}_eventDown(e){return this._setEvent(e),this.start=this.point,this.onStart(this.point)}_eventMove(e){return this._setEvent(e),this.onMove(this.point)}_eventUp(e){return this._setEvent(e),this.onEnd(this.point)}},O=class e extends D{constructor(...e){super(...e),this.points=[],this.count=0}onStart(e){if(this.el=this.createElement(`path`,{fill:`transparent`}),this.points=[e],this.brush.arrowEnd){this.arrowId=v();let e=b(this.arrowId,this.brush.color);this.el.appendChild(e)}return this.el}onMove(t){return this.el||this.onStart(t),this.points[this.points.length-1]!==t&&(this.points.push(t),this.count+=1),this.count>5&&(this.points=E(this.points,1,!0),this.count=0),this.attr(`d`,e.toSvgData(this.points)),!0}onEnd(){let t=this.el;if(this.el=null,!t)return!1;if(t.setAttribute(`d`,e.toSvgData(E(this.points,1,!0))),!t.getTotalLength()){let{x:e,y:n}=this.points[0],r=this.brush.size/2;t.setAttribute(`d`,`M ${e-r} ${n} a ${r},${r} 0 1,0 ${r*2},0 a ${r},${r} 0 1,0 ${-r*2},0`),t.setAttribute(`fill`,this.brush.color),t.setAttribute(`stroke-width`,`0`)}return!0}static line(e,t){let n=t.x-e.x,r=t.y-e.y;return{length:Math.sqrt(n**2+r**2),angle:Math.atan2(r,n)}}static controlPoint(t,n,r,i){let a=n||t,o=r||t,s=e.line(a,o),c=s.angle+(i?Math.PI:0),l=s.length*.2;return{x:t.x+Math.cos(c)*l,y:t.y+Math.sin(c)*l}}static bezierCommand(t,n,r){let i=e.controlPoint(r[n-1],r[n-2],t),a=e.controlPoint(t,r[n-1],r[n+1],!0);return`C ${i.x.toFixed(y)},${i.y.toFixed(y)} ${a.x.toFixed(y)},${a.y.toFixed(y)} ${t.x.toFixed(y)},${t.y.toFixed(y)}`}static toSvgData(t){return t.reduce((t,n,r,i)=>r===0?`M ${n.x.toFixed(y)},${n.y.toFixed(y)}`:`${t} ${e.bezierCommand(n,r,i)}`,``)}},k=class extends D{onStart(e){return this.el=this.createElement(`ellipse`),this.attr(`cx`,e.x),this.attr(`cy`,e.y),this.el}onMove(e){if(!this.el||!this.start)return!1;let[t,n]=_(e.x-this.start.x),[r,i]=_(e.y-this.start.y);if(this.shiftPressed){let e=Math.min(t,r);t=e,r=e}if(this.altPressed)this.attr(`cx`,this.start.x),this.attr(`cy`,this.start.y),this.attr(`rx`,t),this.attr(`ry`,r);else{let[e,a]=[this.start.x,this.start.x+t*n].sort(h),[o,s]=[this.start.y,this.start.y+r*i].sort(h);this.attr(`cx`,(e+a)/2),this.attr(`cy`,(o+s)/2),this.attr(`rx`,(a-e)/2),this.attr(`ry`,(s-o)/2)}return!0}onEnd(){let e=this.el;if(this.el=null,!e)return!1;try{if(!e.getTotalLength())return!1}catch{return!1}return!0}},A=class extends D{constructor(...e){super(...e),this.pathSubFactor=20,this.pathFragments=[],this._erased=[]}onSelected(e){let t=(e,n)=>{if(e&&e.length)for(let r=0;re.forEach(e=>this.drauu._restoreNode(e)),redo:()=>e.forEach(e=>this.drauu._removeNode(e))}}checkAndEraseElement(){if(this.pathFragments.length)for(let e=0;e!this._erased.includes(e.element))),this._erased.length>0}lineLineIntersect(e,t){let n=e.x1,r=e.x2,i=t.x1,a=t.x2,o=e.y1,s=e.y2,c=t.y1,l=t.y2,u=(n-r)*(c-l)-(o-s)*(i-a),d=(n*s-o*r)*(i-a)-(n-r)*(i*l-c*a),f=(n*s-o*r)*(c-l)-(o-s)*(i*l-c*a),p=(e,t,n)=>e>=t&&e<=n||e>=n&&e<=t;if(u===0)return!1;{let e={x:d/u,y:f/u};return p(e.x,n,r)&&p(e.y,o,s)&&p(e.x,i,a)&&p(e.y,c,l)}}},j=class extends D{onStart(e){if(this.el=this.createElement(`line`,{fill:`transparent`}),this.attr(`x1`,e.x),this.attr(`y1`,e.y),this.attr(`x2`,e.x),this.attr(`y2`,e.y),this.brush.arrowEnd){let e=v(),t=document.createElementNS(`http://www.w3.org/2000/svg`,`g`);return t.append(b(e,this.brush.color)),t.append(this.el),this.attr(`marker-end`,`url(#${e})`),t}return this.el}onMove(e){if(!this.el)return!1;let{x:t,y:n}=e;if(this.shiftPressed){let r=e.x-this.start.x,i=e.y-this.start.y;if(i!==0){let e=r/i;e=Math.round(e),Math.abs(e)<=1?(t=this.start.x+i*e,n=this.start.y+i):(t=this.start.x+r,n=this.start.y)}}return this.altPressed?(this.attr(`x1`,this.start.x*2-t),this.attr(`y1`,this.start.y*2-n),this.attr(`x2`,t),this.attr(`y2`,n)):(this.attr(`x1`,this.start.x),this.attr(`y1`,this.start.y),this.attr(`x2`,t),this.attr(`y2`,n)),!0}onEnd(){let e=this.el;if(this.el=null,!e)return!1;try{if(e.getTotalLength()<5)return!1}catch{return!1}return!0}},M=class extends D{onStart(e){return this.el=this.createElement(`rect`),this.brush.cornerRadius&&(this.attr(`rx`,this.brush.cornerRadius),this.attr(`ry`,this.brush.cornerRadius)),this.attr(`x`,e.x),this.attr(`y`,e.y),this.el}onMove(e){if(!this.el||!this.start)return!1;let[t,n]=_(e.x-this.start.x),[r,i]=_(e.y-this.start.y);if(this.shiftPressed){let e=Math.min(t,r);t=e,r=e}if(this.altPressed)this.attr(`x`,this.start.x-t),this.attr(`y`,this.start.y-r),this.attr(`width`,t*2),this.attr(`height`,r*2);else{let[e,a]=[this.start.x,this.start.x+t*n].sort(h),[o,s]=[this.start.y,this.start.y+r*i].sort(h);this.attr(`x`,e),this.attr(`y`,o),this.attr(`width`,a-e),this.attr(`height`,s-o)}return!0}onEnd(){let e=this.el;if(this.el=null,!e)return!1;try{if(!e.getTotalLength())return!1}catch{return!1}return!0}};function N(e,t,n,r=e=>e){return e*r(.5-t*(.5-n))}function P(e){return[-e[0],-e[1]]}function F(e,t){return[e[0]+t[0],e[1]+t[1]]}function I(e,t){return[e[0]-t[0],e[1]-t[1]]}function L(e,t){return[e[0]*t,e[1]*t]}function R(e,t){return[e[0]/t,e[1]/t]}function z(e){return[e[1],-e[0]]}function B(e,t){return e[0]*t[0]+e[1]*t[1]}function V(e,t){return e[0]===t[0]&&e[1]===t[1]}function H(e){return Math.hypot(e[0],e[1])}function U(e){return e[0]*e[0]+e[1]*e[1]}function W(e,t){return U(I(e,t))}function G(e){return R(e,H(e))}function K(e,t){return Math.hypot(e[1]-t[1],e[0]-t[0])}function q(e,t,n){let r=Math.sin(n),i=Math.cos(n),a=e[0]-t[0],o=e[1]-t[1],s=a*i-o*r,c=a*r+o*i;return[s+t[0],c+t[1]]}function J(e,t,n){return F(e,L(I(t,e),n))}function Y(e,t,n){return F(e,L(t,n))}var{min:X,PI:Z}=Math,Q=.275,$=Z+1e-4;function ee(e,t={}){let{size:n=16,smoothing:r=.5,thinning:i=.5,simulatePressure:a=!0,easing:o=e=>e,start:s={},end:c={},last:l=!1}=t,{cap:u=!0,easing:d=e=>e*(2-e)}=s,{cap:f=!0,easing:p=e=>--e*e*e+1}=c;if(e.length===0||n<=0)return[];let m=e[e.length-1].runningLength,h=s.taper===!1?0:s.taper===!0?Math.max(n,m):s.taper,g=c.taper===!1?0:c.taper===!0?Math.max(n,m):c.taper,_=(n*r)**2,v=[],y=[],b=e.slice(0,10).reduce((e,t)=>{let r=t.pressure;if(a){let i=X(1,t.distance/n);r=X(1,e+(X(1,1-i)-e)*(i*Q))}return(e+r)/2},e[0].pressure),x=N(n,i,e[e.length-1].pressure,o),S,C=e[0].vector,w=e[0].point,T=w,E=w,D=T,O=!1;for(let t=0;t_)&&(v.push(E),w=E),D=F(s,R),(t<=1||W(T,D)>_)&&(y.push(D),T=D),b=r,C=c}let k=e[0].point.slice(0,2),A=e.length>1?e[e.length-1].point.slice(0,2):F(e[0].point,[1,1]),j=[],M=[];if(e.length===1){if(!(h||g)||l){let e=Y(k,G(z(I(k,A))),-(S||x)),t=[];for(let n=1/13,r=n;r<=1;r+=n)t.push(q(e,k,$*2*r));return t}}else{if(!(h||g&&e.length===1)){if(u)for(let e=1/13,t=e;t<=1;t+=e){let e=q(y[0],k,$*t);j.push(e)}else{let e=I(v[0],y[0]),t=L(e,.5),n=L(e,.51);j.push(I(k,t),I(k,n),F(k,n),F(k,t))}}let t=z(P(e[e.length-1].vector));if(g||h&&e.length===1)M.push(A);else if(f){let e=Y(A,t,x);for(let t=1/29,n=t;n<1;n+=t)M.push(q(e,A,$*3*n))}else M.push(F(A,L(t,x)),F(A,L(t,x*.99)),I(A,L(t,x*.99)),I(A,L(t,x)))}return v.concat(M,y.reverse(),j)}function te(e,t={}){let{streamline:n=.5,size:r=16,last:i=!1}=t;if(e.length===0)return[];let a=.15+(1-n)*.85,o=Array.isArray(e[0])?e:e.map(({x:e,y:t,pressure:n=.5})=>[e,t,n]);if(o.length===2){let e=o[1];o=o.slice(0,-1);for(let t=1;t<5;t++)o.push(J(o[0],e,t/4))}o.length===1&&(o=[...o,[...F(o[0],[1,1]),...o[0].slice(2)]]);let s=[{point:[o[0][0],o[0][1]],pressure:o[0][2]>=0?o[0][2]:.25,vector:[1,1],distance:0,runningLength:0}],c=!1,l=0,u=s[0],d=o.length-1;for(let e=1;e=0?o[e][2]:.5,vector:G(I(u.point,t)),distance:n,runningLength:l},s.push(u)}return s[0].vector=s[1]?.vector||[0,0],s}function ne(e,t={}){return ee(te(e,t),t)}var re=class e extends D{constructor(...e){super(...e),this.points=[]}onStart(e){return this.el=document.createElementNS(`http://www.w3.org/2000/svg`,`path`),this.points=[e],this.attr(`fill`,this.brush.color),this.attr(`d`,this.getSvgData(this.points)),this.el}onMove(e){return this.el||this.onStart(e),this.points[this.points.length-1]!==e&&this.points.push(e),this.attr(`d`,this.getSvgData(this.points)),!0}onEnd(){let e=this.el;return this.el=null,!!e}getSvgData(t){return e.getSvgData(t,this.brush)}static getSvgData(e,t){let n=ne(e,{size:t.size,thinning:.9,simulatePressure:!1,start:{taper:5},end:{taper:5},...t.stylusOptions});if(!n.length)return``;let r=n.reduce((e,[t,n],r,i)=>{let[a,o]=i[(r+1)%i.length];return e.push(t,n,(t+a)/2,(n+o)/2),e},[`M`,...n[0],`Q`]);return r.push(`Z`),r.map(e=>typeof e==`number`?e.toFixed(2):e).join(` `)}};function ie(e){return{draw:new O(e),stylus:new re(e),line:new j(e),rectangle:new M(e),ellipse:new k(e),eraseLine:new A(e)}}var ae=class{constructor(e={}){this.options=e,this.el=null,this.svgPoint=null,this.eventEl=null,this.shiftPressed=!1,this.altPressed=!1,this.drawing=!1,this._emitter=m(),this._originalPointerId=null,this._models=ie(this),this._opStack=[],this._opIndex=0,this._disposables=[],this._elements=[],this.options.brush||(this.options.brush={color:`black`,size:3,mode:`stylus`}),e.el&&this.mount(e.el,e.eventTarget,e.window)}get model(){return this._models[this.mode]}get mounted(){return!!this.el}get mode(){return this.options.brush.mode||`stylus`}set mode(e){this._models[this.mode].onUnselected(),this.options.brush.mode=e,this.model.onSelected(this.el)}get brush(){return this.options.brush}set brush(e){this.options.brush=e}resolveSelector(e){return typeof e==`string`?document.querySelector(e):e||null}mount(e,t,n=window){if(this.el)throw Error(`[drauu] already mounted, unmount previous target first`);if(this.el=this.resolveSelector(e),!this.el)throw Error(`[drauu] target element not found`);if(this.el.tagName.toLocaleLowerCase()!==`svg`)throw Error(`[drauu] can only mount to a SVG element`);if(!this.el.createSVGPoint)throw Error(`[drauu] SVG element must be create by document.createElementNS('http://www.w3.org/2000/svg', 'svg')`);this.svgPoint=this.el.createSVGPoint();let r=this.resolveSelector(t)||this.el,i=this.eventStart.bind(this),a=this.eventMove.bind(this),o=this.eventEnd.bind(this),s=this.eventKeyboard.bind(this),c=this.touchMove.bind(this);r.addEventListener(`pointerdown`,i,{passive:!1}),n.addEventListener(`pointermove`,a,{passive:!1}),n.addEventListener(`pointerup`,o,{passive:!1}),n.addEventListener(`pointercancel`,o,{passive:!1}),n.addEventListener(`keydown`,s,!1),n.addEventListener(`keyup`,s,!1),n.addEventListener(`touchmove`,c,{passive:!1}),this._disposables.push(()=>{r.removeEventListener(`pointerdown`,i),n.removeEventListener(`pointermove`,a),n.removeEventListener(`pointerup`,o),n.removeEventListener(`pointercancel`,o),n.removeEventListener(`keydown`,s,!1),n.removeEventListener(`keyup`,s,!1),n.removeEventListener(`touchmove`,c)}),this._emitter.emit(`mounted`)}unmount(){this._disposables.forEach(e=>e()),this._disposables.length=0,this._elements.length=0,this.el=null,this._emitter.emit(`unmounted`)}on(e,t){return this._emitter.on(e,t)}undo(){return!this.canUndo()||this.drawing?!1:(this._opStack[--this._opIndex].undo(),this._emitter.emit(`changed`),!0)}redo(){return!this.canRedo()||this.drawing?!1:(this._opStack[this._opIndex++].redo(),this._emitter.emit(`changed`),!0)}canRedo(){return this._opIndex0}eventMove(e){!this.acceptsInput(e)||!this.drawing||this.model._eventMove(e)&&(e.stopPropagation(),e.preventDefault(),this._emitter.emit(`changed`))}eventStart(e){this.acceptsInput(e)&&(e.stopPropagation(),e.preventDefault(),this._currentNode&&this.cancel(),this.drawing=!0,this._originalPointerId=e.pointerId,this._emitter.emit(`start`),this._currentNode=this.model._eventDown(e),this._currentNode&&this.mode!==`eraseLine`&&this.el.appendChild(this._currentNode),this._emitter.emit(`changed`))}eventEnd(e){if(!this.acceptsInput(e)||!this.drawing)return;let t=this.model._eventUp(e);if(!t)this.cancel();else if(t===!0){let e=this._currentNode;e&&(this._appendNode(e),this.commit({undo:()=>this._removeNode(e),redo:()=>this._restoreNode(e)}))}else this.commit(t);this.drawing=!1,this._emitter.emit(`end`),this._emitter.emit(`changed`),this._originalPointerId=null}touchMove(e){Array.from(e.touches).some(e=>e.touchType===`stylus`&&e.identifier===this._originalPointerId)&&e.preventDefault()}acceptsInput(e){return(!this.options.acceptsInputTypes||this.options.acceptsInputTypes.includes(e.pointerType))&&!(this._originalPointerId&&this._originalPointerId!==e.pointerId)}eventKeyboard(e){(this.shiftPressed!==e.shiftKey||this.altPressed!==e.altKey)&&(this.shiftPressed=e.shiftKey,this.altPressed=e.altKey,this.model.point&&this.model.onMove(this.model.point)&&this._emitter.emit(`changed`))}commit(e){this._opStack.length=this._opIndex,this._opStack.push(e),this._opIndex++;let t=this._currentNode;this._currentNode=void 0,this._emitter.emit(`committed`,t)}clear(){this._opStack.length=0,this._opIndex=0,this._elements=[],this.cancel(),this.el.innerHTML=``,this._emitter.emit(`changed`)}cancel(){this._currentNode&&(this.el.removeChild(this._currentNode),this._currentNode=void 0,this._emitter.emit(`canceled`))}dump(){return this.el.innerHTML}load(e){this.clear(),this.el.innerHTML=e}_appendNode(e){let t=this._elements.at(-1);t?t.after(e):this.el.append(e);let n=this._elements.push(e)-1;e.dataset.drauu_index=n.toString()}_removeNode(e){e.remove(),this._elements[+e.dataset.drauu_index]=null}_restoreNode(e){let t=+e.dataset.drauu_index;this._elements[t]=e;for(let n=t-1;n>=0;n--){let t=this._elements[n];if(t){t.after(e);return}}this.el.prepend(e)}};function oe(e){return new ae(e)}var se=l(()=>{let{currentSlideNo:l,isPresenter:m}=s(),h=[`#ff595e`,`#ffca3a`,`#8ac926`,`#1982c4`,`#6a4c93`,`#ffffff`,`#000000`],g=u(`slidev-drawing-enabled`,!1),_=u(`slidev-drawing-pinned`,!1),v=u(`slidev-drawing-brush`,{color:h[0],size:4,mode:`stylus`}),y=i(!1),b=i(!1),x=i(!1),S=i(!1),C=i(`stylus`),w=r(()=>c.drawings.syncAll||m.value),T=!1,E=r({get(){return C.value},set(e){C.value=e,e===`arrow`?(O.mode=`line`,v.value.arrowEnd=!0):(O.mode=e,v.value.arrowEnd=!1)}}),D=a({brush:v,acceptsInputTypes:r(()=>g.value&&(!c.drawings.presenterOnly||m.value)?void 0:[`pen`]),coordinateTransform:!1}),O=n(oe(D));function k(){O.clear(),w.value&&f(l.value,``)}function A(){x.value=O.canRedo(),b.value=O.canUndo(),S.value=!!O.el?.children.length}function j(e){T=!0;let t=p[e||l.value];t==null?O.clear():O.load(t),A(),T=!1}return O.on(`changed`,()=>{if(A(),!T){let e=O.dump(),t=l.value;(p[t]||``)!==e&&w.value&&f(t,O.dump())}}),d(e=>{T=!0,e[l.value]!=null&&O.load(e[l.value]||``),T=!1,A()}),e(()=>{t(l,()=>{O.mounted&&j()},{immediate:!0})}),O.on(`start`,()=>y.value=!0),O.on(`end`,()=>y.value=!1),window.addEventListener(`keydown`,e=>{if(!g.value||o.value)return;let t=!e.ctrlKey&&!e.altKey&&!e.shiftKey&&!e.metaKey,n=!0;e.code===`KeyZ`&&(e.ctrlKey||e.metaKey)?e.shiftKey?O.redo():O.undo():e.code===`Escape`?g.value=!1:e.code===`KeyL`&&t?E.value=`line`:e.code===`KeyA`&&t?E.value=`arrow`:e.code===`KeyS`&&t?E.value=`stylus`:e.code===`KeyR`&&t?E.value=`rectangle`:e.code===`KeyE`&&t?E.value=`ellipse`:e.code===`KeyC`&&t?k():e.code.startsWith(`Digit`)&&t&&+e.code[5]<=h.length?v.value.color=h[e.code[5]-1]:n=!1,n&&(e.preventDefault(),e.stopPropagation())},!1),{brush:v,brushColors:h,canClear:S,canRedo:x,canUndo:b,clear:k,drauu:O,drauuOptions:D,drawingEnabled:g,drawingMode:E,drawingPinned:_,drawingState:p,isDrawing:y,loadCanvas:j}});export{se as t}; \ No newline at end of file diff --git a/lecture-06/class/assets/useNav-BF8Ehznl.js b/lecture-06/class/assets/useNav-BF8Ehznl.js new file mode 100644 index 0000000000000000000000000000000000000000..2a0b60bbae66fe96872944e4840c82aade493739 --- /dev/null +++ b/lecture-06/class/assets/useNav-BF8Ehznl.js @@ -0,0 +1,158 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./md-Q5AUu7Ga.js","./modules/shiki-BFOesOFp.js","./rolldown-runtime-hePW80VL.js","./modules/shiki-BrmBd2_v.css","./_plugin-vue_export-helper-BDNMzG2s.js","./slidev/context-DrkI8qiD.js","./modules/vue-Ymwlffw_.js","./TransformerGlyph-1pDKmZ2i.js","./TransformerGlyph-DdjNaryB.css","./md-CYXxUBJM.css","./md-DDIIGHBg.js","./interactive-BCz0jAef.js","./DeckFooter-B7ogzN5B.js","./slidev/client-DrWBSyE4.js","./syncState-BrWO1mSt.js","./index-BSNgeX_T.js","./index-DkUnP7jn.css","./useDrawings-DF8n2zfQ.js","./DeckFooter-B6vKMo6W.css","./interactive-D_LX0oud.css","./md-BV7tqBmU.css","./md-DmVH_S1g.js","./section-C2g2VRmZ.js","./section-BZ9Dfv_4.css","./md-CPUxpe3f2.js","./default-Dm4DVug5.js","./default-DFJXHcku.css","./md-CHQ8QitS.js","./md-rca7ok54.css","./md-BOud_X1x.js","./md-BDIryj7C.js","./slidev/VClicks-BJ1JuBhK.js","./md-C7CHIzYm.css","./md-C0itcagX.js","./md-CE5SRCC8.js","./slidev/CodeBlockWrapper-iqMg4CiG.js","./modules/unplugin-icons-BIrNarL0.js","./md-CWQvoV-6.js","./md-3TDQ06AG.js","./md-CECtUrix.js","./WidgetFrame-D2L0MlKA.js","./WidgetFrame-Czwyd28V.css","./StepButton-BcP33F-1.js","./StepButton-C1ItLUkw.css","./useConvolution-qO1u8ksh.js","./useAttention-Blk0c2BZ.js","./md-CLHejJIP.css","./md-D_l5cPMO.js","./md-Cvt7i2LC.js","./md-C6btF5nP.css","./md-B8UJ90ak.js","./AttentionMatrix-CVQjcu-J.js","./AttentionMatrix-BhYJvquu.css","./md-C3hQYWCV.js","./slidev/KaTexBlockWrapper-D5wJOb_T.js","./md-BqqYj8BO.js","./md-DuNbnbeN.js","./md-DrvbTEIQ.js","./md-DfWMIvp7.css","./md-CKtUT4kh.js","./PositionalEncoding-q3Ic_HFH.js","./PositionalEncoding-CPViPuDW.css","./md-9effmiXg.js","./md-CDVFD8Nc.js","./md-BiPai5i4.js","./md-CMtQSW0f2.js","./TransformerBlock-D6V5Q80S.js","./TransformerBlock-DhsPSwrk.css","./md-C63Qc83E2.js","./md-r7fws9Pg.js","./md-Ba9i9vHS.js","./md-CX-EJFbo.js","./md-DqiQvtl5.css","./md-ckgb6fzE.js","./md-BPrLSzMT.js","./md-HHaq088F2.js","./md-Cp4p0FvF.css","./md-otyMe-S12.js","./md-BCalMv_E2.js","./md-CVoSWXDp.js","./md-BMgHpn2g2.js","./md-DYDKkl4y.js","./md-CkUX2gzY2.js","./md-rKswDcIu2.js","./md-D0kJP7fQ2.js","./md-KMiNvInO.js","./md-DhZ23yU-.css","./md-BYbneerw2.js","./md-DE2QGCpb.css"])))=>i.map(i=>d[i]); +import{C as e,L as t,N as n,O as r,R as i,Y as a,_ as o,_t as s,b as c,ft as l,g as u,gt as ee,lt as d,m as f,pt as te,rt as ne,st as p,ut as m,w as re,xt as ie,y as ae,z as oe}from"./modules/shiki-BFOesOFp.js";import{t as se}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{A as ce,B as le,D as ue,E as de,L as fe,V as pe,_ as me,a as he,c as ge,g as h,h as _e,j as ve,l as ye}from"./modules/vue-Ymwlffw_.js";import{l as be,y as xe}from"./slidev/context-DrkI8qiD.js";function Se(e,t,n){return Math.min(n,Math.max(t,e))}function Ce(...e){return Te(e).reduce((e,t)=>e+t,0)}function we(e){return e??=[],Array.isArray(e)?e:[e]}function Te(e){return we(e).flat(1)}function Ee(e){return Array.from(new Set(e))}function De(...e){let t,n,r;e.length===1?(t=0,r=1,[n]=e):[t,n,r=1]=e;let i=[],a=t;for(;at(e,n)).filter(Oe))}var g={theme:`dl2026`,title:`Transformers (class)`,titleTemplate:`%s - Slidev`,addons:[`dl2026`],remoteAssets:!1,monaco:!0,monacoTypesSource:`local`,monacoTypesAdditionalPackages:[],monacoTypesIgnorePackages:[],monacoRunAdditionalDeps:[],monacoRunUseStrict:!0,download:`../slides.pdf`,export:{},info:`

PGR207 Deep Learning 2026 — Lecture 06

+`,highlighter:`shiki`,twoslash:!0,lineNumbers:!1,colorSchema:`auto`,routerMode:`hash`,aspectRatio:1.7777777777777777,canvasWidth:980,exportFilename:``,selectable:!1,themeConfig:{courseCode:`PGR207`,lecture:`06`,lectureTitle:`Transformers`},fonts:{sans:[`"Inter"`,`ui-sans-serif`,`system-ui`,`-apple-system`,`BlinkMacSystemFont`,`"Segoe UI"`,`Roboto`,`"Helvetica Neue"`,`Arial`,`"Noto Sans"`,`sans-serif`,`"Apple Color Emoji"`,`"Segoe UI Emoji"`,`"Segoe UI Symbol"`,`"Noto Color Emoji"`],serif:[`"Source Serif 4"`,`ui-serif`,`Georgia`,`Cambria`,`"Times New Roman"`,`Times`,`serif`],mono:[`"JetBrains Mono"`,`ui-monospace`,`SFMono-Regular`,`Menlo`,`Monaco`,`Consolas`,`"Liberation Mono"`,`"Courier New"`,`monospace`],webfonts:[`Inter`,`Source Serif 4`,`JetBrains Mono`],provider:`google`,local:[],italic:!1,weights:[`200`,`400`,`600`]},favicon:`https://cdn.jsdelivr.net/gh/slidevjs/slidev/assets/favicon.png`,drawings:{enabled:!0,persist:!1,presenterOnly:!1,syncAll:!0},plantUmlServer:`https://www.plantuml.com/plantuml`,codeCopy:!0,magicMoveCopy:!0,author:`Vajira Thambawita`,record:`dev`,css:`unocss`,presenter:!0,browserExporter:`dev`,htmlAttrs:{},transition:`slide-left`,editor:!0,mcp:!0,contextMenu:null,wakeLock:!0,pwa:!1,mdc:!0,comark:!1,seoMeta:{},notesAutoRuby:{},duration:`30min`,timer:`stopwatch`,magicMoveDuration:800,preloadImages:!0,clickAnimation:``,layout:`title`,courseCode:`PGR207`,lecture:`06`,email:`vajira@simula.no`,slidesTitle:`Transformers (class) - Slidev`},Ae=`build`,je=u(()=>g.aspectRatio),Me=u(()=>g.canvasWidth),Ne=u(()=>Math.ceil(Me.value/je.value)),Pe=u(()=>ke(g.themeConfig||{},(e,t)=>[`--slidev-theme-${e}`,t])),Fe=g.slidesTitle,Ie=`./#/`,Le=`modulepreload`,Re=function(e,t){return new URL(e,t).href},ze={},_=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=Re(t,n),t=s(t),t in ze)return;ze[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:Le,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};function Be(e){if(e===!1||e===`false`)return null;if(e==null||e===!0||e===`true`)return`+1`;if(typeof e==`string`&&`+-`.includes(e[0]))return e;let t=+e;return Number.isNaN(t)?(console.error(`Invalid "at" prop value: ${e}`),null):t<=0?(console.warn(`[Slidev] "at" prop value must be greater than 0, but got ${e}, has been set to 1`),1):t}function Ve(e){return Array.isArray(e)?[Be(e[0]),Be(e[1])]:null}function He(e,n=0,r){let a=d(!1),o=new Map,s=new Map,c={get current(){return Se(+e.value,n,c.total)},set current(t){e.value=a.value?Se(t,n,c.total):t},clicksStart:n,get relativeSizeMap(){return o},get maxMap(){return s},get isMounted(){return a.value},setup(){t(()=>{a.value=!0,s=m(s),ne(e)||(c.current=e.value)}),i(()=>{a.value=!1,o=new Map,s=new Map})},calculateSince(e,t=1){let n=Be(e);if(n==null)return null;let r,i,a;if(typeof n==`string`){let e=c.currentOffset,o=+n;r=e+o,i=e+o+t-1,a=o+t-1}else r=n,i=n+t-1,a=0;return{start:r,end:1/0,max:i,delta:a,currentOffset:u(()=>c.current-r),isCurrent:u(()=>c.current===r),isActive:u(()=>c.current>=r)}},calculateRange(e){let t=Ve(e);if(t==null)return null;let[n,r]=t,i,a,o;return typeof n==`string`?(i=c.currentOffset+ +n,o=+n):(i=n,o=0),typeof r==`string`?(a=i+ +r,o+=+r):a=r,{start:i,end:a,max:a,delta:o,currentOffset:u(()=>c.current-i),isCurrent:u(()=>c.current===i),isActive:u(()=>i<=c.current&&c.currentee(t),e=>{r.value=Math.max(e,n)}),He(r,n,e?.meta?.clicks)}var We=/[a-z]/i;function Ge(e){if(typeof e==`number`)return{seconds:e,relative:!1};let t=e.startsWith(`+`);t&&(e=e.slice(1));let n=0;if(e.includes(`:`)){let t=e.split(`:`).map(Number),r=0,i=0,a=0;if(t.length===3)r=t[0],i=t[1],a=t[2];else if(t.length===2)i=t[0],a=t[1];else if(t.length===1)a=t[0];else throw TypeError(`Invalid timestamp format`);if(Number.isNaN(r)||Number.isNaN(i)||Number.isNaN(a))throw TypeError(`Invalid timestamp format`);n=(r||0)*3600+(i||0)*60+(a||0)}else if(!We.test(e))n=Number(e);else{let t={s:1,sec:1,secs:1,m:60,min:60,mins:60,h:3600,hr:3600,hrs:3600,hour:3600,hours:3600,day:86400,days:86400,week:604800,weeks:604800,month:2629746,months:2629746,year:31556952,years:31556952},r=/([\d.]+)([a-z]+)/gi,i=e.matchAll(r);if(i)for(let e of i){let r=Number(e[1]);if(Number.isNaN(r))throw TypeError(`Invalid timestamp value: ${e[1]}`);let i=e[2].toLowerCase();if(!(i in t))throw TypeError(`Invalid timestamp unit: ${i}`);n+=r*t[i]}let a=e.replace(r,``).trim();if(a)throw TypeError(`Unknown timestamp remaining: ${a}`)}return{seconds:n,relative:t}}function Ke(e,t){if(!t||t===`all`||t===`*`)return De(1,e+1);if(t===`none`)return[];let n=[];for(let r of t.split(/[,;]/g))if(!r.includes(`-`))n.push(+r);else{let[t,i]=r.split(`-`,2);n.push(...De(+t,i?+i+1:e+1))}return Ee(n).filter(t=>t<=e).sort((e,t)=>e-t)}var qe={},Je={class:`px-4 py-10 text-center text-red-700 dark:text-red-500 font-bold font-mono`};function Ye(e,t){return oe(),c(`div`,Je,ie(`Failed to fetch this slide. Please check your network connection.`))}var v=se(qe,[[`render`,Ye]]),Xe={class:`h-full w-full flex items-center justify-center gap-2 slidev-slide-loading`},Ze=re({__name:`SlideLoading`,setup(e){let n=d(!1);return t(()=>{setTimeout(()=>{n.value=!0},200)}),(e,t)=>(oe(),c(`div`,Xe,[n.value?(oe(),c(f,{key:0},[t[0]||=o(`div`,{class:`i-svg-spinners-90-ring-with-bg text-xl`},null,-1),t[1]||=o(`div`,null,`Loading slide...`,-1)],64)):ae(`v-if`,!0)]))}}),y=p({theme:`dl2026`,addons:[`dl2026`],title:`Transformers (class)`,info:`PGR207 Deep Learning 2026 — Lecture 06`,author:`Vajira Thambawita`,routerMode:`hash`,transition:`slide-left`,mdc:!0,themeConfig:{courseCode:`PGR207`,lecture:`06`,lectureTitle:`Transformers`},layout:`title`,courseCode:`PGR207`,lecture:`06`,email:`vajira@simula.no`,download:`../slides.pdf`}),Qe=m({get layout(){return y.layout},get transition(){return y.transition},get class(){return y.class},get clicks(){return y.clicks},get name(){return y.name},get preload(){return y.preload},slide:{content:``,revision:`-yd70kj`,frontmatterRaw:`theme: dl2026 +addons: + - dl2026 +title: "Transformers (class)" +info: PGR207 Deep Learning 2026 — Lecture 06 +author: Vajira Thambawita +routerMode: hash +transition: slide-left +mdc: true +themeConfig: + courseCode: PGR207 + lecture: "06" + lectureTitle: Transformers +layout: title +courseCode: PGR207 +lecture: "06" +email: vajira@simula.no +download: ../slides.pdf +`,note:``,title:`Transformers (class)`,index:0,noteHTML:``,images:[],raw:``,frontmatter:y,filepath:``,start:0,sourceIndex:0,id:0,no:1},__clicksContext:null,__preloaded:!1}),b=p({layout:`interactive`,core:!0,heading:`Where we are`,title:`Where we are`,"aside-width":`15rem`}),$e=m({get layout(){return b.layout},get transition(){return b.transition},get class(){return b.class},get clicks(){return b.clicks},get name(){return b.name},get preload(){return b.preload},slide:{content:``,revision:`qwdzey`,frontmatterRaw:`layout: interactive +core: true +heading: Where we are +title: Where we are +aside-width: 15rem +`,note:``,title:`Where we are`,index:1,noteHTML:``,images:[],raw:``,frontmatter:b,filepath:``,start:59,sourceIndex:1,id:1,no:2},__clicksContext:null,__preloaded:!1}),x=p({layout:`section`,index:`00`}),et=m({get layout(){return x.layout},get transition(){return x.transition},get class(){return x.class},get clicks(){return x.clicks},get name(){return x.name},get preload(){return x.preload},slide:{content:``,revision:`-n8hlte`,frontmatterRaw:`layout: section +index: "00" +`,note:``,title:`Delete the recurrence`,level:1,index:2,noteHTML:``,images:[],raw:``,frontmatter:x,filepath:``,start:93,sourceIndex:2,id:2,no:3},__clicksContext:null,__preloaded:!1}),S=p({layout:`default`,core:!0,title:`Where last week stopped`}),tt=m({get layout(){return S.layout},get transition(){return S.transition},get class(){return S.class},get clicks(){return S.clicks},get name(){return S.name},get preload(){return S.preload},slide:{content:``,revision:`k6l240`,frontmatterRaw:`layout: default +core: true +title: Where last week stopped +`,note:``,title:`Where last week stopped`,index:3,noteHTML:``,images:[],raw:``,frontmatter:S,filepath:``,start:115,sourceIndex:3,id:3,no:4},__clicksContext:null,__preloaded:!1}),C=p({layout:`default`,core:!0,title:`The move`}),nt=m({get layout(){return C.layout},get transition(){return C.transition},get class(){return C.class},get clicks(){return C.clicks},get name(){return C.name},get preload(){return C.preload},slide:{content:``,revision:`b9nv34`,frontmatterRaw:`layout: default +core: true +title: The move +`,note:``,title:`The move`,index:4,noteHTML:``,images:[],raw:``,frontmatter:C,filepath:``,start:217,sourceIndex:4,id:4,no:5},__clicksContext:null,__preloaded:!1}),w=p({layout:`default`,core:!0,title:`What a transformer is`}),rt=m({get layout(){return w.layout},get transition(){return w.transition},get class(){return w.class},get clicks(){return w.clicks},get name(){return w.name},get preload(){return w.preload},slide:{content:``,revision:`-9kwb3p`,frontmatterRaw:`layout: default +core: true +title: What a transformer is +`,note:``,title:`What a transformer is`,index:5,noteHTML:``,images:[],raw:``,frontmatter:w,filepath:``,start:313,sourceIndex:5,id:5,no:6},__clicksContext:null,__preloaded:!1}),T=p({layout:`default`,core:!0,title:`Poll: which wall attention solves`}),it=m({get layout(){return T.layout},get transition(){return T.transition},get class(){return T.class},get clicks(){return T.clicks},get name(){return T.name},get preload(){return T.preload},slide:{content:``,revision:`-1xcu6e`,frontmatterRaw:`layout: default +core: true +title: "Poll: which wall attention solves" +`,note:``,title:`Poll: which wall attention solves`,index:6,noteHTML:``,images:[],raw:``,frontmatter:T,filepath:``,start:404,sourceIndex:6,id:6,no:7},__clicksContext:null,__preloaded:!1}),E=p({layout:`section`,index:`01`}),at=m({get layout(){return E.layout},get transition(){return E.transition},get class(){return E.class},get clicks(){return E.clicks},get name(){return E.name},get preload(){return E.preload},slide:{content:``,revision:`-72a22j`,frontmatterRaw:`layout: section +index: "01" +`,note:``,title:`Query, key, value`,level:1,index:7,noteHTML:``,images:[],raw:``,frontmatter:E,filepath:``,start:485,sourceIndex:7,id:7,no:8},__clicksContext:null,__preloaded:!1}),D=p({layout:`default`,core:!0,title:`Start from a lookup`}),ot=m({get layout(){return D.layout},get transition(){return D.transition},get class(){return D.class},get clicks(){return D.clicks},get name(){return D.name},get preload(){return D.preload},slide:{content:``,revision:`-9gzigd`,frontmatterRaw:`layout: default +core: true +title: Start from a lookup +`,note:``,title:`Start from a lookup`,index:8,noteHTML:``,images:[],raw:``,frontmatter:D,filepath:``,start:507,sourceIndex:8,id:8,no:9},__clicksContext:null,__preloaded:!1}),O=p({layout:`default`,core:!0,title:`Three roles, one vector`}),st=m({get layout(){return O.layout},get transition(){return O.transition},get class(){return O.class},get clicks(){return O.clicks},get name(){return O.name},get preload(){return O.preload},slide:{content:``,revision:`2jrf8k`,frontmatterRaw:`layout: default +core: true +title: Three roles, one vector +`,note:``,title:`Three roles, one vector`,index:9,noteHTML:``,images:[],raw:``,frontmatter:O,filepath:``,start:622,sourceIndex:9,id:9,no:10},__clicksContext:null,__preloaded:!1}),k=p({layout:`default`,core:!0,title:`The sentence we will use all lecture`}),ct=m({get layout(){return k.layout},get transition(){return k.transition},get class(){return k.class},get clicks(){return k.clicks},get name(){return k.name},get preload(){return k.preload},slide:{content:``,revision:`oumu2v`,frontmatterRaw:`layout: default +core: true +title: The sentence we will use all lecture +`,note:``,title:`The sentence we will use all lecture`,index:10,noteHTML:``,images:[],raw:``,frontmatter:k,filepath:``,start:694,sourceIndex:10,id:10,no:11},__clicksContext:null,__preloaded:!1}),A=p({layout:`interactive`,core:!0,heading:`Three lenses on one word`,title:`Three lenses on one word`,"aside-width":`17rem`}),lt=m({get layout(){return A.layout},get transition(){return A.transition},get class(){return A.class},get clicks(){return A.clicks},get name(){return A.name},get preload(){return A.preload},slide:{content:``,revision:`-hyjd9h`,frontmatterRaw:`layout: interactive +core: true +heading: Three lenses on one word +title: Three lenses on one word +aside-width: 17rem +`,note:``,title:`Three lenses on one word`,index:11,noteHTML:``,images:[],raw:``,frontmatter:A,filepath:``,start:797,sourceIndex:11,id:11,no:12},__clicksContext:null,__preloaded:!1}),j=p({layout:`default`,core:!0,title:`Four steps, and that is the whole mechanism`}),ut=m({get layout(){return j.layout},get transition(){return j.transition},get class(){return j.class},get clicks(){return j.clicks},get name(){return j.name},get preload(){return j.preload},slide:{content:``,revision:`fw173h`,frontmatterRaw:`layout: default +core: true +title: Four steps, and that is the whole mechanism +`,note:``,title:`Four steps, and that is the whole mechanism`,index:12,noteHTML:``,images:[],raw:``,frontmatter:j,filepath:``,start:845,sourceIndex:12,id:12,no:13},__clicksContext:null,__preloaded:!1}),M=p({layout:`interactive`,core:!0,heading:`Same word, same weights, different neighbour`,title:`Same word, same weights, different neighbour`,"aside-width":`18rem`}),dt=m({get layout(){return M.layout},get transition(){return M.transition},get class(){return M.class},get clicks(){return M.clicks},get name(){return M.name},get preload(){return M.preload},slide:{content:``,revision:`cerqj5`,frontmatterRaw:`layout: interactive +core: true +heading: Same word, same weights, different neighbour +title: Same word, same weights, different neighbour +aside-width: 18rem +`,note:``,title:`Same word, same weights, different neighbour`,index:13,noteHTML:``,images:[],raw:``,frontmatter:M,filepath:``,start:935,sourceIndex:13,id:13,no:14},__clicksContext:null,__preloaded:!1}),N=p({layout:`interactive`,core:!0,heading:`Every query at once`,title:`Every query at once`,"aside-width":`18rem`}),ft=m({get layout(){return N.layout},get transition(){return N.transition},get class(){return N.class},get clicks(){return N.clicks},get name(){return N.name},get preload(){return N.preload},slide:{content:``,revision:`ncsu25`,frontmatterRaw:`layout: interactive +core: true +heading: Every query at once +title: Every query at once +aside-width: 18rem +`,note:``,title:`Every query at once`,index:14,noteHTML:``,images:[],raw:``,frontmatter:N,filepath:``,start:982,sourceIndex:14,id:14,no:15},__clicksContext:null,__preloaded:!1}),P=p({layout:`default`,core:!0,title:`The whole layer, in one line`}),pt=m({get layout(){return P.layout},get transition(){return P.transition},get class(){return P.class},get clicks(){return P.clicks},get name(){return P.name},get preload(){return P.preload},slide:{content:``,revision:`-zhllks`,frontmatterRaw:`layout: default +core: true +title: The whole layer, in one line +`,note:``,title:`The whole layer, in one line`,index:15,noteHTML:``,images:[],raw:``,frontmatter:P,filepath:``,start:1029,sourceIndex:15,id:15,no:16},__clicksContext:null,__preloaded:!1}),mt=p({layout:`section`,index:`02`}),ht=m({get layout(){return mt.layout},get transition(){return mt.transition},get class(){return mt.class},get clicks(){return mt.clicks},get name(){return mt.name},get preload(){return mt.preload},slide:{content:``,revision:`-pib9ba`,frontmatterRaw:`layout: section +index: "02" +`,note:``,title:`From one head to one block`,level:1,index:16,noteHTML:``,images:[],raw:``,frontmatter:mt,filepath:``,start:1119,sourceIndex:16,id:16,no:17},__clicksContext:null,__preloaded:!1}),F=p({layout:`default`,core:!0,title:`One softmax can only point at one thing`}),gt=m({get layout(){return F.layout},get transition(){return F.transition},get class(){return F.class},get clicks(){return F.clicks},get name(){return F.name},get preload(){return F.preload},slide:{content:``,revision:`-gbscpj`,frontmatterRaw:`layout: default +core: true +title: One softmax can only point at one thing +`,note:``,title:`One softmax can only point at one thing`,index:17,noteHTML:``,images:[],raw:``,frontmatter:F,filepath:``,start:1143,sourceIndex:17,id:17,no:18},__clicksContext:null,__preloaded:!1}),I=p({layout:`interactive`,core:!0,heading:`Four heads, one question each`,title:`Four heads, one question each`,"aside-width":`17rem`}),_t=m({get layout(){return I.layout},get transition(){return I.transition},get class(){return I.class},get clicks(){return I.clicks},get name(){return I.name},get preload(){return I.preload},slide:{content:``,revision:`f87tka`,frontmatterRaw:`layout: interactive +core: true +heading: Four heads, one question each +title: Four heads, one question each +aside-width: 17rem +`,note:``,title:`Four heads, one question each`,index:18,noteHTML:``,images:[],raw:``,frontmatter:I,filepath:``,start:1214,sourceIndex:18,id:18,no:19},__clicksContext:null,__preloaded:!1}),L=p({layout:`interactive`,core:!0,heading:`Attention does not know what order the words came in`,title:`Attention does not know what order the words came in`,"aside-width":`18rem`}),vt=m({get layout(){return L.layout},get transition(){return L.transition},get class(){return L.class},get clicks(){return L.clicks},get name(){return L.name},get preload(){return L.preload},slide:{content:``,revision:`-2lu0y`,frontmatterRaw:`layout: interactive +core: true +heading: Attention does not know what order the words came in +title: Attention does not know what order the words came in +aside-width: 18rem +`,note:``,title:`Attention does not know what order the words came in`,index:19,noteHTML:``,images:[],raw:``,frontmatter:L,filepath:``,start:1269,sourceIndex:19,id:19,no:20},__clicksContext:null,__preloaded:!1}),R=p({layout:`interactive`,core:!0,heading:`So put the position into the vector`,title:`So put the position into the vector`,"aside-width":`18rem`}),yt=m({get layout(){return R.layout},get transition(){return R.transition},get class(){return R.class},get clicks(){return R.clicks},get name(){return R.name},get preload(){return R.preload},slide:{content:``,revision:`-prrwo4`,frontmatterRaw:`layout: interactive +core: true +heading: So put the position into the vector +title: So put the position into the vector +aside-width: 18rem +`,note:``,title:`So put the position into the vector`,index:20,noteHTML:``,images:[],raw:``,frontmatter:R,filepath:``,start:1322,sourceIndex:20,id:20,no:21},__clicksContext:null,__preloaded:!1}),z=p({layout:`default`,core:!0,title:`The other half of the block`}),bt=m({get layout(){return z.layout},get transition(){return z.transition},get class(){return z.class},get clicks(){return z.clicks},get name(){return z.name},get preload(){return z.preload},slide:{content:``,revision:`hz6gbd`,frontmatterRaw:`layout: default +core: true +title: The other half of the block +`,note:``,title:`The other half of the block`,index:21,noteHTML:``,images:[],raw:``,frontmatter:z,filepath:``,start:1379,sourceIndex:21,id:21,no:22},__clicksContext:null,__preloaded:!1}),B=p({layout:`default`,core:!0,title:`Two wrappers that make it stackable`}),xt=m({get layout(){return B.layout},get transition(){return B.transition},get class(){return B.class},get clicks(){return B.clicks},get name(){return B.name},get preload(){return B.preload},slide:{content:``,revision:`-nyxime`,frontmatterRaw:`layout: default +core: true +title: Two wrappers that make it stackable +`,note:``,title:`Two wrappers that make it stackable`,index:22,noteHTML:``,images:[],raw:``,frontmatter:B,filepath:``,start:1472,sourceIndex:22,id:22,no:23},__clicksContext:null,__preloaded:!1}),V=p({layout:`interactive`,core:!0,heading:`The block, assembled`,title:`The block, assembled`,"aside-width":`17rem`}),St=m({get layout(){return V.layout},get transition(){return V.transition},get class(){return V.class},get clicks(){return V.clicks},get name(){return V.name},get preload(){return V.preload},slide:{content:``,revision:`-bhgb7p`,frontmatterRaw:`layout: interactive +core: true +heading: The block, assembled +title: The block, assembled +aside-width: 17rem +`,note:``,title:`The block, assembled`,index:23,noteHTML:``,images:[],raw:``,frontmatter:V,filepath:``,start:1569,sourceIndex:23,id:23,no:24},__clicksContext:null,__preloaded:!1}),H=p({layout:`default`,core:!0,title:`The bill for looking everywhere`}),Ct=m({get layout(){return H.layout},get transition(){return H.transition},get class(){return H.class},get clicks(){return H.clicks},get name(){return H.name},get preload(){return H.preload},slide:{content:``,revision:`-pcpzje`,frontmatterRaw:`layout: default +core: true +title: The bill for looking everywhere +`,note:``,title:`The bill for looking everywhere`,index:24,noteHTML:``,images:[],raw:``,frontmatter:H,filepath:``,start:1625,sourceIndex:24,id:24,no:25},__clicksContext:null,__preloaded:!1}),U=p({layout:`section`,index:`03`}),wt=m({get layout(){return U.layout},get transition(){return U.transition},get class(){return U.class},get clicks(){return U.clicks},get name(){return U.name},get preload(){return U.preload},slide:{content:``,revision:`-s6pzo9`,frontmatterRaw:`layout: section +index: "03" +`,note:``,title:`The original transformer`,level:1,index:25,noteHTML:``,images:[],raw:``,frontmatter:U,filepath:``,start:1703,sourceIndex:25,id:25,no:26},__clicksContext:null,__preloaded:!1}),W=p({layout:`default`,core:!0,title:`Two stacks`}),Tt=m({get layout(){return W.layout},get transition(){return W.transition},get class(){return W.class},get clicks(){return W.clicks},get name(){return W.name},get preload(){return W.preload},slide:{content:``,revision:`ot7nae`,frontmatterRaw:`layout: default +core: true +title: Two stacks +`,note:``,title:`Two stacks`,index:26,noteHTML:``,images:[],raw:``,frontmatter:W,filepath:``,start:1725,sourceIndex:26,id:26,no:27},__clicksContext:null,__preloaded:!1}),G=p({layout:`interactive`,core:!0,heading:`The architecture, step by step`,title:`The architecture, step by step`,"aside-width":`17rem`}),Et=m({get layout(){return G.layout},get transition(){return G.transition},get class(){return G.class},get clicks(){return G.clicks},get name(){return G.name},get preload(){return G.preload},slide:{content:``,revision:`9i68c1`,frontmatterRaw:`layout: interactive +core: true +heading: The architecture, step by step +title: The architecture, step by step +aside-width: 17rem +`,note:``,title:`The architecture, step by step`,index:27,noteHTML:``,images:[],raw:``,frontmatter:G,filepath:``,start:1813,sourceIndex:27,id:27,no:28},__clicksContext:null,__preloaded:!1}),K=p({layout:`interactive`,core:!0,heading:`The mask, and why the loss collapses without it`,title:`The mask, and why the loss collapses without it`,"aside-width":`18rem`}),Dt=m({get layout(){return K.layout},get transition(){return K.transition},get class(){return K.class},get clicks(){return K.clicks},get name(){return K.name},get preload(){return K.preload},slide:{content:``,revision:`lnz79r`,frontmatterRaw:`layout: interactive +core: true +heading: The mask, and why the loss collapses without it +title: The mask, and why the loss collapses without it +aside-width: 18rem +`,note:``,title:`The mask, and why the loss collapses without it`,index:28,noteHTML:``,images:[],raw:``,frontmatter:K,filepath:``,start:1870,sourceIndex:28,id:28,no:29},__clicksContext:null,__preloaded:!1}),q=p({layout:`section`,index:`04`}),Ot=m({get layout(){return q.layout},get transition(){return q.transition},get class(){return q.class},get clicks(){return q.clicks},get name(){return q.name},get preload(){return q.preload},slide:{content:``,revision:`1r4klh`,frontmatterRaw:`layout: section +index: "04" +`,note:``,title:`Modern transformers`,level:1,index:29,noteHTML:``,images:[],raw:``,frontmatter:q,filepath:``,start:1931,sourceIndex:29,id:29,no:30},__clicksContext:null,__preloaded:!1}),J=p({layout:`interactive`,core:!0,heading:`The architecture forked three ways`,title:`The architecture forked three ways`,"aside-width":`17rem`}),kt=m({get layout(){return J.layout},get transition(){return J.transition},get class(){return J.class},get clicks(){return J.clicks},get name(){return J.name},get preload(){return J.preload},slide:{content:``,revision:`-5t0qeu`,frontmatterRaw:`layout: interactive +core: true +heading: The architecture forked three ways +title: The architecture forked three ways +aside-width: 17rem +`,note:``,title:`The architecture forked three ways`,index:30,noteHTML:``,images:[],raw:``,frontmatter:J,filepath:``,start:1953,sourceIndex:30,id:30,no:31},__clicksContext:null,__preloaded:!1}),At=p({layout:`default`,core:!0,title:`Why decoder-only took over`}),jt=m({get layout(){return At.layout},get transition(){return At.transition},get class(){return At.class},get clicks(){return At.clicks},get name(){return At.name},get preload(){return At.preload},slide:{content:``,revision:`-t3dzoq`,frontmatterRaw:`layout: default +core: true +title: Why decoder-only took over +`,note:``,title:`Why decoder-only took over`,index:31,noteHTML:``,images:[],raw:``,frontmatter:At,filepath:``,start:2007,sourceIndex:31,id:31,no:32},__clicksContext:null,__preloaded:!1}),Mt=p({layout:`interactive`,core:!0,heading:`One wire moved, and deep stacks started training`,title:`One wire moved, and deep stacks started training`,"aside-width":`19rem`}),Nt=m({get layout(){return Mt.layout},get transition(){return Mt.transition},get class(){return Mt.class},get clicks(){return Mt.clicks},get name(){return Mt.name},get preload(){return Mt.preload},slide:{content:``,revision:`-835sqk`,frontmatterRaw:`layout: interactive +core: true +heading: One wire moved, and deep stacks started training +title: One wire moved, and deep stacks started training +aside-width: 19rem +`,note:``,title:`One wire moved, and deep stacks started training`,index:32,noteHTML:``,images:[],raw:``,frontmatter:Mt,filepath:``,start:2090,sourceIndex:32,id:32,no:33},__clicksContext:null,__preloaded:!1}),Y=p({layout:`default`,core:!0,title:`The same block, more of it`}),Pt=m({get layout(){return Y.layout},get transition(){return Y.transition},get class(){return Y.class},get clicks(){return Y.clicks},get name(){return Y.name},get preload(){return Y.preload},slide:{content:``,revision:`tie327`,frontmatterRaw:`layout: default +core: true +title: The same block, more of it +`,note:``,title:`The same block, more of it`,index:33,noteHTML:``,images:[],raw:``,frontmatter:Y,filepath:``,start:2145,sourceIndex:33,id:33,no:34},__clicksContext:null,__preloaded:!1}),Ft=p({layout:`section`,index:`05`}),It=m({get layout(){return Ft.layout},get transition(){return Ft.transition},get class(){return Ft.class},get clicks(){return Ft.clicks},get name(){return Ft.name},get preload(){return Ft.preload},slide:{content:``,revision:`-87qq79`,frontmatterRaw:`layout: section +index: "05" +`,note:``,title:`In PyTorch`,level:1,index:34,noteHTML:``,images:[],raw:``,frontmatter:Ft,filepath:``,start:2227,sourceIndex:34,id:34,no:35},__clicksContext:null,__preloaded:!1}),Lt=p({layout:`default`,core:!0,title:`The mechanism is one function call`}),Rt=m({get layout(){return Lt.layout},get transition(){return Lt.transition},get class(){return Lt.class},get clicks(){return Lt.clicks},get name(){return Lt.name},get preload(){return Lt.preload},slide:{content:``,revision:`-k3ps6t`,frontmatterRaw:`layout: default +core: true +title: The mechanism is one function call +`,note:``,title:`The mechanism is one function call`,index:35,noteHTML:``,images:[],raw:``,frontmatter:Lt,filepath:``,start:2251,sourceIndex:35,id:35,no:36},__clicksContext:null,__preloaded:!1}),zt=p({layout:`default`,core:!0,title:`Shapes, end to end`}),Bt=m({get layout(){return zt.layout},get transition(){return zt.transition},get class(){return zt.class},get clicks(){return zt.clicks},get name(){return zt.name},get preload(){return zt.preload},slide:{content:``,revision:`571h6t`,frontmatterRaw:`layout: default +core: true +title: Shapes, end to end +`,note:``,title:`Shapes, end to end`,index:36,noteHTML:``,images:[],raw:``,frontmatter:zt,filepath:``,start:2345,sourceIndex:36,id:36,no:37},__clicksContext:null,__preloaded:!1}),Vt=p({layout:`section`,index:`06`}),Ht=m({get layout(){return Vt.layout},get transition(){return Vt.transition},get class(){return Vt.class},get clicks(){return Vt.clicks},get name(){return Vt.name},get preload(){return Vt.preload},slide:{content:``,revision:`mxe2ex`,frontmatterRaw:`layout: section +index: "06" +`,note:``,title:`Where that leaves us`,level:1,index:37,noteHTML:``,images:[],raw:``,frontmatter:Vt,filepath:``,start:2421,sourceIndex:37,id:37,no:38},__clicksContext:null,__preloaded:!1}),Ut=p({layout:`default`,core:!0,title:`Where we got to`}),Wt=m({get layout(){return Ut.layout},get transition(){return Ut.transition},get class(){return Ut.class},get clicks(){return Ut.clicks},get name(){return Ut.name},get preload(){return Ut.preload},slide:{content:``,revision:`-i9t0bt`,frontmatterRaw:`layout: default +core: true +title: Where we got to +`,note:``,title:`Where we got to`,index:38,noteHTML:``,images:[],raw:``,frontmatter:Ut,filepath:``,start:2441,sourceIndex:38,id:38,no:39},__clicksContext:null,__preloaded:!1}),Gt=p({layout:`default`,core:!0,title:`Reading, and the lab`}),Kt=m({get layout(){return Gt.layout},get transition(){return Gt.transition},get class(){return Gt.class},get clicks(){return Gt.clicks},get name(){return Gt.name},get preload(){return Gt.preload},slide:{content:``,revision:`64521o`,frontmatterRaw:`layout: default +core: true +title: Reading, and the lab +`,note:``,title:`Reading, and the lab`,index:39,noteHTML:``,images:[],raw:``,frontmatter:Gt,filepath:``,start:2525,sourceIndex:39,id:39,no:40},__clicksContext:null,__preloaded:!1}),X=p({layout:`end`,email:`vajira@simula.no`,next:`Large Language Models`}),qt=m({get layout(){return X.layout},get transition(){return X.transition},get class(){return X.class},get clicks(){return X.clicks},get name(){return X.name},get preload(){return X.preload},slide:{content:``,revision:`-97u6q5`,frontmatterRaw:`layout: end +email: vajira@simula.no +next: Large Language Models +`,note:``,title:`To be continued…`,level:1,index:40,noteHTML:``,images:[],raw:``,frontmatter:X,filepath:``,start:2610,sourceIndex:40,id:40,no:41},__clicksContext:null,__preloaded:!1}),Z=Array(41),Q=(t,n)=>e({loader:n,delay:300,loadingComponent:Ze,errorComponent:v,onError:e=>console.error(`Failed to load slide `+(t+1),e)}),Jt=async()=>{try{return Z[0]??=await _(()=>import(`./md-Q5AUu7Ga.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Yt=async()=>{try{return Z[1]??=await _(()=>import(`./md-DDIIGHBg.js`),__vite__mapDeps([10,1,2,3,4,5,6,11,12,13,14,15,16,17,18,19,20]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Xt=async()=>{try{return Z[2]??=await _(()=>import(`./md-DmVH_S1g.js`),__vite__mapDeps([21,1,2,3,5,6,7,4,8,22,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Zt=async()=>{try{return Z[3]??=await _(()=>import(`./md-CPUxpe3f2.js`),__vite__mapDeps([24,1,2,3,5,6,25,4,12,13,14,15,16,17,18,26]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Qt=async()=>{try{return Z[4]??=await _(()=>import(`./md-CHQ8QitS.js`),__vite__mapDeps([27,1,2,3,4,5,6,25,12,13,14,15,16,17,18,26,28]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},$t=async()=>{try{return Z[5]??=await _(()=>import(`./md-BOud_X1x.js`),__vite__mapDeps([29,1,2,3,5,6,25,4,12,13,14,15,16,17,18,26]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},en=async()=>{try{return Z[6]??=await _(()=>import(`./md-BDIryj7C.js`),__vite__mapDeps([30,1,2,3,4,5,6,25,12,13,14,15,16,17,18,26,31,32]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},tn=async()=>{try{return Z[7]??=await _(()=>import(`./md-C0itcagX.js`),__vite__mapDeps([33,1,2,3,5,6,7,4,8,22,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},nn=async()=>{try{return Z[8]??=await _(()=>import(`./md-CE5SRCC8.js`),__vite__mapDeps([34,1,2,3,5,6,25,4,12,13,14,15,16,17,18,26,31,35,36]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},rn=async()=>{try{return Z[9]??=await _(()=>import(`./md-CWQvoV-6.js`),__vite__mapDeps([37,1,2,3,5,6,25,4,12,13,14,15,16,17,18,26]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},an=async()=>{try{return Z[10]??=await _(()=>import(`./md-3TDQ06AG.js`),__vite__mapDeps([38,1,2,3,5,6,25,4,12,13,14,15,16,17,18,26]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},on=async()=>{try{return Z[11]??=await _(()=>import(`./md-CECtUrix.js`),__vite__mapDeps([39,1,2,3,4,5,6,15,14,16,31,40,41,42,43,44,45,11,12,13,17,18,19,46]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},sn=async()=>{try{return Z[12]??=await _(()=>import(`./md-D_l5cPMO.js`),__vite__mapDeps([47,1,2,3,5,6,25,4,12,13,14,15,16,17,18,26]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},cn=async()=>{try{return Z[13]??=await _(()=>import(`./md-Cvt7i2LC.js`),__vite__mapDeps([48,1,2,3,4,5,6,31,15,14,16,40,41,42,43,44,45,11,12,13,17,18,19,49]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},ln=async()=>{try{return Z[14]??=await _(()=>import(`./md-B8UJ90ak.js`),__vite__mapDeps([50,1,2,3,5,6,31,15,14,16,11,4,12,13,17,18,19,51,40,41,42,43,45,52]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},un=async()=>{try{return Z[15]??=await _(()=>import(`./md-C3hQYWCV.js`),__vite__mapDeps([53,1,2,3,5,6,25,4,12,13,14,15,16,17,18,26,54]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},dn=async()=>{try{return Z[16]??=await _(()=>import(`./md-BqqYj8BO.js`),__vite__mapDeps([55,1,2,3,5,6,7,4,8,22,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},fn=async()=>{try{return Z[17]??=await _(()=>import(`./md-DuNbnbeN.js`),__vite__mapDeps([56,1,2,3,5,6,25,4,12,13,14,15,16,17,18,26]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},pn=async()=>{try{return Z[18]??=await _(()=>import(`./md-DrvbTEIQ.js`),__vite__mapDeps([57,1,2,3,4,5,6,31,15,14,16,40,41,42,43,44,45,11,12,13,17,18,19,58]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},mn=async()=>{try{return Z[19]??=await _(()=>import(`./md-CKtUT4kh.js`),__vite__mapDeps([59,1,2,3,5,6,31,15,14,16,11,4,12,13,17,18,19,60,40,41,42,43,44,45,61]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},hn=async()=>{try{return Z[20]??=await _(()=>import(`./md-9effmiXg.js`),__vite__mapDeps([62,1,2,3,5,6,31,15,14,16,11,4,12,13,17,18,19,60,40,41,42,43,44,45,61]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},gn=async()=>{try{return Z[21]??=await _(()=>import(`./md-CDVFD8Nc.js`),__vite__mapDeps([63,1,2,3,5,6,25,4,12,13,14,15,16,17,18,26,31,54]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},_n=async()=>{try{return Z[22]??=await _(()=>import(`./md-BiPai5i4.js`),__vite__mapDeps([64,1,2,3,5,6,25,4,12,13,14,15,16,17,18,26,31]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},vn=async()=>{try{return Z[23]??=await _(()=>import(`./md-CMtQSW0f2.js`),__vite__mapDeps([65,1,2,3,5,6,31,15,14,16,11,4,12,13,17,18,19,66,40,41,42,43,67]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},yn=async()=>{try{return Z[24]??=await _(()=>import(`./md-C63Qc83E2.js`),__vite__mapDeps([68,1,2,3,5,6,25,4,12,13,14,15,16,17,18,26,31]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},bn=async()=>{try{return Z[25]??=await _(()=>import(`./md-r7fws9Pg.js`),__vite__mapDeps([69,1,2,3,5,6,7,4,8,22,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},xn=async()=>{try{return Z[26]??=await _(()=>import(`./md-Ba9i9vHS.js`),__vite__mapDeps([70,1,2,3,5,6,25,4,12,13,14,15,16,17,18,26]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Sn=async()=>{try{return Z[27]??=await _(()=>import(`./md-CX-EJFbo.js`),__vite__mapDeps([71,1,2,3,4,5,6,31,15,14,16,40,41,42,43,11,12,13,17,18,19,72]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Cn=async()=>{try{return Z[28]??=await _(()=>import(`./md-ckgb6fzE.js`),__vite__mapDeps([73,1,2,3,5,6,31,15,14,16,11,4,12,13,17,18,19,51,40,41,42,43,45,52]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},wn=async()=>{try{return Z[29]??=await _(()=>import(`./md-BPrLSzMT.js`),__vite__mapDeps([74,1,2,3,5,6,7,4,8,22,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Tn=async()=>{try{return Z[30]??=await _(()=>import(`./md-HHaq088F2.js`),__vite__mapDeps([75,1,2,3,4,5,6,31,15,14,16,40,41,11,12,13,17,18,19,76]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},En=async()=>{try{return Z[31]??=await _(()=>import(`./md-otyMe-S12.js`),__vite__mapDeps([77,1,2,3,5,6,25,4,12,13,14,15,16,17,18,26,31]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Dn=async()=>{try{return Z[32]??=await _(()=>import(`./md-BCalMv_E2.js`),__vite__mapDeps([78,1,2,3,5,6,31,15,14,16,11,4,12,13,17,18,19,66,40,41,42,43,67]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},On=async()=>{try{return Z[33]??=await _(()=>import(`./md-CVoSWXDp.js`),__vite__mapDeps([79,1,2,3,5,6,25,4,12,13,14,15,16,17,18,26]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},kn=async()=>{try{return Z[34]??=await _(()=>import(`./md-BMgHpn2g2.js`),__vite__mapDeps([80,1,2,3,5,6,7,4,8,22,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},An=async()=>{try{return Z[35]??=await _(()=>import(`./md-DYDKkl4y.js`),__vite__mapDeps([81,1,2,3,5,6,25,4,12,13,14,15,16,17,18,26,31,35,36]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},jn=async()=>{try{return Z[36]??=await _(()=>import(`./md-CkUX2gzY2.js`),__vite__mapDeps([82,1,2,3,5,6,25,4,12,13,14,15,16,17,18,26]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Mn=async()=>{try{return Z[37]??=await _(()=>import(`./md-rKswDcIu2.js`),__vite__mapDeps([83,1,2,3,5,6,7,4,8,22,23]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Nn=async()=>{try{return Z[38]??=await _(()=>import(`./md-D0kJP7fQ2.js`),__vite__mapDeps([84,1,2,3,5,6,7,4,8,25,12,13,14,15,16,17,18,26]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Pn=async()=>{try{return Z[39]??=await _(()=>import(`./md-KMiNvInO.js`),__vite__mapDeps([85,1,2,3,4,5,6,7,8,25,12,13,14,15,16,17,18,26,86]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},Fn=async()=>{try{return Z[40]??=await _(()=>import(`./md-BYbneerw2.js`),__vite__mapDeps([87,1,2,3,4,5,6,7,8,88]),import.meta.url)}catch(e){return console.error(`slide failed to load`,e),v}},In=[{no:1,meta:Qe,load:Jt,component:Q(0,Jt)},{no:2,meta:$e,load:Yt,component:Q(1,Yt)},{no:3,meta:et,load:Xt,component:Q(2,Xt)},{no:4,meta:tt,load:Zt,component:Q(3,Zt)},{no:5,meta:nt,load:Qt,component:Q(4,Qt)},{no:6,meta:rt,load:$t,component:Q(5,$t)},{no:7,meta:it,load:en,component:Q(6,en)},{no:8,meta:at,load:tn,component:Q(7,tn)},{no:9,meta:ot,load:nn,component:Q(8,nn)},{no:10,meta:st,load:rn,component:Q(9,rn)},{no:11,meta:ct,load:an,component:Q(10,an)},{no:12,meta:lt,load:on,component:Q(11,on)},{no:13,meta:ut,load:sn,component:Q(12,sn)},{no:14,meta:dt,load:cn,component:Q(13,cn)},{no:15,meta:ft,load:ln,component:Q(14,ln)},{no:16,meta:pt,load:un,component:Q(15,un)},{no:17,meta:ht,load:dn,component:Q(16,dn)},{no:18,meta:gt,load:fn,component:Q(17,fn)},{no:19,meta:_t,load:pn,component:Q(18,pn)},{no:20,meta:vt,load:mn,component:Q(19,mn)},{no:21,meta:yt,load:hn,component:Q(20,hn)},{no:22,meta:bt,load:gn,component:Q(21,gn)},{no:23,meta:xt,load:_n,component:Q(22,_n)},{no:24,meta:St,load:vn,component:Q(23,vn)},{no:25,meta:Ct,load:yn,component:Q(24,yn)},{no:26,meta:wt,load:bn,component:Q(25,bn)},{no:27,meta:Tt,load:xn,component:Q(26,xn)},{no:28,meta:Et,load:Sn,component:Q(27,Sn)},{no:29,meta:Dt,load:Cn,component:Q(28,Cn)},{no:30,meta:Ot,load:wn,component:Q(29,wn)},{no:31,meta:kt,load:Tn,component:Q(30,Tn)},{no:32,meta:jt,load:En,component:Q(31,En)},{no:33,meta:Nt,load:Dn,component:Q(32,Dn)},{no:34,meta:Pt,load:On,component:Q(33,On)},{no:35,meta:It,load:kn,component:Q(34,kn)},{no:36,meta:Rt,load:An,component:Q(35,An)},{no:37,meta:Bt,load:jn,component:Q(36,jn)},{no:38,meta:Ht,load:Mn,component:Q(37,Mn)},{no:39,meta:Wt,load:Nn,component:Q(38,Nn)},{no:40,meta:Kt,load:Pn,component:Q(39,Pn)},{no:41,meta:qt,load:Fn,component:Q(40,Fn)}],$=l(In);function Ln(e,t,{mode:r=`replace`}={}){let i=pe();return u({get(){let n=i.currentRoute.value.query[e];return n==null?t??null:Array.isArray(n)?n.filter(Boolean):n},set(a){n(()=>{(i.currentRoute.value.query[e]??t?.toString())!==a.toString()&&i[s(r)]({query:{...i.currentRoute.value.query,[e]:`${a}`===t?void 0:a}})})}})}function Rn(e,t,n=!1){let r=e.meta.slide?.frontmatter.routeAlias??e.no;return n?`/export/${r}`:t?`/presenter/${r}`:`/${r}`}function zn(e){return $.value.find(t=>t.no===+e||t.meta.slide?.frontmatter.routeAlias===e)}function Bn(e,t,n=!1){return(typeof e==`number`||typeof e==`string`)&&(e=zn(e)),Rn(e,t,n)}var Vn={"slide-left":`slide-left | slide-right`,"slide-right":`slide-right | slide-left`,"slide-up":`slide-up | slide-down`,"slide-down":`slide-down | slide-up`};function Hn(e,t=!1){if(!e||(typeof e==`string`&&(e={name:e}),!e.name))return;let n=e.name.includes(`|`)?e.name:Vn[e.name]||e.name;if(n.includes(`|`)){let[e,r]=n.split(`|`).map(e=>e.trim());n=t?r:e}if(n)return{...e,name:n}}function Un(e,t,n){let r=e>0?n?.meta?.transition:t?.meta?.transition;return r||=g.transition||void 0,Hn(r,e<0)}var Wn=d(!1),Gn=d(!1),Kn=d(!1),qn=d(!1),Jn=d(!1),Yn=d(!1),Xn=d(!0),Zn=p(new Set),Qn=u(()=>Zn.size>0),$n=ye({xs:460,...he}),er=de(),tr=me(),nr=u(()=>er.height.value-er.width.value/je.value>120),rr=_e(ve?document.body:null),ir=ge(),ar=u(()=>[`INPUT`,`TEXTAREA`].includes(ir.value?.tagName||``)),or=u(()=>[`BUTTON`,`A`].includes(ir.value?.tagName||``));h(`slidev-camera`,`default`,{listenToStorageChanges:!1}),h(`slidev-mic`,`default`,{listenToStorageChanges:!1});var sr=h(`slidev-scale`,0),cr=h(`slidev-wake-lock`,!0),lr=h(`slidev-hide-cursor-idle`,!0);h(`slidev-skip-export-pdf-tip`,!1),h(`slidev-export-capture-delay`,400,{listenToStorageChanges:!1});var ur=h(`slidev-presenter-cursor`,!0,{listenToStorageChanges:!1}),dr=h(`slidev-cursor-style`,`cursor`,{listenToStorageChanges:!1});function fr(){ur.value=!ur.value}var pr=h(`slidev-show-editor`,!1,{listenToStorageChanges:!1}),mr=h(`slidev-editor-vertical`,!1,{listenToStorageChanges:!1}),hr=h(`slidev-editor-width`,ve?window.innerWidth*.4:318,{listenToStorageChanges:!1}),gr=h(`slidev-editor-height`,ve?window.innerHeight*.4:300,{listenToStorageChanges:!1}),_r=l(null),vr=h(`slidev-presenter-font-size`,1,{listenToStorageChanges:!1}),yr=h(`slidev-presenter-layout`,1,{listenToStorageChanges:!1}),br={invert:!1,contrast:1,brightness:1,hueRotate:0,saturate:1,sepia:0},xr=h(`slidev-viewer-css-filter`,br,{listenToStorageChanges:!1,mergeDefaults:!0,deep:!0}),Sr=u(()=>Object.keys(br).some(e=>xr.value[e]!==br[e]));function Cr(){yr.value+=1,yr.value>3&&(yr.value=1)}function wr(){vr.value=Math.min(2,vr.value+.1)}function Tr(){vr.value=Math.max(.5,vr.value-.1)}var Er=fe(qn),Dr=h(`slidev-sync-directions`,{viewerSend:!0,viewerReceive:!0,presenterSend:!0,presenterReceive:!0},{listenToStorageChanges:!1,mergeDefaults:!0});function Or(e,t,n=1){let r=t.meta.slide.level??n;r&&r>n&&e.length>0?Or(e[e.length-1].children,t,n+1):e.push({no:t.no,children:[],level:n,titleLevel:r,path:Bn(t.meta.slide?.frontmatter?.routeAlias??t.no,!1),hideInToc:!!t.meta?.slide?.frontmatter?.hideInToc,title:t.meta?.slide?.title})}function kr(e,t,n=!1,r,i){return e.map(e=>{let a={...e,active:e.no===i?.value,hasActiveParent:n};return a.children.length>0&&(a.children=kr(a.children,t,a.active||a.hasActiveParent,a,i)),r&&(a.active||a.activeParent)&&(r.activeParent=!0),a})}function Ar(e,t=1){return e.filter(e=>!e.hideInToc).map(e=>({...e,children:Ar(e.children,t+1)}))}function jr(e,t,n){let r=u(()=>e.value.filter(e=>e.meta?.slide?.title).reduce((e,t)=>(Or(e,t),e),[])),i=u(()=>kr(r.value,n.value,void 0,void 0,t));return u(()=>Ar(i.value))}function Mr(e,t,n=d(0),r,i,o){let s=u(()=>$.value.length),c=d(0),l=d(0),ee=u(()=>Bn(e.value,r.value)),f=u(()=>e.value.no),te=u(()=>e.value.meta?.layout||(f.value===1?`cover`:`default`)),ne=u(()=>e.value.meta.slide.frontmatter),p=u(()=>t.value.current),m=u(()=>t.value.clicksStart),re=u(()=>t.value.total),ie=u(()=>$.value[Math.min($.value.length,f.value+1)-1]),ae=u(()=>$.value[Math.max(1,f.value-1)-1]),oe=u(()=>f.value<$.value.length||p.valuef.value>1||p.value>0),ce=u(()=>i.value?void 0:Un(c.value,e.value,ae.value));a(e,(e,t)=>{c.value=e.no-t.no});async function le(e){return!1}let ue=jr($,f,e);async function de(){l.value=1,re.value<=n.value?await pe():n.value+=1}async function fe(){l.value=-1,n.value<=m.value?await me(!0):--n.value}async function pe(e=!1){l.value=1,f.value<$.value.length&&await h(f.value+1,e&&!i.value?be:void 0)}async function me(e=!1){l.value=-1,f.value>1&&await h(f.value-1,e&&!i.value?be:void 0)}function he(){return h(1)}function ge(){return h(s.value)}async function h(e,t=0,i=!1){Jn.value=!1;let a=f.value!==e,s=t!==n.value,c=zn(e)?.meta,l=c?.slide?.frontmatter.clicksStart??0;t=Se(t,l,c?.__clicksContext?.total??999999),(i||a||s)&&await o?.push({path:Bn(e,r.value,o.currentRoute.value.name===`export`),query:{...o.currentRoute.value.query,clicks:t===0?void 0:t.toString(),embedded:location.search.includes(`embedded`)?`true`:void 0}})}function _e(){o?.push({path:Bn(f.value,!0),query:{...o.currentRoute.value.query}})}function ve(){o?.push({path:Bn(f.value,!1),query:{...o.currentRoute.value.query}})}return{slides:$,total:s,currentPath:ee,currentSlideNo:f,currentPage:f,currentSlideRoute:e,currentLayout:te,currentFrontmatter:ne,currentTransition:ce,clicksDirection:l,nextRoute:ie,prevRoute:ae,clicksContext:t,clicks:p,clicksStart:m,clicksTotal:re,hasNext:oe,hasPrev:se,tocTree:ue,navDirection:c,openInEditor:le,next:de,prev:fe,go:h,goLast:ge,goFirst:he,nextSlide:pe,prevSlide:me,enterPresenter:_e,exitPresenter:ve}}var Nr=ue(()=>{let e=pe(),t=le(),n=u(()=>(e?.currentRoute?.value?.query,new URLSearchParams(location.search))),r=u(()=>n.value.has(`print`)||t.name===`export`),i=d(n.value.get(`print`)===`clicks`),a=u(()=>n.value.has(`embedded`)),o=u(()=>t.name===`play`),s=u(()=>t.name===`presenter`),c=u(()=>t.name===`notes`),l=u(()=>!s.value&&(!g.remote||n.value.get(`password`)===g.remote)),ee=u(()=>!!t.params.no),f=u(()=>ee.value?zn(t.params.no)?.no??1:1),te=u(()=>$.value[f.value-1]),ne=d(Ke($.value.length,t?.query?.range)),p=Ln(`clicks`,`0`),m=u(()=>ie(te.value)),re=u({get(){let e=+(p.value||0);return Number.isNaN(e)&&(e=0),e},set(e){Jn.value=!1,p.value=e.toString()}});function ie(e){if(e?.meta?.__clicksContext)return e.meta.__clicksContext;let t=e.no,n=He(u({get(){return f.value===t?Math.max(+(p.value??0),n.clicksStart):f.value>t?be:n.clicksStart},set(e){f.value===t&&(p.value=e.toString())}}),e?.meta.slide?.frontmatter.clicksStart??0,e?.meta.clicks);return e?.meta&&(e.meta.__clicksContext=n),n}return{router:e,currentRoute:u(()=>t),isPrintMode:r,isPrintWithClicks:i,isEmbedded:a,isPlaying:o,isPresenter:s,isNotesViewer:c,isPresenterAvailable:l,hasPrimarySlide:ee,currentSlideNo:f,currentSlideRoute:te,clicksContext:m,queryClicksRaw:p,queryClicks:re,printRange:ne,getPrimaryClicks:ie}}),Pr=ue(()=>{let e=Nr(),t=pe(),n=Mr(e.currentSlideRoute,e.clicksContext,e.queryClicks,e.isPresenter,e.isPrintMode,t);return a([n.total,e.currentRoute],async()=>{let t=e.currentRoute.value.params.no;e.hasPrimarySlide.value&&!zn(t)&&(t&&t!==`index.html`?await n.go(n.total.value,0,!0):await n.go(1,0,!0))},{flush:`pre`,immediate:!0}),{...n,...e}});function Fr(){let e=Pr(),t=r()?ce(xe,void 0):void 0;if(!t)return e;let n=te(t).nav;return{...e,...n}}export{Fe as $,sr as A,Bn as B,Qn as C,qn as D,Gn as E,xr as F,Ue as G,Ke as H,br as I,Ae as J,Be as K,cr as L,Er as M,fr as N,ur as O,Cr as P,Me as Q,er as R,Xn as S,Kn as T,Ge as U,$ as V,He as W,je as X,Ie as Y,Ne as Z,or as _,dr as a,yr as b,gr as c,Sr as d,Pe as et,lr as f,ar as g,mr as h,$n as i,we as it,Dr as j,Wn as k,hr as l,wr as m,_r as n,Se as nt,Tr as o,Jn as p,_ as q,ir as r,De as rt,Yn as s,Fr as t,g as tt,rr as u,nr as v,pr as w,vr as x,tr as y,zn as z}; \ No newline at end of file diff --git a/lecture-06/class/index.html b/lecture-06/class/index.html new file mode 100644 index 0000000000000000000000000000000000000000..3ab4493ed1c063282aca0babbd4aeeeac3368ae5 --- /dev/null +++ b/lecture-06/class/index.html @@ -0,0 +1,30 @@ + + + + + +Transformers (class) - Slidev + + + + + + + + + + + + + + + + + + + +
+
+ + + diff --git a/lecture-06/index.html b/lecture-06/index.html new file mode 100644 index 0000000000000000000000000000000000000000..1955ea37ea12d917ce7b09f3d58fad10191a13a2 --- /dev/null +++ b/lecture-06/index.html @@ -0,0 +1,30 @@ + + + + + +Transformers - Slidev + + + + + + + + + + + + + + + + + + + +
+
+ + + diff --git a/lecture-06/slides.pdf b/lecture-06/slides.pdf new file mode 100644 index 0000000000000000000000000000000000000000..2e0c2ac515fa8ab26befcb4fe969fdc87b8d6471 --- /dev/null +++ b/lecture-06/slides.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6a352935923567d9ac3424f15bf52fec1d373543deaf75216be95570e5c408c6 +size 4138382 diff --git a/lecture-07/404.html b/lecture-07/404.html index cf1d3d16fc8a1661ac2d2ff845c4a1fb38a3cbab..5a3fd6ed40855d3c4aab0dcce4acbed841144a23 100644 --- a/lecture-07/404.html +++ b/lecture-07/404.html @@ -11,16 +11,16 @@ - + - + - - - - + + + + - +
diff --git a/lecture-07/assets/AdversarialGame-BqfAXE8Q.js b/lecture-07/assets/AdversarialGame-BqfAXE8Q.js new file mode 100644 index 0000000000000000000000000000000000000000..10f10eb4724e480b47fe92cbe7ce7d63ae4ad19a --- /dev/null +++ b/lecture-07/assets/AdversarialGame-BqfAXE8Q.js @@ -0,0 +1 @@ +import{B as e,C as t,Ct as n,H as r,T as i,_ as a,b as o,dt as s,et as c,g as l,m as u,v as d,y as f,yt as p}from"./modules/shiki-CJZsCeMT.js";import{t as m}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as h}from"./slidev/context-DB-9afGB.js";import{S as g,a as _,h as v,i as y,n as b}from"./useGenerative-DhxjRRg5.js";import{n as x,t as S}from"./StepButton-BHTS1uiY.js";import{t as C}from"./Slider-C2M0Z0oG.js";var w={class:`dl-gan`,viewBox:`0 0 470 216`,role:`img`,"aria-label":`Real and generated probability on three modes, with the optimal discriminator under each`},T=[`x1`],ee=[`x`,`y`],te=[`x`,`y`],E=[`x`,`y`,`height`],D=[`x`,`y`],O=[`x`,`y`,`height`],k=[`x`,`y`],A=[`x`,`y`],j=[`x`,`y`],M={key:0,class:`dl-gan__out`},N={class:`dl-gan__row`},P={class:`dl-gan__num`},F={class:`dl-gan__row`},I={class:`dl-gan__num`},L={class:`dl-gan__row is-quiet`},R={class:`dl-gan__num`},z={class:`dl-gan__note`},B={key:1,class:`dl-gan__out`},V=42,ne=132,H=150,U=58,W=m(i({__name:`AdversarialGame`,props:{discriminatorOnly:{type:Boolean,default:!1},collapsed:{type:Boolean,default:!1}},setup(i){let{$slidev:m,$nav:W,$clicksContext:re,$clicks:ie,$page:ae,$renderContext:oe,$frontmatter:se}=h(),G=i,K=s([...G.collapsed?y:_]),q=l(()=>v(K.value)),J=l(()=>g(b,q.value)),Y=l(()=>Math.abs(J.value.v-J.value.vTheory)<5e-6);function X(e){return Math.max(e*ne*(1/.62),0)}function Z(e){return U+e*136}function Q(e){K.value=[...e]}function $(e,t=3){return Number.isFinite(e)?e.toFixed(t):`∞`}return(i,s)=>{let l=C,m=S,h=x;return e(),d(h,{"max-width":`46rem`},{controls:c(()=>[t(l,{modelValue:K.value[0],"onUpdate:modelValue":s[0]||=e=>K.value[0]=e,label:`Q on mode 1`,min:0,max:1,step:.01},null,8,[`modelValue`]),t(l,{modelValue:K.value[1],"onUpdate:modelValue":s[1]||=e=>K.value[1]=e,label:`Q on mode 2`,min:0,max:1,step:.01},null,8,[`modelValue`]),t(l,{modelValue:K.value[2],"onUpdate:modelValue":s[2]||=e=>K.value[2]=e,label:`Q on mode 3`,min:0,max:1,step:.01},null,8,[`modelValue`]),t(m,{label:`Reset`,variant:`ghost`,onClick:s[3]||=e=>Q(p(_))}),t(m,{label:`Collapse`,variant:`ghost`,onClick:s[4]||=e=>Q(p(y))}),t(m,{label:`Perfect`,variant:`ghost`,onClick:s[5]||=e=>Q(p(b))})]),readout:c(()=>[G.discriminatorOnly?(e(),o(`div`,B,[...s[10]||=[a(`div`,{class:`dl-gan__row is-quiet`},[a(`span`,{class:`dl-gan__name`},`D* = P / (P + Q)`),a(`span`,{class:`dl-gan__note`},` nothing here was trained — this is the best any discriminator could do `)],-1)]])):(e(),o(`div`,M,[a(`div`,N,[s[7]||=a(`span`,{class:`dl-gan__name`},`V(D*, G)`,-1),a(`span`,P,n($(J.value.v,5)),1)]),a(`div`,F,[s[8]||=a(`span`,{class:`dl-gan__name`},`−log 4 + 2·JS(P‖Q)`,-1),a(`span`,I,n($(J.value.vTheory,5)),1)]),a(`div`,L,[s[9]||=a(`span`,{class:`dl-gan__name`},`JS(P‖Q)`,-1),a(`span`,R,n($(J.value.js,5)),1),a(`span`,z,n(Y.value?`the two rows above are the same number, always`:``),1)])]))]),default:c(()=>[(e(),o(`svg`,w,[f(` baseline `),a(`line`,{class:`dl-gan__axis`,x1:32,x2:446,y1:H,y2:H},null,8,T),a(`text`,{class:`dl-gan__ylab`,x:26,y:22,"text-anchor":`end`},`0.6`,8,ee),a(`text`,{class:`dl-gan__ylab`,x:26,y:154,"text-anchor":`end`},`0`,8,te),(e(!0),o(u,null,r(p(b),(t,r)=>(e(),o(`g`,{key:r},[f(` the real data: an outline, because it is fixed and not yours to move `),a(`rect`,{class:`dl-gan__real`,x:Z(r),width:V,y:H-X(t),height:X(t)},null,8,E),a(`text`,{class:`dl-gan__val`,x:Z(r)+V/2,y:H-X(t)-6,"text-anchor":`middle`},n(t.toFixed(2)),9,D),f(` the generator: solid, and the only thing that moves `),a(`rect`,{class:`dl-gan__fake`,x:Z(r)+V+4,width:V,y:H-X(q.value[r]),height:X(q.value[r])},null,8,O),a(`text`,{class:`dl-gan__val is-fake`,x:Z(r)+V*1.5+4,y:H-X(q.value[r])-6,"text-anchor":`middle`},n(q.value[r].toFixed(2)),9,k),a(`text`,{class:`dl-gan__mode`,x:Z(r)+V+2,y:168,"text-anchor":`middle`},` mode `+n(r+1),9,A),f(` the best possible discriminator on this bin `),a(`text`,{class:`dl-gan__dstar`,x:Z(r)+V+2,y:192,"text-anchor":`middle`},` D* = `+n(J.value.d[r].toFixed(3)),9,j)]))),128)),s[6]||=a(`g`,{class:`dl-gan__key`},[a(`rect`,{class:`dl-gan__real`,x:`300`,y:`10`,width:`15`,height:`11`}),a(`text`,{x:`322`,y:`20`},`real, P`),a(`rect`,{class:`dl-gan__fake`,x:`376`,y:`10`,width:`15`,height:`11`}),a(`text`,{x:`398`,y:`20`},`generated, Q`)],-1)]))]),_:1})}}}),[[`__scopeId`,`data-v-a8c333fd`]]);export{W as t}; \ No newline at end of file diff --git a/lecture-07/assets/AutoencoderLab-BLIx_rsl.js b/lecture-07/assets/AutoencoderLab-BLIx_rsl.js new file mode 100644 index 0000000000000000000000000000000000000000..eaa44534534bfd116465757086dea390600573b7 --- /dev/null +++ b/lecture-07/assets/AutoencoderLab-BLIx_rsl.js @@ -0,0 +1 @@ +import{B as e,C as t,Ct as n,H as r,T as i,_ as a,b as o,bt as s,dt as c,et as l,g as u,m as d,v as f,y as p,yt as m}from"./modules/shiki-CJZsCeMT.js";import{t as h}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as g}from"./slidev/context-DB-9afGB.js";import{d as _,f as v,s as y,x as b,y as x}from"./useGenerative-DhxjRRg5.js";import{n as S,t as C}from"./StepButton-BHTS1uiY.js";import{t as w}from"./Plot2D-ifvwvNLG.js";import{t as T}from"./PlotLabel-BuFT7VP9.js";import{t as E}from"./PlotPoints-Cxs9FmbK.js";import{t as D}from"./PlotCurve-BoqzCl1G.js";var O={class:`dl-ae`},ee={class:`dl-ae__strip`,viewBox:`0 0 470 46`,role:`img`,"aria-label":`The latent codes of every training point, on one axis`},k=[`x1`,`x2`],A=[`x1`,`x2`],j=[`x1`,`x2`],M=[`x`],N={key:0},P={key:1},F={key:2},I={key:3},L=420,R=26,z=h(i({__name:`AutoencoderLab`,props:{latentDim:{default:1}},setup(i){let{$slidev:h,$nav:z,$clicksContext:te,$clicks:ne,$page:re,$renderContext:ie,$frontmatter:ae}=g(),B=c(i.latentDim),V=b(22),H=_(V),U=u(()=>B.value===2?V:V.map(x)),W=u(()=>{let e=[];for(let t=0;t<=80;t++)e.push(y(-1.25+2.5*t/80));return e}),G=[-1,0,...v(H)],K=c(-1),q=u(()=>K.value>=0?G[K.value%G.length]:null),J=u(()=>q.value===null?null:y(q.value)),Y=u(()=>{let e=J.value;return e?Math.sqrt(Math.min(...V.map(t=>(t.x-e.x)**2+(t.y-e.y)**2))):null}),X=u(()=>Y.value!==null&&Y.value>.6);function Z(){K.value+=1}function Q(){K.value=-1}function $(e){return R+(e+1.5)/3*L}return(i,c)=>{let u=D,h=E,g=T,_=w,v=C,y=S;return e(),f(y,{"max-width":`44rem`},{controls:l(()=>[t(v,{label:B.value===1?`latent = 1 (undercomplete)`:`latent = 2 (as wide as the input)`,variant:`ghost`,glyph:`⇆`,onClick:c[0]||=e=>B.value=B.value===1?2:1},null,8,[`label`]),t(v,{label:`Decode a fresh z`,disabled:B.value!==1,onClick:Z},null,8,[`disabled`]),K.value>=0?(e(),f(v,{key:0,label:`Clear`,variant:`ghost`,onClick:Q})):p(`v-if`,!0)]),readout:l(()=>[B.value===2?(e(),o(`span`,N,` Latent as wide as the input: the reconstruction is exact and the model has learned nothing — grey and teal are the same points. `)):q.value===null?(e(),o(`span`,P,` Latent codes sit in three clumps with two gaps. Decode a z from a gap and see what comes out. `)):X.value?(e(),o(`span`,F,` z = `+n(q.value.toFixed(2))+` fell in a gap. The nearest real example is `+n(Y.value.toFixed(2))+` away — this output is not data. `,1)):(e(),o(`span`,I,` z = `+n(q.value.toFixed(2))+` sits inside a clump, so it decodes to something plausible — nearest real example `+n(Y.value.toFixed(2))+` away. `,1))]),default:l(()=>[a(`div`,O,[t(_,{"x-domain":[-3.6,3.6],"y-domain":[-2.4,2.4],width:470,height:220,"x-ticks":[-3,0,3],"y-ticks":[-2,0,2]},{default:l(()=>[p(` everything a 1-D decoder can produce, ever `),B.value===1?(e(),f(u,{key:0,points:W.value,color:`var(--dl-accent)`,width:2,opacity:.5},null,8,[`points`])):p(`v-if`,!0),t(h,{points:m(V),radius:3.4,color:`var(--dl-muted)`,opacity:.55},null,8,[`points`]),t(h,{points:U.value,radius:3,color:`var(--dl-accent)`},null,8,[`points`]),J.value?(e(),o(d,{key:1},[t(h,{points:[{...J.value,highlight:!0}],radius:7,color:X.value?`var(--dl-danger)`:`var(--dl-heading)`},null,8,[`points`,`color`]),t(g,{at:[J.value.x,J.value.y],text:`g(${q.value.toFixed(2)})`,dy:-14,color:X.value?`var(--dl-danger)`:`var(--dl-heading)`,bold:``},null,8,[`at`,`text`,`color`])],64)):p(`v-if`,!0)]),_:1}),p(` where the training data's codes actually are `),(e(),o(`svg`,ee,[a(`line`,{class:`dl-ae__axis`,x1:$(-1.5),x2:$(1.5),y1:`26`,y2:`26`},null,8,k),(e(!0),o(d,null,r(m(H),(t,n)=>(e(),o(`line`,{key:n,class:`dl-ae__tick`,x1:$(t),x2:$(t),y1:`16`,y2:`26`},null,8,A))),128)),q.value===null?p(`v-if`,!0):(e(),o(d,{key:0},[a(`line`,{class:s([`dl-ae__probe`,{"is-hole":X.value}]),x1:$(q.value),x2:$(q.value),y1:`10`,y2:`34`},null,10,j),a(`text`,{class:s([`dl-ae__probelab`,{"is-hole":X.value}]),x:$(q.value),y:`44`,"text-anchor":`middle`},`z = `+n(q.value.toFixed(2)),11,M)],64)),c[1]||=a(`text`,{class:`dl-ae__striplab`,x:`8`,y:`30`},`z`,-1)]))])]),_:1})}}}),[[`__scopeId`,`data-v-f2ff8b85`]]);export{z as t}; \ No newline at end of file diff --git a/lecture-07/assets/Citation-CcKhBxpe.js b/lecture-07/assets/Citation-CcKhBxpe.js new file mode 100644 index 0000000000000000000000000000000000000000..3b9913625f5d47ab747b0b43369dd38193350c03 --- /dev/null +++ b/lecture-07/assets/Citation-CcKhBxpe.js @@ -0,0 +1 @@ +import{B as e,Ct as t,S as n,T as r,U as i,b as a,m as o}from"./modules/shiki-CJZsCeMT.js";import{t as s}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as c}from"./slidev/context-DB-9afGB.js";var l={class:`dl-citation`},u=[`href`],d=s(r({__name:`Citation`,props:{source:{},url:{}},setup(r){let{$slidev:s,$nav:d,$clicksContext:f,$clicks:p,$page:m,$renderContext:h,$frontmatter:g}=c(),_=r;return(r,s)=>(e(),a(`span`,l,[_.url?(e(),a(`a`,{key:0,href:_.url,target:`_blank`,rel:`noopener`},t(_.source),9,u)):(e(),a(o,{key:1},[n(t(_.source),1)],64)),i(r.$slots,`default`,{},void 0,!0)]))}}),[[`__scopeId`,`data-v-11a8cabc`]]);export{d as t}; \ No newline at end of file diff --git a/lecture-07/assets/DeckFooter-CA42hL2e.js b/lecture-07/assets/DeckFooter-CA42hL2e.js new file mode 100644 index 0000000000000000000000000000000000000000..0fdba9464e93ef4aad85f085edec5662697460ec --- /dev/null +++ b/lecture-07/assets/DeckFooter-CA42hL2e.js @@ -0,0 +1 @@ +import{B as e,Ct as t,T as n,_ as r,b as i,g as a,y as o,yt as s}from"./modules/shiki-CJZsCeMT.js";import{t as c}from"./useNav-BmBHxIEh.js";import{t as l}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as u}from"./slidev/context-DB-9afGB.js";import"./slidev/client-Ct4Bq5Nz.js";var d={class:`dl-footer`},f={class:`dl-footer__left`},p={key:0,class:`dl-footer__code`},m={key:1,class:`dl-footer__sep`},h={key:2},g={key:3,class:`dl-footer__sep`},_={key:4,class:`dl-footer__title`},v={class:`dl-footer__right`},y=l(n({__name:`DeckFooter`,setup(n){let{$slidev:l}=u(),y=c(),b=a(()=>l?.themeConfigs??{}),x=a(()=>b.value.courseCode??``),S=a(()=>b.value.lecture??``),C=a(()=>b.value.lectureTitle??``);return(n,a)=>(e(),i(`footer`,d,[r(`div`,f,[x.value?(e(),i(`span`,p,t(x.value),1)):o(`v-if`,!0),S.value?(e(),i(`span`,m,`·`)):o(`v-if`,!0),S.value?(e(),i(`span`,h,`Lecture `+t(S.value),1)):o(`v-if`,!0),C.value?(e(),i(`span`,g,`·`)):o(`v-if`,!0),C.value?(e(),i(`span`,_,t(C.value),1)):o(`v-if`,!0)]),r(`div`,v,t(s(y).currentPage.value)+` / `+t(s(y).total.value),1)]))}}),[[`__scopeId`,`data-v-fe908050`]]);export{y as t}; \ No newline at end of file diff --git a/lecture-07/assets/DiffusionLab-DwmASr7s.js b/lecture-07/assets/DiffusionLab-DwmASr7s.js new file mode 100644 index 0000000000000000000000000000000000000000..ea6aa8333c0f9c47aede473366d5c347b2a52e48 --- /dev/null +++ b/lecture-07/assets/DiffusionLab-DwmASr7s.js @@ -0,0 +1 @@ +import{B as e,C as t,Ct as n,H as r,S as i,T as a,_ as o,b as s,dt as c,et as l,g as u,m as d,v as f,yt as p}from"./modules/shiki-CJZsCeMT.js";import{t as m}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as h}from"./slidev/context-DB-9afGB.js";import{C as g,E as _,b as v,l as y,m as b,p as x,x as S}from"./useGenerative-DhxjRRg5.js";import{n as C,t as w}from"./StepButton-BHTS1uiY.js";import{t as T}from"./Plot2D-ifvwvNLG.js";import{t as E}from"./PlotPoints-Cxs9FmbK.js";import{t as D}from"./Slider-C2M0Z0oG.js";import{t as O}from"./PlotLine-CUED7wZE.js";var k={class:`dl-diff__out`},A={class:`dl-diff__note`},j=m(a({__name:`DiffusionLab`,props:{reverse:{type:Boolean,default:!1},field:{type:Boolean,default:!1}},setup(a){let{$slidev:m,$nav:j,$clicksContext:M,$clicks:N,$page:P,$renderContext:F,$frontmatter:I}=h(),L=a,{alphaBar:R,steps:z}=b(),B=c(L.reverse?`reverse`:`forward`),V=c(L.field),H=c(L.reverse?z-1:0),U=S(20),W=(()=>{let e=_(31337);return U.map(()=>({x:e(),y:e()}))})(),G=u(()=>R.map(e=>U.map((t,n)=>y(t,e,W[n])))),K=u(()=>{let e=Array(z),t=g(20);e[z-1]=t;for(let n=z-1;n>0;n--)t=t.map(e=>v(e,R[n],R[n-1])),e[n-1]=t;return e}),q=u(()=>(B.value===`forward`?G.value:K.value)[H.value]),J=u(()=>R[H.value]),Y=u(()=>{if(!V.value)return[];let e=[],t=.6;for(let n=-3;n<=3;n+=1.5)for(let r=-2;r<=2;r+=1.33){let i=x({x:n,y:r},J.value),a=Math.hypot(i.x,i.y);a<1e-9||e.push({from:[n,r],to:[n+i.x/a*t,r+i.y/a*t]})}return e});function X(e){H.value=Math.min(Math.max(e,0),z-1)}return(a,c)=>{let u=O,m=E,h=T,g=D,_=w,v=C;return e(),f(v,{"max-width":`44rem`},{controls:l(()=>[t(g,{modelValue:H.value,"onUpdate:modelValue":c[0]||=e=>H.value=e,label:B.value===`forward`?`noise level t`:`sampling step t`,min:0,max:p(z)-1,step:1,precision:0},null,8,[`modelValue`,`label`,`max`]),t(_,{label:B.value===`forward`?`forward — add noise`:`reverse — remove it`,variant:`ghost`,glyph:`⇄`,onClick:c[1]||=e=>B.value=B.value===`forward`?`reverse`:`forward`},null,8,[`label`]),t(_,{label:`t = 0`,variant:`ghost`,onClick:c[2]||=e=>X(0)}),t(_,{label:`t = ${p(z)-1}`,variant:`ghost`,onClick:c[3]||=e=>X(p(z)-1)},null,8,[`label`]),t(_,{label:V.value?`hide the field`:`show the field`,variant:`ghost`,onClick:c[4]||=e=>V.value=!V.value},null,8,[`label`])]),readout:l(()=>[o(`div`,k,[o(`span`,null,[c[5]||=i(`t = `,-1),o(`b`,null,n(H.value),1),i(` of `+n(p(z)-1),1)]),o(`span`,null,[c[6]||=i(`√ᾱ`,-1),c[7]||=o(`sub`,null,`t`,-1),c[8]||=i(` = `,-1),o(`b`,null,n(Math.sqrt(J.value).toFixed(3)),1),c[9]||=i(` of the image`,-1)]),o(`span`,null,[c[10]||=i(`√(1−ᾱ`,-1),c[11]||=o(`sub`,null,`t`,-1),c[12]||=i(`) = `,-1),o(`b`,null,n(Math.sqrt(1-J.value).toFixed(3)),1),c[13]||=i(` of noise`,-1)]),o(`span`,A,n(B.value===`forward`?`every frame computed from x₀ in one step — no chain simulated`:`each frame needs the one before it — this is why sampling is slow`),1)])]),default:l(()=>[t(h,{"x-domain":[-4,4],"y-domain":[-2.8,2.8],width:470,height:252,"x-ticks":[-4,-2,0,2,4],"y-ticks":[-2,0,2]},{default:l(()=>[(e(!0),s(d,null,r(Y.value,(t,n)=>(e(),f(u,{key:`a${n}`,from:t.from,to:t.to,color:`var(--dl-muted)`,width:1.2,opacity:.55,arrow:``},null,8,[`from`,`to`]))),128)),t(m,{points:q.value,radius:4.2,color:`var(--dl-accent)`},null,8,[`points`])]),_:1})]),_:1})}}}),[[`__scopeId`,`data-v-22c227ee`]]);export{j as t}; \ No newline at end of file diff --git a/lecture-07/assets/FamilyGlyph-BISpe5aU.css b/lecture-07/assets/FamilyGlyph-BISpe5aU.css new file mode 100644 index 0000000000000000000000000000000000000000..16c0e6844879fdbe45949d25da11106624572de0 --- /dev/null +++ b/lecture-07/assets/FamilyGlyph-BISpe5aU.css @@ -0,0 +1 @@ +.dl-glyph[data-v-df9090dc]{vertical-align:middle;flex-direction:column;align-items:center;margin:0;display:inline-flex}.dl-glyph__net[data-v-df9090dc]{fill:var(--dl-accent-soft);stroke:var(--dl-accent);stroke-width:2.4px}.dl-glyph__net.is-muted[data-v-df9090dc]{fill:var(--dl-surface);stroke:var(--dl-muted)}.dl-glyph__net.is-critic[data-v-df9090dc]{fill:var(--dl-surface);stroke:var(--dl-body)}.dl-glyph__box[data-v-df9090dc]{fill:var(--dl-surface);stroke:var(--dl-body);stroke-width:2px}.dl-glyph__box.is-accent[data-v-df9090dc]{fill:var(--dl-accent-soft);stroke:var(--dl-accent)}.dl-glyph__dot[data-v-df9090dc]{fill:var(--dl-accent)}.dl-glyph__dot.is-danger[data-v-df9090dc]{fill:var(--dl-danger)}.dl-glyph__cloud[data-v-df9090dc]{fill:var(--dl-accent-soft);stroke:var(--dl-accent);stroke-width:1.6px;stroke-dasharray:3 2.5}.dl-glyph__solid[data-v-df9090dc]{fill:var(--dl-accent)}.dl-glyph__speck[data-v-df9090dc]{fill:var(--dl-body)}.dl-glyph__arrow[data-v-df9090dc],.dl-glyph__loop[data-v-df9090dc],.dl-glyph__stroke[data-v-df9090dc]{fill:none;stroke:var(--dl-body);stroke-width:2.4px}.dl-glyph__arrow.is-thin[data-v-df9090dc]{stroke-width:1.6px}.dl-glyph__loop[data-v-df9090dc]{stroke:var(--dl-accent);stroke-dasharray:4 3}.dl-glyph__head[data-v-df9090dc]{fill:var(--dl-body)}.dl-glyph__pan[data-v-df9090dc]{fill:var(--dl-accent-soft);stroke:var(--dl-accent);stroke-width:2px}.dl-glyph__t[data-v-df9090dc]{fill:var(--dl-heading);font-size:15px;font-weight:700}.dl-glyph__t.is-sm[data-v-df9090dc]{fill:var(--dl-muted);font-size:10px;font-weight:600}.dl-glyph__label[data-v-df9090dc]{color:var(--dl-body);text-align:center;white-space:nowrap;margin-top:.2rem;font-size:.78rem;font-weight:600} diff --git a/lecture-07/assets/FamilyGlyph-DyfZ67F0.js b/lecture-07/assets/FamilyGlyph-DyfZ67F0.js new file mode 100644 index 0000000000000000000000000000000000000000..32951e667dced2079e47ab7872a9a3d3216c7eec --- /dev/null +++ b/lecture-07/assets/FamilyGlyph-DyfZ67F0.js @@ -0,0 +1 @@ +import{B as e,Ct as t,H as n,St as r,T as i,_ as a,b as o,m as s,x as c,y as l,yt as u}from"./modules/shiki-CJZsCeMT.js";import{t as d}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as f}from"./slidev/context-DB-9afGB.js";var p=[`width`,`height`,`aria-label`],m=[`id`],h={key:0},g=[`marker-end`],_={key:1},v={key:0,x:`44`,y:`42`,width:`12`,height:`16`,rx:`2`,class:`dl-glyph__box is-accent`},y={key:2},b=[`marker-end`],x=[`marker-end`],S=[`marker-end`],C={key:3},w=[`cx`,`cy`],T=[`d`,`marker-end`],E={key:4},D=[`transform`],O=[`cx`,`cy`],k=[`marker-end`],A={key:5},j={key:0,class:`dl-glyph__label`},M=d(i({__name:`FamilyGlyph`,props:{kind:{},size:{default:64},label:{}},setup(i){let{$slidev:d,$nav:M,$clicksContext:N,$clicks:P,$page:F,$renderContext:I,$frontmatter:L}=f(),R=i,z=[[3,4],[9,2],[14,9],[5,14],[11,16],[16,3],[2,10],[8,9],[15,14],[12,6],[6,6],[17,11],[4,17],[10,12],[1,1],[13,1],[7,17],[17,17]],B=[0,5,11,18].map((e,t)=>({x:4+t*24,solid:1-t/3,dots:z.slice(0,e)}));return(i,d)=>(e(),o(`figure`,{class:`dl-glyph`,style:r({width:`${R.size}px`})},[(e(),o(`svg`,{viewBox:`0 0 100 100`,width:R.size,height:R.size,role:`img`,"aria-label":R.label??R.kind},[a(`defs`,null,[a(`marker`,{id:`gl-head-${R.kind}`,markerWidth:`6`,markerHeight:`6`,refX:`5`,refY:`3`,orient:`auto`},[...d[0]||=[a(`path`,{d:`M0 0 L6 3 L0 6 z`,class:`dl-glyph__head`},null,-1)]],8,m)]),R.kind===`cnn`?(e(),o(`g`,h,[d[1]||=c(``,6),a(`path`,{d:`M50 42 V56`,class:`dl-glyph__arrow`,"marker-end":`url(#gl-head-${R.kind})`},null,8,g)])):R.kind===`ae`||R.kind===`vae`?(e(),o(`g`,_,[d[4]||=a(`polygon`,{points:`6,18 42,40 42,60 6,82`,class:`dl-glyph__net`},null,-1),d[5]||=a(`polygon`,{points:`94,18 58,40 58,60 94,82`,class:`dl-glyph__net`},null,-1),R.kind===`ae`?(e(),o(`rect`,v)):(e(),o(s,{key:1},[d[2]||=a(`circle`,{cx:`50`,cy:`50`,r:`15`,class:`dl-glyph__cloud`},null,-1),d[3]||=a(`circle`,{cx:`50`,cy:`50`,r:`5`,class:`dl-glyph__dot`},null,-1)],64))])):R.kind===`gan`?(e(),o(`g`,y,[d[6]||=a(`polygon`,{points:`4,40 30,46 30,66 4,72`,class:`dl-glyph__net`},null,-1),d[7]||=a(`rect`,{x:`40`,y:`46`,width:`18`,height:`20`,rx:`2`,class:`dl-glyph__box is-accent`},null,-1),d[8]||=a(`polygon`,{points:`68,46 96,40 96,72 68,66`,class:`dl-glyph__net is-critic`},null,-1),a(`path`,{d:`M31 56 H38`,class:`dl-glyph__arrow`,"marker-end":`url(#gl-head-${R.kind})`},null,8,b),a(`path`,{d:`M59 56 H66`,class:`dl-glyph__arrow`,"marker-end":`url(#gl-head-${R.kind})`},null,8,x),a(`path`,{d:`M82 36 C82 12, 18 12, 18 34`,class:`dl-glyph__loop`,"marker-end":`url(#gl-head-${R.kind})`},null,8,S),d[9]||=a(`text`,{x:`17`,y:`90`,class:`dl-glyph__t`,"text-anchor":`middle`},`G`,-1),d[10]||=a(`text`,{x:`82`,y:`90`,class:`dl-glyph__t`,"text-anchor":`middle`},`D`,-1)])):R.kind===`collapse`?(e(),o(`g`,C,[(e(),o(s,null,n([[14,16],[10,50],[16,84],[40,10],[40,90]],(e,t)=>a(`circle`,{key:t,cx:e[0],cy:e[1],r:`5`,class:`dl-glyph__box`},null,8,w)),64)),(e(),o(s,null,n([[14,16],[10,50],[16,84],[40,10],[40,90]],(e,t)=>a(`path`,{key:`a${t}`,d:`M${e[0]+5} ${e[1]} L74 50`,class:`dl-glyph__arrow is-thin`,"marker-end":`url(#gl-head-${R.kind})`},null,8,T)),64)),d[11]||=a(`circle`,{cx:`82`,cy:`50`,r:`9`,class:`dl-glyph__dot is-danger`},null,-1)])):R.kind===`diffusion`?(e(),o(`g`,E,[(e(!0),o(s,null,n(u(B),(t,i)=>(e(),o(`g`,{key:i,transform:`translate(${t.x} 26)`},[d[12]||=a(`rect`,{x:`0`,y:`0`,width:`20`,height:`20`,rx:`2`,class:`dl-glyph__box`},null,-1),a(`rect`,{x:`4`,y:`4`,width:`12`,height:`12`,rx:`1`,class:`dl-glyph__solid`,style:r({fillOpacity:t.solid})},null,4),(e(!0),o(s,null,n(t.dots,(t,n)=>(e(),o(`circle`,{key:n,cx:t[0]+1,cy:t[1]+1,r:`1.3`,class:`dl-glyph__speck`},null,8,O))),128))],8,D))),128)),a(`path`,{d:`M86 62 C70 80, 30 80, 14 62`,class:`dl-glyph__loop`,"marker-end":`url(#gl-head-${R.kind})`},null,8,k),d[13]||=a(`text`,{x:`50`,y:`96`,class:`dl-glyph__t is-sm`,"text-anchor":`middle`},`learn to undo`,-1)])):R.kind===`choose`?(e(),o(`g`,A,[...d[14]||=[a(`path`,{d:`M50 14 V82 M30 86 H70`,class:`dl-glyph__stroke`},null,-1),a(`path`,{d:`M14 30 H86`,class:`dl-glyph__stroke`},null,-1),a(`path`,{d:`M14 30 L4 58 H24 Z M86 30 L76 58 H96 Z`,class:`dl-glyph__pan`},null,-1),a(`circle`,{cx:`50`,cy:`14`,r:`4`,class:`dl-glyph__dot`},null,-1)]])):l(`v-if`,!0)],8,p)),R.label?(e(),o(`figcaption`,j,t(R.label),1)):l(`v-if`,!0)],4))}}),[[`__scopeId`,`data-v-df9090dc`]]);export{M as t}; \ No newline at end of file diff --git a/lecture-07/assets/LinkCard-CuSkRmQ7.js b/lecture-07/assets/LinkCard-CuSkRmQ7.js new file mode 100644 index 0000000000000000000000000000000000000000..f167c830da8817df89329ce7f4e170b432bdbdbd --- /dev/null +++ b/lecture-07/assets/LinkCard-CuSkRmQ7.js @@ -0,0 +1 @@ +import{B as e,Ct as t,T as n,_ as r,b as i,y as a,yt as o}from"./modules/shiki-CJZsCeMT.js";import{t as s}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as c}from"./slidev/context-DB-9afGB.js";var l=[`href`],u={key:0,class:`dl-linkcard__icon`},d={class:`dl-linkcard__text`},f={class:`dl-linkcard__title`},p={key:0,class:`dl-linkcard__blurb`},m={class:`dl-linkcard__host`},h=s(n({__name:`LinkCard`,props:{href:{},title:{},blurb:{},icon:{}},setup(n){let{$slidev:s,$nav:h,$clicksContext:g,$clicks:_,$page:v,$renderContext:y,$frontmatter:b}=c(),x=n,S=x.href.replace(/^https?:\/\//,``).replace(/\/.*$/,``);return(n,s)=>(e(),i(`a`,{class:`dl-linkcard`,href:x.href,target:`_blank`,rel:`noopener`},[x.icon?(e(),i(`div`,u,t(x.icon),1)):a(`v-if`,!0),r(`div`,d,[r(`div`,f,t(x.title),1),x.blurb?(e(),i(`div`,p,t(x.blurb),1)):a(`v-if`,!0),r(`div`,m,t(o(S)),1)])],8,l))}}),[[`__scopeId`,`data-v-77ab5d10`]]);export{h as t}; \ No newline at end of file diff --git a/lecture-07/assets/PixelImage-B6_BGQ53.css b/lecture-07/assets/PixelImage-B6_BGQ53.css new file mode 100644 index 0000000000000000000000000000000000000000..3bc2245717696e2c55dd4fa6ac9de7671adc94b2 --- /dev/null +++ b/lecture-07/assets/PixelImage-B6_BGQ53.css @@ -0,0 +1 @@ +.dl-pixel[data-v-25ad2566]{vertical-align:middle;flex-direction:column;align-items:center;margin:0;display:inline-flex}.dl-pixel__bg[data-v-25ad2566]{fill:var(--dl-bg);stroke:var(--dl-border);stroke-width:.12px}.dl-pixel__svglabel[data-v-25ad2566]{fill:var(--dl-muted)}.dl-pixel__label[data-v-25ad2566]{color:var(--dl-muted);text-align:center;white-space:nowrap;margin-top:.15rem;font-size:.72rem;line-height:1.15} diff --git a/lecture-07/assets/PixelImage-C1NqQXMF.js b/lecture-07/assets/PixelImage-C1NqQXMF.js new file mode 100644 index 0000000000000000000000000000000000000000..b3ed304288e0b0243ec6b01dc606213ca7b9c172 --- /dev/null +++ b/lecture-07/assets/PixelImage-C1NqQXMF.js @@ -0,0 +1 @@ +import{B as e,Ct as t,H as n,St as r,T as i,_ as a,b as o,g as s,m as c,y as l,yt as u}from"./modules/shiki-CJZsCeMT.js";import{t as d}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as f}from"./slidev/context-DB-9afGB.js";import{E as p,w as m}from"./useGenerative-DhxjRRg5.js";var h={smiley:[`....####....`,`..##....##..`,`.#........#.`,`.#..#..#..#.`,`#...#..#...#`,`#..........#`,`#..........#`,`#..#....#..#`,`.#..####..#.`,`.#........#.`,`..##....##..`,`....####....`],heart:[`............`,`..##....##..`,`.####..####.`,`############`,`############`,`############`,`.##########.`,`..########..`,`...######...`,`....####....`,`.....##.....`,`............`],star:[`.....##.....`,`.....##.....`,`....####....`,`....####....`,`############`,`.##########.`,`..########..`,`...######...`,`...######...`,`..###..###..`,`..##....##..`,`.#........#.`],house:[`.....##.....`,`....####....`,`...######...`,`..########..`,`.##########.`,`############`,`.#........#.`,`.#.##..##.#.`,`.#.##..##.#.`,`.#.....##.#.`,`.#.....##.#.`,`.##########.`],moon:[`....####....`,`..#####.....`,`.#####......`,`.####.......`,`#####.......`,`#####.......`,`#####.......`,`#####.......`,`.####.......`,`.#####......`,`..#####.....`,`....####....`],tree:[`.....##.....`,`....####....`,`...######...`,`..########..`,`....####....`,`...######...`,`..########..`,`.##########.`,`.....##.....`,`.....##.....`,`.....##.....`,`....####....`]};Object.keys(h);function g(e){return(h[e]??h.smiley).map(e=>[...e].map(e=>e===`#`?1:e===`+`?.5:0))}function _(e,t){let{counts:n}=m(12+e,e,t),r=e-1,i=n.slice(r,r+12).map(e=>e.slice(r,r+12)),a=Math.max(...i.flat());return i.map(e=>e.map(e=>.12+e/a*.5))}function v(e,t={}){let{noise:n=0,seed:r=7,shifts:i=[0]}=t,a;if(e===`noise`)a=Array.from({length:12},()=>Array(12).fill(.5));else if(e.startsWith(`checker:`)){let[,t,n]=e.split(`:`).map(Number);a=_(t,n)}else{let t=g(e);a=t.map((e,n)=>e.map((e,r)=>{let a=0;for(let e of i){let i=r-e;a+=i>=0&&i<12?t[n][i]:0}return a/i.length}))}let o=e===`noise`?1:Math.min(Math.max(n,0),1);if(o===0)return a;let s=p(r),c=Math.sqrt(1-o),l=Math.sqrt(o);return a.map(e=>e.map(e=>{let t=c*(2*e-1)+l*s();return Math.min(Math.max((t+1)/2,0),1)}))}var y=[`transform`,`aria-label`],b=[`width`,`height`],x=[`x`,`y`],S=[`x`,`y`],C=[`viewBox`,`width`,`height`,`aria-label`],w=[`width`,`height`],T=[`x`,`y`],E={key:0,class:`dl-pixel__label`},D=d(i({__name:`PixelImage`,props:{pattern:{default:`smiley`},noise:{default:0},seed:{default:7},shifts:{},size:{default:56},tone:{default:`ink`},label:{},inSvg:{type:Boolean,default:!1},x:{default:0},y:{default:0}},setup(i){let{$slidev:d,$nav:p,$clicksContext:m,$clicks:h,$page:g,$renderContext:_,$frontmatter:D}=f(),O=i,k=s(()=>O.size/13),A=s(()=>{let e=v(O.pattern,{noise:O.noise,seed:O.seed,shifts:O.shifts}),t=[];return e.forEach((e,n)=>e.forEach((e,r)=>{e>.02&&t.push({x:r,y:n,v:e})})),t}),j=s(()=>({ink:`var(--dl-heading)`,accent:`var(--dl-accent)`,danger:`var(--dl-danger)`})[O.tone]);return(i,s)=>O.inSvg?(e(),o(`g`,{key:0,transform:`translate(${O.x} ${O.y}) scale(${k.value}) translate(0.5 0.5)`,role:`img`,"aria-label":O.label??O.pattern},[a(`rect`,{x:`-0.5`,y:`-0.5`,width:u(12)+1,height:u(12)+1,rx:`0.8`,class:`dl-pixel__bg`},null,8,b),(e(!0),o(c,null,n(A.value,t=>(e(),o(`rect`,{key:`${t.x}-${t.y}`,class:`dl-pixel__cell`,x:t.x,y:t.y,width:`1.02`,height:`1.02`,style:r({fill:j.value,fillOpacity:t.v})},null,12,x))),128)),O.label?(e(),o(`text`,{key:0,x:u(12)/2,y:u(12)+.5+12/k.value,"text-anchor":`middle`,class:`dl-pixel__svglabel`,style:r({fontSize:`${11/k.value}px`})},t(O.label),13,S)):l(`v-if`,!0)],8,y)):(e(),o(`figure`,{key:1,class:`dl-pixel`,style:r({width:`${O.size}px`})},[(e(),o(`svg`,{viewBox:`-0.5 -0.5 ${u(12)+1} ${u(12)+1}`,width:O.size,height:O.size,role:`img`,"aria-label":O.label??O.pattern},[a(`rect`,{x:`-0.5`,y:`-0.5`,width:u(12)+1,height:u(12)+1,rx:`0.8`,class:`dl-pixel__bg`},null,8,w),(e(!0),o(c,null,n(A.value,t=>(e(),o(`rect`,{key:`${t.x}-${t.y}`,class:`dl-pixel__cell`,x:t.x,y:t.y,width:`1.02`,height:`1.02`,style:r({fill:j.value,fillOpacity:t.v})},null,12,T))),128))],8,C)),O.label?(e(),o(`figcaption`,E,t(O.label),1)):l(`v-if`,!0)],4))}}),[[`__scopeId`,`data-v-25ad2566`]]);export{D as t}; \ No newline at end of file diff --git a/lecture-07/assets/Plot2D-ifvwvNLG.js b/lecture-07/assets/Plot2D-ifvwvNLG.js new file mode 100644 index 0000000000000000000000000000000000000000..7ad6e76330327037f8b916391623f2cddd6a8872 --- /dev/null +++ b/lecture-07/assets/Plot2D-ifvwvNLG.js @@ -0,0 +1,10 @@ +import{A as e,B as t,Ct as n,H as r,T as i,U as a,V as o,_ as s,b as c,dt as l,g as u,gt as d,m as f,q as p,y as m,yt as h}from"./modules/shiki-CJZsCeMT.js";import{t as g}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as _}from"./slidev/context-DB-9afGB.js";var v=Symbol(`dl-plot`);function y(){let t=e(v,null);if(!t)throw Error(`This component must be used inside a `);return t}function b(e,t,n=6){if(!Number.isFinite(e)||!Number.isFinite(t)||e===t)return[e];let r=(t-e)/Math.max(n,1),i=10**Math.floor(Math.log10(r)),a=r/i,o=(a>=5?10:a>=2?5:a>=1?2:1)*i,s=[],c=Math.ceil(e/o)*o;for(let e=c;e<=t+o*1e-9;e+=o)s.push(Math.abs(e)=1e5||t<1e-4?e.toExponential(0):String(Number(e.toFixed(6)))}var S=[`viewBox`],C={key:0,class:`dl-plot__grid`},w=[`x1`,`x2`,`y1`,`y2`],T=[`x1`,`x2`,`y1`,`y2`],E={class:`dl-plot__axes`},D=[`x1`,`x2`,`y1`,`y2`],O=[`x1`,`x2`,`y1`,`y2`],k={class:`dl-plot__ticks`},A=[`x1`,`x2`,`y1`,`y2`],j=[`x`,`y`],M=[`x1`,`x2`,`y1`,`y2`],N=[`x`,`y`],P=[`x`,`y`,`width`,`height`],F=[`clip-path`],I=[`x`,`y`],L=[`x`],R=g(i({__name:`Plot2D`,props:{xDomain:{default:()=>[0,1]},yDomain:{default:()=>[0,1]},width:{default:520},height:{default:320},xLabel:{},yLabel:{},xTicks:{default:6},yTicks:{default:5},grid:{type:Boolean,default:!0},originAxes:{type:Boolean,default:!1},padding:{}},setup(e,{expose:i}){let{$slidev:g,$nav:y,$clicksContext:R,$clicks:z,$page:ee,$renderContext:te,$frontmatter:ne}=_(),B=e,V=u(()=>({top:B.padding?.top??14,right:B.padding?.right??16,bottom:B.padding?.bottom??(B.xLabel?42:28),left:B.padding?.left??(B.yLabel?52:40)})),H=u(()=>({x:V.value.left,y:V.value.top,width:Math.max(B.width-V.value.left-V.value.right,1),height:Math.max(B.height-V.value.top-V.value.bottom,1)})),U=e=>{let[t,n]=B.xDomain;return H.value.x+(e-t)/(n-t||1)*H.value.width},W=e=>{let[t,n]=B.yDomain;return H.value.y+(1-(e-t)/(n-t||1))*H.value.height},G=e=>{let[t,n]=B.xDomain;return t+(e-H.value.x)/H.value.width*(n-t)},K=e=>{let[t,n]=B.yDomain;return t+(1-(e-H.value.y)/H.value.height)*(n-t)};o(v,{sx:U,sy:W,ix:G,iy:K,xDomain:d(B,`xDomain`),yDomain:d(B,`yDomain`),inner:H});let q=u(()=>Array.isArray(B.xTicks)?B.xTicks:b(B.xDomain[0],B.xDomain[1],B.xTicks)),J=u(()=>Array.isArray(B.yTicks)?B.yTicks:b(B.yDomain[0],B.yDomain[1],B.yTicks)),Y=u(()=>B.originAxes?W(Math.min(Math.max(0,B.yDomain[0]),B.yDomain[1])):H.value.y+H.value.height),X=u(()=>B.originAxes?U(Math.min(Math.max(0,B.xDomain[0]),B.xDomain[1])):H.value.x),Z=l(null),Q=`dl-plot-clip-${p()}`;function $(e){let t=Z.value;if(!t)return null;let n=t.getBoundingClientRect(),r=(e.clientX-n.left)/n.width*B.width,i=(e.clientY-n.top)/n.height*B.height;return{x:G(r),y:K(i)}}return i({dataAt:$,sx:U,sy:W,ix:G,iy:K}),(e,i)=>(t(),c(`svg`,{ref_key:`svg`,ref:Z,class:`dl-plot`,viewBox:`0 0 ${B.width} ${B.height}`,preserveAspectRatio:`xMidYMid meet`,role:`img`},[B.grid?(t(),c(`g`,C,[(t(!0),c(f,null,r(q.value,e=>(t(),c(`line`,{key:`gx${e}`,x1:U(e),x2:U(e),y1:H.value.y,y2:H.value.y+H.value.height},null,8,w))),128)),(t(!0),c(f,null,r(J.value,e=>(t(),c(`line`,{key:`gy${e}`,x1:H.value.x,x2:H.value.x+H.value.width,y1:W(e),y2:W(e)},null,8,T))),128))])):m(`v-if`,!0),s(`g`,E,[s(`line`,{x1:H.value.x,x2:H.value.x+H.value.width,y1:Y.value,y2:Y.value},null,8,D),s(`line`,{x1:X.value,x2:X.value,y1:H.value.y,y2:H.value.y+H.value.height},null,8,O)]),m(` + Tick *marks* sit on the axis, which may run through the origin; tick + *labels* always sit on the frame edge. Letting labels follow a + through-origin axis buries them in the middle of the data and collides the + two zeros on top of each other. + `),s(`g`,k,[(t(!0),c(f,null,r(q.value,e=>(t(),c(f,{key:`tx${e}`},[s(`line`,{x1:U(e),x2:U(e),y1:Y.value,y2:Y.value+5},null,8,A),s(`text`,{x:U(e),y:H.value.y+H.value.height+17,"text-anchor":`middle`},n(h(x)(e)),9,j)],64))),128)),(t(!0),c(f,null,r(J.value,e=>(t(),c(f,{key:`ty${e}`},[s(`line`,{x1:X.value-5,x2:X.value,y1:W(e),y2:W(e)},null,8,M),s(`text`,{x:H.value.x-9,y:W(e)+4,"text-anchor":`end`},n(h(x)(e)),9,N)],64))),128))]),m(` + Marks are clipped to the plot area. A decision boundary or a diverging + trajectory legitimately runs off the domain, and without this it paints + straight across the rest of the slide. + `),s(`defs`,null,[s(`clipPath`,{id:Q},[s(`rect`,{x:H.value.x,y:H.value.y,width:H.value.width,height:H.value.height},null,8,P)])]),s(`g`,{"clip-path":`url(#${Q})`},[a(e.$slots,`default`,{},void 0,!0)],8,F),m(` Annotations that are allowed to sit outside the axes. `),a(e.$slots,`overlay`,{},void 0,!0),B.xLabel?(t(),c(`text`,{key:1,class:`dl-plot__label`,x:H.value.x+H.value.width/2,y:B.height-6,"text-anchor":`middle`},n(B.xLabel),9,I)):m(`v-if`,!0),B.yLabel?(t(),c(`text`,{key:2,class:`dl-plot__label`,x:-(H.value.y+H.value.height/2),y:13,"text-anchor":`middle`,transform:`rotate(-90)`},n(B.yLabel),9,L)):m(`v-if`,!0)],8,S))}}),[[`__scopeId`,`data-v-515e2759`]]);export{y as n,R as t}; \ No newline at end of file diff --git a/lecture-07/assets/PlotCurve-BoqzCl1G.js b/lecture-07/assets/PlotCurve-BoqzCl1G.js new file mode 100644 index 0000000000000000000000000000000000000000..7378c99e096a0335c3f281bcc0b2b92dcfada07e --- /dev/null +++ b/lecture-07/assets/PlotCurve-BoqzCl1G.js @@ -0,0 +1 @@ +import{B as e,H as t,St as n,T as r,b as i,g as a,m as o,y as s}from"./modules/shiki-CJZsCeMT.js";import{n as c}from"./slidev/context-DB-9afGB.js";import{n as l}from"./Plot2D-ifvwvNLG.js";var u={class:`dl-curve`},d=[`d`,`fill`],f=[`d`,`stroke`,`stroke-width`,`stroke-dasharray`],p=r({__name:`PlotCurve`,props:{fn:{},points:{},samples:{default:160},color:{},width:{default:2.5},dashed:{type:Boolean,default:!1},fillTo:{},opacity:{default:1}},setup(r){let{$slidev:p,$nav:m,$clicksContext:h,$clicks:g,$page:_,$renderContext:v,$frontmatter:y}=c(),b=r,x=l(),S=a(()=>{if(b.points)return b.points.map(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e);if(!b.fn)return[];let[e,t]=x.xDomain.value,n=Math.max(b.samples,2),r=[];for(let i=0;i{let[e,t]=x.yDomain.value,n=(t-e)*4,r=[],i=[];for(let a of S.value){if(!(Number.isFinite(a.y)&&a.y>e-n&&a.y1&&r.push(i.join(` `)),i=[];continue}i.push(`${i.length?`L`:`M`}${x.sx(a.x).toFixed(2)},${x.sy(a.y).toFixed(2)}`)}return i.length>1&&r.push(i.join(` `)),r}),w=a(()=>{if(b.fillTo===void 0||!S.value.length)return null;let[e,t]=x.yDomain.value,n=S.value.filter(e=>Number.isFinite(e.y));if(n.length<2)return null;let r=n=>Math.min(Math.max(n,e),t),i=n.map((e,t)=>`${t?`L`:`M`}${x.sx(e.x).toFixed(2)},${x.sy(r(e.y)).toFixed(2)}`).join(` `),a=x.sy(r(b.fillTo)).toFixed(2);return`${i} L${x.sx(n[n.length-1].x).toFixed(2)},${a} L${x.sx(n[0].x).toFixed(2)},${a} Z`});return(r,a)=>(e(),i(`g`,u,[w.value?(e(),i(`path`,{key:0,d:w.value,fill:b.color??`var(--dl-accent)`,style:n({opacity:.12*b.opacity}),stroke:`none`},null,12,d)):s(`v-if`,!0),(e(!0),i(o,null,t(C.value,(t,r)=>(e(),i(`path`,{key:r,d:t,fill:`none`,stroke:b.color??`var(--dl-accent)`,"stroke-width":b.width,"stroke-dasharray":b.dashed?`6 5`:void 0,style:n({opacity:b.opacity}),"stroke-linecap":`round`,"stroke-linejoin":`round`},null,12,f))),128))]))}});export{p as t}; \ No newline at end of file diff --git a/lecture-07/assets/PlotLabel-BuFT7VP9.js b/lecture-07/assets/PlotLabel-BuFT7VP9.js new file mode 100644 index 0000000000000000000000000000000000000000..dfb6b3603d5e807e0bfab0f7b27f81a2cdcdd000 --- /dev/null +++ b/lecture-07/assets/PlotLabel-BuFT7VP9.js @@ -0,0 +1 @@ +import{B as e,Ct as t,S as n,T as r,U as i,_ as a,b as o,g as s,y as c}from"./modules/shiki-CJZsCeMT.js";import{n as l}from"./slidev/context-DB-9afGB.js";import{n as u}from"./Plot2D-ifvwvNLG.js";var d={class:`dl-plot-label`},f=[`x1`,`y1`,`x2`,`y2`,`stroke`],p=[`x`,`y`,`text-anchor`,`fill`,`font-size`,`font-weight`],m=r({__name:`PlotLabel`,props:{at:{},text:{},dx:{default:8},dy:{default:-8},anchor:{default:`start`},color:{},size:{default:12},leader:{type:Boolean,default:!1},bold:{type:Boolean,default:!1}},setup(r){let{$slidev:m,$nav:h,$clicksContext:g,$clicks:_,$page:v,$renderContext:y,$frontmatter:b}=l(),x=r,S=u(),C=s(()=>({x:S.sx(x.at[0]),y:S.sy(x.at[1])})),w=s(()=>({x:C.value.x+x.dx,y:C.value.y+x.dy}));return(r,s)=>(e(),o(`g`,d,[x.leader?(e(),o(`line`,{key:0,x1:C.value.x,y1:C.value.y,x2:w.value.x-(x.anchor===`end`?-4:4),y2:w.value.y+3,stroke:x.color??`var(--dl-muted)`,"stroke-width":`1`},null,8,f)):c(`v-if`,!0),a(`text`,{x:w.value.x,y:w.value.y,"text-anchor":x.anchor,fill:x.color??`var(--dl-body)`,"font-size":x.size,"font-weight":x.bold?600:400},[i(r.$slots,`default`,{},()=>[n(t(x.text),1)])],8,p)]))}});export{m as t}; \ No newline at end of file diff --git a/lecture-07/assets/PlotLine-CUED7wZE.js b/lecture-07/assets/PlotLine-CUED7wZE.js new file mode 100644 index 0000000000000000000000000000000000000000..7035ce8804346fa66c21e2d5b5d4ff9ea97d6f90 --- /dev/null +++ b/lecture-07/assets/PlotLine-CUED7wZE.js @@ -0,0 +1 @@ +import{B as e,St as t,T as n,_ as r,b as i,g as a,q as o,y as s}from"./modules/shiki-CJZsCeMT.js";import{n as c}from"./slidev/context-DB-9afGB.js";import{n as l}from"./Plot2D-ifvwvNLG.js";var u={key:0},d=[`fill`],f=[`x1`,`y1`,`x2`,`y2`,`stroke`,`stroke-width`,`stroke-dasharray`,`marker-end`],p=n({__name:`PlotLine`,props:{from:{},to:{},color:{},width:{default:2},dashed:{type:Boolean,default:!1},arrow:{type:Boolean,default:!1},opacity:{default:1}},setup(n){let{$slidev:p,$nav:m,$clicksContext:h,$clicks:g,$page:_,$renderContext:v,$frontmatter:y}=c(),b=n,x=l(),S=`dl-arrow-${o()}`,C=a(()=>({x:x.sx(b.from[0]),y:x.sy(b.from[1])})),w=a(()=>({x:x.sx(b.to[0]),y:x.sy(b.to[1])})),T=a(()=>b.color??`var(--dl-heading)`);return(n,a)=>(e(),i(`g`,{class:`dl-line`,style:t({opacity:b.opacity})},[b.arrow?(e(),i(`defs`,u,[r(`marker`,{id:S,markerWidth:`7`,markerHeight:`7`,refX:`6`,refY:`3.5`,orient:`auto`},[r(`path`,{d:`M0,0 L7,3.5 L0,7 Z`,fill:T.value},null,8,d)])])):s(`v-if`,!0),r(`line`,{x1:C.value.x,y1:C.value.y,x2:w.value.x,y2:w.value.y,stroke:T.value,"stroke-width":b.width,"stroke-dasharray":b.dashed?`6 5`:void 0,"marker-end":b.arrow?`url(#${S})`:void 0,"stroke-linecap":`round`},null,8,f)],4))}});export{p as t}; \ No newline at end of file diff --git a/lecture-07/assets/PlotPoints-Cxs9FmbK.js b/lecture-07/assets/PlotPoints-Cxs9FmbK.js new file mode 100644 index 0000000000000000000000000000000000000000..7e3a51d23677d805757900a55bd50fae772c79a3 --- /dev/null +++ b/lecture-07/assets/PlotPoints-Cxs9FmbK.js @@ -0,0 +1 @@ +import{B as e,Ct as t,H as n,St as r,T as i,_ as a,b as o,bt as s,g as c,m as l,y as u}from"./modules/shiki-CJZsCeMT.js";import{t as d}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as f}from"./slidev/context-DB-9afGB.js";import{n as p}from"./Plot2D-ifvwvNLG.js";var m={class:`dl-points`},h=[`cx`,`cy`,`r`,`fill`],g=[`d`,`fill`],_=[`x`,`y`],v=d(i({__name:`PlotPoints`,props:{points:{},radius:{default:5},color:{},colors:{},shapes:{},opacity:{default:1}},setup(i){let{$slidev:d,$nav:v,$clicksContext:y,$clicks:b,$page:x,$renderContext:S,$frontmatter:C}=f(),w=i,T=p(),E=c(()=>w.points.map((e,t)=>{let n=String(e.cls??``);return{i:t,cx:T.sx(e.x),cy:T.sy(e.y),shape:w.shapes?.[n]??`circle`,fill:w.colors?.[n]??w.color??`var(--dl-accent)`,highlight:!!e.highlight,label:e.label}}));function D(e,t,n){let r=n*.9;return`M${e-r},${t-r} h${r*2} v${r*2} h${-r*2} Z`}function O(e,t,n){let r=n*1.2;return`M${e},${t-r} L${e+r},${t+r*.8} L${e-r},${t+r*.8} Z`}return(i,c)=>(e(),o(l,null,[u('\n Opacity goes through `style`, never the SVG `opacity` attribute. UnoCSS\n attributify scans source text, so a literal `opacity="0.85"` anywhere in the\n project emits `[opacity~="0.85"]{opacity:0.0085}` — and that CSS rule beats\n the presentation attribute, silently rendering marks all but invisible.\n '),a(`g`,m,[(e(!0),o(l,null,n(E.value,n=>(e(),o(`g`,{key:n.i,style:r({opacity:w.opacity})},[n.shape===`circle`?(e(),o(`circle`,{key:0,cx:n.cx,cy:n.cy,r:w.radius,fill:n.fill,class:s({"is-highlight":n.highlight})},null,10,h)):(e(),o(`path`,{key:1,d:n.shape===`square`?D(n.cx,n.cy,w.radius):O(n.cx,n.cy,w.radius),fill:n.fill,class:s({"is-highlight":n.highlight})},null,10,g)),n.label?(e(),o(`text`,{key:2,x:n.cx+w.radius+4,y:n.cy+4},t(n.label),9,_)):u(`v-if`,!0)],4))),128))])],2112))}}),[[`__scopeId`,`data-v-c681d555`]]);export{v as t}; \ No newline at end of file diff --git a/lecture-07/assets/PollSlide-BQgjKhm1.js b/lecture-07/assets/PollSlide-BQgjKhm1.js new file mode 100644 index 0000000000000000000000000000000000000000..30fd1bc9c1527a24b0951100c64d7cf8b16f5220 --- /dev/null +++ b/lecture-07/assets/PollSlide-BQgjKhm1.js @@ -0,0 +1 @@ +import{B as e,C as t,Ct as n,H as r,T as i,_ as a,b as o,et as s,m as c}from"./modules/shiki-CJZsCeMT.js";import{t as l}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as u}from"./slidev/context-DB-9afGB.js";import{t as d}from"./slidev/VClicks-DhU7uhQr.js";var f={class:`dl-poll`},p={class:`dl-poll__question`},m=l(i({__name:`PollSlide`,props:{question:{},items:{}},setup(i){let{$slidev:l,$nav:m,$clicksContext:h,$clicks:g,$page:_,$renderContext:v,$frontmatter:y}=u(),b=i;return(i,l)=>{let u=d;return e(),o(`div`,f,[a(`div`,p,n(b.question),1),t(u,null,{default:s(()=>[(e(!0),o(c,null,r(b.items,t=>(e(),o(`div`,{key:t,class:`dl-poll__item`},[l[0]||=a(`span`,{class:`dl-poll__bullet`},`?`,-1),a(`span`,null,n(t),1)]))),128))]),_:1})])}}}),[[`__scopeId`,`data-v-743a908f`]]);export{m as t}; \ No newline at end of file diff --git a/lecture-07/assets/SlideWrapper-B_VDtSxZ.js b/lecture-07/assets/SlideWrapper-B_VDtSxZ.js new file mode 100644 index 0000000000000000000000000000000000000000..04e0cda8c195e9a78841714c1e15bb44dd33e4f9 --- /dev/null +++ b/lecture-07/assets/SlideWrapper-B_VDtSxZ.js @@ -0,0 +1,2 @@ +import{$ as e,B as t,C as n,K as r,O as i,Q as a,R as o,St as s,T as c,U as l,Z as ee,_ as u,b as d,bt as f,dt as p,f as m,g as h,gt as g,i as _,lt as v,m as te,v as y,y as b,yt as x,z as ne}from"./modules/shiki-CJZsCeMT.js";import{A as S,Q as C,X as w,Z as T,t as E,tt as D,z as O}from"./useNav-BmBHxIEh.js";import{t as k}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{N as A,p as re}from"./modules/vue-Dnfgf7Ad.js";import{_ as ie,d as j,f as M,g as N,h as P,m as F,n as I,p as L,v as R}from"./slidev/context-DB-9afGB.js";import{n as z,r as B,t as V}from"./syncState-3Tc2ZArb.js";import{a as H,p as U}from"./index-DxDNFTAW.js";import"./slidev/client-Ct4Bq5Nz.js";import{t as W}from"./useDrawings-vNWRit9P.js";var G=[`innerHTML`],K=c({__name:`DrawingPreview`,props:{page:{}},setup(e){let{drawingState:n}=W();return(r,i)=>x(n)[e.page]?(t(),d(`svg`,{key:0,class:`w-full h-full absolute top-0 pointer-events-none`,innerHTML:x(n)[e.page]},null,8,G)):b(`v-if`,!0)}}),q=v({}),J=[],Y=[];z(q,`$syncUp`,!0),z(q,`$syncDown`,!0),z(q,`$paused`,!1),z(q,`$onSet`,e=>J.push(e)),z(q,`$onPatch`,e=>Y.push(e)),B(),z(q,`$patch`,async()=>!1);var ae=V(q,q,!0),X=window.navigator.userAgent.match(/Chrome\/(\d+)/)?.[1];X&&Number(X);var Z=window.navigator.userAgent.match(/Chrome\/(\d+)/)?.[1];Z&&Number(Z);var oe=new class{_screenshotSession=null;getSnapshot(e,t){let n=e+(t?`-dark`:`-light`),r=ae.state[n];if(!r)return;let i=O(e);if(i&&r?.revision===i?.meta.slide.revision)return r.image}async saveSnapshot(e,t,n){return!1}async startCapturing(e){return!1}},se=[`id`],ce=[`id`],le={class:`slidev-slide-container w-full h-full relative`},ue=[`src`],Q=p(null),de=k(c({__name:`SlideContainer`,props:{width:{type:Number},meta:{default:()=>({})},isMain:{type:Boolean,default:!1},no:{type:Number,required:!1},useSnapshot:{type:Boolean,default:!1},contentStyle:{type:Object,default:()=>({})}},setup(n){let r=n,{isPrintMode:i}=E(),c=p(null),f=re(c),m=p(null),g=h(()=>r.width??f.width.value),v=h(()=>r.width?r.width/w.value:f.height.value),y=h(()=>S.value&&!i.value?+S.value:Math.min(g.value/C.value,v.value/T.value)),x=h(()=>({...r.contentStyle,height:`${T.value}px`,width:`${C.value}px`,"--slidev-slide-scale":y.value})),D=h(()=>r.width?{width:`${r.width}px`,height:`${r.width/w.value}px`}:{});if(r.isMain){let e=document.documentElement.style;a(()=>e.setProperty(`--slidev-slide-scale`,y.value.toString())),ne(()=>e.removeProperty(`--slidev-slide-scale`))}A(ie,y),A(N,m),e(()=>{r.isMain&&(Q.value=m.value)}),o(()=>{ee(()=>r.isMain&&y.value,()=>{_()})});let O=h(()=>{if(!(r.no==null||!r.useSnapshot))return oe.getSnapshot(r.no,U.value)});return(e,r)=>O.value?(t(),d(te,{key:1},[b(` Image Snapshot `),u(`div`,le,[u(`img`,{src:O.value,class:`w-full h-full object-cover`,style:s(D.value)},null,12,ue),r[0]||=u(`div`,{absolute:``,"bottom-1":``,"right-1":``,"p0.5":``,"text-cyan:75":``,"bg-cyan:10":``,rounded:``,title:`Snapshot`},[u(`div`,{class:`i-carbon-camera`})],-1)])],2112)):(t(),d(`div`,{key:0,id:n.isMain?`slide-container`:void 0,ref_key:`container`,ref:c,class:`slidev-slide-container`,style:s(D.value)},[u(`div`,{id:n.isMain?`slide-content`:void 0,ref_key:`slideElement`,ref:m,class:`slidev-slide-content`,style:s(x.value)},[l(e.$slots,`default`,{},void 0,!0)],12,ce),l(e.$slots,`controls`,{},void 0,!0)],12,se))}}),[[`__scopeId`,`data-v-0167a76e`]]),fe=Object.assign({}),pe=Object.assign({}),me=Object.assign({}),he=Object.assign({}),ge=Object.assign({}),_e=Object.assign({}),ve={course:{code:`PGR207`,year:2026,title:`Deep Learning`,instructor:`Vajira Thambawita (PhD)`,email:`vajira@simula.no`},space:`DeepLearning-VT/DeepLearning_2026`,repo:`vlbthambawita/DeepLearning`,decks:[{id:`lecture-01`,title:`Introduction to Deep Learning`,subtitle:`Course overview, what deep learning is, and where it is used`,week:1,published:!0,notebook:null,source:`old_slides/2025/Teaching - Deep Leaning - 2025- Lecture 01.pdf`},{id:`lecture-02`,title:`Basics of Neural Networks`,subtitle:`Artificial neurons, the perceptron, Adaline and gradient descent`,week:2,published:!0,notebook:null,source:`old_slides/2025/Teaching - Deep Leaning - 2025 - Lecture 02 .pdf`},{id:`lecture-03`,title:`PyTorch for Deep Learning`,subtitle:`Tensors, autograd, and a fully-connected network on MNIST`,week:3,published:!0,notebook:null,source:null},{id:`lecture-04`,title:`Deep Convolutional Neural Networks`,subtitle:`Locality and weight sharing, the convolution operation, and CNNs in PyTorch`,week:4,published:!0,notebook:null,source:`old_slides/2025/Teaching - Deep Leaning - 2025 - Lecture 03.pdf`},{id:`lecture-05`,title:`Recurrent Neural Networks`,subtitle:`Sequence data, the recurrent layer, LSTM and GRU, and an RNN in PyTorch`,week:6,published:!0,publicNotes:!0,notebook:null,source:`old_slides/2025/Teaching - Deep Leaning - 2025 - Lecture 5_6.pdf`},{id:`lecture-06`,title:`Transformers`,subtitle:`Query, key and value; the original architecture, and what modern transformers changed`,week:7,published:!0,notebook:null,source:`old_slides/2025/Teaching - Deep Leaning - 2025 - Lecture 5_6.pdf`},{id:`lecture-07`,title:`Generative Models and GANs`,subtitle:`Autoencoders, VAEs, the adversarial game — and how diffusion took over`,week:9,published:!0,notebook:null,source:`old_slides/2025/Teaching - Deep Leaning - 2025 - Lecture 07.pdf`}]},ye=[`href`],be=Object.assign({"../../../../../packages/slidev-theme-dl2026/slide-top.vue":k(c({__name:`slide-top`,setup(e){let{$slidev:n,$page:r,$renderContext:i}=I(),a=h(()=>i.value===`slide`&&!n.nav.isPrintMode),o=h(()=>n.themeConfigs?.lecture??``),s=h(()=>n.themeConfigs?.lectureTitle??``),c=h(()=>{let e=r.value,t=`[${o.value?`Lecture ${o.value}, slide ${e}`:`Slide ${e}`}] `,n=[`**Lecture:** ${o.value}${s.value?` — ${s.value}`:``}`,`**Slide:** ${e}`,`**Link:** ${typeof window<`u`?`${window.location.origin}${window.location.pathname}#/${e}`:``}`,``,`**What is wrong?**`,``,``].join(` +`),i=new URLSearchParams({title:t,body:n,labels:`slides`});return`https://github.com/${ve.repo}/issues/new?${i}`});return(e,n)=>a.value?(t(),d(`a`,{key:0,class:`dl-report`,href:c.value,target:`_blank`,rel:`noopener`,title:`Report a problem with this slide on GitHub`,onClick:n[0]||=m(()=>{},[`stop`])},`Report issue`,8,ye)):b(`v-if`,!0)}}),[[`__scopeId`,`data-v-6b2267dc`]])}),xe=Object.assign({}),Se=Object.assign({}),Ce=Object.assign({}),we=Object.assign({}),Te=Object.assign({}),Ee=[Object.values(fe)[0],Object.values(pe)[0],Object.values(me)[0]].filter(Boolean),De={render:()=>Ee.map(e=>i(e))},$=[Object.values(he)[0],Object.values(ge)[0],Object.values(_e)[0]].filter(Boolean),Oe={render:()=>$.map(e=>i(e))},ke=[Object.values(be)[0],Object.values(xe)[0],Object.values(Se)[0]].filter(Boolean),Ae={render:()=>ke.map(e=>i(e))},je=[Object.values(Ce)[0],Object.values(we)[0],Object.values(Te)[0]].filter(Boolean),Me={render:()=>je.map(e=>i(e))},Ne=[`data-slidev-no`,`lang`],Pe=k(c({__name:`SlideWrapper`,props:{clicksContext:{type:Object,required:!0},renderContext:{type:String,default:`slide`},route:{type:Object,required:!0}},setup(e){let i=e,a=h(()=>i.route.meta?.slide?.frontmatter.zoom??1);A(P,i.route),A(L,i.route.meta.slide.frontmatter),A(M,p(i.route.no)),A(F,p(i.renderContext)),A(j,g(i,`clicksContext`)),A(R,a);let o=h(()=>({"user-select":D.selectable?void 0:`none`,"--slidev-slide-zoom-scale":a.value===1?void 0:a.value}));return(a,c)=>(t(),d(`div`,{"data-slidev-no":i.route.no,class:f(x(H)(e.route,[`slide`,`presenter`].includes(i.renderContext)?``:`disable-view-transition`)),style:s(o.value),lang:i.route.meta.slide.frontmatter.lang},[n(x(Me)),(t(),y(r(i.route.component))),n(x(Ae))],14,Ne))}}),[[`__scopeId`,`data-v-a7136532`]]);export{Q as a,de as i,Oe as n,K as o,De as r,Pe as t}; \ No newline at end of file diff --git a/lecture-07/assets/SlideWrapper-DBNQYNtZ.css b/lecture-07/assets/SlideWrapper-DBNQYNtZ.css new file mode 100644 index 0000000000000000000000000000000000000000..c356c9b2e1a7db70c412549d55971154ace47d6a --- /dev/null +++ b/lecture-07/assets/SlideWrapper-DBNQYNtZ.css @@ -0,0 +1 @@ +.slidev-slide-container[data-v-0167a76e]{width:100%;height:100%;position:relative;overflow:hidden}.slidev-slide-content[data-v-0167a76e]{--slidev-slide-container-scale:var(--slidev-slide-scale);transform:translate(-50%, -50%) scale(var(--slidev-slide-scale));--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity));position:absolute;top:50%;left:50%;overflow:hidden}.dark .slidev-slide-content[data-v-0167a76e]{--un-bg-opacity:1;background-color:rgb(18 18 18/var(--un-bg-opacity))}.dl-report[data-v-6b2267dc]{z-index:10;letter-spacing:.04em;color:var(--dl-muted);opacity:.55;font-size:.6rem;text-decoration:none;transition:opacity .15s,color .15s;position:absolute;bottom:.2rem;right:3rem}.dl-report[data-v-6b2267dc]:hover,.dl-report[data-v-6b2267dc]:focus-visible{opacity:1;color:var(--dl-accent);text-decoration:underline}.disable-view-transition[data-v-a7136532] *{view-transition-name:none!important}.slidev-page[data-v-a7136532]{--slidev-slide-zoom-scale:1;width:calc(100% / var(--slidev-slide-zoom-scale));height:calc(100% / var(--slidev-slide-zoom-scale));transform-origin:0 0;scale:var(--slidev-slide-zoom-scale);--slidev-slide-scale:calc(var(--slidev-slide-container-scale) * var(--slidev-slide-zoom-scale));position:absolute;inset:0} diff --git a/lecture-07/assets/Slider-C2M0Z0oG.js b/lecture-07/assets/Slider-C2M0Z0oG.js new file mode 100644 index 0000000000000000000000000000000000000000..1ea8f07e2f498211f62dd5acd4debeae70f5f3bc --- /dev/null +++ b/lecture-07/assets/Slider-C2M0Z0oG.js @@ -0,0 +1 @@ +import{B as e,Ct as t,J as n,M as r,S as i,T as a,_ as o,b as s,bt as c,g as l,l as u,tt as d,y as f}from"./modules/shiki-CJZsCeMT.js";import{t as p}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as m}from"./slidev/context-DB-9afGB.js";var h={key:0,class:`dl-slider__label`},g=[`min`,`max`,`step`,`disabled`],_={class:`dl-slider__value`},v={key:0,class:`dl-slider__unit`},y=p(a({__name:`Slider`,props:r({label:{},min:{default:0},max:{default:1},step:{default:.01},precision:{default:2},unit:{},format:{},disabled:{type:Boolean,default:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(r){let{$slidev:a,$nav:p,$clicksContext:y,$clicks:b,$page:x,$renderContext:S,$frontmatter:C}=m(),w=r,T=n(r,`modelValue`),E=l(()=>w.format?w.format(T.value):T.value.toFixed(w.precision)),D=new Set([`ArrowLeft`,`ArrowRight`,`ArrowUp`,`ArrowDown`,`Home`,`End`,`PageUp`,`PageDown`,` `]);function O(e){D.has(e.key)&&e.stopPropagation()}return(n,r)=>(e(),s(`label`,{class:c([`dl-slider`,{"is-disabled":w.disabled}])},[w.label?(e(),s(`span`,h,t(w.label),1)):f(`v-if`,!0),d(o(`input`,{"onUpdate:modelValue":r[0]||=e=>T.value=e,type:`range`,min:w.min,max:w.max,step:w.step,disabled:w.disabled,onKeydown:O},null,40,g),[[u,T.value,void 0,{number:!0}]]),o(`output`,_,[i(t(E.value),1),w.unit?(e(),s(`span`,v,t(w.unit),1)):f(`v-if`,!0)])],2))}}),[[`__scopeId`,`data-v-b8762282`]]);export{y as t}; \ No newline at end of file diff --git a/lecture-07/assets/StepButton-BHTS1uiY.js b/lecture-07/assets/StepButton-BHTS1uiY.js new file mode 100644 index 0000000000000000000000000000000000000000..c0ef764fc23935a4d0c56c808df117e9806fc98e --- /dev/null +++ b/lecture-07/assets/StepButton-BHTS1uiY.js @@ -0,0 +1 @@ +import{B as e,Ct as t,S as n,St as r,T as i,U as a,_ as o,b as s,bt as c,y as l}from"./modules/shiki-CJZsCeMT.js";import{t as u}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as d}from"./slidev/context-DB-9afGB.js";var f={class:`dl-widget__stage`},p={class:`dl-widget__controls`},m={class:`dl-widget__readout`},h=u(i({__name:`WidgetFrame`,props:{maxWidth:{default:`100%`},controlsFirst:{type:Boolean}},setup(t){let{$slidev:n,$nav:i,$clicksContext:l,$clicks:u,$page:h,$renderContext:g,$frontmatter:_}=d(),v=t;return(t,n)=>(e(),s(`div`,{class:c([`dl-widget`,{"is-controls-first":v.controlsFirst}]),style:r({maxWidth:v.maxWidth})},[o(`div`,f,[a(t.$slots,`default`,{},void 0,!0)]),o(`div`,p,[a(t.$slots,`controls`,{},void 0,!0)]),o(`div`,m,[a(t.$slots,`readout`,{},void 0,!0)])],6))}}),[[`__scopeId`,`data-v-0f64089e`]]),g=[`disabled`],_={key:0,class:`dl-btn__glyph`,"aria-hidden":`true`},v=u(i({__name:`StepButton`,props:{label:{},variant:{default:`primary`},disabled:{type:Boolean,default:!1},glyph:{}},emits:[`click`],setup(r,{emit:i}){let{$slidev:a,$nav:o,$clicksContext:u,$clicks:f,$page:p,$renderContext:m,$frontmatter:h}=d(),v=r,y=i;return(r,i)=>(e(),s(`button`,{type:`button`,class:c([`dl-btn`,`is-${v.variant}`]),disabled:v.disabled,onClick:i[0]||=e=>y(`click`)},[v.glyph?(e(),s(`span`,_,t(v.glyph),1)):l(`v-if`,!0),n(` `+t(v.label),1)],10,g))}}),[[`__scopeId`,`data-v-f82500e8`]]);export{h as n,v as t}; \ No newline at end of file diff --git a/lecture-07/assets/StepButton-CHz-zeSD.css b/lecture-07/assets/StepButton-CHz-zeSD.css new file mode 100644 index 0000000000000000000000000000000000000000..2a8947d85f1b6dab669a2de18663cc63b25d76e0 --- /dev/null +++ b/lecture-07/assets/StepButton-CHz-zeSD.css @@ -0,0 +1 @@ +.dl-widget[data-v-0f64089e]{flex-direction:column;gap:.6rem;width:100%;height:100%;min-height:0;display:flex}.dl-widget.is-controls-first[data-v-0f64089e]{flex-direction:column-reverse;justify-content:flex-end}.dl-widget__stage[data-v-0f64089e]{flex:auto;justify-content:center;align-items:center;min-height:0;display:flex}.dl-widget__controls[data-v-0f64089e]{flex-wrap:wrap;flex:none;align-items:center;gap:.5rem 1.2rem;display:flex}.dl-widget__controls[data-v-0f64089e]:empty,.dl-widget__readout[data-v-0f64089e]:empty{display:none}.dl-widget__readout[data-v-0f64089e]{color:var(--dl-muted);font-variant-numeric:tabular-nums;flex:none;font-size:.82rem}.dl-btn[data-v-f82500e8]{font:inherit;cursor:pointer;border:1px solid #0000;border-radius:6px;align-items:center;gap:.35rem;padding:.32rem .75rem;font-size:.82rem;font-weight:600;transition:background .12s,border-color .12s;display:inline-flex}.dl-btn[data-v-f82500e8]:disabled{opacity:.4;cursor:not-allowed}.dl-btn[data-v-f82500e8]:focus-visible{outline:2px solid var(--dl-accent);outline-offset:2px}.is-primary[data-v-f82500e8]{background:var(--dl-accent);color:#fff}.is-primary[data-v-f82500e8]:not(:disabled):hover{background:var(--dl-accent-strong)}.is-ghost[data-v-f82500e8]{border-color:var(--dl-border);color:var(--dl-body);background:0 0}.is-ghost[data-v-f82500e8]:not(:disabled):hover{border-color:var(--dl-accent);color:var(--dl-accent)}.dl-btn__glyph[data-v-f82500e8]{font-family:Apple Color Emoji,Segoe UI Emoji,Noto Color Emoji,sans-serif;font-size:.9em} diff --git a/lecture-07/assets/default-CbJk4Idc.js b/lecture-07/assets/default-CbJk4Idc.js new file mode 100644 index 0000000000000000000000000000000000000000..08b28c9b6372186060c367a1b0033efb680a6d53 --- /dev/null +++ b/lecture-07/assets/default-CbJk4Idc.js @@ -0,0 +1 @@ +import{B as e,C as t,U as n,b as r}from"./modules/shiki-CJZsCeMT.js";import{t as i}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as a}from"./slidev/context-DB-9afGB.js";import{t as o}from"./DeckFooter-CA42hL2e.js";var s={class:`slidev-layout dl-default`},c=i({__name:`default`,setup(i){let{$slidev:c,$nav:l,$clicksContext:u,$clicks:d,$page:f,$renderContext:p,$frontmatter:m}=a();return(i,a)=>{let c=o;return e(),r(`div`,s,[n(i.$slots,`default`,{},void 0,!0),t(c)])}}},[[`__scopeId`,`data-v-3f3da7ce`]]);export{c as t}; \ No newline at end of file diff --git a/lecture-07/assets/index-BzbW-jWD.css b/lecture-07/assets/index-BzbW-jWD.css new file mode 100644 index 0000000000000000000000000000000000000000..b82af48f52cbebea2f146cffc2cde00db645fa5d --- /dev/null +++ b/lecture-07/assets/index-BzbW-jWD.css @@ -0,0 +1 @@ +*,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb)}:before,:after{--un-content:""}html,:host{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:#0000;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*,:before,:after,::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 #0000;--un-ring-shadow:0 0 #0000;--un-shadow-inset: ;--un-shadow:0 0 #0000;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:#93c5fd80;--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.prose,[prose=""]{color:var(--un-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-lead);margin-top:1.2em;margin-bottom:1.2em;font-size:1.25em;line-height:1.6}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:decimal}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:disc}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--un-prose-counters);font-weight:400}[prose=""] :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--un-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--un-prose-bullets)}[prose=""] :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--un-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-headings);margin-top:1.25em;font-weight:600}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--un-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--un-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em;font-style:italic;font-weight:500}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before,[prose=""] :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after,[prose=""] :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-headings);margin-top:0;margin-bottom:.888889em;font-size:2.25em;font-weight:800;line-height:1.11111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-headings);margin-top:2em;margin-bottom:1em;font-size:1.5em;font-weight:700;line-height:1.33333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-headings);margin-top:1.6em;margin-bottom:.6em;font-size:1.25em;font-weight:600;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-headings);margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em;display:block}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-kbd);box-shadow:0 0 0 1px rgb(var(--un-prose-kbd-shadows) / 10%), 0 3px 0 rgb(var(--un-prose-kbd-shadows) / 10%);padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;border-radius:.3125rem;padding-inline-start:.375em;font-family:inherit;font-size:.875em;font-weight:500}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before,[prose=""] :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after,[prose=""] :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-pre-code);background-color:var(--un-prose-pre-bg);padding-top:.857143em;padding-inline-end:1.14286em;padding-bottom:.857143em;border-radius:.375rem;margin-top:1.71429em;margin-bottom:1.71429em;padding-inline-start:1.14286em;font-size:.875em;font-weight:400;line-height:1.71429;overflow-x:auto}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit;background-color:#0000;border-width:0;border-radius:0;padding:0}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before,[prose=""] :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after,[prose=""] :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){table-layout:auto;width:100%;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.71429}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--un-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-headings);vertical-align:bottom;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em;font-weight:600}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--un-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--un-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--un-prose-captions);margin-top:.857143em;font-size:.875em;line-height:1.42857}.prose,[prose=""]{font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where():not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where():not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.571429em;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where():not(:where([class~=not-prose],[class~=not-prose] *)),[prose=""] :where():not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose,[prose=""]{--un-prose-body:#374151;--un-prose-invert-body:#d1d5db;--un-prose-headings:#111827;--un-prose-invert-headings:white;--un-prose-lead:#4b5563;--un-prose-invert-lead:#9ca3af;--un-prose-links:#111827;--un-prose-invert-links:white;--un-prose-bold:#111827;--un-prose-invert-bold:white;--un-prose-counters:#6b7280;--un-prose-invert-counters:#9ca3af;--un-prose-bullets:#d1d5db;--un-prose-invert-bullets:#4b5563;--un-prose-hr:#e5e7eb;--un-prose-invert-hr:#374151;--un-prose-quotes:#111827;--un-prose-invert-quotes:#f3f4f6;--un-prose-quote-borders:#e5e7eb;--un-prose-invert-quote-borders:#374151;--un-prose-captions:#6b7280;--un-prose-invert-captions:#9ca3af;--un-prose-kbd:#111827;--un-prose-invert-kbd:white;--un-prose-kbd-shadows:#111827;--un-prose-invert-kbd-shadows:white;--un-prose-code:#111827;--un-prose-invert-code:white;--un-prose-pre-code:#e5e7eb;--un-prose-invert-pre-code:#d1d5db;--un-prose-pre-bg:#1f2937;--un-prose-invert-pre-bg:#00000080;--un-prose-th-borders:#d1d5db;--un-prose-invert-th-borders:#4b5563;--un-prose-td-borders:#e5e7eb;--un-prose-invert-td-borders:#374151}.dark .dark\:prose-invert{--un-prose-body:var(--un-prose-invert-body);--un-prose-headings:var(--un-prose-invert-headings);--un-prose-lead:var(--un-prose-invert-lead);--un-prose-links:var(--un-prose-invert-links);--un-prose-bold:var(--un-prose-invert-bold);--un-prose-counters:var(--un-prose-invert-counters);--un-prose-bullets:var(--un-prose-invert-bullets);--un-prose-hr:var(--un-prose-invert-hr);--un-prose-quotes:var(--un-prose-invert-quotes);--un-prose-quote-borders:var(--un-prose-invert-quote-borders);--un-prose-captions:var(--un-prose-invert-captions);--un-prose-kbd:var(--un-prose-invert-kbd);--un-prose-kbd-shadows:var(--un-prose-invert-kbd-shadows);--un-prose-code:var(--un-prose-invert-code);--un-prose-pre-code:var(--un-prose-invert-pre-code);--un-prose-pre-bg:var(--un-prose-invert-pre-bg);--un-prose-th-borders:var(--un-prose-invert-th-borders);--un-prose-td-borders:var(--un-prose-invert-td-borders)}.container{width:100%}.z-context-menu{z-index:60}.z-label{z-index:40}.z-menu{z-index:20}.z-modal{z-index:70}.z-nav{z-index:50}.slidev-glass-effect{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity));--un-shadow:var(--un-shadow-inset) 0 20px 25px -5px var(--un-shadow-color,#0000001a),var(--un-shadow-inset) 0 8px 10px -6px var(--un-shadow-color,#0000001a);box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow);--un-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia);border-width:1px;border-color:#9ca3af33;--un-bg-opacity:.75!important}.border-main,.dark [border~=dark\:main],.dark [dark\:border~=main],[border-main=""],[border~=main]{border-color:#9ca3af33}.border-primary,.hover\:border-primary:hover{border-color:var(--slidev-theme-primary)}.bg-active{background-color:#9ca3af1a}.bg-main{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.dark .bg-main,.dark .slidev-glass-effect{--un-bg-opacity:1;background-color:rgb(18 18 18/var(--un-bg-opacity))}.bg-primary,[bg-primary=""]{background-color:var(--slidev-theme-primary)}.hover\:bg-active:hover,[hover\:bg-active=""]:hover{background-color:#9ca3af1a}.dark .text-main{--un-text-opacity:1;color:rgb(221 221 221/var(--un-text-opacity))}.text-main{--un-text-opacity:1;color:rgb(24 24 24/var(--un-text-opacity))}.text-primary,[text-primary=""]{color:var(--slidev-theme-primary)}@media (width>=640px){.container{max-width:640px}}@media (width>=768px){.container{max-width:768px}}@media (width>=1024px){.container{max-width:1024px}}@media (width>=1280px){.container{max-width:1280px}}@media (width>=1536px){.container{max-width:1536px}}:root{--color-note:#0969da;--color-tip:#1a7f37;--color-warning:#9a6700;--color-severe:#bc4c00;--color-caution:#d1242f;--color-important:#8250df}@media (prefers-color-scheme:dark){:root{--color-note:#2f81f7;--color-tip:#3fb950;--color-warning:#d29922;--color-severe:#db6d28;--color-caution:#f85149;--color-important:#a371f7}}.markdown-alert{color:inherit;border-left:.25em solid #888;margin-bottom:16px;padding:.5rem 1rem}.markdown-alert>:first-child{margin-top:0}.markdown-alert>:last-child{margin-bottom:0}.markdown-alert .markdown-alert-title{align-items:center;font-weight:500;line-height:1;display:flex}.markdown-alert .markdown-alert-title .octicon{vertical-align:text-bottom;fill:currentColor;margin-right:.5rem;display:inline-block;overflow:visible!important}.markdown-alert.markdown-alert-note{border-left-color:var(--color-note)}.markdown-alert.markdown-alert-note .markdown-alert-title{color:var(--color-note)}.markdown-alert.markdown-alert-important{border-left-color:var(--color-important)}.markdown-alert.markdown-alert-important .markdown-alert-title{color:var(--color-important)}.markdown-alert.markdown-alert-warning{border-left-color:var(--color-warning)}.markdown-alert.markdown-alert-warning .markdown-alert-title{color:var(--color-warning)}.markdown-alert.markdown-alert-tip{border-left-color:var(--color-tip)}.markdown-alert.markdown-alert-tip .markdown-alert-title{color:var(--color-tip)}.markdown-alert.markdown-alert-caution{border-left-color:var(--color-caution)}.markdown-alert.markdown-alert-caution .markdown-alert-title{color:var(--color-caution)}:root{--slidev-code-background:#f5f5f5;--slidev-code-foreground:#1b1b1b;--slidev-code-font-family:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--slidev-code-padding:8px;--slidev-code-font-size:12px;--slidev-code-line-height:18px;--slidev-code-radius:4px;--slidev-code-margin:4px 0;--slidev-theme-primary:#3ab9d5;--slidev-transition-duration:.5s;--slidev-slide-container-background:black;--slidev-controls-foreground:white;--slidev-code-tab-divider:#e5e5e5;--slidev-code-tab-text-color:#67676c;--slidev-code-tab-font-size:12px;--slidev-code-tab-active-text-color:#3c3c43}html.dark{--slidev-code-background:#1b1b1b;--slidev-code-foreground:#eee;--slidev-code-tab-divider:#222;--slidev-code-tab-text-color:#98989f;--slidev-code-tab-active-text-color:#dfdfd6}html,body,#app,#page-root{width:100%;height:100vh;height:calc(var(--vh,1vh) * 100);-webkit-print-color-adjust:exact;print-color-adjust:exact;--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity));margin:0;padding:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;overflow:hidden}.dark html,.dark body,.dark #app,.dark #page-root{--un-bg-opacity:1;background-color:rgb(18 18 18/var(--un-bg-opacity))}html{background:0 0}.slidev-icon-btn{aspect-ratio:1;-webkit-user-select:none;user-select:none;cursor:pointer;vertical-align:middle;opacity:.75;border-radius:.25rem;outline:none;justify-content:center;align-items:center;padding:.25rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter,backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);display:inline-flex;position:relative}@media (width>=768px){.slidev-icon-btn{padding:.5rem}}.slidev-icon-btn:hover{--un-bg-opacity:.1;background-color:rgb(156 163 175/var(--un-bg-opacity))}.slidev-icon-btn:focus-visible{opacity:1;--un-outline-color-opacity:1;outline-width:2px;outline-color:rgb(0 0 0/var(--un-outline-color-opacity));outline-offset:2px;outline-style:solid}.dark .slidev-icon-btn:focus-visible{--un-outline-color-opacity:1;outline-color:rgb(255 255 255/var(--un-outline-color-opacity))}.slidev-icon-btn.shallow{opacity:.3}.slidev-icon-btn.active{opacity:1}.slidev-icon-btn.disabled{opacity:.25;pointer-events:none}.slidev-layout a.slidev-icon-btn{border-style:none}.slidev-layout a.slidev-icon-btn:hover{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity));border-style:none}.slidev-icon{vertical-align:sub;line-height:1em;display:inline-block}.slidev-page{width:100%;position:relative;top:0;left:0;right:0}.slidev-note-with-clicks .slidev-note-fade{color:#888c}.dark .slidev-note-with-clicks .slidev-note-fade{color:#a1a1a1cc}.slidev-note-click-mark{-webkit-user-select:none;user-select:none;--un-text-opacity:1;color:rgb(167 139 250/var(--un-text-opacity));background-color:#a78bfa1a;border-width:1px;border-color:#0000;border-radius:.25rem;align-items:center;padding-left:.25rem;padding-right:.25rem;font-family:JetBrains Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.7em;display:inline-flex}.slidev-note-click-mark.slidev-note-click-mark-active{--un-border-opacity:1;border-width:1px;border-color:rgb(167 139 250/var(--un-border-opacity))}.slidev-note-click-mark.slidev-note-click-mark-past{filter:saturate(0);opacity:.5}.slidev-note-click-mark.slidev-note-click-mark-future{opacity:.5}.slidev-note-click-mark:before{content:"";--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M23 28a1 1 0 0 1-.71-.29l-6.13-6.14l-3.33 5a1 1 0 0 1-1 .44a1 1 0 0 1-.81-.7l-6-20A1 1 0 0 1 6.29 5l20 6a1 1 0 0 1 .7.81a1 1 0 0 1-.44 1l-5 3.33l6.14 6.13a1 1 0 0 1 0 1.42l-4 4A1 1 0 0 1 23 28m0-2.41L25.59 23l-7.16-7.15l5.25-3.5L7.49 7.49l4.86 16.19l3.5-5.25Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;opacity:.8;background-color:currentColor;width:1.2em;height:1.2em;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%}.slidev-note-click-mark:after{content:attr(data-clicks);display:inline-block;transform:translateY(.1em)}.slidev-form-button{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity));--un-border-opacity:1;border-bottom-width:2px;border-color:rgb(55 65 81/var(--un-border-opacity));--un-bg-opacity:1;background-color:rgb(107 114 128/var(--un-bg-opacity));border-radius:.25rem;padding:.25rem 1rem}.slidev-form-button:hover{--un-border-opacity:1;border-color:rgb(75 85 99/var(--un-border-opacity));--un-bg-opacity:1;background-color:rgb(156 163 175/var(--un-bg-opacity))}.slidev-form-button.primary{--un-border-opacity:1;border-color:rgb(17 94 89/var(--un-border-opacity));--un-bg-opacity:1;background-color:rgb(13 148 136/var(--un-bg-opacity))}.slidev-form-button.primary:hover{--un-border-opacity:1;border-color:rgb(15 118 110/var(--un-border-opacity));--un-bg-opacity:1;background-color:rgb(20 184 166/var(--un-bg-opacity))}.rough-annotation{transform:scale(calc(1 / var(--slidev-slide-scale)))}#twoslash-container{position:fixed}#twoslash-container .v-popper__wrapper:not(.no-slide-scale>*){zoom:var(--slidev-slide-scale)}#twoslash-container .v-popper__popper:not(.no-slide-scale>*){translate:calc(10px * (1 - var(--slidev-slide-scale))) 0;width:max-content}.slidev-note ul{margin:0}html.dark:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}html.dark .shiki{color:var(--shiki-dark,inherit);--twoslash-popup-bg:var(--shiki-dark-bg,inherit)}html.dark .shiki span{color:var(--shiki-dark)}html:not(.dark) .shiki{color:var(--shiki-light,inherit);--twoslash-popup-bg:var(--shiki-light-bg,inherit)}html:not(.dark) .shiki span{color:var(--shiki-light)}.twoslash-meta-line.twoslash-popover-line{margin-top:-10px}.slidev-code-wrapper{scroll-padding:var(--slidev-code-padding);margin:var(--slidev-code-margin)!important}.slidev-code-wrapper:-webkit-scrollbar{width:0}.slidev-code{background:var(--slidev-code-background);overflow:auto;font-family:var(--slidev-code-font-family)!important;padding:var(--slidev-code-padding)!important;font-size:var(--slidev-code-font-size)!important;line-height:var(--slidev-code-line-height)!important;border-radius:var(--slidev-code-radius)!important}.slidev-code-block-title,.slidev-code-group-tabs{background:var(--slidev-code-background);color:var(--slidev-code-tab-text-color);padding-left:var(--slidev-code-padding);padding-right:var(--slidev-code-padding);font-size:var(--slidev-code-tab-font-size);border-radius:var(--slidev-code-radius) var(--slidev-code-radius) 0 0;box-shadow:inset 0 -1px var(--slidev-code-tab-divider);align-items:center;gap:8px;display:flex}.slidev-code-block-title{padding:var(--slidev-code-padding)}.slidev-code-tab{font-size:var(--slidev-code-tab-font-size);white-space:nowrap;cursor:pointer;padding:var(--slidev-code-padding);color:var(--slidev-code-tab-text-color);border-bottom:2px solid #0000;align-items:center;gap:8px;transition:color .25s;display:flex;position:relative}.slidev-code-tab:hover{color:var(--slidev-code-tab-active-text-color)!important}.slidev-code-group-blocks .slidev-code-wrapper{margin:0!important}.slidev-code-group-blocks .slidev-code{border-radius:0 0 var(--slidev-code-radius) var(--slidev-code-radius)!important}.slidev-code-group-blocks .slidev-code-wrapper.active{display:block}.slidev-code-group-blocks .slidev-code-wrapper{display:none}.slidev-code-block-title+.slidev-code,.slidev-code-group-tabs+.slidev-code{border-top-left-radius:0!important;border-top-right-radius:0!important}.slidev-code .slidev-code-dishonored{opacity:.3;pointer-events:none}.slidev-code-line-numbers .slidev-code code{counter-reset:step;counter-increment:step calc(var(--start,1) - 1)}.slidev-code-line-numbers .slidev-code code .line:before{content:counter(step);counter-increment:step;text-align:right;--un-text-opacity:1;width:1rem;color:rgb(156 163 175/var(--un-text-opacity));margin-right:1.5rem;display:inline-block}.dark .slidev-code-line-numbers .slidev-code code .line:before{--un-text-opacity:1;color:rgb(75 85 99/var(--un-text-opacity))}.slidev-note :not(pre)>code,.slidev-layout :not(pre)>code{background:var(--slidev-code-background);border-radius:var(--slidev-code-radius);padding:.125rem .375rem;font-size:.9em;font-weight:300}.slidev-note :not(pre)>code:after,.slidev-note :not(pre)>code:before{content:""}.slidev-layout :not(pre)>code:before{margin-right:-.08em}.katex,.katex :after,.katex :before{border-color:currentColor}.slidev-katex-wrapper .mord.dishonored{opacity:.3}.slide-left-enter-active,.slide-left-leave-active,.slide-right-enter-active,.slide-right-leave-active,.slide-up-enter-active,.slide-up-leave-active,.slide-down-enter-active,.slide-down-leave-active{transition:all var(--slidev-transition-duration) ease}.slide-left-enter-from,.slide-right-leave-to{translate:100%}.slide-left-leave-to,.slide-right-enter-from{translate:-100%}.slide-up-enter-from,.slide-down-leave-to{translate:0 100%}.slide-up-leave-to,.slide-down-enter-from{translate:0 -100%}.fade-enter-active,.fade-leave-active{transition:opacity var(--slidev-transition-duration) ease}.fade-enter-from,.fade-leave-to{opacity:0}.fade-out-leave-active{transition:opacity calc(var(--slidev-transition-duration) * .6) ease-out}.fade-out-enter-active{transition:opacity calc(var(--slidev-transition-duration) * .8) ease-in;transition-delay:calc(var(--slidev-transition-duration) * .6)}.fade-out-enter-from,.fade-out-leave-to{opacity:0}:root{--twoslash-popup-bg:var(--slidev-code-background);--twoslash-popup-color:var(--slidev-code-foreground);--twoslash-docs-color:inherit;--twoslash-docs-font:inherit;--twoslash-code-font:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--twoslash-underline-color:#8888;--twoslash-border-color:#8888;--twoslash-cursor-color:var(--slidev-theme-primary);--twoslash-matched-color:var(--slidev-theme-primary)}.twoslash-popup-container{font-size:13px}.twoslash-popup-container .twoslash-popup-code{font-size:.85em}.twoslash-floating .twoslash-popup-docs-tags .twoslash-popup-docs-tag-name{color:inherit;opacity:.5}.slidev-vclick-target{transition:all .1s}.slidev-vclick-target.slidev-vclick-anim-none{transition:none}.slidev-vclick-target.slidev-vclick-anim-fade-in{transition:all .3s}.slidev-vclick-hidden{opacity:0!important;pointer-events:none!important;-webkit-user-select:none!important;user-select:none!important}.slidev-vclick-hidden.slidev-vclick-anim-fade{opacity:.5!important}.slidev-vclick-hidden.slidev-vclick-anim-fade-in{opacity:0!important}.slidev-vclick-hidden.slidev-vclick-anim-up{translate:0 20px}.slidev-vclick-hidden.slidev-vclick-anim-down{translate:0 -20px}.slidev-vclick-hidden.slidev-vclick-anim-left{translate:20px}.slidev-vclick-hidden.slidev-vclick-anim-right{translate:-20px}.slidev-vclick-hidden.slidev-vclick-anim-scale{scale:.9}.slidev-vclick-display-none{display:none!important}.slidev-vclick-fade{opacity:.5}:root{--dl-bg:#fff;--dl-surface:#f7f9fa;--dl-border:#e3e8ea;--dl-heading:#111;--dl-body:#595959;--dl-muted:#8a8a8a;--dl-accent:#0097a7;--dl-accent-soft:#e0f4f6;--dl-accent-strong:#00707c;--dl-danger:#d32f2f;--dl-table-header:#eee;--dl-code-bg:#f6f8fa;--dl-fs-title:4.4rem;--dl-fs-section:3rem;--dl-fs-heading:2.1rem;--dl-fs-body:1.5rem;--dl-fs-secondary:1.17rem;--dl-fs-citation:.85rem}html.dark{--dl-bg:#0d1117;--dl-surface:#161b22;--dl-border:#2a323d;--dl-heading:#f2f5f7;--dl-body:#c2cad2;--dl-muted:#8b949e;--dl-accent:#2ec9d8;--dl-accent-soft:#123236;--dl-accent-strong:#7fe3ee;--dl-danger:#ff7b72;--dl-table-header:#1c2530;--dl-code-bg:#161b22}.slidev-layout{--slidev-code-background:var(--dl-code-bg);background:var(--dl-bg);height:100%;color:var(--dl-body);font-size:var(--dl-fs-body);padding:2.6rem 3rem 3.2rem;line-height:1.5;position:relative}.slidev-layout h1,.slidev-layout h2,.slidev-layout h3,.slidev-layout h4{color:var(--dl-heading);letter-spacing:-.01em;font-weight:600}.slidev-layout h1{font-size:var(--dl-fs-heading);margin-bottom:1.2rem}.slidev-layout h2{margin-bottom:.8rem;font-size:1.7rem}.slidev-layout h3{margin-bottom:.6rem;font-size:1.35rem}.slidev-layout p{margin:.5rem 0}.slidev-layout ul{margin:.4rem 0;padding-left:1.35rem;list-style:outside}.slidev-layout ol{margin:.4rem 0;padding-left:1.6rem;list-style:decimal}.slidev-layout ul ul{list-style:circle}.slidev-layout li{margin:.42rem 0}.slidev-layout li::marker{color:var(--dl-accent)}.slidev-layout a{color:var(--dl-accent);border-bottom:1px solid color-mix(in srgb, var(--dl-accent) 40%, transparent);text-decoration:none;transition:border-color .15s}.slidev-layout a:hover{border-bottom-color:var(--dl-accent)}.slidev-layout strong{color:var(--dl-heading);font-weight:600}.dl-wrong{color:var(--dl-danger);font-weight:600}.dl-secondary{font-size:var(--dl-fs-secondary);color:var(--dl-muted)}.slidev-layout table{border-collapse:collapse;font-size:var(--dl-fs-secondary);width:100%}.slidev-layout table th{background:var(--dl-table-header);color:var(--dl-heading);text-align:left;font-weight:600}.slidev-layout table th,.slidev-layout table td{border:1px solid var(--dl-border);padding:.4rem .7rem}.slidev-layout blockquote{border-left:3px solid var(--dl-accent);background:var(--dl-accent-soft);color:var(--dl-body);margin:.8rem 0;padding:.6rem 1rem}.dl-rule{background:var(--dl-accent);border-radius:2px;width:4.5rem;height:3px}.dl-callout{border-left:3px solid var(--dl-accent);background:var(--dl-accent-soft);border-radius:0 6px 6px 0;padding:.7rem 1rem;font-size:1.05rem}.dl-card{border:1px solid var(--dl-border);background:var(--dl-surface);border-radius:8px;overflow:hidden}.dl-card img{object-fit:cover;width:100%;height:6.2rem;display:block}.dl-card.is-contain img{object-fit:contain;background:var(--dl-bg);padding:.5rem}.dl-card__cap{color:var(--dl-body);padding:.35rem .55rem;font-size:.78rem}.dl-tight{font-size:1.06rem;line-height:1.45}.dl-tight li{margin:.34rem 0}.dl-tight .dl-callout{font-size:1rem}.dl-describe{max-width:52rem;font-size:1.15rem;line-height:1.45}.dl-describe p{margin:.4rem 0}.dl-describe li{margin:.22rem 0}.dl-ledger table{font-size:1.02rem}.dl-ledger table th,.dl-ledger table td{padding:.24rem .6rem}.dl-eq-legend table{font-size:.86rem}.dl-eq-legend table th,.dl-eq-legend table td{padding:.16rem .45rem}.dl-eq-legend table td:first-child{white-space:nowrap}.dl-prompt{color:var(--dl-heading);border-left:3px solid var(--dl-accent);padding-left:.8rem;font-size:1.05rem;font-style:italic}.dl-reveal{color:var(--dl-accent);font-size:1.8rem;font-weight:700}.slidev-layout .katex{color:var(--dl-heading)}.slidev-layout .katex-display>.katex{font-size:1em}.dl-math-sm .katex{font-size:.84em}.dl-math-xs .katex{font-size:.72em}.slidev-code-wrapper{border:1px solid var(--dl-border);border-radius:6px;flex-shrink:0;overflow:hidden}.dl-diagram{width:100%;max-width:41rem;height:auto;font-family:inherit}.dl-dg-box{fill:var(--dl-surface);stroke:var(--dl-border);stroke-width:1.5px}.dl-dg-box.is-accent{fill:var(--dl-accent-soft);stroke:var(--dl-accent)}.dl-dg-box.is-bad{fill:none;stroke:var(--dl-danger);stroke-dasharray:4 3}.dl-dg-net{fill:var(--dl-accent-soft);stroke:var(--dl-accent);stroke-width:1.6px}.dl-dg-net.is-critic{fill:var(--dl-surface);stroke:var(--dl-body)}.dl-dg-op{fill:var(--dl-bg);stroke:var(--dl-heading);stroke-width:1.6px}.dl-dg-lab{fill:var(--dl-heading);font-size:17px;font-style:italic;font-weight:600}.dl-dg-lab.is-sm{font-size:13px;font-style:normal}.dl-dg-in{fill:var(--dl-accent-strong);font-size:13px;font-weight:700}.dl-dg-net.is-critic+.dl-dg-in,.dl-dg-in.is-critic{fill:var(--dl-body)}.dl-dg-small{fill:var(--dl-muted);font-size:11px}.dl-dg-small.is-bad{fill:var(--dl-danger)}.dl-dg-small.is-good{fill:var(--dl-accent-strong)}.dl-dg-arrow{fill:none;stroke:var(--dl-body);stroke-width:1.8px}.dl-dg-head{fill:var(--dl-body)}.dl-dg-loss,.dl-dg-grad{fill:none;stroke:var(--dl-muted);stroke-width:1.4px;stroke-dasharray:3 3}.dl-dg-grad.is-bad{stroke:var(--dl-danger)}.dl-dg-grad.is-good{stroke:var(--dl-accent);stroke-dasharray:none}.dl-dg-split{stroke:var(--dl-border);stroke-width:1px}.dl-diagram.is-sm{max-width:26rem}.dl-diagram.is-xs{max-width:18rem}.dl-dg-bar{fill:var(--dl-muted)}.dl-dg-bar.is-q{fill:var(--dl-accent)}.dl-dg-bar.is-bad{fill:var(--dl-danger)}.dl-dg-fill{fill:var(--dl-accent-soft);stroke:var(--dl-accent);stroke-width:1.4px}.dl-dg-fill.is-muted{fill:var(--dl-surface);stroke:var(--dl-muted)}.dl-dg-fill.is-dashed{stroke-dasharray:4 3}.dl-dg-dot{fill:var(--dl-body)}.dl-dg-dot.is-accent{fill:var(--dl-accent)}.dl-dg-dot.is-bad{fill:var(--dl-danger)}.dl-dg-line{fill:none;stroke:var(--dl-accent);stroke-width:2.2px}.dl-dg-line.is-muted{stroke:var(--dl-muted)}.dl-dg-line.is-bad{stroke:var(--dl-danger)}.dl-dg-emoji{font-size:30px}.dl-dg-lab.is-bad-text{fill:var(--dl-danger)}.dl-diagram.is-sm-h{max-height:11.5rem}.slidev-layout pre.shiki{font-size:.76rem;line-height:1.38}.dl-ledger table .katex{font-size:.95em;line-height:1}.dl-ledger--formula table td:nth-child(2){white-space:nowrap;width:55%}.dl-ledger--formula table th{display:none}.dl-ledger--compare table{font-size:.92em}.dl-ledger--compare table td:not(:first-child),.dl-ledger--compare table th:not(:first-child){text-align:center}.dl-tight code{white-space:nowrap}.dl-side-glyph{position:absolute;top:50%;right:4.5rem;transform:translateY(-50%)}.dl-pixrow{flex-wrap:nowrap;justify-content:center;align-items:center;gap:.55rem;display:flex}.dl-pixrow .dl-op{color:var(--dl-body);font-size:1.25rem;font-weight:700}.dl-pixrow .dl-op.is-accent{color:var(--dl-accent)}.dl-samplegrid{grid-template-columns:repeat(3,auto);gap:4px;display:inline-grid}.dl-glyphcard{text-align:center;border:1px solid var(--dl-border);background:var(--dl-surface);border-radius:8px;flex-direction:column;align-items:center;gap:.25rem;padding:.55rem .5rem .65rem;font-size:.95rem;line-height:1.3;display:flex}.dl-glyphcard strong{color:var(--dl-heading)}.dl-glyphcard .dl-glyphcard__cost{color:var(--dl-muted);font-size:.85rem}.dl-ledger td .dl-glyph{vertical-align:middle;margin-right:.3rem}.dl-reveal--side{font-size:1.35rem}@font-face{font-display:block;font-family:KaTeX_AMS;font-style:normal;font-weight:400;src:url(./KaTeX_AMS-Regular-BQhdFMY1.woff2)format("woff2"),url(./KaTeX_AMS-Regular-DMm9YOAa.woff)format("woff"),url(./KaTeX_AMS-Regular-DRggAlZN.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Caligraphic;font-style:normal;font-weight:700;src:url(./KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2)format("woff2"),url(./KaTeX_Caligraphic-Bold-BEiXGLvX.woff)format("woff"),url(./KaTeX_Caligraphic-Bold-ATXxdsX0.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Caligraphic;font-style:normal;font-weight:400;src:url(./KaTeX_Caligraphic-Regular-Di6jR-x-.woff2)format("woff2"),url(./KaTeX_Caligraphic-Regular-CTRA-rTL.woff)format("woff"),url(./KaTeX_Caligraphic-Regular-wX97UBjC.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Fraktur;font-style:normal;font-weight:700;src:url(./KaTeX_Fraktur-Bold-CL6g_b3V.woff2)format("woff2"),url(./KaTeX_Fraktur-Bold-BsDP51OF.woff)format("woff"),url(./KaTeX_Fraktur-Bold-BdnERNNW.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Fraktur;font-style:normal;font-weight:400;src:url(./KaTeX_Fraktur-Regular-CTYiF6lA.woff2)format("woff2"),url(./KaTeX_Fraktur-Regular-Dxdc4cR9.woff)format("woff"),url(./KaTeX_Fraktur-Regular-CB_wures.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:normal;font-weight:700;src:url(./KaTeX_Main-Bold-Cx986IdX.woff2)format("woff2"),url(./KaTeX_Main-Bold-Jm3AIy58.woff)format("woff"),url(./KaTeX_Main-Bold-waoOVXN0.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:italic;font-weight:700;src:url(./KaTeX_Main-BoldItalic-DxDJ3AOS.woff2)format("woff2"),url(./KaTeX_Main-BoldItalic-SpSLRI95.woff)format("woff"),url(./KaTeX_Main-BoldItalic-DzxPMmG6.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:italic;font-weight:400;src:url(./KaTeX_Main-Italic-NWA7e6Wa.woff2)format("woff2"),url(./KaTeX_Main-Italic-BMLOBm91.woff)format("woff"),url(./KaTeX_Main-Italic-3WenGoN9.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:normal;font-weight:400;src:url(./KaTeX_Main-Regular-B22Nviop.woff2)format("woff2"),url(./KaTeX_Main-Regular-Dr94JaBh.woff)format("woff"),url(./KaTeX_Main-Regular-ypZvNtVU.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Math;font-style:italic;font-weight:700;src:url(./KaTeX_Math-BoldItalic-CZnvNsCZ.woff2)format("woff2"),url(./KaTeX_Math-BoldItalic-iY-2wyZ7.woff)format("woff"),url(./KaTeX_Math-BoldItalic-B3XSjfu4.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Math;font-style:italic;font-weight:400;src:url(./KaTeX_Math-Italic-t53AETM-.woff2)format("woff2"),url(./KaTeX_Math-Italic-DA0__PXp.woff)format("woff"),url(./KaTeX_Math-Italic-flOr_0UB.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_SansSerif;font-style:normal;font-weight:700;src:url(./KaTeX_SansSerif-Bold-D1sUS0GD.woff2)format("woff2"),url(./KaTeX_SansSerif-Bold-DbIhKOiC.woff)format("woff"),url(./KaTeX_SansSerif-Bold-CFMepnvq.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_SansSerif;font-style:italic;font-weight:400;src:url(./KaTeX_SansSerif-Italic-C3H0VqGB.woff2)format("woff2"),url(./KaTeX_SansSerif-Italic-DN2j7dab.woff)format("woff"),url(./KaTeX_SansSerif-Italic-YYjJ1zSn.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_SansSerif;font-style:normal;font-weight:400;src:url(./KaTeX_SansSerif-Regular-DDBCnlJ7.woff2)format("woff2"),url(./KaTeX_SansSerif-Regular-CS6fqUqJ.woff)format("woff"),url(./KaTeX_SansSerif-Regular-BNo7hRIc.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Script;font-style:normal;font-weight:400;src:url(./KaTeX_Script-Regular-D3wIWfF6.woff2)format("woff2"),url(./KaTeX_Script-Regular-D5yQViql.woff)format("woff"),url(./KaTeX_Script-Regular-C5JkGWo-.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size1;font-style:normal;font-weight:400;src:url(./KaTeX_Size1-Regular-mCD8mA8B.woff2)format("woff2"),url(./KaTeX_Size1-Regular-C195tn64.woff)format("woff"),url(./KaTeX_Size1-Regular-Dbsnue_I.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size2;font-style:normal;font-weight:400;src:url(./KaTeX_Size2-Regular-Dy4dx90m.woff2)format("woff2"),url(./KaTeX_Size2-Regular-oD1tc_U0.woff)format("woff"),url(./KaTeX_Size2-Regular-B7gKUWhC.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size3;font-style:normal;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAA4oAA4AAAAAHbQAAA3TAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgRQIDgmcDBEICo1oijYBNgIkA14LMgAEIAWJAAeBHAyBHBvbGiMRdnO0IkRRkiYDgr9KsJ1NUAf2kILNxgUmgqIgq1P89vcbIcmsQbRps3vCcXdYOKSWEPEKgZgQkprQQsxIXUgq0DqpGKmIvrgkeVGtEQD9DzAO29fM9jYhxZEsL2FeURH2JN4MIcTdO049NCVdxQ/w9NrSYFEBKTDKpLKfNkCGDc1RwjZLQcm3vqJ2UW9Xfa3tgAHz6ivp6vgC2yD4/6352ndnN0X0TL7seypkjZlMsjmZnf0Mm5Q+JykRWQBKCVCVPbARPXWyQtb5VgLB6Biq7/Uixcj2WGqdI8tGSgkuRG+t910GKP2D7AQH0DB9FMDW/obJZ8giFI3Wg8Cvevz0M+5m0rTh7XDBlvo9Y4vm13EXmfttwI4mBo1EG15fxJhUiCLbiiyCf/ZA6MFAhg3pGIZGdGIVjtPn6UcMk9A/UUr9PhoNsCENw1APAq0gpH73e+M+0ueyHbabc3vkbcdtzcf/fiy+NxQEjf9ud/ELBHAXJ0nk4z+MXH2Ev/kWyV4k7SkvpPc9Qr38F6RPWnM9cN6DJ0AdD1BhtgABtmoRoFCvPsBAumNm6soZG2Gk5GyVTo2sJncSyp0jQTYoR6WDvTwaaEcHsxHfvuWhHA3a6bN7twRKtcGok6NsCi7jYRrM2jExsUFMxMQYuJbMhuWNOumEJy9hi29Dmg5zMp/A5+hhPG19j1vBrq8JTLr8ki5VLPmG/PynJHVul440bxg5xuymHUFPBshC+nA9I1FmwbRBTNHAcik3Oae0cxKoI3MOriM42UrPe51nsaGxJ+WfXubAsP84aabUlQSJ1IiE0iPETLUU4CATgfXSCSpuRFRmCGbO+wSpAnzaeaCYW1VNEysRtuXCEL1kUFUbbtMv3Tilt/1c11jt3Q5bbMa84cpWipp8Elw3MZhOHsOlwwVUQM3lAR35JiFQbaYCRnMF2lxAWoOg2gyoIV4PouX8HytNIfLhqpJtXB4vjiViUI8IJ7bkC4ikkQvKksnOTKICwnqWSZ9YS5f0WCxmpgjbIq7EJcM4aI2nmhLNY2JIUgOjXZFWBHb+x5oh6cwb0Tv1ackHdKi0I9OO2wE9aogIOn540CCCziyhN+IaejtgAONKznHlHyutPrHGwCx9S6B8kfS4Mfi4Eyv7OU730bT1SCBjt834cXsf43zVjPUqqJjgrjeGnBxSG4aYAKFuVbeCfkDIjAqMb6yLNIbCuvXhMH2/+k2vkNpkORhR59N1CkzoOENvneIosjYmuTxlhUzaGEJQ/iWqx4dmwpmKjrwTiTGTCVozNAYqk/zXOndWxuWSmJkQpJw3pK5KX6QrLt5LATMqpmPAQhkhK6PUjzHUn7E0gHE0kPE0iKkolgkUx9SZmVAdDgpffdyJKg3k7VmzYGCwVXGz/tXmkOIp+vcWs+EMuhhvN0h9uhfzWJziBQmCREGSIFmQIkgVpAnSBRmC//6hkLZwaVhwxlrJSOdqlFtOYxlau9F2QN5Y98xmIAsiM1HVp2VFX+DHHGg6Ecjh3vmqtidX3qHI2qycTk/iwxSt5UzTmEP92ZBnEWTk4Mx8Mpl78ZDokxg/KWb+Q0QkvdKVmq3TMW+RXEgrsziSAfNXFMhDc60N5N9jQzjfO0kBKpUZl0ZmwJ41j/B9Hz6wmRaJB84niNmQrzp9eSlQCDDzazGDdVi3P36VZQ+Jy4f9UBNp+3zTjqI4abaFAm+GShVaXlsGdF3FYzZcDI6cori4kMxUECl9IjJZpzkvitAoxKue+90pDMvcKRxLl53TmOKCmV/xRolNKSqqUxc6LStOETmFOiLZZptlZepcKiAzteG8PEdpnQpbOMNcMsR4RR2Bs0cKFEvSmIjAFcnarqwUL4lDhHmnVkwu1IwshbiCcgvOheZuYyOteufZZwlcTlLgnZ3o/WcYdzZHW/WGaqaVfmTZ1aWCceJjkbZqsfbkOtcFlUZM/jy+hXHDbaUobWqqXaeWobbLO99yG5N3U4wxco0rQGGcOLASFMXeJoham8M+/x6O2WywK2l4HGbq1CoUyC/IZikQhdq3SiuNrvAEj0AVu9x2x3lp/xWzahaxidezFVtdcb5uEnzyl0ZmYiuKI0exvCd4Xc9CV1KB0db00z92wDPde0kukbvZIWN6jUWFTmPIC/Y4UPCm8UfDTFZpZNon1qLFTkBhxzB+FjQRA2Q/YRJT8pQigslMaUpFyAG8TMlXigiqmAZX4xgijKjRlGpLE0GdplRfCaJo0JQaSxNBk6ZmMzcya0FmrcisDdn0Q3HI2sWSppYigmlM1XT/kLQZSNpMJG0WkjYbSZuDpM1F0uYhFc1HxU4m1QJjDK6iL0S5uSj5rgXc3RejEigtcRBtqYPQsiTskmO5vosV+q4VGIKbOkDg0jtRrq+Em1YloaTFar3EGr1EUC8R0kus1Uus00usL97ABr2BjXoDm/QGNhuWtMVBKOwg/i78lT7hBsAvDmwHc/ao3vmUbBmhjeYySZNWvGkfZAgISDSaDo1SVpzGDsAEkF8B+gEapViUoZgUWXcRIGFZNm6gWbAKk0bp0k1MHG9fLYtV4iS2SmLEQFARzRcnf9PUS0LVn05/J9MiRRBU3v2IrvW974v4N00L7ZMk0wXP1409CHo/an8zTRHD3eSJ6m8D4YMkZNl3M79sqeuAsr/m3f+8/yl7A50aiAEJgeBeMWzu7ui9UfUBCe2TIqZIoOd/3/udRBOQidQZUERzb2/VwZN1H/Sju82ew2H2Wfr6qvfVf3hqwDvAIpkQVFy4B9Pe9e4/XvPeceu7h3dvO56iJPf0+A6cqA2ip18ER+iFgggiuOkvj24bby0N9j2UHIkgqIt+sVgfodC4YghLSMjSZbH0VR/6dMDrYJeKHilKTemt6v6kvzvn3/RrdWtr0GoN/xL+Sex/cPYLUpepx9cz/D46UPU5KXgAQa+NDps1v6J3xP1i2HtaDB0M9aX2deA7SYff//+gUCovMmIK/qfsFcOk+4Y5ZN97XlG6zebqtMbKgeRFi51vnxTQYBUik2rS/Cn6PC8ADR8FGxsRPB82dzfND90gIcshOcYUkfjherBz53odpm6TP8txlwOZ71xmfHHOvq053qFF/MRlS3jP0ELudrf2OeN8DHvp6ZceLe8qKYvWz/7yp0u4dKPfli3CYq0O13Ih71mylJ80tOi10On8wi+F4+LWgDPeJ30msSQt9/vkmHq9/Lvo2b461mP801v3W4xTcs6CbvF9UDdrSt+A8OUbpSh55qAUFXWznBBfdeJ8a4d7ugT5tvxUza3h9m4H7ptTqiG4z0g5dc0X29OcGlhpGFMpQo9ytTS+NViZpNdvU4kWx+LKxNY10kQ1yqGXrhe4/1nvP7E+nd5A92TtaRplbHSqoIdOqtRWti+fkB5/n1+/VvCmz12pG1kpQWsfi1ftlBobm0bpngs16CHkbIwdLnParxtTV3QYRlfJ0KFskH7pdN/YDn+yRuSd7sNH3aO0DYPggk6uWuXrfOc+fa3VTxFVvKaNxHsiHmsXyCLIE5yuOeN3/Jdf8HBL/5M6shjyhxHx9BjB1O0+4NLOnjLLSxwO7ukN4jMbOIcD879KLSi6Pk61Oqm2377n8079PXEEQ7cy7OKEC9nbpet118fxweTafpt69x/Bt8UqGzNQt7aelpc44dn5cqhwf71+qKp/Zf/+a0zcizOUWpl/iBcSXip0pplkatCchoH5c5aUM8I7/dWxAej8WicPL1URFZ9BDJelUwEwTkGqUhgSlydVes95YdXvhh9Gfz/aeFWvgVb4tuLbcv4+wLdutVZv/cUonwBD/6eDlE0aSiKK/uoH3+J1wDE/jMVqY2ysGufN84oIXB0sPzy8ollX/LegY74DgJXJR57sn+VGza0x3DnuIgABFM15LmajjjsNlYj+JEZGbuRYcAMOWxFkPN2w6Wd46xo4gVWQR/X4lyI/R6K/YK0110GzudPRW7Y+UOBGTfNNzHeYT0fiH0taunBpq9HEW8OKSaBGj21L0MqenEmNRWBAWDWAk4CpNoEZJ2tTaPFgbQYj8HxtFilErs3BTRwT8uO1NXQaWfIotchmPkAF5mMBAliEmZiOGVgCG9LgRzpscMAOOwowlT3JhusdazXGSC/hxR3UlmWVwWHpOIKheqONvjyhSiTHIkVUco5bnji8m//zL7PKaT1Vl5I6UE609f+gkr6MZKVyKc7zJRmCahLsdlyA5fdQkRSan9LgnnLEyGSkaKJCJog0wAgvepWBt80+1yKln1bMVtCljfNWDueKLsWwaEbBSfSPTEmVRsUcYYMnEjcjeyCZzBXK9E9BYBXLKjOSpUDR+nEV3TFSUdQaz+ot98QxgXwx0GQ+EEUAKB2qZPkQQ0GqFD8UPFMqyaCHM24BZmSGic9EYMagKizOw9Hz50DMrDLrqqLkTAhplMictiCAx5S3BIUQdeJeLnBy2CNtMfz6cV4u8XKoFZQesbf9YZiIERiHjaNodDW6LgcirX/mPnJIkBGDUpTBhSa0EIr38D5hCIszhCM8URGBqImoWjpvpt1ebu/v3Gl3qJfMnNM+9V+kiRFyROTPHQWOcs1dNW94/ukKMPZBvDi55i5CttdeJz84DLngLqjcdwEZ87bFFR8CIG35OAkDVN6VRDZ7aq67NteYqZ2lpT8oYB2CytoBd6VuAx4WgiAsnuj3WohG+LugzXiQRDeM3XYXlULv4dp5VFYC)format("woff2"),url(./KaTeX_Size3-Regular-CTq5MqoE.woff)format("woff"),url(./KaTeX_Size3-Regular-DgpXs0kz.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size4;font-style:normal;font-weight:400;src:url(./KaTeX_Size4-Regular-Dl5lxZxV.woff2)format("woff2"),url(./KaTeX_Size4-Regular-BF-4gkZK.woff)format("woff"),url(./KaTeX_Size4-Regular-DWFBv043.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Typewriter;font-style:normal;font-weight:400;src:url(./KaTeX_Typewriter-Regular-CO6r4hn1.woff2)format("woff2"),url(./KaTeX_Typewriter-Regular-C0xS9mPB.woff)format("woff"),url(./KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf)format("truetype")}.katex{text-indent:0;text-rendering:auto;font:1.21em/1.2 KaTeX_Main,Times New Roman,serif;position:relative}.katex *{border-color:currentColor;-ms-high-contrast-adjust:none!important}.katex .katex-version:after{content:"0.18.4"}.katex .katex-mathml{clip-path:inset(50%);border:0;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.katex .katex-html>.katex-newline{display:block}.katex .katex-base{white-space:nowrap;width:min-content;position:relative}.katex .katex-base,.katex .katex-strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-style:italic;font-weight:700}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathboldfrak,.katex .textboldfrak{font-family:KaTeX_Fraktur;font-weight:700}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .mathsfit,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{border-collapse:collapse;table-layout:fixed;display:inline-table}.katex .vlist-r{display:table-row}.katex .vlist{vertical-align:bottom;display:table-cell;position:relative}.katex .vlist>span{height:0;display:block;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{width:0;overflow:hidden}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{vertical-align:bottom;width:2px;min-width:2px;font-size:1px;display:table-cell}.katex .katex-vbox{flex-direction:column;align-items:baseline;display:inline-flex}.katex .katex-thinbox{flex-direction:row;width:0;max-width:0;display:inline-flex}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{border-bottom-style:solid;width:100%;display:inline-block}.katex .katex-hdashline,.katex .katex-hline,.katex .katex-overline .overline-line,.katex .katex-rule,.katex .katex-underline .underline-line,.katex .mfrac .frac-line{min-height:1px}.katex .mspace{display:inline-block}.katex .katex-smash{line-height:0;display:inline}.katex .clap,.katex .llap,.katex .rlap{width:0;position:relative}.katex .clap>.katex-inner,.katex .llap>.katex-inner,.katex .rlap>.katex-inner{position:absolute}.katex .clap>.katex-fix,.katex .llap>.katex-fix,.katex .rlap>.katex-fix{display:inline-block}.katex .llap>.katex-inner{right:0}.katex .clap>.katex-inner,.katex .rlap>.katex-inner{left:0}.katex .clap>.katex-inner>span{margin-left:-50%;margin-right:50%}.katex .katex-rule{border:0 solid;display:inline-block;position:relative}.katex .katex-hline,.katex .katex-overline .overline-line,.katex .katex-underline .underline-line{border-bottom-style:solid;width:100%;display:inline-block}.katex .katex-hdashline{border-bottom-style:dashed;width:100%;display:inline-block}.katex .sqrt>.katex-root{margin-left:.277778em;margin-right:-.555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .katex-sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .katex-sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .katex-sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .katex-sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .katex-sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .katex-sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .katex-sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .katex-sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .katex-sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .katex-sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .katex-sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .katex-sizing.reset-size2.size1{font-size:.833333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .katex-sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .katex-sizing.reset-size2.size3{font-size:1.16667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .katex-sizing.reset-size2.size4{font-size:1.33333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .katex-sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .katex-sizing.reset-size2.size6{font-size:1.66667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .katex-sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .katex-sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .katex-sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .katex-sizing.reset-size2.size10{font-size:3.45667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .katex-sizing.reset-size2.size11{font-size:4.14667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .katex-sizing.reset-size3.size1{font-size:.714286em}.katex .fontsize-ensurer.reset-size3.size2,.katex .katex-sizing.reset-size3.size2{font-size:.857143em}.katex .fontsize-ensurer.reset-size3.size3,.katex .katex-sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .katex-sizing.reset-size3.size4{font-size:1.14286em}.katex .fontsize-ensurer.reset-size3.size5,.katex .katex-sizing.reset-size3.size5{font-size:1.28571em}.katex .fontsize-ensurer.reset-size3.size6,.katex .katex-sizing.reset-size3.size6{font-size:1.42857em}.katex .fontsize-ensurer.reset-size3.size7,.katex .katex-sizing.reset-size3.size7{font-size:1.71429em}.katex .fontsize-ensurer.reset-size3.size8,.katex .katex-sizing.reset-size3.size8{font-size:2.05714em}.katex .fontsize-ensurer.reset-size3.size9,.katex .katex-sizing.reset-size3.size9{font-size:2.46857em}.katex .fontsize-ensurer.reset-size3.size10,.katex .katex-sizing.reset-size3.size10{font-size:2.96286em}.katex .fontsize-ensurer.reset-size3.size11,.katex .katex-sizing.reset-size3.size11{font-size:3.55429em}.katex .fontsize-ensurer.reset-size4.size1,.katex .katex-sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .katex-sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .katex-sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .katex-sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .katex-sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .katex-sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .katex-sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .katex-sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .katex-sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .katex-sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .katex-sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .katex-sizing.reset-size5.size1{font-size:.555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .katex-sizing.reset-size5.size2{font-size:.666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .katex-sizing.reset-size5.size3{font-size:.777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .katex-sizing.reset-size5.size4{font-size:.888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .katex-sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .katex-sizing.reset-size5.size6{font-size:1.11111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .katex-sizing.reset-size5.size7{font-size:1.33333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .katex-sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .katex-sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .katex-sizing.reset-size5.size10{font-size:2.30444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .katex-sizing.reset-size5.size11{font-size:2.76444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .katex-sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .katex-sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .katex-sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .katex-sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .katex-sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .katex-sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .katex-sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .katex-sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .katex-sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .katex-sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .katex-sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .katex-sizing.reset-size7.size1{font-size:.416667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .katex-sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .katex-sizing.reset-size7.size3{font-size:.583333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .katex-sizing.reset-size7.size4{font-size:.666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .katex-sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .katex-sizing.reset-size7.size6{font-size:.833333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .katex-sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .katex-sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .katex-sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .katex-sizing.reset-size7.size10{font-size:1.72833em}.katex .fontsize-ensurer.reset-size7.size11,.katex .katex-sizing.reset-size7.size11{font-size:2.07333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .katex-sizing.reset-size8.size1{font-size:.347222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .katex-sizing.reset-size8.size2{font-size:.416667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .katex-sizing.reset-size8.size3{font-size:.486111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .katex-sizing.reset-size8.size4{font-size:.555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .katex-sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .katex-sizing.reset-size8.size6{font-size:.694444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .katex-sizing.reset-size8.size7{font-size:.833333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .katex-sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .katex-sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .katex-sizing.reset-size8.size10{font-size:1.44028em}.katex .fontsize-ensurer.reset-size8.size11,.katex .katex-sizing.reset-size8.size11{font-size:1.72778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .katex-sizing.reset-size9.size1{font-size:.289352em}.katex .fontsize-ensurer.reset-size9.size2,.katex .katex-sizing.reset-size9.size2{font-size:.347222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .katex-sizing.reset-size9.size3{font-size:.405093em}.katex .fontsize-ensurer.reset-size9.size4,.katex .katex-sizing.reset-size9.size4{font-size:.462963em}.katex .fontsize-ensurer.reset-size9.size5,.katex .katex-sizing.reset-size9.size5{font-size:.520833em}.katex .fontsize-ensurer.reset-size9.size6,.katex .katex-sizing.reset-size9.size6{font-size:.578704em}.katex .fontsize-ensurer.reset-size9.size7,.katex .katex-sizing.reset-size9.size7{font-size:.694444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .katex-sizing.reset-size9.size8{font-size:.833333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .katex-sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .katex-sizing.reset-size9.size10{font-size:1.20023em}.katex .fontsize-ensurer.reset-size9.size11,.katex .katex-sizing.reset-size9.size11{font-size:1.43981em}.katex .fontsize-ensurer.reset-size10.size1,.katex .katex-sizing.reset-size10.size1{font-size:.24108em}.katex .fontsize-ensurer.reset-size10.size2,.katex .katex-sizing.reset-size10.size2{font-size:.289296em}.katex .fontsize-ensurer.reset-size10.size3,.katex .katex-sizing.reset-size10.size3{font-size:.337512em}.katex .fontsize-ensurer.reset-size10.size4,.katex .katex-sizing.reset-size10.size4{font-size:.385728em}.katex .fontsize-ensurer.reset-size10.size5,.katex .katex-sizing.reset-size10.size5{font-size:.433944em}.katex .fontsize-ensurer.reset-size10.size6,.katex .katex-sizing.reset-size10.size6{font-size:.48216em}.katex .fontsize-ensurer.reset-size10.size7,.katex .katex-sizing.reset-size10.size7{font-size:.578592em}.katex .fontsize-ensurer.reset-size10.size8,.katex .katex-sizing.reset-size10.size8{font-size:.694311em}.katex .fontsize-ensurer.reset-size10.size9,.katex .katex-sizing.reset-size10.size9{font-size:.833173em}.katex .fontsize-ensurer.reset-size10.size10,.katex .katex-sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .katex-sizing.reset-size10.size11{font-size:1.19961em}.katex .fontsize-ensurer.reset-size11.size1,.katex .katex-sizing.reset-size11.size1{font-size:.200965em}.katex .fontsize-ensurer.reset-size11.size2,.katex .katex-sizing.reset-size11.size2{font-size:.241158em}.katex .fontsize-ensurer.reset-size11.size3,.katex .katex-sizing.reset-size11.size3{font-size:.281351em}.katex .fontsize-ensurer.reset-size11.size4,.katex .katex-sizing.reset-size11.size4{font-size:.321543em}.katex .fontsize-ensurer.reset-size11.size5,.katex .katex-sizing.reset-size11.size5{font-size:.361736em}.katex .fontsize-ensurer.reset-size11.size6,.katex .katex-sizing.reset-size11.size6{font-size:.401929em}.katex .fontsize-ensurer.reset-size11.size7,.katex .katex-sizing.reset-size11.size7{font-size:.482315em}.katex .fontsize-ensurer.reset-size11.size8,.katex .katex-sizing.reset-size11.size8{font-size:.578778em}.katex .fontsize-ensurer.reset-size11.size9,.katex .katex-sizing.reset-size11.size9{font-size:.694534em}.katex .fontsize-ensurer.reset-size11.size10,.katex .katex-sizing.reset-size11.size10{font-size:.833601em}.katex .fontsize-ensurer.reset-size11.size11,.katex .katex-sizing.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{width:.12em;display:inline-block}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .katex-accent>.vlist-t,.katex .op-limits>.vlist-t{text-align:center}.katex .katex-accent .accent-body{position:relative}.katex .katex-accent .accent-body:not(.accent-full){width:0}.katex .katex-overlay{display:block}.katex .mtable .vertical-separator{min-width:1px;display:inline-block}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{fill:currentColor;stroke:currentColor;height:inherit;width:100%;display:block;position:absolute}.katex svg path{stroke:none}.katex svg{fill-rule:nonzero;fill-opacity:1;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1}.katex img{border-style:none;min-width:0;max-width:none;min-height:0;max-height:none}.katex .katex-stretchy{width:100%;display:block;position:relative;overflow:hidden}.katex .katex-stretchy:after,.katex .katex-stretchy:before{content:""}.katex .hide-tail{width:100%;position:relative;overflow:hidden}.katex .halfarrow-left{width:50.2%;position:absolute;left:0;overflow:hidden}.katex .halfarrow-right{width:50.2%;position:absolute;right:0;overflow:hidden}.katex .brace-left{width:25.1%;position:absolute;left:0;overflow:hidden}.katex .brace-center{width:50%;position:absolute;left:25%;overflow:hidden}.katex .brace-right{width:25.1%;position:absolute;right:0;overflow:hidden}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{box-sizing:border-box;border:.04em solid}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .katex-sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{box-sizing:border-box;border-top:.049em solid;border-right:.049em solid;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .eqn-num:before{content:"(" counter(katexEqnNo) ")";counter-increment:katexEqnNo}.katex .mml-eqn-num:before{content:"(" counter(mmlEqnNo) ")";counter-increment:mmlEqnNo}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{text-align:left;display:inline-block;position:absolute;right:calc(50% + .3em)}.katex .cd-label-right{text-align:right;display:inline-block;position:absolute;left:calc(50% + .3em)}.katex-display{text-align:center;margin:1em 0;display:block}.katex-display>.katex{text-align:center;white-space:nowrap;display:block}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.katex-tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.katex-tag{left:0;right:auto}.katex-display.fleqn>.katex{text-align:left;padding-left:2em}body{counter-reset:katexEqnNo mmlEqnNo}.i-carbon-camera{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M29 26H3a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h6.46l1.71-2.55A1 1 0 0 1 12 4h8a1 1 0 0 1 .83.45L22.54 7H29a1 1 0 0 1 1 1v17a1 1 0 0 1-1 1M4 24h24V9h-6a1 1 0 0 1-.83-.45L19.46 6h-6.92l-1.71 2.55A1 1 0 0 1 10 9H4Z'/%3E%3Cpath fill='currentColor' d='M16 22a6 6 0 1 1 6-6a6 6 0 0 1-6 6m0-10a4 4 0 1 0 4 4a4 4 0 0 0-4-4'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon-magic-wand{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M29.414 24L12 6.586a2.05 2.05 0 0 0-2.828 0L6.586 9.172a2 2 0 0 0 0 2.828l17.413 17.414a2 2 0 0 0 2.828 0l2.587-2.586a2 2 0 0 0 0-2.828M8 10.586L10.586 8l5 5l-2.587 2.587zM25.413 28l-11-10.999L17 14.414l11 11ZM2 16l2-2l2 2l-2 2zM14 4l2-2l2 2l-2 2zM2 4l2-2l2 2l-2 2z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon-magic-wand-filled{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M29.414 24L12 6.586a2.05 2.05 0 0 0-2.828 0L6.586 9.172a2 2 0 0 0 0 2.828l17.413 17.414a2 2 0 0 0 2.828 0l2.587-2.586a2 2 0 0 0 0-2.828M8 10.586L10.586 8l5 5l-2.587 2.587zM2 16l2-2l2 2l-2 2zM14 4l2-2l2 2l-2 2zM2 4l2-2l2 2l-2 2z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon-moon{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M13.503 5.414a15.076 15.076 0 0 0 11.593 18.194a11.1 11.1 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1 1 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.07 13.07 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon-sun{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6M5.394 6.813L6.81 5.399l3.505 3.506L8.9 10.319zM2 15.005h5v2H2zm3.394 10.193L8.9 21.692l1.414 1.414l-3.505 3.506zM15 25.005h2v5h-2zm6.687-1.9l1.414-1.414l3.506 3.506l-1.414 1.414zm3.313-8.1h5v2h-5zm-3.313-6.101l3.506-3.506l1.414 1.414l-3.506 3.506zM15 2.005h2v5h-2z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:apps{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M8 4v4H4V4Zm2-2H2v8h8Zm8 2v4h-4V4Zm2-2h-8v8h8Zm8 2v4h-4V4Zm2-2h-8v8h8ZM8 14v4H4v-4Zm2-2H2v8h8Zm8 2v4h-4v-4Zm2-2h-8v8h8Zm8 2v4h-4v-4Zm2-2h-8v8h8ZM8 24v4H4v-4Zm2-2H2v8h8Zm8 2v4h-4v-4Zm2-2h-8v8h8Zm8 2v4h-4v-4Zm2-2h-8v8h8Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:arrow-down{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M24.59 16.59L17 24.17V4h-2v20.17l-7.59-7.58L6 18l10 10l10-10z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:arrow-left{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m14 26l1.41-1.41L7.83 17H28v-2H7.83l7.58-7.59L14 6L4 16z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:arrow-right{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m18 6l-1.43 1.393L24.15 15H4v2h20.15l-7.58 7.573L18 26l10-10z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:arrow-up{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 4L6 14l1.41 1.41L15 7.83V28h2V7.83l7.59 7.58L26 14z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:arrow-up-right{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M10 6v2h12.59L6 24.59L7.41 26L24 9.41V22h2V6z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:catalog{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M26 2H8a2 2 0 0 0-2 2v4H4v2h2v5H4v2h2v5H4v2h2v4a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2m0 26H8v-4h2v-2H8v-5h2v-2H8v-5h2V8H8V4h18Z'/%3E%3Cpath fill='currentColor' d='M14 8h8v2h-8zm0 7h8v2h-8zm0 7h8v2h-8z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:checkbox{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M26 4H6a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2M6 26V6h20v20Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:checkmark{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m13 24l-9-9l1.414-1.414L13 21.171L26.586 7.586L28 9z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:close{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M17.414 16L24 9.414L22.586 8L16 14.586L9.414 8L8 9.414L14.586 16L8 22.586L9.414 24L16 17.414L22.586 24L24 22.586z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:close-outline{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 2C8.2 2 2 8.2 2 16s6.2 14 14 14s14-6.2 14-14S23.8 2 16 2m0 26C9.4 28 4 22.6 4 16S9.4 4 16 4s12 5.4 12 12s-5.4 12-12 12'/%3E%3Cpath fill='currentColor' d='M21.4 23L16 17.6L10.6 23L9 21.4l5.4-5.4L9 10.6L10.6 9l5.4 5.4L21.4 9l1.6 1.6l-5.4 5.4l5.4 5.4z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:cursor-1,[i-carbon\:cursor-1=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M23 28a1 1 0 0 1-.71-.29l-6.13-6.14l-3.33 5a1 1 0 0 1-1 .44a1 1 0 0 1-.81-.7l-6-20A1 1 0 0 1 6.29 5l20 6a1 1 0 0 1 .7.81a1 1 0 0 1-.44 1l-5 3.33l6.14 6.13a1 1 0 0 1 0 1.42l-4 4A1 1 0 0 1 23 28m0-2.41L25.59 23l-7.16-7.15l5.25-3.5L7.49 7.49l4.86 16.19l3.5-5.25Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:document-pdf{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M30 18v-2h-6v10h2v-4h3v-2h-3v-2zm-11 8h-4V16h4a3.003 3.003 0 0 1 3 3v4a3.003 3.003 0 0 1-3 3m-2-2h2a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1h-2Zm-6-8H6v10h2v-3h3a2.003 2.003 0 0 0 2-2v-3a2 2 0 0 0-2-2m-3 5v-3h3l.001 3Z'/%3E%3Cpath fill='currentColor' d='M22 14v-4a.91.91 0 0 0-.3-.7l-7-7A.9.9 0 0 0 14 2H4a2.006 2.006 0 0 0-2 2v24a2 2 0 0 0 2 2h16v-2H4V4h8v6a2.006 2.006 0 0 0 2 2h6v2Zm-8-4V4.4l5.6 5.6Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:download{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M26 24v4H6v-4H4v4a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2v-4Zm0-10l-1.41-1.41L17 20.17V2h-2v18.17l-7.59-7.58L6 14l10 10z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:drop-photo{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M19 26a4 4 0 1 1 4-4a4.005 4.005 0 0 1-4 4m0-6a2 2 0 1 0 2 2a2 2 0 0 0-2-2'/%3E%3Cpath fill='currentColor' d='M27 29H11a2 2 0 0 1-2-2v-9a2 2 0 0 1 2-2h3.28l.543-1.632A2 2 0 0 1 16.721 13h4.558a2 2 0 0 1 1.898 1.368L23.72 16H27a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2m-16-2h16v-9h-4.72l-1-3h-4.56l-1 3H11Zm16-16h2v2h-2zm0-4h2v2h-2zm0-4h2v2h-2zm-4 0h2v2h-2zm-4 0h2v2h-2zm-4 0h2v2h-2zm-4 0h2v2h-2zM7 3h2v2H7zM3 3h2v2H3zm0 4h2v2H3zm0 4h2v2H3zm0 4h2v2H3zm0 4h2v2H3zm0 4h2v2H3zm0 4h2v2H3z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:edit{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M2 26h28v2H2zM25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4zm-5-5L24 7.6l-3 3L17.4 7zM6 22v-3.6l10-10l3.6 3.6l-10 10z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:erase{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M7 27h23v2H7zm20.38-16.49l-7.93-7.92a2 2 0 0 0-2.83 0l-14 14a2 2 0 0 0 0 2.83L7.13 24h9.59l10.66-10.66a2 2 0 0 0 0-2.83M15.89 22H8l-4-4l6.31-6.31l7.93 7.92Zm3.76-3.76l-7.92-7.93L18 4l8 7.93Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:error{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M2 16A14 14 0 1 0 16 2A14 14 0 0 0 2 16m23.15 7.75L8.25 6.85a12 12 0 0 1 16.9 16.9M8.24 25.16a12 12 0 0 1-1.4-16.89l16.89 16.89a12 12 0 0 1-15.49 0'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:help{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2m0 26a12 12 0 1 1 12-12a12 12 0 0 1-12 12'/%3E%3Ccircle cx='16' cy='23.5' r='1.5' fill='currentColor'/%3E%3Cpath fill='currentColor' d='M17 8h-1.5a4.49 4.49 0 0 0-4.5 4.5v.5h2v-.5a2.5 2.5 0 0 1 2.5-2.5H17a2.5 2.5 0 0 1 0 5h-2v4.5h2V17a4.5 4.5 0 0 0 0-9'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:information{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M17 22v-8h-4v2h2v6h-3v2h8v-2zM16 8a1.5 1.5 0 1 0 1.5 1.5A1.5 1.5 0 0 0 16 8'/%3E%3Cpath fill='currentColor' d='M16 30a14 14 0 1 1 14-14a14 14 0 0 1-14 14m0-26a12 12 0 1 0 12 12A12 12 0 0 0 16 4'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:list-boxes{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 8h14v2H16zm0 14h14v2H16zm-6-8H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2M4 6v6h6.001L10 6Zm6 22H4a2 2 0 0 1-2-2v-6a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2m-6-8v6h6.001L10 20Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:maximize{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M20 2v2h6.586L18 12.582L19.414 14L28 5.414V12h2V2zm-6 17.416L12.592 18L4 26.586V20H2v10h10v-2H5.414z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:minimize{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M4 18v2h6.586L2 28.582L3.414 30L12 21.414V28h2V18zM30 3.416L28.592 2L20 10.586V4h-2v10h10v-2h-6.586z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:pause{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 8v16H8V8zm0-2H8a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2m12 2v16h-4V8zm0-2h-4a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:pen{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M27.307 6.107L30 3.414L28.586 2l-2.693 2.693L24.8 3.6a1.933 1.933 0 0 0-2.8 0l-18 18V28h6.4l18-18a1.933 1.933 0 0 0 0-2.8ZM9.6 26H6v-3.6L23.4 5L27 8.6ZM9 11.586L16.586 4L18 5.414L10.414 13z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:pin{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M28.59 13.31L30 11.9L20 2l-1.31 1.42l1.18 1.18l-11.49 9.72l-1.72-1.71L5.25 14l5.66 5.68L2 28.58L3.41 30l8.91-8.91L18 26.75l1.39-1.42l-1.71-1.71l9.72-11.49ZM16.26 22.2L9.8 15.74L21.29 6L26 10.71Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:pin-filled{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M28.586 13.314L30 11.9L20 2l-1.314 1.415l1.186 1.186L8.38 14.322l-1.716-1.715L5.25 14l5.657 5.677L2 28.583L3.41 30l8.911-8.909L18 26.748l1.393-1.414l-1.716-1.716l9.724-11.49Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:play{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M7 28a1 1 0 0 1-1-1V5a1 1 0 0 1 1.482-.876l20 11a1 1 0 0 1 0 1.752l-20 11A1 1 0 0 1 7 28M8 6.69v18.62L24.925 16Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:presentation-file{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M15 10h2v8h-2zm5 4h2v4h-2zm-10-2h2v6h-2z'/%3E%3Cpath fill='currentColor' d='M25 4h-8V2h-2v2H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8v6h-4v2h10v-2h-4v-6h8a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2m0 16H7V6h18Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:radio-button{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2m0 26a12 12 0 1 1 12-12a12 12 0 0 1-12 12'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:redo{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 10h12.185l-3.587-3.586L22 5l6 6l-6 6l-1.402-1.415L24.182 12H12a6 6 0 0 0 0 12h8v2h-8a8 8 0 0 1 0-16'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:renew{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 10H6.78A11 11 0 0 1 27 16h2A13 13 0 0 0 6 7.68V4H4v8h8Zm8 12h5.22A11 11 0 0 1 5 16H3a13 13 0 0 0 23 8.32V28h2v-8h-8Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:settings-adjust{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30zm-9 4c-1.7 0-3-1.3-3-3s1.3-3 3-3s3 1.3 3 3s-1.3 3-3 3M2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2zm9-4c1.7 0 3 1.3 3 3s-1.3 3-3 3s-3-1.3-3-3s1.3-3 3-3'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:template{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M26 6v4H6V6zm0-2H6a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2M10 16v10H6V16zm0-2H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V16a2 2 0 0 0-2-2m16 2v10H16V16zm0-2H16a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V16a2 2 0 0 0-2-2'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:text-annotation-toggle{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath d='M29.537 13.76l-3.297-3.297a1.586 1.586 0 0 0-2.24 0L10 24.467V30h5.533l14.004-14a1.586 1.586 0 0 0 0-2.24zM14.704 28H12v-2.704l9.44-9.441l2.705 2.704zM25.56 17.145l-2.704-2.704l2.267-2.267l2.704 2.704z' fill='currentColor'/%3E%3Cpath d='M11 17h2v-7h3V8H8v2h3v7z' fill='currentColor'/%3E%3Cpath d='M8 20H4V4h16v4h2V4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h4z' fill='currentColor'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:time{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 30a14 14 0 1 1 14-14a14 14 0 0 1-14 14m0-26a12 12 0 1 0 12 12A12 12 0 0 0 16 4'/%3E%3Cpath fill='currentColor' d='M20.59 22L15 16.41V7h2v8.58l5 5.01z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:timer{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M15 11h2v9h-2zm-2-9h6v2h-6z'/%3E%3Cpath fill='currentColor' d='m28 9l-1.42-1.41l-2.25 2.25a10.94 10.94 0 1 0 1.18 1.65ZM16 26a9 9 0 1 1 9-9a9 9 0 0 1-9 9'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:trash-can{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 12h2v12h-2zm6 0h2v12h-2z'/%3E%3Cpath fill='currentColor' d='M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6Zm4 22V8h16v20Zm4-26h8v2h-8z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:undo{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M20 10H7.815l3.587-3.586L10 5l-6 6l6 6l1.402-1.415L7.818 12H20a6 6 0 0 1 0 12h-8v2h8a8 8 0 0 0 0-16'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:user-speaker{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M29.415 19L27.7 17.285A3 3 0 0 0 28 16a3 3 0 1 0-3 3a3 3 0 0 0 1.286-.3L28 20.414V28h-6v-3a7.01 7.01 0 0 0-7-7H9a7.01 7.01 0 0 0-7 7v5h28v-9.586A2 2 0 0 0 29.415 19M4 25a5.006 5.006 0 0 1 5-5h6a5.006 5.006 0 0 1 5 5v3H4Z'/%3E%3Cpath fill='currentColor' d='M12 4a5 5 0 1 1-5 5a5 5 0 0 1 5-5m0-2a7 7 0 1 0 7 7a7 7 0 0 0-7-7'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:zoom-in{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M18 12h-4V8h-2v4H8v2h4v4h2v-4h4z'/%3E%3Cpath fill='currentColor' d='M21.448 20A10.86 10.86 0 0 0 24 13a11 11 0 1 0-11 11a10.86 10.86 0 0 0 7-2.552L27.586 29L29 27.586ZM13 22a9 9 0 1 1 9-9a9.01 9.01 0 0 1-9 9'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-carbon\:zoom-out{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M8 12h10v2H8z'/%3E%3Cpath fill='currentColor' d='M21.448 20A10.86 10.86 0 0 0 24 13a11 11 0 1 0-11 11a10.86 10.86 0 0 0 7-2.552L27.586 29L29 27.586ZM13 22a9 9 0 1 1 9-9a9.01 9.01 0 0 1-9 9'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-ph-cursor-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='currentColor'%3E%3Cpath d='M213.66 201L201 213.66a8 8 0 0 1-11.31 0l-51.31-51.31a8 8 0 0 0-13 2.46l-17.82 46.41a8 8 0 0 1-14.85-.71L40.41 50.44a8 8 0 0 1 10-10l160.1 52.24a8 8 0 0 1 .71 14.85l-46.41 17.82a8 8 0 0 0-2.46 13l51.31 51.31a8 8 0 0 1 0 11.34' opacity='.2'/%3E%3Cpath d='M168 132.69L214.08 115l.33-.13a16 16 0 0 0-1.41-29.8L52.92 32.8A15.95 15.95 0 0 0 32.8 52.92L85.07 213a15.82 15.82 0 0 0 14.41 11h.78a15.84 15.84 0 0 0 14.61-9.59l.13-.33L132.69 168L184 219.31a16 16 0 0 0 22.63 0l12.68-12.68a16 16 0 0 0 0-22.63ZM195.31 208L144 156.69a16 16 0 0 0-26 4.93c0 .11-.09.22-.13.32l-17.65 46L48 48l159.85 52.2l-45.95 17.64l-.32.13a16 16 0 0 0-4.93 26L208 195.31Z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-ph-cursor-fill{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m220.49 207.8l-12.69 12.69a12 12 0 0 1-17 0l-56.57-56.57L115 214.08l-.13.33a15.84 15.84 0 0 1-14.61 9.59h-.78a15.82 15.82 0 0 1-14.41-11L32.8 52.92A15.95 15.95 0 0 1 52.92 32.8L213 85.07a16 16 0 0 1 1.41 29.8l-.33.13l-50.16 19.27l56.57 56.56a12 12 0 0 1 0 16.97'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-ph\:arrow-down-bold{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m208.49 152.49l-72 72a12 12 0 0 1-17 0l-72-72a12 12 0 0 1 17-17L116 187V40a12 12 0 0 1 24 0v147l51.51-51.52a12 12 0 0 1 17 17Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-ph\:arrow-up-bold{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M208.49 120.49a12 12 0 0 1-17 0L140 69v147a12 12 0 0 1-24 0V69l-51.51 51.49a12 12 0 0 1-17-17l72-72a12 12 0 0 1 17 0l72 72a12 12 0 0 1 0 17'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.i-svg-spinners-90-ring-with-bg{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z' opacity='.25'/%3E%3Cpath fill='currentColor' d='M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z'%3E%3CanimateTransform attributeName='transform' dur='0.75s' repeatCount='indefinite' type='rotate' values='0 12 12;360 12 12'/%3E%3C/path%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;-webkit-mask-size:100% 100%;mask-size:100% 100%}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.pointer-events-none,[pointer-events-none=""]{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.absolute,[absolute=""]{position:absolute}.fixed,[fixed=""]{position:fixed}.relative,[relative=""]{position:relative}.inset-0,[inset-0=""]{inset:0}.inset-y-0,[inset-y-0=""]{top:0;bottom:0}.-top-15px{top:-15px}.-top-20{top:-5rem}.bottom-\[-6px\]{bottom:-6px}.bottom-0,[bottom-0=""]{bottom:0}.bottom-1,[bottom-1=""]{bottom:.25rem}.bottom-10{bottom:2.5rem}.bottom-5{bottom:1.25rem}.left-0,[left-0=""]{left:0}.left-1{left:.25rem}.left-1\/2{left:50%}.left-110\%{left:110%}.right--2,[right--2=""]{right:-.5rem}.right-\[-6px\]{right:-6px}.right-0,[right-0=""]{right:0}.right-0\.5,[right-0\.5=""]{right:.125rem}.right-1,[right-1=""]{right:.25rem}.right-4{right:1rem}.right-5,[right-5=""]{right:1.25rem}.top-\[-6px\]{top:-6px}.top-0,[top-0=""]{top:0}.top-0\.5,[top-0\.5=""]{top:.125rem}.top-1\/2,.top-50\%{top:50%}.top-10{top:2.5rem}.top-4{top:1rem}.top-5{top:1.25rem}.-z-1,[z~="-1"]{z-index:-1}.z-1,[z-1=""]{z-index:1}.z-10,[z-10=""]{z-index:10}.z-2{z-index:2}.grid,[grid=""]{display:grid}.grid-cols-\[1\.05fr_1fr\]{grid-template-columns:1.05fr 1fr}.grid-cols-\[1\.15fr_1fr\]{grid-template-columns:1.15fr 1fr}.grid-cols-\[1\.1fr_1fr\]{grid-template-columns:1.1fr 1fr}.grid-cols-\[1\.25fr_1fr\]{grid-template-columns:1.25fr 1fr}.grid-cols-\[1\.2fr_1fr\]{grid-template-columns:1.2fr 1fr}.grid-cols-\[1\.35fr_1fr\]{grid-template-columns:1.35fr 1fr}.grid-cols-\[1\.3fr_1fr\]{grid-template-columns:1.3fr 1fr}.grid-cols-\[1\.45fr_1fr\]{grid-template-columns:1.45fr 1fr}.grid-cols-\[1\.4fr_1fr\]{grid-template-columns:1.4fr 1fr}.grid-cols-\[1\.6fr_1fr\]{grid-template-columns:1.6fr 1fr}.grid-cols-\[1\.7fr_1fr\]{grid-template-columns:1.7fr 1fr}.grid-cols-\[1fr_1\.15fr\]{grid-template-columns:1fr 1.15fr}.grid-cols-\[1fr_1\.1fr\]{grid-template-columns:1fr 1.1fr}.grid-cols-\[1fr_1\.2fr\]{grid-template-columns:1fr 1.2fr}.grid-cols-\[1fr_1\.35fr\]{grid-template-columns:1fr 1.35fr}.grid-cols-\[1fr_1fr_0\.9fr\]{grid-template-columns:1fr 1fr .9fr}.grid-cols-\[1fr_max-content\]{grid-template-columns:1fr max-content}.grid-cols-\[2\.3fr_1fr\]{grid-template-columns:2.3fr 1fr}.grid-cols-\[35px_1fr\]{grid-template-columns:35px 1fr}.grid-rows-\[1fr_max-content\]{grid-template-rows:1fr max-content}.grid-rows-\[1fr_min-content\]{grid-template-rows:1fr min-content}.grid-rows-\[auto_max-content\]{grid-template-rows:auto max-content}.grid-rows-\[max-content_1fr\]{grid-template-rows:max-content 1fr}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.m--1,[m--1=""]{margin:-.25rem}.m-1{margin:.25rem}.m-auto,.ma{margin:auto}.m\[0\],.m0,[m0=""]{margin:0}.m\[1\]{margin:1px}.m\[2\]{margin:2px}.m\[3\]{margin:3px}.children\:my-auto>*,.my-auto,.mya{margin-top:auto;margin-bottom:auto}.mx--1\.2{margin-left:-.3rem;margin-right:-.3rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my{margin-top:1rem;margin-bottom:1rem}.my-1,.my1{margin-top:.25rem;margin-bottom:.25rem}.my2{margin-top:.5rem;margin-bottom:.5rem}.my5{margin-top:1.25rem;margin-bottom:1.25rem}.-mt-0\.5{margin-top:-.125rem}.mb-2,.mb2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.ml-1{margin-left:.25rem}.ml-auto{margin-left:auto}.mr--14px{margin-right:-14px}.mr--4{margin-right:-1rem}.mr-2{margin-right:.5rem}.mr0{margin-right:0}.mr1{margin-right:.25rem}.ms{margin-inline-start:1rem}.mt-1,.mt1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-8{margin-top:2rem}.mt-px{margin-top:1px}.block{display:block}.inline-block,[inline-block=""]{display:inline-block}.hidden,.group:hover .group-hover\:hidden,.group:not(:hover) .group-not-hover\:hidden{display:none}.aspect-ratio-initial{aspect-ratio:initial}[size~="104"]{width:26rem;height:26rem}[size~="120"]{width:30rem;height:30rem}[size~="128"]{width:32rem;height:32rem}[size~="190"]{width:47.5rem;height:47.5rem}[size~="26"]{width:6.5rem;height:6.5rem}[size~="30"]{width:7.5rem;height:7.5rem}[size~="36"]{width:9rem;height:9rem}[size~="40"]{width:10rem;height:10rem}[size~="42"]{width:10.5rem;height:10.5rem}[size~="44"]{width:11rem;height:11rem}[size~="46"]{width:11.5rem;height:11.5rem}[size~="48"]{width:12rem;height:12rem}[size~="50"]{width:12.5rem;height:12.5rem}[size~="52"]{width:13rem;height:13rem}[size~="54"]{width:13.5rem;height:13.5rem}[size~="56"]{width:14rem;height:14rem}[size~="60"]{width:15rem;height:15rem}[size~="62"]{width:15.5rem;height:15.5rem}[size~="64"]{width:16rem;height:16rem}[size~="66"]{width:16.5rem;height:16.5rem}[size~="70"]{width:17.5rem;height:17.5rem}[size~="72"]{width:18rem;height:18rem}[size~="74"]{width:18.5rem;height:18.5rem}[size~="78"]{width:19.5rem;height:19.5rem}[size~="84"]{width:21rem;height:21rem}[size~="96"]{width:24rem;height:24rem}.h-\[22px\],.h-22px,[h-22px=""]{height:22px}.h-\[40px\]{height:40px}.h-\[calc\(var\(--vh\,1vh\)\*100\)\]{height:calc(var(--vh,1vh) * 100)}.h-0\.7{height:.175rem}.h-1\.5,[h-1\.5=""]{height:.375rem}.h-1px{height:1px}.h-2,[h-2=""]{height:.5rem}.h-3\.5{height:.875rem}.h-40{height:10rem}.h-4px{height:4px}.h-5,.h5,[h-5=""]{height:1.25rem}.h-6{height:1.5rem}.h-8,[h-8=""]{height:2rem}.h-full,[h-full=""]{height:100%}.h-max{height:max-content}.h-screen{height:100vh}.h1,[h1=""]{height:.25rem}.h3{height:.75rem}.max-h-full{max-height:100%}.max-h-full\!{max-height:100%!important}.max-w-\[calc\(100\%-3rem\)\]{max-width:calc(100% - 3rem)}.max-w-150{max-width:37.5rem}.max-w-250{max-width:62.5rem}.max-w-90,[max-w-90=""]{max-width:22.5rem}.max-w-full{max-width:100%}.max-w-full\!{max-width:100%!important}.max-w-xs{max-width:20rem}.min-h-50{min-height:12.5rem}.min-h-full\!{min-height:100%!important}.min-w-\[70\%\]{min-width:70%}.min-w-0{min-width:0}.min-w-16{min-width:4rem}.min-w-30,[min-w-30=""]{min-width:7.5rem}.min-w-40{min-width:10rem}.min-w-90,[min-w-90=""]{min-width:22.5rem}.min-w-full\!{min-width:100%!important}.w-\[40px\]{width:40px}.w-\[calc\(100\%-0\.25rem\)\]{width:calc(100% - .25rem)}.w-0{width:0}.w-0\.5,[w-0\.5=""]{width:.125rem}.w-1\.5,[w-1\.5=""]{width:.375rem}.w-13{width:3.25rem}.w-1px,[w-1px=""]{width:1px}.w-2,[w-2=""]{width:.5rem}.w-20,[w-20=""]{width:5rem}.w-200{width:50rem}.w-22px{width:22px}.w-250{width:62.5rem}.w-3\.5{width:.875rem}.w-30,[w-30=""]{width:7.5rem}.w-5,[w-5=""]{width:1.25rem}.w-6{width:1.5rem}.w-60,[w-60=""]{width:15rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-88{width:22rem}.w-9{width:2.25rem}.w-90,[w-90=""]{width:22.5rem}.w-full,[w-full=""]{width:100%}.w-full\!{width:100%!important}.w-screen{width:100vw}.w1,[w1=""]{width:.25rem}.w3{width:.75rem}.flex,[flex=""],[flex~=\~]{display:flex}.inline-flex{display:inline-flex}.flex-1{flex:1}.flex-auto,[flex-auto=""]{flex:auto}.flex-none{flex:none}.flex-shrink,.shrink{flex-shrink:1}.flex-grow{flex-grow:1}[flex~=row]{flex-direction:row}.flex-col,[flex~=col]{flex-direction:column}.flex-wrap{flex-wrap:wrap}.flex-wrap-reverse{flex-wrap:wrap-reverse}.table,[table=""]{display:table}.table-cell,[table-cell=""]{display:table-cell}.table-row,[table-row=""]{display:table-row}.border-collapse,[border-collapse=""]{border-collapse:collapse}.translate-y--50\%{--un-translate-y:-50%;transform:translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotateZ(var(--un-rotate-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.-rotate-45{--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-rotate:-45deg;transform:translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotateZ(var(--un-rotate-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.scale-102{--un-scale-x:1.02;--un-scale-y:1.02;transform:translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotateZ(var(--un-rotate-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.scale-85{--un-scale-x:.85;--un-scale-y:.85;transform:translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotateZ(var(--un-rotate-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.scale-x-80{--un-scale-x:.8;transform:translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotateZ(var(--un-rotate-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.transform{transform:translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotateZ(var(--un-rotate-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.animate-fade-in{animation:1s linear fade-in}.animate-duration-100{animation-duration:.1s}.cursor-default{cursor:default}.cursor-pointer,[cursor-pointer=""]{cursor:pointer}.touch-none,[touch-none=""]{touch-action:none}.important\:\[\&_\*\]\:select-none *{-webkit-user-select:none!important;user-select:none!important}.select-none,[select-none=""]{-webkit-user-select:none;user-select:none}.resize{resize:both}.resize-none{resize:none}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center,[flex~=items-center],[items-center=""]{align-items:center}.self-center{align-self:center}.justify-center,[flex~=justify-center],[justify-center=""]{justify-content:center}.justify-between{justify-content:space-between}.justify-items-start{justify-items:start}.gap-0{gap:0}.gap-0\.2{gap:.05rem}.gap-0\.5{gap:.125rem}.gap-1,[flex~=gap-1],[gap-1=""]{gap:.25rem}.gap-10{gap:2.5rem}.gap-2,[flex~=gap-2]{gap:.5rem}.gap-3{gap:.75rem}.gap-4,[flex~=gap-4]{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-px{gap:1px}.gap-x-8{column-gap:2rem}.gap-y-4{row-gap:1rem}.of-auto,.overflow-auto{overflow:auto}.of-hidden,.overflow-hidden,[of-hidden=""]{overflow:hidden}.of-x-visible{overflow-x:visible}.of-y-auto,.overflow-y-auto{overflow-y:auto}.whitespace-nowrap,.ws-nowrap,[ws-nowrap=""]{white-space:nowrap}.b,.border,.dark .dark\:border,.dark [dark\:border~=\~],[b=""],[b~="1"],[border=""],[border~=\~]{border-width:1px}.border-2,[b~="2"]{border-width:2px}[b~="100%"]{border-width:100%}[b~="16"]{border-width:16px}[b~="50%"]{border-width:50%}[b~="64"]{border-width:64px}[border~="0"]{border-width:0}.border-x,[b~=x]{border-left-width:1px;border-right-width:1px}[b~=y],[border~=y]{border-top-width:1px;border-bottom-width:1px}.border-b,[b~=b],[border~=b]{border-bottom-width:1px}.border-b-0{border-bottom-width:0}.border-l{border-left-width:1px}.border-r,[border~=r]{border-right-width:1px}.border-r-2{border-right-width:2px}.border-t,[border-t=""],[border~=t]{border-top-width:1px}.b-dark{--un-border-opacity:1;border-color:rgb(34 34 34/var(--un-border-opacity))}.border-gray,.dark .dark\:b-gray-400,[border-gray=""]{--un-border-opacity:1;border-color:rgb(156 163 175/var(--un-border-opacity))}.border-gray-300\/50{border-color:#d1d5db80}.border-transparent,[border~=transparent]{border-color:#0000}.border-white{--un-border-opacity:1;border-color:rgb(255 255 255/var(--un-border-opacity))}.dark .dark\:border-gray-500,.dark [dark\:border-gray-500=""]{--un-border-opacity:1;border-color:rgb(107 114 128/var(--un-border-opacity))}[b-dark~="1"]{--un-border-opacity:1;border-color:rgb(60 60 60/var(--un-border-opacity))}.dark [b~=dark\:b-gray-400]{--un-border-opacity:1;--un-border-bottom-opacity:var(--un-border-opacity);border-bottom-color:rgb(156 163 175/var(--un-border-bottom-opacity))}[b~=b-dark]{--un-border-opacity:1;--un-border-bottom-opacity:var(--un-border-opacity);border-bottom-color:rgb(34 34 34/var(--un-border-bottom-opacity))}.rounded,[border~=rounded],[rounded=""]{border-radius:.25rem}.rounded-1\/2{border-radius:50%}.rounded-full,[rounded-full=""]{border-radius:9999px}.rounded-md,[border~=rounded-md]{border-radius:.375rem}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-lb{border-bottom-left-radius:.25rem}.rounded-tl{border-top-left-radius:.25rem}.rounded-tr{border-top-right-radius:.25rem}.rounded-tr-0{border-top-right-radius:0}.\!border-none{border-style:none!important}.b-dashed{border-style:dashed}[b~=b-dashed]{border-bottom-style:dashed}.bg-blue{--un-bg-opacity:1;background-color:rgb(96 165 250/var(--un-bg-opacity))}.bg-current{background-color:currentColor}.bg-cyan\:10,[bg-cyan\:10=""]{background-color:#22d3ee1a}.bg-gray,[bg-gray=""]{--un-bg-opacity:1;background-color:rgb(156 163 175/var(--un-bg-opacity))}.bg-gray\:10,.bg-gray\/10{background-color:#9ca3af1a}.bg-gray\:4,[bg-gray\:4=""]{background-color:#9ca3af0a}.bg-gray\:5,.bg-gray\/5,[bg-gray\:5=""]{background-color:#9ca3af0d}.bg-gray\/20{background-color:#9ca3af33}.bg-green{--un-bg-opacity:1;background-color:rgb(74 222 128/var(--un-bg-opacity))}.bg-red{--un-bg-opacity:1;background-color:rgb(248 113 113/var(--un-bg-opacity))}.bg-transparent{background-color:#0000}.bg-yellow{--un-bg-opacity:1;background-color:rgb(250 204 21/var(--un-bg-opacity))}.dark .dark\:bg-gray-800,.dark [dark\:bg-gray-800=""]{--un-bg-opacity:1;background-color:rgb(31 41 55/var(--un-bg-opacity))}[bg~=black]{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.hover\:bg-gray-400:hover{--un-bg-opacity:1;background-color:rgb(156 163 175/var(--un-bg-opacity))}.hover\:bg-gray\/20:hover{background-color:#9ca3af33}[bg-transparent~=placeholder\:]::placeholder{background-color:#0000}.\!bg-opacity-75{--un-bg-opacity:.75!important}.bg-opacity-30,[bg-opacity-30=""]{--un-bg-opacity:.3}[bg~=opacity-80]{--un-bg-opacity:.8}.hover\:bg-opacity-10:hover{--un-bg-opacity:.1}[stroke-width~="1"]{stroke-width:1px}[stroke-width~="2"]{stroke-width:2px}[stroke-width~="3"]{stroke-width:3px}.dark .dark\:stroke-black{--un-stroke-opacity:1;stroke:rgb(0 0 0/var(--un-stroke-opacity))}.stroke-white{--un-stroke-opacity:1;stroke:rgb(255 255 255/var(--un-stroke-opacity))}[stroke~=none]{stroke:none}.object-cover{object-fit:cover}.object-contain{object-fit:contain}.\!p-4{padding:1rem!important}.p-1,.p1,[p1=""]{padding:.25rem}.p-16{padding:4rem}.p-2,.p2,[p2=""]{padding:.5rem}.p-6px{padding:6px}.p\[0\]{padding:0}.p\[1\]{padding:1px}.p\[2\]{padding:2px}.p\[3\]{padding:3px}.p0\.5,[p0\.5=""]{padding:.125rem}.p3{padding:.75rem}.p4{padding:1rem}.p5{padding:1.25rem}.px,.px-4,.px4,[p~=x-4],[px=""],[px4=""]{padding-left:1rem;padding-right:1rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2,.px2,[px2=""]{padding-left:.5rem;padding-right:.5rem}.px-3,.px3,[px3=""]{padding-left:.75rem;padding-right:.75rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px1{padding-left:.25rem;padding-right:.25rem}.py,.py-4{padding-top:1rem;padding-bottom:1rem}.py-1,.py1{padding-top:.25rem;padding-bottom:.25rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-2,.py2,[p~=y-2],[py-2=""],[py2=""]{padding-top:.5rem;padding-bottom:.5rem}.py-20{padding-top:5rem;padding-bottom:5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py0\.5{padding-top:.125rem;padding-bottom:.125rem}.py1\.5{padding-top:.375rem;padding-bottom:.375rem}.pb2{padding-bottom:.5rem}.pl-0{padding-left:0}.pl-1,.pl1{padding-left:.25rem}.pl-4,[pl-4=""]{padding-left:1rem}.pl2,[pl2=""]{padding-left:.5rem}.pr-3,[pr-3=""]{padding-right:.75rem}.pr-4,[pr-4=""]{padding-right:1rem}.pt-\.5{padding-top:.125rem}.pt-15\%{padding-top:15%}.pt2{padding-top:.5rem}.text-center{text-align:center}.text-right,[text-right=""]{text-align:right}.text-nowrap{text-wrap:nowrap}.align-top,[align-top=""]{vertical-align:top}.vertical-middle,[vertical-middle=""]{vertical-align:middle}.text-1\.2em{font-size:1.2em}.text-11px{font-size:11px}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3em{font-size:3em}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-9xl,[text-9xl=""]{font-size:8rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm,[text-sm=""]{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs,[text-xs=""]{font-size:.75rem;line-height:1rem}.\!text-current{color:currentColor!important}.dark .dark\:text-blue3{--un-text-opacity:1;color:rgb(147 197 253/var(--un-text-opacity))}.dark .dark\:text-green,.text-green{--un-text-opacity:1;color:rgb(74 222 128/var(--un-text-opacity))}.dark .dark\:text-green3{--un-text-opacity:1;color:rgb(134 239 172/var(--un-text-opacity))}.dark .dark\:text-red-500{--un-text-opacity:1;color:rgb(239 68 68/var(--un-text-opacity))}.dark .dark\:text-red3{--un-text-opacity:1;color:rgb(252 165 165/var(--un-text-opacity))}.dark .dark\:text-yellow3{--un-text-opacity:1;color:rgb(253 224 71/var(--un-text-opacity))}.text-\$slidev-controls-foreground{color:var(--slidev-controls-foreground)}.text-black{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.text-blue{--un-text-opacity:1;color:rgb(96 165 250/var(--un-text-opacity))}.text-blue6{--un-text-opacity:1;color:rgb(37 99 235/var(--un-text-opacity))}.text-cyan{--un-text-opacity:1;color:rgb(34 211 238/var(--un-text-opacity))}.text-cyan\:75,[text-cyan\:75=""]{color:#22d3eebf}.text-gray,.text-gray-400{--un-text-opacity:1;color:rgb(156 163 175/var(--un-text-opacity))}.text-gray-500{--un-text-opacity:1;color:rgb(107 114 128/var(--un-text-opacity))}.text-green-500{--un-text-opacity:1;color:rgb(34 197 94/var(--un-text-opacity))}.text-green6{--un-text-opacity:1;color:rgb(22 163 74/var(--un-text-opacity))}.text-indigo{--un-text-opacity:1;color:rgb(129 140 248/var(--un-text-opacity))}.text-lime{--un-text-opacity:1;color:rgb(163 230 53/var(--un-text-opacity))}.text-orange{--un-text-opacity:1;color:rgb(251 146 60/var(--un-text-opacity))}.text-pink{--un-text-opacity:1;color:rgb(244 114 182/var(--un-text-opacity))}.text-purple{--un-text-opacity:1;color:rgb(192 132 252/var(--un-text-opacity))}.dark .dark\:color-red-400,.text-red,.text-red-400{--un-text-opacity:1;color:rgb(248 113 113/var(--un-text-opacity))}.text-red-700{--un-text-opacity:1;color:rgb(185 28 28/var(--un-text-opacity))}.color-red-600,.text-red6{--un-text-opacity:1;color:rgb(220 38 38/var(--un-text-opacity))}.text-teal{--un-text-opacity:1;color:rgb(45 212 191/var(--un-text-opacity))}.text-white{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}.text-yellow{--un-text-opacity:1;color:rgb(250 204 21/var(--un-text-opacity))}.text-yellow6{--un-text-opacity:1;color:rgb(202 138 4/var(--un-text-opacity))}.important-text-op-50,.text-opacity-50\!{--un-text-opacity:.5!important}.font-bold,[font-bold=""]{font-weight:700}.font-light{font-weight:300}.leading-1\.6em{line-height:1.6em}.leading-1em{line-height:1em}.leading-tight{line-height:1.25}.font-mono,[font-mono=""]{font-family:JetBrains Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)}.line-through{text-decoration-line:line-through}.underline,.hover\:underline:hover{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.tab{tab-size:4}.\!opacity-0{opacity:0!important}.\!opacity-100{opacity:1!important}.op-60,.op60{opacity:.6}.op-80,.op80,.opacity-80{opacity:.8}.op0,.opacity-0{opacity:0}.op100,.group:hover .group-hover\:op100{opacity:1}.op15{opacity:.15}.op20,.group:hover .group-hover\:opacity-20{opacity:.2}.op25,.opacity-25,[op25=""]{opacity:.25}.op30{opacity:.3}.op35{opacity:.35}.op40,.opacity-40,[op40=""]{opacity:.4}.op50,.opacity-50,[op50=""]{opacity:.5}.op75,[op75=""]{opacity:.75}.opacity-10,[opacity-10=""]{opacity:.1}.opacity-5{opacity:.05}[opacity~="0.5"]{opacity:.005}[opacity~="0.55"]{opacity:.0055}[opacity~="0.6"]{opacity:.006}.focus-within\:opacity-100:focus-within{opacity:1}.hover\:\!opacity-100:hover{opacity:1!important}.hover\:op-100:hover,.hover\:op100:hover{opacity:1}.hover\:op90:hover{opacity:.9}.hover\:opacity-100:hover{opacity:1}.hover\:opacity-90:hover{opacity:.9}[hover~=op100]:hover,.focus-visible\:opacity-100:focus-visible{opacity:1}.placeholder\:op25::placeholder{opacity:.25}.shadow,[shadow~=\~]{--un-shadow:var(--un-shadow-inset) 0 1px 3px 0 var(--un-shadow-color,#0000001a),var(--un-shadow-inset) 0 1px 2px -1px var(--un-shadow-color,#0000001a);box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)}.shadow-xl{--un-shadow:var(--un-shadow-inset) 0 20px 25px -5px var(--un-shadow-color,#0000001a),var(--un-shadow-inset) 0 8px 10px -6px var(--un-shadow-color,#0000001a);box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)}.outline,[outline=""]{outline-style:solid}.outline-none,[outline-none=""]{outline-offset:2px;outline:2px solid #0000}.\!backdrop-blur-0px{--un-backdrop-blur:blur(0px)!important;-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)!important;backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)!important}.backdrop-blur{--un-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)}.backdrop-blur-5px{--un-backdrop-blur:blur(5px);-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)}.blur{--un-blur:blur(8px);filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}.filter{filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}.backdrop-filter{-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter,backdrop-filter;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-property:opacity;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}[transition-all~="0"]{transition-property:all;transition-duration:0s;transition-timing-function:cubic-bezier(.4,0,.2,1)}[transition-all~="4"]{transition-property:all;transition-duration:4ms;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-400{transition-duration:.4s}.ease{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.view-transition-name{view-transition-name:name}@media (width<=767.9px){.lt-md\:hidden{display:none}.lt-md\:flex-col{flex-direction:column}}@media (width>=768px){.md\:p-10px{padding:10px}}@media (width>=1024px){.lg\:m-2{margin:.5rem}.lg\:p-2{padding:.5rem}.lg\:p-4{padding:1rem}} diff --git a/lecture-07/assets/index-DxDNFTAW.js b/lecture-07/assets/index-DxDNFTAW.js new file mode 100644 index 0000000000000000000000000000000000000000..a68412ab8e71eee805a57e8206f8ec55e4f36289 --- /dev/null +++ b/lecture-07/assets/index-DxDNFTAW.js @@ -0,0 +1,46 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./modules/file-saver-BpWusTEB.js","./rolldown-runtime-hePW80VL.js","./slidev/entry-C7SFAt6v.js","./modules/shiki-CJZsCeMT.js","./modules/shiki-BrmBd2_v.css","./_plugin-vue_export-helper-BDNMzG2s.js","./entry-Dba4BKje.css","./slidev/overview-onWweOVU.js","./useNav-BmBHxIEh.js","./modules/vue-Dnfgf7Ad.js","./slidev/context-DB-9afGB.js","./modules/unplugin-icons-CStvVwzQ.js","./slidev/IconButton-BwA4p7Ax.js","./slidev/NoteDisplay-DomX2gaR.js","./NoteDisplay-DCBzjb4F.css","./SlideWrapper-B_VDtSxZ.js","./syncState-3Tc2ZArb.js","./slidev/client-Ct4Bq5Nz.js","./useDrawings-vNWRit9P.js","./SlideWrapper-DBNQYNtZ.css","./slidev/NoteEditable-EWNsHjuy.js","./overview-BIQ10iVu.css","./slidev/notes-0YYK7eZS.js","./slidev/Modal-PBdP8Aqp.js","./slidev/TimerBar-M2O-qcUf.js","./slidev/notes-edit-CNXbnFBO.js","./slidev/presenter-DY5YySOI.js","./slidev/DrawingControls-CovJrial.js","./slidev/VerticalDivider-Bvc1MZzH.js","./DrawingControls-Dhbx0szf.css","./slidev/shortcuts-CecQChrI.js","./shortcuts-nRB69a7e.css","./presenter-J5ibmAMh.css","./slidev/play-CuAAHxP2.js","./play-D_7yfuao.css","./slidev/404-Dy8qVHZj.js","./404-bkedjYjP.css"])))=>i.map(i=>d[i]); +import{r as e}from"./rolldown-runtime-hePW80VL.js";import{A as t,B as n,C as r,E as i,F as a,I as o,L as s,Q as c,T as l,W as u,Z as d,b as f,dt as p,g as m,it as h,k as g,lt as _,m as v,mt as y,ot as b,s as x,t as S,vt as C,y as w,yt as T}from"./modules/shiki-CJZsCeMT.js";import{$ as E,A as ee,B as te,G as ne,H as re,Q as D,R as ie,Z as ae,c as oe,et as O,h as se,j as k,l as ce,n as le,p as A,q as j,t as ue,tt as M,w as de,z as fe}from"./useNav-BmBHxIEh.js";import{A as pe,L as me,R as he,S as ge,T as _e,V as ve,f as ye,g as be,i as xe,j as Se,o as Ce,x as we,z as Te}from"./modules/vue-Dnfgf7Ad.js";import{a as Ee,c as De,d as Oe,f as ke,g as Ae,i as je,m as Me,o as Ne,p as Pe,r as Fe,s as Ie,u as Le,y as Re}from"./slidev/context-DB-9afGB.js";import{n as N,r as ze,t as Be}from"./syncState-3Tc2ZArb.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})(),p(!1),p(!1);var Ve=new Set([`link`,`style`,`script`,`noscript`]),He=new Set([`title`,`titleTemplate`,`script`,`style`,`noscript`]),Ue=new Set([`base`,`meta`,`link`,`style`,`script`,`noscript`]),We=new Set([`title`,`base`,`htmlAttrs`,`bodyAttrs`,`meta`,`link`,`style`,`script`,`noscript`]),Ge=new Set([`base`,`title`,`titleTemplate`,`bodyAttrs`,`htmlAttrs`,`templateParams`]),Ke=new Set([`key`,`tagPosition`,`tagPriority`,`tagDuplicateStrategy`,`innerHTML`,`textContent`,`processTemplateParams`]),qe=new Set([`templateParams`,`htmlAttrs`,`bodyAttrs`]),Je=new Set([`theme-color`,`google-site-verification`,`author`,`og:locale:alternate`,`og:image`,`og:video`,`og:audio`,`article:author`,`article:tag`,`book:author`,`book:tag`,`twitter:image`]),Ye={critical:-8,high:-1,low:2},Xe=e=>typeof e==`number`?Number.isFinite(e):e;function Ze(e){return e===`__proto__`||e===`constructor`||e===`prototype`}function Qe(e,t,n,r){for(let i=n;ie[i](...t)):e[i](...t);if(n&&typeof n.then==`function`)return Promise.resolve(n).then(()=>Qe(e,t,i+1,r))}catch(e){return Promise.reject(e)}}var $e=class{_hooks;constructor(){this._hooks={}}hook(e,t){return!e||typeof t!=`function`?()=>{}:(this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&=(this.removeHook(e,t),void 0)})}removeHook(e,t){let n=this._hooks[e];if(n){let r=n.indexOf(t);r!==-1&&n.splice(r,1),n.length===0&&(this._hooks[e]=void 0)}}callHook(e,...t){let n=this._hooks[e];if(!(!n||n.length===0))return Qe(n,t,0)}};function et(e){let t=new $e;for(let n in e||{})t.hook(n,e[n]);return t}function tt(e,t,n){if(e.hooks?._hooks?.[t]?.length)return e.hooks?.callHook(t,n)}var nt=/^(?:viewport|description|keywords|robots)$/,rt=[`name`,`property`,`http-equiv`];function it(e){let t=e.indexOf(`:`);if(t===-1)return!1;let n=e.slice(t+1);return Je.has(n)||n.startsWith(`og:image:`)||n.startsWith(`og:video:`)||n.startsWith(`og:audio:`)||n.startsWith(`twitter:image:`)}function at(e){let{props:t,tag:n,key:r}=e;if(Ge.has(n))return n;if(n===`link`){if(t.rel===`canonical`)return`canonical`;if(t.rel===`alternate`&&t.hreflang)return`alternate:${t.hreflang}`}if(t.charset)return`charset`;if(n===`meta`)for(let e of rt){let n=t[e];if(n!==void 0)return`meta:${n}${(typeof n!=`string`||!n.includes(`:`))&&!nt.test(n)&&r?`:key:${r}`:``}`}return r?`${n}:key:${r}`:t.id?`${n}:id:${t.id}`:n===`link`&&t.rel&&t.href?`link:${t.rel}:${t.href}`:He.has(n)&&(e.textContent||e.innerHTML)?`${n}:content:${e.textContent||e.innerHTML}`:void 0}function ot(e){let t=e._h||e._d||e.textContent||e.innerHTML;if(t)return t;let n=Object.keys(e.props).sort(),r=`${e.tag}:`,i=``;for(let t of n)r+=`${i}${t}:${String(e.props[t])}`,i=`,`;return r}function st(e,t,n){if(n===`_resolver`)return e;typeof e==`function`&&(!n||n!==`titleTemplate`&&!n.startsWith(`on`))&&(e=e());let r=t?t(n,e):e;if(Array.isArray(r)){let e;for(let n=0;n/=\x00-\x1F\x7F]/;function lt(e,t){let n=e===`style`,r=n?new Map:new Set,i=e=>{if(e){if(n){let t=e.indexOf(`:`);t>0&&r.set(e.slice(0,t).trim(),e.slice(t+1).trim())}else e.split(` `).forEach(e=>e&&r.add(e))}};if(typeof t==`string`)(n?t.split(`;`):[t]).forEach(i);else if(Array.isArray(t))t.forEach(i);else if(t&&typeof t==`object`)for(let e in t){let a=t[e];a&&a!==`false`&&(n?r.set(e.trim(),String(a)):i(e))}return r}function ut(e,t){if(e.props=e.props||{},!t)return e;if(e.tag===`templateParams`)return e.props=t,e;let n=Ue.has(e.tag)||e.tag===`htmlAttrs`||e.tag===`bodyAttrs`;for(let r in t){if(Ze(r))continue;let i=r.startsWith(`data-`),a=n&&!Ke.has(r),o=a&&!i?r.toLowerCase():r;if(a&&(!o||ct.test(o)))continue;let s=t[r];if(s===null)e.props[o]=null;else if(r===`class`||r===`style`)e.props[r]=lt(r,s);else if(Ke.has(r)){if((r===`textContent`||r===`innerHTML`)&&typeof s==`object`){let n=t.type||`application/json`;(n.endsWith(`json`)||n===`speculationrules`||n===`importmap`)&&(e.props.type=t.type=n,e[r]=JSON.stringify(s))}else e[r]=s}else if(s!==void 0){let t=String(s),n=e.tag===`meta`&&o===`content`;e.props[o]=t===`true`||t===``?i||n?t:!0:!s&&i&&t===`false`?`false`:s}}return e}function dt(e,t){let n;return t.length&&(n=(e,n)=>{for(let r=0;re._w===t._w?e._p-t._p:e._w-t._w,vt=()=>100;function yt(e){for(let t in e)return!1;return!0}var bt=/^tags:|:render/;function xt(e,t){let n=(t[`entries:resolve`]?.length||0)+(t[`entries:normalize`]?.length||0);if(e._h!==n){e._h=n;for(let t of e.entries.values())delete t._tags}}function St(e){for(let t=0;t>10==i._p>>10&&n.tag===`meta`&&it(r)?(e.tagMap.set(r,Object.assign([...Array.isArray(i)?i:[i],n],n)),t=!0):(n._w===i._w?n._p>i._p:n._wt?(typeof e==`string`?e:JSON.stringify(e)).replace(ht,`\\u003C`):typeof e==`string`?e.replace(gt,`<\\/script`):e;n={...n},r&&(n.innerHTML=i(r)),n.textContent&&(n.textContent=i(n.textContent)),n._d=at(n)}e[t++]=n}}return e.length=t,e}function Dt(e,t){let n=t?.tagWeight??e.resolvedOptions._tagWeight??vt,r={tagMap:new Map,tags:[]},i=e.hooks?._hooks||{};xt(e,i);for(let t of e.entries.values())t._pending!==void 0&&(t.input=t._pending,delete t._pending,delete t._tags,delete t._precomputedTags);let a;(i[`entries:resolve`]?.length||i[`entries:normalize`]?.length)&&(a=[...e.entries.values()],i[`entries:resolve`]?.length&&tt(e,`entries:resolve`,{entries:a,...r})),xt(e,i);for(let t of a||e.entries.values()){let a=t._tags;if(!a){if(t._precomputedTags&&n===e.resolvedOptions._tagWeight&&!i[`entries:normalize`]?.length&&!i[`entries:resolve`]?.length&&(!t.options||yt(t.options)))a=t._precomputedTags;else{if(a=mt(t.input,e.resolvedOptions.propResolvers||[]),t.options&&!yt(t.options))for(let e of a)Object.assign(e,t.options);if(i[`entries:normalize`]?.length){let n={tags:a,entry:t};tt(e,`entries:normalize`,n),a=n.tags}for(let e=0;eb(t)?C(t):t,{_static:!0});function Mt(e,t={}){let n=t.head||kt();return n.ssr?n.push(e||{},t):Nt(n,e,t)}function Nt(e,t,n={}){let r=h();if(r&&!r.active)return{patch(){},dispose(){},_i:-1};let l=p(!1);if(n.onRendered&&r){let e=n.onRendered;n={...n,onRendered:t=>r.run(()=>e(t))}}let u;return c(()=>{let r=l.value?{}:st(t,jt);u?u.patch(r):u=e.push(r,n)}),i()&&(o(()=>{u.dispose()}),s(()=>{l.value=!0}),a(()=>{l.value=!1})),u}function Pt(e,t){if(typeof t==`function`&&t.key&&e.plugins.has(t.key))return;let n=typeof t==`function`?t(e):t,r=n.key||String(e.plugins.size+1);if(!e.plugins.get(r)){e.plugins.set(r,n);for(let t in n.hooks||{})e.hooks?.hook(t,n.hooks[t])}}function Ft(e,t={}){let n=!t.document,r=new Map,i={_entryCount:1,_h:0,plugins:new Map,resolvedOptions:t,ssr:n,entries:r,hooks:void 0,render:()=>e(i),use:e=>Pt(i,e),push(e,t){let a=t?._index??i._entryCount++,o=t?{...t}:{};delete o.head,delete o.onRendered,delete o._index;let s={_i:a,input:e,options:o};return r.set(a,s),{_i:a,dispose(){r.delete(a)},patch(e){n?(s.input=e,delete s._tags):s._pending=e,r.has(a)||r.set(a,s)}}}};return t.init?.forEach(e=>e&&i.push(e)),i}var It=Object.assign({}),Lt=Object.assign({}),Rt=Object.assign({}),zt=[Object.values(It)[0],Object.values(Lt)[0],Object.values(Rt)[0]].filter(Boolean),Bt=we(),Vt=be(`slidev-color-schema`,`auto`),Ht=m(()=>M.colorSchema!==`auto`),Ut=m({get(){return Ht.value?M.colorSchema===`dark`:Vt.value===`auto`?Bt.value:Vt.value===`dark`},set(e){Ht.value||(Vt.value=e===Bt.value?`auto`:e?`dark`:`light`)}}),Wt=me(Ut);Se&&d(Ut,e=>{let t=window.document.createElement(`style`);t.appendChild(document.createTextNode(`*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`)),window.document.head.appendChild(t);let n=document.querySelector(`html`);n.classList.toggle(`dark`,e),n.classList.toggle(`light`,!e),window.getComputedStyle(t).opacity,document.head.removeChild(t)},{immediate:!0});function Gt(){let{isPrintMode:e}=ue();ge(m(()=>e.value?` +@page { + size: ${D.value}px ${ae.value}px; + margin: 0px; +} + +* { + transition: none !important; + transition-duration: 0s !important; +}`:``))}var Kt=Symbol.for(`yaml.alias`),qt=Symbol.for(`yaml.document`),Jt=Symbol.for(`yaml.map`),Yt=Symbol.for(`yaml.pair`),Xt=Symbol.for(`yaml.scalar`),Zt=Symbol.for(`yaml.seq`),P=Symbol.for(`yaml.node.type`),Qt=e=>!!e&&typeof e==`object`&&e[P]===Kt,$t=e=>!!e&&typeof e==`object`&&e[P]===qt,en=e=>!!e&&typeof e==`object`&&e[P]===Jt,F=e=>!!e&&typeof e==`object`&&e[P]===Yt,I=e=>!!e&&typeof e==`object`&&e[P]===Xt,tn=e=>!!e&&typeof e==`object`&&e[P]===Zt;function L(e){if(e&&typeof e==`object`)switch(e[P]){case Jt:case Zt:return!0}return!1}function R(e){if(e&&typeof e==`object`)switch(e[P]){case Kt:case Jt:case Xt:case Zt:return!0}return!1}var nn=e=>(I(e)||L(e))&&!!e.anchor,z=Symbol(`break visit`),rn=Symbol(`skip children`),an=Symbol(`remove node`);function on(e,t){let n=cn(t);$t(e)?sn(null,e.contents,n,Object.freeze([e]))===an&&(e.contents=null):sn(null,e,n,Object.freeze([]))}on.BREAK=z,on.SKIP=rn,on.REMOVE=an;function sn(e,t,n,r){let i=ln(e,t,n,r);if(R(i)||F(i))return un(e,r,i),sn(e,i,n,r);if(typeof i!=`symbol`){if(L(t)){r=Object.freeze(r.concat(t));for(let e=0;eB(e,String(t),n));if(e&&typeof e.toJSON==`function`){if(!n||!nn(e))return e.toJSON(t,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};let i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e==`bigint`&&!n?.keep?Number(e):e}var pn=class{constructor(e){Object.defineProperty(this,P,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}={}){if(!$t(e))throw TypeError(`A document argument is required`);let a={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n==`number`?n:100},o=B(this,``,a);if(typeof r==`function`)for(let{count:e,res:t}of a.anchors.values())r(t,e);return typeof i==`function`?fn(i,{"":o},``,o):o}},mn=class extends pn{constructor(e){super(Kt),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){if(t?.maxAliasCount===0)throw ReferenceError(`Alias resolution is disabled`);let n;t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],on(e,{Node:(e,t)=>{(Qt(t)||nn(t))&&n.push(t)}}),t&&(t.aliasResolveCache=n));let r;for(let e of n){if(e===this)break;e.anchor===this.source&&(r=e)}return r}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:r,maxAliasCount:i}=t,a=this.resolve(r,t);if(!a){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}let o=n.get(a);if(o||=(B(a,null,t),n.get(a)),o?.res===void 0)throw ReferenceError(`This should not happen: Alias anchor was not resolved?`);if(i>=0&&(o.count+=1,o.aliasCount===0&&(o.aliasCount=hn(r,a,n)),o.count*o.aliasCount>i))throw ReferenceError(`Excessive alias count indicates a resource exhaustion attack`);return o.res}toString(e,t,n){let r=`*${this.source}`;if(e){if(dn(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${r} `}return r}};function hn(e,t,n){if(Qt(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}if(L(t)){let r=0;for(let i of t.items){let t=hn(e,i,n);t>r&&(r=t)}return r}if(F(t)){let r=hn(e,t.key,n),i=hn(e,t.value,n);return Math.max(r,i)}return 1}var gn=e=>!e||typeof e!=`function`&&typeof e!=`object`,V=class extends pn{constructor(e){super(Xt),this.value=e}toJSON(e,t){return t?.keep?this.value:B(this.value,e,t)}toString(){return String(this.value)}};V.BLOCK_FOLDED=`BLOCK_FOLDED`,V.BLOCK_LITERAL=`BLOCK_LITERAL`,V.PLAIN=`PLAIN`,V.QUOTE_DOUBLE=`QUOTE_DOUBLE`,V.QUOTE_SINGLE=`QUOTE_SINGLE`;var _n=`tag:yaml.org,2002:`;function vn(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}function yn(e,t,n){if($t(e)&&(e=e.contents),R(e))return e;if(F(e)){let t=n.schema[Jt].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<`u`&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:r,onAnchor:i,onTagObj:a,schema:o,sourceObjects:s}=n,c;if(r&&e&&typeof e==`object`){if(c=s.get(e),c)return c.anchor??(c.anchor=i(e)),new mn(c.anchor);c={anchor:null,node:null},s.set(e,c)}t?.startsWith(`!!`)&&(t=_n+t.slice(2));let l=vn(e,t,o.tags);if(!l){if(e&&typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`){let t=new V(e);return c&&(c.node=t),t}l=e instanceof Map?o[Jt]:Symbol.iterator in Object(e)?o[Zt]:o[Jt]}a&&(a(l),delete n.onTagObj);let u=l?.createNode?l.createNode(n.schema,e,n):typeof l?.nodeClass?.from==`function`?l.nodeClass.from(n.schema,e,n):new V(e);return t?u.tag=t:l.default||(u.tag=l.tag),c&&(c.node=u),u}function bn(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if(typeof n==`number`&&Number.isInteger(n)&&n>=0){let e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return yn(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error(`This should not happen, please report a bug.`)},schema:e,sourceObjects:new Map})}var xn=e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done,Sn=class extends pn{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>R(t)||F(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(xn(e))this.add(t);else{let[n,...r]=e,i=this.get(n,!0);if(L(i))i.addIn(r,t);else if(i===void 0&&this.schema)this.set(n,bn(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}deleteIn(e){let[t,...n]=e;if(n.length===0)return this.delete(t);let r=this.get(t,!0);if(L(r))return r.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...r]=e,i=this.get(n,!0);return r.length===0?!t&&I(i)?i.value:i:L(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!F(t))return!1;let n=t.value;return n==null||e&&I(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(n.length===0)return this.has(t);let r=this.get(t,!0);return L(r)?r.hasIn(n):!1}setIn(e,t){let[n,...r]=e;if(r.length===0)this.set(n,t);else{let e=this.get(n,!0);if(L(e))e.setIn(r,t);else if(e===void 0&&this.schema)this.set(n,bn(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}},Cn=e=>e.replace(/^(?!$)(?: $)?/gm,`#`);function wn(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}var Tn=(e,t,n)=>e.endsWith(` +`)?wn(n,t):n.includes(` +`)?` +`+wn(n,t):(e.endsWith(` `)?``:` `)+n,En=`flow`,Dn=`block`,On=`quoted`;function kn(e,t,n=`flow`,{indentAtStart:r,lineWidth:i=80,minContentWidth:a=20,onFold:o,onOverflow:s}={}){if(!i||i<0)return e;ii-Math.max(2,a)?l.push(0):d=i-r);let f,p,m=!1,h=-1,g=-1,_=-1;n===`block`&&(h=An(e,h,t.length),h!==-1&&(d=h+c));for(let r;r=e[h+=1];){if(n===`quoted`&&r===`\\`){switch(g=h,e[h+1]){case`x`:h+=3;break;case`u`:h+=5;break;case`U`:h+=9;break;default:h+=1}_=h}if(r===` +`)n===`block`&&(h=An(e,h,t.length)),d=h+t.length+c,f=void 0;else{if(r===` `&&p&&p!==` `&&p!==` +`&&p!==` `){let t=e[h+1];t&&t!==` `&&t!==` +`&&t!==` `&&(f=h)}if(h>=d){if(f)l.push(f),d=f+c,f=void 0;else if(n===`quoted`){for(;p===` `||p===` `;)p=r,r=e[h+=1],m=!0;let t=h>_+1?h-2:g-1;if(u[t])return e;l.push(t),u[t]=!0,d=t+c,f=void 0}else m=!0}}p=r}if(m&&s&&s(),l.length===0)return e;o&&o();let v=e.slice(0,l[0]);for(let r=0;r({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Mn=e=>/^(%|---|\.\.\.)/m.test(e);function Nn(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;tr)return!0;if(n=t+1,i-n<=r)return!1}return!0}function Pn(e,t){let n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;let{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,a=t.indent||(Mn(e)?` `:``),o=``,s=0;for(let e=0,t=n[e];t;t=n[++e])if(t===` `&&n[e+1]===`\\`&&n[e+2]===`n`&&(o+=n.slice(s,e)+`\\ `,e+=1,s=e,t=`\\`),t===`\\`)switch(n[e+1]){case`u`:{o+=n.slice(s,e);let t=n.substr(e+2,4);switch(t){case`0000`:o+=`\\0`;break;case`0007`:o+=`\\a`;break;case`000b`:o+=`\\v`;break;case`001b`:o+=`\\e`;break;case`0085`:o+=`\\N`;break;case`00a0`:o+=`\\_`;break;case`2028`:o+=`\\L`;break;case`2029`:o+=`\\P`;break;default:t.substr(0,2)===`00`?o+=`\\x`+t.substr(2):o+=n.substr(e,6)}e+=5,s=e+1}break;case`n`:if(r||n[e+2]===`"`||n.length +`;let d,f;for(f=n.length;f>0;--f){let e=n[f-1];if(e!==` +`&&e!==` `&&e!==` `)break}let p=n.substring(f),m=p.indexOf(` +`);m===-1?d=`-`:n===p||m!==p.length-1?(d=`+`,a&&a()):d=``,p&&=(n=n.slice(0,-p.length),p[p.length-1]===` +`&&(p=p.slice(0,-1)),p.replace(Ln,`$&${l}`));let h=!1,g,_=-1;for(g=0;g{i=!0});let s=kn(`${v}${e}${p}`,l,Dn,a);if(!i)return`>${y}\n${l}${s}`}return n=n.replace(/\n+/g,`$&${l}`),`|${y}\n${l}${v}${n}${p}`}function zn(e,t,n,r){let{type:i,value:a}=e,{actualString:o,implicitKey:s,indent:c,indentStep:l,inFlow:u}=t;if(s&&a.includes(` +`)||u&&/[[\]{},]/.test(a))return In(a,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return s||u||!a.includes(` +`)?In(a,t):Rn(e,t,n,r);if(!s&&!u&&i!==V.PLAIN&&a.includes(` +`))return Rn(e,t,n,r);if(Mn(a)){if(c===``)return t.forceBlockIndent=!0,Rn(e,t,n,r);if(s&&c===l)return In(a,t)}let d=a.replace(/\n+/g,`$&\n${c}`);if(o){let e=e=>e.default&&e.tag!==`tag:yaml.org,2002:str`&&e.test?.test(d),{compat:n,tags:r}=t.doc.schema;if(r.some(e)||n?.some(e))return In(a,t)}return s?d:kn(d,c,En,jn(t,!1))}function Bn(e,t,n,r){let{implicitKey:i,inFlow:a}=t,o=typeof e.value==`string`?e:Object.assign({},e,{value:String(e.value)}),{type:s}=e;s!==V.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(s=V.QUOTE_DOUBLE);let c=e=>{switch(e){case V.BLOCK_FOLDED:case V.BLOCK_LITERAL:return i||a?In(o.value,t):Rn(o,t,n,r);case V.QUOTE_DOUBLE:return Pn(o.value,t);case V.QUOTE_SINGLE:return Fn(o.value,t);case V.PLAIN:return zn(o,t,n,r);default:return null}},l=c(s);if(l===null){let{defaultKeyType:e,defaultStringType:n}=t.options,r=i&&e||n;if(l=c(r),l===null)throw Error(`Unsupported default string type ${r}`)}return l}function Vn(e,t){let n=Object.assign({blockQuote:!0,commentString:Cn,defaultKeyType:null,defaultStringType:`PLAIN`,directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:`false`,flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:`null`,simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:`true`,verifyAliasOrder:!0},e.schema.toStringOptions,t),r;switch(n.collectionStyle){case`block`:r=!1;break;case`flow`:r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?` `:``,indent:``,indentStep:typeof n.indent==`number`?` `.repeat(n.indent):` `,inFlow:r,options:n}}function Hn(e,t){if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}let n,r;if(I(t)){r=t.value;let i=e.filter(e=>e.identify?.(r));if(i.length>1){let e=i.filter(e=>e.test);e.length>0&&(i=e)}n=i.find(e=>e.format===t.format)??i.find(e=>!e.format)}else r=t,n=e.find(e=>e.nodeClass&&r instanceof e.nodeClass);if(!n){let e=r?.constructor?.name??(r===null?`null`:typeof r);throw Error(`Tag not resolved for ${e} value`)}return n}function Un(e,t,{anchors:n,doc:r}){if(!r.directives)return``;let i=[],a=(I(e)||L(e))&&e.anchor;a&&dn(a)&&(n.add(a),i.push(`&${a}`));let o=e.tag??(t.default?null:t.tag);return o&&i.push(r.directives.tagString(o)),i.join(` `)}function Wn(e,t,n,r){if(F(e))return e.toString(t,n,r);if(Qt(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError(`Cannot stringify circular structure without alias nodes`);t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i,a=R(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i??=Hn(t.doc.schema.tags,a);let o=Un(a,i,t);o.length>0&&(t.indentAtStart=(t.indentAtStart??0)+o.length+1);let s=typeof i.stringify==`function`?i.stringify(a,t,n,r):I(a)?Bn(a,t,n,r):a.toString(t,n,r);return o?I(a)||s[0]===`{`||s[0]===`[`?`${o} ${s}`:`${o}\n${t.indent}${s}`:s}function Gn({key:e,value:t},n,r,i){let{allNullValues:a,doc:o,indent:s,indentStep:c,options:{commentString:l,indentSeq:u,simpleKeys:d}}=n,f=R(e)&&e.comment||null;if(d){if(f)throw Error(`With simple keys, key nodes cannot have comments`);if(L(e)||!R(e)&&typeof e==`object`)throw Error(`With simple keys, collection cannot be used as a key value`)}let p=!d&&(!e||f&&t==null&&!n.inFlow||L(e)||(I(e)?e.type===V.BLOCK_FOLDED||e.type===V.BLOCK_LITERAL:typeof e==`object`));n=Object.assign({},n,{allNullValues:!1,implicitKey:!p&&(d||!a),indent:s+c});let m=!1,h=!1,g=Wn(e,n,()=>m=!0,()=>h=!0);if(!p&&!n.inFlow&&g.length>1024){if(d)throw Error(`With simple keys, single line scalar must not span more than 1024 characters`);p=!0}if(n.inFlow){if(a||t==null)return m&&r&&r(),g===``?`?`:p?`? ${g}`:g}else if(a&&!d||t==null&&p)return g=`? ${g}`,f&&!m?g+=Tn(g,n.indent,l(f)):h&&i&&i(),g;m&&(f=null),p?(f&&(g+=Tn(g,n.indent,l(f))),g=`? ${g}\n${s}:`):(g=`${g}:`,f&&(g+=Tn(g,n.indent,l(f))));let _,v,y;R(t)?(_=!!t.spaceBefore,v=t.commentBefore,y=t.comment):(_=!1,v=null,y=null,t&&typeof t==`object`&&(t=o.createNode(t))),n.implicitKey=!1,!p&&!f&&I(t)&&(n.indentAtStart=g.length+1),h=!1,!u&&c.length>=2&&!n.inFlow&&!p&&tn(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let b=!1,x=Wn(t,n,()=>b=!0,()=>h=!0),S=` `;if(f||_||v){if(S=_?` +`:``,v){let e=l(v);S+=`\n${wn(e,n.indent)}`}x===``&&!n.inFlow?S===` +`&&y&&(S=` + +`):S+=`\n${n.indent}`}else if(!p&&L(t)){let e=x[0],r=x.indexOf(` +`),i=r!==-1,a=n.inFlow??t.flow??t.items.length===0;if(i||!a){let t=!1;if(i&&(e===`&`||e===`!`)){let n=x.indexOf(` `);e===`&`&&n!==-1&&ne===qn||typeof e==`symbol`&&e.description===qn,default:`key`,tag:`tag:yaml.org,2002:merge`,test:/^<<$/,resolve:()=>Object.assign(new V(Symbol(qn)),{addToJSMap:Xn}),stringify:()=>qn},Yn=(e,t)=>(Jn.identify(t)||I(t)&&(!t.type||t.type===V.PLAIN)&&Jn.identify(t.value))&&e?.doc.schema.tags.some(e=>e.tag===Jn.tag&&e.default);function Xn(e,t,n){let r=Qn(e,n);if(tn(r))for(let n of r.items)Zn(e,t,n);else if(Array.isArray(r))for(let n of r)Zn(e,t,n);else Zn(e,t,r)}function Zn(e,t,n){let r=Qn(e,n);if(!en(r))throw Error(`Merge sources must be maps or map aliases`);let i=r.toJSON(null,e,Map);for(let[e,n]of i)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0});return t}function Qn(e,t){return e&&Qt(t)?t.resolve(e.doc,e):t}function $n(e,t,{key:n,value:r}){if(R(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(Yn(e,n))Xn(e,t,r);else{let i=B(n,``,e);if(t instanceof Map)t.set(i,B(r,i,e));else if(t instanceof Set)t.add(i);else{let a=er(n,i,e),o=B(r,a,e);a in t?Object.defineProperty(t,a,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[a]=o}}return t}function er(e,t,n){if(t===null)return``;if(typeof t!=`object`)return String(t);if(R(e)&&n?.doc){let t=Vn(n.doc,{});t.anchors=new Set;for(let e of n.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;let r=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(r);e.length>40&&(e=e.substring(0,36)+`..."`),Kn(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(t)}function tr(e,t,n){return new H(yn(e,void 0,n),yn(t,void 0,n))}var H=class e{constructor(e,t=null){Object.defineProperty(this,P,{value:Yt}),this.key=e,this.value=t}clone(t){let{key:n,value:r}=this;return R(n)&&(n=n.clone(t)),R(r)&&(r=r.clone(t)),new e(n,r)}toJSON(e,t){return $n(t,t?.mapAsMap?new Map:{},this)}toString(e,t,n){return e?.doc?Gn(this,e,t,n):JSON.stringify(this)}};function nr(e,t,n){return(t.inFlow??e.flow?ir:rr)(e,t,n)}function rr({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:a,onChompKeep:o,onComment:s}){let{indent:c,options:{commentString:l}}=n,u=Object.assign({},n,{indent:a,type:null}),d=!1,f=[];for(let e=0;eo=null,()=>d=!0);o&&(s+=Tn(s,a,l(o))),d&&o&&(d=!1),f.push(r+s)}let p;if(f.length===0)p=i.start+i.end;else{p=f[0];for(let e=1;ea=null);l||=d.length>u||o.includes(` +`),n0&&(l||=d.reduce((e,t)=>e+t.length+2,2)+(o.length+2)>t.options.lineWidth),l&&(o+=`,`)),a&&(o+=Tn(o,r,s(a))),d.push(o),u=d.length}let{start:f,end:p}=n;if(d.length===0)return f+p;if(!l){let e=d.reduce((e,t)=>e+t.length+2,2);l=t.options.lineWidth>0&&e>t.options.lineWidth}if(l){let e=f;for(let t of d)e+=t?`\n${a}${i}${t}`:` +`;return`${e}\n${i}${p}`}return`${f}${o}${d.join(` `)}${o}${p}`}function ar({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,``)),r){let i=wn(t(r),e);n.push(i.trimStart())}}function U(e,t){let n=I(t)?t.value:t;for(let r of e)if(F(r)&&(r.key===t||r.key===n||I(r.key)&&r.key.value===n))return r}var W=class extends Sn{static get tagName(){return`tag:yaml.org,2002:map`}constructor(e){super(Jt,e),this.items=[]}static from(e,t,n){let{keepUndefined:r,replacer:i}=n,a=new this(e),o=(e,o)=>{if(typeof i==`function`)o=i.call(t,e,o);else if(Array.isArray(i)&&!i.includes(e))return;(o!==void 0||r)&&a.items.push(tr(e,o,n))};if(t instanceof Map)for(let[e,n]of t)o(e,n);else if(t&&typeof t==`object`)for(let e of Object.keys(t))o(e,t[e]);return typeof e.sortMapEntries==`function`&&a.items.sort(e.sortMapEntries),a}add(e,t){let n;n=F(e)?e:!e||typeof e!=`object`||!(`key`in e)?new H(e,e?.value):new H(e.key,e.value);let r=U(this.items,n.key),i=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);I(r.value)&&gn(n.value)?r.value.value=n.value:r.value=n.value}else if(i){let e=this.items.findIndex(e=>i(n,e)<0);e===-1?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=U(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=U(this.items,e)?.value;return(!t&&I(n)?n.value:n)??void 0}has(e){return!!U(this.items,e)}set(e,t){this.add(new H(e,t),!0)}toJSON(e,t,n){let r=n?new n:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(r);for(let e of this.items)$n(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!F(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),nr(this,e,{blockItemPrefix:``,flowChars:{start:`{`,end:`}`},itemIndent:e.indent||``,onChompKeep:n,onComment:t})}},or={collection:`map`,default:!0,nodeClass:W,tag:`tag:yaml.org,2002:map`,resolve(e,t){return en(e)||t(`Expected a mapping for this tag`),e},createNode:(e,t,n)=>W.from(e,t,n)},sr=class extends Sn{static get tagName(){return`tag:yaml.org,2002:seq`}constructor(e){super(Zt,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=cr(e);return typeof t==`number`&&this.items.splice(t,1).length>0}get(e,t){let n=cr(e);if(typeof n!=`number`)return;let r=this.items[n];return!t&&I(r)?r.value:r}has(e){let t=cr(e);return typeof t==`number`&&t=0?t:null}var lr={collection:`seq`,default:!0,nodeClass:sr,tag:`tag:yaml.org,2002:seq`,resolve(e,t){return tn(e)||t(`Expected a sequence for this tag`),e},createNode:(e,t,n)=>sr.from(e,t,n)};function ur(e){return typeof e==`bigint`||Number.isInteger(e)}var dr=({value:e})=>JSON.stringify(e),fr=[{identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify:dr},{identify:e=>e==null,createNode:()=>new V(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^null$/,resolve:()=>null,stringify:dr},{identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^true$|^false$/,resolve:e=>e===`true`,stringify:dr},{identify:ur,default:!0,tag:`tag:yaml.org,2002:int`,test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>ur(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:dr}];[or,lr].concat(fr,{default:!0,tag:``,test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}});function pr(e,t,n){let{replacer:r}=n,i=new sr(e);i.tag=`tag:yaml.org,2002:pairs`;let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){typeof r==`function`&&(e=r.call(t,String(a++),e));let o,s;if(Array.isArray(e)){if(e.length===2)o=e[0],s=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){let t=Object.keys(e);if(t.length===1)o=t[0],s=e[o];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else o=e;i.items.push(tr(o,s,n))}return i}var mr=class e extends sr{constructor(){super(),this.add=W.prototype.add.bind(this),this.delete=W.prototype.delete.bind(this),this.get=W.prototype.get.bind(this),this.has=W.prototype.has.bind(this),this.set=W.prototype.set.bind(this),this.tag=e.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;t?.onCreate&&t.onCreate(n);for(let e of this.items){let r,i;if(F(e)?(r=B(e.key,``,t),i=B(e.value,r,t)):r=B(e,``,t),n.has(r))throw Error(`Ordered maps must not include duplicate keys`);n.set(r,i)}return n}static from(e,t,n){let r=pr(e,t,n),i=new this;return i.items=r.items,i}};mr.tag=`tag:yaml.org,2002:omap`;var hr=class e extends W{constructor(t){super(t),this.tag=e.tag}add(e){let t;t=F(e)?e:e&&typeof e==`object`&&`key`in e&&`value`in e&&e.value===null?new H(e.key,null):new H(e,null),U(this.items,t.key)||this.items.push(t)}get(e,t){let n=U(this.items,e);return!t&&F(n)?I(n.key)?n.key.value:n.key:n}set(e,t){if(typeof t!=`boolean`)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let n=U(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new H(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error(`Set items must all have null values`)}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)typeof r==`function`&&(e=r.call(t,e,e)),i.items.push(tr(e,null,n));return i}};hr.tag=`tag:yaml.org,2002:set`;var gr=Symbol(`break visit`),_r=Symbol(`skip children`),vr=Symbol(`remove item`);function yr(e,t){`type`in e&&e.type===`document`&&(e={start:e.start,value:e.value}),br(Object.freeze([]),e,t)}yr.BREAK=gr,yr.SKIP=_r,yr.REMOVE=vr,yr.itemAtPath=(e,t)=>{let n=e;for(let[e,r]of t){let t=n?.[e];if(t&&`items`in t)n=t.items[r];else return}return n},yr.parentCollection=(e,t)=>{let n=yr.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],i=n?.[r];if(i&&`items`in i)return i;throw Error(`Parent collection not found`)};function br(e,t,n){let r=n(t,e);if(typeof r==`symbol`)return r;for(let i of[`key`,`value`]){let a=t[i];if(a&&`items`in a){for(let t=0;tCr.push(e)),N(G,`$onPatch`,e=>wr.push(e)),ze(),N(G,`$patch`,async()=>!1);var{init:Tr,onPatch:Er,onUpdate:Dr,patch:Or,state:kr}=Be(G,G,!1),K=_({page:0,clicks:0,timer:{status:`stopped`,slides:{},startedAt:0,pausedAt:0}}),Ar=[],jr=[];N(K,`$syncUp`,!0),N(K,`$syncDown`,!0),N(K,`$paused`,!1),N(K,`$onSet`,e=>Ar.push(e)),N(K,`$onPatch`,e=>jr.push(e)),ze(),N(K,`$patch`,async()=>!1);var{init:Mr,onPatch:Nr,onUpdate:Pr,patch:Fr,state:Ir}=Be(K,{page:1,clicks:0,clicksTotal:0,timer:{status:`stopped`,slides:{},startedAt:0,pausedAt:0}});function Lr(){let e=i().appContext.app,t=_({nav:ue(),configs:M,themeConfigs:m(()=>M.themeConfig)});e.provide(Me,p(`none`)),e.provide(Re,t),e.provide(ke,m(()=>t.nav.currentSlideNo)),e.provide(Oe,y(ne()));for(let e of zt)e();let{clicksContext:n,currentSlideNo:r,hasPrimarySlide:a,isNotesViewer:o,isPresenter:s,isPrintMode:c}=ue();Mt({title:E,htmlAttrs:M.htmlAttrs}),Gt(),Mr(`${E} - shared`),Tr(`${E} - drawings`);let l=`${location.origin}_${xr()}`,u=m(()=>s.value?`presenter`:`viewer`);function f(){(s.value?k.value.presenterSend:k.value.viewerSend)&&(o.value||c.value||!s.value&&!Le.includes(location.host.split(`:`)[0])||(Fr(`page`,+r.value),Fr(`clicks`,n.value.current),Fr(`clicksTotal`,n.value.total),Fr(`lastUpdate`,{id:l,type:u.value,time:Date.now()})))}let h=ve();h.afterEach(f),d(n,f),Nr(e=>{(s.value?k.value.presenterReceive:k.value.viewerReceive)&&(!a.value||c.value||e.lastUpdate?.type!==u.value&&(+e.page!=+r.value||+n.value.current!=+e.clicks)&&(A.value=!1,h.replace({path:te(e.page,s.value),query:{...h.currentRoute.value.query,clicks:e.clicks||0}})))})}var Rr=l({__name:`App`,setup(e){return Lr(),c(()=>{for(let[e,t]of Object.entries(O.value))document.body.style.setProperty(e,t.toString())}),(e,t)=>{let i=u(`RouterView`);return n(),f(v,null,[r(i),w(`v-if`,!0)],64)}}});function zr(e,t,n){let r=e.push,i=e;return i.ssr=!1,i.hooks=t,i.dirty=!!i.dirty,i.use=e=>Pt(i,e),i.render=()=>n(i),i.invalidate=()=>{for(let e of i.entries.values())delete e._tags;i.dirty=!0,t.callHook(`entries:updated`,i)},i.push=(n,a)=>{let o=a?.onRendered?t.hook(`dom:rendered`,a.onRendered):void 0,s=r(n,a),c=e.entries.get(s._i);return c&&(c._o=n),i.dirty=!0,t.callHook(`entries:updated`,i),{_i:s._i,patch(e){s.patch(e),i.dirty=!0,t.callHook(`entries:updated`,i)},dispose(){o?.(),e.entries.has(s._i)&&(s.dispose(),i.invalidate())}}},t.hook(`entries:updated`,()=>{i.render()}),i}var Br=/\s+/;function Vr(e={}){return t=>Wr(t,e)}function Hr(e){for(let t of e.entries.values())if(t._pending!==void 0)return!0;return!1}function Ur(e,t){let n={_d:t,_t:t.title,_e:new Map([[`htmlAttrs`,t.documentElement],[`bodyAttrs`,t.body]]),_p:{},_s:{},_l:new Map};for(let e of[...t.body.children,...t.head.children]){let t=e.tagName.toLowerCase();if(!Ue.has(t))continue;let r={innerHTML:e.innerHTML};for(let t of e.getAttributeNames())r[t]=e.getAttribute(t);let i=ut({tag:t,props:{}},r);i.key=e.getAttribute(`data-hid`)||void 0;let a=at(i)||ot(i),o=a,s=1;for(;n._e.has(o);)o=`${a}:${s++}`;n._e.set(o,e)}for(let t of e.entries.values())if(t._o!==void 0){let e=t._o;for(let t of[`bodyAttrs`,`htmlAttrs`]){let r=e[t]?.class;if(typeof r==`string`){let e=n._e.get(t);for(let i of r.split(Br))i&&(n._p[`${t}:attr:class:${i}`]=()=>e.classList.remove(i))}}}return n}function Wr(e,t={}){let n=t.document||e.resolvedOptions.document,r=e._dom,i=!!r&&r._d!==n;if(!n||r&&!i&&!e.dirty&&!Hr(e)||e._du)return!1;let a=n.defaultView;e._du=!0;let o=!1;try{let i=function(e,t,n){d._s[e]=!n&&f[e]||t,delete f[e]},s=function(e,t,n,r,a,o){let s=`${e}:event:${t}`,c=d._l.get(s);if(c&&c[0]===o&&c[1]===n&&c[2]===r){i(s,c[4]);return}c?.[4]();let l=`data-${t}`,u=(e=>r.call(a,e)),f=()=>{o.removeEventListener(n,u),a.getAttribute(l)===``&&a.removeAttribute(l),d._l.get(s)?.[3]===u&&d._l.delete(s)};o.addEventListener(n,u),d._l.set(s,[o,n,r,u,f]),a.setAttribute(l,``),i(s,f,!0)},c=function({id:e,$el:t,tag:n}){let r=n.tag.endsWith(`Attrs`);if(d._e.set(e,t),!r){let r=n.textContent;r!=null&&r!==``&&(r!==t.textContent&&(t.textContent=r),i(`${e}:text`,()=>{t.textContent===r&&(t.textContent=``)},!0));let a=n.innerHTML;a!=null&&a!==``&&(a!==t.innerHTML&&(t.innerHTML=a),i(`${e}:html`,()=>{t.innerHTML===a&&(t.innerHTML=``)},!0));let o=`${e}:el`;i(o,f[o]||(()=>{t?.remove(),d._e.delete(e)}))}for(let r in n.props){let o=n.props[r];if(r[0]===`o`&&r[1]===`n`&&typeof o==`function`){let i=r.slice(2);t?.dataset?.[`${r}fired`]&&o.call(t,new((a?.Event)||Event)(i)),s(e,r,i,o,t,n.tag===`bodyAttrs`&&a?a:t);continue}let c=`${e}:attr:${r}`;if(r===`class`&&o)for(let e of o){let n=`${c}:${e}`;i(n,f[n]||(()=>t.classList.remove(e))),t.classList.contains(e)||t.classList.add(e)}else if(r===`style`&&o)for(let[e,n]of o){let r=`${c}:${e}`;i(r,f[r]||(()=>t.style.removeProperty(e))),t.style.setProperty(e,n)}else o!==!1&&o!==null&&(t.getAttribute(r)!==o&&t.setAttribute(r,o===!0?``:String(o)),i(c,f[c]||(()=>t.removeAttribute(r))))}},l={shouldRender:!0,tags:[]};if(tt(e,`dom:beforeRender`,l),!l.shouldRender)return!1;let u=r;if(u?._d!==n){if(u){for(let e in u._s)u._s[e]();for(let e in u._p)u._p[e]();u._s=u._p={},u._e.clear(),u._l.clear()}u=void 0}u?u._p=u._s:u=Ur(e,n),u._s={};let d=u,f=d._p,p=[],m={};e.dirty=!1;let h=Dt(e,t.tagWeight?{tagWeight:t.tagWeight}:void 0),g=[],_={};for(let e of h){let t=_[e._d]||0,r=(t?`${e._d}:${t}`:e._d)||e._h,a={tag:e,id:r,shouldRender:!0};if(e.tag===`meta`&&e._d&&it(e._d)&&(_[e._d]=t+1),g.push(a),e.tag===`title`){n.title=e.textContent,i(`title:`,()=>n.title=d._t);continue}a.$el=d._e.get(r),a.$el?c(a):Ue.has(e.tag)&&p.push(a)}for(let e of p)e.$el=n.createElement(e.tag.tag),c(e),(m[e.tag.tagPosition||`head`]??=n.createDocumentFragment()).appendChild(e.$el);m.head&&n.head.appendChild(m.head),m.bodyOpen&&n.body.insertBefore(m.bodyOpen,n.body.firstChild),m.bodyClose&&n.body.appendChild(m.bodyClose);for(let e in f)f[e]();e._dom=d,o=!0,tt(e,`dom:rendered`,{renders:g})}catch(t){throw e.dirty=!0,t}finally{e._du=!1}return o&&(e.dirty||Hr(e))&&Wr(e,t),o}var Gr=e=>typeof e.tagPriority==`number`?e.tagPriority:100+(Ye[e.tagPriority]||0);function Kr(e={}){e.document=e.document||(typeof window<`u`?document:void 0);let t=e.render||Vr({document:e.document}),n=zr(Ft(t,{document:e.document,propResolvers:e.propResolvers,_tagWeight:Gr,init:[]}),et(e.hooks),t);return e.plugins?.forEach(e=>n.use(e)),e.init?.forEach(e=>e&&n.push(e)),n}function qr(e={}){let t=Vr(),n,r=0;return n=Kr({render:()=>{let e=++r;setTimeout(()=>{e===r&&t(n)},0)},...e}),n.install=At(n),n}var Jr=Object.assign({}),Yr=Object.assign({}),Xr=Object.assign({}),Zr=[Object.values(Jr)[0],Object.values(Yr)[0],Object.values(Xr)[0]].filter(Boolean);function Qr(e,t=``){let n=[`slidev-page`,t],r=e?.meta?.slide?.no;return r!=null&&n.push(`slidev-page-${r}`),n.filter(Boolean).join(` `)}async function $r(){let{saveAs:t}=await j(async()=>{let{saveAs:t}=await import(`./modules/file-saver-BpWusTEB.js`).then(t=>e(t.t(),1));return{saveAs:t}},__vite__mapDeps([0,1]),import.meta.url);t(typeof M.download==`string`?M.download:M.exportFilename?`${M.exportFilename}.pdf`:`./slidev-exported.pdf`,`${M.title}.pdf`)}function ei(e,t,n){return(e.instance?.$).provides[t]??n}var ti=/[\s,]+/;function ni(e,t){let n=t.map(e=>`${Fe}${e}`);e.classList.forEach(t=>{t.startsWith(`slidev-vclick-anim-`)&&!n.includes(t)&&e.classList.remove(t)}),n.forEach(t=>e.classList.add(t))}function ri(){return{install(e){e.directive(`click`,{name:`v-click`,mounted(e,t){let n=ai(e,t,t.value);n!=null&&(e.classList.toggle(De,!0),e.dataset.slidevClicksStart=String(n.start),Number.isFinite(n.end)&&(e.dataset.slidevClicksEnd=String(n.end)),e.watchStopHandle=c(()=>{let t=n.isActive.value,r=n.isCurrent.value,i=t&&!r;n.flagHide?(e.classList.toggle(Ee,t),e.classList.toggle(Ne,t)):e.classList.toggle(Ee,!t),ni(e,n.flagAnimations.value),e.classList.toggle(je,r),e.classList.toggle(Ie,i)}))},unmounted:oi}),e.directive(`after`,{name:`v-after`,mounted(e,t){let n=ai(e,t,`+0`);n!=null&&(e.classList.toggle(De,!0),e.watchStopHandle=c(()=>{let t=n.isActive.value,r=n.isCurrent.value,i=t&&!r;n.flagHide?(e.classList.toggle(Ee,t),e.classList.toggle(Ne,t)):e.classList.toggle(Ee,!t),ni(e,n.flagAnimations.value),e.classList.toggle(je,r),e.classList.toggle(Ie,i)}))},unmounted:oi}),e.directive(`click-hide`,{name:`v-click-hide`,mounted(e,t){let n=ai(e,t,t.value,!0);n!=null&&(e.classList.toggle(De,!0),e.watchStopHandle=c(()=>{let t=n.isActive.value,r=n.isCurrent.value,i=t&&!r;e.classList.toggle(Ee,t),e.classList.toggle(Ne,t),ni(e,n.flagAnimations.value),e.classList.toggle(je,r),e.classList.toggle(Ie,i)}))},unmounted:oi})}}}var ii=new Map;function ai(e,t,n,r=!1){let i=ei(t,Oe)?.value,a=ei(t,Pe);if(!e||!i)return null;let o=r||t.modifiers.hide!==!1&&t.modifiers.hide!=null,s=Object.keys({...t.modifiers}).filter(e=>e!==`hide`),c=m(()=>{if(s.length>0)return s;let e=a?.clickAnimation||M.clickAnimation;return e?e.split(ti).filter(Boolean):[]}),l=i.calculate(n);if(!l)return null;i.register(e,l);let u=m(()=>o?!l.isActive.value:l.isActive.value),d=m(()=>u.value?`shown`:Number.isFinite(l.end)?i.current{setTimeout(n.update,300)},{flush:`post`,immediate:!0});return{...n,stop:r}}function ci(e){return{info:p(fe(e)?.meta.slide??null),update:async()=>{}}}var li={};function ui(e){function t(e){return li[e]??=ci(e)}return{info:m({get(){return t(T(e)).info.value},set(n){t(T(e)).info.value=n}}),update:async(n,r)=>{let i=t(r??T(e)),a=await i.update(n);return a&&(i.info.value=a),a}}}function di(e){return()=>{}}function fi(e,t,n,r=!1){function i(t){return e?ei(e,t):pe(t)}let a=i(Me),o=i(`$$slidev-fontmatter`)??{},s=i(ke),c=m(()=>di(s.value)),l=i(`$$slidev-slide-scale`)??p(1),u=i(`$$slidev-slide-zoom`)??p(1),{left:f,top:h,stop:g}=si(i(`$$slidev-slide-element`)??p()),{isPrintMode:_}=ue(),v=[`slide`,`presenter`].includes(a.value)&&!_.value,y=e?`directive`:`prop`,b=xr(),x;if(Array.isArray(t)?x=t:typeof t==`string`&&t.includes(`,`)?x=t.split(`,`).map(Number):t!=null&&(y=`frontmatter`,b=`${t}`,t=o?.dragPos?.[b],x=t?.split(`,`).map(Number)),y!==`frontmatter`&&!n)throw Error("[Slidev] Can not identify the source position of the v-drag element, please provide an explicit `id` prop.");let S=[g],C=!r&&t!=null&&!Number.isFinite(x?.[3]);x??=[NaN,NaN,0];let w=p(x[2]),T=p(x[0]+x[2]/2),E=p(r?0:x[4]??0),ee=m(()=>E.value*Math.PI/180),te=m(()=>Math.sin(ee.value)),ne=m(()=>Math.cos(ee.value)),re=p(),D=p({left:0,top:0,width:0,height:0}),ie=p(0);function ae(){if(!re.value)return;let e=re.value.getBoundingClientRect();D.value={left:e.left/u.value,top:e.top/u.value,width:e.width/u.value,height:e.height/u.value},ie.value=(D.value.width+D.value.height)/l.value/(Math.abs(te.value)+Math.abs(ne.value))-w.value}S.push(d(w,ae,{flush:`post`}));let oe=p(x[3]??0),O=C?m({get:()=>(C?ie.value:oe.value)||0,set:e=>!C&&(oe.value=e)}):oe,se=p(C?x[1]:x[1]+x[3]/2),k=C?m({get:()=>se.value+O.value/2,set:e=>se.value=e-O.value/2}):se,ce=m(()=>Number.isFinite(T.value)?{position:`absolute`,zIndex:100,left:`${T.value-w.value/2}px`,top:`${k.value-O.value/2}px`,width:`${w.value}px`,height:C?void 0:`${O.value}px`,transformOrigin:`center center`,transform:`rotate(${E.value}deg)`}:{position:`absolute`,zIndex:100});S.push(d([T,k,w,O,E],([e,t,r,i,a])=>{let o=[e-r/2,t-i/2,r].map(Math.round).join();o+=C?y===`directive`?`,NaN`:`,_`:`,${Math.round(i)}`,Math.round(a)!==0&&(o+=`,${Math.round(a)}`),y===`directive`&&(o=`[${o}]`),c.value(b,o,y,n)}));let A={dragId:b,dataSource:y,markdownSource:n,isArrow:r,zoom:u,autoHeight:C,x0:T,y0:k,width:w,height:O,rotate:E,container:re,containerStyle:ce,watchStopHandles:S,dragging:m(()=>le.value===A),mounted(){v&&(ae(),t||setTimeout(()=>{ae(),T.value=(D.value.left+D.value.width/2-f.value)/l.value,k.value=(D.value.top-h.value)/l.value,w.value=D.value.width/l.value,O.value=D.value.height/l.value},100))},unmounted(){v&&A.stopDragging()},startDragging(){v&&(ae(),le.value=A)},stopDragging(){v&&le.value===A&&(le.value=null)}};return S.push(Ce(re,e=>{let t=document.querySelector(`#drag-control-container`);t&&e.target&&t.contains(e.target)||A.stopDragging()}),d(_e(),e=>{e||A.stopDragging()})),A}function pi(){return{install(e){e.directive(`drag`,{name:`v-drag`,created(e,t,n){let r=fi(t,t.value,n.props?.markdownSource);n.props&&(n.props={...n.props},delete n.props.markdownSource),r.container.value=e,e.draggingState=r,e.dataset.dragId=r.dragId,r.watchStopHandles.push(d(r.containerStyle,t=>{for(let[n,r]of Object.entries(t))r&&(e.style[n]=r)},{immediate:!0})),e.addEventListener(`dblclick`,r.startDragging)},mounted(e){e.draggingState.mounted()},unmounted(e){let t=e.draggingState;t.unmounted(),e.removeEventListener(`dblclick`,t.startDragging),t.watchStopHandles.forEach(e=>e())}})}}}function mi(){return Math.floor(Math.random()*2**31)}var hi=class{constructor(e){this.seed=e}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}};function gi(e,t,n){if(e&&e.length){let[r,i]=t,a=Math.PI/180*n,o=Math.cos(a),s=Math.sin(a);for(let t of e){let[e,n]=t;t[0]=(e-r)*o-(n-i)*s+r,t[1]=(e-r)*s+(n-i)*o+i}}}function _i(e,t,n){let r=[];e.forEach(e=>r.push(...e)),gi(r,t,n)}function vi(e,t){return e[0]===t[0]&&e[1]===t[1]}function yi(e,t,n,r=1){let i=n,a=Math.max(t,.1),o=e[0]&&e[0][0]&&typeof e[0][0]==`number`?[e]:e,s=[0,0];if(i)for(let e of o)gi(e,s,i);let c=bi(o,a,r);if(i){for(let e of o)gi(e,s,-i);_i(c,s,-i)}return c}function bi(e,t,n){let r=[];for(let t of e){let e=[...t];vi(e[0],e[e.length-1])||e.push([e[0][0],e[0][1]]),e.length>2&&r.push(e)}let i=[];t=Math.max(t,.1);let a=[];for(let e of r)for(let t=0;te.ymint.ymin?1:e.xt.x?1:e.ymax===t.ymax?0:(e.ymax-t.ymax)/Math.abs(e.ymax-t.ymax)),!a.length)return i;let o=[],s=a[0].ymin,c=0;for(;o.length||a.length;){if(a.length){let e=-1;for(let t=0;ts);t++)e=t;a.splice(0,e+1).forEach(e=>{o.push({s,edge:e})})}if(o=o.filter(e=>!(e.edge.ymax<=s)),o.sort((e,t)=>e.edge.x===t.edge.x?0:(e.edge.x-t.edge.x)/Math.abs(e.edge.x-t.edge.x)),(n!==1||c%t===0)&&o.length>1)for(let e=0;e=o.length)break;let n=o[e].edge,r=o[t].edge;i.push([[Math.round(n.x),s],[Math.round(r.x),s]])}s+=n,o.forEach(e=>{e.edge.x=e.edge.x+n*e.edge.islope}),c++}return i}function xi(e,t){let n=t.hachureAngle+90,r=t.hachureGap;r<0&&(r=t.strokeWidth*4),r=Math.round(Math.max(r,.1));let i=1;return t.roughness>=1&&(t.randomizer?.next()||Math.random())>.7&&(i=r),yi(e,r,n,i||1)}var Si=class{constructor(e){this.helper=e}fillPolygons(e,t){return this._fillPolygons(e,t)}_fillPolygons(e,t){let n=xi(e,t);return{type:`fillSketch`,ops:this.renderLines(n,t)}}renderLines(e,t){let n=[];for(let r of e)n.push(...this.helper.doubleLineOps(r[0][0],r[0][1],r[1][0],r[1][1],t));return n}};function Ci(e){let t=e[0],n=e[1];return Math.sqrt((t[0]-n[0])**2+(t[1]-n[1])**2)}var wi=class extends Si{fillPolygons(e,t){let n=t.hachureGap;n<0&&(n=t.strokeWidth*4),n=Math.max(n,.1);let r=xi(e,Object.assign({},t,{hachureGap:n})),i=Math.PI/180*t.hachureAngle,a=[],o=n*.5*Math.cos(i),s=n*.5*Math.sin(i);for(let[e,t]of r)Ci([e,t])&&a.push([[e[0]-o,e[1]+s],[...t]],[[e[0]+o,e[1]-s],[...t]]);return{type:`fillSketch`,ops:this.renderLines(a,t)}}},Ti=class extends Si{fillPolygons(e,t){let n=this._fillPolygons(e,t),r=Object.assign({},t,{hachureAngle:t.hachureAngle+90}),i=this._fillPolygons(e,r);return n.ops=n.ops.concat(i.ops),n}},Ei=class{constructor(e){this.helper=e}fillPolygons(e,t){t=Object.assign({},t,{hachureAngle:0});let n=xi(e,t);return this.dotsOnLines(n,t)}dotsOnLines(e,t){let n=[],r=t.hachureGap;r<0&&(r=t.strokeWidth*4),r=Math.max(r,.1);let i=t.fillWeight;i<0&&(i=t.strokeWidth/2);let a=r/4;for(let o of e){let e=Ci(o),s=e/r,c=Math.ceil(s)-1,l=e-c*r,u=(o[0][0]+o[1][0])/2-r/4,d=Math.min(o[0][1],o[1][1]);for(let e=0;e{let a=Ci(e),o=Math.floor(a/(n+r)),s=(a+r-o*(n+r))/2,c=e[0],l=e[1];c[0]>l[0]&&(c=e[1],l=e[0]);let u=Math.atan((l[1]-c[1])/(l[0]-c[0]));for(let e=0;e{let i=Ci(e),a=Math.round(i/(2*t)),o=e[0],s=e[1];o[0]>s[0]&&(o=e[1],s=e[0]);let c=Math.atan((s[1]-o[1])/(s[0]-o[0]));for(let e=0;er%2?e+n:e+t);a.push({key:`C`,data:e}),t=e[4],n=e[5];break}case`Q`:a.push({key:`Q`,data:[...s]}),t=s[2],n=s[3];break;case`q`:{let e=s.map((e,r)=>r%2?e+n:e+t);a.push({key:`Q`,data:e}),t=e[2],n=e[3];break}case`A`:a.push({key:`A`,data:[...s]}),t=s[5],n=s[6];break;case`a`:t+=s[5],n+=s[6],a.push({key:`A`,data:[s[0],s[1],s[2],s[3],s[4],t,n]});break;case`H`:a.push({key:`H`,data:[...s]}),t=s[0];break;case`h`:t+=s[0],a.push({key:`H`,data:[t]});break;case`V`:a.push({key:`V`,data:[...s]}),n=s[0];break;case`v`:n+=s[0],a.push({key:`V`,data:[n]});break;case`S`:a.push({key:`S`,data:[...s]}),t=s[2],n=s[3];break;case`s`:{let e=s.map((e,r)=>r%2?e+n:e+t);a.push({key:`S`,data:e}),t=e[2],n=e[3];break}case`T`:a.push({key:`T`,data:[...s]}),t=s[0],n=s[1];break;case`t`:t+=s[0],n+=s[1],a.push({key:`T`,data:[t,n]});break;case`Z`:case`z`:a.push({key:`Z`,data:[]}),t=r,n=i}return a}function Ri(e){let t=[],n=``,r=0,i=0,a=0,o=0,s=0,c=0;for(let{key:l,data:u}of e){switch(l){case`M`:t.push({key:`M`,data:[...u]}),[r,i]=u,[a,o]=u;break;case`C`:t.push({key:`C`,data:[...u]}),r=u[4],i=u[5],s=u[2],c=u[3];break;case`L`:t.push({key:`L`,data:[...u]}),[r,i]=u;break;case`H`:r=u[0],t.push({key:`L`,data:[r,i]});break;case`V`:i=u[0],t.push({key:`L`,data:[r,i]});break;case`S`:{let e=0,a=0;n===`C`||n===`S`?(e=r+(r-s),a=i+(i-c)):(e=r,a=i),t.push({key:`C`,data:[e,a,...u]}),s=u[0],c=u[1],r=u[2],i=u[3];break}case`T`:{let[e,a]=u,o=0,l=0;n===`Q`||n===`T`?(o=r+(r-s),l=i+(i-c)):(o=r,l=i);let d=r+2*(o-r)/3,f=i+2*(l-i)/3,p=e+2*(o-e)/3,m=a+2*(l-a)/3;t.push({key:`C`,data:[d,f,p,m,e,a]}),s=o,c=l,r=e,i=a;break}case`Q`:{let[e,n,a,o]=u,l=r+2*(e-r)/3,d=i+2*(n-i)/3,f=a+2*(e-a)/3,p=o+2*(n-o)/3;t.push({key:`C`,data:[l,d,f,p,a,o]}),s=e,c=n,r=a,i=o;break}case`A`:{let e=Math.abs(u[0]),n=Math.abs(u[1]),a=u[2],o=u[3],s=u[4],c=u[5],l=u[6];e===0||n===0?(t.push({key:`C`,data:[r,i,c,l,c,l]}),r=c,i=l):(r!==c||i!==l)&&(Vi(r,i,c,l,e,n,a,o,s).forEach(function(e){t.push({key:`C`,data:e})}),r=c,i=l);break}case`Z`:t.push({key:`Z`,data:[]}),r=a,i=o}n=l}return t}function zi(e){return Math.PI*e/180}function Bi(e,t,n){return[e*Math.cos(n)-t*Math.sin(n),e*Math.sin(n)+t*Math.cos(n)]}function Vi(e,t,n,r,i,a,o,s,c,l){let u=zi(o),d=[],f=0,p=0,m=0,h=0;if(l)[f,p,m,h]=l;else{[e,t]=Bi(e,t,-u),[n,r]=Bi(n,r,-u);let o=(e-n)/2,l=(t-r)/2,d=o*o/(i*i)+l*l/(a*a);d>1&&(d=Math.sqrt(d),i=d*i,a=d*a);let g=s===c?-1:1,_=i*i,v=a*a,y=_*v-_*l*l-v*o*o,b=_*l*l+v*o*o,x=g*Math.sqrt(Math.abs(y/b));m=x*i*l/a+(e+n)/2,h=x*-a*o/i+(t+r)/2,f=Math.asin(parseFloat(((t-h)/a).toFixed(9))),p=Math.asin(parseFloat(((r-h)/a).toFixed(9))),ep&&(f-=Math.PI*2),!c&&p>f&&(p-=Math.PI*2)}let g=p-f;if(Math.abs(g)>Math.PI*120/180){let e=p,t=n,s=r;p=c&&p>f?f+Math.PI*120/180*1:f+Math.PI*120/180*-1,n=m+i*Math.cos(p),r=h+a*Math.sin(p),d=Vi(n,r,t,s,i,a,o,0,c,[p,e,m,h])}g=p-f;let _=Math.cos(f),v=Math.sin(f),y=Math.cos(p),b=Math.sin(p),x=Math.tan(g/4),S=4/3*i*x,C=4/3*a*x,w=[e,t],T=[e+S*v,t-C*_],E=[n+S*b,r-C*y],ee=[n,r];if(T[0]=2*w[0]-T[0],T[1]=2*w[1]-T[1],l)return[T,E,ee].concat(d);{d=[T,E,ee].concat(d);let e=[];for(let t=0;t2){let i=[];for(let t=0;tMath.PI*2&&(p=0,m=Math.PI*2);let h=Math.PI*2/c.curveStepCount,g=Math.min(h/2,(m-p)/2),_=da(g,l,u,d,f,p,m,1,c);if(!c.disableMultiStroke){let e=da(g,l,u,d,f,p,m,1.5,c);_.push(...e)}return o&&(s?_.push(...X(l,u,l+d*Math.cos(p),u+f*Math.sin(p),c),...X(l,u,l+d*Math.cos(m),u+f*Math.sin(m),c)):_.push({op:`lineTo`,data:[l,u]},{op:`lineTo`,data:[l+d*Math.cos(p),u+f*Math.sin(p)]})),{type:`path`,ops:_}}function Zi(e,t){let n=Ri(Li(Ii(e))),r=[],i=[0,0],a=[0,0];for(let{key:e,data:o}of n)switch(e){case`M`:a=[o[0],o[1]],i=[o[0],o[1]];break;case`L`:r.push(...X(a[0],a[1],o[0],o[1],t)),a=[o[0],o[1]];break;case`C`:{let[e,n,i,s,c,l]=o;r.push(...fa(e,n,i,s,c,l,a,t)),a=[c,l];break}case`Z`:r.push(...X(a[0],a[1],i[0],i[1],t)),a=[i[0],i[1]]}return{type:`path`,ops:r}}function Qi(e,t){let n=[];for(let r of e)if(r.length){let e=t.maxRandomnessOffset||0,i=r.length;if(i>2){n.push({op:`move`,data:[r[0][0]+Y(e,t),r[0][1]+Y(e,t)]});for(let a=1;aMath.PI*2&&(d=0,f=Math.PI*2);let p=(f-d)/o.curveStepCount,m=[];for(let e=d;e<=f;e+=p)m.push([s+l*Math.cos(e),c+u*Math.sin(e)]);return m.push([s+l*Math.cos(f),c+u*Math.sin(f)]),m.push([s,c]),$i([m],o)}function ta(e,t){return Y(e,t)}function na(e,t,n){return oa(e,t,n)}function ra(e,t,n,r,i){return X(e,t,n,r,i,!0)}function ia(e){let t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function aa(e){return e.randomizer||=new hi(e.seed||0),e.randomizer.next()}function oa(e,t,n,r=1){return n.roughness*r*(aa(n)*(t-e)+e)}function Y(e,t,n=1){return oa(-e,e,t,n)}function X(e,t,n,r,i,a=!1){let o=a?i.disableMultiStrokeFill:i.disableMultiStroke,s=sa(e,t,n,r,i,!0,!1);if(o)return s;let c=sa(e,t,n,r,i,!0,!0);return s.concat(c)}function sa(e,t,n,r,i,a,o){let s=(e-n)**2+(t-r)**2,c=Math.sqrt(s),l=1;l=c<200?1:c>500?.4:-.0016668*c+1.233334;let u=i.maxRandomnessOffset||0;u*u*100>s&&(u=c/10);let d=u/2,f=.2+aa(i)*.2,p=i.bowing*i.maxRandomnessOffset*(r-t)/200,m=i.bowing*i.maxRandomnessOffset*(e-n)/200;p=Y(p,i,l),m=Y(m,i,l);let h=[],g=()=>Y(d,i,l),_=()=>Y(u,i,l),v=i.preserveVertices;return a&&(o?h.push({op:`move`,data:[e+(v?0:g()),t+(v?0:g())]}):h.push({op:`move`,data:[e+(v?0:Y(u,i,l)),t+(v?0:Y(u,i,l))]})),o?h.push({op:`bcurveTo`,data:[p+e+(n-e)*f+g(),m+t+(r-t)*f+g(),p+e+2*(n-e)*f+g(),m+t+2*(r-t)*f+g(),n+(v?0:g()),r+(v?0:g())]}):h.push({op:`bcurveTo`,data:[p+e+(n-e)*f+_(),m+t+(r-t)*f+_(),p+e+2*(n-e)*f+_(),m+t+2*(r-t)*f+_(),n+(v?0:_()),r+(v?0:_())]}),h}function ca(e,t,n){if(!e.length)return[];let r=[];r.push([e[0][0]+Y(t,n),e[0][1]+Y(t,n)]),r.push([e[0][0]+Y(t,n),e[0][1]+Y(t,n)]);for(let i=1;i3){let a=[],o=1-n.curveTightness;i.push({op:`move`,data:[e[1][0],e[1][1]]});for(let t=1;t+21&&i.push(n):i.push(n),i.push(e[t+3])}else{let r=.5,a=e[t+0],o=e[t+1],s=e[t+2],c=e[t+3],l=va(a,o,r),u=va(o,s,r),d=va(s,c,r),f=va(l,u,r),p=va(u,d,r),m=va(f,p,r);ba([a,l,f,m],0,n,i),ba([m,p,d,c],0,n,i)}return i}function xa(e,t){return Sa(e,0,e.length,t)}function Sa(e,t,n,r,i){let a=i||[],o=e[t],s=e[n-1],c=0,l=1;for(let r=t+1;rc&&(c=t,l=r)}return Math.sqrt(c)>r?(Sa(e,t,l+1,r,a),Sa(e,l,n,r,a)):(a.length||a.push(o),a.push(s)),a}function Ca(e,t=.15,n){let r=[],i=(e.length-1)/3;for(let n=0;n0?Sa(r,0,r.length,n):r}function wa(e,t,n){let r=Ri(Li(Ii(e))),i=[],a=[],o=[0,0],s=[],c=()=>{s.length>=4&&a.push(...Ca(s,t)),s=[]},l=()=>{c(),a.length&&(i.push(a),a=[])};for(let{key:e,data:t}of r)switch(e){case`M`:l(),o=[t[0],t[1]],a.push(o);break;case`L`:c(),a.push([t[0],t[1]]);break;case`C`:if(!s.length){let e=a.length?a[a.length-1]:o;s.push([e[0],e[1]])}s.push([t[0],t[1]]),s.push([t[2],t[3]]),s.push([t[4],t[5]]);break;case`Z`:c(),a.push([o[0],o[1]])}if(l(),!n)return i;let u=[];for(let e of i){let t=xa(e,n);t.length&&u.push(t)}return u}var Z=`none`,Ta=class{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:`#000`,strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:`hachure`,fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return mi()}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,t,n){return{shape:e,sets:t||[],options:n||this.defaultOptions}}line(e,t,n,r,i){let a=this._o(i);return this._d(`line`,[J(e,t,n,r,a)],a)}rectangle(e,t,n,r,i){let a=this._o(i),o=[],s=Gi(e,t,n,r,a);if(a.fill){let i=[[e,t],[e+n,t],[e+n,t+r],[e,t+r]];a.fillStyle===`solid`?o.push(Qi([i],a)):o.push($i([i],a))}return a.stroke!==Z&&o.push(s),this._d(`rectangle`,o,a)}ellipse(e,t,n,r,i){let a=this._o(i),o=[],s=Ji(n,r,a),c=Yi(e,t,a,s);if(a.fill){if(a.fillStyle===`solid`){let n=Yi(e,t,a,s).opset;n.type=`fillPath`,o.push(n)}else o.push($i([c.estimatedPoints],a))}return a.stroke!==Z&&o.push(c.opset),this._d(`ellipse`,o,a)}circle(e,t,n,r){let i=this.ellipse(e,t,n,n,r);return i.shape=`circle`,i}linearPath(e,t){let n=this._o(t);return this._d(`linearPath`,[Ui(e,!1,n)],n)}arc(e,t,n,r,i,a,o=!1,s){let c=this._o(s),l=[],u=Xi(e,t,n,r,i,a,o,!0,c);if(o&&c.fill){if(c.fillStyle===`solid`){let o=Object.assign({},c);o.disableMultiStroke=!0;let s=Xi(e,t,n,r,i,a,!0,!1,o);s.type=`fillPath`,l.push(s)}else l.push(ea(e,t,n,r,i,a,c))}return c.stroke!==Z&&l.push(u),this._d(`arc`,l,c)}curve(e,t){let n=this._o(t),r=[],i=Ki(e,n);if(n.fill&&n.fill!==Z){if(n.fillStyle===`solid`){let t=Ki(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:`fillPath`,ops:this._mergedShape(t.ops)})}else{let t=[],i=e;if(i.length){let e=typeof i[0][0]==`number`?[i]:i;for(let r of e)r.length<3?t.push(...r):r.length===3?t.push(...Ca(ma([r[0],r[0],r[1],r[2]]),10,(1+n.roughness)/2)):t.push(...Ca(ma(r),10,(1+n.roughness)/2))}t.length&&r.push($i([t],n))}}return n.stroke!==Z&&r.push(i),this._d(`curve`,r,n)}polygon(e,t){let n=this._o(t),r=[],i=Ui(e,!0,n);return n.fill&&(n.fillStyle===`solid`?r.push(Qi([e],n)):r.push($i([e],n))),n.stroke!==Z&&r.push(i),this._d(`polygon`,r,n)}path(e,t){let n=this._o(t),r=[];if(!e)return this._d(`path`,r,n);e=(e||``).replace(/\n/g,` `).replace(/(-\s)/g,`-`).replace(`/(ss)/g`,` `);let i=n.fill&&n.fill!==`transparent`&&n.fill!==Z,a=n.stroke!==Z,o=!!(n.simplification&&n.simplification<1),s=o?4-4*(n.simplification||1):(1+n.roughness)/2,c=wa(e,1,s),l=Zi(e,n);if(i){if(n.fillStyle===`solid`){if(c.length===1){let t=Zi(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:`fillPath`,ops:this._mergedShape(t.ops)})}else r.push(Qi(c,n))}else r.push($i(c,n))}return a&&(o?c.forEach(e=>{r.push(Ui(e,!1,n))}):r.push(l)),this._d(`path`,r,n)}opsToPath(e,t){let n=``;for(let r of e.ops){let e=typeof t==`number`&&t>=0?r.data.map(e=>+e.toFixed(t)):r.data;switch(r.op){case`move`:n+=`M${e[0]} ${e[1]} `;break;case`bcurveTo`:n+=`C${e[0]} ${e[1]}, ${e[2]} ${e[3]}, ${e[4]} ${e[5]} `;break;case`lineTo`:n+=`L${e[0]} ${e[1]} `}}return n.trim()}toPaths(e){let t=e.sets||[],n=e.options||this.defaultOptions,r=[];for(let e of t){let t=null;switch(e.type){case`path`:t={d:this.opsToPath(e),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:Z};break;case`fillPath`:t={d:this.opsToPath(e),stroke:Z,strokeWidth:0,fill:n.fill||Z};break;case`fillSketch`:t=this.fillSketch(e,n)}t&&r.push(t)}return r}fillSketch(e,t){let n=t.fillWeight;return n<0&&(n=t.strokeWidth/2),{d:this.opsToPath(e),stroke:t.fill||Z,strokeWidth:n,fill:Z}}_mergedShape(e){return e.filter((e,t)=>t===0||e.op!==`move`)}},Ea=`http://www.w3.org/2000/svg`,Da=800,Oa=null;function ka(){return Oa||=new Ta().defaultOptions,Oa}function Aa(e,t,n){return{...ka(),maxRandomnessOffset:2,roughness:e===`highlight`?3:1.5,bowing:1,stroke:`#000`,strokeWidth:1.5,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:`hachure`,fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,disableMultiStroke:e!==`double`,disableMultiStrokeFill:!1,seed:t,...n}}function ja(e){let t=e.padding;if(t||t===0){if(typeof t==`number`)return[t,t,t,t];if(Array.isArray(t)){let e=t;if(e.length)switch(e.length){case 4:return[...e];case 1:return[e[0],e[0],e[0],e[0]];case 2:return[...e,...e];case 3:return[...e,e[1]];default:return[e[0],e[1],e[2],e[3]]}}}return[5,5,5,5]}function Ma(e,t,n,r,i,a){let o=[],s=n.strokeWidth||2,c=ja(n),l=n.animate===void 0||!!n.animate,u=n.iterations||2,d=+!!n.rtl,f=Aa(`single`,a,n);switch(n.type){case`underline`:{let e=t.y+t.h+c[2];for(let n=d;ne.setAttribute(t,n);for(let r of t){let t=document.createElementNS(Ea,`path`);if(d(t,`d`,r),d(t,`fill`,`none`),d(t,`stroke`,n.color||`currentColor`),d(t,`stroke-width`,`${s}`),n.opacity!==void 0&&d(t,`style`,`opacity:${n.opacity}`),l){let e=t.getTotalLength();a.push(e),u+=e}e.appendChild(t),c.push(t)}if(l){let e=0;for(let t=0;tsetTimeout(t,e))}function Pa(e){let t=[];for(let n of e){let e=``;for(let r of n.ops){let n=r.data;switch(r.op){case`move`:e.trim()&&t.push(e.trim()),e=`M${n[0]} ${n[1]} `;break;case`bcurveTo`:e+=`C${n[0]} ${n[1]}, ${n[2]} ${n[3]}, ${n[4]} ${n[5]} `;break;case`lineTo`:e+=`L${n[0]} ${n[1]} `}}e.trim()&&t.push(e.trim())}return t}function Fa(){if(!window.__rno_kf_s){let e=window.__rno_kf_s=document.createElement(`style`);e.textContent=`@keyframes rough-notation-dash { to { stroke-dashoffset: 0; } }`,document.head.appendChild(e)}}var Ia=Object.defineProperty,La=(e,t,n)=>t in e?Ia(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Q=(e,t,n)=>(La(e,typeof t==`symbol`?t:t+``,n),n),Ra=class{constructor(e,t){Q(this,`_state`,`unattached`),Q(this,`_config`),Q(this,`_resizing`,!1),Q(this,`_ro`),Q(this,`_seed`,mi()),Q(this,`_e`),Q(this,`_svg`),Q(this,`_lastSizes`,[]),Q(this,`_animationDelay`,0),Q(this,`_resizeListener`,()=>{this._resizing||(this._resizing=!0,setTimeout(()=>{this._resizing=!1,this._state===`showing`&&this.haveRectsChanged()&&this.show()},400))}),Q(this,`pendingRefresh`),this._e=e,this._config=JSON.parse(JSON.stringify(t)),this.attach()}getConfig(e){return this._config[e]}setConfig(e,t){this._config[e]!==t&&(this._config[e]=t,this.refresh())}get animate(){return this._config.animate}set animate(e){this._config.animate=e}get animationDuration(){return this._config.animationDuration}set animationDuration(e){this._config.animationDuration=e}get iterations(){return this._config.iterations}set iterations(e){this._config.iterations=e}get color(){return this._config.color}set color(e){this._config.color!==e&&(this._config.color=e,this.refresh())}get class(){return this._config.class}set class(e){this._config.class!==e&&(this._config.class=e,this._svg&&this._svg.setAttribute(`class`,[`rough-annotation`,this._config.class||``].filter(Boolean).join(` `)))}get strokeWidth(){return this._config.strokeWidth}set strokeWidth(e){this._config.strokeWidth!==e&&(this._config.strokeWidth=e,this.refresh())}get padding(){return this._config.padding}set padding(e){this._config.padding!==e&&(this._config.padding=e,this.refresh())}attach(){if(this._state===`unattached`&&this._e.parentElement){Fa();let e=this._svg=document.createElementNS(Ea,`svg`);e.setAttribute(`class`,[`rough-annotation`,this._config.class||``].filter(Boolean).join(` `));let t=e.style;t.position=`absolute`,t.top=`0`,t.left=`0`,t.overflow=`visible`,t.pointerEvents=`none`,t.width=`100px`,t.height=`100px`;let n=this._config.type===`highlight`;if(this._e.insertAdjacentElement(n?`beforebegin`:`afterend`,e),this._state=`not-showing`,n){let e=window.getComputedStyle(this._e).position;(!e||e===`static`)&&(this._e.style.position=`relative`)}this.attachListeners()}}detachListeners(){window.removeEventListener(`resize`,this._resizeListener),this._ro&&this._ro.unobserve(this._e)}attachListeners(){this.detachListeners(),window.addEventListener(`resize`,this._resizeListener,{passive:!0}),!this._ro&&`ResizeObserver`in window&&(this._ro=new window.ResizeObserver(e=>{for(let t of e)t.contentRect&&this._resizeListener()})),this._ro&&this._ro.observe(this._e)}haveRectsChanged(){if(this._lastSizes.length){let e=this.rects();if(e.length===this._lastSizes.length){for(let t=0;tMath.round(e)===Math.round(t);return n(e.x,t.x)&&n(e.y,t.y)&&n(e.w,t.w)&&n(e.h,t.h)}isShowing(){return this._state!==`not-showing`}refresh(){this.isShowing()&&!this.pendingRefresh&&(this.pendingRefresh=Promise.resolve().then(()=>{this.isShowing()&&this.show(),delete this.pendingRefresh}))}async show(){switch(this._state){case`unattached`:break;case`showing`:this.hide(),this._svg&&await this.render(this._svg,!0);break;case`not-showing`:this.attach(),this._svg&&await this.render(this._svg,!1)}}hide(){if(this._svg)for(;this._svg.lastChild;)this._svg.removeChild(this._svg.lastChild);this._state=`not-showing`}remove(){this._svg&&this._svg.parentElement&&this._svg.parentElement.removeChild(this._svg),this._svg=void 0,this._state=`unattached`,this.detachListeners()}async render(e,t){let n=this._config;t&&(n=JSON.parse(JSON.stringify(this._config)),n.animate=!1);let r=this.rects(),i=0;r.forEach(e=>i+=e.w);let a=n.animationDuration||Da,o=0,s=[];for(let t=0;tObject.assign(e,{type:`box`}),circle:e=>Object.assign(e,{type:`circle`}),underline:e=>Object.assign(e,{type:`underline`}),highlight:e=>Object.assign(e,{type:`highlight`}),"strike-through":e=>Object.assign(e,{type:`strike-through`}),"crossed-off":e=>Object.assign(e,{type:`crossed-off`}),bracket:e=>Object.assign(e,{type:`bracket`}),strike:e=>Object.assign(e,{type:`strike-through`}),cross:e=>Object.assign(e,{type:`crossed-off`}),crossed:e=>Object.assign(e,{type:`crossed-off`}),linethrough:e=>Object.assign(e,{type:`strike-through`}),"line-through":e=>Object.assign(e,{type:`strike-through`}),black:e=>$(e,`text-black`),blue:e=>$(e,`text-blue`),cyan:e=>$(e,`text-cyan`),gray:e=>$(e,`text-gray`),green:e=>$(e,`text-green`),indigo:e=>$(e,`text-indigo`),lime:e=>$(e,`text-lime`),orange:e=>$(e,`text-orange`),pink:e=>$(e,`text-pink`),purple:e=>$(e,`text-purple`),red:e=>$(e,`text-red`),teal:e=>$(e,`text-teal`),white:e=>$(e,`text-white`),yellow:e=>$(e,`text-yellow`)},Va=[[/^delay-?(\d+)?$/,(e,t,n)=>(t.delay=(e[1]?Number.parseInt(e[1]):n)||300,t)],[/^(?:op|opacity)-?(\d+)?$/,(e,t,n)=>(t.opacity=((e[1]?Number.parseInt(e[1]):n)||100)/100,t)]];function Ha(){return{install(e){e.directive(`mark`,{name:`v-mark`,mounted:(e,t)=>{let{isPrintMode:n}=ue(),r=m(()=>{let e=typeof t.value==`object`&&!Array.isArray(t.value)?{...t.value}:{at:t.value},r={at:e.at},i=Object.entries(t.modifiers).filter(([e,t])=>{if(Ba[e])return r=Ba[e](r,t),!1;for(let[n,i]of Va){let a=e.match(n);if(a)return r=i(a,r,t),!1}return!0});i.length&&console.warn(`[Slidev] Invalid modifiers for v-mark:`,i);let a={...r,...e};return a.type||=`underline`,n.value&&(a.animationDuration=1),a}),i=za(e,r.value),a=ai(e,t,r.value.at);if(!a){i.show();return}e.watchStopHandle=c(()=>{let e;r.value.class&&(i.class=r.value.class),r.value.color&&(i.color=r.value.color);let t=r.value.at;e=t===!0||t!==!1&&a.isActive.value,e!=null&&(e?i.show():i.hide())})},unmounted:e=>{e.watchStopHandle?.()}})}}}function Ua(){return{install(e){let t=xe();e.directive(`motion`,{name:`v-motion`,mounted(e,n,r,i){let a=ei(n,Oe),o=ei(n,ke),s=ei(n,Me),{currentPage:c,clicks:l,isPrintMode:u}=ue(),f=r.props={...r.props},p={...f.initial,...f.variants?.[`slidev-initial`]},m={...f.enter,...f.variants?.[`slidev-enter`]},h={...f.leave,...f.variants?.[`slidev-leave`]};delete f.initial,delete f.enter,delete f.leave;let g=`${xr()}-`,_=[];for(let e of Object.keys(f))if(e.startsWith(`click-`)){let t=e.slice(6),n=t.includes(`-`)?t.split(`-`).map(Number):+t,r=g+t;_.push({id:r,at:n,variant:{...f[e]},info:a?.value.calculate(n)}),delete f[e]}_.sort((e,t)=>(Array.isArray(e.at)?e.at[0]:e.at)-(Array.isArray(t.at)?t.at[0]:t.at)),t.created(e,n,r,i),t.mounted(e,n,r,i);let v=e.motionInstance;v.clickIds=_.map(e=>e.id),v.set(p),v.watchStopHandle=d([o,c,l].filter(Boolean),()=>{let t=ii.get(e)?.visibilityState.value??`shown`;if(!a?.value||![`slide`,`presenter`].includes(s?.value??``)){let e={...p,...m};for(let{variant:t}of _)Object.assign(e,t);v.set(e)}else if(u.value||o?.value===c.value){if(t===`shown`){let e={...p,...m};for(let{variant:t,info:n}of _)(!n||n.isActive.value)&&Object.assign(e,t);u.value?v.set(e):v.apply(e)}else v.apply(t===`before`?p:h)}else v.apply((o?.value??-1)>c.value?p:h)},{immediate:!0})},unmounted(e){e.motionInstance.watchStopHandle()}})}}}var Wa=Object.assign({}),Ga=Object.assign({}),Ka=Object.assign({}),qa=[Object.values(Wa)[0],Object.values(Ga)[0],Object.values(Ka)[0]].filter(Boolean);function Ja(){let e=[];function t(e){if(!M.remote||M.remote===e.query.password)return!0;if(M.remote&&e.query.password===void 0){let e=prompt(`Enter password`);if(M.remote===e)return!0}return e.params.no?{path:`/${e.params.no}`}:{path:``}}return e.push({name:`entry`,path:`/entry`,component:()=>j(()=>import(`./slidev/entry-C7SFAt6v.js`),__vite__mapDeps([2,3,1,4,5,6]),import.meta.url),beforeEnter:t},{name:`overview`,path:`/overview`,component:()=>j(()=>import(`./slidev/overview-onWweOVU.js`),__vite__mapDeps([7,3,1,4,8,5,9,10,11,12,13,14,15,16,17,18,19,20,21]),import.meta.url),beforeEnter:t},{name:`notes`,path:`/notes`,component:()=>j(()=>import(`./slidev/notes-0YYK7eZS.js`),__vite__mapDeps([22,3,1,4,8,5,9,10,12,23,13,14,24]),import.meta.url),beforeEnter:t},{name:`notes-edit`,path:`/notes-edit`,component:()=>j(()=>import(`./slidev/notes-edit-CNXbnFBO.js`),__vite__mapDeps([25,3,1,4,8,5,9,10,12,23]),import.meta.url),beforeEnter:t},{name:`presenter`,path:`/presenter/:no`,component:()=>j(()=>import(`./slidev/presenter-DY5YySOI.js`),__vite__mapDeps([26,3,1,4,8,5,9,10,18,27,12,28,29,13,14,24,15,16,17,19,20,30,31,32]),import.meta.url),beforeEnter:t},{path:`/presenter`,redirect:{path:`/presenter/1`}}),e.push({name:`play`,path:`/:no`,component:()=>j(()=>import(`./slidev/play-CuAAHxP2.js`),__vite__mapDeps([33,3,1,4,8,5,9,10,18,11,23,15,16,17,19,30,12,28,31,34]),import.meta.url)},{path:``,redirect:{path:`/1`}},{path:`/:pathMatch(.*)*`,name:`NotFound`,component:()=>j(()=>import(`./slidev/404-Dy8qVHZj.js`),__vite__mapDeps([35,3,1,4,8,5,9,10,36]),import.meta.url)}),qa.reduce((e,t)=>t(e),e)}async function Ya(e){function t(){document.documentElement.style.setProperty(`--vh`,`${window.innerHeight*.01}px`)}t(),window.addEventListener(`resize`,t);let n=he({history:Te(`./`),routes:Ja()});e.use(n),e.use(qr()),e.use(ri()),e.use(Ha()),e.use(pi()),e.use(Ua()),e.use(S,{container:`#twoslash-container`});let r={app:e,router:n};for(let e of Zr)await e(r)}async function Xa(){let e=x(Rr);await Ya(e),e.mount(`#app`)}Xa();export{Qr as a,Er as c,Sr as d,Ht as f,Mt as h,$r as i,Or as l,Wt as m,ci as n,Ir as o,Ut as p,si as r,kr as s,ui as t,xr as u}; \ No newline at end of file diff --git a/lecture-07/assets/interactive-Co6Mxz4S.js b/lecture-07/assets/interactive-Co6Mxz4S.js new file mode 100644 index 0000000000000000000000000000000000000000..052b8935574acb503ab301bb608f12b4435810b2 --- /dev/null +++ b/lecture-07/assets/interactive-Co6Mxz4S.js @@ -0,0 +1 @@ +import{B as e,C as t,Ct as n,St as r,T as i,U as a,_ as o,b as s,bt as c,y as l}from"./modules/shiki-CJZsCeMT.js";import{t as u}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as d}from"./slidev/context-DB-9afGB.js";import{t as f}from"./DeckFooter-CA42hL2e.js";var p={class:`slidev-layout dl-interactive`},m={key:0,class:`dl-interactive__title`},h={class:`dl-interactive__stage`},g=u(i({__name:`interactive`,props:{heading:{},asideWidth:{},asideLeft:{type:Boolean}},setup(i){let{$slidev:u,$nav:g,$clicksContext:_,$clicks:v,$page:y,$renderContext:b,$frontmatter:x}=d(),S=i;return(i,u)=>{let d=f;return e(),s(`div`,p,[S.heading?(e(),s(`h1`,m,n(S.heading),1)):l(`v-if`,!0),o(`div`,{class:c([`dl-interactive__grid`,{"is-aside-left":S.asideLeft}])},[o(`div`,h,[a(i.$slots,`default`,{},void 0,!0)]),o(`div`,{class:`dl-interactive__aside`,style:r({flexBasis:S.asideWidth??`17rem`})},[a(i.$slots,`aside`,{},void 0,!0)],4)],2),t(d)])}}}),[[`__scopeId`,`data-v-0c449bbd`]]);export{g as t}; \ No newline at end of file diff --git a/lecture-07/assets/md-B-rbKkNj2.js b/lecture-07/assets/md-B-rbKkNj2.js new file mode 100644 index 0000000000000000000000000000000000000000..645d11f536f0c2aece0e21aec7173ff08f7e67da --- /dev/null +++ b/lecture-07/assets/md-B-rbKkNj2.js @@ -0,0 +1 @@ +import{B as e,C as t,Ct as n,D as r,H as i,S as a,St as o,T as s,_ as c,b as l,bt as u,dt as d,et as f,g as p,m,v as h,xt as g,y as _,yt as v}from"./modules/shiki-CJZsCeMT.js";import{t as y}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as b,t as x}from"./slidev/context-DB-9afGB.js";import{t as S}from"./FamilyGlyph-DyfZ67F0.js";import{t as C}from"./interactive-Co6Mxz4S.js";var w={class:`dl-syllabus`},T=[`title`,`onClick`],E={class:`dl-syllabus__num`},D={class:`dl-syllabus__detail`},O={class:`dl-syllabus__heading`},k={class:`dl-syllabus__weeklabel`},A=y(s({__name:`SyllabusTimeline`,props:{entries:{default:()=>[{section:`Introduction to DL`,description:`Course content, evaluation and exams. What is deep learning, where it is applied, the frameworks, and getting a environment running in Colab or Jupyter.`,weeks:[1]},{section:`Basics of Neural Networks`,description:`Artificial neurons and neural networks; implementing and training a multilayer network from scratch.`,weeks:[2]},{section:`PyTorch for DL`,description:`What PyTorch is and why. Tensors for data representation, the PyTorch training pipeline, and an ANN built with it.`,weeks:[3]},{section:`Deep Convolutional Neural Networks`,description:`What a CNN is and where it applies. Telling classification, detection and segmentation apart. Implementing CNN models in PyTorch.`,weeks:[4,5]},{section:`Recurrent Networks, Transformers and LLMs`,description:`What an RNN is and where it applies; the mechanism, and an implementation in PyTorch. What a transformer is, and the original architecture. Then large language models: how one is trained, how one is adapted, and how to build on top of one.`,weeks:[6,7,8]},{section:`Generative Adversarial Networks`,description:`Generative models and autoencoders. Implementing a GAN in Colab, improving synthetic data quality, and the main GAN variants and applications.`,weeks:[9,10]},{section:`Deep Reinforcement Learning`,description:`What reinforcement learning is and why. RL algorithm basics, implementations, and deep Q-learning in PyTorch.`,weeks:[11,12]}]},totalWeeks:{default:12},currentWeek:{default:null}},setup(t){let{$slidev:r,$nav:a,$clicksContext:s,$clicks:f,$page:h,$renderContext:g,$frontmatter:v}=b(),y=t,x=d(Math.max(0,y.entries.findIndex(e=>e.weeks.includes(y.currentWeek??0)))),S=p(()=>y.entries[x.value]);function C(e){return e.weeks.length===1?`Week ${e.weeks[0]}`:`Weeks ${e.weeks[0]}–${e.weeks[e.weeks.length-1]}`}return(t,r)=>(e(),l(`div`,w,[c(`div`,{class:`dl-syllabus__track`,style:o({gridTemplateColumns:`repeat(${y.totalWeeks}, 1fr)`})},[(e(!0),l(m,null,i(y.entries,(t,r)=>(e(),l(`button`,{key:t.section,type:`button`,class:u([`dl-syllabus__block`,{"is-selected":r===x.value}]),style:o({gridColumn:`${t.weeks[0]} / span ${t.weeks.length}`}),title:t.section,onClick:e=>x.value=r},[c(`span`,E,n(r+1),1)],14,T))),128)),y.currentWeek?(e(),l(`div`,{key:0,class:`dl-syllabus__now`,style:o({gridColumn:`${y.currentWeek} / span 1`})},null,4)):_(`v-if`,!0)],4),c(`div`,{class:`dl-syllabus__weeks`,style:o({gridTemplateColumns:`repeat(${y.totalWeeks}, 1fr)`})},[(e(!0),l(m,null,i(y.totalWeeks,t=>(e(),l(`span`,{key:t},n(t),1))),128))],4),c(`div`,D,[c(`div`,O,[c(`span`,k,n(C(S.value)),1),c(`h3`,null,n(S.value.section),1)]),c(`p`,null,n(S.value.description),1)])]))}}),[[`__scopeId`,`data-v-45e850fb`]]),j={class:`mt-3 flex justify-center`},M={__name:`slides.md__slidev_2`,setup(n){let{$slidev:i,$nav:o,$clicksContext:s,$clicks:l,$page:u,$renderContext:d,$frontmatter:p}=b();return s.setup(),(n,i)=>{let o=A,s=S;return e(),h(C,g(r(v(x)(v(p),1))),{aside:f(e=>[i[0]||=c(`p`,null,[a(`Today needs `),c(`strong`,null,`one`),a(` thing from earlier: the `),c(`strong`,null,`CNN`),a(` of weeks 4–5.`)],-1),c(`div`,j,[t(s,{kind:`cnn`,size:96})]),i[1]||=c(`p`,null,[a(`It turned an image into a label. Today we `),c(`strong`,null,`reverse`),a(` it: a few numbers in, an image out.`)],-1)]),default:f(()=>[t(o,{"current-week":9})]),_:1},16)}}};export{M as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-B5LYSGvh.js b/lecture-07/assets/md-B5LYSGvh.js new file mode 100644 index 0000000000000000000000000000000000000000..92d6d941bbc6df1c0824f9abe9e62dbc35dc5954 --- /dev/null +++ b/lecture-07/assets/md-B5LYSGvh.js @@ -0,0 +1 @@ +import{B as e,C as t,Ct as n,D as r,G as i,H as a,S as o,St as s,T as c,_ as l,b as u,bt as d,dt as f,et as p,g as m,m as h,tt as g,v as _,xt as v,y,yt as b}from"./modules/shiki-CJZsCeMT.js";import{t as x}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as S,t as C}from"./slidev/context-DB-9afGB.js";import{w}from"./useGenerative-DhxjRRg5.js";import{t as T}from"./slidev/VClicks-DhU7uhQr.js";import{n as E,t as D}from"./StepButton-BHTS1uiY.js";import{t as O}from"./interactive-Co6Mxz4S.js";import{t as k}from"./Slider-C2M0Z0oG.js";var A=[`viewBox`],j=[`x`],M=[`x`,`y`,`width`,`height`],N=[`x`],P=[`x`,`y`,`width`,`height`],F=[`x`],I=[`x`,`y`,`width`,`height`],L=[`x`,`y`],R=[`x`,`y`],z=[`x`,`y`],B=[`x`,`y`],V={class:`dl-tc__formula`,x:`8`,y:`180`},H={key:0},U={key:1},W=3,G=13,K=46,q=26,J=x(c({__name:`TransposeConvLab`,setup(r){let{$slidev:i,$nav:o,$clicksContext:c,$clicks:g,$page:v,$renderContext:b,$frontmatter:x}=S(),C=f(4),T=f(2),O=m(()=>w(W,C.value,T.value)),J=m(()=>{let e=2*T.value+1,t=[];for(let n=0;nY(2)+O.value.outSize*G+10);function Z(e){let{min:t,max:n}=O.value;return n===t?e>=t?.62:.3:Math.min(Math.max(.2+.72*((e-t)/(n-t)),.12),.95)}let Q=m(()=>q+Math.max(W,J.value.n,O.value.outSize)*G/2);return(r,i)=>{let o=k,c=D,f=E;return e(),_(f,{"max-width":`44rem`},{controls:p(()=>[t(o,{modelValue:C.value,"onUpdate:modelValue":i[0]||=e=>C.value=e,label:`kernel`,min:2,max:5,step:1,precision:0},null,8,[`modelValue`]),t(o,{modelValue:T.value,"onUpdate:modelValue":i[1]||=e=>T.value=e,label:`stride`,min:1,max:3,step:1,precision:0},null,8,[`modelValue`]),t(c,{label:`DCGAN (4, 2)`,variant:`ghost`,onClick:i[2]||=e=>{C.value=4,T.value=2}}),t(c,{label:`The bad one (3, 2)`,variant:`ghost`,onClick:i[3]||=e=>{C.value=3,T.value=2}})]),readout:p(()=>[O.value.even?(e(),u(`span`,H,` Stride `+n(T.value)+` divides kernel `+n(C.value)+`: every interior cell gets `+n(O.value.min)+` taps. No checkerboard. `,1)):(e(),u(`span`,U,` Interior cells get between `+n(O.value.min)+` and `+n(O.value.max)+` taps — a `+n((O.value.max/O.value.min).toFixed(0))+`× difference, laid out in a grid. That is the checkerboard, and no weight has been learned yet. `,1))]),default:p(()=>[(e(),u(`svg`,{class:`dl-tc`,viewBox:`0 0 ${X.value} 186`,role:`img`,"aria-label":`A transposed convolution as zero insertion followed by an ordinary convolution`},[y(` 1. the input `),l(`text`,{class:`dl-tc__cap`,x:Y(0),y:`16`},`input `+n(W)+`×`+n(W),8,j),(e(!0),u(h,null,a(9,t=>(e(),u(`rect`,{key:`i${t}`,class:`dl-tc__in`,x:Y(0)+(t-1)%W*G,y:q+Math.floor((t-1)/W)*G,width:11.5,height:11.5},null,8,M))),128)),y(` 2. the same input with zeros between it `),l(`text`,{class:`dl-tc__cap`,x:Y(1),y:`16`},` zeros inserted `+n(J.value.n)+`×`+n(J.value.n),9,N),(e(!0),u(h,null,a(J.value.cells,(t,n)=>(e(),u(`rect`,{key:`s${n}`,class:d([`dl-tc__spread`,{"is-live":t.live}]),x:Y(1)+t.j*G,y:q+t.i*G,width:11.5,height:11.5},null,10,P))),128)),y(` 3. the result, shaded by how many taps reached each cell `),l(`text`,{class:`dl-tc__cap`,x:Y(2),y:`16`},` output `+n(O.value.outSize)+`×`+n(O.value.outSize),9,F),(e(!0),u(h,null,a(O.value.counts,(t,n)=>(e(),u(h,{key:`r${n}`},[(e(!0),u(h,null,a(t,(t,r)=>(e(),u(`rect`,{key:`o${n}-${r}`,class:`dl-tc__out`,x:Y(2)+r*G,y:q+n*G,width:11.5,height:11.5,style:s({opacity:Z(t)})},null,12,I))),128))],64))),128)),l(`text`,{class:`dl-tc__arrow`,x:Y(1)-K/2,y:Q.value,"text-anchor":`middle`},`→`,8,L),l(`text`,{class:`dl-tc__arrow`,x:Y(2)-K/2,y:Q.value,"text-anchor":`middle`},`→`,8,R),l(`text`,{class:`dl-tc__sub`,x:Y(1)-K/2,y:Q.value+15,"text-anchor":`middle`},` stride `+n(T.value),9,z),l(`text`,{class:`dl-tc__sub`,x:Y(2)-K/2,y:Q.value+15,"text-anchor":`middle`},` conv `+n(C.value)+`×`+n(C.value),9,B),l(`text`,V,` (`+n(W)+` − 1)·`+n(T.value)+` + `+n(C.value)+` = `+n(O.value.outSize),1)],8,A))]),_:1})}}}),[[`__scopeId`,`data-v-04b43cc2`]]),Y={class:`mt-2 dl-callout`},X={__name:`slides.md__slidev_45`,setup(n){let{$slidev:a,$nav:s,$clicksContext:c,$clicks:d,$page:f,$renderContext:m,$frontmatter:h}=S();return c.setup(),(n,a)=>{let s=J,c=T,d=i(`click`);return e(),_(O,v(r(b(C)(b(h),44))),{aside:p(n=>[a[2]||=l(`p`,null,`Not a new operation: insert zeros between the inputs, then convolve.`,-1),t(c,null,{default:p(()=>[...a[0]||=[l(`ul`,null,[l(`li`,null,[o(`Output is `),l(`span`,{class:`katex`},[l(`span`,{class:`katex-mathml`},[l(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[l(`semantics`,null,[l(`mrow`,null,[l(`mo`,{stretchy:`false`},`(`),l(`mi`,null,`n`),l(`mo`,null,`−`),l(`mn`,null,`1`),l(`mo`,{stretchy:`false`},`)`),l(`mi`,null,`s`),l(`mo`,null,`+`),l(`mi`,null,`k`)]),l(`annotation`,{encoding:`application/x-tex`},`(n-1)s + k`)])])]),l(`span`,{class:`katex-html`,"aria-hidden":`true`},[l(`span`,{class:`katex-base`},[l(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),l(`span`,{class:`mopen`},`(`),l(`span`,{class:`mord mathnormal`},`n`),l(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),l(`span`,{class:`mbin`},`−`),l(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),l(`span`,{class:`katex-base`},[l(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),l(`span`,{class:`mord`},`1`),l(`span`,{class:`mclose`},`)`),l(`span`,{class:`mord mathnormal`},`s`),l(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),l(`span`,{class:`mbin`},`+`),l(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),l(`span`,{class:`katex-base`},[l(`span`,{class:`katex-strut`,style:{height:`0.6944em`}}),l(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0315em`}},`k`)])])])]),l(`li`,null,[o(`Shading: how many `),l(`strong`,null,`kernel weights`),o(` land on each output cell`)]),l(`li`,null,[o(`Try `),l(`strong`,null,`(3, 2)`)])],-1)]]),_:1}),g((e(),u(`div`,Y,[...a[1]||=[l(`p`,null,`Kernel 3, stride 2: cells get 1, 2 or 4 weights — a 4× range.`,-1)]])),[[d]])]),default:p(()=>[t(s)]),_:1},16)}}};export{X as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-B7uy6-re.js b/lecture-07/assets/md-B7uy6-re.js new file mode 100644 index 0000000000000000000000000000000000000000..e4ef11431dccdd9350ba3c04e84064bef94bfa82 --- /dev/null +++ b/lecture-07/assets/md-B7uy6-re.js @@ -0,0 +1 @@ +import{B as e,C as t,Ct as n,D as r,G as i,H as a,S as o,_ as s,b as c,bt as l,et as u,m as d,tt as f,v as p,xt as m,yt as h}from"./modules/shiki-CJZsCeMT.js";import{n as g,t as _}from"./slidev/context-DB-9afGB.js";import{t as v}from"./PixelImage-C1NqQXMF.js";import{t as y}from"./default-CbJk4Idc.js";import{t as b}from"./Citation-CcKhBxpe.js";var x={class:`mt-4 flex justify-center`},S={viewBox:`0 0 660 190`,class:`dl-diagram`,role:`img`,"aria-label":`A timeline of six GAN variants from 2014 to 2018`},C=[`cx`],w=[`x`],T=[`x`],E=[`x`],D=[`x`],O={class:`mt-2 dl-secondary`},k={class:`mt-2`},A={__name:`slides.md__slidev_52`,setup(A){let{$slidev:j,$nav:M,$clicksContext:N,$clicks:P,$page:F,$renderContext:I,$frontmatter:L}=g();return N.setup(),(g,A)=>{let j=v,M=b,N=i(`click`);return e(),p(y,m(r(h(_)(h(L),51))),{default:u(()=>[A[4]||=s(`h1`,null,`The zoo, and the six that mattered`,-1),s(`div`,x,[(e(),c(`svg`,S,[A[2]||=s(`line`,{class:`dl-dg-arrow`,x1:`20`,y1:`70`,x2:`640`,y2:`70`},null,-1),(e(),c(d,null,a([[`cGAN`,`2014`,`condition on`,`a label`],[`DCGAN`,`2015`,`convolutions`,`+ rules`],[`pix2pix`,`2016`,`image → image,`,`paired`],[`CycleGAN`,`2017`,`image → image,`,`no pairs`],[`WGAN-GP`,`2017`,`a loss that`,`means something`],[`StyleGAN`,`2018`,`1024² faces,`,`steerable z`]],(e,t)=>s(`g`,{key:t},[s(`circle`,{class:l([`dl-dg-dot`,t%2?``:`is-accent`]),cx:60+t*108,cy:`70`,r:`8`},null,10,C),s(`text`,{class:`dl-dg-small`,x:60+t*108,y:`44`,"text-anchor":`middle`},n(e[1]),9,w),s(`text`,{class:`dl-dg-lab is-sm`,x:60+t*108,y:`102`,"text-anchor":`middle`},n(e[0]),9,T),s(`text`,{class:`dl-dg-small`,x:60+t*108,y:`122`,"text-anchor":`middle`},n(e[2]),9,E),s(`text`,{class:`dl-dg-small`,x:60+t*108,y:`138`,"text-anchor":`middle`},n(e[3]),9,D)])),64)),f((e(),c(`g`,null,[t(j,{"in-svg":``,x:336,y:148,size:36,pattern:`house`}),A[0]||=s(`text`,{class:`dl-dg-small`,x:`382`,y:`170`},`→`,-1),t(j,{"in-svg":``,x:396,y:148,size:36,pattern:`house`,noise:.18,seed:2,tone:`accent`}),A[1]||=s(`text`,{class:`dl-dg-small`,x:`440`,y:`170`},`CycleGAN: translate there and back`,-1)])),[[N]])]))]),f((e(),c(`div`,O,[...A[3]||=[s(`p`,null,[o(`Over 500 named variants exist — `),s(`em`,null,`the GAN zoo`),o(`. Almost all change the loss, the conditioning, or the architecture.`)],-1)]])),[[N]]),s(`div`,k,[t(M,{source:`Hindupur, The GAN Zoo`,url:`https://github.com/hindupuravinash/the-gan-zoo`})])]),_:1},16)}}};export{A as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-B8Xf_xxY2.js b/lecture-07/assets/md-B8Xf_xxY2.js new file mode 100644 index 0000000000000000000000000000000000000000..a2d7e06df760350fd205f177f6e6e19e2d6a13d1 --- /dev/null +++ b/lecture-07/assets/md-B8Xf_xxY2.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,S as i,_ as a,b as o,et as s,tt as c,v as l,xt as u,yt as d}from"./modules/shiki-CJZsCeMT.js";import{n as f,t as p}from"./slidev/context-DB-9afGB.js";import{t as m}from"./PixelImage-C1NqQXMF.js";import{t as h}from"./default-CbJk4Idc.js";import{t as g}from"./PollSlide-BQgjKhm1.js";var _={class:`grid grid-cols-[1.7fr_1fr] gap-6 items-start`},v={class:`mt-8`},y={class:`dl-pixrow`},b={class:`mt-4 dl-reveal`},x={class:`mt-2 dl-secondary`},S={__name:`slides.md__slidev_9`,setup(S){let{$slidev:C,$nav:w,$clicksContext:T,$clicks:E,$page:D,$renderContext:O,$frontmatter:k}=f();return T.setup(),(f,S)=>{let C=g,w=m,T=r(`click`);return e(),l(h,u(n(d(p)(d(k),8))),{default:s(()=>[a(`div`,_,[a(`div`,null,[t(C,{question:`You give the model a picture. Which one can tell you how probable that picture is?`,items:[`A GAN`,`A VAE`,`A diffusion model`,`A pixel-by-pixel model (PixelCNN)`]})]),a(`div`,v,[a(`div`,y,[t(w,{pattern:`heart`,size:70}),S[0]||=a(`span`,{class:`dl-op`},`→`,-1),S[1]||=a(`span`,{class:`dl-op`},`model`,-1),S[2]||=a(`span`,{class:`dl-op`},`→`,-1),S[3]||=a(`span`,{class:`dl-op is-accent`},`p(x) = ?`,-1)])])]),c((e(),o(`div`,b,[...S[4]||=[a(`p`,null,`Only the last one gives the exact number`,-1)]])),[[T]]),c((e(),o(`div`,x,[...S[5]||=[a(`p`,null,[i(`A GAN has no likelihood at all. A VAE and a diffusion model give a `),a(`strong`,null,`lower bound`),i(` on it. PixelCNN multiplies one probability per pixel — exact, and slow.`)],-1)]])),[[T]])]),_:1},16)}}};export{S as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-B8u39oeg.js b/lecture-07/assets/md-B8u39oeg.js new file mode 100644 index 0000000000000000000000000000000000000000..49d3c154575ae6b54fba5564c8e425b236c2d57d --- /dev/null +++ b/lecture-07/assets/md-B8u39oeg.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,S as i,_ as a,b as o,et as s,tt as c,v as l,xt as u,yt as d}from"./modules/shiki-CJZsCeMT.js";import{n as f,t as p}from"./slidev/context-DB-9afGB.js";import{t as m}from"./slidev/VClicks-DhU7uhQr.js";import{t as h}from"./interactive-Co6Mxz4S.js";import{t as g}from"./DiffusionLab-DwmASr7s.js";var _={class:`mt-2 dl-callout`},v={__name:`slides.md__slidev_62`,setup(v){let{$slidev:y,$nav:b,$clicksContext:x,$clicks:S,$page:C,$renderContext:w,$frontmatter:T}=f();return x.setup(),(f,v)=>{let y=g,b=m,x=r(`click`);return e(),l(h,u(n(d(p)(d(T),61))),{aside:s(n=>[v[2]||=a(`p`,null,[i(`Press `),a(`strong`,null,`show the field`),i(`: the arrows are what the network is trained to output.`)],-1),t(b,null,{default:s(()=>[...v[0]||=[a(`ul`,null,[a(`li`,null,[i(`High `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`t`)]),a(`annotation`,{encoding:`application/x-tex`},`t`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6151em`}}),a(`span`,{class:`mord mathnormal`},`t`)])])]),i(` — vaguely inward, no mode chosen`)]),a(`li`,null,[i(`Low `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`t`)]),a(`annotation`,{encoding:`application/x-tex`},`t`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6151em`}}),a(`span`,{class:`mord mathnormal`},`t`)])])]),i(` — arrows point to one mode; each sample picks one`)])],-1)]]),_:1}),c((e(),o(`div`,_,[...v[1]||=[a(`p`,null,`Each step needs the one before, so sampling is slow.`,-1)]])),[[x]])]),default:s(()=>[t(y,{reverse:``,field:``})]),_:1},16)}}};export{v as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-B9fZM9oI.js b/lecture-07/assets/md-B9fZM9oI.js new file mode 100644 index 0000000000000000000000000000000000000000..62b1668d6ecf52ea5d07d539f10fccc14d397518 --- /dev/null +++ b/lecture-07/assets/md-B9fZM9oI.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,S as i,_ as a,b as o,et as s,tt as c,v as l,xt as u,yt as d}from"./modules/shiki-CJZsCeMT.js";import{n as f,t as p}from"./slidev/context-DB-9afGB.js";import{t as m}from"./default-CbJk4Idc.js";import{t as h}from"./PollSlide-BQgjKhm1.js";var g={class:`grid grid-cols-[1.7fr_1fr] gap-6 items-start`},_={class:`mt-12`},v={class:`mt-4 dl-reveal dl-reveal--side`},y={class:`mt-2 dl-secondary`},b={__name:`slides.md__slidev_41`,setup(b){let{$slidev:x,$nav:S,$clicksContext:C,$clicks:w,$page:T,$renderContext:E,$frontmatter:D}=f();return C.setup(),(f,b)=>{let x=h,S=r(`click`);return e(),l(m,u(n(d(p)(d(D),40))),{default:s(()=>[a(`div`,g,[a(`div`,null,[t(x,{question:`You delete .detach() on line 6. What happens?`,items:[`A shape error on the next line`,`Nothing — G has its own optimiser, so it is unaffected`,`loss_d.backward() also fills G's .grad — harmless here only because line 11 clears it`,`The discriminator stops learning`]})]),a(`div`,_,[b[2]||=a(`svg`,{viewBox:`0 0 240 90`,class:`dl-diagram`,role:`img`,"aria-label":`Without the scissors, the discriminator's gradient leaks into G`},[a(`defs`,null,[a(`marker`,{id:`pd-arrow`,markerWidth:`7`,markerHeight:`7`,refX:`6`,refY:`3.5`,orient:`auto`},[a(`path`,{class:`dl-dg-head`,d:`M0 0 L7 3.5 L0 7 z`})])]),a(`rect`,{class:`dl-dg-box`,x:`10`,y:`30`,width:`50`,height:`28`,rx:`4`}),a(`text`,{class:`dl-dg-lab is-sm`,x:`35`,y:`49`,"text-anchor":`middle`},`G`),a(`g`,{transform:`translate(88 8)`},[a(`circle`,{class:`dl-dg-op`,cx:`4`,cy:`4`,r:`4`}),a(`circle`,{class:`dl-dg-op`,cx:`4`,cy:`16`,r:`4`}),a(`path`,{class:`dl-dg-arrow`,d:`M7 6 L22 14 M7 14 L22 6`})]),a(`line`,{class:`dl-dg-line is-bad`,x1:`86`,y1:`6`,x2:`114`,y2:`30`}),a(`rect`,{class:`dl-dg-box is-accent`,x:`140`,y:`30`,width:`50`,height:`28`,rx:`4`}),a(`text`,{class:`dl-dg-lab is-sm`,x:`165`,y:`49`,"text-anchor":`middle`},`D`),a(`path`,{class:`dl-dg-grad is-bad`,"marker-end":`url(#pd-arrow)`,d:`M138 44 H64`}),a(`text`,{class:`dl-dg-small is-bad`,x:`100`,y:`80`,"text-anchor":`middle`},`loss_d leaks into G?`)],-1),c((e(),o(`div`,v,[...b[0]||=[a(`p`,null,`G gets gradient from D’s loss`,-1)]])),[[S]]),c((e(),o(`div`,y,[...b[1]||=[a(`p`,null,[a(`code`,null,`backward()`),i(` follows the graph — the optimiser does not limit it. Line 11 clears the extra gradient in time. Call `),a(`code`,null,`zero_grad()`),i(` once at the top instead, and `),a(`code`,null,`opt_g`),i(` would apply it.`)],-1)]])),[[S]])])])]),_:1},16)}}};export{b as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-BDGHsd3U2.js b/lecture-07/assets/md-BDGHsd3U2.js new file mode 100644 index 0000000000000000000000000000000000000000..be5687f730d123cef44fbe60c16002cbe9d41198 --- /dev/null +++ b/lecture-07/assets/md-BDGHsd3U2.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,H as i,S as a,_ as o,b as s,et as c,m as l,tt as u,v as d,xt as f,yt as p}from"./modules/shiki-CJZsCeMT.js";import{n as m,t as h}from"./slidev/context-DB-9afGB.js";import{t as g}from"./default-CbJk4Idc.js";import{t as _}from"./slidev/VClicks-DhU7uhQr.js";import{t as v}from"./Citation-CcKhBxpe.js";var y={class:`grid grid-cols-[1.15fr_1fr] gap-6 mt-1 items-center`},b={viewBox:`0 0 380 210`,class:`dl-diagram is-sm-h`,role:`img`,"aria-label":`Real and generated images are turned into features; a Gaussian is fitted to each cloud and FID is the distance between them; a collapsed generator makes a tiny cloud`},x=[`cx`,`cy`],S=[`cx`,`cy`],C=[`cx`,`cy`],w={class:`dl-tight`},T={class:`mt-2 dl-callout`},E={class:`mt-1`},D={__name:`slides.md__slidev_75`,setup(D){let{$slidev:O,$nav:k,$clicksContext:A,$clicks:j,$page:M,$renderContext:N,$frontmatter:P}=m();return A.setup(),(m,D)=>{let O=_,k=v,A=r(`click`);return e(),d(g,f(n(p(h)(p(P),74))),{default:c(()=>[D[12]||=o(`h1`,null,`How do you know it is any good?`,-1),D[13]||=o(`p`,null,[a(`No held-out accuracy here. The answer is a `),o(`strong`,null,`distance between two clouds`),a(`.`)],-1),o(`div`,y,[o(`div`,null,[(e(),s(`svg`,b,[D[2]||=o(`defs`,null,[o(`marker`,{id:`fid-arrow`,markerWidth:`7`,markerHeight:`7`,refX:`6`,refY:`3.5`,orient:`auto`},[o(`path`,{class:`dl-dg-head`,d:`M0 0 L7 3.5 L0 7 z`})])],-1),D[3]||=o(`ellipse`,{class:`dl-dg-fill is-muted is-dashed`,cx:`110`,cy:`100`,rx:`80`,ry:`55`},null,-1),(e(),s(l,null,i([[70,80],[100,120],[140,90],[120,70],[90,105],[150,120],[60,110],[130,135]],(e,t)=>o(`circle`,{key:`r${t}`,class:`dl-dg-dot`,cx:e[0],cy:e[1],r:`4`},null,8,x)),64)),D[4]||=o(`text`,{class:`dl-dg-small`,x:`110`,y:`176`,"text-anchor":`middle`},`real — features of real images`,-1),D[5]||=o(`ellipse`,{class:`dl-dg-fill is-dashed`,cx:`270`,cy:`92`,rx:`70`,ry:`50`},null,-1),(e(),s(l,null,i([[240,80],[270,110],[300,85],[280,65],[250,100],[310,110],[235,95]],(e,t)=>o(`circle`,{key:`g${t}`,class:`dl-dg-dot is-accent`,cx:e[0],cy:e[1],r:`4`},null,8,S)),64)),D[6]||=o(`text`,{class:`dl-dg-small is-good`,x:`280`,y:`160`,"text-anchor":`middle`},`generated`,-1),D[7]||=o(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#fid-arrow)`,d:`M112 100 H264`},null,-1),D[8]||=o(`text`,{class:`dl-dg-lab is-sm`,x:`195`,y:`28`,"text-anchor":`middle`},`FID`,-1),D[9]||=o(`path`,{class:`dl-dg-loss`,d:`M195 34 V96`},null,-1),u((e(),s(`g`,null,[D[0]||=o(`ellipse`,{class:`dl-dg-line is-bad`,style:{fill:`none`,"stroke-width":`1.4`},cx:`96`,cy:`126`,rx:`11`,ry:`8`},null,-1),(e(),s(l,null,i([[92,124],[98,128],[95,122],[101,125]],(e,t)=>o(`circle`,{key:`c${t}`,class:`dl-dg-dot is-bad`,cx:e[0],cy:e[1],r:`2.5`},null,8,C)),64)),D[1]||=o(`text`,{class:`dl-dg-small is-bad`,x:`8`,y:`204`},`collapsed G: a tiny cloud, even inside the real one → bad FID`,-1)])),[[A]])]))]),o(`div`,w,[t(O,null,{default:c(()=>[...D[10]||=[o(`ul`,null,[o(`li`,null,[o(`strong`,null,`FID`),a(` (Fréchet Inception Distance) — features from a pretrained CNN; a Gaussian fitted to each set; the gap between them. Lower is better`)]),o(`li`,null,[a(`It sees `),o(`strong`,null,`variety`),a(` as well as quality`)]),o(`li`,null,`It changes with the number of samples, and it can be gamed`)],-1)]]),_:1})])]),u((e(),s(`div`,T,[...D[11]||=[o(`p`,null,`Everyone reports FID; nobody fully trusts it. Look at samples too.`,-1)]])),[[A]]),o(`div`,E,[t(k,{source:`Heusel et al., GANs Trained by a Two Time-Scale Update Rule (2017) — FID`,url:`https://arxiv.org/abs/1706.08500`})])]),_:1},16)}}};export{D as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-BGlvn1lF.js b/lecture-07/assets/md-BGlvn1lF.js new file mode 100644 index 0000000000000000000000000000000000000000..d2d06f61cbcfaddb225568ac03c5e050133bb574 --- /dev/null +++ b/lecture-07/assets/md-BGlvn1lF.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,_ as r,et as i,v as a,xt as o,yt as s}from"./modules/shiki-CJZsCeMT.js";import{n as c,t as l}from"./slidev/context-DB-9afGB.js";import{t as u}from"./FamilyGlyph-DyfZ67F0.js";import{t as d}from"./section-CqA-0pFf.js";var f={class:`dl-side-glyph`},p={__name:`slides.md__slidev_43`,setup(p){let{$slidev:m,$nav:h,$clicksContext:g,$clicks:_,$page:v,$renderContext:y,$frontmatter:b}=c();return g.setup(),(c,p)=>{let m=u;return e(),a(d,o(n(s(l)(s(b),42))),{default:i(()=>[p[0]||=r(`h1`,null,`Why GANs are hard`,-1),r(`div`,f,[t(m,{kind:`collapse`,size:190})])]),_:1},16)}}};export{p as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-BHmYh5BN.js b/lecture-07/assets/md-BHmYh5BN.js new file mode 100644 index 0000000000000000000000000000000000000000..541ca696b2da285ba35b97ef0924c8f1b1c02307 --- /dev/null +++ b/lecture-07/assets/md-BHmYh5BN.js @@ -0,0 +1 @@ +import{B as e,C as t,Ct as n,D as r,S as i,T as a,U as o,_ as s,b as c,et as l,v as u,xt as d,y as f,yt as p}from"./modules/shiki-CJZsCeMT.js";import{t as m}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as h,t as g}from"./slidev/context-DB-9afGB.js";import{t as _}from"./PixelImage-C1NqQXMF.js";var v={class:`slidev-layout dl-title`},y={class:`dl-title__eyebrow`},b={key:0,class:`dl-title__code`},x={key:1,class:`dl-title__lecture`},S={class:`dl-title__body`},C={class:`dl-title__meta`},w={key:0,class:`dl-title__author`},T=[`href`],E={key:2,class:`dl-title__date`},D=m(a({__name:`title`,props:{courseCode:{},lecture:{},author:{},email:{},date:{}},setup(t){let{$slidev:r,$nav:i,$clicksContext:a,$clicks:l,$page:u,$renderContext:d,$frontmatter:p}=h(),m=t;return(t,r)=>(e(),c(`div`,v,[s(`div`,y,[m.courseCode?(e(),c(`span`,b,n(m.courseCode),1)):f(`v-if`,!0),m.lecture?(e(),c(`span`,x,`Lecture `+n(m.lecture),1)):f(`v-if`,!0)]),s(`div`,S,[o(t.$slots,`default`,{},void 0,!0)]),r[0]||=s(`div`,{class:`dl-rule dl-title__rule`},null,-1),s(`div`,C,[m.author?(e(),c(`div`,w,n(m.author),1)):f(`v-if`,!0),m.email?(e(),c(`a`,{key:1,href:`mailto:${m.email}`,class:`dl-title__email`},n(m.email),9,T)):f(`v-if`,!0),m.date?(e(),c(`div`,E,n(m.date),1)):f(`v-if`,!0)])]))}}),[[`__scopeId`,`data-v-dc59a472`]]),O={class:`dl-side-glyph dl-pixrow`},k={__name:`slides.md__slidev_1`,setup(n){let{$slidev:a,$nav:o,$clicksContext:c,$clicks:f,$page:m,$renderContext:v,$frontmatter:y}=h();return c.setup(),(n,a)=>{let o=_;return e(),u(D,d(r(p(g)(p(y),0))),{default:l(()=>[a[2]||=s(`h1`,null,`Generative Models and GANs`,-1),a[3]||=s(`p`,null,[i(`Everything so far took an image and said something about it. Today the model has to `),s(`strong`,null,`make`),i(` the image.`)],-1),s(`div`,O,[t(o,{pattern:`noise`,seed:11,size:84,label:`noise`}),a[0]||=s(`span`,{class:`dl-op is-accent`},`→`,-1),t(o,{pattern:`noise`,seed:11,noise:.55,size:84,label:`…`}),a[1]||=s(`span`,{class:`dl-op is-accent`},`→`,-1),t(o,{pattern:`smiley`,size:84,tone:`accent`,label:`a new image`})])]),_:1},16)}}};export{k as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-BIGss7Fk.js b/lecture-07/assets/md-BIGss7Fk.js new file mode 100644 index 0000000000000000000000000000000000000000..80506af28c682fd61bc9deee5879141bcb834871 --- /dev/null +++ b/lecture-07/assets/md-BIGss7Fk.js @@ -0,0 +1 @@ +import{B as e,D as t,G as n,S as r,_ as i,b as a,et as o,tt as s,v as c,xt as l,yt as u}from"./modules/shiki-CJZsCeMT.js";import{n as d,t as f}from"./slidev/context-DB-9afGB.js";import{t as p}from"./default-CbJk4Idc.js";var m={class:`grid grid-cols-[1.4fr_1fr] gap-6 mt-2 items-center`},h={class:`dl-callout`},g={__name:`slides.md__slidev_49`,setup(g){let{$slidev:_,$nav:v,$clicksContext:y,$clicks:b,$page:x,$renderContext:S,$frontmatter:C}=d();return y.setup(),(d,g)=>{let _=n(`click`);return e(),c(p,l(t(u(f)(u(C),48))),{default:o(()=>[g[2]||=i(`h1`,null,`Four ways to say two distributions differ`,-1),g[3]||=i(`div`,{class:`dl-ledger dl-ledger--formula mt-1`},[i(`table`,null,[i(`thead`,null,[i(`tr`,null,[i(`th`),i(`th`),i(`th`)])]),i(`tbody`,null,[i(`tr`,null,[i(`td`,null,`total variation`),i(`td`,null,[i(`span`,{class:`katex`},[i(`span`,{class:`katex-mathml`},[i(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[i(`semantics`,null,[i(`mrow`,null,[i(`mrow`,null,[i(`mi`,{mathvariant:`normal`},`T`),i(`mi`,{mathvariant:`normal`},`V`)]),i(`mo`,{stretchy:`false`},`(`),i(`mi`,null,`P`),i(`mo`,{separator:`true`},`,`),i(`mi`,null,`Q`),i(`mo`,{stretchy:`false`},`)`),i(`mo`,null,`=`),i(`mstyle`,{scriptlevel:`0`,displaystyle:`false`},[i(`mfrac`,null,[i(`mn`,null,`1`),i(`mn`,null,`2`)])]),i(`msub`,null,[i(`mo`,null,`∑`),i(`mi`,null,`x`)]),i(`mo`,{stretchy:`false`},`∣`),i(`mi`,null,`P`),i(`mo`,{stretchy:`false`},`(`),i(`mi`,null,`x`),i(`mo`,{stretchy:`false`},`)`),i(`mo`,null,`−`),i(`mi`,null,`Q`),i(`mo`,{stretchy:`false`},`(`),i(`mi`,null,`x`),i(`mo`,{stretchy:`false`},`)`),i(`mo`,{stretchy:`false`},`∣`)]),i(`annotation`,{encoding:`application/x-tex`},`\\mathrm{TV}(P,Q) = \\tfrac{1}{2}\\sum_x \\lvert P(x) - Q(x) \\rvert`)])])]),i(`span`,{class:`katex-html`,"aria-hidden":`true`},[i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),i(`span`,{class:`mord`},[i(`span`,{class:`mord mathrm`,style:{"margin-right":`0.0139em`}},`TV`)]),i(`span`,{class:`mopen`},`(`),i(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.1389em`}},`P`),i(`span`,{class:`mpunct`},`,`),i(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),i(`span`,{class:`mord mathnormal`},`Q`),i(`span`,{class:`mclose`},`)`),i(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),i(`span`,{class:`mrel`},`=`),i(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`1.1901em`,"vertical-align":`-0.345em`}}),i(`span`,{class:`mord`},[i(`span`,{class:`mopen nulldelimiter`}),i(`span`,{class:`mfrac`},[i(`span`,{class:`vlist-t vlist-t2`},[i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.8451em`}},[i(`span`,{style:{top:`-2.655em`}},[i(`span`,{class:`pstrut`,style:{height:`3em`}}),i(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[i(`span`,{class:`mord mtight`},[i(`span`,{class:`mord mtight`},`2`)])])]),i(`span`,{style:{top:`-3.23em`}},[i(`span`,{class:`pstrut`,style:{height:`3em`}}),i(`span`,{class:`frac-line`,style:{"border-bottom-width":`0.04em`}})]),i(`span`,{style:{top:`-3.394em`}},[i(`span`,{class:`pstrut`,style:{height:`3em`}}),i(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[i(`span`,{class:`mord mtight`},[i(`span`,{class:`mord mtight`},`1`)])])])]),i(`span`,{class:`vlist-s`},`​`)]),i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.345em`}},[i(`span`)])])])]),i(`span`,{class:`mclose nulldelimiter`})]),i(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),i(`span`,{class:`mop`},[i(`span`,{class:`mop op-symbol small-op`,style:{position:`relative`,top:`0em`}},`∑`),i(`span`,{class:`msupsub`},[i(`span`,{class:`vlist-t vlist-t2`},[i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.0017em`}},[i(`span`,{style:{top:`-2.4003em`,"margin-left":`0em`,"margin-right":`0.05em`}},[i(`span`,{class:`pstrut`,style:{height:`2.7em`}}),i(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[i(`span`,{class:`mord mathnormal mtight`},`x`)])])]),i(`span`,{class:`vlist-s`},`​`)]),i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.2997em`}},[i(`span`)])])])])]),i(`span`,{class:`mopen`},`∣`),i(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.1389em`}},`P`),i(`span`,{class:`mopen`},`(`),i(`span`,{class:`mord mathnormal`},`x`),i(`span`,{class:`mclose`},`)`),i(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),i(`span`,{class:`mbin`},`−`),i(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),i(`span`,{class:`mord mathnormal`},`Q`),i(`span`,{class:`mopen`},`(`),i(`span`,{class:`mord mathnormal`},`x`),i(`span`,{class:`mclose`},`)∣`)])])])]),i(`td`,null,`half the total gap`)]),i(`tr`,null,[i(`td`,null,`Kullback–Leibler`),i(`td`,null,[i(`span`,{class:`katex`},[i(`span`,{class:`katex-mathml`},[i(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[i(`semantics`,null,[i(`mrow`,null,[i(`mrow`,null,[i(`mi`,{mathvariant:`normal`},`K`),i(`mi`,{mathvariant:`normal`},`L`)]),i(`mo`,{stretchy:`false`},`(`),i(`mi`,null,`P`),i(`mi`,{mathvariant:`normal`},`∥`),i(`mi`,null,`Q`),i(`mo`,{stretchy:`false`},`)`),i(`mo`,null,`=`),i(`mo`,null,`∫`),i(`mi`,null,`P`),i(`mo`,{stretchy:`false`},`(`),i(`mi`,null,`x`),i(`mo`,{stretchy:`false`},`)`),i(`mi`,null,`log`),i(`mo`,null,`⁡`),i(`mfrac`,null,[i(`mrow`,null,[i(`mi`,null,`P`),i(`mo`,{stretchy:`false`},`(`),i(`mi`,null,`x`),i(`mo`,{stretchy:`false`},`)`)]),i(`mrow`,null,[i(`mi`,null,`Q`),i(`mo`,{stretchy:`false`},`(`),i(`mi`,null,`x`),i(`mo`,{stretchy:`false`},`)`)])]),i(`mtext`,null,` `),i(`mi`,null,`d`),i(`mi`,null,`x`)]),i(`annotation`,{encoding:`application/x-tex`},`\\mathrm{KL}(P \\Vert Q) = \\int P(x) \\log \\frac{P(x)}{Q(x)}\\,dx`)])])]),i(`span`,{class:`katex-html`,"aria-hidden":`true`},[i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),i(`span`,{class:`mord`},[i(`span`,{class:`mord mathrm`},`KL`)]),i(`span`,{class:`mopen`},`(`),i(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.1389em`}},`P`),i(`span`,{class:`mord`},`∥`),i(`span`,{class:`mord mathnormal`},`Q`),i(`span`,{class:`mclose`},`)`),i(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),i(`span`,{class:`mrel`},`=`),i(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`1.53em`,"vertical-align":`-0.52em`}}),i(`span`,{class:`mop op-symbol small-op`,style:{"margin-right":`0.1945em`,position:`relative`,top:`-0.0006em`}},`∫`),i(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),i(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.1389em`}},`P`),i(`span`,{class:`mopen`},`(`),i(`span`,{class:`mord mathnormal`},`x`),i(`span`,{class:`mclose`},`)`),i(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),i(`span`,{class:`mop`},[r(`lo`),i(`span`,{style:{"margin-right":`0.0139em`}},`g`)]),i(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),i(`span`,{class:`mord`},[i(`span`,{class:`mopen nulldelimiter`}),i(`span`,{class:`mfrac`},[i(`span`,{class:`vlist-t vlist-t2`},[i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`1.01em`}},[i(`span`,{style:{top:`-2.655em`}},[i(`span`,{class:`pstrut`,style:{height:`3em`}}),i(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[i(`span`,{class:`mord mtight`},[i(`span`,{class:`mord mathnormal mtight`},`Q`),i(`span`,{class:`mopen mtight`},`(`),i(`span`,{class:`mord mathnormal mtight`},`x`),i(`span`,{class:`mclose mtight`},`)`)])])]),i(`span`,{style:{top:`-3.23em`}},[i(`span`,{class:`pstrut`,style:{height:`3em`}}),i(`span`,{class:`frac-line`,style:{"border-bottom-width":`0.04em`}})]),i(`span`,{style:{top:`-3.485em`}},[i(`span`,{class:`pstrut`,style:{height:`3em`}}),i(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[i(`span`,{class:`mord mtight`},[i(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.1389em`}},`P`),i(`span`,{class:`mopen mtight`},`(`),i(`span`,{class:`mord mathnormal mtight`},`x`),i(`span`,{class:`mclose mtight`},`)`)])])])]),i(`span`,{class:`vlist-s`},`​`)]),i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.52em`}},[i(`span`)])])])]),i(`span`,{class:`mclose nulldelimiter`})]),i(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),i(`span`,{class:`mord mathnormal`},`d`),i(`span`,{class:`mord mathnormal`},`x`)])])])]),i(`td`,null,[r(`asymmetric; `),i(`span`,{class:`katex`},[i(`span`,{class:`katex-mathml`},[i(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[i(`semantics`,null,[i(`mrow`,null,[i(`mi`,{mathvariant:`normal`},`∞`)]),i(`annotation`,{encoding:`application/x-tex`},`\\infty`)])])]),i(`span`,{class:`katex-html`,"aria-hidden":`true`},[i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`0.4306em`}}),i(`span`,{class:`mord`},`∞`)])])]),r(` if `),i(`span`,{class:`katex`},[i(`span`,{class:`katex-mathml`},[i(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[i(`semantics`,null,[i(`mrow`,null,[i(`mi`,null,`Q`)]),i(`annotation`,{encoding:`application/x-tex`},`Q`)])])]),i(`span`,{class:`katex-html`,"aria-hidden":`true`},[i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`0.8778em`,"vertical-align":`-0.1944em`}}),i(`span`,{class:`mord mathnormal`},`Q`)])])]),r(` misses`)])]),i(`tr`,null,[i(`td`,null,`Jensen–Shannon`),i(`td`,null,[i(`span`,{class:`katex`},[i(`span`,{class:`katex-mathml`},[i(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[i(`semantics`,null,[i(`mrow`,null,[i(`mrow`,null,[i(`mi`,{mathvariant:`normal`},`J`),i(`mi`,{mathvariant:`normal`},`S`)]),i(`mo`,{stretchy:`false`},`(`),i(`mi`,null,`P`),i(`mo`,{separator:`true`},`,`),i(`mi`,null,`Q`),i(`mo`,{stretchy:`false`},`)`),i(`mo`,null,`=`),i(`mstyle`,{scriptlevel:`0`,displaystyle:`false`},[i(`mfrac`,null,[i(`mn`,null,`1`),i(`mn`,null,`2`)])]),i(`mo`,{fence:`false`,stretchy:`true`,minsize:`1.2em`,maxsize:`1.2em`},`(`),i(`mrow`,null,[i(`mi`,{mathvariant:`normal`},`K`),i(`mi`,{mathvariant:`normal`},`L`)]),i(`mo`,{stretchy:`false`},`(`),i(`mi`,null,`P`),i(`mi`,{mathvariant:`normal`},`∥`),i(`mi`,null,`M`),i(`mo`,{stretchy:`false`},`)`),i(`mo`,null,`+`),i(`mrow`,null,[i(`mi`,{mathvariant:`normal`},`K`),i(`mi`,{mathvariant:`normal`},`L`)]),i(`mo`,{stretchy:`false`},`(`),i(`mi`,null,`Q`),i(`mi`,{mathvariant:`normal`},`∥`),i(`mi`,null,`M`),i(`mo`,{stretchy:`false`},`)`),i(`mo`,{fence:`false`,stretchy:`true`,minsize:`1.2em`,maxsize:`1.2em`},`)`)]),i(`annotation`,{encoding:`application/x-tex`},`\\mathrm{JS}(P,Q) = \\tfrac{1}{2}\\big(\\mathrm{KL}(P\\Vert M) + \\mathrm{KL}(Q\\Vert M)\\big)`)])])]),i(`span`,{class:`katex-html`,"aria-hidden":`true`},[i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),i(`span`,{class:`mord`},[i(`span`,{class:`mord mathrm`},`JS`)]),i(`span`,{class:`mopen`},`(`),i(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.1389em`}},`P`),i(`span`,{class:`mpunct`},`,`),i(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),i(`span`,{class:`mord mathnormal`},`Q`),i(`span`,{class:`mclose`},`)`),i(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),i(`span`,{class:`mrel`},`=`),i(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`1.2em`,"vertical-align":`-0.35em`}}),i(`span`,{class:`mord`},[i(`span`,{class:`mopen nulldelimiter`}),i(`span`,{class:`mfrac`},[i(`span`,{class:`vlist-t vlist-t2`},[i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.8451em`}},[i(`span`,{style:{top:`-2.655em`}},[i(`span`,{class:`pstrut`,style:{height:`3em`}}),i(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[i(`span`,{class:`mord mtight`},[i(`span`,{class:`mord mtight`},`2`)])])]),i(`span`,{style:{top:`-3.23em`}},[i(`span`,{class:`pstrut`,style:{height:`3em`}}),i(`span`,{class:`frac-line`,style:{"border-bottom-width":`0.04em`}})]),i(`span`,{style:{top:`-3.394em`}},[i(`span`,{class:`pstrut`,style:{height:`3em`}}),i(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[i(`span`,{class:`mord mtight`},[i(`span`,{class:`mord mtight`},`1`)])])])]),i(`span`,{class:`vlist-s`},`​`)]),i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.345em`}},[i(`span`)])])])]),i(`span`,{class:`mclose nulldelimiter`})]),i(`span`,{class:`mord`},[i(`span`,{class:`delimsizing size1`},`(`)]),i(`span`,{class:`mord`},[i(`span`,{class:`mord mathrm`},`KL`)]),i(`span`,{class:`mopen`},`(`),i(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.1389em`}},`P`),i(`span`,{class:`mord`},`∥`),i(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.109em`}},`M`),i(`span`,{class:`mclose`},`)`),i(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),i(`span`,{class:`mbin`},`+`),i(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`1.2em`,"vertical-align":`-0.35em`}}),i(`span`,{class:`mord`},[i(`span`,{class:`mord mathrm`},`KL`)]),i(`span`,{class:`mopen`},`(`),i(`span`,{class:`mord mathnormal`},`Q`),i(`span`,{class:`mord`},`∥`),i(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.109em`}},`M`),i(`span`,{class:`mclose`},`)`),i(`span`,{class:`mord`},[i(`span`,{class:`delimsizing size1`},`)`)])])])])]),i(`td`,null,[r(`symmetric, `),i(`span`,{class:`katex`},[i(`span`,{class:`katex-mathml`},[i(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[i(`semantics`,null,[i(`mrow`,null,[i(`mi`,null,`M`),i(`mo`,null,`=`),i(`mstyle`,{scriptlevel:`0`,displaystyle:`false`},[i(`mfrac`,null,[i(`mrow`,null,[i(`mi`,null,`P`),i(`mo`,null,`+`),i(`mi`,null,`Q`)]),i(`mn`,null,`2`)])])]),i(`annotation`,{encoding:`application/x-tex`},`M = \\tfrac{P+Q}{2}`)])])]),i(`span`,{class:`katex-html`,"aria-hidden":`true`},[i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),i(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.109em`}},`M`),i(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),i(`span`,{class:`mrel`},`=`),i(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`1.2694em`,"vertical-align":`-0.345em`}}),i(`span`,{class:`mord`},[i(`span`,{class:`mopen nulldelimiter`}),i(`span`,{class:`mfrac`},[i(`span`,{class:`vlist-t vlist-t2`},[i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.9244em`}},[i(`span`,{style:{top:`-2.655em`}},[i(`span`,{class:`pstrut`,style:{height:`3em`}}),i(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[i(`span`,{class:`mord mtight`},[i(`span`,{class:`mord mtight`},`2`)])])]),i(`span`,{style:{top:`-3.23em`}},[i(`span`,{class:`pstrut`,style:{height:`3em`}}),i(`span`,{class:`frac-line`,style:{"border-bottom-width":`0.04em`}})]),i(`span`,{style:{top:`-3.4461em`}},[i(`span`,{class:`pstrut`,style:{height:`3em`}}),i(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[i(`span`,{class:`mord mtight`},[i(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.1389em`}},`P`),i(`span`,{class:`mbin mtight`},`+`),i(`span`,{class:`mord mathnormal mtight`},`Q`)])])])]),i(`span`,{class:`vlist-s`},`​`)]),i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.345em`}},[i(`span`)])])])]),i(`span`,{class:`mclose nulldelimiter`})])])])])])]),i(`tr`,null,[i(`td`,null,`earth-mover`),i(`td`,null,[i(`span`,{class:`katex`},[i(`span`,{class:`katex-mathml`},[i(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[i(`semantics`,null,[i(`mrow`,null,[i(`mrow`,null,[i(`mi`,{mathvariant:`normal`},`E`),i(`mi`,{mathvariant:`normal`},`M`)]),i(`mo`,{stretchy:`false`},`(`),i(`mi`,null,`P`),i(`mo`,{separator:`true`},`,`),i(`mi`,null,`Q`),i(`mo`,{stretchy:`false`},`)`),i(`mo`,null,`=`),i(`msub`,null,[i(`mrow`,null,[i(`mi`,null,`inf`),i(`mo`,null,`⁡`)]),i(`mi`,null,`γ`)]),i(`msub`,null,[i(`mi`,{mathvariant:`double-struck`},`E`),i(`mrow`,null,[i(`mo`,{stretchy:`false`},`(`),i(`mi`,null,`u`),i(`mo`,{separator:`true`},`,`),i(`mi`,null,`v`),i(`mo`,{stretchy:`false`},`)`),i(`mo`,null,`∼`),i(`mi`,null,`γ`)])]),i(`mo`,{stretchy:`false`},`∥`),i(`mi`,null,`u`),i(`mo`,null,`−`),i(`mi`,null,`v`),i(`mo`,{stretchy:`false`},`∥`)]),i(`annotation`,{encoding:`application/x-tex`},`\\mathrm{EM}(P,Q) = \\inf_{\\gamma} \\mathbb{E}_{(u,v)\\sim\\gamma} \\lVert u - v \\rVert`)])])]),i(`span`,{class:`katex-html`,"aria-hidden":`true`},[i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),i(`span`,{class:`mord`},[i(`span`,{class:`mord mathrm`},`EM`)]),i(`span`,{class:`mopen`},`(`),i(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.1389em`}},`P`),i(`span`,{class:`mpunct`},`,`),i(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),i(`span`,{class:`mord mathnormal`},`Q`),i(`span`,{class:`mclose`},`)`),i(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),i(`span`,{class:`mrel`},`=`),i(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`1.1052em`,"vertical-align":`-0.3552em`}}),i(`span`,{class:`mop`},[i(`span`,{class:`mop`},[r(`in`),i(`span`,{style:{"margin-right":`0.0778em`}},`f`)]),i(`span`,{class:`msupsub`},[i(`span`,{class:`vlist-t vlist-t2`},[i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.1514em`}},[i(`span`,{style:{top:`-2.55em`,"margin-right":`0.05em`}},[i(`span`,{class:`pstrut`,style:{height:`2.7em`}}),i(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[i(`span`,{class:`mord mtight`},[i(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0556em`}},`γ`)])])])]),i(`span`,{class:`vlist-s`},`​`)]),i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.2861em`}},[i(`span`)])])])])]),i(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),i(`span`,{class:`mord`},[i(`span`,{class:`mord mathbb`},`E`),i(`span`,{class:`msupsub`},[i(`span`,{class:`vlist-t vlist-t2`},[i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.3448em`}},[i(`span`,{style:{top:`-2.5198em`,"margin-left":`0em`,"margin-right":`0.05em`}},[i(`span`,{class:`pstrut`,style:{height:`2.7em`}}),i(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[i(`span`,{class:`mord mtight`},[i(`span`,{class:`mopen mtight`},`(`),i(`span`,{class:`mord mathnormal mtight`},`u`),i(`span`,{class:`mpunct mtight`},`,`),i(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0359em`}},`v`),i(`span`,{class:`mclose mtight`},`)`),i(`span`,{class:`mrel mtight`},`∼`),i(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0556em`}},`γ`)])])])]),i(`span`,{class:`vlist-s`},`​`)]),i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.3552em`}},[i(`span`)])])])])]),i(`span`,{class:`mopen`},`∥`),i(`span`,{class:`mord mathnormal`},`u`),i(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),i(`span`,{class:`mbin`},`−`),i(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),i(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0359em`}},`v`),i(`span`,{class:`mclose`},`∥`)])])])]),i(`td`,null,`cheapest way to move the mass`)])])])],-1),i(`div`,m,[s((e(),a(`div`,h,[...g[0]||=[i(`p`,null,[r(`Only the last one knows about `),i(`strong`,null,`distance`),r(`. The other three ask how much mass is misplaced, never how far it has to go.`)],-1)]])),[[_]]),s((e(),a(`div`,null,[...g[1]||=[i(`svg`,{viewBox:`0 0 260 100`,class:`dl-diagram`,role:`img`,"aria-label":`Earth-mover: moving a pile of sand one step costs less than moving it two steps`},[i(`defs`,null,[i(`marker`,{id:`em-arrow`,markerWidth:`6`,markerHeight:`6`,refX:`5`,refY:`3`,orient:`auto`},[i(`path`,{class:`dl-dg-head`,d:`M0 0 L6 3 L0 6 z`})])]),i(`line`,{class:`dl-dg-split`,x1:`10`,y1:`80`,x2:`250`,y2:`80`}),i(`path`,{class:`dl-dg-fill is-muted`,d:`M20 80 Q 50 30 80 80 Z`}),i(`path`,{class:`dl-dg-fill`,d:`M180 80 Q 210 30 240 80 Z`}),i(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#em-arrow)`,d:`M60 40 C 100 10, 160 10, 196 40`}),i(`text`,{class:`dl-dg-small`,x:`130`,y:`96`,"text-anchor":`middle`},`cost = how much × how far`)],-1)]])),[[_]])])]),_:1},16)}}};export{g as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-BKtPMZiA.js b/lecture-07/assets/md-BKtPMZiA.js new file mode 100644 index 0000000000000000000000000000000000000000..c3281542e209319397a74b5bc6ae4ae189058700 --- /dev/null +++ b/lecture-07/assets/md-BKtPMZiA.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,S as i,_ as a,b as o,et as s,tt as c,v as l,xt as u,yt as d}from"./modules/shiki-CJZsCeMT.js";import{n as f,t as p}from"./slidev/context-DB-9afGB.js";import{t as m}from"./default-CbJk4Idc.js";import{t as h}from"./slidev/VClicks-DhU7uhQr.js";import{t as g}from"./Plot2D-ifvwvNLG.js";import{t as _}from"./PlotLabel-BuFT7VP9.js";import{t as v}from"./PlotPoints-Cxs9FmbK.js";import{t as y}from"./PlotCurve-BoqzCl1G.js";import{t as b}from"./Citation-CcKhBxpe.js";var x={class:`grid grid-cols-[1.05fr_1fr] gap-6 mt-1 items-center`},S={class:`dl-tight`},C={class:`mt-2 dl-callout`},w={class:`mt-1`},T={__name:`slides.md__slidev_51`,setup(T){let{$slidev:E,$nav:D,$clicksContext:O,$clicks:k,$page:A,$renderContext:j,$frontmatter:M}=f();return O.setup(),(f,T)=>{let E=y,D=v,O=_,k=g,A=h,j=b,N=r(`click`);return e(),l(m,u(n(d(p)(d(M),50))),{default:s(()=>[T[2]||=a(`h1`,null,`Wasserstein, and what came after`,-1),a(`div`,x,[a(`div`,null,[t(k,{"x-domain":[-2,2],"y-domain":[0,2.1],width:420,height:230,"x-label":`θ — how far Q sits from P`,"x-ticks":[-2,-1,0,1,2],"y-ticks":[0,.69,1,2]},{default:s(()=>[t(E,{points:[[-2,.693],[-.02,.693]],color:`var(--dl-danger)`,width:2.6}),t(E,{points:[[.02,.693],[2,.693]],color:`var(--dl-danger)`,width:2.6}),t(E,{fn:e=>Math.abs(e),color:`var(--dl-accent)`,width:2.6},null,8,[`fn`]),t(D,{points:[{x:0,y:0}],color:`var(--dl-danger)`,radius:4}),t(O,{at:[-1.95,.693],text:`JS = log 2, flat`,color:`var(--dl-danger)`,dy:-8,bold:``}),t(O,{at:[1.3,.95],text:`EM = |θ|`,color:`var(--dl-accent)`,bold:``})]),_:1})]),a(`div`,S,[t(A,null,{default:s(()=>[...T[0]||=[a(`ul`,null,[a(`li`,null,[a(`strong`,null,`WGAN`),i(` (Wasserstein GAN, 2017) — a `),a(`em`,null,`critic`),i(` with no sigmoid; its loss estimates EM`)]),a(`li`,null,[i(`The critic must be `),a(`strong`,null,`smooth`),i(` (`),a(`em`,null,`Lipschitz`),i(`): its output cannot change faster than a fixed rate`)]),a(`li`,null,[a(`strong`,null,`WGAN-GP`),i(` (GP = gradient penalty) enforces that with an extra loss term`)]),a(`li`,null,[a(`strong`,null,`Spectral normalisation`),i(` does it per layer — cheaper, and now common`)])],-1)]]),_:1})])]),c((e(),o(`div`,C,[...T[1]||=[a(`p`,null,[i(`The critic’s loss finally `),a(`strong`,null,`goes down as samples get better`),i(` — the training curve means something.`)],-1)]])),[[N]]),a(`div`,w,[t(j,{source:`Arjovsky, Chintala & Bottou, Wasserstein GAN (2017)`,url:`https://arxiv.org/abs/1701.07875`})])]),_:1},16)}}};export{T as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-BMweE8ZU.js b/lecture-07/assets/md-BMweE8ZU.js new file mode 100644 index 0000000000000000000000000000000000000000..9fd422d7fc3f9aacd5b6998663631ef22bc1efbd --- /dev/null +++ b/lecture-07/assets/md-BMweE8ZU.js @@ -0,0 +1,13 @@ +import{B as e,C as t,Ct as n,D as r,G as i,H as a,N as o,S as s,_ as c,b as l,bt as u,et as d,m as f,tt as p,v as m,xt as h,yt as g}from"./modules/shiki-CJZsCeMT.js";import{n as _,t as v}from"./slidev/context-DB-9afGB.js";import{t as y}from"./default-CbJk4Idc.js";import{t as b}from"./slidev/CodeBlockWrapper-CsMaG0t-.js";var x={class:`grid grid-cols-[2.3fr_1fr] gap-4 items-center`},S={viewBox:`0 0 200 230`,class:`dl-diagram`,role:`img`,"aria-label":`Layer widths 784, 128, 2, 128, 784`},C=[`x`,`y`,`width`],w=[`y`],T={class:`mt-2 dl-secondary`},E={__name:`slides.md__slidev_16`,setup(E){let{$slidev:D,$nav:O,$clicksContext:k,$clicks:A,$page:j,$renderContext:M,$frontmatter:N}=_();return k.setup(),(_,E)=>{let D=b,O=i(`click`);return e(),m(y,h(r(g(v)(g(N),15))),{default:d(()=>[E[2]||=c(`h1`,null,`An autoencoder in PyTorch`,-1),c(`div`,x,[c(`div`,null,[t(D,o({lines:!0},{title:``,ranges:[`all`,`1-4`,`5-8`,`10-13`,`all`]}),{default:d(()=>[...E[0]||=[c(`pre`,{class:`shiki shiki-themes vitesse-dark vitesse-light slidev-code`,style:{"--shiki-dark":`#dbd7caee`,"--shiki-light":`#393a34`,"--shiki-dark-bg":`#121212`,"--shiki-light-bg":`#ffffff`}},[c(`code`,{class:`language-python`},[c(`span`,{class:`line`},[c(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`enc `),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`=`),c(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` nn`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),c(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`Sequential`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),c(`span`,{style:{"--shiki-dark":`#758575DD`,"--shiki-light":`#A0ADA0`}},` # 784 → 2`)]),s(` +`),c(`span`,{class:`line`},[c(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` nn`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),c(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`Linear`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),c(`span`,{style:{"--shiki-dark":`#4C9A91`,"--shiki-light":`#2F798A`}},`784`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`,`),c(`span`,{style:{"--shiki-dark":`#4C9A91`,"--shiki-light":`#2F798A`}},` 128`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`),`),c(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` nn`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),c(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`ReLU`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(),`)]),s(` +`),c(`span`,{class:`line`},[c(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` nn`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),c(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`Linear`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),c(`span`,{style:{"--shiki-dark":`#4C9A91`,"--shiki-light":`#2F798A`}},`128`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`,`),c(`span`,{style:{"--shiki-dark":`#4C9A91`,"--shiki-light":`#2F798A`}},` 2`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`),`)]),s(` +`),c(`span`,{class:`line`},[c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`)`)]),s(` +`),c(`span`,{class:`line`},[c(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`dec `),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`=`),c(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` nn`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),c(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`Sequential`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),c(`span`,{style:{"--shiki-dark":`#758575DD`,"--shiki-light":`#A0ADA0`}},` # 2 → 784`)]),s(` +`),c(`span`,{class:`line`},[c(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` nn`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),c(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`Linear`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),c(`span`,{style:{"--shiki-dark":`#4C9A91`,"--shiki-light":`#2F798A`}},`2`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`,`),c(`span`,{style:{"--shiki-dark":`#4C9A91`,"--shiki-light":`#2F798A`}},` 128`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`),`),c(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` nn`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),c(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`ReLU`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(),`)]),s(` +`),c(`span`,{class:`line`},[c(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` nn`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),c(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`Linear`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),c(`span`,{style:{"--shiki-dark":`#4C9A91`,"--shiki-light":`#2F798A`}},`128`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`,`),c(`span`,{style:{"--shiki-dark":`#4C9A91`,"--shiki-light":`#2F798A`}},` 784`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`),`),c(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` nn`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),c(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`Sigmoid`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(),`)]),s(` +`),c(`span`,{class:`line`},[c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`)`)]),s(` +`),c(`span`,{class:`line`}),s(` +`),c(`span`,{class:`line`},[c(`span`,{style:{"--shiki-dark":`#4D9375`,"--shiki-light":`#1E754F`}},`for`),c(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` x`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`,`),c(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` _ `),c(`span`,{style:{"--shiki-dark":`#4D9375`,"--shiki-light":`#1E754F`}},`in`),c(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` loader`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`:`),c(`span`,{style:{"--shiki-dark":`#758575DD`,"--shiki-light":`#A0ADA0`}},` # the label is thrown away`)]),s(` +`),c(`span`,{class:`line`},[c(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` z `),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`=`),c(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` enc`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),c(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`x`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),c(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`flatten`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),c(`span`,{style:{"--shiki-dark":`#4C9A91`,"--shiki-light":`#2F798A`}},`1`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`))`),c(`span`,{style:{"--shiki-dark":`#758575DD`,"--shiki-light":`#A0ADA0`}},` # (B, 784) → (B, 2)`)]),s(` +`),c(`span`,{class:`line`},[c(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` loss `),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`=`),c(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` F`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),c(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`mse_loss`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),c(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`dec`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),c(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`z`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`),`),c(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` x`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),c(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`flatten`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),c(`span`,{style:{"--shiki-dark":`#4C9A91`,"--shiki-light":`#2F798A`}},`1`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`))`),c(`span`,{style:{"--shiki-dark":`#758575DD`,"--shiki-light":`#A0ADA0`}},` # the input IS the target`)]),s(` +`),c(`span`,{class:`line`},[c(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` loss`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),c(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`backward`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`()`),c(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`; opt`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),c(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`step`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`()`),c(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`; opt`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),c(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`zero_grad`),c(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`()`)])])],-1)]]),_:1},16)]),c(`div`,null,[(e(),l(`svg`,S,[(e(),l(f,null,a([[784,180,`x`],[128,80,``],[2,10,`z`],[128,80,``],[784,180,`x̂`]],(e,t)=>c(`g`,{key:t},[c(`rect`,{class:u([`dl-dg-box`,t===2?`is-accent`:``]),x:100-e[1]/2,y:6+t*44,width:e[1],height:`26`,rx:`3`},null,10,C),c(`text`,{class:`dl-dg-small`,x:`100`,y:24+t*44,"text-anchor":`middle`},n(e[0]),9,w)])),64))]))])]),p((e(),l(`div`,T,[...E[1]||=[c(`p`,null,[c(`code`,null,`for x, _ in loader`),s(` — the underscore is the point. No labels were used.`)],-1)]])),[[O]])]),_:1},16)}}};export{E as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-BN7T8SWZ.js b/lecture-07/assets/md-BN7T8SWZ.js new file mode 100644 index 0000000000000000000000000000000000000000..8e89d9d9f2a1ef0101b9a3404c4d6401866f277c --- /dev/null +++ b/lecture-07/assets/md-BN7T8SWZ.js @@ -0,0 +1,23 @@ +import{B as e,C as t,Ct as n,D as r,G as i,H as a,S as o,_ as s,b as c,bt as l,et as u,m as d,tt as f,v as p,xt as m,yt as h}from"./modules/shiki-CJZsCeMT.js";import{n as g,t as _}from"./slidev/context-DB-9afGB.js";import{t as v}from"./default-CbJk4Idc.js";import{t as y}from"./slidev/VClicks-DhU7uhQr.js";var b={class:`grid grid-cols-[1.45fr_1fr] gap-5 mt-1 items-start`},x={class:`dl-ledger dl-tight dl-eq-legend`},S={viewBox:`0 0 300 110`,class:`dl-diagram`,role:`img`,"aria-label":`One pixel: 0.8 times 1.0 plus 0.6 times minus 0.5 equals 0.5`},C=[`x`],w=[`x`],T=[`x`],E={class:`dl-callout`},D={__name:`slides.md__slidev_58`,setup(D){let{$slidev:O,$nav:k,$clicksContext:A,$clicks:j,$page:M,$renderContext:N,$frontmatter:P}=g();return A.setup(),(g,D)=>{let O=y,k=i(`click`);return e(),p(v,m(r(h(_)(h(P),57))),{default:u(()=>[D[6]||=s(`h1`,null,`Reading the equation: one-step noising`,-1),s(`div`,b,[s(`div`,x,[t(O,null,{default:u(()=>[...D[0]||=[s(`table`,null,[s(`thead`,null,[s(`tr`,null,[s(`th`,null,`symbol`),s(`th`,null,`name`),s(`th`,null,`what it is here`),s(`th`,null,`example`)])]),s(`tbody`,null,[s(`tr`,null,[s(`td`,null,[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`msub`,null,[s(`mi`,{mathvariant:`bold`},`x`),s(`mn`,null,`0`)])]),s(`annotation`,{encoding:`application/x-tex`},`\\mathbf{x}_0`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.5944em`,"vertical-align":`-0.15em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mord mathbf`},`x`),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t vlist-t2`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.3011em`}},[s(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mtight`},`0`)])])]),s(`span`,{class:`vlist-s`},`​`)]),s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.15em`}},[s(`span`)])])])])])])])])]),s(`td`,null,`clean image`),s(`td`,null,`a training image (data)`),s(`td`,null,`pixel = 1.0`)]),s(`tr`,null,[s(`td`,null,[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mi`,null,`t`)]),s(`annotation`,{encoding:`application/x-tex`},`t`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.6151em`}}),s(`span`,{class:`mord mathnormal`},`t`)])])])]),s(`td`,null,`noise level (time step)`),s(`td`,null,[o(`0 = clean, `),s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mi`,null,`T`)]),s(`annotation`,{encoding:`application/x-tex`},`T`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),s(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.1389em`}},`T`)])])]),o(` = pure noise`)]),s(`td`)]),s(`tr`,null,[s(`td`,null,[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mi`,null,`T`)]),s(`annotation`,{encoding:`application/x-tex`},`T`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),s(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.1389em`}},`T`)])])])]),s(`td`,null,`number of levels`),s(`td`,null,`set by hand`),s(`td`,null,`1000 (widget: 47)`)]),s(`tr`,null,[s(`td`,null,[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`msub`,null,[s(`mover`,{accent:`true`},[s(`mi`,null,`α`),s(`mo`,null,`ˉ`)]),s(`mi`,null,`t`)])]),s(`annotation`,{encoding:`application/x-tex`},`\\bar\\alpha_t`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.7178em`,"vertical-align":`-0.15em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mord katex-accent`},[s(`span`,{class:`vlist-t`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.5678em`}},[s(`span`,{style:{top:`-3em`}},[s(`span`,{class:`pstrut`,style:{height:`3em`}}),s(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0037em`}},`α`)]),s(`span`,{style:{top:`-3em`}},[s(`span`,{class:`pstrut`,style:{height:`3em`}}),s(`span`,{class:`accent-body`,style:{left:`-0.2222em`}},[s(`span`,{class:`mord`},`ˉ`)])])])])])]),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t vlist-t2`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.2806em`}},[s(`span`,{style:{top:`-2.55em`,"margin-left":`-0.0037em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mathnormal mtight`},`t`)])])]),s(`span`,{class:`vlist-s`},`​`)]),s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.15em`}},[s(`span`)])])])])])])])])]),s(`td`,null,`"alpha bar"`),s(`td`,null,`share of image kept; fixed, not learned`),s(`td`,null,`0.64`)]),s(`tr`,null,[s(`td`,null,[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mi`,{mathvariant:`bold-italic`},`ϵ`)]),s(`annotation`,{encoding:`application/x-tex`},`\\boldsymbol\\epsilon`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.4444em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mord`},[s(`span`,{class:`mord boldsymbol`},`ϵ`)])])])])])]),s(`td`,null,`noise`),s(`td`,null,`random numbers, image-shaped`),s(`td`,null,`pixel = −0.5`)]),s(`tr`,null,[s(`td`,null,[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mi`,{mathvariant:`script`},`N`),s(`mo`,{stretchy:`false`},`(`),s(`mn`,{mathvariant:`bold`},`0`),s(`mo`,{separator:`true`},`,`),s(`mi`,null,`I`),s(`mo`,{stretchy:`false`},`)`)]),s(`annotation`,{encoding:`application/x-tex`},`\\mathcal{N}(\\mathbf{0}, I)`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),s(`span`,{class:`mord mathcal`,style:{"margin-right":`0.1474em`}},`N`),s(`span`,{class:`mopen`},`(`),s(`span`,{class:`mord mathbf`},`0`),s(`span`,{class:`mpunct`},`,`),s(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),s(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0785em`}},`I`),s(`span`,{class:`mclose`},`)`)])])])]),s(`td`,null,`standard normal`),s(`td`,null,`mean 0, spread 1 per pixel`),s(`td`)]),s(`tr`,null,[s(`td`,null,[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`msub`,null,[s(`mi`,{mathvariant:`bold`},`x`),s(`mi`,null,`t`)])]),s(`annotation`,{encoding:`application/x-tex`},`\\mathbf{x}_t`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.5944em`,"vertical-align":`-0.15em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mord mathbf`},`x`),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t vlist-t2`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.2806em`}},[s(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mathnormal mtight`},`t`)])])]),s(`span`,{class:`vlist-s`},`​`)]),s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.15em`}},[s(`span`)])])])])])])])])]),s(`td`,null,`noisy image`),s(`td`,null,[o(`the image at level `),s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mi`,null,`t`)]),s(`annotation`,{encoding:`application/x-tex`},`t`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.6151em`}}),s(`span`,{class:`mord mathnormal`},`t`)])])])]),s(`td`,null,`pixel = 0.5`)])])],-1)]]),_:1})]),s(`div`,null,[(e(),c(`svg`,S,[(e(),c(d,null,a([[`x₀`,`1.0`,`dl-dg-box`],[`ε`,`−0.5`,`dl-dg-box`],[`xₜ`,`0.5`,`dl-dg-box is-accent`]],(e,t)=>s(`g`,{key:t},[s(`rect`,{class:l(e[2]),x:12+t*104,y:`30`,width:`56`,height:`40`,rx:`4`},null,10,C),s(`text`,{class:`dl-dg-lab is-sm`,x:40+t*104,y:`55`,"text-anchor":`middle`},n(e[1]),9,w),s(`text`,{class:`dl-dg-small`,x:40+t*104,y:`92`,"text-anchor":`middle`},n(e[0]),9,T)])),64)),D[1]||=s(`text`,{class:`dl-dg-small`,x:`16`,y:`20`},`× 0.8`,-1),D[2]||=s(`text`,{class:`dl-dg-small`,x:`84`,y:`55`,"text-anchor":`middle`},`+`,-1),D[3]||=s(`text`,{class:`dl-dg-small`,x:`120`,y:`20`},`× 0.6`,-1),D[4]||=s(`text`,{class:`dl-dg-small`,x:`188`,y:`55`,"text-anchor":`middle`},`=`,-1)])),f((e(),c(`div`,E,[...D[5]||=[s(`p`,null,[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`msub`,null,[s(`mover`,{accent:`true`},[s(`mi`,null,`α`),s(`mo`,null,`ˉ`)]),s(`mi`,null,`t`)]),s(`mo`,null,`=`),s(`mn`,null,`0.64`)]),s(`annotation`,{encoding:`application/x-tex`},`\\bar\\alpha_t = 0.64`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.7178em`,"vertical-align":`-0.15em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mord katex-accent`},[s(`span`,{class:`vlist-t`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.5678em`}},[s(`span`,{style:{top:`-3em`}},[s(`span`,{class:`pstrut`,style:{height:`3em`}}),s(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0037em`}},`α`)]),s(`span`,{style:{top:`-3em`}},[s(`span`,{class:`pstrut`,style:{height:`3em`}}),s(`span`,{class:`accent-body`,style:{left:`-0.2222em`}},[s(`span`,{class:`mord`},`ˉ`)])])])])])]),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t vlist-t2`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.2806em`}},[s(`span`,{style:{top:`-2.55em`,"margin-left":`-0.0037em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mathnormal mtight`},`t`)])])]),s(`span`,{class:`vlist-s`},`​`)]),s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.15em`}},[s(`span`)])])])])]),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),s(`span`,{class:`mrel`},`=`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),s(`span`,{class:`mord`},`0.64`)])])]),o(`: `),s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`msqrt`,null,[s(`mn`,null,`0.64`)]),s(`mo`,null,`=`),s(`mn`,null,`0.8`)]),s(`annotation`,{encoding:`application/x-tex`},`\\sqrt{0.64} = 0.8`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`1.04em`,"vertical-align":`-0.1328em`}}),s(`span`,{class:`mord sqrt`},[s(`span`,{class:`vlist-t vlist-t2`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.9072em`}},[s(`span`,{class:`svg-align`,style:{top:`-3em`}},[s(`span`,{class:`pstrut`,style:{height:`3em`}}),s(`span`,{class:`mord`,style:{"padding-left":`0.833em`}},[s(`span`,{class:`mord`},`0.64`)])]),s(`span`,{style:{top:`-2.8672em`}},[s(`span`,{class:`pstrut`,style:{height:`3em`}}),s(`span`,{class:`hide-tail`,style:{"min-width":`0.853em`,height:`1.08em`}},[s(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`400em`,height:`1.08em`,viewBox:`0 0 400000 1080`,preserveAspectRatio:`xMinYMin slice`},[s(`path`,{d:`M95,702 +c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 +c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 +c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 +s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 +c69,-144,104.5,-217.7,106.5,-221 +l0 -0 +c5.3,-9.3,12,-14,20,-14 +H400000v40H845.2724 +s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 +c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z +M834 80h400000v40h-400000z`})])])])]),s(`span`,{class:`vlist-s`},`​`)]),s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.1328em`}},[s(`span`)])])])]),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),s(`span`,{class:`mrel`},`=`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),s(`span`,{class:`mord`},`0.8`)])])]),o(` and `),s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`msqrt`,null,[s(`mn`,null,`0.36`)]),s(`mo`,null,`=`),s(`mn`,null,`0.6`)]),s(`annotation`,{encoding:`application/x-tex`},`\\sqrt{0.36} = 0.6`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`1.04em`,"vertical-align":`-0.1328em`}}),s(`span`,{class:`mord sqrt`},[s(`span`,{class:`vlist-t vlist-t2`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.9072em`}},[s(`span`,{class:`svg-align`,style:{top:`-3em`}},[s(`span`,{class:`pstrut`,style:{height:`3em`}}),s(`span`,{class:`mord`,style:{"padding-left":`0.833em`}},[s(`span`,{class:`mord`},`0.36`)])]),s(`span`,{style:{top:`-2.8672em`}},[s(`span`,{class:`pstrut`,style:{height:`3em`}}),s(`span`,{class:`hide-tail`,style:{"min-width":`0.853em`,height:`1.08em`}},[s(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`400em`,height:`1.08em`,viewBox:`0 0 400000 1080`,preserveAspectRatio:`xMinYMin slice`},[s(`path`,{d:`M95,702 +c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 +c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 +c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 +s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 +c69,-144,104.5,-217.7,106.5,-221 +l0 -0 +c5.3,-9.3,12,-14,20,-14 +H400000v40H845.2724 +s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 +c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z +M834 80h400000v40h-400000z`})])])])]),s(`span`,{class:`vlist-s`},`​`)]),s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.1328em`}},[s(`span`)])])])]),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),s(`span`,{class:`mrel`},`=`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),s(`span`,{class:`mord`},`0.6`)])])])],-1),s(`p`,null,[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`msub`,null,[s(`mi`,{mathvariant:`bold`},`x`),s(`mi`,null,`t`)]),s(`mo`,null,`=`),s(`mn`,null,`0.8`),s(`mo`,null,`×`),s(`mn`,null,`1.0`),s(`mo`,null,`+`),s(`mn`,null,`0.6`),s(`mo`,null,`×`),s(`mo`,{stretchy:`false`},`(`),s(`mo`,null,`−`),s(`mn`,null,`0.5`),s(`mo`,{stretchy:`false`},`)`),s(`mo`,null,`=`),s(`mn`,null,`0.5`)]),s(`annotation`,{encoding:`application/x-tex`},`\\mathbf{x}_t = 0.8 \\times 1.0 + 0.6 \\times (-0.5) = 0.5`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.5944em`,"vertical-align":`-0.15em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mord mathbf`},`x`),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t vlist-t2`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.2806em`}},[s(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mathnormal mtight`},`t`)])])]),s(`span`,{class:`vlist-s`},`​`)]),s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.15em`}},[s(`span`)])])])])]),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),s(`span`,{class:`mrel`},`=`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.7278em`,"vertical-align":`-0.0833em`}}),s(`span`,{class:`mord`},`0.8`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),s(`span`,{class:`mbin`},`×`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.7278em`,"vertical-align":`-0.0833em`}}),s(`span`,{class:`mord`},`1.0`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),s(`span`,{class:`mbin`},`+`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.7278em`,"vertical-align":`-0.0833em`}}),s(`span`,{class:`mord`},`0.6`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),s(`span`,{class:`mbin`},`×`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),s(`span`,{class:`mopen`},`(`),s(`span`,{class:`mord`},`−`),s(`span`,{class:`mord`},`0.5`),s(`span`,{class:`mclose`},`)`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),s(`span`,{class:`mrel`},`=`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),s(`span`,{class:`mord`},`0.5`)])])])],-1)]])),[[k]])])])]),_:1},16)}}};export{D as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-BSYdaJJ8.js b/lecture-07/assets/md-BSYdaJJ8.js new file mode 100644 index 0000000000000000000000000000000000000000..eae0c42e741d531b7c160eded32cc86735dcfc9c --- /dev/null +++ b/lecture-07/assets/md-BSYdaJJ8.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,S as i,_ as a,b as o,et as s,tt as c,v as l,xt as u,yt as d}from"./modules/shiki-CJZsCeMT.js";import{n as f,t as p}from"./slidev/context-DB-9afGB.js";import{t as m}from"./default-CbJk4Idc.js";import{t as h}from"./slidev/VClicks-DhU7uhQr.js";var g={class:`grid grid-cols-2 gap-10 mt-2 dl-tight`},_={class:`mt-3 dl-callout`},v={__name:`slides.md__slidev_12`,setup(v){let{$slidev:y,$nav:b,$clicksContext:x,$clicks:S,$page:C,$renderContext:w,$frontmatter:T}=f();return x.setup(),(f,v)=>{let y=h,b=r(`click`);return e(),l(m,u(n(d(p)(d(T),11))),{default:s(()=>[v[7]||=a(`h1`,null,`How wide is the middle?`,-1),a(`div`,g,[a(`div`,null,[v[1]||=a(`svg`,{viewBox:`0 0 300 110`,class:`dl-diagram`,role:`img`,"aria-label":`An undercomplete autoencoder with a narrow middle`},[a(`polygon`,{class:`dl-dg-net`,points:`10,10 130,44 130,66 10,100`}),a(`rect`,{class:`dl-dg-box is-accent`,x:`136`,y:`44`,width:`28`,height:`22`,rx:`3`}),a(`polygon`,{class:`dl-dg-net`,points:`290,10 170,44 170,66 290,100`}),a(`text`,{class:`dl-dg-small`,x:`150`,y:`36`,"text-anchor":`middle`},`narrow`)],-1),v[2]||=a(`h3`,null,[i(`Undercomplete — `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`dim`),a(`mo`,null,`⁡`),a(`mo`,{stretchy:`false`},`(`),a(`mi`,{mathvariant:`bold`},`z`),a(`mo`,{stretchy:`false`},`)`),a(`mo`,null,`<`),a(`mi`,null,`dim`),a(`mo`,null,`⁡`),a(`mo`,{stretchy:`false`},`(`),a(`mi`,{mathvariant:`bold`},`x`),a(`mo`,{stretchy:`false`},`)`)]),a(`annotation`,{encoding:`application/x-tex`},`\\dim(\\mathbf{z}) < \\dim(\\mathbf{x})`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),a(`span`,{class:`mop`},`dim`),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord mathbf`},`z`),a(`span`,{class:`mclose`},`)`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`<`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),a(`span`,{class:`mop`},`dim`),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord mathbf`},`x`),a(`span`,{class:`mclose`},`)`)])])])],-1),t(y,null,{default:s(()=>[...v[0]||=[a(`ul`,null,[a(`li`,null,[i(`No room to keep everything, so it `),a(`strong`,null,`must choose`)]),a(`li`,null,`It keeps what changes most between examples`)],-1)]]),_:1})]),a(`div`,null,[v[4]||=a(`svg`,{viewBox:`0 0 300 110`,class:`dl-diagram`,role:`img`,"aria-label":`An overcomplete autoencoder whose middle is wider than its input, so it can copy`},[a(`defs`,null,[a(`marker`,{id:`oc-arrow`,markerWidth:`7`,markerHeight:`7`,refX:`6`,refY:`3.5`,orient:`auto`},[a(`path`,{class:`dl-dg-head`,d:`M0 0 L7 3.5 L0 7 z`})])]),a(`polygon`,{class:`dl-dg-net`,points:`10,26 110,10 110,100 10,84`}),a(`rect`,{class:`dl-dg-box is-accent`,x:`116`,y:`6`,width:`68`,height:`98`,rx:`3`}),a(`polygon`,{class:`dl-dg-net`,points:`290,26 190,10 190,100 290,84`}),a(`path`,{class:`dl-dg-line is-bad`,"marker-end":`url(#oc-arrow)`,d:`M20 55 H280`}),a(`text`,{class:`dl-dg-small is-bad`,x:`150`,y:`48`,"text-anchor":`middle`},`just copy`)],-1),v[5]||=a(`h3`,null,[i(`Overcomplete — `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`dim`),a(`mo`,null,`⁡`),a(`mo`,{stretchy:`false`},`(`),a(`mi`,{mathvariant:`bold`},`z`),a(`mo`,{stretchy:`false`},`)`),a(`mo`,null,`≥`),a(`mi`,null,`dim`),a(`mo`,null,`⁡`),a(`mo`,{stretchy:`false`},`(`),a(`mi`,{mathvariant:`bold`},`x`),a(`mo`,{stretchy:`false`},`)`)]),a(`annotation`,{encoding:`application/x-tex`},`\\dim(\\mathbf{z}) \\ge \\dim(\\mathbf{x})`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),a(`span`,{class:`mop`},`dim`),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord mathbf`},`z`),a(`span`,{class:`mclose`},`)`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`≥`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),a(`span`,{class:`mop`},`dim`),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord mathbf`},`x`),a(`span`,{class:`mclose`},`)`)])])])],-1),t(y,null,{default:s(()=>[...v[3]||=[a(`ul`,null,[a(`li`,null,[a(`strong`,null,`Copying`),i(` the input gives a perfect loss — and learns nothing`)]),a(`li`,null,`Useful only with another constraint — noise, sparsity`)],-1)]]),_:1})])]),c((e(),o(`div`,_,[...v[6]||=[a(`p`,null,`The narrow middle is not a weakness. It is what makes the model learn.`,-1)]])),[[b]])]),_:1},16)}}};export{v as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-BTxAhWcd.js b/lecture-07/assets/md-BTxAhWcd.js new file mode 100644 index 0000000000000000000000000000000000000000..be6652e8344d37e63b2cd24db0a7c6bb2cf44ab9 --- /dev/null +++ b/lecture-07/assets/md-BTxAhWcd.js @@ -0,0 +1 @@ +import{B as e,D as t,G as n,H as r,_ as i,b as a,et as o,m as s,tt as c,v as l,xt as u,yt as d}from"./modules/shiki-CJZsCeMT.js";import{n as f,t as p}from"./slidev/context-DB-9afGB.js";import{t as m}from"./default-CbJk4Idc.js";var h={class:`mt-1 flex justify-center`},g={viewBox:`0 0 660 210`,class:`dl-diagram`,role:`img`,"aria-label":`A discriminative model draws a boundary between two clusters; a generative model draws where each cluster lives and can place new points`},_=[`cx`,`cy`],v=[`cx`,`cy`],y=[`cx`,`cy`],b=[`cx`,`cy`],x={class:`mt-2 dl-callout`},S={__name:`slides.md__slidev_6`,setup(S){let{$slidev:C,$nav:w,$clicksContext:T,$clicks:E,$page:D,$renderContext:O,$frontmatter:k}=f();return T.setup(),(f,S)=>{let C=n(`click`);return e(),l(m,u(t(d(p)(d(k),5))),{default:o(()=>[S[14]||=i(`h1`,null,`Two kinds of model`,-1),i(`div`,h,[(e(),a(`svg`,g,[S[8]||=i(`text`,{class:`dl-dg-lab is-sm`,x:`160`,y:`16`,"text-anchor":`middle`},`discriminative — p(y | x)`,-1),S[9]||=i(`text`,{class:`dl-dg-small`,x:`160`,y:`32`,"text-anchor":`middle`},`where is the line?`,-1),(e(),a(s,null,r([[70,90],[92,120],[60,130],[100,80],[80,150],[115,105]],(e,t)=>i(`g`,{key:`a${t}`},[i(`circle`,{class:`dl-dg-dot`,cx:e[0],cy:e[1],r:`5`},null,8,_)])),64)),(e(),a(s,null,r([[220,90],[245,120],[210,140],[255,80],[230,160],[200,110]],(e,t)=>i(`g`,{key:`b${t}`},[i(`circle`,{class:`dl-dg-dot is-accent`,cx:e[0],cy:e[1],r:`5`},null,8,v)])),64)),S[10]||=i(`path`,{class:`dl-dg-line is-bad`,d:`M140 50 L175 195`},null,-1),S[11]||=i(`text`,{class:`dl-dg-small`,x:`160`,y:`206`,"text-anchor":`middle`},`everything either side is ignored`,-1),S[12]||=i(`line`,{class:`dl-dg-split`,x1:`330`,y1:`6`,x2:`330`,y2:`206`},null,-1),c((e(),a(`g`,null,[S[0]||=i(`text`,{class:`dl-dg-lab is-sm`,x:`500`,y:`16`,"text-anchor":`middle`},`generative — p(x)`,-1),S[1]||=i(`text`,{class:`dl-dg-small`,x:`500`,y:`32`,"text-anchor":`middle`},`where does the data live?`,-1),S[2]||=i(`ellipse`,{class:`dl-dg-fill is-muted is-dashed`,cx:`418`,cy:`115`,rx:`52`,ry:`52`},null,-1),S[3]||=i(`ellipse`,{class:`dl-dg-fill is-muted`,cx:`418`,cy:`115`,rx:`30`,ry:`30`},null,-1),S[4]||=i(`ellipse`,{class:`dl-dg-fill is-dashed`,cx:`570`,cy:`118`,rx:`52`,ry:`52`},null,-1),S[5]||=i(`ellipse`,{class:`dl-dg-fill`,cx:`570`,cy:`118`,rx:`30`,ry:`30`},null,-1),(e(),a(s,null,r([[410,90],[432,120],[400,130],[440,80],[420,150],[455,105]],(e,t)=>i(`g`,{key:`c${t}`},[i(`circle`,{class:`dl-dg-dot`,cx:e[0]-10,cy:e[1],r:`5`},null,8,y)])),64)),(e(),a(s,null,r([[560,90],[585,120],[550,140],[595,80],[570,160],[540,110]],(e,t)=>i(`g`,{key:`d${t}`},[i(`circle`,{class:`dl-dg-dot is-accent`,cx:e[0],cy:e[1],r:`5`},null,8,b)])),64)),S[6]||=i(`text`,{class:`dl-dg-lab`,x:`575`,y:`122`,"text-anchor":`middle`},`★`,-1),S[7]||=i(`text`,{class:`dl-dg-small is-good`,x:`500`,y:`206`,"text-anchor":`middle`},`★ a new point it can invent`,-1)])),[[C]])]))]),c((e(),a(`div`,x,[...S[13]||=[i(`p`,null,`A classifier only needs the line. A generator needs the shape of the data — much harder.`,-1)]])),[[C]])]),_:1},16)}}};export{S as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-BU9JcPc5.js b/lecture-07/assets/md-BU9JcPc5.js new file mode 100644 index 0000000000000000000000000000000000000000..a434f2959002a64c165813e43034b5da5601bc99 --- /dev/null +++ b/lecture-07/assets/md-BU9JcPc5.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,S as i,_ as a,b as o,et as s,tt as c,v as l,xt as u,yt as d}from"./modules/shiki-CJZsCeMT.js";import{n as f,t as p}from"./slidev/context-DB-9afGB.js";import{t as m}from"./PixelImage-C1NqQXMF.js";import{t as h}from"./default-CbJk4Idc.js";var g={class:`mt-1 flex justify-center`},_={viewBox:`0 0 660 210`,class:`dl-diagram`,role:`img`,"aria-label":`A generator turns noise into a fake sample; a discriminator scores real and fake samples`},v={class:`grid grid-cols-2 gap-8 mt-1 dl-tight`},y={__name:`slides.md__slidev_28`,setup(y){let{$slidev:b,$nav:x,$clicksContext:S,$clicks:C,$page:w,$renderContext:T,$frontmatter:E}=f();return S.setup(),(f,y)=>{let b=m,x=r(`click`);return e(),l(h,u(n(d(p)(d(E),27))),{default:s(()=>[y[17]||=a(`h1`,null,`Two networks, opposite jobs`,-1),a(`div`,g,[(e(),o(`svg`,_,[y[0]||=a(`defs`,null,[a(`marker`,{id:`gan-arrow`,markerWidth:`7`,markerHeight:`7`,refX:`6`,refY:`3.5`,orient:`auto`},[a(`path`,{class:`dl-dg-head`,d:`M0 0 L7 3.5 L0 7 z`})])],-1),t(b,{"in-svg":``,x:4,y:20,size:48,pattern:`noise`,seed:12}),y[1]||=a(`text`,{class:`dl-dg-small`,x:`28`,y:`84`,"text-anchor":`middle`},`noise z`,-1),y[2]||=a(`polygon`,{class:`dl-dg-net`,points:`78,18 190,36 190,64 78,82`},null,-1),y[3]||=a(`text`,{class:`dl-dg-in`,x:`134`,y:`55`,"text-anchor":`middle`},`generator G`,-1),t(b,{"in-svg":``,x:224,y:16,size:60,pattern:`smiley`,noise:.3,seed:6,tone:`accent`}),y[4]||=a(`text`,{class:`dl-dg-small`,x:`254`,y:`10`,"text-anchor":`middle`},`fake x̃`,-1),t(b,{"in-svg":``,x:224,y:120,size:60,pattern:`heart`}),y[5]||=a(`text`,{class:`dl-dg-small`,x:`254`,y:`204`,"text-anchor":`middle`},`real x, from the dataset`,-1),y[6]||=a(`polygon`,{class:`dl-dg-net is-critic`,points:`380,72 492,90 492,112 380,130`},null,-1),y[7]||=a(`text`,{class:`dl-dg-in`,x:`436`,y:`105`,"text-anchor":`middle`},`discriminator D`,-1),y[8]||=a(`text`,{class:`dl-dg-small`,x:`566`,y:`96`},`1 → real`,-1),y[9]||=a(`text`,{class:`dl-dg-small`,x:`566`,y:`114`},`0 → fake`,-1),y[10]||=a(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#gan-arrow)`,d:`M54 50 H74`},null,-1),y[11]||=a(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#gan-arrow)`,d:`M192 50 H220`},null,-1),y[12]||=a(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#gan-arrow)`,d:`M288 46 H330 V88 H376`},null,-1),y[13]||=a(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#gan-arrow)`,d:`M288 150 H330 V114 H376`},null,-1),y[14]||=a(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#gan-arrow)`,d:`M494 101 H556`},null,-1)]))]),a(`div`,v,[c((e(),o(`div`,null,[...y[15]||=[a(`p`,null,[a(`strong`,null,`D wants`),i(` to output 1 on real and 0 on fake.`)],-1)]])),[[x]]),c((e(),o(`div`,null,[...y[16]||=[a(`p`,null,[a(`strong`,null,`G wants`),i(` D to output 1 on fake. It never sees a real image.`)],-1)]])),[[x]])])]),_:1},16)}}};export{y as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-BZDcmxkD.js b/lecture-07/assets/md-BZDcmxkD.js new file mode 100644 index 0000000000000000000000000000000000000000..c6882612154e1d312de8c0835444277b969a5d64 --- /dev/null +++ b/lecture-07/assets/md-BZDcmxkD.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,S as i,_ as a,b as o,et as s,tt as c,v as l,xt as u,yt as d}from"./modules/shiki-CJZsCeMT.js";import{n as f,t as p}from"./slidev/context-DB-9afGB.js";import{t as m}from"./PixelImage-C1NqQXMF.js";import{t as h}from"./default-CbJk4Idc.js";import{t as g}from"./slidev/VClicks-DhU7uhQr.js";var _={class:`grid grid-cols-[1fr_1.35fr] gap-6 mt-2 items-center`},v={class:`dl-tight`},y={viewBox:`0 0 400 200`,class:`dl-diagram is-sm-h`,role:`img`,"aria-label":`Real scans stay behind the hospital wall; a generator trained inside produces synthetic images with masks that can leave`},b={class:`mt-3 dl-callout`},x={__name:`slides.md__slidev_53`,setup(x){let{$slidev:S,$nav:C,$clicksContext:w,$clicks:T,$page:E,$renderContext:D,$frontmatter:O}=f();return w.setup(),(f,x)=>{let S=g,C=m,w=r(`click`);return e(),l(h,u(n(d(p)(d(O),52))),{default:s(()=>[x[15]||=a(`h1`,null,`What this is actually used for`,-1),x[16]||=a(`p`,null,`Synthetic data where the real thing cannot be shared — our own research area.`,-1),a(`div`,_,[a(`div`,v,[t(S,null,{default:s(()=>[...x[0]||=[a(`ul`,null,[a(`li`,null,[a(`strong`,null,`privacy`),i(` — data that can leave the hospital`)]),a(`li`,null,[a(`strong`,null,`scarcity`),i(` — more of the rare condition`)]),a(`li`,null,[a(`strong`,null,`balance`),i(` — the small class, generated`)]),a(`li`,null,[a(`strong`,null,`labels`),i(` — image `),a(`strong`,null,`and`),i(` mask, together`)])],-1)]]),_:1})]),a(`div`,null,[(e(),o(`svg`,y,[x[1]||=a(`defs`,null,[a(`marker`,{id:`md-arrow`,markerWidth:`7`,markerHeight:`7`,refX:`6`,refY:`3.5`,orient:`auto`},[a(`path`,{class:`dl-dg-head`,d:`M0 0 L7 3.5 L0 7 z`})])],-1),x[2]||=a(`rect`,{class:`dl-dg-fill is-muted`,x:`4`,y:`14`,width:`186`,height:`176`,rx:`8`},null,-1),x[3]||=a(`text`,{class:`dl-dg-small`,x:`14`,y:`32`},`inside the hospital`,-1),x[4]||=a(`g`,{transform:`translate(118 20)`},[a(`path`,{class:`dl-dg-arrow`,style:{"stroke-width":`1.5`},d:`M2.5 7 V4 a3.5 3.5 0 0 1 7 0 V7`}),a(`rect`,{class:`dl-dg-bar`,x:`0`,y:`7`,width:`12`,height:`9`,rx:`1.5`})],-1),t(C,{"in-svg":``,x:16,y:44,size:42,pattern:`moon`}),t(C,{"in-svg":``,x:62,y:44,size:42,pattern:`star`}),t(C,{"in-svg":``,x:16,y:92,size:42,pattern:`tree`}),x[5]||=a(`text`,{class:`dl-dg-small`,x:`16`,y:`152`},`real scans`,-1),x[6]||=a(`polygon`,{class:`dl-dg-net`,points:`116,70 176,82 176,108 116,120`},null,-1),x[7]||=a(`text`,{class:`dl-dg-in`,x:`146`,y:`99`,"text-anchor":`middle`},`G`,-1),x[8]||=a(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#md-arrow)`,d:`M108 95 H114`},null,-1),x[9]||=a(`rect`,{class:`dl-dg-box`,x:`196`,y:`10`,width:`8`,height:`184`},null,-1),x[10]||=a(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#md-arrow)`,d:`M178 95 H226`},null,-1),t(C,{"in-svg":``,x:234,y:50,size:50,pattern:`star`,noise:.1,seed:8,tone:`accent`}),t(C,{"in-svg":``,x:292,y:50,size:50,pattern:`star`}),x[11]||=a(`text`,{class:`dl-dg-small`,x:`259`,y:`118`,"text-anchor":`middle`},`image`,-1),x[12]||=a(`text`,{class:`dl-dg-small`,x:`317`,y:`118`,"text-anchor":`middle`},`+ its mask`,-1),x[13]||=a(`text`,{class:`dl-dg-small is-good`,x:`290`,y:`150`,"text-anchor":`middle`},`synthetic — can be shared`,-1)]))])]),c((e(),o(`div`,b,[...x[14]||=[a(`p`,null,`If a synthetic image is almost a copy of a real one, it leaks the patient data it was meant to protect.`,-1)]])),[[w]])]),_:1},16)}}};export{x as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-Bh0cjVcV.js b/lecture-07/assets/md-Bh0cjVcV.js new file mode 100644 index 0000000000000000000000000000000000000000..fb3a6993d4e8b1aeef9b2623055c90e012f6e78a --- /dev/null +++ b/lecture-07/assets/md-Bh0cjVcV.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,H as i,_ as a,b as o,et as s,m as c,tt as l,v as u,xt as d,yt as f}from"./modules/shiki-CJZsCeMT.js";import{n as p,t as m}from"./slidev/context-DB-9afGB.js";import{t as h}from"./PixelImage-C1NqQXMF.js";import{t as g}from"./default-CbJk4Idc.js";import{t as _}from"./PollSlide-BQgjKhm1.js";var v={class:`grid grid-cols-[1.7fr_1fr] gap-6 items-start`},y={class:`mt-12 flex flex-col items-center gap-2`},b={class:`dl-samplegrid`},x={class:`mt-4 dl-reveal dl-reveal--side`},S={class:`mt-2 dl-secondary`},C={__name:`slides.md__slidev_54`,setup(C){let{$slidev:w,$nav:T,$clicksContext:E,$clicks:D,$page:O,$renderContext:k,$frontmatter:A}=p();return E.setup(),(p,C)=>{let w=_,T=h,E=r(`click`);return e(),u(g,d(n(f(m)(f(A),53))),{default:s(()=>[a(`div`,v,[a(`div`,null,[t(w,{question:`Sharp samples, flat noisy loss curves. What do you check first?`,items:[`Lower the learning rate — losses should fall`,`Whether the samples are all the same`,`More D steps per G step`,`Nothing — flat losses are expected, sharp samples are the goal`]})]),a(`div`,y,[a(`div`,b,[(e(),o(c,null,i(9,e=>t(T,{key:e,pattern:`star`,noise:.04,seed:e+20,size:40},null,8,[`seed`])),64))]),C[2]||=a(`svg`,{viewBox:`0 0 200 50`,width:`200`,height:`50`,role:`img`,"aria-label":`A flat noisy loss curve`},[a(`path`,{class:`dl-dg-line is-muted`,d:`M4 26 L14 20 L24 30 L34 22 L44 28 L54 18 L64 27 L74 24 L84 31 L94 21 L104 26 L114 19 L124 29 L134 23 L144 27 L154 20 L164 28 L174 24 L184 27 L196 22`})],-1),l((e(),o(`div`,x,[...C[0]||=[a(`p`,null,`Look at a grid of samples`,-1)]])),[[E]]),l((e(),o(`div`,S,[...C[1]||=[a(`p`,null,`Flat, noisy losses are normal — there is no minimum to reach. Sharp samples that are all alike are mode collapse, and none of your logged numbers shows it.`,-1)]])),[[E]])])])]),_:1},16)}}};export{C as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-Bkrwkt9n.js b/lecture-07/assets/md-Bkrwkt9n.js new file mode 100644 index 0000000000000000000000000000000000000000..7e38ededfd1013da853e7e534c5e5af0ca66d097 --- /dev/null +++ b/lecture-07/assets/md-Bkrwkt9n.js @@ -0,0 +1,19 @@ +import{B as e,C as t,D as n,G as r,S as i,_ as a,b as o,et as s,tt as c,v as l,xt as u,yt as d}from"./modules/shiki-CJZsCeMT.js";import{n as f,t as p}from"./slidev/context-DB-9afGB.js";import{t as m}from"./PixelImage-C1NqQXMF.js";import{t as h}from"./default-CbJk4Idc.js";import{t as g}from"./slidev/VClicks-DhU7uhQr.js";import{t as _}from"./slidev/KaTexBlockWrapper-CffXlnxL.js";var v={class:`dl-math-sm`},y={class:`mt-1 flex justify-center`},b={viewBox:`0 0 620 110`,class:`dl-diagram`,role:`img`,"aria-label":`A tug of war: the reconstruction term pulls codes apart, the KL term pulls them to the prior, beta sets the strength`},x={class:`dl-tight`},S={class:`mt-2 dl-callout`},C={__name:`slides.md__slidev_20`,setup(C){let{$slidev:w,$nav:T,$clicksContext:E,$clicks:D,$page:O,$renderContext:k,$frontmatter:A}=f();return E.setup(),(f,C)=>{let w=_,T=m,E=g,D=r(`click`);return e(),l(h,u(n(d(p)(d(A),19))),{default:s(()=>[C[13]||=a(`h1`,null,`The objective, in two terms`,-1),a(`div`,v,[t(w,{ranges:[]},{default:s(()=>[...C[0]||=[a(`p`,null,[a(`span`,{class:`katex-display`},[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`,display:`block`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,{mathvariant:`script`},`L`),a(`mo`,{stretchy:`false`},`(`),a(`mi`,{mathvariant:`bold`},`x`),a(`mo`,{stretchy:`false`},`)`),a(`mtext`,null,`  `),a(`mo`,null,`=`),a(`mtext`,null,`  `),a(`munder`,null,[a(`munder`,null,[a(`mrow`,null,[a(`msub`,null,[a(`mi`,{mathvariant:`double-struck`},`E`),a(`mrow`,null,[a(`mi`,null,`q`),a(`mo`,{stretchy:`false`},`(`),a(`mi`,{mathvariant:`bold`},`z`),a(`mo`,null,`∣`),a(`mi`,{mathvariant:`bold`},`x`),a(`mo`,{stretchy:`false`},`)`)])]),a(`mo`,{fence:`false`,stretchy:`true`,minsize:`1.2em`,maxsize:`1.2em`},`[`),a(`mo`,{stretchy:`false`},`∥`),a(`mi`,{mathvariant:`bold`},`x`),a(`mo`,null,`−`),a(`mi`,null,`g`),a(`mo`,{stretchy:`false`},`(`),a(`mi`,{mathvariant:`bold`},`z`),a(`mo`,{stretchy:`false`},`)`),a(`msup`,null,[a(`mo`,{stretchy:`false`},`∥`),a(`mn`,null,`2`)]),a(`mo`,{fence:`false`,stretchy:`true`,minsize:`1.2em`,maxsize:`1.2em`},`]`)]),a(`mo`,{stretchy:`true`},`⏟`)]),a(`mtext`,null,`rebuild\xA0it`)]),a(`mtext`,null,`  `),a(`mo`,null,`+`),a(`mtext`,null,`  `),a(`mi`,null,`β`),a(`munder`,null,[a(`munder`,null,[a(`mrow`,null,[a(`mrow`,null,[a(`mi`,{mathvariant:`normal`},`K`),a(`mi`,{mathvariant:`normal`},`L`)]),a(`mo`,{fence:`false`,stretchy:`true`,minsize:`1.2em`,maxsize:`1.2em`},`(`),a(`mi`,null,`q`),a(`mo`,{stretchy:`false`},`(`),a(`mi`,{mathvariant:`bold`},`z`),a(`mo`,null,`∣`),a(`mi`,{mathvariant:`bold`},`x`),a(`mo`,{stretchy:`false`},`)`),a(`mtext`,null,` `),a(`mi`,{mathvariant:`normal`},`∥`),a(`mtext`,null,` `),a(`mi`,{mathvariant:`script`},`N`),a(`mo`,{stretchy:`false`},`(`),a(`mn`,{mathvariant:`bold`},`0`),a(`mo`,{separator:`true`},`,`),a(`mi`,null,`I`),a(`mo`,{stretchy:`false`},`)`),a(`mo`,{fence:`false`,stretchy:`true`,minsize:`1.2em`,maxsize:`1.2em`},`)`)]),a(`mo`,{stretchy:`true`},`⏟`)]),a(`mtext`,null,`stay\xA0near\xA0the\xA0prior`)])]),a(`annotation`,{encoding:`application/x-tex`},`\\mathcal{L}(\\mathbf{x}) \\;=\\; \\underbrace{\\mathbb{E}_{q(\\mathbf{z}\\mid\\mathbf{x})}\\big[\\lVert \\mathbf{x} - g(\\mathbf{z}) \\rVert^2\\big]}_{\\text{rebuild it}} \\;+\\; \\beta \\underbrace{\\mathrm{KL}\\big(q(\\mathbf{z}\\mid\\mathbf{x}) \\,\\Vert\\, \\mathcal{N}(\\mathbf{0}, I)\\big)}_{\\text{stay near the prior}} `)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),a(`span`,{class:`mord mathcal`},`L`),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord mathbf`},`x`),a(`span`,{class:`mclose`},`)`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`=`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`2.5534em`,"vertical-align":`-1.6893em`}}),a(`span`,{class:`minner munder`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.8641em`}},[a(`span`,{style:{top:`-1.3107em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mtight`},[a(`span`,{class:`mord text mtight`},[a(`span`,{class:`mord mtight`},`rebuild\xA0it`)])])])]),a(`span`,{style:{top:`-3em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`minner munder`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.8641em`}},[a(`span`,{class:`svg-align`,style:{top:`-1.9968em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`katex-stretchy`,style:{height:`0.548em`,"min-width":`1.6em`}},[a(`span`,{class:`brace-left`,style:{height:`0.548em`}},[a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`400em`,height:`0.548em`,viewBox:`0 0 400000 548`,preserveAspectRatio:`xMinYMin slice`},[a(`path`,{d:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13 + 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688 + 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 +-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`})])]),a(`span`,{class:`brace-center`,style:{height:`0.548em`}},[a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`400em`,height:`0.548em`,viewBox:`0 0 400000 548`,preserveAspectRatio:`xMidYMin slice`},[a(`path`,{d:`M199572 214 +c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14 + 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 + 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0 +-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`})])]),a(`span`,{class:`brace-right`,style:{height:`0.548em`}},[a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`400em`,height:`0.548em`,viewBox:`0 0 400000 548`,preserveAspectRatio:`xMaxYMin slice`},[a(`path`,{d:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3 + 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 +-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`})])])])]),a(`span`,{style:{top:`-3em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord`},[a(`span`,{class:`mord mathbb`},`E`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.3448em`}},[a(`span`,{style:{top:`-2.5198em`,"margin-left":`0em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mtight`},[a(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0359em`}},`q`),a(`span`,{class:`mopen mtight`},`(`),a(`span`,{class:`mord mathbf mtight`},`z`),a(`span`,{class:`mrel mtight`},`∣`),a(`span`,{class:`mord mathbf mtight`},`x`),a(`span`,{class:`mclose mtight`},`)`)])])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.3552em`}},[a(`span`)])])])])]),a(`span`,{class:`mord`},[a(`span`,{class:`delimsizing size1`},`[`)]),a(`span`,{class:`mopen`},`∥`),a(`span`,{class:`mord mathbf`},`x`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),a(`span`,{class:`mbin`},`−`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0359em`}},`g`),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord mathbf`},`z`),a(`span`,{class:`mclose`},`)`),a(`span`,{class:`mclose`},[a(`span`,{class:`mclose`},`∥`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.8641em`}},[a(`span`,{style:{top:`-3.113em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mtight`},`2`)])])])])])])]),a(`span`,{class:`mord`},[a(`span`,{class:`delimsizing size1`},`]`)])])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`1.0032em`}},[a(`span`)])])])])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`1.6893em`}},[a(`span`)])])])]),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),a(`span`,{class:`mbin`},`+`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`2.6702em`,"vertical-align":`-1.8202em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0528em`}},`β`),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`minner munder`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.85em`}},[a(`span`,{style:{top:`-1.3159em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mtight`},[a(`span`,{class:`mord text mtight`},[a(`span`,{class:`mord mtight`},`stay\xA0near\xA0the\xA0prior`)])])])]),a(`span`,{style:{top:`-3em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`minner munder`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.85em`}},[a(`span`,{class:`svg-align`,style:{top:`-2.002em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`katex-stretchy`,style:{height:`0.548em`,"min-width":`1.6em`}},[a(`span`,{class:`brace-left`,style:{height:`0.548em`}},[a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`400em`,height:`0.548em`,viewBox:`0 0 400000 548`,preserveAspectRatio:`xMinYMin slice`},[a(`path`,{d:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13 + 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688 + 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 +-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`})])]),a(`span`,{class:`brace-center`,style:{height:`0.548em`}},[a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`400em`,height:`0.548em`,viewBox:`0 0 400000 548`,preserveAspectRatio:`xMidYMin slice`},[a(`path`,{d:`M199572 214 +c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14 + 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 + 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0 +-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`})])]),a(`span`,{class:`brace-right`,style:{height:`0.548em`}},[a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`400em`,height:`0.548em`,viewBox:`0 0 400000 548`,preserveAspectRatio:`xMaxYMin slice`},[a(`path`,{d:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3 + 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 +-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`})])])])]),a(`span`,{style:{top:`-3em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord`},[a(`span`,{class:`mord mathrm`},`KL`)]),a(`span`,{class:`mord`},[a(`span`,{class:`delimsizing size1`},`(`)]),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0359em`}},`q`),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord mathbf`},`z`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`∣`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mord mathbf`},`x`),a(`span`,{class:`mclose`},`)`),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mord`},`∥`),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mord mathcal`,style:{"margin-right":`0.1474em`}},`N`),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord mathbf`},`0`),a(`span`,{class:`mpunct`},`,`),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0785em`}},`I`),a(`span`,{class:`mclose`},`)`),a(`span`,{class:`mord`},[a(`span`,{class:`delimsizing size1`},`)`)])])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.998em`}},[a(`span`)])])])])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`1.8202em`}},[a(`span`)])])])])])])])])],-1)]]),_:1})]),a(`div`,y,[(e(),o(`svg`,b,[C[1]||=a(`defs`,null,[a(`marker`,{id:`tug-arrow`,markerWidth:`7`,markerHeight:`7`,refX:`6`,refY:`3.5`,orient:`auto`},[a(`path`,{class:`dl-dg-head`,d:`M0 0 L7 3.5 L0 7 z`})])],-1),C[2]||=a(`line`,{class:`dl-dg-arrow`,x1:`120`,y1:`50`,x2:`500`,y2:`50`},null,-1),C[3]||=a(`rect`,{class:`dl-dg-box is-accent`,x:`290`,y:`36`,width:`40`,height:`28`,rx:`4`},null,-1),C[4]||=a(`text`,{class:`dl-dg-lab is-sm`,x:`310`,y:`55`,"text-anchor":`middle`},`code`,-1),t(T,{"in-svg":``,x:40,y:22,size:56,pattern:`smiley`}),C[5]||=a(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#tug-arrow)`,d:`M270 30 H130`},null,-1),C[6]||=a(`text`,{class:`dl-dg-small`,x:`200`,y:`22`,"text-anchor":`middle`},`rebuild it: keep codes apart`,-1),C[7]||=a(`path`,{class:`dl-dg-line is-muted`,d:`M520 64 C 545 64, 548 22, 565 22 C 582 22, 585 64, 610 64`},null,-1),C[8]||=a(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#tug-arrow)`,d:`M350 30 H505`},null,-1),C[9]||=a(`text`,{class:`dl-dg-small`,x:`425`,y:`22`,"text-anchor":`middle`},`× β — pull to N(0, I)`,-1),C[10]||=a(`text`,{class:`dl-dg-small`,x:`310`,y:`96`,"text-anchor":`middle`},`β = 0 is exactly last section's autoencoder`,-1)]))]),a(`div`,x,[t(E,null,{default:s(()=>[...C[11]||=[a(`ul`,null,[a(`li`,null,[a(`strong`,null,`Left`),i(`: the autoencoder loss, decoded from a `),a(`em`,null,`sampled`),i(),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,{mathvariant:`bold`},`z`)]),a(`annotation`,{encoding:`application/x-tex`},`\\mathbf{z}`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.4444em`}}),a(`span`,{class:`mord mathbf`},`z`)])])])]),a(`li`,null,[a(`strong`,null,`Right`),i(`: KL, a measure of how different two distributions are, pulls each code toward `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,{mathvariant:`script`},`N`),a(`mo`,{stretchy:`false`},`(`),a(`mn`,{mathvariant:`bold`},`0`),a(`mo`,{separator:`true`},`,`),a(`mi`,null,`I`),a(`mo`,{stretchy:`false`},`)`)]),a(`annotation`,{encoding:`application/x-tex`},`\\mathcal{N}(\\mathbf{0}, I)`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),a(`span`,{class:`mord mathcal`,style:{"margin-right":`0.1474em`}},`N`),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord mathbf`},`0`),a(`span`,{class:`mpunct`},`,`),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0785em`}},`I`),a(`span`,{class:`mclose`},`)`)])])])])],-1)]]),_:1})]),c((e(),o(`div`,S,[...C[12]||=[a(`p`,null,`Two terms that want opposite things. Everything a VAE does is the compromise.`,-1)]])),[[D]])]),_:1},16)}}};export{C as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-BluvuKqb.js b/lecture-07/assets/md-BluvuKqb.js new file mode 100644 index 0000000000000000000000000000000000000000..91a17d1e43589500c0ae3ce80933a9e84d354546 --- /dev/null +++ b/lecture-07/assets/md-BluvuKqb.js @@ -0,0 +1 @@ +import{B as e,C as t,Ct as n,D as r,G as i,H as a,S as o,_ as s,b as c,bt as l,et as u,m as d,tt as f,v as p,xt as m,yt as h}from"./modules/shiki-CJZsCeMT.js";import{n as g,t as _}from"./slidev/context-DB-9afGB.js";import{t as v}from"./default-CbJk4Idc.js";import{t as y}from"./slidev/VClicks-DhU7uhQr.js";var b={class:`grid grid-cols-[1.35fr_1fr] gap-6 mt-2 items-start`},x={class:`dl-ledger dl-tight dl-eq-legend`},S={class:`mt-3 dl-callout`},C={viewBox:`0 0 300 160`,class:`dl-diagram`,role:`img`,"aria-label":`Bars at one point: data density 0.3, generator density 0.1, best discriminator output 0.75`},w=[`y`],T=[`y`],E=[`y`,`width`],D=[`x`,`y`],O={__name:`slides.md__slidev_33`,setup(O){let{$slidev:k,$nav:A,$clicksContext:j,$clicks:M,$page:N,$renderContext:P,$frontmatter:F}=g();return j.setup(),(g,O)=>{let k=y,A=i(`click`);return e(),p(v,m(r(h(_)(h(F),32))),{default:u(()=>[O[2]||=s(`h1`,null,`Reading the equation: the best discriminator`,-1),s(`div`,b,[s(`div`,x,[t(k,null,{default:u(()=>[...O[0]||=[s(`table`,null,[s(`thead`,null,[s(`tr`,null,[s(`th`,null,`symbol`),s(`th`,null,`name`),s(`th`,null,`what it is here`),s(`th`,null,`example`)])]),s(`tbody`,null,[s(`tr`,null,[s(`td`,null,[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mi`,{mathvariant:`bold`},`x`)]),s(`annotation`,{encoding:`application/x-tex`},`\\mathbf{x}`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.4444em`}}),s(`span`,{class:`mord mathbf`},`x`)])])])]),s(`td`,null,`a point`),s(`td`,null,`one possible image`),s(`td`)]),s(`tr`,null,[s(`td`,null,[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`msub`,null,[s(`mi`,null,`p`),s(`mtext`,null,`data`)]),s(`mo`,{stretchy:`false`},`(`),s(`mi`,{mathvariant:`bold`},`x`),s(`mo`,{stretchy:`false`},`)`)]),s(`annotation`,{encoding:`application/x-tex`},`p_{\\text{data}}(\\mathbf{x})`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mord mathnormal`},`p`),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t vlist-t2`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.3361em`}},[s(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mtight`},[s(`span`,{class:`mord text mtight`},[s(`span`,{class:`mord mtight`},`data`)])])])])]),s(`span`,{class:`vlist-s`},`​`)]),s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.15em`}},[s(`span`)])])])])]),s(`span`,{class:`mopen`},`(`),s(`span`,{class:`mord mathbf`},`x`),s(`span`,{class:`mclose`},`)`)])])])]),s(`td`,null,`data density`),s(`td`,null,[o(`how common `),s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mi`,{mathvariant:`bold`},`x`)]),s(`annotation`,{encoding:`application/x-tex`},`\\mathbf{x}`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.4444em`}}),s(`span`,{class:`mord mathbf`},`x`)])])]),o(` is among real images`)]),s(`td`,null,`0.3`)]),s(`tr`,null,[s(`td`,null,[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`msub`,null,[s(`mi`,null,`p`),s(`mi`,null,`g`)]),s(`mo`,{stretchy:`false`},`(`),s(`mi`,{mathvariant:`bold`},`x`),s(`mo`,{stretchy:`false`},`)`)]),s(`annotation`,{encoding:`application/x-tex`},`p_g(\\mathbf{x})`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`1.0361em`,"vertical-align":`-0.2861em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mord mathnormal`},`p`),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t vlist-t2`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.1514em`}},[s(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0359em`}},`g`)])])]),s(`span`,{class:`vlist-s`},`​`)]),s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.2861em`}},[s(`span`)])])])])]),s(`span`,{class:`mopen`},`(`),s(`span`,{class:`mord mathbf`},`x`),s(`span`,{class:`mclose`},`)`)])])])]),s(`td`,null,`generator density`),s(`td`,null,[o(`how often `),s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mi`,null,`G`)]),s(`annotation`,{encoding:`application/x-tex`},`G`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),s(`span`,{class:`mord mathnormal`},`G`)])])]),o(` produces `),s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mi`,{mathvariant:`bold`},`x`)]),s(`annotation`,{encoding:`application/x-tex`},`\\mathbf{x}`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.4444em`}}),s(`span`,{class:`mord mathbf`},`x`)])])])]),s(`td`,null,`0.1`)]),s(`tr`,null,[s(`td`,null,[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`msup`,null,[s(`mi`,null,`D`),s(`mo`,null,`∗`)]),s(`mo`,{stretchy:`false`},`(`),s(`mi`,{mathvariant:`bold`},`x`),s(`mo`,{stretchy:`false`},`)`)]),s(`annotation`,{encoding:`application/x-tex`},`D^*(\\mathbf{x})`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0278em`}},`D`),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.6887em`}},[s(`span`,{style:{top:`-3.063em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[s(`span`,{class:`mbin mtight`},`∗`)])])])])])])]),s(`span`,{class:`mopen`},`(`),s(`span`,{class:`mord mathbf`},`x`),s(`span`,{class:`mclose`},`)`)])])])]),s(`td`,null,`optimal discriminator`),s(`td`,null,[o(`the best `),s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mi`,null,`D`)]),s(`annotation`,{encoding:`application/x-tex`},`D`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),s(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0278em`}},`D`)])])]),o(` for this frozen `),s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mi`,null,`G`)]),s(`annotation`,{encoding:`application/x-tex`},`G`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),s(`span`,{class:`mord mathnormal`},`G`)])])])]),s(`td`,null,`0.75`)])])],-1)]]),_:1}),f((e(),c(`div`,S,[...O[1]||=[s(`p`,null,[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`msup`,null,[s(`mi`,null,`D`),s(`mo`,null,`∗`)]),s(`mo`,{stretchy:`false`},`(`),s(`mi`,{mathvariant:`bold`},`x`),s(`mo`,{stretchy:`false`},`)`),s(`mo`,null,`=`),s(`mstyle`,{scriptlevel:`0`,displaystyle:`true`},[s(`mfrac`,null,[s(`mn`,null,`0.3`),s(`mrow`,null,[s(`mn`,null,`0.3`),s(`mo`,null,`+`),s(`mn`,null,`0.1`)])])]),s(`mo`,null,`=`),s(`mn`,null,`0.75`)]),s(`annotation`,{encoding:`application/x-tex`},`D^*(\\mathbf{x}) = \\dfrac{0.3}{0.3 + 0.1} = 0.75`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0278em`}},`D`),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.6887em`}},[s(`span`,{style:{top:`-3.063em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[s(`span`,{class:`mbin mtight`},`∗`)])])])])])])]),s(`span`,{class:`mopen`},`(`),s(`span`,{class:`mord mathbf`},`x`),s(`span`,{class:`mclose`},`)`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),s(`span`,{class:`mrel`},`=`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`2.0908em`,"vertical-align":`-0.7693em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mopen nulldelimiter`}),s(`span`,{class:`mfrac`},[s(`span`,{class:`vlist-t vlist-t2`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`1.3214em`}},[s(`span`,{style:{top:`-2.314em`}},[s(`span`,{class:`pstrut`,style:{height:`3em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mord`},`0.3`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),s(`span`,{class:`mbin`},`+`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),s(`span`,{class:`mord`},`0.1`)])]),s(`span`,{style:{top:`-3.23em`}},[s(`span`,{class:`pstrut`,style:{height:`3em`}}),s(`span`,{class:`frac-line`,style:{"border-bottom-width":`0.04em`}})]),s(`span`,{style:{top:`-3.677em`}},[s(`span`,{class:`pstrut`,style:{height:`3em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mord`},`0.3`)])])]),s(`span`,{class:`vlist-s`},`​`)]),s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.7693em`}},[s(`span`)])])])]),s(`span`,{class:`mclose nulldelimiter`})]),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),s(`span`,{class:`mrel`},`=`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),s(`span`,{class:`mord`},`0.75`)])])]),o(`: three times as common in the real data, so "real" three times out of four.`)],-1)]])),[[A]])]),s(`div`,null,[(e(),c(`svg`,C,[(e(),c(d,null,a([[`p_data`,.3,`dl-dg-bar`],[`p_g`,.1,`dl-dg-bar is-q`],[`D*`,.75,`dl-dg-bar is-bad`]],(e,t)=>s(`g`,{key:t},[s(`text`,{class:`dl-dg-small`,x:`58`,y:34+t*44,"text-anchor":`end`},n(e[0]),9,w),s(`rect`,{class:`dl-dg-box`,x:`66`,y:20+t*44,width:`200`,height:`20`,rx:`3`},null,8,T),s(`rect`,{class:l(e[2]),x:`66`,y:20+t*44,width:e[1]*200,height:`20`,rx:`3`},null,10,E),s(`text`,{class:`dl-dg-lab is-sm`,x:74+e[1]*200,y:35+t*44},n(e[1]),9,D)])),64))]))])])]),_:1},16)}}};export{O as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-Bor3iz9q.js b/lecture-07/assets/md-Bor3iz9q.js new file mode 100644 index 0000000000000000000000000000000000000000..c3f8a3be4fe99c5ac5a92866713d88e3f955674a --- /dev/null +++ b/lecture-07/assets/md-Bor3iz9q.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,_ as r,et as i,v as a,xt as o,yt as s}from"./modules/shiki-CJZsCeMT.js";import{n as c,t as l}from"./slidev/context-DB-9afGB.js";import{t as u}from"./FamilyGlyph-DyfZ67F0.js";import{t as d}from"./section-CqA-0pFf.js";var f={class:`dl-side-glyph`},p={__name:`slides.md__slidev_3`,setup(p){let{$slidev:m,$nav:h,$clicksContext:g,$clicks:_,$page:v,$renderContext:y,$frontmatter:b}=c();return g.setup(),(c,p)=>{let m=u;return e(),a(d,o(n(s(l)(s(b),2))),{default:i(()=>[p[0]||=r(`h1`,null,`From recognising to creating`,-1),r(`div`,f,[t(m,{kind:`cnn`,size:190})])]),_:1},16)}}};export{p as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-BpNKb0SE.js b/lecture-07/assets/md-BpNKb0SE.js new file mode 100644 index 0000000000000000000000000000000000000000..e4d8d62db27455a9883b7fc086271adc524be364 --- /dev/null +++ b/lecture-07/assets/md-BpNKb0SE.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,H as i,S as a,_ as o,b as s,et as c,m as l,tt as u,v as d,xt as f,yt as p}from"./modules/shiki-CJZsCeMT.js";import{n as m,t as h}from"./slidev/context-DB-9afGB.js";import{t as g}from"./PixelImage-C1NqQXMF.js";import{t as _}from"./default-CbJk4Idc.js";import{t as v}from"./slidev/VClicks-DhU7uhQr.js";var y={class:`grid grid-cols-2 gap-10 mt-3`},b={class:`flex flex-col items-center gap-1`},x={class:`dl-samplegrid`},S={class:`flex flex-col items-center gap-1`},C={class:`dl-samplegrid`},w={class:`dl-tight mt-3`},T={class:`mt-2 dl-callout`},E={__name:`slides.md__slidev_48`,setup(E){let{$slidev:D,$nav:O,$clicksContext:k,$clicks:A,$page:j,$renderContext:M,$frontmatter:N}=m();return k.setup(),(m,E)=>{let D=g,O=v,k=r(`click`);return e(),d(_,f(n(p(h)(p(N),47))),{default:c(()=>[E[4]||=o(`h1`,null,`The failure that defines GANs`,-1),E[5]||=o(`p`,null,[o(`strong`,null,`Mode collapse.`),a(),o(`span`,{class:`katex`},[o(`span`,{class:`katex-mathml`},[o(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[o(`semantics`,null,[o(`mrow`,null,[o(`mi`,null,`G`)]),o(`annotation`,{encoding:`application/x-tex`},`G`)])])]),o(`span`,{class:`katex-html`,"aria-hidden":`true`},[o(`span`,{class:`katex-base`},[o(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),o(`span`,{class:`mord mathnormal`},`G`)])])]),a(` finds one output `),o(`span`,{class:`katex`},[o(`span`,{class:`katex-mathml`},[o(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[o(`semantics`,null,[o(`mrow`,null,[o(`mi`,null,`D`)]),o(`annotation`,{encoding:`application/x-tex`},`D`)])])]),o(`span`,{class:`katex-html`,"aria-hidden":`true`},[o(`span`,{class:`katex-base`},[o(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),o(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0278em`}},`D`)])])]),a(` accepts, and produces only that.`)],-1),o(`div`,y,[o(`div`,b,[o(`div`,x,[(e(),s(l,null,i([`smiley`,`heart`,`star`,`house`,`moon`,`tree`,`heart`,`smiley`,`star`],(e,n)=>t(D,{key:n,pattern:e,size:46},null,8,[`pattern`])),64))]),E[0]||=o(`span`,{class:`dl-secondary`},`what the data looks like`,-1)]),u((e(),s(`div`,S,[o(`div`,C,[(e(),s(l,null,i(9,e=>t(D,{key:e,pattern:`smiley`,noise:.04,seed:e,size:46,tone:`danger`},null,8,[`seed`])),64))]),E[1]||=o(`span`,{class:`dl-secondary`},`what a collapsed G makes`,-1)])),[[k]])]),o(`div`,w,[t(O,null,{default:c(()=>[...E[2]||=[o(`ul`,null,[o(`li`,null,[a(`Nothing in `),o(`span`,{class:`katex`},[o(`span`,{class:`katex-mathml`},[o(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[o(`semantics`,null,[o(`mrow`,null,[o(`mi`,null,`V`)]),o(`annotation`,{encoding:`application/x-tex`},`V`)])])]),o(`span`,{class:`katex-html`,"aria-hidden":`true`},[o(`span`,{class:`katex-base`},[o(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),o(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.2222em`}},`V`)])])]),a(` rewards `),o(`strong`,null,`variety`),a(` — only each sample looking real`)]),o(`li`,null,[o(`span`,{class:`katex`},[o(`span`,{class:`katex-mathml`},[o(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[o(`semantics`,null,[o(`mrow`,null,[o(`mi`,null,`D`)]),o(`annotation`,{encoding:`application/x-tex`},`D`)])])]),o(`span`,{class:`katex-html`,"aria-hidden":`true`},[o(`span`,{class:`katex-base`},[o(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),o(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0278em`}},`D`)])])]),a(` learns to reject the smiley, so `),o(`span`,{class:`katex`},[o(`span`,{class:`katex-mathml`},[o(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[o(`semantics`,null,[o(`mrow`,null,[o(`mi`,null,`G`)]),o(`annotation`,{encoding:`application/x-tex`},`G`)])])]),o(`span`,{class:`katex-html`,"aria-hidden":`true`},[o(`span`,{class:`katex-base`},[o(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),o(`span`,{class:`mord mathnormal`},`G`)])])]),a(` switches to `),o(`strong`,null,`another`),a(` single output — and the chase repeats`)])],-1)]]),_:1})]),u((e(),s(`div`,T,[...E[3]||=[o(`p`,null,`Every sample looks excellent, and the model is worthless. The loss curve shows nothing.`,-1)]])),[[k]])]),_:1},16)}}};export{E as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-BuDboH9w.js b/lecture-07/assets/md-BuDboH9w.js new file mode 100644 index 0000000000000000000000000000000000000000..05c813c85cb6d10d98024142081a7e98f584b751 --- /dev/null +++ b/lecture-07/assets/md-BuDboH9w.js @@ -0,0 +1 @@ +import{B as e,C as t,Ct as n,D as r,G as i,H as a,S as o,_ as s,b as c,bt as l,et as u,m as d,tt as f,v as p,xt as m,yt as h}from"./modules/shiki-CJZsCeMT.js";import{n as g,t as _}from"./slidev/context-DB-9afGB.js";import{t as v}from"./default-CbJk4Idc.js";import{t as y}from"./slidev/VClicks-DhU7uhQr.js";var b={class:`grid grid-cols-[1.45fr_1fr] gap-5 mt-1 items-start`},x={class:`dl-ledger dl-tight dl-eq-legend`},S={viewBox:`0 0 300 150`,class:`dl-diagram`,role:`img`,"aria-label":`A two-pixel example: true noise 0.5 and minus 1.0, predicted noise 0.3 and minus 0.6, squared errors 0.04 and 0.16`},C=[`y`],w=[`x`,`y`],T=[`x`,`y`],E={class:`dl-callout`},D={__name:`slides.md__slidev_61`,setup(D){let{$slidev:O,$nav:k,$clicksContext:A,$clicks:j,$page:M,$renderContext:N,$frontmatter:P}=g();return A.setup(),(g,D)=>{let O=y,k=i(`click`);return e(),p(v,m(r(h(_)(h(P),60))),{default:u(()=>[D[2]||=s(`h1`,null,`Reading the equation: the denoising loss`,-1),s(`div`,b,[s(`div`,x,[t(O,null,{default:u(()=>[...D[0]||=[s(`table`,null,[s(`thead`,null,[s(`tr`,null,[s(`th`,null,`symbol`),s(`th`,null,`name`),s(`th`,null,`what it is here`),s(`th`,null,`example`)])]),s(`tbody`,null,[s(`tr`,null,[s(`td`,null,[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mi`,{mathvariant:`bold-italic`},`ϵ`)]),s(`annotation`,{encoding:`application/x-tex`},`\\boldsymbol\\epsilon`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.4444em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mord`},[s(`span`,{class:`mord boldsymbol`},`ϵ`)])])])])])]),s(`td`,null,`true noise`),s(`td`,null,`the noise we added: the target`),s(`td`,null,[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mo`,{stretchy:`false`},`[`),s(`mn`,null,`0.5`),s(`mo`,{separator:`true`},`,`),s(`mo`,null,`−`),s(`mn`,null,`1.0`),s(`mo`,{stretchy:`false`},`]`)]),s(`annotation`,{encoding:`application/x-tex`},`[0.5, -1.0]`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),s(`span`,{class:`mopen`},`[`),s(`span`,{class:`mord`},`0.5`),s(`span`,{class:`mpunct`},`,`),s(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),s(`span`,{class:`mord`},`−`),s(`span`,{class:`mord`},`1.0`),s(`span`,{class:`mclose`},`]`)])])])])]),s(`tr`,null,[s(`td`,null,[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`msub`,null,[s(`mi`,{mathvariant:`bold-italic`},`ϵ`),s(`mi`,null,`θ`)]),s(`mo`,{stretchy:`false`},`(`),s(`msub`,null,[s(`mi`,{mathvariant:`bold`},`x`),s(`mi`,null,`t`)]),s(`mo`,{separator:`true`},`,`),s(`mi`,null,`t`),s(`mo`,{stretchy:`false`},`)`)]),s(`annotation`,{encoding:`application/x-tex`},`\\boldsymbol\\epsilon_\\theta(\\mathbf{x}_t, t)`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mord`},[s(`span`,{class:`mord`},[s(`span`,{class:`mord boldsymbol`},`ϵ`)])]),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t vlist-t2`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.3361em`}},[s(`span`,{style:{top:`-2.55em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0278em`}},`θ`)])])]),s(`span`,{class:`vlist-s`},`​`)]),s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.15em`}},[s(`span`)])])])])]),s(`span`,{class:`mopen`},`(`),s(`span`,{class:`mord`},[s(`span`,{class:`mord mathbf`},`x`),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t vlist-t2`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.2806em`}},[s(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mathnormal mtight`},`t`)])])]),s(`span`,{class:`vlist-s`},`​`)]),s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.15em`}},[s(`span`)])])])])]),s(`span`,{class:`mpunct`},`,`),s(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),s(`span`,{class:`mord mathnormal`},`t`),s(`span`,{class:`mclose`},`)`)])])])]),s(`td`,null,`noise prediction`),s(`td`,null,[o(`the network’s guess of `),s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mi`,{mathvariant:`bold-italic`},`ϵ`)]),s(`annotation`,{encoding:`application/x-tex`},`\\boldsymbol\\epsilon`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.4444em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mord`},[s(`span`,{class:`mord boldsymbol`},`ϵ`)])])])])])]),s(`td`,null,[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mo`,{stretchy:`false`},`[`),s(`mn`,null,`0.3`),s(`mo`,{separator:`true`},`,`),s(`mo`,null,`−`),s(`mn`,null,`0.6`),s(`mo`,{stretchy:`false`},`]`)]),s(`annotation`,{encoding:`application/x-tex`},`[0.3, -0.6]`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),s(`span`,{class:`mopen`},`[`),s(`span`,{class:`mord`},`0.3`),s(`span`,{class:`mpunct`},`,`),s(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),s(`span`,{class:`mord`},`−`),s(`span`,{class:`mord`},`0.6`),s(`span`,{class:`mclose`},`]`)])])])])]),s(`tr`,null,[s(`td`,null,[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mi`,null,`θ`)]),s(`annotation`,{encoding:`application/x-tex`},`\\theta`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.6944em`}}),s(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0278em`}},`θ`)])])])]),s(`td`,null,`parameters`),s(`td`,null,`the network’s weights (learned)`),s(`td`)]),s(`tr`,null,[s(`td`,null,[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`msub`,null,[s(`mi`,{mathvariant:`bold`},`x`),s(`mi`,null,`t`)])]),s(`annotation`,{encoding:`application/x-tex`},`\\mathbf{x}_t`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.5944em`,"vertical-align":`-0.15em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mord mathbf`},`x`),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t vlist-t2`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.2806em`}},[s(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mathnormal mtight`},`t`)])])]),s(`span`,{class:`vlist-s`},`​`)]),s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.15em`}},[s(`span`)])])])])])])])]),o(`, `),s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mi`,null,`t`)]),s(`annotation`,{encoding:`application/x-tex`},`t`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.6151em`}}),s(`span`,{class:`mord mathnormal`},`t`)])])])]),s(`td`,null,`input`),s(`td`,null,`noisy image and its level, as before`),s(`td`)]),s(`tr`,null,[s(`td`,null,[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mo`,{stretchy:`false`},`∥`),s(`mo`,null,`⋅`),s(`msup`,null,[s(`mo`,{stretchy:`false`},`∥`),s(`mn`,null,`2`)])]),s(`annotation`,{encoding:`application/x-tex`},`\\lVert\\cdot\\rVert^2`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`1.0641em`,"vertical-align":`-0.25em`}}),s(`span`,{class:`mopen`},`∥`),s(`span`,{class:`mord`},`⋅`),s(`span`,{class:`mclose`},[s(`span`,{class:`mclose`},`∥`),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.8141em`}},[s(`span`,{style:{top:`-3.063em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mtight`},`2`)])])])])])])])])])])]),s(`td`,null,`squared length`),s(`td`,null,`sum of squared differences`),s(`td`,null,`0.20`)]),s(`tr`,null,[s(`td`,null,[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`msub`,null,[s(`mi`,{mathvariant:`double-struck`},`E`),s(`mrow`,null,[s(`msub`,null,[s(`mi`,{mathvariant:`bold`},`x`),s(`mn`,null,`0`)]),s(`mo`,{separator:`true`},`,`),s(`mi`,null,`t`),s(`mo`,{separator:`true`},`,`),s(`mi`,{mathvariant:`bold-italic`},`ϵ`)])])]),s(`annotation`,{encoding:`application/x-tex`},`\\mathbb{E}_{\\mathbf{x}_0, t, \\boldsymbol\\epsilon}`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.975em`,"vertical-align":`-0.2861em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mord mathbb`},`E`),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t vlist-t2`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.2806em`}},[s(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mtight`},[s(`span`,{class:`mord mtight`},[s(`span`,{class:`mord mathbf mtight`},`x`),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t vlist-t2`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.3173em`}},[s(`span`,{style:{top:`-2.357em`,"margin-left":`0em`,"margin-right":`0.0714em`}},[s(`span`,{class:`pstrut`,style:{height:`2.5em`}}),s(`span`,{class:`katex-sizing reset-size3 size1 mtight`},[s(`span`,{class:`mord mtight`},`0`)])])]),s(`span`,{class:`vlist-s`},`​`)]),s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.143em`}},[s(`span`)])])])])]),s(`span`,{class:`mpunct mtight`},`,`),s(`span`,{class:`mord mathnormal mtight`},`t`),s(`span`,{class:`mpunct mtight`},`,`),s(`span`,{class:`mord mtight`},[s(`span`,{class:`mord mtight`},[s(`span`,{class:`mord boldsymbol mtight`},`ϵ`)])])])])])]),s(`span`,{class:`vlist-s`},`​`)]),s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.2861em`}},[s(`span`)])])])])])])])])]),s(`td`,null,`expectation`),s(`td`,null,`average over images, levels, noise`),s(`td`,null,`a batch`)]),s(`tr`,null,[s(`td`,null,[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mi`,{mathvariant:`script`},`L`)]),s(`annotation`,{encoding:`application/x-tex`},`\\mathcal{L}`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),s(`span`,{class:`mord mathcal`},`L`)])])])]),s(`td`,null,`loss`),s(`td`,null,`minimised in training`),s(`td`)])])],-1)]]),_:1})]),s(`div`,null,[(e(),c(`svg`,S,[(e(),c(d,null,a([[`ε`,[`0.5`,`−1.0`]],[`ε_θ`,[`0.3`,`−0.6`]],[`error²`,[`0.04`,`0.16`]]],(t,r)=>s(`g`,{key:r},[s(`text`,{class:`dl-dg-small`,x:`80`,y:30+r*44,"text-anchor":`end`},n(t[0]),9,C),(e(!0),c(d,null,a(t[1],(t,i)=>(e(),c(`g`,{key:i},[s(`rect`,{class:l([`dl-dg-box`,r===2?`is-accent`:``]),x:92+i*70,y:10+r*44,width:`60`,height:`30`,rx:`3`},null,10,w),s(`text`,{class:`dl-dg-lab is-sm`,x:122+i*70,y:30+r*44,"text-anchor":`middle`},n(t),9,T)]))),128))])),64))])),f((e(),c(`div`,E,[...D[1]||=[s(`p`,null,[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mo`,{stretchy:`false`},`(`),s(`mn`,null,`0.5`),s(`mo`,null,`−`),s(`mn`,null,`0.3`),s(`msup`,null,[s(`mo`,{stretchy:`false`},`)`),s(`mn`,null,`2`)]),s(`mo`,null,`+`),s(`mo`,{stretchy:`false`},`(`),s(`mo`,null,`−`),s(`mn`,null,`1.0`),s(`mo`,null,`+`),s(`mn`,null,`0.6`),s(`msup`,null,[s(`mo`,{stretchy:`false`},`)`),s(`mn`,null,`2`)]),s(`mo`,null,`=`),s(`mn`,null,`0.04`),s(`mo`,null,`+`),s(`mn`,null,`0.16`),s(`mo`,null,`=`),s(`mn`,null,`0.20`)]),s(`annotation`,{encoding:`application/x-tex`},`(0.5 - 0.3)^2 + (-1.0 + 0.6)^2 = 0.04 + 0.16 = 0.20`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),s(`span`,{class:`mopen`},`(`),s(`span`,{class:`mord`},`0.5`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),s(`span`,{class:`mbin`},`−`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`1.0641em`,"vertical-align":`-0.25em`}}),s(`span`,{class:`mord`},`0.3`),s(`span`,{class:`mclose`},[s(`span`,{class:`mclose`},`)`),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.8141em`}},[s(`span`,{style:{top:`-3.063em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mtight`},`2`)])])])])])])]),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),s(`span`,{class:`mbin`},`+`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),s(`span`,{class:`mopen`},`(`),s(`span`,{class:`mord`},`−`),s(`span`,{class:`mord`},`1.0`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),s(`span`,{class:`mbin`},`+`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`1.0641em`,"vertical-align":`-0.25em`}}),s(`span`,{class:`mord`},`0.6`),s(`span`,{class:`mclose`},[s(`span`,{class:`mclose`},`)`),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.8141em`}},[s(`span`,{style:{top:`-3.063em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mtight`},`2`)])])])])])])]),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),s(`span`,{class:`mrel`},`=`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.7278em`,"vertical-align":`-0.0833em`}}),s(`span`,{class:`mord`},`0.04`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),s(`span`,{class:`mbin`},`+`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),s(`span`,{class:`mord`},`0.16`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),s(`span`,{class:`mrel`},`=`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),s(`span`,{class:`mord`},`0.20`)])])])],-1)]])),[[k]])])])]),_:1},16)}}};export{D as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-BuYGAREy.js b/lecture-07/assets/md-BuYGAREy.js new file mode 100644 index 0000000000000000000000000000000000000000..64a060e6848724273ad680d3ff039dd20e015565 --- /dev/null +++ b/lecture-07/assets/md-BuYGAREy.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,S as i,_ as a,b as o,et as s,tt as c,v as l,xt as u,yt as d}from"./modules/shiki-CJZsCeMT.js";import{n as f,t as p}from"./slidev/context-DB-9afGB.js";import{t as m}from"./PixelImage-C1NqQXMF.js";import{t as h}from"./default-CbJk4Idc.js";var g={class:`mt-1 flex justify-center`},_={viewBox:`0 0 660 250`,class:`dl-diagram`,role:`img`,"aria-label":`A CNN maps an image to three class scores; a generator would map a few numbers back to an image`},v={class:`mt-1 dl-callout`},y={__name:`slides.md__slidev_4`,setup(y){let{$slidev:b,$nav:x,$clicksContext:S,$clicks:C,$page:w,$renderContext:T,$frontmatter:E}=f();return S.setup(),(f,y)=>{let b=m,x=r(`click`);return e(),l(h,u(n(d(p)(d(E),3))),{default:s(()=>[y[24]||=a(`h1`,null,`What a CNN already does`,-1),a(`div`,g,[(e(),o(`svg`,_,[y[10]||=a(`defs`,null,[a(`marker`,{id:`cnn-arrow`,markerWidth:`7`,markerHeight:`7`,refX:`6`,refY:`3.5`,orient:`auto`},[a(`path`,{class:`dl-dg-head`,d:`M0 0 L7 3.5 L0 7 z`})])],-1),y[11]||=a(`text`,{class:`dl-dg-small`,x:`8`,y:`14`},`weeks 4–5 — recognise`,-1),t(b,{"in-svg":``,x:8,y:26,size:72,pattern:`smiley`}),y[12]||=a(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#cnn-arrow)`,d:`M86 62 H118`},null,-1),y[13]||=a(`polygon`,{class:`dl-dg-net is-critic`,points:`124,24 290,46 290,78 124,100`},null,-1),y[14]||=a(`text`,{class:`dl-dg-in is-critic`,x:`206`,y:`67`,"text-anchor":`middle`},`CNN`,-1),y[15]||=a(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#cnn-arrow)`,d:`M294 62 H326`},null,-1),y[16]||=a(`rect`,{class:`dl-dg-bar`,x:`336`,y:`36`,width:`150`,height:`14`,rx:`3`},null,-1),y[17]||=a(`rect`,{class:`dl-dg-bar`,x:`336`,y:`56`,width:`7`,height:`14`,rx:`3`},null,-1),y[18]||=a(`rect`,{class:`dl-dg-bar`,x:`336`,y:`76`,width:`4`,height:`14`,rx:`3`},null,-1),y[19]||=a(`text`,{class:`dl-dg-small`,x:`494`,y:`47`},`smiley 0.94`,-1),y[20]||=a(`text`,{class:`dl-dg-small`,x:`494`,y:`67`},`heart 0.04`,-1),y[21]||=a(`text`,{class:`dl-dg-small`,x:`494`,y:`87`},`star 0.02`,-1),y[22]||=a(`text`,{class:`dl-dg-small`,x:`336`,y:`112`},`144 pixels in → 3 scores out`,-1),c((e(),o(`g`,null,[y[0]||=a(`line`,{class:`dl-dg-split`,x1:`8`,y1:`128`,x2:`652`,y2:`128`},null,-1),y[1]||=a(`text`,{class:`dl-dg-small is-good`,x:`8`,y:`148`},`today — create`,-1),y[2]||=a(`rect`,{class:`dl-dg-box is-accent`,x:`8`,y:`176`,width:`40`,height:`44`,rx:`4`},null,-1),y[3]||=a(`text`,{class:`dl-dg-lab is-sm`,x:`28`,y:`203`,"text-anchor":`middle`},`z`,-1),y[4]||=a(`text`,{class:`dl-dg-small`,x:`28`,y:`236`,"text-anchor":`middle`},`a few random numbers`,-1),y[5]||=a(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#cnn-arrow)`,d:`M52 198 H118`},null,-1),y[6]||=a(`polygon`,{class:`dl-dg-net`,points:`124,176 290,154 290,242 124,220`},null,-1),y[7]||=a(`text`,{class:`dl-dg-in`,x:`206`,y:`203`,"text-anchor":`middle`},`generator`,-1),y[8]||=a(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#cnn-arrow)`,d:`M294 198 H326`},null,-1),t(b,{"in-svg":``,x:336,y:162,size:72,pattern:`heart`,tone:`accent`}),t(b,{"in-svg":``,x:420,y:162,size:72,pattern:`star`,tone:`accent`}),t(b,{"in-svg":``,x:504,y:162,size:72,pattern:`tree`,tone:`accent`}),y[9]||=a(`text`,{class:`dl-dg-small`,x:`336`,y:`248`},`a different new image for every z`,-1)])),[[x]])]))]),c((e(),o(`div`,v,[...y[23]||=[a(`p`,null,[i(`Few numbers in, `),a(`strong`,null,`many`),i(` out — and a new picture each time. That is a `),a(`strong`,null,`generative model`),i(`.`)],-1)]])),[[x]])]),_:1},16)}}};export{y as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-Bvn5xDZG2.js b/lecture-07/assets/md-Bvn5xDZG2.js new file mode 100644 index 0000000000000000000000000000000000000000..3a8fd679e8b49a089e77ce85a0db7d1f41a95975 --- /dev/null +++ b/lecture-07/assets/md-Bvn5xDZG2.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,S as i,_ as a,b as o,et as s,tt as c,v as l,xt as u,yt as d}from"./modules/shiki-CJZsCeMT.js";import{n as f,t as p}from"./slidev/context-DB-9afGB.js";import{t as m}from"./slidev/VClicks-DhU7uhQr.js";import{t as h}from"./interactive-Co6Mxz4S.js";import{t as g}from"./AdversarialGame-BqfAXE8Q.js";var _={class:`mt-2 dl-callout`},v={__name:`slides.md__slidev_34`,setup(v){let{$slidev:y,$nav:b,$clicksContext:x,$clicks:S,$page:C,$renderContext:w,$frontmatter:T}=f();return x.setup(),(f,v)=>{let y=g,b=m,x=r(`click`);return e(),l(h,u(n(d(p)(d(T),33))),{aside:s(n=>[v[2]||=a(`p`,null,[i(`Write `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`P`)]),a(`annotation`,{encoding:`application/x-tex`},`P`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.1389em`}},`P`)])])]),i(` for `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`msub`,null,[a(`mi`,null,`p`),a(`mtext`,null,`data`)])]),a(`annotation`,{encoding:`application/x-tex`},`p_{\\text{data}}`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.625em`,"vertical-align":`-0.1944em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord mathnormal`},`p`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.3361em`}},[a(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mtight`},[a(`span`,{class:`mord text mtight`},[a(`span`,{class:`mord mtight`},`data`)])])])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.15em`}},[a(`span`)])])])])])])])]),i(` and `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`Q`)]),a(`annotation`,{encoding:`application/x-tex`},`Q`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.8778em`,"vertical-align":`-0.1944em`}}),a(`span`,{class:`mord mathnormal`},`Q`)])])]),i(` for `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`msub`,null,[a(`mi`,null,`p`),a(`mi`,null,`g`)])]),a(`annotation`,{encoding:`application/x-tex`},`p_g`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.7167em`,"vertical-align":`-0.2861em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord mathnormal`},`p`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.1514em`}},[a(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0359em`}},`g`)])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.2861em`}},[a(`span`)])])])])])])])]),i(`. `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`P`)]),a(`annotation`,{encoding:`application/x-tex`},`P`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.1389em`}},`P`)])])]),i(` is uniform over three modes; `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`Q`)]),a(`annotation`,{encoding:`application/x-tex`},`Q`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.8778em`,"vertical-align":`-0.1944em`}}),a(`span`,{class:`mord mathnormal`},`Q`)])])]),i(` over-produces mode 2.`)],-1),t(b,null,{default:s(()=>[...v[0]||=[a(`ul`,null,[a(`li`,null,[i(`Mode 1: `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mstyle`,{scriptlevel:`0`,displaystyle:`false`},[a(`mfrac`,null,[a(`mrow`,null,[a(`mn`,null,`1`),a(`mi`,{mathvariant:`normal`},`/`),a(`mn`,null,`3`)]),a(`mrow`,null,[a(`mn`,null,`1`),a(`mi`,{mathvariant:`normal`},`/`),a(`mn`,null,`3`),a(`mo`,null,`+`),a(`mn`,null,`1`),a(`mi`,{mathvariant:`normal`},`/`),a(`mn`,null,`5`)])])]),a(`mo`,null,`=`),a(`mstyle`,{scriptlevel:`0`,displaystyle:`false`},[a(`mfrac`,null,[a(`mn`,null,`5`),a(`mn`,null,`8`)])]),a(`mo`,null,`=`),a(`mn`,null,`0.625`)]),a(`annotation`,{encoding:`application/x-tex`},`\\tfrac{1/3}{1/3 + 1/5} = \\tfrac{5}{8} = 0.625`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1.53em`,"vertical-align":`-0.52em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mopen nulldelimiter`}),a(`span`,{class:`mfrac`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`1.01em`}},[a(`span`,{style:{top:`-2.655em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mtight`},[a(`span`,{class:`mord mtight`},`1/3`),a(`span`,{class:`mbin mtight`},`+`),a(`span`,{class:`mord mtight`},`1/5`)])])]),a(`span`,{style:{top:`-3.23em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`frac-line`,style:{"border-bottom-width":`0.04em`}})]),a(`span`,{style:{top:`-3.485em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mtight`},[a(`span`,{class:`mord mtight`},`1/3`)])])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.52em`}},[a(`span`)])])])]),a(`span`,{class:`mclose nulldelimiter`})]),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`=`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1.1901em`,"vertical-align":`-0.345em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mopen nulldelimiter`}),a(`span`,{class:`mfrac`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.8451em`}},[a(`span`,{style:{top:`-2.655em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mtight`},[a(`span`,{class:`mord mtight`},`8`)])])]),a(`span`,{style:{top:`-3.23em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`frac-line`,style:{"border-bottom-width":`0.04em`}})]),a(`span`,{style:{top:`-3.394em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mtight`},[a(`span`,{class:`mord mtight`},`5`)])])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.345em`}},[a(`span`)])])])]),a(`span`,{class:`mclose nulldelimiter`})]),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`=`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),a(`span`,{class:`mord`},`0.625`)])])])]),a(`li`,null,[i(`Mode 2: `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mstyle`,{scriptlevel:`0`,displaystyle:`false`},[a(`mfrac`,null,[a(`mrow`,null,[a(`mn`,null,`1`),a(`mi`,{mathvariant:`normal`},`/`),a(`mn`,null,`3`)]),a(`mrow`,null,[a(`mn`,null,`1`),a(`mi`,{mathvariant:`normal`},`/`),a(`mn`,null,`3`),a(`mo`,null,`+`),a(`mn`,null,`1`),a(`mi`,{mathvariant:`normal`},`/`),a(`mn`,null,`2`)])])]),a(`mo`,null,`=`),a(`mstyle`,{scriptlevel:`0`,displaystyle:`false`},[a(`mfrac`,null,[a(`mn`,null,`2`),a(`mn`,null,`5`)])]),a(`mo`,null,`=`),a(`mn`,null,`0.400`)]),a(`annotation`,{encoding:`application/x-tex`},`\\tfrac{1/3}{1/3 + 1/2} = \\tfrac{2}{5} = 0.400`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1.53em`,"vertical-align":`-0.52em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mopen nulldelimiter`}),a(`span`,{class:`mfrac`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`1.01em`}},[a(`span`,{style:{top:`-2.655em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mtight`},[a(`span`,{class:`mord mtight`},`1/3`),a(`span`,{class:`mbin mtight`},`+`),a(`span`,{class:`mord mtight`},`1/2`)])])]),a(`span`,{style:{top:`-3.23em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`frac-line`,style:{"border-bottom-width":`0.04em`}})]),a(`span`,{style:{top:`-3.485em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mtight`},[a(`span`,{class:`mord mtight`},`1/3`)])])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.52em`}},[a(`span`)])])])]),a(`span`,{class:`mclose nulldelimiter`})]),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`=`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1.1901em`,"vertical-align":`-0.345em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mopen nulldelimiter`}),a(`span`,{class:`mfrac`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.8451em`}},[a(`span`,{style:{top:`-2.655em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mtight`},[a(`span`,{class:`mord mtight`},`5`)])])]),a(`span`,{style:{top:`-3.23em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`frac-line`,style:{"border-bottom-width":`0.04em`}})]),a(`span`,{style:{top:`-3.394em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mtight`},[a(`span`,{class:`mord mtight`},`2`)])])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.345em`}},[a(`span`)])])])]),a(`span`,{class:`mclose nulldelimiter`})]),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`=`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),a(`span`,{class:`mord`},`0.400`)])])])]),a(`li`,null,[i(`Mode 3: `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mstyle`,{scriptlevel:`0`,displaystyle:`false`},[a(`mfrac`,null,[a(`mrow`,null,[a(`mn`,null,`1`),a(`mi`,{mathvariant:`normal`},`/`),a(`mn`,null,`3`)]),a(`mrow`,null,[a(`mn`,null,`1`),a(`mi`,{mathvariant:`normal`},`/`),a(`mn`,null,`3`),a(`mo`,null,`+`),a(`mn`,null,`3`),a(`mi`,{mathvariant:`normal`},`/`),a(`mn`,null,`10`)])])]),a(`mo`,null,`=`),a(`mstyle`,{scriptlevel:`0`,displaystyle:`false`},[a(`mfrac`,null,[a(`mn`,null,`10`),a(`mn`,null,`19`)])]),a(`mo`,null,`=`),a(`mn`,null,`0.526`)]),a(`annotation`,{encoding:`application/x-tex`},`\\tfrac{1/3}{1/3 + 3/10} = \\tfrac{10}{19} = 0.526`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1.53em`,"vertical-align":`-0.52em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mopen nulldelimiter`}),a(`span`,{class:`mfrac`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`1.01em`}},[a(`span`,{style:{top:`-2.655em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mtight`},[a(`span`,{class:`mord mtight`},`1/3`),a(`span`,{class:`mbin mtight`},`+`),a(`span`,{class:`mord mtight`},`3/10`)])])]),a(`span`,{style:{top:`-3.23em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`frac-line`,style:{"border-bottom-width":`0.04em`}})]),a(`span`,{style:{top:`-3.485em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mtight`},[a(`span`,{class:`mord mtight`},`1/3`)])])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.52em`}},[a(`span`)])])])]),a(`span`,{class:`mclose nulldelimiter`})]),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`=`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1.1901em`,"vertical-align":`-0.345em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mopen nulldelimiter`}),a(`span`,{class:`mfrac`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.8451em`}},[a(`span`,{style:{top:`-2.655em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mtight`},[a(`span`,{class:`mord mtight`},`19`)])])]),a(`span`,{style:{top:`-3.23em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`frac-line`,style:{"border-bottom-width":`0.04em`}})]),a(`span`,{style:{top:`-3.394em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mtight`},[a(`span`,{class:`mord mtight`},`10`)])])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.345em`}},[a(`span`)])])])]),a(`span`,{class:`mclose nulldelimiter`})]),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`=`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),a(`span`,{class:`mord`},`0.526`)])])])])],-1)]]),_:1}),c((e(),o(`div`,_,[...v[1]||=[a(`p`,null,`Under 0.5 exactly where the generator is over-producing.`,-1)]])),[[x]])]),default:s(()=>[t(y,{"discriminator-only":``})]),_:1},16)}}};export{v as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-ByqZDNWS.js b/lecture-07/assets/md-ByqZDNWS.js new file mode 100644 index 0000000000000000000000000000000000000000..3a1f7201975cd5fdff66df0688d1ee9216007697 --- /dev/null +++ b/lecture-07/assets/md-ByqZDNWS.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,S as i,_ as a,et as o,tt as s,v as c,xt as l,yt as u}from"./modules/shiki-CJZsCeMT.js";import{n as d,t as f}from"./slidev/context-DB-9afGB.js";import{t as p}from"./PixelImage-C1NqQXMF.js";import{t as m}from"./default-CbJk4Idc.js";import{t as h}from"./slidev/VClicks-DhU7uhQr.js";import{t as g}from"./Citation-CcKhBxpe.js";var _={class:`dl-pixrow mt-3 gap-8`},v={class:`dl-tight mt-4`},y={class:`mt-2`},b={__name:`slides.md__slidev_46`,setup(b){let{$slidev:x,$nav:S,$clicksContext:C,$clicks:w,$page:T,$renderContext:E,$frontmatter:D}=d();return C.setup(),(d,b)=>{let x=p,S=h,C=g,w=r(`click`);return e(),c(m,l(n(u(f)(u(D),45))),{default:o(()=>[b[1]||=a(`h1`,null,`The checkerboard, and what to do instead`,-1),a(`div`,_,[t(x,{pattern:`checker:3:2`,size:120,tone:`danger`,label:`kernel 3, stride 2`}),s(t(x,{pattern:`checker:4:2`,size:120,label:`kernel 4, stride 2 — even`},null,512),[[w]]),s(t(x,{pattern:`checker:2:1`,size:120,tone:`accent`,label:`upsample, then convolve`},null,512),[[w]])]),a(`div`,v,[t(S,null,{default:o(()=>[...b[0]||=[a(`ul`,null,[a(`li`,null,[i(`Uneven coverage whenever `),a(`code`,null,`stride`),i(` does not divide `),a(`code`,null,`kernel`),i(` — visible `),a(`strong`,null,`before training`)]),a(`li`,null,[a(`strong`,null,`Fix 1:`),i(` make the stride divide the kernel size. DCGAN uses kernel 4, stride 2`)]),a(`li`,null,[a(`strong`,null,`Fix 2:`),i(` resize, then an ordinary `),a(`code`,null,`Conv2d`),i(` — what modern code and section 05’s U-Net do`)])],-1)]]),_:1})]),a(`div`,y,[t(C,{source:`Odena, Dumoulin & Olah, Deconvolution and Checkerboard Artifacts, Distill (2016)`,url:`https://distill.pub/2016/deconv-checkerboard/`})])]),_:1},16)}}};export{b as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-C6-DPXKX.js b/lecture-07/assets/md-C6-DPXKX.js new file mode 100644 index 0000000000000000000000000000000000000000..6e3ff85b29ad35c5683a8aac7c001006b59b1059 --- /dev/null +++ b/lecture-07/assets/md-C6-DPXKX.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,S as i,_ as a,b as o,et as s,tt as c,v as l,xt as u,yt as d}from"./modules/shiki-CJZsCeMT.js";import{n as f,t as p}from"./slidev/context-DB-9afGB.js";import{t as m}from"./slidev/VClicks-DhU7uhQr.js";import{t as h}from"./AutoencoderLab-BLIx_rsl.js";import{t as g}from"./interactive-Co6Mxz4S.js";var _={class:`mt-2 dl-callout`},v={__name:`slides.md__slidev_13`,setup(v){let{$slidev:y,$nav:b,$clicksContext:x,$clicks:S,$page:C,$renderContext:w,$frontmatter:T}=f();return x.setup(),(f,v)=>{let y=h,b=m,x=r(`click`);return e(),l(g,u(n(d(p)(d(T),12))),{aside:s(n=>[v[2]||=a(`p`,null,`Three clusters of data. Grey is the input, teal is what comes back out.`,-1),t(b,null,{default:s(()=>[...v[0]||=[a(`ul`,null,[a(`li`,null,[a(`strong`,null,`code = 2`),i(` — output sits exactly on input. Perfect, and useless`)]),a(`li`,null,[a(`strong`,null,`code = 1`),i(` — every output must lie on `),a(`strong`,null,`one curve`),i(` the decoder can draw`)])],-1)]]),_:1}),c((e(),o(`div`,_,[...v[1]||=[a(`p`,null,`That curve is everything the model learned about the data.`,-1)]])),[[x]])]),default:s(()=>[t(y)]),_:1},16)}}};export{v as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-C6_XDzCW.js b/lecture-07/assets/md-C6_XDzCW.js new file mode 100644 index 0000000000000000000000000000000000000000..823de3d214e58e291ad4f7436803cd58f9ffb434 --- /dev/null +++ b/lecture-07/assets/md-C6_XDzCW.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,H as i,_ as a,b as o,et as s,m as c,tt as l,v as u,xt as d,yt as f}from"./modules/shiki-CJZsCeMT.js";import{n as p,t as m}from"./slidev/context-DB-9afGB.js";import{t as h}from"./default-CbJk4Idc.js";import{t as g}from"./LinkCard-CuSkRmQ7.js";var _={class:`grid grid-cols-[1fr_1fr_0.9fr] gap-5 mt-3 items-center`},v={viewBox:`0 0 220 200`,class:`dl-diagram`,role:`img`,"aria-label":`What to look for in GAN Lab: the background shading is D, and fake points move toward the real ones`},y=[`cx`,`cy`],b=[`cx`,`cy`],x=[`d`],S={class:`mt-4 dl-secondary`},C={__name:`slides.md__slidev_42`,setup(C){let{$slidev:w,$nav:T,$clicksContext:E,$clicks:D,$page:O,$renderContext:k,$frontmatter:A}=p();return E.setup(),(p,C)=>{let w=g,T=r(`click`);return e(),u(h,d(n(f(m)(f(A),41))),{default:s(()=>[C[5]||=a(`h1`,null,`Watch it happen`,-1),a(`div`,_,[l((e(),o(`div`,null,[t(w,{href:`https://poloclub.github.io/ganlab/`,title:`GAN Lab`,blurb:`Kahng et al., Georgia Tech. A GAN training in your browser, with the discriminator's decision surface drawn live.`,icon:`🎮`})])),[[T]]),l((e(),o(`div`,null,[t(w,{href:`https://arxiv.org/abs/1406.2661`,title:`Generative Adversarial Nets`,blurb:`Goodfellow et al., 2014. Nine pages. The proof of the D* result is four lines.`,icon:`📄`})])),[[T]]),l((e(),o(`div`,null,[(e(),o(`svg`,v,[C[0]||=a(`defs`,null,[a(`marker`,{id:`gl-arrow`,markerWidth:`6`,markerHeight:`6`,refX:`5`,refY:`3`,orient:`auto`},[a(`path`,{class:`dl-dg-head`,d:`M0 0 L6 3 L0 6 z`})])],-1),C[1]||=a(`rect`,{class:`dl-dg-fill is-muted`,x:`4`,y:`4`,width:`212`,height:`170`,rx:`6`},null,-1),C[2]||=a(`path`,{class:`dl-dg-fill`,style:{stroke:`none`},d:`M4 4 H120 C 100 60, 150 120, 110 174 H4 Z`},null,-1),(e(),o(c,null,i([[40,40],[60,70],[34,110],[70,140],[50,90],[80,30]],(e,t)=>a(`circle`,{key:`r${t}`,class:`dl-dg-dot`,cx:e[0],cy:e[1],r:`5`},null,8,y)),64)),(e(),o(c,null,i([[170,50],[180,100],[160,140],[190,70]],(e,t)=>a(`circle`,{key:`f${t}`,class:`dl-dg-dot is-accent`,cx:e[0],cy:e[1],r:`5`},null,8,b)),64)),(e(),o(c,null,i([[170,50],[180,100],[160,140],[190,70]],(e,t)=>a(`path`,{key:`m${t}`,class:`dl-dg-arrow`,"marker-end":`url(#gl-arrow)`,d:`M${e[0]-7} ${e[1]} L${e[0]-34} ${e[1]-4}`},null,8,x)),64)),C[3]||=a(`text`,{class:`dl-dg-small`,x:`110`,y:`192`,"text-anchor":`middle`},`shading = D · teal = G, moving in`,-1)]))])),[[T]])]),l((e(),o(`div`,S,[...C[4]||=[a(`p`,null,`In GAN Lab, try the "two rings" dataset and wait. It usually collapses — and that is the next section.`,-1)]])),[[T]])]),_:1},16)}}};export{C as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-CDCWft8y.js b/lecture-07/assets/md-CDCWft8y.js new file mode 100644 index 0000000000000000000000000000000000000000..da03b081660ab6621a9cf04d5d8efe23e4bc4915 --- /dev/null +++ b/lecture-07/assets/md-CDCWft8y.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,S as i,_ as a,b as o,et as s,tt as c,v as l,xt as u,yt as d}from"./modules/shiki-CJZsCeMT.js";import{n as f,t as p}from"./slidev/context-DB-9afGB.js";import{t as m}from"./default-CbJk4Idc.js";import{t as h}from"./slidev/VClicks-DhU7uhQr.js";var g={class:`grid grid-cols-[1.45fr_1fr] gap-5 mt-1 items-start`},_={class:`dl-ledger dl-tight dl-eq-legend`},v={class:`dl-callout`},y={__name:`slides.md__slidev_67`,setup(y){let{$slidev:b,$nav:x,$clicksContext:S,$clicks:C,$page:w,$renderContext:T,$frontmatter:E}=f();return S.setup(),(f,y)=>{let b=h,x=r(`click`);return e(),l(m,u(n(d(p)(d(E),66))),{default:s(()=>[y[3]||=a(`h1`,null,`Reading the equation: guidance`,-1),a(`div`,g,[a(`div`,_,[t(b,null,{default:s(()=>[...y[0]||=[a(`table`,null,[a(`thead`,null,[a(`tr`,null,[a(`th`,null,`symbol`),a(`th`,null,`name`),a(`th`,null,`what it is here`),a(`th`,null,`example`)])]),a(`tbody`,null,[a(`tr`,null,[a(`td`,null,[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`msub`,null,[a(`mi`,{mathvariant:`bold-italic`},`ϵ`),a(`mi`,null,`θ`)]),a(`mo`,{stretchy:`false`},`(`),a(`msub`,null,[a(`mi`,{mathvariant:`bold`},`x`),a(`mi`,null,`t`)]),a(`mo`,{separator:`true`},`,`),a(`mi`,null,`t`),a(`mo`,{stretchy:`false`},`)`)]),a(`annotation`,{encoding:`application/x-tex`},`\\boldsymbol\\epsilon_\\theta(\\mathbf{x}_t, t)`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord`},[a(`span`,{class:`mord`},[a(`span`,{class:`mord boldsymbol`},`ϵ`)])]),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.3361em`}},[a(`span`,{style:{top:`-2.55em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0278em`}},`θ`)])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.15em`}},[a(`span`)])])])])]),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord`},[a(`span`,{class:`mord mathbf`},`x`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.2806em`}},[a(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mathnormal mtight`},`t`)])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.15em`}},[a(`span`)])])])])]),a(`span`,{class:`mpunct`},`,`),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mord mathnormal`},`t`),a(`span`,{class:`mclose`},`)`)])])])]),a(`td`,null,`unconditional prediction`),a(`td`,null,`noise guess without the prompt`),a(`td`,null,`0.2`)]),a(`tr`,null,[a(`td`,null,[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`c`)]),a(`annotation`,{encoding:`application/x-tex`},`c`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.4306em`}}),a(`span`,{class:`mord mathnormal`},`c`)])])])]),a(`td`,null,`condition`),a(`td`,null,`the prompt, as a vector`),a(`td`)]),a(`tr`,null,[a(`td`,null,[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`msub`,null,[a(`mi`,{mathvariant:`bold-italic`},`ϵ`),a(`mi`,null,`θ`)]),a(`mo`,{stretchy:`false`},`(`),a(`msub`,null,[a(`mi`,{mathvariant:`bold`},`x`),a(`mi`,null,`t`)]),a(`mo`,{separator:`true`},`,`),a(`mi`,null,`t`),a(`mo`,{separator:`true`},`,`),a(`mi`,null,`c`),a(`mo`,{stretchy:`false`},`)`)]),a(`annotation`,{encoding:`application/x-tex`},`\\boldsymbol\\epsilon_\\theta(\\mathbf{x}_t, t, c)`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord`},[a(`span`,{class:`mord`},[a(`span`,{class:`mord boldsymbol`},`ϵ`)])]),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.3361em`}},[a(`span`,{style:{top:`-2.55em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0278em`}},`θ`)])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.15em`}},[a(`span`)])])])])]),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord`},[a(`span`,{class:`mord mathbf`},`x`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.2806em`}},[a(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mathnormal mtight`},`t`)])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.15em`}},[a(`span`)])])])])]),a(`span`,{class:`mpunct`},`,`),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mord mathnormal`},`t`),a(`span`,{class:`mpunct`},`,`),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mord mathnormal`},`c`),a(`span`,{class:`mclose`},`)`)])])])]),a(`td`,null,`conditional prediction`),a(`td`,null,`noise guess with the prompt`),a(`td`,null,`0.5`)]),a(`tr`,null,[a(`td`,null,[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`w`)]),a(`annotation`,{encoding:`application/x-tex`},`w`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.4306em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0269em`}},`w`)])])])]),a(`td`,null,`guidance scale`),a(`td`,null,`set by hand at sampling time`),a(`td`,null,`2.5`)]),a(`tr`,null,[a(`td`,null,[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mover`,{accent:`true`},[a(`mi`,{mathvariant:`bold-italic`},`ϵ`),a(`mo`,null,`~`)])]),a(`annotation`,{encoding:`application/x-tex`},`\\tilde{\\boldsymbol\\epsilon}`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6813em`}}),a(`span`,{class:`mord katex-accent`},[a(`span`,{class:`vlist-t`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.6813em`}},[a(`span`,{style:{top:`-3em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord`},[a(`span`,{class:`mord boldsymbol`},`ϵ`)])])]),a(`span`,{style:{top:`-3.3634em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`accent-body`,style:{left:`-0.25em`}},[a(`span`,{class:`mord`},`~`)])])])])])])])])])]),a(`td`,null,`guided prediction`),a(`td`,null,`what the sampler removes`),a(`td`,null,`0.95`)]),a(`tr`,null,[a(`td`,null,[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`θ`)]),a(`annotation`,{encoding:`application/x-tex`},`\\theta`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6944em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0278em`}},`θ`)])])]),i(`, `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`msub`,null,[a(`mi`,{mathvariant:`bold`},`x`),a(`mi`,null,`t`)])]),a(`annotation`,{encoding:`application/x-tex`},`\\mathbf{x}_t`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.5944em`,"vertical-align":`-0.15em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord mathbf`},`x`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.2806em`}},[a(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mathnormal mtight`},`t`)])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.15em`}},[a(`span`)])])])])])])])]),i(`, `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`t`)]),a(`annotation`,{encoding:`application/x-tex`},`t`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6151em`}}),a(`span`,{class:`mord mathnormal`},`t`)])])])]),a(`td`,null,`as before`),a(`td`,null,`weights, noisy image, noise level`),a(`td`)])])],-1)]]),_:1})]),a(`div`,null,[y[2]||=a(`svg`,{viewBox:`0 0 300 130`,class:`dl-diagram`,role:`img`,"aria-label":`A number line for one pixel: without the prompt 0.2, with the prompt 0.5, guided with w = 2.5 gives 0.95`},[a(`line`,{class:`dl-dg-split`,x1:`10`,y1:`70`,x2:`290`,y2:`70`}),a(`text`,{class:`dl-dg-small`,x:`10`,y:`92`},`0`),a(`text`,{class:`dl-dg-small`,x:`290`,y:`92`,"text-anchor":`end`},`1`),a(`circle`,{class:`dl-dg-dot is-accent`,cx:`66`,cy:`70`,r:`6`}),a(`text`,{class:`dl-dg-small`,x:`66`,y:`52`,"text-anchor":`middle`},`without c`),a(`circle`,{class:`dl-dg-dot`,cx:`150`,cy:`70`,r:`6`}),a(`text`,{class:`dl-dg-small is-good`,x:`150`,y:`52`,"text-anchor":`middle`},`with c`),a(`circle`,{class:`dl-dg-dot is-bad`,cx:`276`,cy:`70`,r:`6`}),a(`text`,{class:`dl-dg-small is-bad`,x:`262`,y:`52`,"text-anchor":`middle`},`w = 2.5`),a(`text`,{class:`dl-dg-small`,x:`150`,y:`118`,"text-anchor":`middle`},`one pixel of the noise prediction`)],-1),c((e(),o(`div`,v,[...y[1]||=[a(`p`,null,[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mover`,{accent:`true`},[a(`mi`,null,`ϵ`),a(`mo`,null,`~`)]),a(`mo`,null,`=`),a(`mn`,null,`0.2`),a(`mo`,null,`+`),a(`mn`,null,`2.5`),a(`mo`,null,`×`),a(`mo`,{stretchy:`false`},`(`),a(`mn`,null,`0.5`),a(`mo`,null,`−`),a(`mn`,null,`0.2`),a(`mo`,{stretchy:`false`},`)`),a(`mo`,null,`=`),a(`mn`,null,`0.95`)]),a(`annotation`,{encoding:`application/x-tex`},`\\tilde{\\epsilon} = 0.2 + 2.5 \\times (0.5 - 0.2) = 0.95`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6679em`}}),a(`span`,{class:`mord katex-accent`},[a(`span`,{class:`vlist-t`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.6679em`}},[a(`span`,{style:{top:`-3em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`mord mathnormal`},`ϵ`)]),a(`span`,{style:{top:`-3.35em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`accent-body`,style:{left:`-0.1944em`}},[a(`span`,{class:`mord`},`~`)])])])])])]),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`=`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.7278em`,"vertical-align":`-0.0833em`}}),a(`span`,{class:`mord`},`0.2`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),a(`span`,{class:`mbin`},`+`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.7278em`,"vertical-align":`-0.0833em`}}),a(`span`,{class:`mord`},`2.5`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),a(`span`,{class:`mbin`},`×`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord`},`0.5`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),a(`span`,{class:`mbin`},`−`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),a(`span`,{class:`mord`},`0.2`),a(`span`,{class:`mclose`},`)`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`=`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),a(`span`,{class:`mord`},`0.95`)])])])],-1),a(`p`,null,[i(`With `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`w`),a(`mo`,null,`=`),a(`mn`,null,`1`)]),a(`annotation`,{encoding:`application/x-tex`},`w = 1`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.4306em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0269em`}},`w`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`=`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),a(`span`,{class:`mord`},`1`)])])]),i(`: `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mn`,null,`0.2`),a(`mo`,null,`+`),a(`mn`,null,`1`),a(`mo`,null,`×`),a(`mn`,null,`0.3`),a(`mo`,null,`=`),a(`mn`,null,`0.5`)]),a(`annotation`,{encoding:`application/x-tex`},`0.2 + 1 \\times 0.3 = 0.5`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.7278em`,"vertical-align":`-0.0833em`}}),a(`span`,{class:`mord`},`0.2`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),a(`span`,{class:`mbin`},`+`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.7278em`,"vertical-align":`-0.0833em`}}),a(`span`,{class:`mord`},`1`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),a(`span`,{class:`mbin`},`×`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),a(`span`,{class:`mord`},`0.3`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`=`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),a(`span`,{class:`mord`},`0.5`)])])]),i(`, the plain "with `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`c`)]),a(`annotation`,{encoding:`application/x-tex`},`c`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.4306em`}}),a(`span`,{class:`mord mathnormal`},`c`)])])]),i(`" answer.`)],-1)]])),[[x]])])])]),_:1},16)}}};export{y as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-CDeVVdp4.js b/lecture-07/assets/md-CDeVVdp4.js new file mode 100644 index 0000000000000000000000000000000000000000..f9cd9eeab92ec0af719edceac6191be04f090338 --- /dev/null +++ b/lecture-07/assets/md-CDeVVdp4.js @@ -0,0 +1 @@ +import{B as e,C as t,Ct as n,D as r,G as i,H as a,S as o,T as s,_ as c,b as l,dt as u,et as d,g as f,m as p,tt as m,v as h,xt as g,yt as _}from"./modules/shiki-CJZsCeMT.js";import{t as v}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as y,t as b}from"./slidev/context-DB-9afGB.js";import{C as x,b as S,m as C,t as w,u as T}from"./useGenerative-DhxjRRg5.js";import{t as E}from"./slidev/VClicks-DhU7uhQr.js";import{n as D,t as O}from"./StepButton-BHTS1uiY.js";import{t as k}from"./Plot2D-ifvwvNLG.js";import{t as A}from"./PlotLabel-BuFT7VP9.js";import{t as j}from"./PlotPoints-Cxs9FmbK.js";import{t as M}from"./interactive-Co6Mxz4S.js";import{t as N}from"./Slider-C2M0Z0oG.js";var P={class:`dl-cfg__out`},F={class:`dl-cfg__ref`},I={class:`dl-cfg__note`},L=.389,R=v(s({__name:`GuidanceLab`,setup(r){let{$slidev:i,$nav:s,$clicksContext:m,$clicks:g,$page:v,$renderContext:b,$frontmatter:E}=y(),{alphaBar:M,steps:R}=C(),z=u(0),B=u(1),V=x(36,8080),H=f(()=>{let e=V;for(let t=R-1;t>0;t--)e=e.map(e=>S(e,M[t],M[t-1],T(e,M[t],z.value,B.value)));return e}),U=f(()=>{let e=0,t=0,n=w[z.value];for(let r of H.value){let i=w.map(e=>(e.x-r.x)**2+(e.y-r.y)**2);i.indexOf(Math.min(...i))===z.value&&(e+=1),t+=Math.hypot(r.x-n.x,r.y-n.y)}return{onPrompt:e,total:H.value.length,spread:t/H.value.length}}),W=f(()=>H.value.map(e=>{let t=w.map(t=>(t.x-e.x)**2+(t.y-e.y)**2);return{...e,cls:t.indexOf(Math.min(...t))===z.value?`asked`:`other`}})),G=f(()=>w.map((e,t)=>({...e,cls:t===z.value?`asked`:`other`})));return(r,i)=>{let s=j,u=A,f=k,m=N,g=O,v=D;return e(),h(v,{"max-width":`44rem`},{controls:d(()=>[t(m,{modelValue:B.value,"onUpdate:modelValue":i[0]||=e=>B.value=e,label:`guidance scale w`,min:0,max:8,step:.25,precision:2},null,8,[`modelValue`]),(e(!0),l(p,null,a(_(w),(t,n)=>(e(),h(g,{key:n,label:`prompt: mode ${n+1}`,variant:n===z.value?`primary`:`ghost`,onClick:e=>z.value=n},null,8,[`label`,`variant`,`onClick`]))),128))]),readout:d(()=>[c(`div`,P,[c(`span`,null,[i[1]||=o(`on the mode you asked for: `,-1),c(`b`,null,n(U.value.onPrompt)+`/`+n(U.value.total),1)]),c(`span`,null,[i[2]||=o(`spread around it: `,-1),c(`b`,null,n(U.value.spread.toFixed(3)),1),c(`span`,F,`real data: `+n(L.toFixed(3)),1)]),c(`span`,I,n(B.value<.5?`w ≈ 0 — the prompt is barely being used`:B.value<=1.5?`w ≈ 1 — conditional sampling, and the spread the real data has`:`w > 1 — following a field no data ever had: on-prompt, wrong shape`),1)])]),default:d(()=>[t(f,{"x-domain":[-4,4],"y-domain":[-2.6,2.4],width:470,height:224,"x-ticks":[-4,-2,0,2,4],"y-ticks":[-2,0,2]},{default:d(()=>[t(s,{points:G.value,radius:14,colors:{asked:`var(--dl-accent-soft)`,other:`var(--dl-surface)`}},null,8,[`points`]),t(s,{points:W.value,radius:4.2,colors:{asked:`var(--dl-accent)`,other:`var(--dl-danger)`}},null,8,[`points`]),t(u,{at:[_(w)[z.value].x,_(w)[z.value].y],text:`asked for`,dy:-34,anchor:`middle`,dx:0,color:`var(--dl-accent-strong)`,bold:``},null,8,[`at`])]),_:1})]),_:1})}}}),[[`__scopeId`,`data-v-9b028896`]]),z={class:`mt-2 dl-callout`},B={__name:`slides.md__slidev_68`,setup(n){let{$slidev:a,$nav:s,$clicksContext:u,$clicks:f,$page:p,$renderContext:v,$frontmatter:x}=y();return u.setup(),(n,a)=>{let s=R,u=E,f=i(`click`);return e(),h(M,g(r(_(b)(_(x),67))),{aside:d(n=>[a[2]||=c(`p`,null,[o(`Here the "prompt" is simply `),c(`em`,null,`which mode do you want?`),o(` Drag `),c(`span`,{class:`katex`},[c(`span`,{class:`katex-mathml`},[c(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[c(`semantics`,null,[c(`mrow`,null,[c(`mi`,null,`w`)]),c(`annotation`,{encoding:`application/x-tex`},`w`)])])]),c(`span`,{class:`katex-html`,"aria-hidden":`true`},[c(`span`,{class:`katex-base`},[c(`span`,{class:`katex-strut`,style:{height:`0.4306em`}}),c(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0269em`}},`w`)])])]),o(` from 0 to 8.`)],-1),t(u,null,{default:d(()=>[...a[0]||=[c(`ul`,null,[c(`li`,null,[c(`span`,{class:`katex`},[c(`span`,{class:`katex-mathml`},[c(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[c(`semantics`,null,[c(`mrow`,null,[c(`mi`,null,`w`),c(`mo`,null,`=`),c(`mn`,null,`0`)]),c(`annotation`,{encoding:`application/x-tex`},`w = 0`)])])]),c(`span`,{class:`katex-html`,"aria-hidden":`true`},[c(`span`,{class:`katex-base`},[c(`span`,{class:`katex-strut`,style:{height:`0.4306em`}}),c(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0269em`}},`w`),c(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),c(`span`,{class:`mrel`},`=`),c(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),c(`span`,{class:`katex-base`},[c(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),c(`span`,{class:`mord`},`0`)])])]),o(` — ignored; samples on all three modes`)]),c(`li`,null,[c(`span`,{class:`katex`},[c(`span`,{class:`katex-mathml`},[c(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[c(`semantics`,null,[c(`mrow`,null,[c(`mi`,null,`w`),c(`mo`,null,`=`),c(`mn`,null,`1`)]),c(`annotation`,{encoding:`application/x-tex`},`w = 1`)])])]),c(`span`,{class:`katex-html`,"aria-hidden":`true`},[c(`span`,{class:`katex-base`},[c(`span`,{class:`katex-strut`,style:{height:`0.4306em`}}),c(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0269em`}},`w`),c(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),c(`span`,{class:`mrel`},`=`),c(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),c(`span`,{class:`katex-base`},[c(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),c(`span`,{class:`mord`},`1`)])])]),o(` — on-prompt, real data’s spread`)]),c(`li`,null,[c(`span`,{class:`katex`},[c(`span`,{class:`katex-mathml`},[c(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[c(`semantics`,null,[c(`mrow`,null,[c(`mi`,null,`w`),c(`mo`,null,`=`),c(`mn`,null,`7`)]),c(`annotation`,{encoding:`application/x-tex`},`w = 7`)])])]),c(`span`,{class:`katex-html`,"aria-hidden":`true`},[c(`span`,{class:`katex-base`},[c(`span`,{class:`katex-strut`,style:{height:`0.4306em`}}),c(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0269em`}},`w`),c(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),c(`span`,{class:`mrel`},`=`),c(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),c(`span`,{class:`katex-base`},[c(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),c(`span`,{class:`mord`},`7`)])])]),o(` — on-prompt, `),c(`strong`,null,`twice`),o(` that spread`)])],-1)]]),_:1}),m((e(),l(`div`,z,[...a[1]||=[c(`p`,null,[o(`Above `),c(`span`,{class:`katex`},[c(`span`,{class:`katex-mathml`},[c(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[c(`semantics`,null,[c(`mrow`,null,[c(`mi`,null,`w`),c(`mo`,null,`=`),c(`mn`,null,`1`)]),c(`annotation`,{encoding:`application/x-tex`},`w = 1`)])])]),c(`span`,{class:`katex-html`,"aria-hidden":`true`},[c(`span`,{class:`katex-base`},[c(`span`,{class:`katex-strut`,style:{height:`0.4306em`}}),c(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0269em`}},`w`),c(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),c(`span`,{class:`mrel`},`=`),c(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),c(`span`,{class:`katex-base`},[c(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),c(`span`,{class:`mord`},`1`)])])]),o(`, samples follow a direction no real data has.`)],-1)]])),[[f]])]),default:d(()=>[t(s)]),_:1},16)}}};export{B as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-CEGWPTw22.js b/lecture-07/assets/md-CEGWPTw22.js new file mode 100644 index 0000000000000000000000000000000000000000..eeda4cbbc0e89ff99626bc9f5d627d4080cdfec7 --- /dev/null +++ b/lecture-07/assets/md-CEGWPTw22.js @@ -0,0 +1 @@ +import{B as e,D as t,G as n,_ as r,b as i,et as a,tt as o,v as s,xt as c,yt as l}from"./modules/shiki-CJZsCeMT.js";import{n as u,t as d}from"./slidev/context-DB-9afGB.js";import{t as f}from"./default-CbJk4Idc.js";var p={class:`mt-2 flex justify-center`},m={viewBox:`0 0 660 190`,class:`dl-diagram`,role:`img`,"aria-label":`With G frozen, D is trained as a classifier; with D frozen, the gradient passes through D into G`},h={class:`mt-3 dl-callout`},g={__name:`slides.md__slidev_31`,setup(g){let{$slidev:_,$nav:v,$clicksContext:y,$clicks:b,$page:x,$renderContext:S,$frontmatter:C}=u();return y.setup(),(u,g)=>{let _=n(`click`);return e(),s(f,c(t(l(d)(l(C),30))),{default:a(()=>[g[16]||=r(`h1`,null,`Freeze one, look at the other`,-1),r(`div`,p,[(e(),i(`svg`,m,[g[1]||=r(`defs`,null,[r(`marker`,{id:`fz-arrow`,markerWidth:`7`,markerHeight:`7`,refX:`6`,refY:`3.5`,orient:`auto`},[r(`path`,{class:`dl-dg-head`,d:`M0 0 L7 3.5 L0 7 z`})])],-1),g[2]||=r(`text`,{class:`dl-dg-lab is-sm`,x:`160`,y:`16`,"text-anchor":`middle`},`freeze G, train D`,-1),g[3]||=r(`polygon`,{class:`dl-dg-net is-critic`,points:`20,50 110,62 110,88 20,100`},null,-1),g[4]||=r(`text`,{class:`dl-dg-in is-critic`,x:`56`,y:`80`,"text-anchor":`middle`},`G`,-1),g[5]||=r(`g`,{transform:`translate(68 68)`},[r(`path`,{class:`dl-dg-arrow`,style:{"stroke-width":`1.5`},d:`M2.5 7 V4 a3.5 3.5 0 0 1 7 0 V7`}),r(`rect`,{class:`dl-dg-bar`,x:`0`,y:`7`,width:`12`,height:`9`,rx:`1.5`})],-1),g[6]||=r(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#fz-arrow)`,d:`M112 75 H150`},null,-1),g[7]||=r(`polygon`,{class:`dl-dg-net`,points:`156,50 246,62 246,88 156,100`},null,-1),g[8]||=r(`text`,{class:`dl-dg-in`,x:`200`,y:`80`,"text-anchor":`middle`},`D`,-1),g[9]||=r(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#fz-arrow)`,d:`M248 75 H280`},null,-1),g[10]||=r(`text`,{class:`dl-dg-small`,x:`284`,y:`72`},`BCE`,-1),g[11]||=r(`path`,{class:`dl-dg-grad is-good`,"marker-end":`url(#fz-arrow)`,d:`M296 90 V120 H200 V104`},null,-1),g[12]||=r(`text`,{class:`dl-dg-small`,x:`160`,y:`146`,"text-anchor":`middle`},`G is just a second dataset — of fakes`,-1),g[13]||=r(`text`,{class:`dl-dg-small is-good`,x:`160`,y:`164`,"text-anchor":`middle`},`task: classify real vs fake · maximise V`,-1),g[14]||=r(`line`,{class:`dl-dg-split`,x1:`330`,y1:`6`,x2:`330`,y2:`184`},null,-1),o((e(),i(`g`,null,[...g[0]||=[r(`text`,{class:`dl-dg-lab is-sm`,x:`500`,y:`16`,"text-anchor":`middle`},`freeze D, train G`,-1),r(`polygon`,{class:`dl-dg-net`,points:`356,50 446,62 446,88 356,100`},null,-1),r(`text`,{class:`dl-dg-in`,x:`400`,y:`80`,"text-anchor":`middle`},`G`,-1),r(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#fz-arrow)`,d:`M448 75 H486`},null,-1),r(`polygon`,{class:`dl-dg-net is-critic`,points:`492,50 582,62 582,88 492,100`},null,-1),r(`text`,{class:`dl-dg-in is-critic`,x:`528`,y:`80`,"text-anchor":`middle`},`D`,-1),r(`g`,{transform:`translate(540 68)`},[r(`path`,{class:`dl-dg-arrow`,style:{"stroke-width":`1.5`},d:`M2.5 7 V4 a3.5 3.5 0 0 1 7 0 V7`}),r(`rect`,{class:`dl-dg-bar`,x:`0`,y:`7`,width:`12`,height:`9`,rx:`1.5`})],-1),r(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#fz-arrow)`,d:`M584 75 H612`},null,-1),r(`text`,{class:`dl-dg-small`,x:`614`,y:`72`},`“say real”`,-1),r(`path`,{class:`dl-dg-grad is-good`,"marker-end":`url(#fz-arrow)`,d:`M628 90 V124 H400 V104`},null,-1),r(`text`,{class:`dl-dg-small`,x:`500`,y:`146`,"text-anchor":`middle`},`D is just a fixed, differentiable loss`,-1),r(`text`,{class:`dl-dg-small is-good`,x:`500`,y:`164`,"text-anchor":`middle`},`gradient flows through D into G · minimise V`,-1)]])),[[_]])]))]),o((e(),i(`div`,h,[...g[15]||=[r(`p`,null,`Two ordinary supervised problems, alternated. That is all a training loop is.`,-1)]])),[[_]])]),_:1},16)}}};export{g as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-CIwCpV_y.js b/lecture-07/assets/md-CIwCpV_y.js new file mode 100644 index 0000000000000000000000000000000000000000..54069a27db293fba37777005a1907aed53a71cad --- /dev/null +++ b/lecture-07/assets/md-CIwCpV_y.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,H as r,S as i,_ as a,b as o,et as s,m as c,v as l,xt as u,yt as d}from"./modules/shiki-CJZsCeMT.js";import{n as f,t as p}from"./slidev/context-DB-9afGB.js";import{t as m}from"./PixelImage-C1NqQXMF.js";import{t as h}from"./default-CbJk4Idc.js";import{t as g}from"./slidev/VClicks-DhU7uhQr.js";var _={class:`mt-2 flex justify-center`},v={viewBox:`0 0 660 170`,class:`dl-diagram is-sm-h`,role:`img`,"aria-label":`A prompt is turned into a vector by a separate pretrained text encoder, and fed into the denoiser alongside the noisy image and the noise level`},y=[`x`],b={class:`dl-tight`},x={__name:`slides.md__slidev_65`,setup(x){let{$slidev:S,$nav:C,$clicksContext:w,$clicks:T,$page:E,$renderContext:D,$frontmatter:O}=f();return w.setup(),(f,x)=>{let S=m,C=g;return e(),l(h,u(n(d(p)(d(O),64))),{default:s(()=>[x[19]||=a(`h1`,null,`How the prompt gets in`,-1),x[20]||=a(`p`,null,[i(`The network already takes `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`t`)]),a(`annotation`,{encoding:`application/x-tex`},`t`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6151em`}}),a(`span`,{class:`mord mathnormal`},`t`)])])]),i(`. Give it a description of what you want, `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`c`)]),a(`annotation`,{encoding:`application/x-tex`},`c`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.4306em`}}),a(`span`,{class:`mord mathnormal`},`c`)])])]),i(`, too.`)],-1),a(`div`,_,[(e(),o(`svg`,v,[x[0]||=a(`defs`,null,[a(`marker`,{id:`pr-arrow`,markerWidth:`7`,markerHeight:`7`,refX:`6`,refY:`3.5`,orient:`auto`},[a(`path`,{class:`dl-dg-head`,d:`M0 0 L7 3.5 L0 7 z`})])],-1),x[1]||=a(`rect`,{class:`dl-dg-box`,x:`8`,y:`20`,width:`150`,height:`34`,rx:`6`},null,-1),x[2]||=a(`text`,{class:`dl-dg-lab is-sm`,x:`83`,y:`42`,"text-anchor":`middle`},`“a smiling face”`,-1),x[3]||=a(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#pr-arrow)`,d:`M160 37 H190`},null,-1),x[4]||=a(`rect`,{class:`dl-dg-box`,x:`194`,y:`14`,width:`120`,height:`46`,rx:`6`},null,-1),x[5]||=a(`text`,{class:`dl-dg-small`,x:`254`,y:`34`,"text-anchor":`middle`},`text encoder`,-1),x[6]||=a(`text`,{class:`dl-dg-small`,x:`254`,y:`50`,"text-anchor":`middle`},`(pretrained, frozen)`,-1),x[7]||=a(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#pr-arrow)`,d:`M316 37 H346`},null,-1),(e(),o(c,null,r(6,e=>a(`g`,{key:e},[a(`rect`,{class:`dl-dg-box is-accent`,x:350+(e-1)*14,y:`28`,width:`12`,height:`18`,rx:`2`},null,8,y)])),64)),x[8]||=a(`text`,{class:`dl-dg-lab is-sm`,x:`392`,y:`20`,"text-anchor":`middle`},`c — a vector`,-1),x[9]||=a(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#pr-arrow)`,d:`M392 50 V86`},null,-1),t(S,{"in-svg":``,x:120,y:92,size:64,pattern:`smiley`,noise:.55,seed:31,tone:`accent`}),x[10]||=a(`text`,{class:`dl-dg-small`,x:`152`,y:`168`,"text-anchor":`middle`},`xₜ`,-1),x[11]||=a(`text`,{class:`dl-dg-lab is-sm`,x:`230`,y:`128`,"text-anchor":`middle`},`t`,-1),x[12]||=a(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#pr-arrow)`,d:`M188 124 H320`},null,-1),x[13]||=a(`polygon`,{class:`dl-dg-net`,points:`324,92 392,112 392,140 324,160`},null,-1),x[14]||=a(`polygon`,{class:`dl-dg-net`,points:`460,92 392,112 392,140 460,160`},null,-1),x[15]||=a(`text`,{class:`dl-dg-in`,x:`392`,y:`168`,"text-anchor":`middle`},[i(`ε`),a(`tspan`,{"baseline-shift":`sub`,style:{"font-size":`10px`}},`θ`),i(`(xₜ, t, c)`)],-1),x[16]||=a(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#pr-arrow)`,d:`M462 126 H500`},null,-1),t(S,{"in-svg":``,x:506,y:94,size:64,pattern:`noise`,seed:31}),x[17]||=a(`text`,{class:`dl-dg-small`,x:`538`,y:`172`,"text-anchor":`middle`},`predicted noise`,-1)]))]),a(`div`,b,[t(C,null,{default:s(()=>[...x[18]||=[a(`ul`,null,[a(`li`,null,[i(`A `),a(`strong`,null,`separate`),i(` network turns the prompt into a vector `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`c`)]),a(`annotation`,{encoding:`application/x-tex`},`c`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.4306em`}}),a(`span`,{class:`mord mathnormal`},`c`)])])]),i(` — trained once, kept frozen`)]),a(`li`,null,[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`c`)]),a(`annotation`,{encoding:`application/x-tex`},`c`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.4306em`}}),a(`span`,{class:`mord mathnormal`},`c`)])])]),i(` goes into every block, just like `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`t`)]),a(`annotation`,{encoding:`application/x-tex`},`t`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6151em`}}),a(`span`,{class:`mord mathnormal`},`t`)])])]),i(` does`)]),a(`li`,null,[i(`Drop the caption `),a(`strong`,null,`10% of the time`),i(` in training, so one network learns both "with `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`c`)]),a(`annotation`,{encoding:`application/x-tex`},`c`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.4306em`}}),a(`span`,{class:`mord mathnormal`},`c`)])])]),i(`" and "without"`)])],-1)]]),_:1})])]),_:1},16)}}};export{x as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-CLhp5cP82.js b/lecture-07/assets/md-CLhp5cP82.js new file mode 100644 index 0000000000000000000000000000000000000000..aefea15e0f1d91159259aaaba6f2e0139df59a53 --- /dev/null +++ b/lecture-07/assets/md-CLhp5cP82.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,S as i,_ as a,b as o,et as s,tt as c,v as l,xt as u,yt as d}from"./modules/shiki-CJZsCeMT.js";import{n as f,t as p}from"./slidev/context-DB-9afGB.js";import{t as m}from"./FamilyGlyph-DyfZ67F0.js";import{t as h}from"./default-CbJk4Idc.js";var g={class:`grid grid-cols-4 gap-3 mt-4`},_={class:`dl-glyphcard`},v={class:`dl-glyphcard`},y={class:`dl-glyphcard`},b={class:`dl-glyphcard`},x={class:`mt-4 dl-callout`},S={__name:`slides.md__slidev_8`,setup(S){let{$slidev:C,$nav:w,$clicksContext:T,$clicks:E,$page:D,$renderContext:O,$frontmatter:k}=f();return T.setup(),(f,S)=>{let C=m,w=r(`click`);return e(),l(h,u(n(d(p)(d(k),7))),{default:s(()=>[S[13]||=a(`h1`,null,`Which loss can you even compute?`,-1),S[14]||=a(`p`,null,`"Look like real data" is not a formula you can take a gradient of. Each family finds a different loss.`,-1),a(`div`,g,[c((e(),o(`div`,_,[t(C,{kind:`ae`,size:70}),S[0]||=a(`strong`,null,`autoencoder`,-1),S[1]||=a(`span`,null,[i(`pixel error against `),a(`b`,null,`its own input`)],-1),S[2]||=a(`span`,{class:`dl-glyphcard__cost`},`not generative at all`,-1)])),[[w]]),c((e(),o(`div`,v,[t(C,{kind:`vae`,size:70}),S[3]||=a(`strong`,null,`VAE`,-1),S[4]||=a(`span`,null,[i(`pixel error `),a(`b`,null,`+ a pull`),i(` on the code`)],-1),S[5]||=a(`span`,{class:`dl-glyphcard__cost`},`blurry`,-1)])),[[w]]),c((e(),o(`div`,y,[t(C,{kind:`gan`,size:70}),S[6]||=a(`strong`,null,`GAN`,-1),S[7]||=a(`span`,null,[a(`b`,null,`a second network's`),i(` opinion`)],-1),S[8]||=a(`span`,{class:`dl-glyphcard__cost`},`sharp, and unstable`,-1)])),[[w]]),c((e(),o(`div`,b,[t(C,{kind:`diffusion`,size:70}),S[9]||=a(`strong`,null,`diffusion`,-1),S[10]||=a(`span`,null,[i(`pixel error on `),a(`b`,null,`noise`),i(`, at every level`)],-1),S[11]||=a(`span`,{class:`dl-glyphcard__cost`},`sharp and stable`,-1)])),[[w]])]),c((e(),o(`div`,x,[...S[12]||=[a(`p`,null,`The grey line on each card is its cost. The rest of the lecture explains why.`,-1)]])),[[w]])]),_:1},16)}}};export{S as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-CRPNBTPB.js b/lecture-07/assets/md-CRPNBTPB.js new file mode 100644 index 0000000000000000000000000000000000000000..795dfe694fa1a9d98bd5131b40dc2fc82f2ecf20 --- /dev/null +++ b/lecture-07/assets/md-CRPNBTPB.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,H as i,S as a,_ as o,b as s,et as c,m as l,tt as u,v as d,xt as f,yt as p}from"./modules/shiki-CJZsCeMT.js";import{n as m,t as h}from"./slidev/context-DB-9afGB.js";import{t as g}from"./default-CbJk4Idc.js";import{t as _}from"./Citation-CcKhBxpe.js";var v={class:`mt-1 flex justify-center`},y={viewBox:`0 0 660 150`,class:`dl-diagram`,role:`img`,"aria-label":`An autoencoder puts each example at a point, leaving gaps; a VAE gives each example a region, and the regions overlap to fill a unit Gaussian`},b=[`cx`],x=[`d`],S={class:`grid grid-cols-2 gap-10 mt-2 dl-tight`},C={class:`mt-2`},w={__name:`slides.md__slidev_19`,setup(w){let{$slidev:T,$nav:E,$clicksContext:D,$clicks:O,$page:k,$renderContext:A,$frontmatter:j}=m();return D.setup(),(m,w)=>{let T=_,E=r(`click`);return e(),d(g,f(n(p(h)(p(j),18))),{default:c(()=>[w[11]||=o(`h1`,null,`Two changes, and only two`,-1),w[12]||=o(`p`,null,`The variational autoencoder (VAE) is the autoencoder with the gaps fixed.`,-1),o(`div`,v,[(e(),s(`svg`,y,[w[4]||=o(`text`,{class:`dl-dg-lab is-sm`,x:`160`,y:`16`,"text-anchor":`middle`},`autoencoder — one point each`,-1),w[5]||=o(`line`,{class:`dl-dg-split`,x1:`10`,y1:`110`,x2:`310`,y2:`110`},null,-1),(e(),s(l,null,i([50,58,66,150,158,166,250,258,266],(e,t)=>o(`circle`,{key:`p${t}`,class:`dl-dg-dot`,cx:e,cy:`110`,r:`5`},null,8,b)),64)),w[6]||=o(`text`,{class:`dl-dg-small is-bad`,x:`108`,y:`100`,"text-anchor":`middle`},`gap`,-1),w[7]||=o(`text`,{class:`dl-dg-small is-bad`,x:`208`,y:`100`,"text-anchor":`middle`},`gap`,-1),w[8]||=o(`line`,{class:`dl-dg-split`,x1:`330`,y1:`6`,x2:`330`,y2:`146`},null,-1),u((e(),s(`g`,null,[w[0]||=o(`text`,{class:`dl-dg-lab is-sm`,x:`500`,y:`16`,"text-anchor":`middle`},`VAE — a region each, pulled to N(0, 1)`,-1),w[1]||=o(`line`,{class:`dl-dg-split`,x1:`350`,y1:`110`,x2:`650`,y2:`110`},null,-1),w[2]||=o(`path`,{class:`dl-dg-line is-muted`,style:{"stroke-dasharray":`5 4`},d:`M350 110 C 440 110, 450 30, 500 30 C 550 30, 560 110, 650 110`},null,-1),(e(),s(l,null,i([440,500,560],(e,t)=>o(`path`,{key:`r${t}`,class:`dl-dg-fill`,d:`M${e-50} 110 C ${e-25} 110, ${e-20} 55, ${e} 55 C ${e+20} 55, ${e+25} 110, ${e+50} 110 Z`},null,8,x)),64)),w[3]||=o(`text`,{class:`dl-dg-small`,x:`500`,y:`136`,"text-anchor":`middle`},`regions overlap → no gaps`,-1)])),[[E]])]))]),o(`div`,S,[u((e(),s(`div`,null,[...w[9]||=[o(`p`,null,[o(`strong`,null,`1 — encode a distribution.`),a(` The encoder outputs a mean `),o(`span`,{class:`katex`},[o(`span`,{class:`katex-mathml`},[o(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[o(`semantics`,null,[o(`mrow`,null,[o(`mi`,{mathvariant:`bold-italic`},`μ`)]),o(`annotation`,{encoding:`application/x-tex`},`\\boldsymbol\\mu`)])])]),o(`span`,{class:`katex-html`,"aria-hidden":`true`},[o(`span`,{class:`katex-base`},[o(`span`,{class:`katex-strut`,style:{height:`0.6389em`,"vertical-align":`-0.1944em`}}),o(`span`,{class:`mord`},[o(`span`,{class:`mord`},[o(`span`,{class:`mord boldsymbol`},`μ`)])])])])]),o(`strong`,null,`and`),a(` a spread `),o(`span`,{class:`katex`},[o(`span`,{class:`katex-mathml`},[o(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[o(`semantics`,null,[o(`mrow`,null,[o(`mi`,{mathvariant:`bold-italic`},`σ`)]),o(`annotation`,{encoding:`application/x-tex`},`\\boldsymbol\\sigma`)])])]),o(`span`,{class:`katex-html`,"aria-hidden":`true`},[o(`span`,{class:`katex-base`},[o(`span`,{class:`katex-strut`,style:{height:`0.4444em`}}),o(`span`,{class:`mord`},[o(`span`,{class:`mord`},[o(`span`,{class:`mord boldsymbol`,style:{"margin-right":`0.037em`}},`σ`)])])])])]),a(`, not a point.`)],-1)]])),[[E]]),u((e(),s(`div`,null,[...w[10]||=[o(`p`,null,[o(`strong`,null,[a(`2 — pull it toward `),o(`span`,{class:`katex`},[o(`span`,{class:`katex-mathml`},[o(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[o(`semantics`,null,[o(`mrow`,null,[o(`mi`,{mathvariant:`script`},`N`),o(`mo`,{stretchy:`false`},`(`),o(`mn`,{mathvariant:`bold`},`0`),o(`mo`,{separator:`true`},`,`),o(`mi`,null,`I`),o(`mo`,{stretchy:`false`},`)`)]),o(`annotation`,{encoding:`application/x-tex`},`\\mathcal{N}(\\mathbf{0}, I)`)])])]),o(`span`,{class:`katex-html`,"aria-hidden":`true`},[o(`span`,{class:`katex-base`},[o(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),o(`span`,{class:`mord mathcal`,style:{"margin-right":`0.1474em`}},`N`),o(`span`,{class:`mopen`},`(`),o(`span`,{class:`mord mathbf`},`0`),o(`span`,{class:`mpunct`},`,`),o(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),o(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0785em`}},`I`),o(`span`,{class:`mclose`},`)`)])])]),a(`.`)]),a(` A penalty keeps every region close to the distribution we sample from later (the `),o(`em`,null,`prior`),a(`).`)],-1)]])),[[E]])]),o(`div`,C,[t(T,{source:`Kingma & Welling, Auto-Encoding Variational Bayes (2013)`,url:`https://arxiv.org/abs/1312.6114`})])]),_:1},16)}}};export{w as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-CS3xRmO_2.js b/lecture-07/assets/md-CS3xRmO_2.js new file mode 100644 index 0000000000000000000000000000000000000000..96bfba844f58c37127d43851a8fd6f93b54aedf1 --- /dev/null +++ b/lecture-07/assets/md-CS3xRmO_2.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,H as i,S as a,_ as o,b as s,et as c,m as l,tt as u,v as d,xt as f,yt as p}from"./modules/shiki-CJZsCeMT.js";import{n as m,t as h}from"./slidev/context-DB-9afGB.js";import{t as g}from"./default-CbJk4Idc.js";import{t as _}from"./slidev/VClicks-DhU7uhQr.js";var v={class:`grid grid-cols-[1.3fr_1fr] gap-6 mt-1 items-center`},y={viewBox:`0 0 400 220`,class:`dl-diagram`,role:`img`,"aria-label":`A U-Net: convolutions shrink the image on the left, upsampling grows it on the right, and skip connections copy detail across`},b=[`x`,`y`,`height`],x=[`x`,`y`,`height`],S=[`d`],C={class:`dl-tight`},w={class:`mt-3 dl-secondary`},T={__name:`slides.md__slidev_70`,setup(T){let{$slidev:E,$nav:D,$clicksContext:O,$clicks:k,$page:A,$renderContext:j,$frontmatter:M}=m();return O.setup(),(m,T)=>{let E=_,D=r(`click`);return e(),d(g,f(n(p(h)(p(M),69))),{default:c(()=>[T[9]||=o(`h1`,null,`What the denoiser is made of`,-1),T[10]||=o(`p`,null,[o(`span`,{class:`katex`},[o(`span`,{class:`katex-mathml`},[o(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[o(`semantics`,null,[o(`mrow`,null,[o(`msub`,null,[o(`mi`,{mathvariant:`bold-italic`},`ϵ`),o(`mi`,null,`θ`)])]),o(`annotation`,{encoding:`application/x-tex`},`\\boldsymbol\\epsilon_\\theta`)])])]),o(`span`,{class:`katex-html`,"aria-hidden":`true`},[o(`span`,{class:`katex-base`},[o(`span`,{class:`katex-strut`,style:{height:`0.5944em`,"vertical-align":`-0.15em`}}),o(`span`,{class:`mord`},[o(`span`,{class:`mord`},[o(`span`,{class:`mord`},[o(`span`,{class:`mord boldsymbol`},`ϵ`)])]),o(`span`,{class:`msupsub`},[o(`span`,{class:`vlist-t vlist-t2`},[o(`span`,{class:`vlist-r`},[o(`span`,{class:`vlist`,style:{height:`0.3361em`}},[o(`span`,{style:{top:`-2.55em`,"margin-right":`0.05em`}},[o(`span`,{class:`pstrut`,style:{height:`2.7em`}}),o(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[o(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0278em`}},`θ`)])])]),o(`span`,{class:`vlist-s`},`​`)]),o(`span`,{class:`vlist-r`},[o(`span`,{class:`vlist`,style:{height:`0.15em`}},[o(`span`)])])])])])])])]),a(` takes an image and returns one. The classic choice is a CNN shaped like a `),o(`strong`,null,`U`),a(`.`)],-1),o(`div`,v,[o(`div`,null,[(e(),s(`svg`,y,[T[0]||=o(`defs`,null,[o(`marker`,{id:`un-arrow`,markerWidth:`7`,markerHeight:`7`,refX:`6`,refY:`3.5`,orient:`auto`},[o(`path`,{class:`dl-dg-head`,d:`M0 0 L7 3.5 L0 7 z`})])],-1),(e(),s(l,null,i([[20,20,56],[60,80,40],[100,140,26]],(e,t)=>o(`g`,{key:`l${t}`},[o(`rect`,{class:`dl-dg-box`,x:e[0],y:e[1],width:`30`,height:e[2],rx:`3`},null,8,b),o(`rect`,{class:`dl-dg-box`,x:350-e[0],y:e[1],width:`30`,height:e[2],rx:`3`},null,8,x),o(`path`,{class:`dl-dg-grad is-good`,"marker-end":`url(#un-arrow)`,d:`M${e[0]+32} ${e[1]+e[2]/2} H${346-e[0]}`},null,8,S)])),64)),T[1]||=o(`rect`,{class:`dl-dg-box is-accent`,x:`185`,y:`180`,width:`30`,height:`18`,rx:`3`},null,-1),T[2]||=o(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#un-arrow)`,d:`M36 78 L66 96 M76 122 L106 138 M116 168 L182 188`},null,-1),T[3]||=o(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#un-arrow)`,d:`M218 188 L276 168 M286 138 L316 122 M326 96 L352 80`},null,-1),T[4]||=o(`text`,{class:`dl-dg-small`,x:`40`,y:`214`},`down: conv + stride`,-1),T[5]||=o(`text`,{class:`dl-dg-small`,x:`236`,y:`214`},`up: upsample + conv`,-1),T[6]||=o(`text`,{class:`dl-dg-small is-good`,x:`200`,y:`14`,"text-anchor":`middle`},`skips copy detail across`,-1)]))]),o(`div`,C,[t(E,null,{default:c(()=>[...T[7]||=[o(`ul`,null,[o(`li`,null,[o(`strong`,null,`Down`),a(`: the week-4 CNN`)]),o(`li`,null,[o(`strong`,null,`Up`),a(`: upsample-then-convolve, from section 04`)]),o(`li`,null,[o(`strong`,null,`Skip connections`),a(` carry detail across that the narrow bottom would lose`)])],-1)]]),_:1}),u((e(),s(`div`,w,[...T[8]||=[o(`p`,null,[a(`The biggest 2026 models swap the U-Net for a `),o(`em`,null,`transformer`),a(` — a different architecture. The objective does not change.`)],-1)]])),[[D]])])])]),_:1},16)}}};export{T as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-CSRyO5NG2.js b/lecture-07/assets/md-CSRyO5NG2.js new file mode 100644 index 0000000000000000000000000000000000000000..887239f8e4f7fd66842bd4eb33932518cfa70d49 --- /dev/null +++ b/lecture-07/assets/md-CSRyO5NG2.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,S as i,_ as a,b as o,et as s,tt as c,v as l,xt as u,yt as d}from"./modules/shiki-CJZsCeMT.js";import{n as f,t as p}from"./slidev/context-DB-9afGB.js";import{t as m}from"./FamilyGlyph-DyfZ67F0.js";import{t as h}from"./default-CbJk4Idc.js";var g={class:`grid grid-cols-4 gap-3 mt-3`},_={class:`dl-glyphcard`},v={class:`dl-glyphcard`},y={class:`dl-glyphcard`},b={class:`dl-glyphcard`},x={class:`grid grid-cols-2 gap-8 mt-3 dl-tight`},S={class:`mt-3 dl-callout`},C={__name:`slides.md__slidev_76`,setup(C){let{$slidev:w,$nav:T,$clicksContext:E,$clicks:D,$page:O,$renderContext:k,$frontmatter:A}=f();return E.setup(),(f,C)=>{let w=m,T=r(`click`);return e(),l(h,u(n(d(p)(d(A),75))),{default:s(()=>[C[11]||=a(`h1`,null,`Where that leaves us`,-1),C[12]||=a(`p`,null,[i(`All of today: `),a(`strong`,null,`sample something simple, learn a map`),i(`. Four ways to train the map:`)],-1),a(`div`,g,[c((e(),o(`div`,_,[t(w,{kind:`ae`,size:64}),C[0]||=a(`strong`,null,`autoencoder`,-1),C[1]||=a(`span`,null,`a map, and nothing to feed it`,-1)])),[[T]]),c((e(),o(`div`,v,[t(w,{kind:`vae`,size:64}),C[2]||=a(`strong`,null,`VAE`,-1),C[3]||=a(`span`,null,`adds a pull toward N(0, I) — costs sharpness`,-1)])),[[T]]),c((e(),o(`div`,y,[t(w,{kind:`gan`,size:64}),C[4]||=a(`strong`,null,`GAN`,-1),C[5]||=a(`span`,null,`the loss is a network — sharp and unstable`,-1)])),[[T]]),c((e(),o(`div`,b,[t(w,{kind:`diffusion`,size:64}),C[6]||=a(`strong`,null,`diffusion`,-1),C[7]||=a(`span`,null,`a regression again — the curve goes down`,-1)])),[[T]])]),a(`div`,x,[c((e(),o(`div`,null,[...C[8]||=[a(`p`,null,[i(`A trained discriminator `),a(`strong`,null,`measures a divergence`),i(`. That is what `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`msup`,null,[a(`mi`,null,`D`),a(`mo`,null,`∗`)])]),a(`annotation`,{encoding:`application/x-tex`},`D^*`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6887em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0278em`}},`D`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.6887em`}},[a(`span`,{style:{top:`-3.063em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mbin mtight`},`∗`)])])])])])])])])])]),i(` meant.`)],-1)]])),[[T]]),c((e(),o(`div`,null,[...C[9]||=[a(`p`,null,[i(`Which divergence you pick decides what `),a(`em`,null,`worse`),i(` means. JS cannot see distance.`)],-1)]])),[[T]])]),c((e(),o(`div`,S,[...C[10]||=[a(`p`,null,`Four families, one difference: which loss you could actually compute.`,-1)]])),[[T]])]),_:1},16)}}};export{C as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-CjNK_7MS2.js b/lecture-07/assets/md-CjNK_7MS2.js new file mode 100644 index 0000000000000000000000000000000000000000..358c5b1e68026f239652f894790e7929b3b0fa13 --- /dev/null +++ b/lecture-07/assets/md-CjNK_7MS2.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,S as i,_ as a,b as o,et as s,tt as c,v as l,xt as u,yt as d}from"./modules/shiki-CJZsCeMT.js";import{n as f,t as p}from"./slidev/context-DB-9afGB.js";import{t as m}from"./PixelImage-C1NqQXMF.js";import{t as h}from"./default-CbJk4Idc.js";var g={class:`dl-pixrow mt-5`},_={class:`flex flex-col gap-1`},v={class:`flex flex-col gap-1`},y={class:`grid grid-cols-3 gap-4 mt-3 dl-tight text-center`},b={class:`mt-3 dl-callout`},x={__name:`slides.md__slidev_7`,setup(x){let{$slidev:S,$nav:C,$clicksContext:w,$clicks:T,$page:E,$renderContext:D,$frontmatter:O}=f();return w.setup(),(f,x)=>{let S=m,C=r(`click`);return e(),l(h,u(n(d(p)(d(O),6))),{default:s(()=>[x[7]||=a(`h1`,null,`The deal every model today makes`,-1),x[8]||=a(`div`,{class:`dl-prompt mt-1`},[a(`p`,null,`a simple distribution you can sample from, and a learned map from it to the data`)],-1),a(`div`,g,[a(`div`,_,[t(S,{pattern:`noise`,seed:3,size:54}),t(S,{pattern:`noise`,seed:4,size:54}),t(S,{pattern:`noise`,seed:5,size:54})]),x[0]||=a(`span`,{class:`dl-op`},`→`,-1),x[1]||=a(`svg`,{viewBox:`0 0 150 120`,width:`150`,height:`120`,role:`img`,"aria-label":`the network g`},[a(`polygon`,{class:`dl-dg-net`,points:`6,34 144,8 144,112 6,86`}),a(`text`,{class:`dl-dg-in`,x:`75`,y:`66`,"text-anchor":`middle`},[i(`network g`),a(`tspan`,{"baseline-shift":`sub`,style:{"font-size":`10px`}},`θ`)])],-1),x[2]||=a(`span`,{class:`dl-op`},`→`,-1),a(`div`,v,[t(S,{pattern:`smiley`,size:54,tone:`accent`}),t(S,{pattern:`heart`,size:54,tone:`accent`}),t(S,{pattern:`star`,size:54,tone:`accent`})])]),a(`div`,y,[c((e(),o(`div`,null,[...x[3]||=[a(`p`,null,[a(`strong`,null,`1.`),i(` Draw `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,{mathvariant:`bold`},`z`),a(`mo`,null,`∼`),a(`mi`,{mathvariant:`script`},`N`),a(`mo`,{stretchy:`false`},`(`),a(`mn`,{mathvariant:`bold`},`0`),a(`mo`,{separator:`true`},`,`),a(`mi`,null,`I`),a(`mo`,{stretchy:`false`},`)`)]),a(`annotation`,{encoding:`application/x-tex`},`\\mathbf{z} \\sim \\mathcal{N}(\\mathbf{0}, I)`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.4444em`}}),a(`span`,{class:`mord mathbf`},`z`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`∼`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),a(`span`,{class:`mord mathcal`,style:{"margin-right":`0.1474em`}},`N`),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord mathbf`},`0`),a(`span`,{class:`mpunct`},`,`),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0785em`}},`I`),a(`span`,{class:`mclose`},`)`)])])]),i(` — free`)],-1)]])),[[C]]),c((e(),o(`div`,null,[...x[4]||=[a(`p`,null,[a(`strong`,null,`2.`),i(` Push it through `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`msub`,null,[a(`mi`,null,`g`),a(`mi`,null,`θ`)])]),a(`annotation`,{encoding:`application/x-tex`},`g_\\theta`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.625em`,"vertical-align":`-0.1944em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0359em`}},`g`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.3361em`}},[a(`span`,{style:{top:`-2.55em`,"margin-left":`-0.0359em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0278em`}},`θ`)])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.15em`}},[a(`span`)])])])])])])])])],-1)]])),[[C]]),c((e(),o(`div`,null,[...x[5]||=[a(`p`,null,[a(`strong`,null,`3.`),i(` Call the result a sample`)],-1)]])),[[C]])]),c((e(),o(`div`,b,[...x[6]||=[a(`p`,null,[i(`The VAE (variational autoencoder), the GAN (generative adversarial network) and diffusion all do this — the autoencoder tries and fails. They differ only in `),a(`strong`,null,[i(`how `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`msub`,null,[a(`mi`,null,`g`),a(`mi`,null,`θ`)])]),a(`annotation`,{encoding:`application/x-tex`},`g_\\theta`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.625em`,"vertical-align":`-0.1944em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0359em`}},`g`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.3361em`}},[a(`span`,{style:{top:`-2.55em`,"margin-left":`-0.0359em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0278em`}},`θ`)])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.15em`}},[a(`span`)])])])])])])])]),i(` is trained`)]),i(`.`)],-1)]])),[[C]])]),_:1},16)}}};export{x as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-ClXDOunI.js b/lecture-07/assets/md-ClXDOunI.js new file mode 100644 index 0000000000000000000000000000000000000000..ce5354edf44b8d7142c040c3292ea04ba8f419bd --- /dev/null +++ b/lecture-07/assets/md-ClXDOunI.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,S as i,_ as a,b as o,et as s,tt as c,v as l,xt as u,yt as d}from"./modules/shiki-CJZsCeMT.js";import{n as f,t as p}from"./slidev/context-DB-9afGB.js";import{t as m}from"./PixelImage-C1NqQXMF.js";import{t as h}from"./default-CbJk4Idc.js";var g={class:`mt-2 flex justify-center`},_={viewBox:`0 0 640 170`,class:`dl-diagram`,role:`img`,"aria-label":`An encoder narrows an input image to a small code, a decoder widens it back into an image`},v={class:`mt-2 dl-callout`},y={__name:`slides.md__slidev_11`,setup(y){let{$slidev:b,$nav:x,$clicksContext:S,$clicks:C,$page:w,$renderContext:T,$frontmatter:E}=f();return S.setup(),(f,y)=>{let b=m,x=r(`click`);return e(),l(h,u(n(d(p)(d(E),10))),{default:s(()=>[y[17]||=a(`h1`,null,`The autoencoder`,-1),y[18]||=a(`p`,null,[i(`Two networks, back to back, trained to output `),a(`strong`,null,`their own input`),i(`.`)],-1),a(`div`,g,[(e(),o(`svg`,_,[y[0]||=a(`defs`,null,[a(`marker`,{id:`ae-arrow`,markerWidth:`7`,markerHeight:`7`,refX:`6`,refY:`3.5`,orient:`auto`},[a(`path`,{class:`dl-dg-head`,d:`M0 0 L7 3.5 L0 7 z`})])],-1),t(b,{"in-svg":``,x:4,y:40,size:66,pattern:`smiley`}),y[1]||=a(`text`,{class:`dl-dg-lab`,x:`37`,y:`30`,"text-anchor":`middle`},`x`,-1),y[2]||=a(`polygon`,{class:`dl-dg-net`,points:`96,30 210,58 210,92 96,120`},null,-1),y[3]||=a(`text`,{class:`dl-dg-in`,x:`150`,y:`80`,"text-anchor":`middle`},`encoder f`,-1),y[4]||=a(`rect`,{class:`dl-dg-box is-accent`,x:`248`,y:`58`,width:`36`,height:`34`,rx:`4`},null,-1),y[5]||=a(`text`,{class:`dl-dg-lab`,x:`266`,y:`80`,"text-anchor":`middle`},`z`,-1),y[6]||=a(`polygon`,{class:`dl-dg-net`,points:`322,58 436,30 436,120 322,92`},null,-1),y[7]||=a(`text`,{class:`dl-dg-in`,x:`380`,y:`80`,"text-anchor":`middle`},`decoder g`,-1),t(b,{"in-svg":``,x:466,y:40,size:66,pattern:`smiley`,noise:.06,seed:21,tone:`accent`}),y[8]||=a(`text`,{class:`dl-dg-lab`,x:`499`,y:`30`,"text-anchor":`middle`},`x̂`,-1),y[9]||=a(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#ae-arrow)`,d:`M72 75 H92`},null,-1),y[10]||=a(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#ae-arrow)`,d:`M212 75 H244`},null,-1),y[11]||=a(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#ae-arrow)`,d:`M286 75 H318`},null,-1),y[12]||=a(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#ae-arrow)`,d:`M438 75 H462`},null,-1),y[13]||=a(`path`,{class:`dl-dg-loss`,d:`M37 112 V150 H499 V112`},null,-1),y[14]||=a(`text`,{class:`dl-dg-small`,x:`266`,y:`146`,"text-anchor":`middle`},`loss compares these two pictures`,-1),y[15]||=a(`text`,{class:`dl-dg-small`,x:`266`,y:`50`,"text-anchor":`middle`},`the bottleneck`,-1)]))]),c((e(),o(`div`,v,[...y[16]||=[a(`p`,null,[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,{mathvariant:`bold`},`z`),a(`mo`,null,`=`),a(`mi`,null,`f`),a(`mo`,{stretchy:`false`},`(`),a(`mi`,{mathvariant:`bold`},`x`),a(`mo`,{stretchy:`false`},`)`)]),a(`annotation`,{encoding:`application/x-tex`},`\\mathbf{z} = f(\\mathbf{x})`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.4444em`}}),a(`span`,{class:`mord mathbf`},`z`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`=`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.1076em`}},`f`),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord mathbf`},`x`),a(`span`,{class:`mclose`},`)`)])])]),i(`, `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mover`,{accent:`true`},[a(`mi`,{mathvariant:`bold`},`x`),a(`mo`,null,`^`)]),a(`mo`,null,`=`),a(`mi`,null,`g`),a(`mo`,{stretchy:`false`},`(`),a(`mi`,{mathvariant:`bold`},`z`),a(`mo`,{stretchy:`false`},`)`)]),a(`annotation`,{encoding:`application/x-tex`},`\\hat{\\mathbf{x}} = g(\\mathbf{z})`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.7079em`}}),a(`span`,{class:`mord katex-accent`},[a(`span`,{class:`vlist-t`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.7079em`}},[a(`span`,{style:{top:`-3em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`mord mathbf`},`x`)]),a(`span`,{style:{top:`-3.0134em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`accent-body`,style:{left:`-0.25em`}},[a(`span`,{class:`mord`},`^`)])])])])])]),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`=`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0359em`}},`g`),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord mathbf`},`z`),a(`span`,{class:`mclose`},`)`)])])]),i(`, and the loss is `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mo`,{stretchy:`false`},`∥`),a(`mi`,{mathvariant:`bold`},`x`),a(`mo`,null,`−`),a(`mover`,{accent:`true`},[a(`mi`,{mathvariant:`bold`},`x`),a(`mo`,null,`^`)]),a(`msup`,null,[a(`mo`,{stretchy:`false`},`∥`),a(`mn`,null,`2`)])]),a(`annotation`,{encoding:`application/x-tex`},`\\lVert \\mathbf{x} - \\hat{\\mathbf{x}} \\rVert^2`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),a(`span`,{class:`mopen`},`∥`),a(`span`,{class:`mord mathbf`},`x`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),a(`span`,{class:`mbin`},`−`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1.0641em`,"vertical-align":`-0.25em`}}),a(`span`,{class:`mord katex-accent`},[a(`span`,{class:`vlist-t`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.7079em`}},[a(`span`,{style:{top:`-3em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`mord mathbf`},`x`)]),a(`span`,{style:{top:`-3.0134em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`accent-body`,style:{left:`-0.25em`}},[a(`span`,{class:`mord`},`^`)])])])])])]),a(`span`,{class:`mclose`},[a(`span`,{class:`mclose`},`∥`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.8141em`}},[a(`span`,{style:{top:`-3.063em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mtight`},`2`)])])])])])])])])])]),i(`. `),a(`strong`,null,`The label is the input.`)],-1)]])),[[x]])]),_:1},16)}}};export{y as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-CnDSOeCk.js b/lecture-07/assets/md-CnDSOeCk.js new file mode 100644 index 0000000000000000000000000000000000000000..69c6928199066069e21235d99324867170fdc909 --- /dev/null +++ b/lecture-07/assets/md-CnDSOeCk.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,_ as r,et as i,v as a,xt as o,yt as s}from"./modules/shiki-CJZsCeMT.js";import{n as c,t as l}from"./slidev/context-DB-9afGB.js";import{t as u}from"./FamilyGlyph-DyfZ67F0.js";import{t as d}from"./section-CqA-0pFf.js";var f={class:`dl-side-glyph`},p={__name:`slides.md__slidev_26`,setup(p){let{$slidev:m,$nav:h,$clicksContext:g,$clicks:_,$page:v,$renderContext:y,$frontmatter:b}=c();return g.setup(),(c,p)=>{let m=u;return e(),a(d,o(n(s(l)(s(b),25))),{default:i(()=>[p[0]||=r(`h1`,null,`The adversarial game`,-1),r(`div`,f,[t(m,{kind:`gan`,size:190})])]),_:1},16)}}};export{p as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-CneeG9Dm.js b/lecture-07/assets/md-CneeG9Dm.js new file mode 100644 index 0000000000000000000000000000000000000000..825d3363320a8f61bcd3a59b210da37057f8ffc1 --- /dev/null +++ b/lecture-07/assets/md-CneeG9Dm.js @@ -0,0 +1,23 @@ +import{B as e,C as t,D as n,S as r,_ as i,et as a,v as o,xt as s,yt as c}from"./modules/shiki-CJZsCeMT.js";import{n as l,t as u}from"./slidev/context-DB-9afGB.js";import{t as d}from"./PixelImage-C1NqQXMF.js";import{t as f}from"./default-CbJk4Idc.js";import{t as p}from"./slidev/VClicks-DhU7uhQr.js";import{t as m}from"./slidev/KaTexBlockWrapper-CffXlnxL.js";var h={class:`dl-math-sm`},g={class:`dl-pixrow mt-2`},_={class:`dl-tight mt-3`},v={__name:`slides.md__slidev_57`,setup(v){let{$slidev:y,$nav:b,$clicksContext:x,$clicks:S,$page:C,$renderContext:w,$frontmatter:T}=l();return x.setup(),(l,v)=>{let y=m,b=d,x=p;return e(),o(f,s(n(c(u)(c(T),56))),{default:a(()=>[v[5]||=i(`h1`,null,`The forward process, in one step`,-1),v[6]||=i(`p`,null,`Adding Gaussian noise many times equals adding it once, with the right amount:`,-1),i(`div`,h,[t(y,{ranges:[]},{default:a(()=>[...v[0]||=[i(`p`,null,[i(`span`,{class:`katex-display`},[i(`span`,{class:`katex`},[i(`span`,{class:`katex-mathml`},[i(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`,display:`block`},[i(`semantics`,null,[i(`mrow`,null,[i(`msub`,null,[i(`mi`,{mathvariant:`bold`},`x`),i(`mi`,null,`t`)]),i(`mtext`,null,`  `),i(`mo`,null,`=`),i(`mtext`,null,`  `),i(`msqrt`,null,[i(`msub`,null,[i(`mover`,{accent:`true`},[i(`mi`,null,`α`),i(`mo`,null,`ˉ`)]),i(`mi`,null,`t`)])]),i(`mtext`,null,` `),i(`msub`,null,[i(`mi`,{mathvariant:`bold`},`x`),i(`mn`,null,`0`)]),i(`mtext`,null,`  `),i(`mo`,null,`+`),i(`mtext`,null,`  `),i(`msqrt`,null,[i(`mrow`,null,[i(`mn`,null,`1`),i(`mo`,null,`−`),i(`msub`,null,[i(`mover`,{accent:`true`},[i(`mi`,null,`α`),i(`mo`,null,`ˉ`)]),i(`mi`,null,`t`)])])]),i(`mtext`,null,` `),i(`mi`,{mathvariant:`bold-italic`},`ϵ`),i(`mo`,{separator:`true`},`,`),i(`mspace`,{width:`2em`}),i(`mi`,{mathvariant:`bold-italic`},`ϵ`),i(`mo`,null,`∼`),i(`mi`,{mathvariant:`script`},`N`),i(`mo`,{stretchy:`false`},`(`),i(`mn`,{mathvariant:`bold`},`0`),i(`mo`,{separator:`true`},`,`),i(`mi`,null,`I`),i(`mo`,{stretchy:`false`},`)`)]),i(`annotation`,{encoding:`application/x-tex`},`\\mathbf{x}_t \\;=\\; \\sqrt{\\bar\\alpha_t}\\,\\mathbf{x}_0 \\;+\\; \\sqrt{1 - \\bar\\alpha_t}\\,\\boldsymbol\\epsilon, \\qquad \\boldsymbol\\epsilon \\sim \\mathcal{N}(\\mathbf{0}, I) `)])])]),i(`span`,{class:`katex-html`,"aria-hidden":`true`},[i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`0.5944em`,"vertical-align":`-0.15em`}}),i(`span`,{class:`mord`},[i(`span`,{class:`mord mathbf`},`x`),i(`span`,{class:`msupsub`},[i(`span`,{class:`vlist-t vlist-t2`},[i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.2806em`}},[i(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[i(`span`,{class:`pstrut`,style:{height:`2.7em`}}),i(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[i(`span`,{class:`mord mathnormal mtight`},`t`)])])]),i(`span`,{class:`vlist-s`},`​`)]),i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.15em`}},[i(`span`)])])])])]),i(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),i(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),i(`span`,{class:`mrel`},`=`),i(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),i(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`1.04em`,"vertical-align":`-0.1972em`}}),i(`span`,{class:`mord sqrt`},[i(`span`,{class:`vlist-t vlist-t2`},[i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.8428em`}},[i(`span`,{class:`svg-align`,style:{top:`-3em`}},[i(`span`,{class:`pstrut`,style:{height:`3em`}}),i(`span`,{class:`mord`,style:{"padding-left":`0.833em`}},[i(`span`,{class:`mord`},[i(`span`,{class:`mord katex-accent`},[i(`span`,{class:`vlist-t`},[i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.5678em`}},[i(`span`,{style:{top:`-3em`}},[i(`span`,{class:`pstrut`,style:{height:`3em`}}),i(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0037em`}},`α`)]),i(`span`,{style:{top:`-3em`}},[i(`span`,{class:`pstrut`,style:{height:`3em`}}),i(`span`,{class:`accent-body`,style:{left:`-0.2222em`}},[i(`span`,{class:`mord`},`ˉ`)])])])])])]),i(`span`,{class:`msupsub`},[i(`span`,{class:`vlist-t vlist-t2`},[i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.2806em`}},[i(`span`,{style:{top:`-2.55em`,"margin-left":`-0.0037em`,"margin-right":`0.05em`}},[i(`span`,{class:`pstrut`,style:{height:`2.7em`}}),i(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[i(`span`,{class:`mord mathnormal mtight`},`t`)])])]),i(`span`,{class:`vlist-s`},`​`)]),i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.15em`}},[i(`span`)])])])])])])]),i(`span`,{style:{top:`-2.8028em`}},[i(`span`,{class:`pstrut`,style:{height:`3em`}}),i(`span`,{class:`hide-tail`,style:{"min-width":`0.853em`,height:`1.08em`}},[i(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`400em`,height:`1.08em`,viewBox:`0 0 400000 1080`,preserveAspectRatio:`xMinYMin slice`},[i(`path`,{d:`M95,702 +c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 +c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 +c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 +s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 +c69,-144,104.5,-217.7,106.5,-221 +l0 -0 +c5.3,-9.3,12,-14,20,-14 +H400000v40H845.2724 +s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 +c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z +M834 80h400000v40h-400000z`})])])])]),i(`span`,{class:`vlist-s`},`​`)]),i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.1972em`}},[i(`span`)])])])]),i(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),i(`span`,{class:`mord`},[i(`span`,{class:`mord mathbf`},`x`),i(`span`,{class:`msupsub`},[i(`span`,{class:`vlist-t vlist-t2`},[i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.3011em`}},[i(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[i(`span`,{class:`pstrut`,style:{height:`2.7em`}}),i(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[i(`span`,{class:`mord mtight`},`0`)])])]),i(`span`,{class:`vlist-s`},`​`)]),i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.15em`}},[i(`span`)])])])])]),i(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),i(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),i(`span`,{class:`mbin`},`+`),i(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),i(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`1.0755em`,"vertical-align":`-0.1944em`}}),i(`span`,{class:`mord sqrt`},[i(`span`,{class:`vlist-t vlist-t2`},[i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.8811em`}},[i(`span`,{class:`svg-align`,style:{top:`-3em`}},[i(`span`,{class:`pstrut`,style:{height:`3em`}}),i(`span`,{class:`mord`,style:{"padding-left":`0.833em`}},[i(`span`,{class:`mord`},`1`),i(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),i(`span`,{class:`mbin`},`−`),i(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),i(`span`,{class:`mord`},[i(`span`,{class:`mord katex-accent`},[i(`span`,{class:`vlist-t`},[i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.5678em`}},[i(`span`,{style:{top:`-3em`}},[i(`span`,{class:`pstrut`,style:{height:`3em`}}),i(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0037em`}},`α`)]),i(`span`,{style:{top:`-3em`}},[i(`span`,{class:`pstrut`,style:{height:`3em`}}),i(`span`,{class:`accent-body`,style:{left:`-0.2222em`}},[i(`span`,{class:`mord`},`ˉ`)])])])])])]),i(`span`,{class:`msupsub`},[i(`span`,{class:`vlist-t vlist-t2`},[i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.2806em`}},[i(`span`,{style:{top:`-2.55em`,"margin-left":`-0.0037em`,"margin-right":`0.05em`}},[i(`span`,{class:`pstrut`,style:{height:`2.7em`}}),i(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[i(`span`,{class:`mord mathnormal mtight`},`t`)])])]),i(`span`,{class:`vlist-s`},`​`)]),i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.15em`}},[i(`span`)])])])])])])]),i(`span`,{style:{top:`-2.8411em`}},[i(`span`,{class:`pstrut`,style:{height:`3em`}}),i(`span`,{class:`hide-tail`,style:{"min-width":`0.853em`,height:`1.08em`}},[i(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`400em`,height:`1.08em`,viewBox:`0 0 400000 1080`,preserveAspectRatio:`xMinYMin slice`},[i(`path`,{d:`M95,702 +c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 +c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 +c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 +s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 +c69,-144,104.5,-217.7,106.5,-221 +l0 -0 +c5.3,-9.3,12,-14,20,-14 +H400000v40H845.2724 +s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 +c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z +M834 80h400000v40h-400000z`})])])])]),i(`span`,{class:`vlist-s`},`​`)]),i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.1589em`}},[i(`span`)])])])]),i(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),i(`span`,{class:`mord`},[i(`span`,{class:`mord`},[i(`span`,{class:`mord boldsymbol`},`ϵ`)])]),i(`span`,{class:`mpunct`},`,`),i(`span`,{class:`mspace`,style:{"margin-right":`2em`}}),i(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),i(`span`,{class:`mord`},[i(`span`,{class:`mord`},[i(`span`,{class:`mord boldsymbol`},`ϵ`)])]),i(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),i(`span`,{class:`mrel`},`∼`),i(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),i(`span`,{class:`mord mathcal`,style:{"margin-right":`0.1474em`}},`N`),i(`span`,{class:`mopen`},`(`),i(`span`,{class:`mord mathbf`},`0`),i(`span`,{class:`mpunct`},`,`),i(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),i(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0785em`}},`I`),i(`span`,{class:`mclose`},`)`)])])])])],-1)]]),_:1})]),i(`div`,g,[v[1]||=i(`span`,{class:`dl-op`},`√ᾱ ×`,-1),t(b,{pattern:`smiley`,size:78,label:`x₀ — clean`}),v[2]||=i(`span`,{class:`dl-op`},`+ √(1−ᾱ) ×`,-1),t(b,{pattern:`noise`,seed:31,size:78,label:`ε — fresh noise`}),v[3]||=i(`span`,{class:`dl-op`},`=`,-1),t(b,{pattern:`smiley`,noise:.5,seed:31,size:78,tone:`accent`,label:`xₜ — any level`})]),i(`div`,_,[t(x,null,{default:a(()=>[...v[4]||=[i(`ul`,null,[i(`li`,null,[i(`span`,{class:`katex`},[i(`span`,{class:`katex-mathml`},[i(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[i(`semantics`,null,[i(`mrow`,null,[i(`mi`,null,`t`)]),i(`annotation`,{encoding:`application/x-tex`},`t`)])])]),i(`span`,{class:`katex-html`,"aria-hidden":`true`},[i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`0.6151em`}}),i(`span`,{class:`mord mathnormal`},`t`)])])]),r(` is a `),i(`strong`,null,`noise level`),r(`, from 0 (clean) to `),i(`span`,{class:`katex`},[i(`span`,{class:`katex-mathml`},[i(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[i(`semantics`,null,[i(`mrow`,null,[i(`mi`,null,`T`)]),i(`annotation`,{encoding:`application/x-tex`},`T`)])])]),i(`span`,{class:`katex-html`,"aria-hidden":`true`},[i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),i(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.1389em`}},`T`)])])]),r(` (pure noise)`)]),i(`li`,null,[i(`span`,{class:`katex`},[i(`span`,{class:`katex-mathml`},[i(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[i(`semantics`,null,[i(`mrow`,null,[i(`msub`,null,[i(`mover`,{accent:`true`},[i(`mi`,null,`α`),i(`mo`,null,`ˉ`)]),i(`mi`,null,`t`)])]),i(`annotation`,{encoding:`application/x-tex`},`\\bar\\alpha_t`)])])]),i(`span`,{class:`katex-html`,"aria-hidden":`true`},[i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`0.7178em`,"vertical-align":`-0.15em`}}),i(`span`,{class:`mord`},[i(`span`,{class:`mord katex-accent`},[i(`span`,{class:`vlist-t`},[i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.5678em`}},[i(`span`,{style:{top:`-3em`}},[i(`span`,{class:`pstrut`,style:{height:`3em`}}),i(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0037em`}},`α`)]),i(`span`,{style:{top:`-3em`}},[i(`span`,{class:`pstrut`,style:{height:`3em`}}),i(`span`,{class:`accent-body`,style:{left:`-0.2222em`}},[i(`span`,{class:`mord`},`ˉ`)])])])])])]),i(`span`,{class:`msupsub`},[i(`span`,{class:`vlist-t vlist-t2`},[i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.2806em`}},[i(`span`,{style:{top:`-2.55em`,"margin-left":`-0.0037em`,"margin-right":`0.05em`}},[i(`span`,{class:`pstrut`,style:{height:`2.7em`}}),i(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[i(`span`,{class:`mord mathnormal mtight`},`t`)])])]),i(`span`,{class:`vlist-s`},`​`)]),i(`span`,{class:`vlist-r`},[i(`span`,{class:`vlist`,style:{height:`0.15em`}},[i(`span`)])])])])])])])]),r(` falls from `),i(`span`,{class:`katex`},[i(`span`,{class:`katex-mathml`},[i(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[i(`semantics`,null,[i(`mrow`,null,[i(`mo`,null,`≈`),i(`mn`,null,`1`)]),i(`annotation`,{encoding:`application/x-tex`},`\\approx 1`)])])]),i(`span`,{class:`katex-html`,"aria-hidden":`true`},[i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`0.4831em`}}),i(`span`,{class:`mrel`},`≈`),i(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),i(`span`,{class:`mord`},`1`)])])]),r(` to `),i(`span`,{class:`katex`},[i(`span`,{class:`katex-mathml`},[i(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[i(`semantics`,null,[i(`mrow`,null,[i(`mo`,null,`≈`),i(`mn`,null,`0`)]),i(`annotation`,{encoding:`application/x-tex`},`\\approx 0`)])])]),i(`span`,{class:`katex-html`,"aria-hidden":`true`},[i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`0.4831em`}}),i(`span`,{class:`mrel`},`≈`),i(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),i(`span`,{class:`mord`},`0`)])])]),r(` — a mixing dial between image and noise`)]),i(`li`,null,[r(`Any noise level in `),i(`strong`,null,`one`),r(` step — no need to run the chain`)])],-1)]]),_:1})])]),_:1},16)}}};export{v as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-Cp8ONKRJ2.js b/lecture-07/assets/md-Cp8ONKRJ2.js new file mode 100644 index 0000000000000000000000000000000000000000..90819dc393fb3ce3be635a55866138c6f3566f93 --- /dev/null +++ b/lecture-07/assets/md-Cp8ONKRJ2.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,S as i,_ as a,b as o,et as s,tt as c,v as l,xt as u,yt as d}from"./modules/shiki-CJZsCeMT.js";import{n as f,t as p}from"./slidev/context-DB-9afGB.js";import{t as m}from"./default-CbJk4Idc.js";import{t as h}from"./slidev/VClicks-DhU7uhQr.js";var g={class:`grid grid-cols-[1.45fr_1fr] gap-5 mt-1 items-start`},_={class:`dl-ledger dl-tight dl-eq-legend`},v={class:`mt-3 dl-callout`},y={__name:`slides.md__slidev_36`,setup(y){let{$slidev:b,$nav:x,$clicksContext:S,$clicks:C,$page:w,$renderContext:T,$frontmatter:E}=f();return S.setup(),(f,y)=>{let b=h,x=r(`click`);return e(),l(m,u(n(d(p)(d(E),35))),{default:s(()=>[y[3]||=a(`h1`,null,[i(`Reading the equation: `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`V`)]),a(`annotation`,{encoding:`application/x-tex`},`V`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.2222em`}},`V`)])])]),i(` at the best discriminator`)],-1),a(`div`,g,[a(`div`,_,[t(b,null,{default:s(()=>[...y[0]||=[a(`table`,null,[a(`thead`,null,[a(`tr`,null,[a(`th`,null,`symbol`),a(`th`,null,`name`),a(`th`,null,`what it is here`),a(`th`,null,`example`)])]),a(`tbody`,null,[a(`tr`,null,[a(`td`,null,[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`V`),a(`mo`,{stretchy:`false`},`(`),a(`msup`,null,[a(`mi`,null,`D`),a(`mo`,null,`∗`)]),a(`mo`,{separator:`true`},`,`),a(`mi`,null,`G`),a(`mo`,{stretchy:`false`},`)`)]),a(`annotation`,{encoding:`application/x-tex`},`V(D^*, G)`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.2222em`}},`V`),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord`},[a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0278em`}},`D`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.6887em`}},[a(`span`,{style:{top:`-3.063em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mbin mtight`},`∗`)])])])])])])]),a(`span`,{class:`mpunct`},`,`),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mord mathnormal`},`G`),a(`span`,{class:`mclose`},`)`)])])])]),a(`td`,null,[i(`value at the best `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`D`)]),a(`annotation`,{encoding:`application/x-tex`},`D`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0278em`}},`D`)])])])]),a(`td`,null,[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`V`)]),a(`annotation`,{encoding:`application/x-tex`},`V`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.2222em`}},`V`)])])]),i(` with `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`msup`,null,[a(`mi`,null,`D`),a(`mo`,null,`∗`)])]),a(`annotation`,{encoding:`application/x-tex`},`D^*`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6887em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0278em`}},`D`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.6887em`}},[a(`span`,{style:{top:`-3.063em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mbin mtight`},`∗`)])])])])])])])])])]),i(` plugged in`)]),a(`td`,null,[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mo`,null,`−`),a(`mn`,null,`1.352`)]),a(`annotation`,{encoding:`application/x-tex`},`-1.352`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.7278em`,"vertical-align":`-0.0833em`}}),a(`span`,{class:`mord`},`−`),a(`span`,{class:`mord`},`1.352`)])])])])]),a(`tr`,null,[a(`td`,null,[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`log`),a(`mo`,null,`⁡`),a(`mn`,null,`4`)]),a(`annotation`,{encoding:`application/x-tex`},`\\log 4`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.8889em`,"vertical-align":`-0.1944em`}}),a(`span`,{class:`mop`},[i(`lo`),a(`span`,{style:{"margin-right":`0.0139em`}},`g`)]),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mord`},`4`)])])])]),a(`td`,null,`a constant`),a(`td`,null,[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`ln`),a(`mo`,null,`⁡`),a(`mn`,null,`4`),a(`mo`,null,`=`),a(`mn`,null,`1.386`)]),a(`annotation`,{encoding:`application/x-tex`},`\\ln 4 = 1.386`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6944em`}}),a(`span`,{class:`mop`},`ln`),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mord`},`4`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`=`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),a(`span`,{class:`mord`},`1.386`)])])]),i(`; `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`G`)]),a(`annotation`,{encoding:`application/x-tex`},`G`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),a(`span`,{class:`mord mathnormal`},`G`)])])]),i(` cannot change it`)]),a(`td`,null,`1.386`)]),a(`tr`,null,[a(`td`,null,[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,{mathvariant:`normal`},`J`),a(`mi`,{mathvariant:`normal`},`S`)]),a(`annotation`,{encoding:`application/x-tex`},`\\mathrm{JS}`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord mathrm`},`JS`)])])])])]),a(`td`,null,`Jensen–Shannon divergence`),a(`td`,null,`gap between distributions (nats); 0 if equal`),a(`td`,null,`0.0173`)]),a(`tr`,null,[a(`td`,null,[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`msub`,null,[a(`mi`,null,`p`),a(`mtext`,null,`data`)])]),a(`annotation`,{encoding:`application/x-tex`},`p_{\\text{data}}`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.625em`,"vertical-align":`-0.1944em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord mathnormal`},`p`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.3361em`}},[a(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mtight`},[a(`span`,{class:`mord text mtight`},[a(`span`,{class:`mord mtight`},`data`)])])])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.15em`}},[a(`span`)])])])])])])])]),i(`, `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`msub`,null,[a(`mi`,null,`p`),a(`mi`,null,`g`)])]),a(`annotation`,{encoding:`application/x-tex`},`p_g`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.7167em`,"vertical-align":`-0.2861em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord mathnormal`},`p`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.1514em`}},[a(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0359em`}},`g`)])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.2861em`}},[a(`span`)])])])])])])])])]),a(`td`,null,`real, generated`),a(`td`,null,[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`P`)]),a(`annotation`,{encoding:`application/x-tex`},`P`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.1389em`}},`P`)])])]),i(` and `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`Q`)]),a(`annotation`,{encoding:`application/x-tex`},`Q`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.8778em`,"vertical-align":`-0.1944em`}}),a(`span`,{class:`mord mathnormal`},`Q`)])])]),i(`, the three modes`)]),a(`td`,null,[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`Q`),a(`mo`,null,`=`),a(`mo`,{stretchy:`false`},`[`),a(`mn`,null,`0.2`),a(`mo`,{separator:`true`},`,`),a(`mn`,null,`0.5`),a(`mo`,{separator:`true`},`,`),a(`mn`,null,`0.3`),a(`mo`,{stretchy:`false`},`]`)]),a(`annotation`,{encoding:`application/x-tex`},`Q = [0.2, 0.5, 0.3]`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.8778em`,"vertical-align":`-0.1944em`}}),a(`span`,{class:`mord mathnormal`},`Q`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`=`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),a(`span`,{class:`mopen`},`[`),a(`span`,{class:`mord`},`0.2`),a(`span`,{class:`mpunct`},`,`),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mord`},`0.5`),a(`span`,{class:`mpunct`},`,`),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mord`},`0.3`),a(`span`,{class:`mclose`},`]`)])])])])])])],-1)]]),_:1}),c((e(),o(`div`,v,[...y[1]||=[a(`p`,null,[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`V`),a(`mo`,{stretchy:`false`},`(`),a(`msup`,null,[a(`mi`,null,`D`),a(`mo`,null,`∗`)]),a(`mo`,{separator:`true`},`,`),a(`mi`,null,`G`),a(`mo`,{stretchy:`false`},`)`),a(`mo`,null,`=`),a(`mo`,null,`−`),a(`mn`,null,`1.386`),a(`mo`,null,`+`),a(`mn`,null,`2`),a(`mo`,null,`×`),a(`mn`,null,`0.0173`),a(`mo`,null,`=`),a(`mo`,null,`−`),a(`mn`,null,`1.352`)]),a(`annotation`,{encoding:`application/x-tex`},`V(D^*, G) = -1.386 + 2 \\times 0.0173 = -1.352`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.2222em`}},`V`),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord`},[a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0278em`}},`D`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.6887em`}},[a(`span`,{style:{top:`-3.063em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mbin mtight`},`∗`)])])])])])])]),a(`span`,{class:`mpunct`},`,`),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mord mathnormal`},`G`),a(`span`,{class:`mclose`},`)`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`=`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.7278em`,"vertical-align":`-0.0833em`}}),a(`span`,{class:`mord`},`−`),a(`span`,{class:`mord`},`1.386`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),a(`span`,{class:`mbin`},`+`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.7278em`,"vertical-align":`-0.0833em`}}),a(`span`,{class:`mord`},`2`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),a(`span`,{class:`mbin`},`×`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),a(`span`,{class:`mord`},`0.0173`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`=`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.7278em`,"vertical-align":`-0.0833em`}}),a(`span`,{class:`mord`},`−`),a(`span`,{class:`mord`},`1.352`)])])])],-1),a(`p`,null,[i(`Perfect `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`G`)]),a(`annotation`,{encoding:`application/x-tex`},`G`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),a(`span`,{class:`mord mathnormal`},`G`)])])]),i(`: `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mrow`,null,[a(`mi`,{mathvariant:`normal`},`J`),a(`mi`,{mathvariant:`normal`},`S`)]),a(`mo`,null,`=`),a(`mn`,null,`0`)]),a(`annotation`,{encoding:`application/x-tex`},`\\mathrm{JS} = 0`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord mathrm`},`JS`)]),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`=`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),a(`span`,{class:`mord`},`0`)])])]),i(`, so `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`V`),a(`mo`,null,`=`),a(`mo`,null,`−`),a(`mn`,null,`1.386`)]),a(`annotation`,{encoding:`application/x-tex`},`V = -1.386`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.2222em`}},`V`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`=`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.7278em`,"vertical-align":`-0.0833em`}}),a(`span`,{class:`mord`},`−`),a(`span`,{class:`mord`},`1.386`)])])]),i(` — the guessing `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`D`)]),a(`annotation`,{encoding:`application/x-tex`},`D`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0278em`}},`D`)])])]),i(` again.`)],-1)]])),[[x]])]),y[2]||=a(`div`,null,[a(`svg`,{viewBox:`0 0 300 130`,class:`dl-diagram`,role:`img`,"aria-label":`A zoomed number line from minus 1.40 to minus 1.34: the running example sits at minus 1.352; a perfect generator would sit at minus 1.386`},[a(`line`,{class:`dl-dg-split`,x1:`10`,y1:`70`,x2:`290`,y2:`70`}),a(`text`,{class:`dl-dg-small`,x:`10`,y:`92`},`−1.40`),a(`text`,{class:`dl-dg-small`,x:`290`,y:`92`,"text-anchor":`end`},`−1.34`),a(`circle`,{class:`dl-dg-dot is-bad`,cx:`75`,cy:`70`,r:`6`}),a(`text`,{class:`dl-dg-small is-bad`,x:`75`,y:`52`,"text-anchor":`middle`},`perfect G: −1.386`),a(`circle`,{class:`dl-dg-dot`,cx:`234`,cy:`70`,r:`6`}),a(`text`,{class:`dl-dg-small is-good`,x:`234`,y:`52`,"text-anchor":`middle`},`our Q: −1.352`),a(`text`,{class:`dl-dg-small`,x:`150`,y:`118`,"text-anchor":`middle`},`G moves V left by shrinking JS`)])],-1)])]),_:1},16)}}};export{y as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-CpQbu7lk2.js b/lecture-07/assets/md-CpQbu7lk2.js new file mode 100644 index 0000000000000000000000000000000000000000..4b9ea9138ba5d5f7a9ee3e92db7ac0c63147234e --- /dev/null +++ b/lecture-07/assets/md-CpQbu7lk2.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,H as i,S as a,_ as o,b as s,et as c,m as l,tt as u,v as d,xt as f,yt as p}from"./modules/shiki-CJZsCeMT.js";import{n as m,t as h}from"./slidev/context-DB-9afGB.js";import{t as g}from"./PixelImage-C1NqQXMF.js";import{t as _}from"./default-CbJk4Idc.js";import{t as v}from"./LinkCard-CuSkRmQ7.js";var y={class:`grid grid-cols-3 gap-4 mt-3`},b={class:`mt-3 dl-tight`},x={class:`dl-pixrow mt-2`},S={__name:`slides.md__slidev_78`,setup(S){let{$slidev:C,$nav:w,$clicksContext:T,$clicks:E,$page:D,$renderContext:O,$frontmatter:k}=m();return T.setup(),(m,S)=>{let C=v,w=g,T=r(`click`);return e(),d(_,f(n(p(h)(p(k),77))),{default:c(()=>[S[2]||=o(`h1`,null,`Reading, and the lab`,-1),o(`div`,y,[u((e(),s(`div`,null,[t(C,{href:`https://lilianweng.github.io/posts/2021-07-11-diffusion-models/`,title:`What are Diffusion Models?`,blurb:`Weng, 2021. The derivation this lecture skipped, done properly and readably.`,icon:`📘`})])),[[T]]),u((e(),s(`div`,null,[t(C,{href:`https://github.com/lucidrains/denoising-diffusion-pytorch`,title:`denoising-diffusion-pytorch`,blurb:`A complete, trainable DDPM (the original 2020 diffusion model) in readable PyTorch.`,icon:`💻`})])),[[T]]),u((e(),s(`div`,null,[t(C,{href:`https://github.com/soumith/ganhacks`,title:`ganhacks`,blurb:`Chintala's list of what actually makes a GAN train. Unglamorous, and the reason your first one will work.`,icon:`🔧`})])),[[T]])]),u((e(),s(`div`,b,[...S[0]||=[o(`p`,null,[o(`strong`,null,`In the lab.`),a(` Train a DCGAN and a small diffusion model on the same data and compare. Then break the GAN on purpose — remove `),o(`code`,null,`detach`),a(`, use the saturating loss, train `),o(`span`,{class:`katex`},[o(`span`,{class:`katex-mathml`},[o(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[o(`semantics`,null,[o(`mrow`,null,[o(`mi`,null,`D`)]),o(`annotation`,{encoding:`application/x-tex`},`D`)])])]),o(`span`,{class:`katex-html`,"aria-hidden":`true`},[o(`span`,{class:`katex-base`},[o(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),o(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0278em`}},`D`)])])]),a(` five steps per `),o(`span`,{class:`katex`},[o(`span`,{class:`katex-mathml`},[o(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[o(`semantics`,null,[o(`mrow`,null,[o(`mi`,null,`G`)]),o(`annotation`,{encoding:`application/x-tex`},`G`)])])]),o(`span`,{class:`katex-html`,"aria-hidden":`true`},[o(`span`,{class:`katex-base`},[o(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),o(`span`,{class:`mord mathnormal`},`G`)])])]),a(` step.`)],-1)]])),[[T]]),u((e(),s(`div`,x,[S[1]||=o(`span`,{class:`dl-secondary`},`log a fixed grid every epoch:`,-1),(e(),s(l,null,i([.9,.65,.4,.2,.05],(e,n)=>t(w,{key:n,pattern:`star`,noise:e,seed:41,size:46,label:`epoch ${n+1}`,tone:`accent`},null,8,[`noise`,`label`])),64))])),[[T]])]),_:1},16)}}};export{S as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-Cvup-kiH.js b/lecture-07/assets/md-Cvup-kiH.js new file mode 100644 index 0000000000000000000000000000000000000000..1e699b2da1a2f97ef4e3fecdc39957175f95275c --- /dev/null +++ b/lecture-07/assets/md-Cvup-kiH.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,S as i,_ as a,b as o,et as s,tt as c,v as l,xt as u,yt as d}from"./modules/shiki-CJZsCeMT.js";import{n as f,t as p}from"./slidev/context-DB-9afGB.js";import{t as m}from"./PixelImage-C1NqQXMF.js";import{t as h}from"./default-CbJk4Idc.js";import{t as g}from"./slidev/VClicks-DhU7uhQr.js";import{t as _}from"./Citation-CcKhBxpe.js";var v={class:`mt-2 flex justify-center`},y={viewBox:`0 0 660 150`,class:`dl-diagram`,role:`img`,"aria-label":`A forger makes a fake, a detective judges it, and the detective's verdict is the forger's feedback`},b={class:`mt-3`},x={__name:`slides.md__slidev_27`,setup(x){let{$slidev:S,$nav:C,$clicksContext:w,$clicks:T,$page:E,$renderContext:D,$frontmatter:O}=f();return w.setup(),(f,x)=>{let S=m,C=g,w=_,T=r(`click`);return e(),l(h,u(n(d(p)(d(O),26))),{default:s(()=>[x[15]||=a(`h1`,null,`Stop specifying the loss`,-1),x[16]||=a(`p`,null,[i(`Pixel error is the problem. So do not write a loss at all — `),a(`strong`,null,`train one`),i(`.`)],-1),a(`div`,v,[(e(),o(`svg`,y,[x[1]||=a(`defs`,null,[a(`marker`,{id:`fd-arrow`,markerWidth:`7`,markerHeight:`7`,refX:`6`,refY:`3.5`,orient:`auto`},[a(`path`,{class:`dl-dg-head`,d:`M0 0 L7 3.5 L0 7 z`})])],-1),x[2]||=a(`g`,{transform:`translate(18 42)`},[a(`ellipse`,{class:`dl-dg-fill`,cx:`22`,cy:`18`,rx:`22`,ry:`17`}),a(`circle`,{class:`dl-dg-dot`,cx:`12`,cy:`12`,r:`3.5`}),a(`circle`,{class:`dl-dg-dot is-accent`,cx:`22`,cy:`8`,r:`3.5`}),a(`circle`,{class:`dl-dg-dot is-bad`,cx:`32`,cy:`13`,r:`3.5`}),a(`path`,{class:`dl-dg-arrow`,d:`M30 40 L46 4`})],-1),x[3]||=a(`text`,{class:`dl-dg-lab is-sm`,x:`40`,y:`106`,"text-anchor":`middle`},`forger`,-1),x[4]||=a(`text`,{class:`dl-dg-small`,x:`40`,y:`122`,"text-anchor":`middle`},`= generator G`,-1),x[5]||=a(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#fd-arrow)`,d:`M76 70 H140`},null,-1),t(S,{"in-svg":``,x:150,y:38,size:62,pattern:`smiley`,noise:.3,seed:6,tone:`accent`}),x[6]||=a(`text`,{class:`dl-dg-small`,x:`181`,y:`122`,"text-anchor":`middle`},`a fake`,-1),x[7]||=a(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#fd-arrow)`,d:`M220 70 H370`},null,-1),t(S,{"in-svg":``,x:290,y:4,size:44,pattern:`heart`}),x[8]||=a(`text`,{class:`dl-dg-small`,x:`312`,y:`62`,"text-anchor":`middle`},`+ real ones`,-1),x[9]||=a(`g`,{transform:`translate(390 42)`},[a(`circle`,{class:`dl-dg-op`,cx:`18`,cy:`16`,r:`14`}),a(`path`,{class:`dl-dg-arrow`,style:{"stroke-width":`4`},d:`M28 26 L42 40`})],-1),x[10]||=a(`text`,{class:`dl-dg-lab is-sm`,x:`410`,y:`106`,"text-anchor":`middle`},`detective`,-1),x[11]||=a(`text`,{class:`dl-dg-small`,x:`410`,y:`122`,"text-anchor":`middle`},`= discriminator D`,-1),x[12]||=a(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#fd-arrow)`,d:`M446 70 H500`},null,-1),x[13]||=a(`text`,{class:`dl-dg-lab`,x:`510`,y:`76`},`“fake!”`,-1),c((e(),o(`g`,null,[...x[0]||=[a(`path`,{class:`dl-dg-grad is-good`,"marker-end":`url(#fd-arrow)`,d:`M540 90 C 540 150, 60 150, 40 128`},null,-1),a(`text`,{class:`dl-dg-small is-good`,x:`300`,y:`146`,"text-anchor":`middle`},`how it could tell = how the forger improves`,-1)]])),[[T]])]))]),t(C,null,{default:s(()=>[...x[14]||=[a(`ul`,null,[a(`li`,null,[i(`If the best detective we can train cannot tell, the fake `),a(`strong`,null,`is`),i(` realistic`)]),a(`li`,null,[i(`The loss is no longer a formula. It is a network that `),a(`strong`,null,`improves`),i(` as `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`G`)]),a(`annotation`,{encoding:`application/x-tex`},`G`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),a(`span`,{class:`mord mathnormal`},`G`)])])]),i(` does`)])],-1)]]),_:1}),a(`div`,b,[t(w,{source:`Goodfellow, Pouget-Abadie, Mirza, Xu, Warde-Farley, Ozair, Courville & Bengio, Generative Adversarial Nets (2014)`,url:`https://arxiv.org/abs/1406.2661`})])]),_:1},16)}}};export{x as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-CvzS0tH4.js b/lecture-07/assets/md-CvzS0tH4.js new file mode 100644 index 0000000000000000000000000000000000000000..b3bfce4b2e51da434f322ff7521e1747c4d912dd --- /dev/null +++ b/lecture-07/assets/md-CvzS0tH4.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,S as i,_ as a,b as o,et as s,tt as c,v as l,xt as u,yt as d}from"./modules/shiki-CJZsCeMT.js";import{n as f,t as p}from"./slidev/context-DB-9afGB.js";import{t as m}from"./slidev/VClicks-DhU7uhQr.js";import{t as h}from"./interactive-Co6Mxz4S.js";import{t as g}from"./AdversarialGame-BqfAXE8Q.js";var _={class:`mt-2 dl-callout`},v={__name:`slides.md__slidev_37`,setup(v){let{$slidev:y,$nav:b,$clicksContext:x,$clicks:S,$page:C,$renderContext:w,$frontmatter:T}=f();return x.setup(),(f,v)=>{let y=g,b=m,x=r(`click`);return e(),l(h,u(n(d(p)(d(T),36))),{aside:s(n=>[v[2]||=a(`p`,null,`Two rows, computed two completely different ways.`,-1),t(b,null,{default:s(()=>[...v[0]||=[a(`ul`,null,[a(`li`,null,[a(`strong`,null,`V(D*, G)`),i(` — sum the logs over three bins, by hand`)]),a(`li`,null,[a(`strong`,null,`−log 4 + 2·JS`),i(` — never touches `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`D`)]),a(`annotation`,{encoding:`application/x-tex`},`D`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0278em`}},`D`)])])]),i(` at all`)]),a(`li`,null,[i(`Move any slider. They `),a(`strong`,null,`never`),i(` disagree`)])],-1)]]),_:1}),c((e(),o(`div`,_,[...v[1]||=[a(`p`,null,[i(`At `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`Q`),a(`mo`,null,`=`),a(`mi`,null,`P`)]),a(`annotation`,{encoding:`application/x-tex`},`Q = P`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.8778em`,"vertical-align":`-0.1944em`}}),a(`span`,{class:`mord mathnormal`},`Q`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`=`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.1389em`}},`P`)])])]),i(`, JS is 0.`)],-1),a(`p`,null,[i(`So `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`V`),a(`mo`,null,`=`),a(`mo`,null,`−`),a(`mi`,null,`log`),a(`mo`,null,`⁡`),a(`mn`,null,`4`),a(`mo`,null,`≈`),a(`mo`,null,`−`),a(`mn`,null,`1.386`)]),a(`annotation`,{encoding:`application/x-tex`},`V = -\\log 4 \\approx -1.386`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.2222em`}},`V`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`=`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.8889em`,"vertical-align":`-0.1944em`}}),a(`span`,{class:`mord`},`−`),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mop`},[i(`lo`),a(`span`,{style:{"margin-right":`0.0139em`}},`g`)]),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mord`},`4`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`≈`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.7278em`,"vertical-align":`-0.0833em`}}),a(`span`,{class:`mord`},`−`),a(`span`,{class:`mord`},`1.386`)])])]),i(`.`)],-1)]])),[[x]])]),default:s(()=>[t(y)]),_:1},16)}}};export{v as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-D05IaTUE.js b/lecture-07/assets/md-D05IaTUE.js new file mode 100644 index 0000000000000000000000000000000000000000..0c5b99b5cce043cae3df28dcedee22c04a0dac9e --- /dev/null +++ b/lecture-07/assets/md-D05IaTUE.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,H as i,S as a,_ as o,b as s,et as c,m as l,tt as u,v as d,xt as f,yt as p}from"./modules/shiki-CJZsCeMT.js";import{n as m,t as h}from"./slidev/context-DB-9afGB.js";import{t as g}from"./default-CbJk4Idc.js";import{t as _}from"./slidev/VClicks-DhU7uhQr.js";var v={class:`grid grid-cols-2 gap-8 mt-2 dl-tight`},y={viewBox:`0 0 330 210`,class:`dl-diagram`,role:`img`,"aria-label":`An image is three stacked 256 by 256 grids — 196 608 numbers; generating one pixel at a time takes one pass per number`},b=[`x`,`y`],x={class:`mt-3 dl-callout`},S={__name:`slides.md__slidev_5`,setup(S){let{$slidev:C,$nav:w,$clicksContext:T,$clicks:E,$page:D,$renderContext:O,$frontmatter:k}=m();return T.setup(),(m,S)=>{let C=_,w=r(`click`);return e(),d(g,f(n(p(h)(p(k),4))),{default:c(()=>[S[12]||=o(`h1`,null,`Now make a real picture`,-1),S[13]||=o(`p`,null,`A 256 × 256 colour image.`,-1),o(`div`,v,[o(`div`,null,[(e(),s(`svg`,y,[S[4]||=o(`defs`,null,[o(`marker`,{id:`px-arrow`,markerWidth:`6`,markerHeight:`6`,refX:`5`,refY:`3`,orient:`auto`},[o(`path`,{class:`dl-dg-head`,d:`M0 0 L6 3 L0 6 z`})])],-1),S[5]||=o(`rect`,{class:`dl-dg-fill is-muted`,x:`36`,y:`12`,width:`120`,height:`120`,rx:`3`},null,-1),S[6]||=o(`rect`,{class:`dl-dg-fill is-muted`,x:`24`,y:`24`,width:`120`,height:`120`,rx:`3`},null,-1),S[7]||=o(`rect`,{class:`dl-dg-fill`,x:`12`,y:`36`,width:`120`,height:`120`,rx:`3`},null,-1),S[8]||=o(`text`,{class:`dl-dg-small`,x:`72`,y:`174`,"text-anchor":`middle`},`256 × 256 × 3`,-1),S[9]||=o(`text`,{class:`dl-dg-lab`,x:`72`,y:`200`,"text-anchor":`middle`},`196 608 numbers`,-1),u((e(),s(`g`,null,[S[0]||=o(`text`,{class:`dl-dg-small`,x:`190`,y:`30`},`one pixel at a time?`,-1),(e(),s(l,null,i(5,t=>o(`g`,{key:t},[(e(),s(l,null,i(5,e=>o(`rect`,{key:e,class:`dl-dg-box`,x:176+e*20,y:24+t*20,width:`18`,height:`18`,rx:`2`},null,8,b)),64))])),64)),S[1]||=o(`path`,{class:`dl-dg-line`,"marker-end":`url(#px-arrow)`,d:`M205 53 H285 M285 73 H205 M205 93 H285 M285 113 H205 M205 133 H285`},null,-1),S[2]||=o(`text`,{class:`dl-dg-small is-bad`,x:`190`,y:`176`},`196 608 passes`,-1),S[3]||=o(`text`,{class:`dl-dg-small is-bad`,x:`190`,y:`192`},`for one image`,-1)])),[[w]])]))]),o(`div`,null,[t(C,null,{default:c(()=>[...S[10]||=[o(`ul`,null,[o(`li`,null,[o(`strong`,null,`196 608 numbers`),a(`, not three class scores`)]),o(`li`,null,[a(`Far too many possible images to list and put `),o(`strong`,null,`one softmax`),a(` over`)]),o(`li`,null,[a(`The pixels must `),o(`strong`,null,`fit together`),a(`: a left eye needs a matching right eye`)])],-1)]]),_:1}),u((e(),s(`div`,x,[...S[11]||=[o(`p`,null,[a(`So: produce the `),o(`strong`,null,`whole image at once`),a(`, and find a loss you can compute.`)],-1)]])),[[w]])])])]),_:1},16)}}};export{S as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-D1c0lDjX.js b/lecture-07/assets/md-D1c0lDjX.js new file mode 100644 index 0000000000000000000000000000000000000000..3eec635666bd962594e68074244991ff7cf03bad --- /dev/null +++ b/lecture-07/assets/md-D1c0lDjX.js @@ -0,0 +1 @@ +import{B as e,C as t,Ct as n,D as r,G as i,H as a,S as o,_ as s,b as c,et as l,m as u,tt as d,v as f,xt as p,yt as m}from"./modules/shiki-CJZsCeMT.js";import{n as h,t as g}from"./slidev/context-DB-9afGB.js";import{t as _}from"./default-CbJk4Idc.js";import{t as v}from"./slidev/VClicks-DhU7uhQr.js";import{t as y}from"./slidev/KaTexBlockWrapper-CffXlnxL.js";var b={class:`grid grid-cols-[1.2fr_1fr] gap-6 mt-1 items-center`},x={class:`dl-math-sm`},S={class:`dl-tight`},C={viewBox:`0 0 280 210`,class:`dl-diagram`,role:`img`,"aria-label":`The running example: P is one third on each mode, Q is 0.2, 0.5, 0.3; D star is 5/8, 2/5, 10/19; JS is 0.0173`},w=[`x`,`y`,`height`],T=[`x`,`y`,`height`],E=[`x`],D=[`x`],O={class:`mt-2 dl-callout`},k={__name:`slides.md__slidev_35`,setup(k){let{$slidev:A,$nav:j,$clicksContext:M,$clicks:N,$page:P,$renderContext:F,$frontmatter:I}=h();return M.setup(),(h,k)=>{let A=y,j=v,M=i(`click`);return e(),f(_,p(r(m(g)(m(I),34))),{default:l(()=>[k[8]||=s(`h1`,null,[o(`Put `),s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`msup`,null,[s(`mi`,null,`D`),s(`mo`,null,`∗`)])]),s(`annotation`,{encoding:`application/x-tex`},`D^*`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.6887em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0278em`}},`D`),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.6887em`}},[s(`span`,{style:{top:`-3.063em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[s(`span`,{class:`mbin mtight`},`∗`)])])])])])])])])])]),o(` back in`)],-1),s(`div`,b,[s(`div`,null,[k[2]||=s(`p`,null,[o(`Substitute the best discriminator into `),s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mi`,null,`V`)]),s(`annotation`,{encoding:`application/x-tex`},`V`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),s(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.2222em`}},`V`)])])]),o(`:`)],-1),s(`div`,x,[t(A,{ranges:[]},{default:l(()=>[...k[0]||=[s(`p`,null,[s(`span`,{class:`katex-display`},[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`,display:`block`},[s(`semantics`,null,[s(`mrow`,null,[s(`mi`,null,`V`),s(`mo`,{stretchy:`false`},`(`),s(`msup`,null,[s(`mi`,null,`D`),s(`mo`,null,`∗`)]),s(`mo`,{separator:`true`},`,`),s(`mi`,null,`G`),s(`mo`,{stretchy:`false`},`)`),s(`mo`,null,`=`),s(`mo`,null,`−`),s(`mi`,null,`log`),s(`mo`,null,`⁡`),s(`mn`,null,`4`),s(`mo`,null,`+`),s(`mn`,null,`2`),s(`mo`,null,`⋅`),s(`mrow`,null,[s(`mi`,{mathvariant:`normal`},`J`),s(`mi`,{mathvariant:`normal`},`S`)]),s(`mo`,{fence:`false`,stretchy:`true`,minsize:`1.2em`,maxsize:`1.2em`},`(`),s(`msub`,null,[s(`mi`,null,`p`),s(`mtext`,null,`data`)]),s(`mi`,{mathvariant:`normal`},`∥`),s(`msub`,null,[s(`mi`,null,`p`),s(`mi`,null,`g`)]),s(`mo`,{fence:`false`,stretchy:`true`,minsize:`1.2em`,maxsize:`1.2em`},`)`)]),s(`annotation`,{encoding:`application/x-tex`},`V(D^*, G) = -\\log 4 + 2 \\cdot \\mathrm{JS}\\big(p_{\\text{data}} \\Vert p_g\\big) `)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),s(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.2222em`}},`V`),s(`span`,{class:`mopen`},`(`),s(`span`,{class:`mord`},[s(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0278em`}},`D`),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.7387em`}},[s(`span`,{style:{top:`-3.113em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[s(`span`,{class:`mbin mtight`},`∗`)])])])])])])]),s(`span`,{class:`mpunct`},`,`),s(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),s(`span`,{class:`mord mathnormal`},`G`),s(`span`,{class:`mclose`},`)`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),s(`span`,{class:`mrel`},`=`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.8889em`,"vertical-align":`-0.1944em`}}),s(`span`,{class:`mord`},`−`),s(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),s(`span`,{class:`mop`},[o(`lo`),s(`span`,{style:{"margin-right":`0.0139em`}},`g`)]),s(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),s(`span`,{class:`mord`},`4`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),s(`span`,{class:`mbin`},`+`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),s(`span`,{class:`mord`},`2`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),s(`span`,{class:`mbin`},`⋅`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`1.2em`,"vertical-align":`-0.35em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mord mathrm`},`JS`)]),s(`span`,{class:`mord`},[s(`span`,{class:`delimsizing size1`},`(`)]),s(`span`,{class:`mord`},[s(`span`,{class:`mord mathnormal`},`p`),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t vlist-t2`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.3361em`}},[s(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mtight`},[s(`span`,{class:`mord text mtight`},[s(`span`,{class:`mord mtight`},`data`)])])])])]),s(`span`,{class:`vlist-s`},`​`)]),s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.15em`}},[s(`span`)])])])])]),s(`span`,{class:`mord`},`∥`),s(`span`,{class:`mord`},[s(`span`,{class:`mord mathnormal`},`p`),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t vlist-t2`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.1514em`}},[s(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0359em`}},`g`)])])]),s(`span`,{class:`vlist-s`},`​`)]),s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.2861em`}},[s(`span`)])])])])]),s(`span`,{class:`mord`},[s(`span`,{class:`delimsizing size1`},`)`)])])])])])],-1)]]),_:1})]),s(`div`,S,[t(j,null,{default:l(()=>[...k[1]||=[s(`ul`,null,[s(`li`,null,[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mi`,{mathvariant:`normal`},`J`),s(`mi`,{mathvariant:`normal`},`S`)]),s(`annotation`,{encoding:`application/x-tex`},`\\mathrm{JS}`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mord mathrm`},`JS`)])])])]),o(` — `),s(`strong`,null,`Jensen–Shannon divergence`),o(`: how far apart two distributions are`)]),s(`li`,null,[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mo`,null,`−`),s(`mi`,null,`log`),s(`mo`,null,`⁡`),s(`mn`,null,`4`)]),s(`annotation`,{encoding:`application/x-tex`},`-\\log 4`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.8889em`,"vertical-align":`-0.1944em`}}),s(`span`,{class:`mord`},`−`),s(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),s(`span`,{class:`mop`},[o(`lo`),s(`span`,{style:{"margin-right":`0.0139em`}},`g`)]),s(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),s(`span`,{class:`mord`},`4`)])])]),o(` is a constant. `),s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mi`,null,`G`)]),s(`annotation`,{encoding:`application/x-tex`},`G`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),s(`span`,{class:`mord mathnormal`},`G`)])])]),o(` can only move JS`)]),s(`li`,null,[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mrow`,null,[s(`mi`,{mathvariant:`normal`},`J`),s(`mi`,{mathvariant:`normal`},`S`)]),s(`mo`,null,`=`),s(`mn`,null,`0`)]),s(`annotation`,{encoding:`application/x-tex`},`\\mathrm{JS} = 0`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mord mathrm`},`JS`)]),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),s(`span`,{class:`mrel`},`=`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),s(`span`,{class:`mord`},`0`)])])]),o(` only when the two are `),s(`strong`,null,`identical`)])],-1)]]),_:1})])]),s(`div`,null,[(e(),c(`svg`,C,[k[3]||=s(`line`,{class:`dl-dg-split`,x1:`20`,y1:`160`,x2:`270`,y2:`160`},null,-1),(e(),c(u,null,a([[1/3,.2,`5/8`],[1/3,.5,`2/5`],[1/3,.3,`10/19`]],(e,t)=>s(`g`,{key:t},[s(`rect`,{class:`dl-dg-bar`,x:34+t*82,y:160-e[0]*240,width:`26`,height:e[0]*240,rx:`3`},null,8,w),s(`rect`,{class:`dl-dg-bar is-q`,x:62+t*82,y:160-e[1]*240,width:`26`,height:e[1]*240,rx:`3`},null,8,T),s(`text`,{class:`dl-dg-small`,x:61+t*82,y:`176`,"text-anchor":`middle`},`mode `+n(t+1),9,E),s(`text`,{class:`dl-dg-lab is-sm`,x:61+t*82,y:`196`,"text-anchor":`middle`},`D* = `+n(e[2]),9,D)])),64)),k[4]||=s(`text`,{class:`dl-dg-small`,x:`34`,y:`14`},`■ P (real)`,-1),k[5]||=s(`text`,{class:`dl-dg-small is-good`,x:`110`,y:`14`},`■ Q (generator)`,-1),k[6]||=s(`text`,{class:`dl-dg-lab is-sm`,x:`150`,y:`36`,"text-anchor":`middle`},`JS(P ‖ Q) = 0.0173`,-1)]))])]),d((e(),c(`div`,O,[...k[7]||=[s(`p`,null,[o(`A trained discriminator is not just a classifier. It is a `),s(`strong`,null,`measurement of the gap`),o(` between real and fake — and `),s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mi`,null,`G`)]),s(`annotation`,{encoding:`application/x-tex`},`G`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),s(`span`,{class:`mord mathnormal`},`G`)])])]),o(` is shrinking the thing it measures.`)],-1)]])),[[M]])]),_:1},16)}}};export{k as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-D8MvwLj1.js b/lecture-07/assets/md-D8MvwLj1.js new file mode 100644 index 0000000000000000000000000000000000000000..6296a43892cb2b7ebc6c442bc4967bc92c5e80eb --- /dev/null +++ b/lecture-07/assets/md-D8MvwLj1.js @@ -0,0 +1,14 @@ +import{B as e,C as t,D as n,N as r,S as i,_ as a,et as o,v as s,xt as c,yt as l}from"./modules/shiki-CJZsCeMT.js";import{n as u,t as d}from"./slidev/context-DB-9afGB.js";import{t as f}from"./PixelImage-C1NqQXMF.js";import{t as p}from"./default-CbJk4Idc.js";import{t as m}from"./slidev/CodeBlockWrapper-CsMaG0t-.js";var h={class:`dl-pixrow mb-2`},g={__name:`slides.md__slidev_25`,setup(g){let{$slidev:_,$nav:v,$clicksContext:y,$clicks:b,$page:x,$renderContext:S,$frontmatter:C}=u();return y.setup(),(u,g)=>{let _=f,v=m;return e(),s(p,c(n(l(d)(l(C),24))),{default:o(()=>[g[6]||=a(`h1`,null,`A VAE in PyTorch`,-1),a(`div`,h,[t(_,{pattern:`smiley`,size:40}),g[0]||=a(`span`,{class:`dl-op`},`→ enc →`,-1),g[1]||=a(`span`,{class:`dl-op`},`μ, log σ²`,-1),g[2]||=a(`span`,{class:`dl-op is-accent`},`→ z = μ + σ·ε →`,-1),g[3]||=a(`span`,{class:`dl-op`},`dec →`,-1),t(_,{pattern:`smiley`,shifts:[-1,0,1],size:40,tone:`accent`}),g[4]||=a(`span`,{class:`dl-op`},`+ β·KL`,-1)]),t(v,r({lines:!0},{title:``,ranges:[`all`,`2-4`,`6-8`,`11-13`,`all`]}),{default:o(()=>[...g[5]||=[a(`pre`,{class:`shiki shiki-themes vitesse-dark vitesse-light slidev-code`,style:{"--shiki-dark":`#dbd7caee`,"--shiki-light":`#393a34`,"--shiki-dark-bg":`#121212`,"--shiki-light-bg":`#ffffff`}},[a(`code`,{class:`language-python`},[a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-dark":`#CB7676`,"--shiki-light":`#AB5959`}},`def`),a(`span`,{style:{"--shiki-dark":`#80A665`,"--shiki-light":`#59873A`}},` forward`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`self`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`,`),a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` x`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`):`)]),i(` +`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` h `),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`=`),a(`span`,{style:{"--shiki-dark":`#C99076`,"--shiki-light":`#A65E2B`}},` self`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`enc`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`x`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`)`),a(`span`,{style:{"--shiki-dark":`#758575DD`,"--shiki-light":`#A0ADA0`}},` # (B, 784) → (B, 256)`)]),i(` +`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` mu `),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`=`),a(`span`,{style:{"--shiki-dark":`#C99076`,"--shiki-light":`#A65E2B`}},` self`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`fc_mu`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`h`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`)`),a(`span`,{style:{"--shiki-dark":`#758575DD`,"--shiki-light":`#A0ADA0`}},` # (B, 2)`)]),i(` +`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` logvar `),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`=`),a(`span`,{style:{"--shiki-dark":`#C99076`,"--shiki-light":`#A65E2B`}},` self`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`fc_logvar`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`h`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`)`),a(`span`,{style:{"--shiki-dark":`#758575DD`,"--shiki-light":`#A0ADA0`}},` # (B, 2), log σ²`)]),i(` +`),a(`span`,{class:`line`}),i(` +`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` std `),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`=`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},` (`),a(`span`,{style:{"--shiki-dark":`#4C9A91`,"--shiki-light":`#2F798A`}},`0.5`),a(`span`,{style:{"--shiki-dark":`#CB7676`,"--shiki-light":`#AB5959`}},` *`),a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` logvar`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`).`),a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`exp`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`()`),a(`span`,{style:{"--shiki-dark":`#758575DD`,"--shiki-light":`#A0ADA0`}},` # σ, always > 0`)]),i(` +`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` eps `),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`=`),a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` torch`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`randn_like`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`std`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`)`),a(`span`,{style:{"--shiki-dark":`#758575DD`,"--shiki-light":`#A0ADA0`}},` # the noise, as an INPUT`)]),i(` +`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` z `),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`=`),a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` mu `),a(`span`,{style:{"--shiki-dark":`#CB7676`,"--shiki-light":`#AB5959`}},`+`),a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` std `),a(`span`,{style:{"--shiki-dark":`#CB7676`,"--shiki-light":`#AB5959`}},`*`),a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` eps `),a(`span`,{style:{"--shiki-dark":`#758575DD`,"--shiki-light":`#A0ADA0`}},`# reparameterised`)]),i(` +`),a(`span`,{class:`line`}),i(` +`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-dark":`#4D9375`,"--shiki-light":`#1E754F`}},` return`),a(`span`,{style:{"--shiki-dark":`#C99076`,"--shiki-light":`#A65E2B`}},` self`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`dec`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`z`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`),`),a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` mu`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`,`),a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` logvar`)]),i(` +`),a(`span`,{class:`line`}),i(` +`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`recon`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`,`),a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` mu`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`,`),a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` logvar `),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`=`),a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` model`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`x`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`)`)]),i(` +`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`kl `),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`=`),a(`span`,{style:{"--shiki-dark":`#CB7676`,"--shiki-light":`#AB5959`}},` -`),a(`span`,{style:{"--shiki-dark":`#4C9A91`,"--shiki-light":`#2F798A`}},`0.5`),a(`span`,{style:{"--shiki-dark":`#CB7676`,"--shiki-light":`#AB5959`}},` *`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},` (`),a(`span`,{style:{"--shiki-dark":`#4C9A91`,"--shiki-light":`#2F798A`}},`1`),a(`span`,{style:{"--shiki-dark":`#CB7676`,"--shiki-light":`#AB5959`}},` +`),a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` logvar `),a(`span`,{style:{"--shiki-dark":`#CB7676`,"--shiki-light":`#AB5959`}},`-`),a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` mu`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`pow`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),a(`span`,{style:{"--shiki-dark":`#4C9A91`,"--shiki-light":`#2F798A`}},`2`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`)`),a(`span`,{style:{"--shiki-dark":`#CB7676`,"--shiki-light":`#AB5959`}},` -`),a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` logvar`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`exp`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`()).`),a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`sum`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),a(`span`,{style:{"--shiki-dark":`#4C9A91`,"--shiki-light":`#2F798A`}},`1`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`).`),a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`mean`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`()`)]),i(` +`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`loss `),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`=`),a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` F`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`mse_loss`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`recon`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`,`),a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` x`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`,`),a(`span`,{style:{"--shiki-dark":`#BD976A`,"--shiki-light":`#B07D48`}},` reduction`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`=`),a(`span`,{style:{"--shiki-dark":`#C98A7D77`,"--shiki-light":`#B5695977`}},`'`),a(`span`,{style:{"--shiki-dark":`#C98A7D`,"--shiki-light":`#B56959`}},`sum`),a(`span`,{style:{"--shiki-dark":`#C98A7D77`,"--shiki-light":`#B5695977`}},`'`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`)`),a(`span`,{style:{"--shiki-dark":`#CB7676`,"--shiki-light":`#AB5959`}},` /`),a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` x`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`size`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),a(`span`,{style:{"--shiki-dark":`#4C9A91`,"--shiki-light":`#2F798A`}},`0`),a(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`)`),a(`span`,{style:{"--shiki-dark":`#CB7676`,"--shiki-light":`#AB5959`}},` +`),a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` beta `),a(`span`,{style:{"--shiki-dark":`#CB7676`,"--shiki-light":`#AB5959`}},`*`),a(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` kl`)])])],-1)]]),_:1},16)]),_:1},16)}}};export{g as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-DJLb3Q-T.js b/lecture-07/assets/md-DJLb3Q-T.js new file mode 100644 index 0000000000000000000000000000000000000000..5fd952b5c11df626a5d332a42a0a0542469a4259 --- /dev/null +++ b/lecture-07/assets/md-DJLb3Q-T.js @@ -0,0 +1 @@ +import{B as e,Ct as t,D as n,G as r,H as i,S as a,_ as o,b as s,bt as c,et as l,m as u,tt as d,v as f,xt as p,yt as m}from"./modules/shiki-CJZsCeMT.js";import{n as h,t as g}from"./slidev/context-DB-9afGB.js";import{t as _}from"./PixelImage-C1NqQXMF.js";import{t as v}from"./default-CbJk4Idc.js";var y={class:`mt-3 flex justify-center`},b={viewBox:`0 0 660 200`,class:`dl-diagram`,role:`img`,"aria-label":`Four steps: real batch labelled 1, fake batch labelled 0, update D, then fakes labelled 1 to update G`},x=[`x`],S=[`cx`],C=[`x`],w=[`x`],T=[`transform`],E=[`x`],D=[`x`],O=[`d`],k={class:`mt-3 dl-callout`},A={__name:`slides.md__slidev_38`,setup(A){let{$slidev:j,$nav:M,$clicksContext:N,$clicks:P,$page:F,$renderContext:I,$frontmatter:L}=h();return N.setup(),(h,A)=>{let j=_,M=r(`click`);return e(),f(v,p(n(m(g)(m(L),37))),{default:l(()=>[A[4]||=o(`h1`,null,`The four steps`,-1),A[5]||=o(`p`,null,[a(`One iteration: two batches through `),o(`span`,{class:`katex`},[o(`span`,{class:`katex-mathml`},[o(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[o(`semantics`,null,[o(`mrow`,null,[o(`mi`,null,`D`)]),o(`annotation`,{encoding:`application/x-tex`},`D`)])])]),o(`span`,{class:`katex-html`,"aria-hidden":`true`},[o(`span`,{class:`katex-base`},[o(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),o(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0278em`}},`D`)])])]),a(`, one more for `),o(`span`,{class:`katex`},[o(`span`,{class:`katex-mathml`},[o(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[o(`semantics`,null,[o(`mrow`,null,[o(`mi`,null,`G`)]),o(`annotation`,{encoding:`application/x-tex`},`G`)])])]),o(`span`,{class:`katex-html`,"aria-hidden":`true`},[o(`span`,{class:`katex-base`},[o(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),o(`span`,{class:`mord mathnormal`},`G`)])])]),a(` — and a label flip.`)],-1),o(`div`,y,[(e(),s(`svg`,b,[A[1]||=o(`defs`,null,[o(`marker`,{id:`st-arrow`,markerWidth:`7`,markerHeight:`7`,refX:`6`,refY:`3.5`,orient:`auto`},[o(`path`,{class:`dl-dg-head`,d:`M0 0 L7 3.5 L0 7 z`})])],-1),(e(),s(u,null,i([[`1`,`real batch`,`D(x)`,`label 1`,`heart`,0,`ink`],[`2`,`fake batch`,`D(G(z))`,`label 0`,`smiley`,.3,`accent`],[`3`,`update D`,`both`,`—`,``,0,`ink`],[`4`,`fakes again`,`D(G(z))`,`label 1 !`,`smiley`,.3,`accent`]],(n,r)=>o(`g`,{key:r},[o(`rect`,{class:c([`dl-dg-box`,r===3?`is-accent`:``]),x:8+r*164,y:`24`,width:`140`,height:`150`,rx:`6`},null,10,x),o(`circle`,{class:`dl-dg-op`,cx:30+r*164,cy:`46`,r:`13`},null,8,S),o(`text`,{class:`dl-dg-lab is-sm`,x:30+r*164,y:`51`,"text-anchor":`middle`},t(n[0]),9,C),o(`text`,{class:`dl-dg-lab is-sm`,x:92+r*164,y:`51`,"text-anchor":`middle`},t(n[1]),9,w),n[4]?(e(),f(j,{key:0,"in-svg":``,x:56+r*164,y:66,size:46,pattern:n[4],noise:n[5],seed:6,tone:n[6]},null,8,[`x`,`pattern`,`noise`,`tone`])):(e(),s(`g`,{key:1,transform:`translate(${60+r*164} 70)`},[...A[0]||=[o(`circle`,{class:`dl-dg-op`,cx:`18`,cy:`18`,r:`16`},null,-1),o(`path`,{class:`dl-dg-arrow`,d:`M18 8 V18 L26 24`},null,-1)]],8,T)),o(`text`,{class:`dl-dg-small`,x:78+r*164,y:`134`,"text-anchor":`middle`},t(n[2]),9,E),o(`text`,{class:c(r===3?`dl-dg-lab is-sm is-bad-text`:`dl-dg-lab is-sm`),x:78+r*164,y:`158`,"text-anchor":`middle`},t(n[3]),11,D)])),64)),(e(),s(u,null,i(3,e=>o(`path`,{key:`a${e}`,class:`dl-dg-arrow`,"marker-end":`url(#st-arrow)`,d:`M${150+(e-1)*164} 100 H${168+(e-1)*164}`},null,8,O)),64)),A[2]||=o(`text`,{class:`dl-dg-small`,x:`566`,y:`192`,"text-anchor":`middle`},`then update G`,-1)]))]),d((e(),s(`div`,k,[...A[3]||=[o(`p`,null,[a(`Step 4 labels a fake as `),o(`strong`,null,`1`),a(`. That single lie is the generator’s entire training signal.`)],-1)]])),[[M]])]),_:1},16)}}};export{A as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-DOJgLGSO2.js b/lecture-07/assets/md-DOJgLGSO2.js new file mode 100644 index 0000000000000000000000000000000000000000..29f49f6510eada9352c9f4e06a085491251c45b7 --- /dev/null +++ b/lecture-07/assets/md-DOJgLGSO2.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,_ as r,et as i,v as a,xt as o,yt as s}from"./modules/shiki-CJZsCeMT.js";import{n as c,t as l}from"./slidev/context-DB-9afGB.js";import{t as u}from"./FamilyGlyph-DyfZ67F0.js";import{t as d}from"./section-CqA-0pFf.js";var f={class:`dl-side-glyph`},p={__name:`slides.md__slidev_18`,setup(p){let{$slidev:m,$nav:h,$clicksContext:g,$clicks:_,$page:v,$renderContext:y,$frontmatter:b}=c();return g.setup(),(c,p)=>{let m=u;return e(),a(d,o(n(s(l)(s(b),17))),{default:i(()=>[p[0]||=r(`h1`,null,`Make the code behave: VAEs`,-1),r(`div`,f,[t(m,{kind:`vae`,size:190})])]),_:1},16)}}};export{p as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-DOjqr7N9.js b/lecture-07/assets/md-DOjqr7N9.js new file mode 100644 index 0000000000000000000000000000000000000000..06ef14a8e3f4730b0a462a69da5b9883b8dbb5ba --- /dev/null +++ b/lecture-07/assets/md-DOjqr7N9.js @@ -0,0 +1 @@ +import{B as e,C as t,Ct as n,D as r,S as i,T as a,_ as o,b as s,dt as c,et as l,g as u,v as d,xt as f,yt as p}from"./modules/shiki-CJZsCeMT.js";import{t as m}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as h,t as g}from"./slidev/context-DB-9afGB.js";import{E as _,T as v,_ as y,c as b,d as x,g as S,o as C,v as w,x as T}from"./useGenerative-DhxjRRg5.js";import{t as E}from"./slidev/VClicks-DhU7uhQr.js";import{n as D,t as ee}from"./StepButton-BHTS1uiY.js";import{t as te}from"./Plot2D-ifvwvNLG.js";import{t as ne}from"./PlotPoints-Cxs9FmbK.js";import{t as re}from"./interactive-Co6Mxz4S.js";import{t as ie}from"./Slider-C2M0Z0oG.js";var O={class:`dl-vae`},k={class:`dl-vae__strip`,viewBox:`0 0 470 58`,role:`img`,"aria-label":`The aggregate posterior over latent codes, against the standard normal prior`},A=[`d`],j=[`d`],M=[`x2`],N=[`x`],P={class:`dl-vae__out`},F=404,I=32,L=46,R=3.4,z=m(a({__name:`VaeLatentLab`,setup(r){let{$slidev:a,$nav:f,$clicksContext:m,$clicks:g,$page:E,$renderContext:re,$frontmatter:z}=h(),B=c(0),V=T(22),H=x(V),U=[...H].sort((e,t)=>e-t),W=u(()=>v(H,B.value)),G=u(()=>y(B.value)),K=u(()=>S(W.value,G.value)),q=(()=>{let e=_(4242);return H.map(()=>e())})(),J=u(()=>W.value.map((e,t)=>b(U,e+G.value*q[t],B.value))),Y=u(()=>{let e=0;for(let t=0;tw((t+.5)/24)),X=u(()=>ae.map(e=>{let t=b(U,e,B.value),n=Math.sqrt(Math.min(...V.map(e=>(e.x-t.x)**2+(e.y-t.y)**2)));return{...t,cls:n>.6?`off`:`on`}})),oe=u(()=>X.value.filter(e=>e.cls===`on`).length),Z=Array.from({length:120},(e,t)=>-3.4+2*R*t/119);function Q(e){return I+(e+R)/(2*R)*F}function $(e,t){return`M${Z.map((n,r)=>`${Q(n).toFixed(1)},${(L-Math.min(e[r]*t,42)).toFixed(1)}`).join(`L`)}`}let se=u(()=>$(Z.map(e=>Math.exp(-e*e/2)/Math.sqrt(2*Math.PI)),92)),ce=u(()=>$(C(W.value,G.value,Z),92));return(r,a)=>{let c=ne,u=te,f=ie,m=ee,h=D;return e(),d(h,{"max-width":`45rem`},{controls:l(()=>[t(f,{modelValue:B.value,"onUpdate:modelValue":a[0]||=e=>B.value=e,label:`β — how hard the KL term pulls`,min:0,max:1,step:.02},null,8,[`modelValue`]),t(m,{label:`β = 0 · an autoencoder`,variant:`ghost`,onClick:a[1]||=e=>B.value=0}),t(m,{label:`β = 1 · a VAE`,variant:`ghost`,onClick:a[2]||=e=>B.value=1})]),readout:l(()=>[o(`div`,P,[o(`span`,null,[a[4]||=i(`codes vs N(0, 1): `,-1),o(`b`,null,n(K.value.toFixed(3)),1)]),o(`span`,null,[a[5]||=i(`sampled z landing on real data: `,-1),o(`b`,null,n(oe.value)+`/24`,1)]),o(`span`,null,[a[6]||=i(`reconstruction error: `,-1),o(`b`,null,n(Y.value.toFixed(3)),1)])])]),default:l(()=>[o(`div`,O,[t(u,{"x-domain":[-4.2,4.2],"y-domain":[-2.4,2.6],width:470,height:188,"x-ticks":[-4,-2,0,2,4],"y-ticks":[-2,0,2]},{default:l(()=>[t(c,{points:p(V),radius:3.2,color:`var(--dl-muted)`,opacity:.5},null,8,[`points`]),t(c,{points:X.value,radius:4.4,colors:{on:`var(--dl-accent)`,off:`var(--dl-danger)`}},null,8,[`points`])]),_:1}),(e(),s(`svg`,k,[o(`path`,{class:`dl-vae__prior`,d:se.value},null,8,A),o(`path`,{class:`dl-vae__post`,d:ce.value},null,8,j),o(`line`,{class:`dl-vae__axis`,x1:I,x2:436,y1:L,y2:L},null,8,M),a[3]||=o(`text`,{class:`dl-vae__lab`,x:`6`,y:`50`},`z`,-1),o(`text`,{class:`dl-vae__lab`,x:Q(0),y:`56`,"text-anchor":`middle`},` dashed: the N(0, 1) we sample from · solid: where the codes actually are `,8,N)]))])]),_:1})}}}),[[`__scopeId`,`data-v-1aaf2554`]]),B={__name:`slides.md__slidev_23`,setup(n){let{$slidev:a,$nav:s,$clicksContext:c,$clicks:u,$page:m,$renderContext:_,$frontmatter:v}=h();return c.setup(),(n,a)=>{let s=z,c=E;return e(),d(re,f(r(p(g)(p(v),22))),{aside:l(e=>[a[1]||=o(`p`,null,`The curve is where codes actually are; the dashed line is what we will sample. Red dots are samples that landed on nothing.`,-1),t(c,null,{default:l(()=>[...a[0]||=[o(`ul`,null,[o(`li`,null,[o(`strong`,null,`β = 0`),i(` — three spikes, two holes, 16 of 24 samples usable`)]),o(`li`,null,[o(`strong`,null,`β = 1`),i(` — the curve matches the prior, and `),o(`strong`,null,`24 of 24`),i(` land on data`)]),o(`li`,null,[i(`And reconstruction error nearly `),o(`strong`,null,`triples`)])],-1)]]),_:1})]),default:l(()=>[t(s)]),_:1},16)}}};export{B as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-DOzCcqi_.js b/lecture-07/assets/md-DOzCcqi_.js new file mode 100644 index 0000000000000000000000000000000000000000..c6c5458dd9bb5ac951d0a5b326ea1773e331af7c --- /dev/null +++ b/lecture-07/assets/md-DOzCcqi_.js @@ -0,0 +1 @@ +import{B as e,C as t,Ct as n,D as r,G as i,H as a,S as o,_ as s,b as c,et as l,m as u,tt as d,v as f,xt as p,yt as m}from"./modules/shiki-CJZsCeMT.js";import{n as h,t as g}from"./slidev/context-DB-9afGB.js";import{t as _}from"./PixelImage-C1NqQXMF.js";import{t as v}from"./default-CbJk4Idc.js";import{t as y}from"./Citation-CcKhBxpe.js";var b={class:`mt-1 flex justify-center`},x={viewBox:`0 0 660 244`,class:`dl-diagram`,role:`img`,"aria-label":`The discriminator shrinks a 64 by 64 image to one number with strided convolutions; the generator grows a vector to a 64 by 64 image with transposed convolutions`},S=[`x`,`y`,`width`,`height`],C=[`x`],w=[`x`,`y`,`width`,`height`],T=[`x`],E={class:`mt-1 dl-callout`},D={class:`mt-2`},O={__name:`slides.md__slidev_44`,setup(O){let{$slidev:k,$nav:A,$clicksContext:j,$clicks:M,$page:N,$renderContext:P,$frontmatter:F}=h();return j.setup(),(h,O)=>{let k=_,A=y,j=i(`click`);return e(),f(v,p(r(m(g)(m(F),43))),{default:l(()=>[O[17]||=s(`h1`,null,`DCGAN — a CNN, run backwards`,-1),s(`div`,b,[(e(),c(`svg`,x,[O[8]||=s(`defs`,null,[s(`marker`,{id:`dc-arrow`,markerWidth:`7`,markerHeight:`7`,refX:`6`,refY:`3.5`,orient:`auto`},[s(`path`,{class:`dl-dg-head`,d:`M0 0 L7 3.5 L0 7 z`})])],-1),O[9]||=s(`text`,{class:`dl-dg-lab is-sm`,x:`8`,y:`16`},`discriminator — the week-4 CNN`,-1),t(k,{"in-svg":``,x:8,y:26,size:72,pattern:`heart`}),(e(),c(u,null,a([36,18,9],(e,t)=>s(`g`,{key:`d${t}`},[s(`rect`,{class:`dl-dg-box`,x:110+t*70,y:62-e,width:e*2*.75,height:e*2*.75,rx:`2`},null,8,S),s(`text`,{class:`dl-dg-small`,x:110+t*70,y:`104`},n([32,16,8][t])+`²`,9,C)])),64)),O[10]||=s(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#dc-arrow)`,d:`M84 60 H104`},null,-1),O[11]||=s(`text`,{class:`dl-dg-small`,x:`44`,y:`112`,"text-anchor":`middle`},`64²`,-1),O[12]||=s(`text`,{class:`dl-dg-small`,x:`160`,y:`120`,"text-anchor":`middle`},`strided conv: halves each block`,-1),O[13]||=s(`circle`,{class:`dl-dg-op`,cx:`340`,cy:`56`,r:`14`},null,-1),O[14]||=s(`text`,{class:`dl-dg-small`,x:`340`,y:`60`,"text-anchor":`middle`},`0.9`,-1),O[15]||=s(`text`,{class:`dl-dg-small`,x:`360`,y:`60`},`one number: real?`,-1),d((e(),c(`g`,null,[O[0]||=s(`line`,{class:`dl-dg-split`,x1:`8`,y1:`132`,x2:`652`,y2:`132`},null,-1),O[1]||=s(`text`,{class:`dl-dg-lab is-sm`,x:`8`,y:`152`},`generator — the same, run backwards`,-1),O[2]||=s(`rect`,{class:`dl-dg-box is-accent`,x:`8`,y:`170`,width:`16`,height:`44`,rx:`3`},null,-1),O[3]||=s(`text`,{class:`dl-dg-small`,x:`16`,y:`236`,"text-anchor":`middle`},`z`,-1),(e(),c(u,null,a([9,18,36],(e,t)=>s(`g`,{key:`g${t}`},[s(`rect`,{class:`dl-dg-fill`,x:60+t*80,y:192-e*.75,width:e*1.5,height:e*1.5,rx:`2`},null,8,w),s(`text`,{class:`dl-dg-small`,x:60+t*80,y:`236`},n([8,16,32][t])+`²`,9,T)])),64)),O[4]||=s(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#dc-arrow)`,d:`M28 192 H54`},null,-1),O[5]||=s(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#dc-arrow)`,d:`M290 192 H320`},null,-1),t(k,{"in-svg":``,x:326,y:156,size:72,pattern:`heart`,noise:.12,seed:3,tone:`accent`}),O[6]||=s(`text`,{class:`dl-dg-small`,x:`362`,y:`240`,"text-anchor":`middle`},`64²`,-1),O[7]||=s(`text`,{class:`dl-dg-small is-good`,x:`420`,y:`196`},`transposed conv: doubles each block`,-1)])),[[j]])]))]),d((e(),c(`div`,E,[...O[16]||=[s(`p`,null,[o(`DCGAN (deep convolutional GAN): no pooling. Down is a stride, up is a `),s(`strong`,null,`transposed`),o(` convolution — both learned.`)],-1)]])),[[j]]),s(`div`,D,[t(A,{source:`Radford, Metz & Chintala, Unsupervised Representation Learning with Deep Convolutional GANs (2015)`,url:`https://arxiv.org/abs/1511.06434`})])]),_:1},16)}}};export{O as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-DQXi3jQd.js b/lecture-07/assets/md-DQXi3jQd.js new file mode 100644 index 0000000000000000000000000000000000000000..0f1a4b1c8d5ceba12443f2590b9786dce6df6094 --- /dev/null +++ b/lecture-07/assets/md-DQXi3jQd.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,_ as i,b as a,et as o,tt as s,v as c,xt as l,yt as u}from"./modules/shiki-CJZsCeMT.js";import{n as d,t as f}from"./slidev/context-DB-9afGB.js";import{t as p}from"./PixelImage-C1NqQXMF.js";import{t as m}from"./default-CbJk4Idc.js";import{t as h}from"./Citation-CcKhBxpe.js";var g={class:`mt-2 flex justify-center`},_={viewBox:`0 0 660 210`,class:`dl-diagram is-sm-h`,role:`img`,"aria-label":`Latent diffusion: an encoder shrinks a 512 by 512 image to a 64 by 64 by 4 code, diffusion runs there, and a decoder turns the result back into an image`},v={class:`mt-2 dl-callout`},y={class:`mt-2`},b={__name:`slides.md__slidev_69`,setup(b){let{$slidev:x,$nav:S,$clicksContext:C,$clicks:w,$page:T,$renderContext:E,$frontmatter:D}=d();return C.setup(),(d,b)=>{let x=p,S=h,C=r(`click`);return e(),c(m,l(n(u(f)(u(D),68))),{default:o(()=>[b[17]||=i(`h1`,null,`Do it somewhere cheaper`,-1),b[18]||=i(`p`,null,`A 512 × 512 image is 786 432 numbers — at each of 50 steps.`,-1),i(`div`,g,[(e(),a(`svg`,_,[b[0]||=i(`defs`,null,[i(`marker`,{id:`ld-arrow`,markerWidth:`7`,markerHeight:`7`,refX:`6`,refY:`3.5`,orient:`auto`},[i(`path`,{class:`dl-dg-head`,d:`M0 0 L7 3.5 L0 7 z`})])],-1),t(x,{"in-svg":``,x:8,y:30,size:128,pattern:`smiley`}),b[1]||=i(`text`,{class:`dl-dg-small`,x:`72`,y:`186`,"text-anchor":`middle`},`512 × 512 × 3`,-1),b[2]||=i(`polygon`,{class:`dl-dg-net`,points:`150,40 230,78 230,118 150,156`},null,-1),b[3]||=i(`text`,{class:`dl-dg-in`,x:`190`,y:`102`,"text-anchor":`middle`},`f`,-1),b[4]||=i(`rect`,{class:`dl-dg-box is-accent`,x:`250`,y:`80`,width:`36`,height:`36`,rx:`3`},null,-1),b[5]||=i(`rect`,{class:`dl-dg-box is-accent`,x:`256`,y:`74`,width:`36`,height:`36`,rx:`3`},null,-1),b[6]||=i(`text`,{class:`dl-dg-small`,x:`274`,y:`140`,"text-anchor":`middle`},`64 × 64 × 4`,-1),b[7]||=i(`text`,{class:`dl-dg-small is-good`,x:`274`,y:`156`,"text-anchor":`middle`},`48× smaller`,-1),b[8]||=i(`path`,{class:`dl-dg-grad is-good`,"marker-end":`url(#ld-arrow)`,d:`M300 70 C 330 20, 220 20, 250 66`},null,-1),b[9]||=i(`text`,{class:`dl-dg-small is-good`,x:`274`,y:`20`,"text-anchor":`middle`},`all of diffusion runs here`,-1),b[10]||=i(`polygon`,{class:`dl-dg-net`,points:`386,78 466,40 466,156 386,118`},null,-1),b[11]||=i(`text`,{class:`dl-dg-in`,x:`426`,y:`102`,"text-anchor":`middle`},`g`,-1),b[12]||=i(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#ld-arrow)`,d:`M298 98 H380`},null,-1),b[13]||=i(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#ld-arrow)`,d:`M468 98 H500`},null,-1),t(x,{"in-svg":``,x:508,y:30,size:128,pattern:`heart`,tone:`accent`}),b[14]||=i(`text`,{class:`dl-dg-small`,x:`572`,y:`186`,"text-anchor":`middle`},`decode once, at the end`,-1),b[15]||=i(`text`,{class:`dl-dg-small`,x:`308`,y:`200`,"text-anchor":`middle`},`f and g: section 01's autoencoder, trained first`,-1)]))]),s((e(),a(`div`,v,[...b[16]||=[i(`p`,null,`Section 01’s autoencoder, section 05’s diffusion model running inside it. That is Stable Diffusion — and why it runs on a laptop.`,-1)]])),[[C]]),i(`div`,y,[t(S,{source:`Rombach, Blattmann, Lorenz, Esser & Ommer, High-Resolution Image Synthesis with Latent Diffusion Models (2021)`,url:`https://arxiv.org/abs/2112.10752`})])]),_:1},16)}}};export{b as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-DRdwQ_MV.js b/lecture-07/assets/md-DRdwQ_MV.js new file mode 100644 index 0000000000000000000000000000000000000000..c5dafd6c01d1d168013469bc1c9d845512b10d1e --- /dev/null +++ b/lecture-07/assets/md-DRdwQ_MV.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,S as i,_ as a,b as o,et as s,tt as c,v as l,xt as u,yt as d}from"./modules/shiki-CJZsCeMT.js";import{n as f,t as p}from"./slidev/context-DB-9afGB.js";import{t as m}from"./default-CbJk4Idc.js";import{t as h}from"./slidev/VClicks-DhU7uhQr.js";import{t as g}from"./Plot2D-ifvwvNLG.js";import{t as _}from"./PlotLabel-BuFT7VP9.js";import{t as v}from"./PlotCurve-BoqzCl1G.js";import{t as y}from"./PlotLine-CUED7wZE.js";var b={class:`grid grid-cols-2 gap-6 mt-1`},x={class:`dl-tight`},S={class:`mt-3 dl-callout`},C={class:`mt-2 dl-secondary`},w={__name:`slides.md__slidev_39`,setup(w){let{$slidev:T,$nav:E,$clicksContext:D,$clicks:O,$page:k,$renderContext:A,$frontmatter:j}=f();return D.setup(),(f,w)=>{let T=v,E=_,D=y,O=g,k=h,A=r(`click`);return e(),l(m,u(n(d(p)(d(j),38))),{default:s(()=>[w[3]||=a(`h1`,null,`The trick that makes it train`,-1),w[4]||=a(`p`,null,[i(`Early on, `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`D`)]),a(`annotation`,{encoding:`application/x-tex`},`D`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0278em`}},`D`)])])]),i(` catches every fake — so the generator sits at the `),a(`strong`,null,`left`),i(` of this plot.`)],-1),a(`div`,b,[a(`div`,null,[t(O,{"x-domain":[0,1],"y-domain":[-4,.5],width:420,height:215,"x-label":`D(G(z))`,"x-ticks":[0,.25,.5,.75,1],"y-ticks":[-4,-3,-2,-1,0]},{default:s(()=>[t(T,{fn:e=>Math.log(1-e),color:`var(--dl-danger)`,width:2.6},null,8,[`fn`]),t(T,{fn:e=>Math.log(e),color:`var(--dl-accent)`,width:2.6},null,8,[`fn`]),t(E,{at:[.42,-.62],text:`log(1 − D)`,color:`var(--dl-danger)`,dx:4,dy:-4,bold:``}),t(E,{at:[.42,-.95],text:`log D`,color:`var(--dl-accent)`,dx:4,dy:12,bold:``}),t(D,{from:[.08,-4],to:[.08,.5],color:`var(--dl-muted)`,width:1.2,dashed:``}),t(E,{at:[.08,.5],text:`G starts here`,color:`var(--dl-muted)`,dx:6,dy:10})]),_:1})]),a(`div`,x,[t(k,null,{default:s(()=>[...w[0]||=[a(`ul`,null,[a(`li`,null,[i(`At `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`D`),a(`mo`,null,`≈`),a(`mn`,null,`0`)]),a(`annotation`,{encoding:`application/x-tex`},`D \\approx 0`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0278em`}},`D`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`≈`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),a(`span`,{class:`mord`},`0`)])])]),i(`, `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`log`),a(`mo`,null,`⁡`),a(`mo`,{stretchy:`false`},`(`),a(`mn`,null,`1`),a(`mo`,null,`−`),a(`mi`,null,`D`),a(`mo`,{stretchy:`false`},`)`)]),a(`annotation`,{encoding:`application/x-tex`},`\\log(1-D)`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),a(`span`,{class:`mop`},[i(`lo`),a(`span`,{style:{"margin-right":`0.0139em`}},`g`)]),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord`},`1`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),a(`span`,{class:`mbin`},`−`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0278em`}},`D`),a(`span`,{class:`mclose`},`)`)])])]),i(` is `),a(`strong`,null,`flat`),i(`. Almost no gradient`)]),a(`li`,null,[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`log`),a(`mo`,null,`⁡`),a(`mi`,null,`D`)]),a(`annotation`,{encoding:`application/x-tex`},`\\log D`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.8889em`,"vertical-align":`-0.1944em`}}),a(`span`,{class:`mop`},[i(`lo`),a(`span`,{style:{"margin-right":`0.0139em`}},`g`)]),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0278em`}},`D`)])])]),i(` is `),a(`em`,null,`steepest`),i(` in exactly that place`)])],-1)]]),_:1}),c((e(),o(`div`,S,[...w[1]||=[a(`p`,null,[i(`So `),a(`strong`,null,[i(`maximise `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`log`),a(`mo`,null,`⁡`),a(`mi`,null,`D`),a(`mo`,{stretchy:`false`},`(`),a(`mi`,null,`G`),a(`mo`,{stretchy:`false`},`(`),a(`mi`,{mathvariant:`bold`},`z`),a(`mo`,{stretchy:`false`},`)`),a(`mo`,{stretchy:`false`},`)`)]),a(`annotation`,{encoding:`application/x-tex`},`\\log D(G(\\mathbf{z}))`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),a(`span`,{class:`mop`},[i(`lo`),a(`span`,{style:{"margin-right":`0.0139em`}},`g`)]),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0278em`}},`D`),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord mathnormal`},`G`),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord mathbf`},`z`),a(`span`,{class:`mclose`},`))`)])])])]),i(` instead. Same goal, and a gradient that works.`)],-1)]])),[[A]]),c((e(),o(`div`,C,[...w[2]||=[a(`p`,null,[i(`In code it is one change: train `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`G`)]),a(`annotation`,{encoding:`application/x-tex`},`G`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),a(`span`,{class:`mord mathnormal`},`G`)])])]),i(` with BCE against the label `),a(`strong`,null,`1`),i(`.`)],-1)]])),[[A]])])])]),_:1},16)}}};export{w as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-DV6J0ewt.js b/lecture-07/assets/md-DV6J0ewt.js new file mode 100644 index 0000000000000000000000000000000000000000..fbd5df66f94c7f6558d74211037a8c2faff537ca --- /dev/null +++ b/lecture-07/assets/md-DV6J0ewt.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,S as i,_ as a,b as o,et as s,tt as c,v as l,xt as u,yt as d}from"./modules/shiki-CJZsCeMT.js";import{n as f,t as p}from"./slidev/context-DB-9afGB.js";import{t as m}from"./default-CbJk4Idc.js";import{t as h}from"./slidev/VClicks-DhU7uhQr.js";import{t as g}from"./Citation-CcKhBxpe.js";import{t as _}from"./slidev/KaTexBlockWrapper-CffXlnxL.js";var v={class:`grid grid-cols-[1fr_1.1fr] gap-6 mt-1 items-center`},y={viewBox:`0 0 320 240`,class:`dl-diagram is-xs`,role:`img`,"aria-label":`From the noisy image, the unconditional and the conditional predictions point in slightly different directions; guidance extends the difference`},b={class:`dl-math-sm`},x={class:`mt-2 dl-callout`},S={class:`mt-1`},C={__name:`slides.md__slidev_66`,setup(C){let{$slidev:w,$nav:T,$clicksContext:E,$clicks:D,$page:O,$renderContext:k,$frontmatter:A}=f();return E.setup(),(f,C)=>{let w=_,T=h,E=g,D=r(`click`);return e(),l(m,u(n(d(p)(d(A),65))),{default:s(()=>[C[12]||=a(`h1`,null,`Pushing past the prompt`,-1),a(`div`,v,[a(`div`,null,[(e(),o(`svg`,y,[C[1]||=a(`defs`,null,[a(`marker`,{id:`cf-arrow`,markerWidth:`7`,markerHeight:`7`,refX:`6`,refY:`3.5`,orient:`auto`},[a(`path`,{class:`dl-dg-head`,d:`M0 0 L7 3.5 L0 7 z`})])],-1),C[2]||=a(`circle`,{class:`dl-dg-dot`,cx:`40`,cy:`200`,r:`7`},null,-1),C[3]||=a(`text`,{class:`dl-dg-small`,x:`20`,y:`228`},`xₜ`,-1),C[4]||=a(`path`,{class:`dl-dg-line is-muted`,"marker-end":`url(#cf-arrow)`,d:`M40 200 L180 150`},null,-1),C[5]||=a(`text`,{class:`dl-dg-small`,x:`186`,y:`152`},`without c`,-1),C[6]||=a(`path`,{class:`dl-dg-line`,"marker-end":`url(#cf-arrow)`,d:`M40 200 L170 100`},null,-1),C[7]||=a(`text`,{class:`dl-dg-small is-good`,x:`120`,y:`92`},`with c`,-1),C[8]||=a(`path`,{class:`dl-dg-grad`,d:`M180 150 L170 100`},null,-1),c((e(),o(`g`,null,[...C[0]||=[a(`path`,{class:`dl-dg-line is-bad`,style:{"stroke-dasharray":`6 4`},"marker-end":`url(#cf-arrow)`,d:`M40 200 L155 25`},null,-1),a(`text`,{class:`dl-dg-small is-bad`,x:`162`,y:`30`},`w = 2.5: push further`,-1)]])),[[D]])]))]),a(`div`,null,[a(`div`,b,[t(w,{ranges:[]},{default:s(()=>[...C[9]||=[a(`p`,null,[a(`span`,{class:`katex-display`},[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`,display:`block`},[a(`semantics`,null,[a(`mrow`,null,[a(`mover`,{accent:`true`},[a(`mi`,{mathvariant:`bold-italic`},`ϵ`),a(`mo`,null,`~`)]),a(`mo`,null,`=`),a(`msub`,null,[a(`mi`,{mathvariant:`bold-italic`},`ϵ`),a(`mi`,null,`θ`)]),a(`mo`,{stretchy:`false`},`(`),a(`msub`,null,[a(`mi`,{mathvariant:`bold`},`x`),a(`mi`,null,`t`)]),a(`mo`,{separator:`true`},`,`),a(`mi`,null,`t`),a(`mo`,{stretchy:`false`},`)`),a(`mo`,null,`+`),a(`mi`,null,`w`),a(`mo`,{fence:`false`,stretchy:`true`,minsize:`1.2em`,maxsize:`1.2em`},`(`),a(`msub`,null,[a(`mi`,{mathvariant:`bold-italic`},`ϵ`),a(`mi`,null,`θ`)]),a(`mo`,{stretchy:`false`},`(`),a(`msub`,null,[a(`mi`,{mathvariant:`bold`},`x`),a(`mi`,null,`t`)]),a(`mo`,{separator:`true`},`,`),a(`mi`,null,`t`),a(`mo`,{separator:`true`},`,`),a(`mi`,null,`c`),a(`mo`,{stretchy:`false`},`)`),a(`mo`,null,`−`),a(`msub`,null,[a(`mi`,{mathvariant:`bold-italic`},`ϵ`),a(`mi`,null,`θ`)]),a(`mo`,{stretchy:`false`},`(`),a(`msub`,null,[a(`mi`,{mathvariant:`bold`},`x`),a(`mi`,null,`t`)]),a(`mo`,{separator:`true`},`,`),a(`mi`,null,`t`),a(`mo`,{stretchy:`false`},`)`),a(`mo`,{fence:`false`,stretchy:`true`,minsize:`1.2em`,maxsize:`1.2em`},`)`)]),a(`annotation`,{encoding:`application/x-tex`},`\\tilde{\\boldsymbol\\epsilon} = \\boldsymbol\\epsilon_\\theta(\\mathbf{x}_t, t) + w\\big(\\boldsymbol\\epsilon_\\theta(\\mathbf{x}_t, t, c) - \\boldsymbol\\epsilon_\\theta(\\mathbf{x}_t, t)\\big) `)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6813em`}}),a(`span`,{class:`mord katex-accent`},[a(`span`,{class:`vlist-t`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.6813em`}},[a(`span`,{style:{top:`-3em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord`},[a(`span`,{class:`mord boldsymbol`},`ϵ`)])])]),a(`span`,{style:{top:`-3.3634em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`accent-body`,style:{left:`-0.25em`}},[a(`span`,{class:`mord`},`~`)])])])])])]),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`=`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord`},[a(`span`,{class:`mord`},[a(`span`,{class:`mord boldsymbol`},`ϵ`)])]),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.3361em`}},[a(`span`,{style:{top:`-2.55em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0278em`}},`θ`)])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.15em`}},[a(`span`)])])])])]),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord`},[a(`span`,{class:`mord mathbf`},`x`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.2806em`}},[a(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mathnormal mtight`},`t`)])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.15em`}},[a(`span`)])])])])]),a(`span`,{class:`mpunct`},`,`),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mord mathnormal`},`t`),a(`span`,{class:`mclose`},`)`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),a(`span`,{class:`mbin`},`+`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1.2em`,"vertical-align":`-0.35em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0269em`}},`w`),a(`span`,{class:`mord`},[a(`span`,{class:`delimsizing size1`},`(`)]),a(`span`,{class:`mord`},[a(`span`,{class:`mord`},[a(`span`,{class:`mord`},[a(`span`,{class:`mord boldsymbol`},`ϵ`)])]),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.3361em`}},[a(`span`,{style:{top:`-2.55em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0278em`}},`θ`)])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.15em`}},[a(`span`)])])])])]),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord`},[a(`span`,{class:`mord mathbf`},`x`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.2806em`}},[a(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mathnormal mtight`},`t`)])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.15em`}},[a(`span`)])])])])]),a(`span`,{class:`mpunct`},`,`),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mord mathnormal`},`t`),a(`span`,{class:`mpunct`},`,`),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mord mathnormal`},`c`),a(`span`,{class:`mclose`},`)`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),a(`span`,{class:`mbin`},`−`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1.2em`,"vertical-align":`-0.35em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord`},[a(`span`,{class:`mord`},[a(`span`,{class:`mord boldsymbol`},`ϵ`)])]),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.3361em`}},[a(`span`,{style:{top:`-2.55em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0278em`}},`θ`)])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.15em`}},[a(`span`)])])])])]),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord`},[a(`span`,{class:`mord mathbf`},`x`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.2806em`}},[a(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mathnormal mtight`},`t`)])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.15em`}},[a(`span`)])])])])]),a(`span`,{class:`mpunct`},`,`),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mord mathnormal`},`t`),a(`span`,{class:`mclose`},`)`),a(`span`,{class:`mord`},[a(`span`,{class:`delimsizing size1`},`)`)])])])])])],-1)]]),_:1})]),t(T,null,{default:s(()=>[...C[10]||=[a(`ul`,null,[a(`li`,null,[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`w`),a(`mo`,null,`=`),a(`mn`,null,`0`)]),a(`annotation`,{encoding:`application/x-tex`},`w = 0`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.4306em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0269em`}},`w`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`=`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),a(`span`,{class:`mord`},`0`)])])]),i(` — ignore the prompt`)]),a(`li`,null,[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`w`),a(`mo`,null,`=`),a(`mn`,null,`1`)]),a(`annotation`,{encoding:`application/x-tex`},`w = 1`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.4306em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0269em`}},`w`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`=`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),a(`span`,{class:`mord`},`1`)])])]),i(` — ordinary "with `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`c`)]),a(`annotation`,{encoding:`application/x-tex`},`c`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.4306em`}}),a(`span`,{class:`mord mathnormal`},`c`)])])]),i(`"`)]),a(`li`,null,[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`w`),a(`mo`,null,`>`),a(`mn`,null,`1`)]),a(`annotation`,{encoding:`application/x-tex`},`w > 1`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.5782em`,"vertical-align":`-0.0391em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0269em`}},`w`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`>`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),a(`span`,{class:`mord`},`1`)])])]),i(` — `),a(`strong`,null,`extrapolate`),i(` past it`)])],-1)]]),_:1})])]),c((e(),o(`div`,x,[...C[11]||=[a(`p`,null,[a(`strong`,null,`Classifier-free guidance.`),i(),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`w`)]),a(`annotation`,{encoding:`application/x-tex`},`w`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.4306em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0269em`}},`w`)])])]),i(` is the guidance scale — not a weight vector. It is the "follow my prompt" slider in most image tools.`)],-1)]])),[[D]]),a(`div`,S,[t(E,{source:`Ho & Salimans, Classifier-Free Diffusion Guidance (2022)`,url:`https://arxiv.org/abs/2207.12598`})])]),_:1},16)}}};export{C as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-DWNNyx9R2.js b/lecture-07/assets/md-DWNNyx9R2.js new file mode 100644 index 0000000000000000000000000000000000000000..6c6954a938ac9a8771719550fdbaa63a9e2fdf90 --- /dev/null +++ b/lecture-07/assets/md-DWNNyx9R2.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,H as i,S as a,_ as o,b as s,et as c,m as l,tt as u,v as d,xt as f,yt as p}from"./modules/shiki-CJZsCeMT.js";import{n as m,t as h}from"./slidev/context-DB-9afGB.js";import{t as g}from"./PixelImage-C1NqQXMF.js";import{t as _}from"./default-CbJk4Idc.js";import{t as v}from"./slidev/VClicks-DhU7uhQr.js";var y={class:`grid grid-cols-[1fr_1.2fr] gap-6 mt-2 items-center`},b={class:`dl-tight`},x={viewBox:`0 0 400 210`,class:`dl-diagram`,role:`img`,"aria-label":`A memorisation check: find the training image nearest to each generated sample; a tiny distance means the model copied it`},S={class:`mt-3 dl-callout`},C={__name:`slides.md__slidev_77`,setup(C){let{$slidev:w,$nav:T,$clicksContext:E,$clicks:D,$page:O,$renderContext:k,$frontmatter:A}=m();return E.setup(),(m,C)=>{let w=v,T=g,E=r(`click`);return e(),d(_,f(n(p(h)(p(A),76))),{default:c(()=>[C[10]||=o(`h1`,null,`What comes with the capability`,-1),o(`div`,y,[o(`div`,b,[t(w,null,{default:c(()=>[...C[0]||=[o(`ul`,null,[o(`li`,null,[o(`strong`,null,`Memorisation is measurable`),a(` — "it looks different" is not a test`)]),o(`li`,null,[o(`strong`,null,`Provenance`),a(` — content credentials (C2PA) and watermarks. Both can be removed`)]),o(`li`,null,[o(`strong`,null,`The asymmetry`),a(` — faking takes one forward pass; proving an image is real is still unsolved`)]),o(`li`,null,[o(`strong`,null,`Say what is synthetic`),a(` — in a paper, a tool, a dataset card`)])],-1)]]),_:1})]),o(`div`,null,[(e(),s(`svg`,x,[C[2]||=o(`defs`,null,[o(`marker`,{id:`mm-arrow`,markerWidth:`7`,markerHeight:`7`,refX:`6`,refY:`3.5`,orient:`auto`},[o(`path`,{class:`dl-dg-head`,d:`M0 0 L7 3.5 L0 7 z`})])],-1),C[3]||=o(`text`,{class:`dl-dg-small`,x:`8`,y:`16`},`a generated sample`,-1),t(T,{"in-svg":``,x:8,y:28,size:70,pattern:`tree`,noise:.03,seed:5,tone:`accent`}),C[4]||=o(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#mm-arrow)`,d:`M84 63 H130`},null,-1),C[5]||=o(`text`,{class:`dl-dg-small`,x:`107`,y:`54`,"text-anchor":`middle`},`nearest?`,-1),C[6]||=o(`rect`,{class:`dl-dg-fill is-muted`,x:`138`,y:`6`,width:`254`,height:`120`,rx:`6`},null,-1),C[7]||=o(`text`,{class:`dl-dg-small`,x:`148`,y:`22`},`the training set`,-1),(e(),s(l,null,i([`smiley`,`heart`,`star`,`house`,`moon`,`tree`],(e,n)=>t(T,{key:n,"in-svg":``,x:148+n%3*80,y:30+Math.floor(n/3)*48,size:40,pattern:e},null,8,[`x`,`y`,`pattern`])),64)),C[8]||=o(`rect`,{class:`dl-dg-box is-bad`,x:`306`,y:`76`,width:`46`,height:`46`,rx:`4`,style:{fill:`none`,"stroke-width":`2.5`}},null,-1),u((e(),s(`g`,null,[...C[1]||=[o(`text`,{class:`dl-dg-lab is-sm is-bad-text`,x:`200`,y:`160`,"text-anchor":`middle`},`distance 0.02 → it copied a training image`,-1),o(`text`,{class:`dl-dg-small`,x:`200`,y:`180`,"text-anchor":`middle`},`run this on every synthetic dataset you release`,-1)]])),[[E]])]))])]),u((e(),s(`div`,S,[...C[9]||=[o(`p`,null,`The first line is a measurement you run, not an opinion you hold.`,-1)]])),[[E]])]),_:1},16)}}};export{C as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-DYRgAUoh.js b/lecture-07/assets/md-DYRgAUoh.js new file mode 100644 index 0000000000000000000000000000000000000000..2b380fcedb3b3d6c531de5dfb92741bb9c0fd01b --- /dev/null +++ b/lecture-07/assets/md-DYRgAUoh.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,S as i,_ as a,b as o,et as s,tt as c,v as l,xt as u,yt as d}from"./modules/shiki-CJZsCeMT.js";import{n as f,t as p}from"./slidev/context-DB-9afGB.js";import{t as m}from"./slidev/VClicks-DhU7uhQr.js";import{t as h}from"./AutoencoderLab-BLIx_rsl.js";import{t as g}from"./interactive-Co6Mxz4S.js";var _={class:`mt-2 dl-callout`},v={__name:`slides.md__slidev_15`,setup(v){let{$slidev:y,$nav:b,$clicksContext:x,$clicks:S,$page:C,$renderContext:w,$frontmatter:T}=f();return x.setup(),(f,v)=>{let y=h,b=m,x=r(`click`);return e(),l(g,u(n(d(p)(d(T),14))),{aside:s(n=>[v[2]||=a(`p`,null,[i(`Press `),a(`strong`,null,`Decode a fresh z`),i(` four times. The strip shows every training code.`)],-1),t(b,null,{default:s(()=>[...v[0]||=[a(`ul`,null,[a(`li`,null,[i(`The first two land `),a(`strong`,null,`inside a clump`),i(` and decode to something plausible`)]),a(`li`,null,[i(`The last two land `),a(`strong`,null,`in a gap`),i(` — a point no data ever occupied`)])],-1)]]),_:1}),c((e(),o(`div`,_,[...v[1]||=[a(`p`,null,[i(`The loss only asked for codes that `),a(`strong`,null,`decode back`),i(`. Never for codes that `),a(`strong`,null,`fill`),i(` the space.`)],-1)]])),[[x]])]),default:s(()=>[t(y)]),_:1},16)}}};export{v as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-DZM4fHOc.js b/lecture-07/assets/md-DZM4fHOc.js new file mode 100644 index 0000000000000000000000000000000000000000..9b24e2f057017f9d51ecc41854332b09b6e4e569 --- /dev/null +++ b/lecture-07/assets/md-DZM4fHOc.js @@ -0,0 +1,11 @@ +import{B as e,C as t,D as n,G as r,S as i,_ as a,b as o,et as s,tt as c,v as l,xt as u,yt as d}from"./modules/shiki-CJZsCeMT.js";import{n as f,t as p}from"./slidev/context-DB-9afGB.js";import{t as m}from"./PixelImage-C1NqQXMF.js";import{t as h}from"./default-CbJk4Idc.js";import{t as g}from"./slidev/KaTexBlockWrapper-CffXlnxL.js";var _={class:`dl-pixrow mt-2`},v={class:`dl-op is-accent`},y={class:`dl-math-sm mt-1`},b={class:`mt-1 dl-callout`},x={__name:`slides.md__slidev_60`,setup(x){let{$slidev:S,$nav:C,$clicksContext:w,$clicks:T,$page:E,$renderContext:D,$frontmatter:O}=f();return w.setup(),(f,x)=>{let S=m,C=g,w=r(`click`);return e(),l(h,u(n(d(p)(d(O),59))),{default:s(()=>[x[6]||=a(`h1`,null,`What the network is asked to do`,-1),x[7]||=a(`p`,null,[i(`Given a noisy image and its noise level, `),a(`strong`,null,`predict the noise that was added`),i(`.`)],-1),a(`div`,_,[t(S,{pattern:`smiley`,noise:.5,seed:31,size:74,tone:`accent`,label:`xₜ`}),x[1]||=a(`span`,{class:`dl-op`},`, t →`,-1),x[2]||=a(`svg`,{viewBox:`0 0 120 80`,width:`120`,height:`80`,role:`img`,"aria-label":`the denoising network`},[a(`polygon`,{class:`dl-dg-net`,points:`4,10 58,30 58,50 4,70`}),a(`polygon`,{class:`dl-dg-net`,points:`116,10 62,30 62,50 116,70`}),a(`text`,{class:`dl-dg-in`,x:`60`,y:`78`,"text-anchor":`middle`},[i(`ε`),a(`tspan`,{"baseline-shift":`sub`,style:{"font-size":`10px`}},`θ`)])],-1),x[3]||=a(`span`,{class:`dl-op`},`→`,-1),t(S,{pattern:`noise`,seed:31,size:74,label:`predicted ε`}),c((e(),o(`span`,v,[...x[0]||=[i(`⇒ remove some ⇒`,-1)]])),[[w]]),c(t(S,{pattern:`smiley`,noise:.12,seed:32,size:74,tone:`accent`,label:`a step cleaner`},null,512),[[w]])]),a(`div`,y,[t(C,{ranges:[]},{default:s(()=>[...x[4]||=[a(`p`,null,[a(`span`,{class:`katex-display`},[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`,display:`block`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,{mathvariant:`script`},`L`),a(`mtext`,null,`  `),a(`mo`,null,`=`),a(`mtext`,null,`  `),a(`msub`,null,[a(`mi`,{mathvariant:`double-struck`},`E`),a(`mrow`,null,[a(`msub`,null,[a(`mi`,{mathvariant:`bold`},`x`),a(`mn`,null,`0`)]),a(`mo`,{separator:`true`},`,`),a(`mtext`,null,` `),a(`mi`,null,`t`),a(`mo`,{separator:`true`},`,`),a(`mtext`,null,` `),a(`mi`,{mathvariant:`bold-italic`},`ϵ`)])]),a(`mo`,{fence:`false`,stretchy:`true`,minsize:`1.8em`,maxsize:`1.8em`},`[`),a(`mo`,{fence:`false`,stretchy:`true`,minsize:`1.2em`,maxsize:`1.2em`},`∥`),a(`mi`,{mathvariant:`bold-italic`},`ϵ`),a(`mo`,null,`−`),a(`msub`,null,[a(`mi`,{mathvariant:`bold-italic`},`ϵ`),a(`mi`,null,`θ`)]),a(`mo`,{stretchy:`false`},`(`),a(`msub`,null,[a(`mi`,{mathvariant:`bold`},`x`),a(`mi`,null,`t`)]),a(`mo`,{separator:`true`},`,`),a(`mi`,null,`t`),a(`mo`,{stretchy:`false`},`)`),a(`msup`,null,[a(`mo`,{fence:`false`,stretchy:`true`,minsize:`1.2em`,maxsize:`1.2em`},`∥`),a(`mn`,null,`2`)]),a(`mo`,{fence:`false`,stretchy:`true`,minsize:`1.8em`,maxsize:`1.8em`},`]`)]),a(`annotation`,{encoding:`application/x-tex`},`\\mathcal{L} \\;=\\; \\mathbb{E}_{\\mathbf{x}_0,\\, t,\\, \\boldsymbol\\epsilon}\\Big[\\big\\lVert \\boldsymbol\\epsilon - \\boldsymbol\\epsilon_\\theta(\\mathbf{x}_t, t) \\big\\rVert^2\\Big] `)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),a(`span`,{class:`mord mathcal`},`L`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`=`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1.8em`,"vertical-align":`-0.65em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord mathbb`},`E`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.2806em`}},[a(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mtight`},[a(`span`,{class:`mord mtight`},[a(`span`,{class:`mord mathbf mtight`},`x`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.3173em`}},[a(`span`,{style:{top:`-2.357em`,"margin-left":`0em`,"margin-right":`0.0714em`}},[a(`span`,{class:`pstrut`,style:{height:`2.5em`}}),a(`span`,{class:`katex-sizing reset-size3 size1 mtight`},[a(`span`,{class:`mord mtight`},`0`)])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.143em`}},[a(`span`)])])])])]),a(`span`,{class:`mpunct mtight`},`,`),a(`span`,{class:`mspace mtight`,style:{"margin-right":`0.1952em`}}),a(`span`,{class:`mord mathnormal mtight`},`t`),a(`span`,{class:`mpunct mtight`},`,`),a(`span`,{class:`mspace mtight`,style:{"margin-right":`0.1952em`}}),a(`span`,{class:`mord mtight`},[a(`span`,{class:`mord mtight`},[a(`span`,{class:`mord boldsymbol mtight`},`ϵ`)])])])])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.2861em`}},[a(`span`)])])])])]),a(`span`,{class:`mord`},[a(`span`,{class:`delimsizing size2`},`[`)]),a(`span`,{class:`mord`},[a(`span`,{class:`delimsizing mult`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.85em`}},[a(`span`,{style:{top:`-2.85em`}},[a(`span`,{class:`pstrut`,style:{height:`3.2em`}}),a(`span`,{style:{width:`0.556em`,height:`1.2em`}},[a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`0.556em`,height:`1.2em`,viewBox:`0 0 556 1200`},[a(`path`,{d:`M145 15 v585 v0 v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v0 v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v0 v585 h43z +M367 15 v585 v0 v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v0 v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v0 v585 h43z`})])])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.35em`}},[a(`span`)])])])])]),a(`span`,{class:`mord`},[a(`span`,{class:`mord`},[a(`span`,{class:`mord boldsymbol`},`ϵ`)])]),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),a(`span`,{class:`mbin`},`−`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1.8em`,"vertical-align":`-0.65em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord`},[a(`span`,{class:`mord`},[a(`span`,{class:`mord boldsymbol`},`ϵ`)])]),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.3361em`}},[a(`span`,{style:{top:`-2.55em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0278em`}},`θ`)])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.15em`}},[a(`span`)])])])])]),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord`},[a(`span`,{class:`mord mathbf`},`x`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.2806em`}},[a(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mathnormal mtight`},`t`)])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.15em`}},[a(`span`)])])])])]),a(`span`,{class:`mpunct`},`,`),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mord mathnormal`},`t`),a(`span`,{class:`mclose`},`)`),a(`span`,{class:`mord`},[a(`span`,{class:`mord`},[a(`span`,{class:`delimsizing mult`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.85em`}},[a(`span`,{style:{top:`-2.85em`}},[a(`span`,{class:`pstrut`,style:{height:`3.2em`}}),a(`span`,{style:{width:`0.556em`,height:`1.2em`}},[a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`0.556em`,height:`1.2em`,viewBox:`0 0 556 1200`},[a(`path`,{d:`M145 15 v585 v0 v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v0 v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v0 v585 h43z +M367 15 v585 v0 v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v0 v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v0 v585 h43z`})])])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.35em`}},[a(`span`)])])])])]),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`1.054em`}},[a(`span`,{style:{top:`-3.3029em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mtight`},`2`)])])])])])])]),a(`span`,{class:`mord`},[a(`span`,{class:`delimsizing size2`},`]`)])])])])])],-1)]]),_:1})]),c((e(),o(`div`,b,[...x[5]||=[a(`p`,null,[i(`A `),a(`strong`,null,`mean squared error`),i(`, on noise. `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`t`)]),a(`annotation`,{encoding:`application/x-tex`},`t`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6151em`}}),a(`span`,{class:`mord mathnormal`},`t`)])])]),i(` is an input, so `),a(`strong`,null,`one`),i(` network covers every noise level.`)],-1)]])),[[w]])]),_:1},16)}}};export{x as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-DaOoBfG8.js b/lecture-07/assets/md-DaOoBfG8.js new file mode 100644 index 0000000000000000000000000000000000000000..f969f2a59abe7db2517f5ab870586aca80ecc5df --- /dev/null +++ b/lecture-07/assets/md-DaOoBfG8.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,S as i,_ as a,b as o,et as s,tt as c,v as l,xt as u,yt as d}from"./modules/shiki-CJZsCeMT.js";import{n as f,t as p}from"./slidev/context-DB-9afGB.js";import{t as m}from"./default-CbJk4Idc.js";import{t as h}from"./slidev/VClicks-DhU7uhQr.js";var g={class:`grid grid-cols-[1.45fr_1fr] gap-5 mt-1 items-start`},_={class:`dl-ledger dl-tight dl-eq-legend`},v={class:`dl-callout`},y={__name:`slides.md__slidev_30`,setup(y){let{$slidev:b,$nav:x,$clicksContext:S,$clicks:C,$page:w,$renderContext:T,$frontmatter:E}=f();return S.setup(),(f,y)=>{let b=h,x=r(`click`);return e(),l(m,u(n(d(p)(d(E),29))),{default:s(()=>[y[3]||=a(`h1`,null,`Reading the equation: the value function`,-1),a(`div`,g,[a(`div`,_,[t(b,null,{default:s(()=>[...y[0]||=[a(`table`,null,[a(`thead`,null,[a(`tr`,null,[a(`th`,null,`symbol`),a(`th`,null,`name`),a(`th`,null,`what it is here`),a(`th`,null,`example`)])]),a(`tbody`,null,[a(`tr`,null,[a(`td`,null,[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`D`),a(`mo`,{stretchy:`false`},`(`),a(`mi`,{mathvariant:`bold`},`x`),a(`mo`,{stretchy:`false`},`)`)]),a(`annotation`,{encoding:`application/x-tex`},`D(\\mathbf{x})`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0278em`}},`D`),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord mathbf`},`x`),a(`span`,{class:`mclose`},`)`)])])])]),a(`td`,null,`discriminator output`),a(`td`,null,[i(`chance that `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,{mathvariant:`bold`},`x`)]),a(`annotation`,{encoding:`application/x-tex`},`\\mathbf{x}`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.4444em`}}),a(`span`,{class:`mord mathbf`},`x`)])])]),i(` is real`)]),a(`td`,null,`0.9`)]),a(`tr`,null,[a(`td`,null,[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,{mathvariant:`bold`},`x`),a(`mo`,null,`∼`),a(`msub`,null,[a(`mi`,null,`p`),a(`mtext`,null,`data`)])]),a(`annotation`,{encoding:`application/x-tex`},`\\mathbf{x} \\sim p_{\\text{data}}`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.4444em`}}),a(`span`,{class:`mord mathbf`},`x`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`∼`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.625em`,"vertical-align":`-0.1944em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord mathnormal`},`p`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.3361em`}},[a(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mtight`},[a(`span`,{class:`mord text mtight`},[a(`span`,{class:`mord mtight`},`data`)])])])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.15em`}},[a(`span`)])])])])])])])])]),a(`td`,null,`real sample`),a(`td`,null,`drawn from the data`),a(`td`,null,`the heart`)]),a(`tr`,null,[a(`td`,null,[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,{mathvariant:`bold`},`z`),a(`mo`,null,`∼`),a(`msub`,null,[a(`mi`,null,`p`),a(`mi`,{mathvariant:`bold`},`z`)])]),a(`annotation`,{encoding:`application/x-tex`},`\\mathbf{z} \\sim p_{\\mathbf{z}}`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.4444em`}}),a(`span`,{class:`mord mathbf`},`z`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`∼`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.625em`,"vertical-align":`-0.1944em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord mathnormal`},`p`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.1611em`}},[a(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mtight`},[a(`span`,{class:`mord mathbf mtight`},`z`)])])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.15em`}},[a(`span`)])])])])])])])])]),a(`td`,null,`noise vector`),a(`td`,null,`random numbers, fixed bell curve`),a(`td`)]),a(`tr`,null,[a(`td`,null,[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`G`),a(`mo`,{stretchy:`false`},`(`),a(`mi`,{mathvariant:`bold`},`z`),a(`mo`,{stretchy:`false`},`)`)]),a(`annotation`,{encoding:`application/x-tex`},`G(\\mathbf{z})`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),a(`span`,{class:`mord mathnormal`},`G`),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord mathbf`},`z`),a(`span`,{class:`mclose`},`)`)])])])]),a(`td`,null,`generator output`),a(`td`,null,`a fake image`),a(`td`,null,`the noisy smiley`)]),a(`tr`,null,[a(`td`,null,[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`msup`,null,[a(`mi`,null,`θ`),a(`mrow`,null,[a(`mo`,{stretchy:`false`},`(`),a(`mi`,null,`D`),a(`mo`,{stretchy:`false`},`)`)])]),a(`mo`,{separator:`true`},`,`),a(`msup`,null,[a(`mi`,null,`θ`),a(`mrow`,null,[a(`mo`,{stretchy:`false`},`(`),a(`mi`,null,`G`),a(`mo`,{stretchy:`false`},`)`)])])]),a(`annotation`,{encoding:`application/x-tex`},`\\theta^{(D)}, \\theta^{(G)}`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1.0824em`,"vertical-align":`-0.1944em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0278em`}},`θ`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.888em`}},[a(`span`,{style:{top:`-3.063em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mtight`},[a(`span`,{class:`mopen mtight`},`(`),a(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0278em`}},`D`),a(`span`,{class:`mclose mtight`},`)`)])])])])])])])]),a(`span`,{class:`mpunct`},`,`),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0278em`}},`θ`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.888em`}},[a(`span`,{style:{top:`-3.063em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mtight`},[a(`span`,{class:`mopen mtight`},`(`),a(`span`,{class:`mord mathnormal mtight`},`G`),a(`span`,{class:`mclose mtight`},`)`)])])])])])])])])])])])]),a(`td`,null,`parameters`),a(`td`,null,[i(`weights of `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`D`)]),a(`annotation`,{encoding:`application/x-tex`},`D`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0278em`}},`D`)])])]),i(` and `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`G`)]),a(`annotation`,{encoding:`application/x-tex`},`G`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),a(`span`,{class:`mord mathnormal`},`G`)])])]),i(` (learned)`)]),a(`td`)]),a(`tr`,null,[a(`td`,null,[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,{mathvariant:`double-struck`},`E`),a(`mo`,{stretchy:`false`},`[`),a(`mo`,null,`⋅`),a(`mo`,{stretchy:`false`},`]`)]),a(`annotation`,{encoding:`application/x-tex`},`\\mathbb{E}[\\cdot]`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),a(`span`,{class:`mord mathbb`},`E`),a(`span`,{class:`mopen`},`[`),a(`span`,{class:`mord`},`⋅`),a(`span`,{class:`mclose`},`]`)])])])]),a(`td`,null,`expectation`),a(`td`,null,`average over a batch`),a(`td`)]),a(`tr`,null,[a(`td`,null,[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`log`),a(`mo`,null,`⁡`)]),a(`annotation`,{encoding:`application/x-tex`},`\\log`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.8889em`,"vertical-align":`-0.1944em`}}),a(`span`,{class:`mop`},[i(`lo`),a(`span`,{style:{"margin-right":`0.0139em`}},`g`)])])])])]),a(`td`,null,`natural logarithm`),a(`td`,null,[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`ln`),a(`mo`,null,`⁡`)]),a(`annotation`,{encoding:`application/x-tex`},`\\ln`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6944em`}}),a(`span`,{class:`mop`},`ln`)])])]),i(`; `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`log`),a(`mo`,null,`⁡`),a(`mn`,null,`1`),a(`mo`,null,`=`),a(`mn`,null,`0`)]),a(`annotation`,{encoding:`application/x-tex`},`\\log 1 = 0`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.8889em`,"vertical-align":`-0.1944em`}}),a(`span`,{class:`mop`},[i(`lo`),a(`span`,{style:{"margin-right":`0.0139em`}},`g`)]),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mord`},`1`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`=`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),a(`span`,{class:`mord`},`0`)])])]),i(`, `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`log`),a(`mo`,null,`⁡`),a(`mn`,null,`0.5`),a(`mo`,null,`=`),a(`mo`,null,`−`),a(`mn`,null,`0.69`)]),a(`annotation`,{encoding:`application/x-tex`},`\\log 0.5 = -0.69`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.8889em`,"vertical-align":`-0.1944em`}}),a(`span`,{class:`mop`},[i(`lo`),a(`span`,{style:{"margin-right":`0.0139em`}},`g`)]),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mord`},`0.5`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`=`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.7278em`,"vertical-align":`-0.0833em`}}),a(`span`,{class:`mord`},`−`),a(`span`,{class:`mord`},`0.69`)])])])]),a(`td`)]),a(`tr`,null,[a(`td`,null,[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`V`)]),a(`annotation`,{encoding:`application/x-tex`},`V`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.2222em`}},`V`)])])])]),a(`td`,null,`value`),a(`td`,null,[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`D`)]),a(`annotation`,{encoding:`application/x-tex`},`D`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0278em`}},`D`)])])]),i(` raises it, `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`G`)]),a(`annotation`,{encoding:`application/x-tex`},`G`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),a(`span`,{class:`mord mathnormal`},`G`)])])]),i(` lowers it`)]),a(`td`,null,[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mo`,null,`−`),a(`mn`,null,`0.21`)]),a(`annotation`,{encoding:`application/x-tex`},`-0.21`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.7278em`,"vertical-align":`-0.0833em`}}),a(`span`,{class:`mord`},`−`),a(`span`,{class:`mord`},`0.21`)])])])])])])],-1)]]),_:1})]),a(`div`,null,[y[2]||=a(`svg`,{viewBox:`0 0 300 130`,class:`dl-diagram`,role:`img`,"aria-label":`A number line for V from minus 1.5 to 0: a guessing discriminator scores minus 1.386, a good discriminator scores minus 0.21`},[a(`line`,{class:`dl-dg-split`,x1:`10`,y1:`70`,x2:`290`,y2:`70`}),a(`text`,{class:`dl-dg-small`,x:`10`,y:`92`},`−1.5`),a(`text`,{class:`dl-dg-small`,x:`290`,y:`92`,"text-anchor":`end`},`0`),a(`circle`,{class:`dl-dg-dot is-bad`,cx:`31`,cy:`70`,r:`6`}),a(`text`,{class:`dl-dg-small is-bad`,x:`31`,y:`52`},`guessing: −1.39`),a(`circle`,{class:`dl-dg-dot`,cx:`251`,cy:`70`,r:`6`}),a(`text`,{class:`dl-dg-small is-good`,x:`251`,y:`52`,"text-anchor":`middle`},`good D: −0.21`),a(`text`,{class:`dl-dg-small`,x:`150`,y:`118`,"text-anchor":`middle`},`D pushes V right, G pushes it left`)],-1),c((e(),o(`div`,v,[...y[1]||=[a(`p`,null,[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`D`),a(`mo`,{stretchy:`false`},`(`),a(`mi`,{mathvariant:`bold`},`x`),a(`mo`,{stretchy:`false`},`)`),a(`mo`,null,`=`),a(`mn`,null,`0.9`)]),a(`annotation`,{encoding:`application/x-tex`},`D(\\mathbf{x}) = 0.9`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0278em`}},`D`),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord mathbf`},`x`),a(`span`,{class:`mclose`},`)`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`=`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),a(`span`,{class:`mord`},`0.9`)])])]),i(` and `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`D`),a(`mo`,{stretchy:`false`},`(`),a(`mi`,null,`G`),a(`mo`,{stretchy:`false`},`(`),a(`mi`,{mathvariant:`bold`},`z`),a(`mo`,{stretchy:`false`},`)`),a(`mo`,{stretchy:`false`},`)`),a(`mo`,null,`=`),a(`mn`,null,`0.1`)]),a(`annotation`,{encoding:`application/x-tex`},`D(G(\\mathbf{z})) = 0.1`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0278em`}},`D`),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord mathnormal`},`G`),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord mathbf`},`z`),a(`span`,{class:`mclose`},`))`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`=`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),a(`span`,{class:`mord`},`0.1`)])])]),i(`:`)],-1),a(`p`,null,[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`V`),a(`mo`,null,`=`),a(`mi`,null,`ln`),a(`mo`,null,`⁡`),a(`mn`,null,`0.9`),a(`mo`,null,`+`),a(`mi`,null,`ln`),a(`mo`,null,`⁡`),a(`mo`,{stretchy:`false`},`(`),a(`mn`,null,`1`),a(`mo`,null,`−`),a(`mn`,null,`0.1`),a(`mo`,{stretchy:`false`},`)`),a(`mo`,null,`=`),a(`mo`,null,`−`),a(`mn`,null,`0.21`)]),a(`annotation`,{encoding:`application/x-tex`},`V = \\ln 0.9 + \\ln(1 - 0.1) = -0.21`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.2222em`}},`V`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`=`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.7778em`,"vertical-align":`-0.0833em`}}),a(`span`,{class:`mop`},`ln`),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mord`},`0.9`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),a(`span`,{class:`mbin`},`+`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),a(`span`,{class:`mop`},`ln`),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord`},`1`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),a(`span`,{class:`mbin`},`−`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),a(`span`,{class:`mord`},`0.1`),a(`span`,{class:`mclose`},`)`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`=`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.7278em`,"vertical-align":`-0.0833em`}}),a(`span`,{class:`mord`},`−`),a(`span`,{class:`mord`},`0.21`)])])])],-1),a(`p`,null,[i(`Guessing, 0.5 on both: `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`V`),a(`mo`,null,`=`),a(`mn`,null,`2`),a(`mi`,null,`ln`),a(`mo`,null,`⁡`),a(`mn`,null,`0.5`),a(`mo`,null,`=`),a(`mo`,null,`−`),a(`mn`,null,`1.386`)]),a(`annotation`,{encoding:`application/x-tex`},`V = 2\\ln 0.5 = -1.386`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.2222em`}},`V`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`=`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6944em`}}),a(`span`,{class:`mord`},`2`),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mop`},`ln`),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mord`},`0.5`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`=`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.7278em`,"vertical-align":`-0.0833em`}}),a(`span`,{class:`mord`},`−`),a(`span`,{class:`mord`},`1.386`)])])])],-1)]])),[[x]])])])]),_:1},16)}}};export{y as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-DeHSIZPu.js b/lecture-07/assets/md-DeHSIZPu.js new file mode 100644 index 0000000000000000000000000000000000000000..c887e318d822a34a1af8e0668b5354acce5a123b --- /dev/null +++ b/lecture-07/assets/md-DeHSIZPu.js @@ -0,0 +1 @@ +import{B as e,C as t,Ct as n,D as r,G as i,H as a,S as o,_ as s,b as c,et as l,m as u,tt as d,v as f,xt as p,yt as m}from"./modules/shiki-CJZsCeMT.js";import{n as h,t as g}from"./slidev/context-DB-9afGB.js";import{t as _}from"./PixelImage-C1NqQXMF.js";import{t as v}from"./default-CbJk4Idc.js";import{t as y}from"./slidev/VClicks-DhU7uhQr.js";import{t as b}from"./Citation-CcKhBxpe.js";var x={class:`mt-2 flex justify-center`},S={viewBox:`0 0 660 170`,class:`dl-diagram is-sm-h`,role:`img`,"aria-label":`Adding noise step by step turns an image into pure noise with no learning; a network learns to undo one step at a time`},C=[`x`],w={class:`dl-tight`},T={class:`mt-2`},E={__name:`slides.md__slidev_56`,setup(E){let{$slidev:D,$nav:O,$clicksContext:k,$clicks:A,$page:j,$renderContext:M,$frontmatter:N}=h();return k.setup(),(h,E)=>{let D=_,O=y,k=b,A=i(`click`);return e(),f(v,p(r(m(g)(m(N),55))),{default:l(()=>[E[5]||=s(`h1`,null,`Destroying an image is easy`,-1),E[6]||=s(`p`,null,`The adversarial game exists because we could not write down a loss. Diffusion finds one: learn to reverse a simple noising process.`,-1),s(`div`,x,[(e(),c(`svg`,S,[E[1]||=s(`defs`,null,[s(`marker`,{id:`df-arrow`,markerWidth:`7`,markerHeight:`7`,refX:`6`,refY:`3.5`,orient:`auto`},[s(`path`,{class:`dl-dg-head`,d:`M0 0 L7 3.5 L0 7 z`})])],-1),E[2]||=s(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#df-arrow)`,d:`M40 22 H620`},null,-1),E[3]||=s(`text`,{class:`dl-dg-small`,x:`330`,y:`14`,"text-anchor":`middle`},`add a little noise, repeat — arithmetic, no network`,-1),(e(),c(u,null,a([0,.15,.35,.6,.85,1],(e,r)=>s(`g`,{key:r},[t(D,{"in-svg":``,x:20+r*108,y:34,size:84,pattern:`smiley`,noise:e,seed:31},null,8,[`x`,`noise`]),s(`text`,{class:`dl-dg-small`,x:62+r*108,y:`132`,"text-anchor":`middle`},`t = `+n([0,200,400,600,800,1e3][r]),9,C)])),64)),d((e(),c(`g`,null,[...E[0]||=[s(`path`,{class:`dl-dg-grad is-good`,"marker-end":`url(#df-arrow)`,d:`M620 146 H40`},null,-1),s(`text`,{class:`dl-dg-small is-good`,x:`330`,y:`164`,"text-anchor":`middle`},`generate: learn to undo ONE small step, then repeat`,-1)]])),[[A]])]))]),s(`div`,w,[t(O,null,{default:l(()=>[...E[4]||=[s(`ul`,null,[s(`li`,null,[o(`Undoing a `),s(`em`,null,`little`),o(` noise is plain regression — MSE`)]),s(`li`,null,`So one hard problem (noise → image) becomes a thousand easy steps`)],-1)]]),_:1})]),s(`div`,T,[t(k,{source:`Ho, Jain & Abbeel, Denoising Diffusion Probabilistic Models (2020)`,url:`https://arxiv.org/abs/2006.11239`})])]),_:1},16)}}};export{E as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-DigAyt_G.js b/lecture-07/assets/md-DigAyt_G.js new file mode 100644 index 0000000000000000000000000000000000000000..4abfa6df07a5dcbe46b6e252c30c5b4ef27acd6c --- /dev/null +++ b/lecture-07/assets/md-DigAyt_G.js @@ -0,0 +1 @@ +import{B as e,C as t,Ct as n,D as r,G as i,H as a,S as o,_ as s,b as c,bt as l,et as u,m as d,tt as f,v as p,xt as m,yt as h}from"./modules/shiki-CJZsCeMT.js";import{n as g,t as _}from"./slidev/context-DB-9afGB.js";import{t as v}from"./default-CbJk4Idc.js";import{t as y}from"./slidev/VClicks-DhU7uhQr.js";var b={class:`grid grid-cols-[1.45fr_1fr] gap-5 mt-1 items-start`},x={class:`dl-ledger dl-tight dl-eq-legend`},S={viewBox:`0 0 300 150`,class:`dl-diagram`,role:`img`,"aria-label":`Worked example: input pixels 1, 0, 1, 0; decoded pixels 0.9, 0.2, 0.7, 0.1; squared errors 0.01, 0.04, 0.09, 0.01, which sum to 0.15`},C=[`y`],w=[`x`,`y`],T=[`x`,`y`],E={class:`dl-callout`},D={__name:`slides.md__slidev_21`,setup(D){let{$slidev:O,$nav:k,$clicksContext:A,$clicks:j,$page:M,$renderContext:N,$frontmatter:P}=g();return A.setup(),(g,D)=>{let O=y,k=i(`click`);return e(),p(v,m(r(h(_)(h(P),20))),{default:u(()=>[D[2]||=s(`h1`,null,`Reading the equation: the VAE loss`,-1),s(`div`,b,[s(`div`,x,[t(O,null,{default:u(()=>[...D[0]||=[s(`table`,null,[s(`thead`,null,[s(`tr`,null,[s(`th`,null,`symbol`),s(`th`,null,`name`),s(`th`,null,`what it is here`),s(`th`,null,`example`)])]),s(`tbody`,null,[s(`tr`,null,[s(`td`,null,[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mi`,{mathvariant:`bold`},`x`)]),s(`annotation`,{encoding:`application/x-tex`},`\\mathbf{x}`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.4444em`}}),s(`span`,{class:`mord mathbf`},`x`)])])])]),s(`td`,null,`input`),s(`td`,null,`the image (data)`),s(`td`,null,`4 pixels`)]),s(`tr`,null,[s(`td`,null,[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mi`,null,`q`),s(`mo`,{stretchy:`false`},`(`),s(`mi`,{mathvariant:`bold`},`z`),s(`mo`,null,`∣`),s(`mi`,{mathvariant:`bold`},`x`),s(`mo`,{stretchy:`false`},`)`)]),s(`annotation`,{encoding:`application/x-tex`},`q(\\mathbf{z}\\mid\\mathbf{x})`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),s(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0359em`}},`q`),s(`span`,{class:`mopen`},`(`),s(`span`,{class:`mord mathbf`},`z`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),s(`span`,{class:`mrel`},`∣`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),s(`span`,{class:`mord mathbf`},`x`),s(`span`,{class:`mclose`},`)`)])])])]),s(`td`,null,`encoder distribution`),s(`td`,null,`a bell curve over codes (learned)`),s(`td`,null,[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mi`,null,`μ`),s(`mo`,null,`=`),s(`mn`,null,`1`),s(`mo`,{separator:`true`},`,`),s(`mtext`,null,`\xA0`),s(`mi`,null,`σ`),s(`mo`,null,`=`),s(`mn`,null,`0.5`)]),s(`annotation`,{encoding:`application/x-tex`},`\\mu = 1,\\ \\sigma = 0.5`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.625em`,"vertical-align":`-0.1944em`}}),s(`span`,{class:`mord mathnormal`},`μ`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),s(`span`,{class:`mrel`},`=`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.8389em`,"vertical-align":`-0.1944em`}}),s(`span`,{class:`mord`},`1`),s(`span`,{class:`mpunct`},`,`),s(`span`,{class:`mspace`},`\xA0`),s(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),s(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0359em`}},`σ`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),s(`span`,{class:`mrel`},`=`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),s(`span`,{class:`mord`},`0.5`)])])])])]),s(`tr`,null,[s(`td`,null,[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mi`,{mathvariant:`bold`},`z`)]),s(`annotation`,{encoding:`application/x-tex`},`\\mathbf{z}`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.4444em`}}),s(`span`,{class:`mord mathbf`},`z`)])])])]),s(`td`,null,`latent code`),s(`td`,null,[o(`one sample from `),s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mi`,null,`q`)]),s(`annotation`,{encoding:`application/x-tex`},`q`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.625em`,"vertical-align":`-0.1944em`}}),s(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0359em`}},`q`)])])])]),s(`td`,null,`1.2`)]),s(`tr`,null,[s(`td`,null,[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mi`,null,`g`),s(`mo`,{stretchy:`false`},`(`),s(`mi`,{mathvariant:`bold`},`z`),s(`mo`,{stretchy:`false`},`)`)]),s(`annotation`,{encoding:`application/x-tex`},`g(\\mathbf{z})`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),s(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0359em`}},`g`),s(`span`,{class:`mopen`},`(`),s(`span`,{class:`mord mathbf`},`z`),s(`span`,{class:`mclose`},`)`)])])])]),s(`td`,null,`decoder output`),s(`td`,null,`the rebuilt image (learned)`),s(`td`,null,`4 pixels`)]),s(`tr`,null,[s(`td`,null,[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`msub`,null,[s(`mi`,{mathvariant:`double-struck`},`E`),s(`mi`,null,`q`)]),s(`mo`,{stretchy:`false`},`[`),s(`mo`,null,`⋅`),s(`mo`,{stretchy:`false`},`]`)]),s(`annotation`,{encoding:`application/x-tex`},`\\mathbb{E}_q[\\cdot]`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`1.0361em`,"vertical-align":`-0.2861em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mord mathbb`},`E`),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t vlist-t2`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.1514em`}},[s(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0359em`}},`q`)])])]),s(`span`,{class:`vlist-s`},`​`)]),s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.2861em`}},[s(`span`)])])])])]),s(`span`,{class:`mopen`},`[`),s(`span`,{class:`mord`},`⋅`),s(`span`,{class:`mclose`},`]`)])])])]),s(`td`,null,`expectation`),s(`td`,null,[o(`average over samples of `),s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mi`,{mathvariant:`bold`},`z`)]),s(`annotation`,{encoding:`application/x-tex`},`\\mathbf{z}`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.4444em`}}),s(`span`,{class:`mord mathbf`},`z`)])])])]),s(`td`,null,`1 sample`)]),s(`tr`,null,[s(`td`,null,[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mo`,{stretchy:`false`},`∥`),s(`mo`,null,`⋅`),s(`msup`,null,[s(`mo`,{stretchy:`false`},`∥`),s(`mn`,null,`2`)])]),s(`annotation`,{encoding:`application/x-tex`},`\\lVert\\cdot\\rVert^2`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`1.0641em`,"vertical-align":`-0.25em`}}),s(`span`,{class:`mopen`},`∥`),s(`span`,{class:`mord`},`⋅`),s(`span`,{class:`mclose`},[s(`span`,{class:`mclose`},`∥`),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.8141em`}},[s(`span`,{style:{top:`-3.063em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mtight`},`2`)])])])])])])])])])])]),s(`td`,null,`squared length`),s(`td`,null,`sum of squared pixel errors`),s(`td`,null,`0.15`)]),s(`tr`,null,[s(`td`,null,[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mi`,{mathvariant:`normal`},`K`),s(`mi`,{mathvariant:`normal`},`L`)]),s(`annotation`,{encoding:`application/x-tex`},`\\mathrm{KL}`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mord mathrm`},`KL`)])])])])]),s(`td`,null,`KL divergence`),s(`td`,null,`gap between two distributions`),s(`td`,null,`0.82`)]),s(`tr`,null,[s(`td`,null,[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mi`,{mathvariant:`script`},`N`),s(`mo`,{stretchy:`false`},`(`),s(`mn`,{mathvariant:`bold`},`0`),s(`mo`,{separator:`true`},`,`),s(`mi`,null,`I`),s(`mo`,{stretchy:`false`},`)`)]),s(`annotation`,{encoding:`application/x-tex`},`\\mathcal{N}(\\mathbf{0}, I)`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),s(`span`,{class:`mord mathcal`,style:{"margin-right":`0.1474em`}},`N`),s(`span`,{class:`mopen`},`(`),s(`span`,{class:`mord mathbf`},`0`),s(`span`,{class:`mpunct`},`,`),s(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),s(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0785em`}},`I`),s(`span`,{class:`mclose`},`)`)])])])]),s(`td`,null,`standard normal`),s(`td`,null,`the prior: mean 0, spread 1`),s(`td`)]),s(`tr`,null,[s(`td`,null,[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mi`,null,`β`)]),s(`annotation`,{encoding:`application/x-tex`},`\\beta`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.8889em`,"vertical-align":`-0.1944em`}}),s(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0528em`}},`β`)])])])]),s(`td`,null,`KL weight`),s(`td`,null,`set by hand`),s(`td`,null,`1`)]),s(`tr`,null,[s(`td`,null,[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mi`,{mathvariant:`script`},`L`)]),s(`annotation`,{encoding:`application/x-tex`},`\\mathcal{L}`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),s(`span`,{class:`mord mathcal`},`L`)])])])]),s(`td`,null,`loss`),s(`td`,null,`minimised in training`),s(`td`,null,`0.97`)])])],-1)]]),_:1})]),s(`div`,null,[(e(),c(`svg`,S,[(e(),c(d,null,a([[`x`,[`1`,`0`,`1`,`0`]],[`g(z)`,[`0.9`,`0.2`,`0.7`,`0.1`]],[`error²`,[`0.01`,`0.04`,`0.09`,`0.01`]]],(t,r)=>s(`g`,{key:r},[s(`text`,{class:`dl-dg-small`,x:`60`,y:30+r*44,"text-anchor":`end`},n(t[0]),9,C),(e(!0),c(d,null,a(t[1],(t,i)=>(e(),c(`g`,{key:i},[s(`rect`,{class:l([`dl-dg-box`,r===2?`is-accent`:``]),x:72+i*54,y:10+r*44,width:`46`,height:`30`,rx:`3`},null,10,w),s(`text`,{class:`dl-dg-lab is-sm`,x:95+i*54,y:30+r*44,"text-anchor":`middle`},n(t),9,T)]))),128))])),64))])),f((e(),c(`div`,E,[...D[1]||=[s(`p`,null,[o(`Rebuild: `),s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`msup`,null,[s(`mn`,null,`0.1`),s(`mn`,null,`2`)]),s(`mo`,null,`+`),s(`msup`,null,[s(`mn`,null,`0.2`),s(`mn`,null,`2`)]),s(`mo`,null,`+`),s(`msup`,null,[s(`mn`,null,`0.3`),s(`mn`,null,`2`)]),s(`mo`,null,`+`),s(`msup`,null,[s(`mn`,null,`0.1`),s(`mn`,null,`2`)]),s(`mo`,null,`=`),s(`mn`,null,`0.15`)]),s(`annotation`,{encoding:`application/x-tex`},`0.1^2 + 0.2^2 + 0.3^2 + 0.1^2 = 0.15`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.8974em`,"vertical-align":`-0.0833em`}}),s(`span`,{class:`mord`},`0.`),s(`span`,{class:`mord`},[s(`span`,{class:`mord`},`1`),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.8141em`}},[s(`span`,{style:{top:`-3.063em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mtight`},`2`)])])])])])])]),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),s(`span`,{class:`mbin`},`+`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.8974em`,"vertical-align":`-0.0833em`}}),s(`span`,{class:`mord`},`0.`),s(`span`,{class:`mord`},[s(`span`,{class:`mord`},`2`),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.8141em`}},[s(`span`,{style:{top:`-3.063em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mtight`},`2`)])])])])])])]),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),s(`span`,{class:`mbin`},`+`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.8974em`,"vertical-align":`-0.0833em`}}),s(`span`,{class:`mord`},`0.`),s(`span`,{class:`mord`},[s(`span`,{class:`mord`},`3`),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.8141em`}},[s(`span`,{style:{top:`-3.063em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mtight`},`2`)])])])])])])]),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),s(`span`,{class:`mbin`},`+`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.8141em`}}),s(`span`,{class:`mord`},`0.`),s(`span`,{class:`mord`},[s(`span`,{class:`mord`},`1`),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.8141em`}},[s(`span`,{style:{top:`-3.063em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mtight`},`2`)])])])])])])]),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),s(`span`,{class:`mrel`},`=`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),s(`span`,{class:`mord`},`0.15`)])])])],-1),s(`p`,null,[o(`KL, one code number: `),s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mstyle`,{scriptlevel:`0`,displaystyle:`false`},[s(`mfrac`,null,[s(`mn`,null,`1`),s(`mn`,null,`2`)])]),s(`mo`,{stretchy:`false`},`(`),s(`msup`,null,[s(`mi`,null,`μ`),s(`mn`,null,`2`)]),s(`mo`,null,`+`),s(`msup`,null,[s(`mi`,null,`σ`),s(`mn`,null,`2`)]),s(`mo`,null,`−`),s(`mn`,null,`1`),s(`mo`,null,`−`),s(`mi`,null,`ln`),s(`mo`,null,`⁡`),s(`msup`,null,[s(`mi`,null,`σ`),s(`mn`,null,`2`)]),s(`mo`,{stretchy:`false`},`)`),s(`mo`,null,`=`),s(`mn`,null,`0.82`)]),s(`annotation`,{encoding:`application/x-tex`},`\\tfrac12(\\mu^2 + \\sigma^2 - 1 - \\ln\\sigma^2) = 0.82`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`1.1901em`,"vertical-align":`-0.345em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mopen nulldelimiter`}),s(`span`,{class:`mfrac`},[s(`span`,{class:`vlist-t vlist-t2`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.8451em`}},[s(`span`,{style:{top:`-2.655em`}},[s(`span`,{class:`pstrut`,style:{height:`3em`}}),s(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mtight`},[s(`span`,{class:`mord mtight`},`2`)])])]),s(`span`,{style:{top:`-3.23em`}},[s(`span`,{class:`pstrut`,style:{height:`3em`}}),s(`span`,{class:`frac-line`,style:{"border-bottom-width":`0.04em`}})]),s(`span`,{style:{top:`-3.394em`}},[s(`span`,{class:`pstrut`,style:{height:`3em`}}),s(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mtight`},[s(`span`,{class:`mord mtight`},`1`)])])])]),s(`span`,{class:`vlist-s`},`​`)]),s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.345em`}},[s(`span`)])])])]),s(`span`,{class:`mclose nulldelimiter`})]),s(`span`,{class:`mopen`},`(`),s(`span`,{class:`mord`},[s(`span`,{class:`mord mathnormal`},`μ`),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.8141em`}},[s(`span`,{style:{top:`-3.063em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mtight`},`2`)])])])])])])]),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),s(`span`,{class:`mbin`},`+`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.8974em`,"vertical-align":`-0.0833em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0359em`}},`σ`),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.8141em`}},[s(`span`,{style:{top:`-3.063em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mtight`},`2`)])])])])])])]),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),s(`span`,{class:`mbin`},`−`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.7278em`,"vertical-align":`-0.0833em`}}),s(`span`,{class:`mord`},`1`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),s(`span`,{class:`mbin`},`−`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`1.0641em`,"vertical-align":`-0.25em`}}),s(`span`,{class:`mop`},`ln`),s(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0359em`}},`σ`),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.8141em`}},[s(`span`,{style:{top:`-3.063em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mtight`},`2`)])])])])])])]),s(`span`,{class:`mclose`},`)`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),s(`span`,{class:`mrel`},`=`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),s(`span`,{class:`mord`},`0.82`)])])])],-1),s(`p`,null,[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mi`,{mathvariant:`script`},`L`),s(`mo`,null,`=`),s(`mn`,null,`0.15`),s(`mo`,null,`+`),s(`mn`,null,`1`),s(`mo`,null,`×`),s(`mn`,null,`0.82`),s(`mo`,null,`=`),s(`mn`,null,`0.97`)]),s(`annotation`,{encoding:`application/x-tex`},`\\mathcal{L} = 0.15 + 1 \\times 0.82 = 0.97`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),s(`span`,{class:`mord mathcal`},`L`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),s(`span`,{class:`mrel`},`=`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.7278em`,"vertical-align":`-0.0833em`}}),s(`span`,{class:`mord`},`0.15`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),s(`span`,{class:`mbin`},`+`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.7278em`,"vertical-align":`-0.0833em`}}),s(`span`,{class:`mord`},`1`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),s(`span`,{class:`mbin`},`×`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),s(`span`,{class:`mord`},`0.82`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),s(`span`,{class:`mrel`},`=`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),s(`span`,{class:`katex-base`},[s(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),s(`span`,{class:`mord`},`0.97`)])])])],-1)]])),[[k]])])])]),_:1},16)}}};export{D as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-Dm9X0aOV.js b/lecture-07/assets/md-Dm9X0aOV.js new file mode 100644 index 0000000000000000000000000000000000000000..9e2003dcebe859f0bb985c786f5df700eec35c66 --- /dev/null +++ b/lecture-07/assets/md-Dm9X0aOV.js @@ -0,0 +1 @@ +import{B as e,C as t,Ct as n,D as r,G as i,H as a,S as o,T as s,_ as c,b as l,bt as u,dt as d,et as f,g as p,m,tt as h,v as g,xt as _,y as v,yt as y}from"./modules/shiki-CJZsCeMT.js";import{t as b}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as x,t as S}from"./slidev/context-DB-9afGB.js";import{S as C,a as w,i as T,n as E,r as D}from"./useGenerative-DhxjRRg5.js";import{t as O}from"./slidev/VClicks-DhU7uhQr.js";import{n as ee,t as k}from"./StepButton-BHTS1uiY.js";import{t as A}from"./interactive-Co6Mxz4S.js";var j={class:`dl-div`},M=[`aria-label`],N=[`x1`],P=[`x`,`y`,`height`],F=[`x`,`y`,`height`],I=[`x`,`y`],L={class:`dl-div__cap`,x:`116`,y:`129`,"text-anchor":`middle`},R={class:`dl-div__table`},z={scope:`row`},B={class:`dl-div__note`},V={key:0},H=26,U=76,W=94,G=22,K=b(s({__name:`DivergenceLab`,setup(r){let{$slidev:i,$nav:s,$clicksContext:h,$clicks:_,$page:b,$renderContext:S,$frontmatter:O}=x(),A=[{key:`start`,label:`early training`,q:w},{key:`mid`,label:`collapsed → mode 2`,q:T},{key:`end`,label:`collapsed → mode 3`,q:D}],K=d(0),q=p(()=>A.map(e=>({...e,s:C(E,e.q)}))),J=p(()=>q.value[K.value]),Y=p(()=>Math.abs(q.value[1].s.js-q.value[2].s.js)<1e-9),X=[{key:`tv`,name:`TV`,note:`half the total gap`},{key:`klPQ`,name:`KL(P‖Q)`,note:`infinite if a mode is missed`},{key:`js`,name:`JS(P‖Q)`,note:`what a GAN minimises`},{key:`em`,name:`EM(P, Q)`,note:`what a WGAN minimises`}];function Z(e,t){let n=e[t];return Number.isFinite(n)?n.toFixed(4):`∞`}function Q(e){return Math.max(e*U,0)}function $(e){return G+e*70}return(r,i)=>{let s=k,d=ee;return e(),g(d,{"max-width":`31rem`,"controls-first":``},{controls:f(()=>[(e(),l(m,null,a(A,(e,n)=>t(s,{key:e.key,label:e.label,variant:n===K.value?`primary`:`ghost`,onClick:e=>K.value=n},null,8,[`label`,`variant`,`onClick`])),64))]),readout:f(()=>[Y.value?(e(),l(`span`,V,` JS gives the two collapsed generators the same score. EM does not — and the one it calls worse is the one whose mass has further to travel. `)):v(`v-if`,!0)]),default:f(()=>[c(`div`,j,[(e(),l(`svg`,{class:`dl-div__chart`,viewBox:`0 0 232 134`,preserveAspectRatio:`xMidYMid meet`,role:`img`,"aria-label":`Real data against the generator: ${J.value.label}`},[c(`line`,{class:`dl-div__axis`,x1:14,x2:224,y1:W,y2:W},null,8,N),(e(!0),l(m,null,a(y(E),(t,r)=>(e(),l(`g`,{key:r},[c(`rect`,{class:`dl-div__real`,x:$(r),width:H,y:W-Q(t),height:Q(t)},null,8,P),c(`rect`,{class:`dl-div__fake`,x:$(r)+H+3,width:H,y:W-Q(J.value.q[r]),height:Q(J.value.q[r])},null,8,F),c(`text`,{class:`dl-div__mode`,x:$(r)+H+1,y:108,"text-anchor":`middle`},n(r+1),9,I)]))),128)),c(`text`,L,` dashed: real P · solid: `+n(J.value.label),1)],8,M)),c(`table`,R,[c(`thead`,null,[c(`tr`,null,[i[0]||=c(`th`,null,null,-1),(e(!0),l(m,null,a(q.value,(t,r)=>(e(),l(`th`,{key:t.key,class:u({"is-shown":r===K.value})},n(t.label),3))),128))])]),c(`tbody`,null,[(e(),l(m,null,a(X,t=>c(`tr`,{key:t.key,class:u({"is-blind":Y.value&&t.key===`js`})},[c(`th`,z,[o(n(t.name)+` `,1),c(`span`,B,n(t.note),1)]),(e(!0),l(m,null,a(q.value,(r,i)=>(e(),l(`td`,{key:r.key,class:u({"is-shown":i===K.value})},n(Z(r.s,t.key)),3))),128))],2)),64))])])])]),_:1})}}}),[[`__scopeId`,`data-v-f408f764`]]),q={class:`mt-2 dl-callout`},J={__name:`slides.md__slidev_50`,setup(n){let{$slidev:a,$nav:s,$clicksContext:u,$clicks:d,$page:p,$renderContext:m,$frontmatter:v}=x();return u.setup(),(n,a)=>{let s=K,u=O,d=i(`click`);return e(),g(A,_(r(y(S)(y(v),49))),{aside:f(n=>[a[2]||=c(`p`,null,`Three generators, four measures. Read the highlighted row across.`,-1),t(u,null,{default:f(()=>[...a[0]||=[c(`ul`,null,[c(`li`,null,[o(`Both collapsed generators score `),c(`span`,{class:`katex`},[c(`span`,{class:`katex-mathml`},[c(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[c(`semantics`,null,[c(`mrow`,null,[c(`mrow`,null,[c(`mi`,{mathvariant:`normal`},`J`),c(`mi`,{mathvariant:`normal`},`S`)]),c(`mo`,null,`=`),c(`mn`,null,`0.3183`)]),c(`annotation`,{encoding:`application/x-tex`},`\\mathrm{JS} = 0.3183`)])])]),c(`span`,{class:`katex-html`,"aria-hidden":`true`},[c(`span`,{class:`katex-base`},[c(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),c(`span`,{class:`mord`},[c(`span`,{class:`mord mathrm`},`JS`)]),c(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),c(`span`,{class:`mrel`},`=`),c(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),c(`span`,{class:`katex-base`},[c(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),c(`span`,{class:`mord`},`0.3183`)])])]),o(`. `),c(`strong`,null,`Identical`)]),c(`li`,null,[c(`span`,{class:`katex`},[c(`span`,{class:`katex-mathml`},[c(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[c(`semantics`,null,[c(`mrow`,null,[c(`mi`,{mathvariant:`normal`},`E`),c(`mi`,{mathvariant:`normal`},`M`)]),c(`annotation`,{encoding:`application/x-tex`},`\\mathrm{EM}`)])])]),c(`span`,{class:`katex-html`,"aria-hidden":`true`},[c(`span`,{class:`katex-base`},[c(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),c(`span`,{class:`mord`},[c(`span`,{class:`mord mathrm`},`EM`)])])])]),o(` says `),c(`span`,{class:`katex`},[c(`span`,{class:`katex-mathml`},[c(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[c(`semantics`,null,[c(`mrow`,null,[c(`mn`,null,`2`),c(`mi`,{mathvariant:`normal`},`/`),c(`mn`,null,`3`)]),c(`annotation`,{encoding:`application/x-tex`},`2/3`)])])]),c(`span`,{class:`katex-html`,"aria-hidden":`true`},[c(`span`,{class:`katex-base`},[c(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),c(`span`,{class:`mord`},`2/3`)])])]),o(` and `),c(`span`,{class:`katex`},[c(`span`,{class:`katex-mathml`},[c(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[c(`semantics`,null,[c(`mrow`,null,[c(`mn`,null,`1`)]),c(`annotation`,{encoding:`application/x-tex`},`1`)])])]),c(`span`,{class:`katex-html`,"aria-hidden":`true`},[c(`span`,{class:`katex-base`},[c(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),c(`span`,{class:`mord`},`1`)])])]),o(` — mode 3 is `),c(`em`,null,`two`),o(` steps from mode 1`)])],-1)]]),_:1}),h((e(),l(`div`,q,[...a[1]||=[c(`p`,null,[o(`JS scores these two the same, so its gradient cannot tell `),c(`span`,{class:`katex`},[c(`span`,{class:`katex-mathml`},[c(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[c(`semantics`,null,[c(`mrow`,null,[c(`mi`,null,`G`)]),c(`annotation`,{encoding:`application/x-tex`},`G`)])])]),c(`span`,{class:`katex-html`,"aria-hidden":`true`},[c(`span`,{class:`katex-base`},[c(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),c(`span`,{class:`mord mathnormal`},`G`)])])]),o(` which is better.`)],-1)]])),[[d]])]),default:f(()=>[t(s)]),_:1},16)}}};export{J as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-DnHkYZkD.js b/lecture-07/assets/md-DnHkYZkD.js new file mode 100644 index 0000000000000000000000000000000000000000..d17f82604f04f191b6a1108c341cdb685f75ea4c --- /dev/null +++ b/lecture-07/assets/md-DnHkYZkD.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,_ as r,et as i,v as a,xt as o,yt as s}from"./modules/shiki-CJZsCeMT.js";import{n as c,t as l}from"./slidev/context-DB-9afGB.js";import{t as u}from"./FamilyGlyph-DyfZ67F0.js";import{t as d}from"./section-CqA-0pFf.js";var f={class:`dl-side-glyph`},p={__name:`slides.md__slidev_10`,setup(p){let{$slidev:m,$nav:h,$clicksContext:g,$clicks:_,$page:v,$renderContext:y,$frontmatter:b}=c();return g.setup(),(c,p)=>{let m=u;return e(),a(d,o(n(s(l)(s(b),9))),{default:i(()=>[p[0]||=r(`h1`,null,`Compress first: autoencoders`,-1),r(`div`,f,[t(m,{kind:`ae`,size:190})])]),_:1},16)}}};export{p as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-DqNt9ZMJ.js b/lecture-07/assets/md-DqNt9ZMJ.js new file mode 100644 index 0000000000000000000000000000000000000000..cef589bcd0320488cd2bfa93566b58d94942d901 --- /dev/null +++ b/lecture-07/assets/md-DqNt9ZMJ.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,S as i,_ as a,b as o,et as s,tt as c,v as l,xt as u,yt as d}from"./modules/shiki-CJZsCeMT.js";import{n as f,t as p}from"./slidev/context-DB-9afGB.js";import{t as m}from"./default-CbJk4Idc.js";import{t as h}from"./slidev/VClicks-DhU7uhQr.js";import{t as g}from"./Plot2D-ifvwvNLG.js";import{t as _}from"./PlotLabel-BuFT7VP9.js";import{t as v}from"./PlotCurve-BoqzCl1G.js";var y={class:`grid grid-cols-[1.1fr_1fr] gap-6 mt-2 items-center`},b={class:`dl-tight`},x={class:`mt-3 dl-callout`},S={__name:`slides.md__slidev_47`,setup(S){let{$slidev:C,$nav:w,$clicksContext:T,$clicks:E,$page:D,$renderContext:O,$frontmatter:k}=f();return T.setup(),(f,S)=>{let C=v,w=_,T=g,E=h,D=r(`click`);return e(),l(m,u(n(d(p)(d(k),46))),{default:s(()=>[S[2]||=a(`h1`,null,`One more piece from week 4`,-1),S[3]||=a(`p`,null,`Batch normalisation, in both networks, and it is doing more work here than usual.`,-1),a(`div`,y,[a(`div`,null,[t(T,{"x-domain":[-4,7],"y-domain":[0,.45],width:420,height:210,"x-label":`activation value`,"x-ticks":[-4,-2,0,2,4,6],"y-ticks":[0,.2,.4]},{default:s(()=>[t(C,{fn:e=>Math.exp(-((e-3.5)**2)/8)/Math.sqrt(8*Math.PI),color:`var(--dl-muted)`,width:2.2,dashed:``},null,8,[`fn`]),t(C,{fn:e=>Math.exp(-(e**2)/2)/Math.sqrt(2*Math.PI),color:`var(--dl-accent)`,width:2.6,"fill-to":0,opacity:.6},null,8,[`fn`]),t(w,{at:[4.6,.19],text:`drifting`,color:`var(--dl-muted)`,bold:``}),t(w,{at:[1.1,.34],text:`after BatchNorm`,color:`var(--dl-accent)`,bold:``})]),_:1})]),a(`div`,b,[t(E,null,{default:s(()=>[...S[0]||=[a(`ul`,null,[a(`li`,null,`Usual benefit: gradients stay in a workable range`),a(`li`,null,[a(`strong`,null,`New here`),i(` — it stops one network’s activations drifting while the other chases them`)])],-1)]]),_:1}),c((e(),o(`div`,x,[...S[1]||=[a(`p`,null,[i(`Leave it out of `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`D`)]),a(`annotation`,{encoding:`application/x-tex`},`D`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0278em`}},`D`)])])]),i(`’s first layer and `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`G`)]),a(`annotation`,{encoding:`application/x-tex`},`G`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),a(`span`,{class:`mord mathnormal`},`G`)])])]),i(`’s last — those work directly on pixels.`)],-1)]])),[[D]])])])]),_:1},16)}}};export{S as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-DtWSzo2Z.css b/lecture-07/assets/md-DtWSzo2Z.css new file mode 100644 index 0000000000000000000000000000000000000000..990ed0843e6951e57af1ad72a9be060c7f3089cb --- /dev/null +++ b/lecture-07/assets/md-DtWSzo2Z.css @@ -0,0 +1 @@ +.dl-div[data-v-f408f764]{flex-direction:column;align-items:stretch;gap:.35rem;width:100%;max-width:100%;display:flex}.dl-div__chart[data-v-f408f764]{flex:none;width:100%;height:5.6rem;font-family:inherit}.dl-div__axis[data-v-f408f764]{stroke:var(--dl-muted);stroke-width:1.2px}.dl-div__real[data-v-f408f764]{fill:none;stroke:var(--dl-body);stroke-width:1.8px;stroke-dasharray:3 3}.dl-div__fake[data-v-f408f764]{fill:var(--dl-accent)}.dl-div__mode[data-v-f408f764]{fill:var(--dl-body);font-size:11px}.dl-div__cap[data-v-f408f764]{fill:var(--dl-muted);font-size:9.5px}.dl-div__table[data-v-f408f764]{border-collapse:collapse;font-variant-numeric:tabular-nums;flex:none;width:100%;font-size:.74rem}.dl-div__table th[data-v-f408f764],.dl-div__table td[data-v-f408f764]{text-align:right;border-bottom:1px solid var(--dl-border);padding:.16rem .45rem}.dl-div__table thead th[data-v-f408f764]{color:var(--dl-muted);text-align:right;font-size:.72rem;font-weight:600}.dl-div__table tbody th[data-v-f408f764]{text-align:left;color:var(--dl-heading);white-space:nowrap;font-weight:600}.dl-div__table td[data-v-f408f764]{color:var(--dl-body)}.dl-div__table .is-shown[data-v-f408f764]{color:var(--dl-accent);font-weight:700}.dl-div__table tr.is-blind td[data-v-f408f764]:nth-child(3),.dl-div__table tr.is-blind td[data-v-f408f764]:nth-child(4){background:var(--dl-accent-soft)}.dl-div__note[data-v-f408f764]{color:var(--dl-muted);font-size:.68rem;font-weight:400;display:block} diff --git a/lecture-07/assets/md-DvPvPHWd.js b/lecture-07/assets/md-DvPvPHWd.js new file mode 100644 index 0000000000000000000000000000000000000000..7ec0a54a446472e28c5f4955152433546e6aa581 --- /dev/null +++ b/lecture-07/assets/md-DvPvPHWd.js @@ -0,0 +1,7 @@ +import{B as e,C as t,D as n,G as r,N as i,S as a,_ as o,b as s,et as c,tt as l,v as u,xt as d,yt as f}from"./modules/shiki-CJZsCeMT.js";import{n as p,t as m}from"./slidev/context-DB-9afGB.js";import{t as h}from"./default-CbJk4Idc.js";import{t as g}from"./slidev/CodeBlockWrapper-CsMaG0t-.js";var _={class:`mt-2 flex justify-center`},v={viewBox:`0 0 660 130`,class:`dl-diagram`,role:`img`,"aria-label":`A GAN has two networks and two noisy losses that never settle; diffusion has one network and a loss that goes down`},y={class:`mt-2 dl-callout`},b={__name:`slides.md__slidev_63`,setup(b){let{$slidev:x,$nav:S,$clicksContext:C,$clicks:w,$page:T,$renderContext:E,$frontmatter:D}=p();return C.setup(),(p,b)=>{let x=g,S=r(`click`);return e(),u(h,d(n(f(m)(f(D),62))),{default:c(()=>[b[9]||=o(`h1`,null,`Three lines, and no adversary`,-1),t(x,i({lines:!0},{title:``,ranges:[`all`,`2-4`,`6-7`,`all`]}),{default:c(()=>[...b[0]||=[o(`pre`,{class:`shiki shiki-themes vitesse-dark vitesse-light slidev-code`,style:{"--shiki-dark":`#dbd7caee`,"--shiki-light":`#393a34`,"--shiki-dark-bg":`#121212`,"--shiki-light-bg":`#ffffff`}},[o(`code`,{class:`language-python`},[o(`span`,{class:`line`},[o(`span`,{style:{"--shiki-dark":`#4D9375`,"--shiki-light":`#1E754F`}},`for`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` x0 `),o(`span`,{style:{"--shiki-dark":`#4D9375`,"--shiki-light":`#1E754F`}},`in`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` loader`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`:`)]),a(` +`),o(`span`,{class:`line`},[o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` t `),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`=`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` torch`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`randint`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),o(`span`,{style:{"--shiki-dark":`#4C9A91`,"--shiki-light":`#2F798A`}},`0`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`,`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` T`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`,`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},` (`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`x0`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`size`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),o(`span`,{style:{"--shiki-dark":`#4C9A91`,"--shiki-light":`#2F798A`}},`0`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`),),`),o(`span`,{style:{"--shiki-dark":`#BD976A`,"--shiki-light":`#B07D48`}},` device`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`=`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`dev`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`)`),o(`span`,{style:{"--shiki-dark":`#758575DD`,"--shiki-light":`#A0ADA0`}},` # a level per example`)]),a(` +`),o(`span`,{class:`line`},[o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` eps `),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`=`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` torch`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`randn_like`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`x0`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`)`)]),a(` +`),o(`span`,{class:`line`},[o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` xt `),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`=`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` ab`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`[`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`t`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`].`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`sqrt`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`()`),o(`span`,{style:{"--shiki-dark":`#CB7676`,"--shiki-light":`#AB5959`}},` *`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` x0 `),o(`span`,{style:{"--shiki-dark":`#CB7676`,"--shiki-light":`#AB5959`}},`+`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},` (`),o(`span`,{style:{"--shiki-dark":`#4C9A91`,"--shiki-light":`#2F798A`}},`1`),o(`span`,{style:{"--shiki-dark":`#CB7676`,"--shiki-light":`#AB5959`}},` -`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` ab`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`[`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`t`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`]).`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`sqrt`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`()`),o(`span`,{style:{"--shiki-dark":`#CB7676`,"--shiki-light":`#AB5959`}},` *`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` eps `),o(`span`,{style:{"--shiki-dark":`#758575DD`,"--shiki-light":`#A0ADA0`}},`# the closed form`)]),a(` +`),o(`span`,{class:`line`}),a(` +`),o(`span`,{class:`line`},[o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` loss `),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`=`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` F`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`mse_loss`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`model`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`xt`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`,`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` t`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`),`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` eps`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`)`),o(`span`,{style:{"--shiki-dark":`#758575DD`,"--shiki-light":`#A0ADA0`}},` # that is the whole loss`)]),a(` +`),o(`span`,{class:`line`},[o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` opt`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`zero_grad`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`()`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`; loss`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`backward`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`()`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`; opt`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`step`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`()`)])])],-1)]]),_:1},16),o(`div`,_,[(e(),s(`svg`,v,[b[2]||=o(`text`,{class:`dl-dg-lab is-sm`,x:`160`,y:`16`,"text-anchor":`middle`},`GAN — 2 networks, 2 optimisers, detach`,-1),b[3]||=o(`line`,{class:`dl-dg-split`,x1:`20`,y1:`110`,x2:`300`,y2:`110`},null,-1),b[4]||=o(`path`,{class:`dl-dg-line is-bad`,d:`M20 60 L40 48 L60 70 L80 52 L100 66 L120 45 L140 72 L160 50 L180 64 L200 46 L220 70 L240 52 L260 66 L280 48 L300 62`},null,-1),b[5]||=o(`path`,{class:`dl-dg-line is-muted`,d:`M20 80 L40 90 L60 74 L80 92 L100 78 L120 94 L140 76 L160 90 L180 80 L200 95 L220 76 L240 88 L260 78 L280 93 L300 80`},null,-1),b[6]||=o(`text`,{class:`dl-dg-small`,x:`160`,y:`126`,"text-anchor":`middle`},`two losses that never settle — no meaning`,-1),b[7]||=o(`line`,{class:`dl-dg-split`,x1:`330`,y1:`6`,x2:`330`,y2:`126`},null,-1),l((e(),s(`g`,null,[...b[1]||=[o(`text`,{class:`dl-dg-lab is-sm`,x:`500`,y:`16`,"text-anchor":`middle`},`diffusion — 1 network, 1 optimiser`,-1),o(`line`,{class:`dl-dg-split`,x1:`360`,y1:`110`,x2:`640`,y2:`110`},null,-1),o(`path`,{class:`dl-dg-line`,d:`M360 30 C 400 70, 440 88, 500 96 S 600 102, 640 103`},null,-1),o(`text`,{class:`dl-dg-small is-good`,x:`500`,y:`126`,"text-anchor":`middle`},`one regression loss that goes down — stop when it stops`,-1)]])),[[S]])]))]),l((e(),s(`div`,y,[...b[8]||=[o(`p`,null,[a(`The answer to the whole of section 04. Not a better adversary — `),o(`strong`,null,`no`),a(` adversary.`)],-1)]])),[[S]])]),_:1},16)}}};export{b as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-InVh52qX.js b/lecture-07/assets/md-InVh52qX.js new file mode 100644 index 0000000000000000000000000000000000000000..0ceb3a351dd842ffc5ed1516f4e7e76d3d0b8219 --- /dev/null +++ b/lecture-07/assets/md-InVh52qX.js @@ -0,0 +1 @@ +import{B as e,C as t,Ct as n,D as r,G as i,H as a,S as o,_ as s,b as c,bt as l,et as u,m as d,tt as f,v as p,xt as m,yt as h}from"./modules/shiki-CJZsCeMT.js";import{n as g,t as _}from"./slidev/context-DB-9afGB.js";import{t as v}from"./default-CbJk4Idc.js";import{t as y}from"./slidev/VClicks-DhU7uhQr.js";var b={class:`mt-2 flex justify-center`},x={viewBox:`0 0 660 200`,class:`dl-diagram is-sm-h`,role:`img`,"aria-label":`Forward passes per sample on a log scale: GAN 1, DDPM 1000, DDIM about 50, distilled models about 4`},S=[`x1`,`x2`],C=[`x`],w=[`y`],T=[`y`,`width`],E=[`x`,`y`],D={class:`dl-tight`},O={class:`mt-2 dl-callout`},k={__name:`slides.md__slidev_64`,setup(k){let{$slidev:A,$nav:j,$clicksContext:M,$clicks:N,$page:P,$renderContext:F,$frontmatter:I}=g();return M.setup(),(g,k)=>{let A=y,j=i(`click`);return e(),p(v,m(r(h(_)(h(I),63))),{default:u(()=>[k[3]||=s(`h1`,null,`The cost is at the other end`,-1),k[4]||=s(`p`,null,`GANs are one forward pass per sample. Diffusion is many.`,-1),s(`div`,b,[(e(),c(`svg`,x,[(e(),c(d,null,a([1,10,100,1e3],(e,t)=>s(`g`,{key:`t${t}`},[s(`line`,{class:`dl-dg-split`,x1:230+t*130,y1:`14`,x2:230+t*130,y2:`170`},null,8,S),s(`text`,{class:`dl-dg-small`,x:230+t*130,y:`188`,"text-anchor":`middle`},n(e),9,C)])),64)),k[0]||=s(`text`,{class:`dl-dg-small`,x:`620`,y:`200`,"text-anchor":`end`},`forward passes per sample (log scale)`,-1),(e(),c(d,null,a([[`GAN`,1,`is-q`,`1`],[`original diffusion (DDPM, 2020)`,1e3,`is-bad`,`1000`],[`DDIM sampler`,50,``,`20–50`],[`distilled / consistency`,4,`is-q`,`1–4`]],(e,t)=>s(`g`,{key:t},[s(`text`,{class:`dl-dg-lab is-sm`,x:`220`,y:38+t*38,"text-anchor":`end`},n(e[0]),9,w),s(`rect`,{class:l([`dl-dg-bar`,e[2]]),x:`230`,y:24+t*38,width:Math.max(Math.log10(e[1])*130,5),height:`20`,rx:`4`},null,10,T),s(`text`,{class:`dl-dg-small`,x:238+Math.max(Math.log10(e[1])*130,5),y:38+t*38},n(e[3]),9,E)])),64))]))]),s(`div`,D,[t(A,null,{default:u(()=>[...k[1]||=[s(`ul`,null,[s(`li`,null,[s(`strong`,null,`DDIM`),o(` (denoising diffusion implicit models) takes bigger steps without new noise — same trained model`)]),s(`li`,null,[s(`strong`,null,`Distillation`),o(` trains a student to do in one step what the teacher did in many`)])],-1)]]),_:1})]),f((e(),c(`div`,O,[...k[2]||=[s(`p`,null,`Sampling cost turned out to be an engineering problem. Training stability did not.`,-1)]])),[[j]])]),_:1},16)}}};export{k as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-NS-Q1t2f.js b/lecture-07/assets/md-NS-Q1t2f.js new file mode 100644 index 0000000000000000000000000000000000000000..4740779ea90fcf1e6f3fdf010abdb9521d8c917b --- /dev/null +++ b/lecture-07/assets/md-NS-Q1t2f.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,S as i,_ as a,b as o,et as s,tt as c,v as l,xt as u,yt as d}from"./modules/shiki-CJZsCeMT.js";import{n as f,t as p}from"./slidev/context-DB-9afGB.js";import{t as m}from"./PixelImage-C1NqQXMF.js";import{t as h}from"./default-CbJk4Idc.js";import{t as g}from"./slidev/VClicks-DhU7uhQr.js";var _={class:`grid grid-cols-[1.25fr_1fr] gap-8 mt-2 items-center`},v={viewBox:`0 0 380 220`,class:`dl-diagram`,role:`img`,"aria-label":`A normal image is rebuilt with small error; an unusual image is rebuilt badly, with a large error`},y={class:`dl-tight`},b={class:`mt-2 dl-callout`},x={__name:`slides.md__slidev_14`,setup(x){let{$slidev:S,$nav:C,$clicksContext:w,$clicks:T,$page:E,$renderContext:D,$frontmatter:O}=f();return w.setup(),(f,x)=>{let S=m,C=g,w=r(`click`);return e(),l(h,u(n(d(p)(d(O),13))),{default:s(()=>[x[17]||=a(`h1`,null,`What autoencoders are actually for`,-1),x[18]||=a(`p`,null,[i(`Not generation. The useful outputs are the `),a(`strong`,null,`code`),i(` and the `),a(`strong`,null,`error`),i(`.`)],-1),a(`div`,_,[a(`div`,null,[(e(),o(`svg`,v,[x[7]||=a(`defs`,null,[a(`marker`,{id:`an-arrow`,markerWidth:`7`,markerHeight:`7`,refX:`6`,refY:`3.5`,orient:`auto`},[a(`path`,{class:`dl-dg-head`,d:`M0 0 L7 3.5 L0 7 z`})])],-1),x[8]||=a(`text`,{class:`dl-dg-small`,x:`6`,y:`14`},`trained on smileys only`,-1),t(S,{"in-svg":``,x:6,y:24,size:60,pattern:`smiley`}),x[9]||=a(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#an-arrow)`,d:`M72 54 H98`},null,-1),x[10]||=a(`polygon`,{class:`dl-dg-net`,points:`104,34 150,48 150,60 104,74`},null,-1),x[11]||=a(`polygon`,{class:`dl-dg-net`,points:`196,34 150,48 150,60 196,74`},null,-1),x[12]||=a(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#an-arrow)`,d:`M200 54 H226`},null,-1),t(S,{"in-svg":``,x:232,y:24,size:60,pattern:`smiley`,noise:.05,seed:4,tone:`accent`}),x[13]||=a(`rect`,{class:`dl-dg-bar is-q`,x:`304`,y:`48`,width:`4`,height:`12`,rx:`2`},null,-1),x[14]||=a(`text`,{class:`dl-dg-small`,x:`304`,y:`78`},`error 0.02`,-1),c((e(),o(`g`,null,[t(S,{"in-svg":``,x:6,y:124,size:60,pattern:`house`}),x[0]||=a(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#an-arrow)`,d:`M72 154 H98`},null,-1),x[1]||=a(`polygon`,{class:`dl-dg-net`,points:`104,134 150,148 150,160 104,174`},null,-1),x[2]||=a(`polygon`,{class:`dl-dg-net`,points:`196,134 150,148 150,160 196,174`},null,-1),x[3]||=a(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#an-arrow)`,d:`M200 154 H226`},null,-1),t(S,{"in-svg":``,x:232,y:124,size:60,pattern:`smiley`,shifts:[-1,0,1],tone:`accent`}),x[4]||=a(`rect`,{class:`dl-dg-bar is-bad`,x:`304`,y:`120`,width:`60`,height:`12`,rx:`2`},null,-1),x[5]||=a(`text`,{class:`dl-dg-small is-bad`,x:`304`,y:`150`},`error 0.41`,-1),x[6]||=a(`text`,{class:`dl-dg-small is-bad`,x:`304`,y:`166`},`→ flag it`,-1)])),[[w]])]))]),a(`div`,y,[t(C,null,{default:s(()=>[...x[15]||=[a(`ul`,null,[a(`li`,null,[a(`strong`,null,`Compression, denoising`),i(` — use `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mover`,{accent:`true`},[a(`mi`,{mathvariant:`bold`},`x`),a(`mo`,null,`^`)])]),a(`annotation`,{encoding:`application/x-tex`},`\\hat{\\mathbf{x}}`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.7079em`}}),a(`span`,{class:`mord katex-accent`},[a(`span`,{class:`vlist-t`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.7079em`}},[a(`span`,{style:{top:`-3em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`mord mathbf`},`x`)]),a(`span`,{style:{top:`-3.0134em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`accent-body`,style:{left:`-0.25em`}},[a(`span`,{class:`mord`},`^`)])])])])])])])])])]),a(`li`,null,[a(`strong`,null,`Features`),i(` — use `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,{mathvariant:`bold`},`z`)]),a(`annotation`,{encoding:`application/x-tex`},`\\mathbf{z}`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.4444em`}}),a(`span`,{class:`mord mathbf`},`z`)])])]),i(` for a small labelled task`)]),a(`li`,null,[a(`strong`,null,`Anomaly detection`),i(` — use the `),a(`strong`,null,`error`)]),a(`li`,null,[a(`strong`,null,`A space to work in`),i(` — keep this for section 05`)])],-1)]]),_:1})])]),c((e(),o(`div`,b,[...x[16]||=[a(`p`,null,[i(`Every one of these uses `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`f`)]),a(`annotation`,{encoding:`application/x-tex`},`f`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.8889em`,"vertical-align":`-0.1944em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.1076em`}},`f`)])])]),i(`, or the loss. None uses `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`g`)]),a(`annotation`,{encoding:`application/x-tex`},`g`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.625em`,"vertical-align":`-0.1944em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0359em`}},`g`)])])]),i(` on its own.`)],-1)]])),[[w]])]),_:1},16)}}};export{x as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-OwWkr7782.js b/lecture-07/assets/md-OwWkr7782.js new file mode 100644 index 0000000000000000000000000000000000000000..74df893af7d2d15fd0922f5641e37bf636f52bd5 --- /dev/null +++ b/lecture-07/assets/md-OwWkr7782.js @@ -0,0 +1 @@ +import{B as e,C as t,Ct as n,D as r,T as i,U as a,_ as o,b as s,et as c,v as l,xt as u,y as d,yt as f}from"./modules/shiki-CJZsCeMT.js";import{t as p}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as m,t as h}from"./slidev/context-DB-9afGB.js";import{t as g}from"./FamilyGlyph-DyfZ67F0.js";var _={class:`slidev-layout dl-end`},v={class:`dl-end__body`},y={class:`dl-end__meta`},b={key:0,class:`dl-end__next`},x=[`href`],S=p(i({__name:`end`,props:{email:{},next:{}},setup(t){let{$slidev:r,$nav:i,$clicksContext:c,$clicks:l,$page:u,$renderContext:f,$frontmatter:p}=m(),h=t;return(t,r)=>(e(),s(`div`,_,[o(`div`,v,[a(t.$slots,`default`,{},void 0,!0)]),r[0]||=o(`div`,{class:`dl-rule`},null,-1),o(`div`,y,[h.next?(e(),s(`span`,b,`Next: `+n(h.next),1)):d(`v-if`,!0),h.email?(e(),s(`a`,{key:1,href:`mailto:${h.email}`},n(h.email),9,x)):d(`v-if`,!0)])]))}}),[[`__scopeId`,`data-v-f8d31aa3`]]),C={class:`flex gap-6 justify-center mt-2`},w={__name:`slides.md__slidev_79`,setup(n){let{$slidev:i,$nav:a,$clicksContext:s,$clicks:d,$page:p,$renderContext:_,$frontmatter:v}=m();return s.setup(),(n,i)=>{let a=g;return e(),l(S,u(r(f(h)(f(v),78))),{default:c(()=>[i[0]||=o(`h1`,null,`To be continued…`,-1),o(`div`,C,[t(a,{kind:`ae`,size:64,label:`autoencoder`}),t(a,{kind:`vae`,size:64,label:`VAE`}),t(a,{kind:`gan`,size:64,label:`GAN`}),t(a,{kind:`diffusion`,size:64,label:`diffusion`})])]),_:1},16)}}};export{w as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-P5G_dX8r2.js b/lecture-07/assets/md-P5G_dX8r2.js new file mode 100644 index 0000000000000000000000000000000000000000..e70e82186841b0a9b1a2a0c3e068e02d811df9f8 --- /dev/null +++ b/lecture-07/assets/md-P5G_dX8r2.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,_ as r,et as i,v as a,xt as o,yt as s}from"./modules/shiki-CJZsCeMT.js";import{n as c,t as l}from"./slidev/context-DB-9afGB.js";import{t as u}from"./FamilyGlyph-DyfZ67F0.js";import{t as d}from"./section-CqA-0pFf.js";var f={class:`dl-side-glyph`},p={__name:`slides.md__slidev_73`,setup(p){let{$slidev:m,$nav:h,$clicksContext:g,$clicks:_,$page:v,$renderContext:y,$frontmatter:b}=c();return g.setup(),(c,p)=>{let m=u;return e(),a(d,o(n(s(l)(s(b),72))),{default:i(()=>[p[0]||=r(`h1`,null,`Choosing one`,-1),r(`div`,f,[t(m,{kind:`choose`,size:190})])]),_:1},16)}}};export{p as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-QIfMwpQ62.js b/lecture-07/assets/md-QIfMwpQ62.js new file mode 100644 index 0000000000000000000000000000000000000000..bd35ccbff10dd9f307530643ff4f468b3360d0e2 --- /dev/null +++ b/lecture-07/assets/md-QIfMwpQ62.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,S as i,_ as a,b as o,et as s,tt as c,v as l,xt as u,yt as d}from"./modules/shiki-CJZsCeMT.js";import{n as f,t as p}from"./slidev/context-DB-9afGB.js";import{t as m}from"./PixelImage-C1NqQXMF.js";import{t as h}from"./default-CbJk4Idc.js";var g={class:`dl-pixrow mt-4`},_={class:`dl-op is-accent`},v={class:`mt-5 dl-callout`},y={class:`mt-3 dl-secondary`},b={__name:`slides.md__slidev_24`,setup(b){let{$slidev:x,$nav:S,$clicksContext:C,$clicks:w,$page:T,$renderContext:E,$frontmatter:D}=f();return C.setup(),(f,b)=>{let x=m,S=r(`click`);return e(),l(h,u(n(d(p)(d(D),23))),{default:s(()=>[b[4]||=a(`h1`,null,`Why VAE samples are soft`,-1),b[5]||=a(`p`,null,[i(`A code with a little noise could decode to `),a(`strong`,null,`either`),i(` of two sharp images.`)],-1),a(`div`,g,[t(x,{pattern:`smiley`,shifts:[-1],size:104,label:`plausible A`}),b[1]||=a(`span`,{class:`dl-op`},`and`,-1),t(x,{pattern:`smiley`,shifts:[1],size:104,label:`plausible B`}),c((e(),o(`span`,_,[...b[0]||=[i(`→ MSE's best single answer →`,-1)]])),[[S]]),c(t(x,{pattern:`smiley`,shifts:[-1,1],size:104,tone:`accent`,label:`their average`},null,512),[[S]])]),c((e(),o(`div`,v,[...b[2]||=[a(`p`,null,[i(`With squared error on pixels, the best single guess is the `),a(`strong`,null,`average`),i(` — a blurry image. The model is doing exactly what the loss asks.`)],-1)]])),[[S]]),c((e(),o(`div`,y,[...b[3]||=[a(`p`,null,`So to get sharpness, stop scoring pixels against pixels. That is the next section.`,-1)]])),[[S]])]),_:1},16)}}};export{b as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-SdaKzabB.js b/lecture-07/assets/md-SdaKzabB.js new file mode 100644 index 0000000000000000000000000000000000000000..57567d63bc3b41907843aca6cf0f0339d909a3b9 --- /dev/null +++ b/lecture-07/assets/md-SdaKzabB.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,_ as r,et as i,v as a,xt as o,yt as s}from"./modules/shiki-CJZsCeMT.js";import{n as c,t as l}from"./slidev/context-DB-9afGB.js";import{t as u}from"./FamilyGlyph-DyfZ67F0.js";import{t as d}from"./section-CqA-0pFf.js";var f={class:`dl-side-glyph`},p={__name:`slides.md__slidev_55`,setup(p){let{$slidev:m,$nav:h,$clicksContext:g,$clicks:_,$page:v,$renderContext:y,$frontmatter:b}=c();return g.setup(),(c,p)=>{let m=u;return e(),a(d,o(n(s(l)(s(b),54))),{default:i(()=>[p[0]||=r(`h1`,null,`What replaced them: diffusion`,-1),r(`div`,f,[t(m,{kind:`diffusion`,size:190})])]),_:1},16)}}};export{p as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-ZM8jUVcE2.js b/lecture-07/assets/md-ZM8jUVcE2.js new file mode 100644 index 0000000000000000000000000000000000000000..022d789c8c77c8bac076a656802c6d98d427ef2c --- /dev/null +++ b/lecture-07/assets/md-ZM8jUVcE2.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,S as i,_ as a,b as o,et as s,tt as c,v as l,xt as u,yt as d}from"./modules/shiki-CJZsCeMT.js";import{n as f,t as p}from"./slidev/context-DB-9afGB.js";import{t as m}from"./PixelImage-C1NqQXMF.js";import{t as h}from"./FamilyGlyph-DyfZ67F0.js";import{t as g}from"./default-CbJk4Idc.js";var _={class:`dl-ledger dl-ledger--compare mt-1`},v={class:`mt-3 dl-callout`},y={__name:`slides.md__slidev_74`,setup(y){let{$slidev:b,$nav:x,$clicksContext:S,$clicks:C,$page:w,$renderContext:T,$frontmatter:E}=f();return S.setup(),(f,y)=>{let b=h,x=m,S=r(`click`);return e(),l(g,u(n(d(p)(d(E),73))),{default:s(()=>[y[37]||=a(`h1`,null,`Five families, side by side`,-1),a(`div`,_,[a(`table`,null,[y[35]||=a(`thead`,null,[a(`tr`,null,[a(`th`),a(`th`,null,`quality`),a(`th`,null,`sampling`),a(`th`,null,`training`),a(`th`,null,`likelihood`),a(`th`,null,`editable code`)])],-1),a(`tbody`,null,[a(`tr`,null,[a(`td`,null,[t(b,{kind:`ae`,size:30}),y[0]||=i(),y[1]||=a(`strong`,null,`autoencoder`,-1)]),y[2]||=a(`td`,null,`—`,-1),y[3]||=a(`td`,null,`1 pass`,-1),y[4]||=a(`td`,null,`easy`,-1),y[5]||=a(`td`,null,`no`,-1),y[6]||=a(`td`,null,`with holes`,-1)]),a(`tr`,null,[a(`td`,null,[t(b,{kind:`vae`,size:30}),y[7]||=i(),y[8]||=a(`strong`,null,`VAE`,-1)]),y[9]||=a(`td`,null,`soft`,-1),y[10]||=a(`td`,null,`1 pass`,-1),y[11]||=a(`td`,null,`easy`,-1),y[12]||=a(`td`,null,`bound`,-1),y[13]||=a(`td`,null,[a(`strong`,null,`yes`)],-1)]),a(`tr`,null,[a(`td`,null,[t(b,{kind:`gan`,size:30}),y[14]||=i(),y[15]||=a(`strong`,null,`GAN`,-1)]),y[16]||=a(`td`,null,`sharp`,-1),y[17]||=a(`td`,null,[a(`strong`,null,`1 pass`)],-1),y[18]||=a(`td`,null,[a(`strong`,null,`fragile`)],-1),y[19]||=a(`td`,null,`none`,-1),y[20]||=a(`td`,null,`yes`,-1)]),a(`tr`,null,[a(`td`,null,[t(b,{kind:`diffusion`,size:30}),y[21]||=i(),y[22]||=a(`strong`,null,`diffusion / flow`,-1)]),y[23]||=a(`td`,null,[a(`strong`,null,`sharp`)],-1),y[24]||=a(`td`,null,`1–50`,-1),y[25]||=a(`td`,null,[a(`strong`,null,`stable`)],-1),y[26]||=a(`td`,null,`bound`,-1),y[27]||=a(`td`,null,`partly`,-1)]),a(`tr`,null,[a(`td`,null,[t(x,{pattern:`checker:2:1`,size:26}),y[28]||=i(),y[29]||=a(`strong`,null,`pixel by pixel`,-1)]),y[30]||=a(`td`,null,`sharp`,-1),y[31]||=a(`td`,null,[i(`1 `),a(`strong`,null,`per pixel`)],-1),y[32]||=a(`td`,null,`stable`,-1),y[33]||=a(`td`,null,[a(`strong`,null,`exact`)],-1),y[34]||=a(`td`,null,`no`,-1)])])])]),c((e(),o(`div`,v,[...y[36]||=[a(`p`,null,`No row wins. Pick the column you cannot compromise on, then read across.`,-1)]])),[[S]])]),_:1},16)}}};export{y as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-bhIcPOOg2.js b/lecture-07/assets/md-bhIcPOOg2.js new file mode 100644 index 0000000000000000000000000000000000000000..03214cbcb50b853b170e15a82e35b400aa028b09 --- /dev/null +++ b/lecture-07/assets/md-bhIcPOOg2.js @@ -0,0 +1 @@ +import{B as e,D as t,G as n,H as r,S as i,_ as a,b as o,et as s,m as c,tt as l,v as u,xt as d,yt as f}from"./modules/shiki-CJZsCeMT.js";import{n as p,t as m}from"./slidev/context-DB-9afGB.js";import{t as h}from"./default-CbJk4Idc.js";var g={class:`mt-2 flex justify-center`},_={viewBox:`0 0 660 190`,class:`dl-diagram is-sm-h`,role:`img`,"aria-label":`Diffusion paths from noise to data curve; rectified flow paths are straight and need fewer steps`},v=[`cx`,`cy`],y=[`cx`,`cy`],b=[`d`],x=[`cx`,`cy`],S=[`cx`,`cy`],C=[`cx`,`cy`],w=[`d`],T=[`cx`,`cy`],E={class:`mt-1 dl-secondary`},D={class:`mt-2 dl-callout`},O={__name:`slides.md__slidev_71`,setup(O){let{$slidev:k,$nav:A,$clicksContext:j,$clicks:M,$page:N,$renderContext:P,$frontmatter:F}=p();return j.setup(),(p,O)=>{let k=n(`click`);return e(),u(h,d(t(f(m)(f(F),70))),{default:s(()=>[O[9]||=a(`h1`,null,`What actually gets trained in 2026`,-1),O[10]||=a(`p`,null,[i(`The noising path was never essential. `),a(`strong`,null,`Choose a straighter one.`)],-1),a(`div`,g,[(e(),o(`svg`,_,[O[3]||=a(`text`,{class:`dl-dg-lab is-sm`,x:`160`,y:`16`,"text-anchor":`middle`},`diffusion — curved paths, many steps`,-1),(e(),o(c,null,r([[40,50,280,60],[40,100,280,110],[40,150,280,160]],(t,n)=>a(`g`,{key:`c${n}`},[a(`circle`,{class:`dl-dg-dot`,cx:t[0],cy:t[1],r:`6`},null,8,v),a(`circle`,{class:`dl-dg-dot is-accent`,cx:t[2],cy:t[3],r:`6`},null,8,y),a(`path`,{class:`dl-dg-line is-muted`,d:`M${t[0]} ${t[1]} C ${t[0]+60} ${t[1]-50}, ${t[2]-100} ${t[3]+50}, ${t[2]} ${t[3]}`},null,8,b),(e(),o(c,null,r(7,e=>a(`circle`,{key:e,class:`dl-dg-dot`,cx:t[0]+(t[2]-t[0])*e/8,cy:t[1]+(e%2?-12:10),r:`2`},null,8,x)),64))])),64)),O[4]||=a(`text`,{class:`dl-dg-small`,x:`40`,y:`182`,"text-anchor":`middle`},`noise`,-1),O[5]||=a(`text`,{class:`dl-dg-small`,x:`280`,y:`182`,"text-anchor":`middle`},`data`,-1),O[6]||=a(`line`,{class:`dl-dg-split`,x1:`330`,y1:`6`,x2:`330`,y2:`186`},null,-1),l((e(),o(`g`,null,[O[0]||=a(`text`,{class:`dl-dg-lab is-sm`,x:`500`,y:`16`,"text-anchor":`middle`},`rectified flow — straight paths, few steps`,-1),(e(),o(c,null,r([[380,50,620,60],[380,100,620,110],[380,150,620,160]],(t,n)=>a(`g`,{key:`s${n}`},[a(`circle`,{class:`dl-dg-dot`,cx:t[0],cy:t[1],r:`6`},null,8,S),a(`circle`,{class:`dl-dg-dot is-accent`,cx:t[2],cy:t[3],r:`6`},null,8,C),a(`path`,{class:`dl-dg-line`,d:`M${t[0]} ${t[1]} L${t[2]} ${t[3]}`},null,8,w),(e(),o(c,null,r(2,e=>a(`circle`,{key:e,class:`dl-dg-dot is-accent`,cx:t[0]+(t[2]-t[0])*e/3,cy:t[1]+(t[3]-t[1])*e/3,r:`3`},null,8,T)),64))])),64)),O[1]||=a(`text`,{class:`dl-dg-small`,x:`380`,y:`182`,"text-anchor":`middle`},`noise`,-1),O[2]||=a(`text`,{class:`dl-dg-small`,x:`620`,y:`182`,"text-anchor":`middle`},`data`,-1)])),[[k]])]))]),l((e(),o(`div`,E,[...O[7]||=[a(`p`,null,[a(`strong`,null,`Rectified flow:`),i(),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`msub`,null,[a(`mi`,{mathvariant:`bold`},`x`),a(`mi`,null,`t`)]),a(`mo`,null,`=`),a(`mo`,{stretchy:`false`},`(`),a(`mn`,null,`1`),a(`mo`,null,`−`),a(`mi`,null,`t`),a(`mo`,{stretchy:`false`},`)`),a(`mtext`,null,` `),a(`msub`,null,[a(`mi`,{mathvariant:`bold`},`x`),a(`mn`,null,`0`)]),a(`mo`,null,`+`),a(`mi`,null,`t`),a(`mtext`,null,` `),a(`mi`,{mathvariant:`bold-italic`},`ϵ`)]),a(`annotation`,{encoding:`application/x-tex`},`\\mathbf{x}_t = (1-t)\\,\\mathbf{x}_0 + t\\,\\boldsymbol\\epsilon`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.5944em`,"vertical-align":`-0.15em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord mathbf`},`x`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.2806em`}},[a(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mathnormal mtight`},`t`)])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.15em`}},[a(`span`)])])])])]),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`=`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord`},`1`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),a(`span`,{class:`mbin`},`−`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),a(`span`,{class:`mord mathnormal`},`t`),a(`span`,{class:`mclose`},`)`),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord mathbf`},`x`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.3011em`}},[a(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mtight`},`0`)])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.15em`}},[a(`span`)])])])])]),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),a(`span`,{class:`mbin`},`+`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6151em`}}),a(`span`,{class:`mord mathnormal`},`t`),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord`},[a(`span`,{class:`mord boldsymbol`},`ϵ`)])])])])]),i(` — the same shape as the forward process, with straight-line coefficients.`)],-1)]])),[[k]]),l((e(),o(`div`,D,[...O[8]||=[a(`p`,null,`Stable Diffusion 3 and Flux train this — with the same shape of MSE loss.`,-1)]])),[[k]])]),_:1},16)}}};export{O as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-kuKQbJzP2.js b/lecture-07/assets/md-kuKQbJzP2.js new file mode 100644 index 0000000000000000000000000000000000000000..e9966375c580842efcd6441a7ea9de77228a1a27 --- /dev/null +++ b/lecture-07/assets/md-kuKQbJzP2.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,S as i,_ as a,b as o,et as s,tt as c,v as l,xt as u,yt as d}from"./modules/shiki-CJZsCeMT.js";import{n as f,t as p}from"./slidev/context-DB-9afGB.js";import{t as m}from"./default-CbJk4Idc.js";import{t as h}from"./slidev/VClicks-DhU7uhQr.js";import{t as g}from"./Plot2D-ifvwvNLG.js";import{t as _}from"./PlotLabel-BuFT7VP9.js";import{t as v}from"./PlotCurve-BoqzCl1G.js";import{t as y}from"./slidev/KaTexBlockWrapper-CffXlnxL.js";import{t as b}from"./PlotLine-CUED7wZE.js";var x={class:`grid grid-cols-[1fr_1.15fr] gap-6 mt-1 items-center`},S={class:`dl-math-sm`},C={class:`dl-tight`},w={class:`mt-2 dl-callout`},T={__name:`slides.md__slidev_32`,setup(T){let{$slidev:E,$nav:D,$clicksContext:O,$clicks:k,$page:A,$renderContext:j,$frontmatter:M}=f();return O.setup(),(f,T)=>{let E=y,D=h,O=v,k=b,A=_,j=g,N=r(`click`);return e(),l(m,u(n(d(p)(d(M),31))),{default:s(()=>[T[4]||=a(`h1`,null,`The best discriminator that could exist`,-1),a(`div`,x,[a(`div`,null,[T[2]||=a(`p`,null,[i(`Freeze `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`G`)]),a(`annotation`,{encoding:`application/x-tex`},`G`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),a(`span`,{class:`mord mathnormal`},`G`)])])]),i(`. The best `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`D`)]),a(`annotation`,{encoding:`application/x-tex`},`D`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0278em`}},`D`)])])]),i(` is:`)],-1),a(`div`,S,[t(E,{ranges:[]},{default:s(()=>[...T[0]||=[a(`p`,null,[a(`span`,{class:`katex-display`},[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`,display:`block`},[a(`semantics`,null,[a(`mrow`,null,[a(`msup`,null,[a(`mi`,null,`D`),a(`mo`,null,`∗`)]),a(`mo`,{stretchy:`false`},`(`),a(`mi`,{mathvariant:`bold`},`x`),a(`mo`,{stretchy:`false`},`)`),a(`mo`,null,`=`),a(`mfrac`,null,[a(`mrow`,null,[a(`msub`,null,[a(`mi`,null,`p`),a(`mtext`,null,`data`)]),a(`mo`,{stretchy:`false`},`(`),a(`mi`,{mathvariant:`bold`},`x`),a(`mo`,{stretchy:`false`},`)`)]),a(`mrow`,null,[a(`msub`,null,[a(`mi`,null,`p`),a(`mtext`,null,`data`)]),a(`mo`,{stretchy:`false`},`(`),a(`mi`,{mathvariant:`bold`},`x`),a(`mo`,{stretchy:`false`},`)`),a(`mo`,null,`+`),a(`msub`,null,[a(`mi`,null,`p`),a(`mi`,null,`g`)]),a(`mo`,{stretchy:`false`},`(`),a(`mi`,{mathvariant:`bold`},`x`),a(`mo`,{stretchy:`false`},`)`)])])]),a(`annotation`,{encoding:`application/x-tex`},`D^*(\\mathbf{x}) = \\frac{p_{\\text{data}}(\\mathbf{x})}{p_{\\text{data}}(\\mathbf{x}) + p_g(\\mathbf{x})} `)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0278em`}},`D`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.7387em`}},[a(`span`,{style:{top:`-3.113em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mbin mtight`},`∗`)])])])])])])]),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord mathbf`},`x`),a(`span`,{class:`mclose`},`)`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`=`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`2.3991em`,"vertical-align":`-0.9721em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mopen nulldelimiter`}),a(`span`,{class:`mfrac`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`1.427em`}},[a(`span`,{style:{top:`-2.314em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord`},[a(`span`,{class:`mord mathnormal`},`p`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.3361em`}},[a(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mtight`},[a(`span`,{class:`mord text mtight`},[a(`span`,{class:`mord mtight`},`data`)])])])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.15em`}},[a(`span`)])])])])]),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord mathbf`},`x`),a(`span`,{class:`mclose`},`)`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),a(`span`,{class:`mbin`},`+`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord mathnormal`},`p`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.1514em`}},[a(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0359em`}},`g`)])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.2861em`}},[a(`span`)])])])])]),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord mathbf`},`x`),a(`span`,{class:`mclose`},`)`)])]),a(`span`,{style:{top:`-3.23em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`frac-line`,style:{"border-bottom-width":`0.04em`}})]),a(`span`,{style:{top:`-3.677em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord`},[a(`span`,{class:`mord mathnormal`},`p`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.3361em`}},[a(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mtight`},[a(`span`,{class:`mord text mtight`},[a(`span`,{class:`mord mtight`},`data`)])])])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.15em`}},[a(`span`)])])])])]),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord mathbf`},`x`),a(`span`,{class:`mclose`},`)`)])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.9721em`}},[a(`span`)])])])]),a(`span`,{class:`mclose nulldelimiter`})])])])])])],-1)]]),_:1})]),a(`div`,C,[t(D,null,{default:s(()=>[...T[1]||=[a(`ul`,null,[a(`li`,null,[i(`A `),a(`strong`,null,`ratio of two densities`),i(`, point by point`)]),a(`li`,null,`Only real data → 1. Only fakes → 0`),a(`li`,null,`Where they are equal → ½`)],-1)]]),_:1})])]),a(`div`,null,[t(j,{"x-domain":[-4,4],"y-domain":[0,1.05],width:420,height:215,"x-label":`x`,"x-ticks":[-4,-2,0,2,4],"y-ticks":[0,.5,1]},{default:s(()=>[t(O,{fn:e=>.9*Math.exp(-((e+1)**2)/1.2),color:`var(--dl-muted)`,width:2,"fill-to":0,opacity:.5},null,8,[`fn`]),t(O,{fn:e=>.9*Math.exp(-((e-1)**2)/1.2),color:`var(--dl-accent)`,width:2,"fill-to":0,opacity:.5},null,8,[`fn`]),t(O,{fn:e=>1/(1+Math.exp(4*e/1.2)),color:`var(--dl-heading)`,width:2.6},null,8,[`fn`]),t(k,{from:[-4,.5],to:[4,.5],color:`var(--dl-muted)`,width:1,dashed:``}),t(A,{at:[-3.3,.62],text:`real data`,color:`var(--dl-muted)`,bold:``}),t(A,{at:[1.7,.62],text:`generator`,color:`var(--dl-accent)`,bold:``}),t(A,{at:[-3.9,.98],text:`D*`,color:`var(--dl-heading)`,dx:2,dy:10,bold:``})]),_:1})])]),c((e(),o(`div`,w,[...T[3]||=[a(`p`,null,`Against a perfect generator, the best discriminator can only guess: ½ everywhere.`,-1)]])),[[N]])]),_:1},16)}}};export{T as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-ljxhKUuv.js b/lecture-07/assets/md-ljxhKUuv.js new file mode 100644 index 0000000000000000000000000000000000000000..f11849773ac76df1877e4190389610403da3c0fb --- /dev/null +++ b/lecture-07/assets/md-ljxhKUuv.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,S as i,_ as a,b as o,et as s,tt as c,v as l,xt as u,yt as d}from"./modules/shiki-CJZsCeMT.js";import{n as f,t as p}from"./slidev/context-DB-9afGB.js";import{t as m}from"./PixelImage-C1NqQXMF.js";import{t as h}from"./default-CbJk4Idc.js";import{t as g}from"./slidev/KaTexBlockWrapper-CffXlnxL.js";var _={class:`dl-math-sm`},v={class:`mt-1 flex justify-center`},y={viewBox:`0 0 620 120`,class:`dl-diagram`,role:`img`,"aria-label":`Real images should push D toward 1, fakes should push D toward 0`},b={class:`mt-1 dl-callout`},x={class:`mt-2 dl-secondary`},S={__name:`slides.md__slidev_29`,setup(S){let{$slidev:C,$nav:w,$clicksContext:T,$clicks:E,$page:D,$renderContext:O,$frontmatter:k}=f();return T.setup(),(f,S)=>{let C=g,w=m,T=r(`click`);return e(),l(h,u(n(d(p)(d(k),28))),{default:s(()=>[S[11]||=a(`h1`,null,`The value function`,-1),a(`div`,_,[t(C,{ranges:[]},{default:s(()=>[...S[0]||=[a(`p`,null,[a(`span`,{class:`katex-display`},[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`,display:`block`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`V`),a(`mo`,{stretchy:`false`},`(`),a(`msup`,null,[a(`mi`,null,`θ`),a(`mrow`,null,[a(`mo`,{stretchy:`false`},`(`),a(`mi`,null,`D`),a(`mo`,{stretchy:`false`},`)`)])]),a(`mo`,{separator:`true`},`,`),a(`msup`,null,[a(`mi`,null,`θ`),a(`mrow`,null,[a(`mo`,{stretchy:`false`},`(`),a(`mi`,null,`G`),a(`mo`,{stretchy:`false`},`)`)])]),a(`mo`,{stretchy:`false`},`)`),a(`mtext`,null,`  `),a(`mo`,null,`=`),a(`mtext`,null,`  `),a(`msub`,null,[a(`mi`,{mathvariant:`double-struck`},`E`),a(`mrow`,null,[a(`mi`,{mathvariant:`bold`},`x`),a(`mo`,null,`∼`),a(`msub`,null,[a(`mi`,null,`p`),a(`mtext`,null,`data`)])])]),a(`mo`,{fence:`false`,stretchy:`true`,minsize:`1.2em`,maxsize:`1.2em`},`[`),a(`mi`,null,`log`),a(`mo`,null,`⁡`),a(`mi`,null,`D`),a(`mo`,{stretchy:`false`},`(`),a(`mi`,{mathvariant:`bold`},`x`),a(`mo`,{stretchy:`false`},`)`),a(`mo`,{fence:`false`,stretchy:`true`,minsize:`1.2em`,maxsize:`1.2em`},`]`),a(`mtext`,null,`  `),a(`mo`,null,`+`),a(`mtext`,null,`  `),a(`msub`,null,[a(`mi`,{mathvariant:`double-struck`},`E`),a(`mrow`,null,[a(`mi`,{mathvariant:`bold`},`z`),a(`mo`,null,`∼`),a(`msub`,null,[a(`mi`,null,`p`),a(`mi`,{mathvariant:`bold`},`z`)])])]),a(`mo`,{fence:`false`,stretchy:`true`,minsize:`1.2em`,maxsize:`1.2em`},`[`),a(`mi`,null,`log`),a(`mo`,null,`⁡`),a(`mo`,{fence:`false`,stretchy:`true`,minsize:`1.2em`,maxsize:`1.2em`},`(`),a(`mn`,null,`1`),a(`mo`,null,`−`),a(`mi`,null,`D`),a(`mo`,{stretchy:`false`},`(`),a(`mi`,null,`G`),a(`mo`,{stretchy:`false`},`(`),a(`mi`,{mathvariant:`bold`},`z`),a(`mo`,{stretchy:`false`},`)`),a(`mo`,{stretchy:`false`},`)`),a(`mo`,{fence:`false`,stretchy:`true`,minsize:`1.2em`,maxsize:`1.2em`},`)`),a(`mo`,{fence:`false`,stretchy:`true`,minsize:`1.2em`,maxsize:`1.2em`},`]`)]),a(`annotation`,{encoding:`application/x-tex`},`V(\\theta^{(D)}, \\theta^{(G)}) \\;=\\; \\mathbb{E}_{\\mathbf{x} \\sim p_{\\text{data}}}\\big[\\log D(\\mathbf{x})\\big] \\;+\\; \\mathbb{E}_{\\mathbf{z} \\sim p_{\\mathbf{z}}}\\big[\\log\\big(1 - D(G(\\mathbf{z}))\\big)\\big] `)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1.188em`,"vertical-align":`-0.25em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.2222em`}},`V`),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord`},[a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0278em`}},`θ`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.938em`}},[a(`span`,{style:{top:`-3.113em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mtight`},[a(`span`,{class:`mopen mtight`},`(`),a(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0278em`}},`D`),a(`span`,{class:`mclose mtight`},`)`)])])])])])])])]),a(`span`,{class:`mpunct`},`,`),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0278em`}},`θ`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.938em`}},[a(`span`,{style:{top:`-3.113em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mtight`},[a(`span`,{class:`mopen mtight`},`(`),a(`span`,{class:`mord mathnormal mtight`},`G`),a(`span`,{class:`mclose mtight`},`)`)])])])])])])])]),a(`span`,{class:`mclose`},`)`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`=`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1.2em`,"vertical-align":`-0.35em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord mathbb`},`E`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.1611em`}},[a(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mtight`},[a(`span`,{class:`mord mathbf mtight`},`x`),a(`span`,{class:`mrel mtight`},`∼`),a(`span`,{class:`mord mtight`},[a(`span`,{class:`mord mathnormal mtight`},`p`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.3448em`}},[a(`span`,{style:{top:`-2.3488em`,"margin-left":`0em`,"margin-right":`0.0714em`}},[a(`span`,{class:`pstrut`,style:{height:`2.5em`}}),a(`span`,{class:`katex-sizing reset-size3 size1 mtight`},[a(`span`,{class:`mord mtight`},[a(`span`,{class:`mord text mtight`},[a(`span`,{class:`mord mtight`},`data`)])])])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.1512em`}},[a(`span`)])])])])])])])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.2861em`}},[a(`span`)])])])])]),a(`span`,{class:`mord`},[a(`span`,{class:`delimsizing size1`},`[`)]),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mop`},[i(`lo`),a(`span`,{style:{"margin-right":`0.0139em`}},`g`)]),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0278em`}},`D`),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord mathbf`},`x`),a(`span`,{class:`mclose`},`)`),a(`span`,{class:`mord`},[a(`span`,{class:`delimsizing size1`},`]`)]),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),a(`span`,{class:`mbin`},`+`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1.2em`,"vertical-align":`-0.35em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord mathbb`},`E`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.1611em`}},[a(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mtight`},[a(`span`,{class:`mord mathbf mtight`},`z`),a(`span`,{class:`mrel mtight`},`∼`),a(`span`,{class:`mord mtight`},[a(`span`,{class:`mord mathnormal mtight`},`p`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.1745em`}},[a(`span`,{style:{top:`-2.357em`,"margin-left":`0em`,"margin-right":`0.0714em`}},[a(`span`,{class:`pstrut`,style:{height:`2.5em`}}),a(`span`,{class:`katex-sizing reset-size3 size1 mtight`},[a(`span`,{class:`mord mtight`},[a(`span`,{class:`mord mathbf mtight`},`z`)])])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.143em`}},[a(`span`)])])])])])])])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.2861em`}},[a(`span`)])])])])]),a(`span`,{class:`mord`},[a(`span`,{class:`delimsizing size1`},`[`)]),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mop`},[i(`lo`),a(`span`,{style:{"margin-right":`0.0139em`}},`g`)]),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`delimsizing size1`},`(`)]),a(`span`,{class:`mord`},`1`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),a(`span`,{class:`mbin`},`−`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1.2em`,"vertical-align":`-0.35em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0278em`}},`D`),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord mathnormal`},`G`),a(`span`,{class:`mopen`},`(`),a(`span`,{class:`mord mathbf`},`z`),a(`span`,{class:`mclose`},`))`),a(`span`,{class:`mord`},[a(`span`,{class:`delimsizing size1`},`)`)]),a(`span`,{class:`mord`},[a(`span`,{class:`delimsizing size1`},`]`)])])])])])],-1)]]),_:1})]),a(`div`,v,[(e(),o(`svg`,y,[t(w,{"in-svg":``,x:60,y:8,size:46,pattern:`heart`}),S[1]||=a(`text`,{class:`dl-dg-small`,x:`120`,y:`36`},`real → D(x)`,-1),S[2]||=a(`rect`,{class:`dl-dg-box`,x:`200`,y:`22`,width:`120`,height:`16`,rx:`3`},null,-1),S[3]||=a(`rect`,{class:`dl-dg-bar is-q`,x:`200`,y:`22`,width:`108`,height:`16`,rx:`3`},null,-1),S[4]||=a(`text`,{class:`dl-dg-small is-good`,x:`330`,y:`35`},`first term: wants D → 1`,-1),t(w,{"in-svg":``,x:60,y:64,size:46,pattern:`smiley`,noise:.3,seed:6,tone:`accent`}),S[5]||=a(`text`,{class:`dl-dg-small`,x:`120`,y:`92`},`fake → D(G(z))`,-1),S[6]||=a(`rect`,{class:`dl-dg-box`,x:`200`,y:`78`,width:`120`,height:`16`,rx:`3`},null,-1),S[7]||=a(`rect`,{class:`dl-dg-bar is-bad`,x:`200`,y:`78`,width:`12`,height:`16`,rx:`3`},null,-1),S[8]||=a(`text`,{class:`dl-dg-small is-bad`,x:`330`,y:`91`},`second term: wants D → 0`,-1)]))]),c((e(),o(`div`,b,[...S[9]||=[a(`p`,null,[i(`Each half is `),a(`strong`,null,`minus`),i(` a binary cross-entropy. `),a(`strong`,null,[i(`D wants `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`V`)]),a(`annotation`,{encoding:`application/x-tex`},`V`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.2222em`}},`V`)])])]),i(` big; G wants it small:`)]),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mtext`,null,`  `),a(`msub`,null,[a(`mrow`,null,[a(`mi`,null,`min`),a(`mo`,null,`⁡`)]),a(`mi`,null,`G`)]),a(`msub`,null,[a(`mrow`,null,[a(`mi`,null,`max`),a(`mo`,null,`⁡`)]),a(`mi`,null,`D`)]),a(`mi`,null,`V`)]),a(`annotation`,{encoding:`application/x-tex`},`\\;\\min_G \\max_D V`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.8333em`,"vertical-align":`-0.15em`}}),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mop`},[a(`span`,{class:`mop`},`min`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.3283em`}},[a(`span`,{style:{top:`-2.55em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mathnormal mtight`},`G`)])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.15em`}},[a(`span`)])])])])]),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mop`},[a(`span`,{class:`mop`},`max`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.3283em`}},[a(`span`,{style:{top:`-2.55em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0278em`}},`D`)])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.15em`}},[a(`span`)])])])])]),a(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.2222em`}},`V`)])])]),i(`.`)],-1)]])),[[T]]),c((e(),o(`div`,x,[...S[10]||=[a(`p`,null,[i(`One objective, two players pulling opposite ways. We look for a `),a(`strong`,null,`saddle point`),i(`: best for `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`D`)]),a(`annotation`,{encoding:`application/x-tex`},`D`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0278em`}},`D`)])])]),i(` and best for `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`G`)]),a(`annotation`,{encoding:`application/x-tex`},`G`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6833em`}}),a(`span`,{class:`mord mathnormal`},`G`)])])]),i(` at the same time.`)],-1)]])),[[T]])]),_:1},16)}}};export{S as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-pOt_vjrb2.js b/lecture-07/assets/md-pOt_vjrb2.js new file mode 100644 index 0000000000000000000000000000000000000000..f02a09914b3124bfeb8e5b849f9b2458d76993c6 --- /dev/null +++ b/lecture-07/assets/md-pOt_vjrb2.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,_ as i,b as a,et as o,tt as s,v as c,xt as l,yt as u}from"./modules/shiki-CJZsCeMT.js";import{n as d,t as f}from"./slidev/context-DB-9afGB.js";import{t as p}from"./default-CbJk4Idc.js";import{t as m}from"./PollSlide-BQgjKhm1.js";var h={class:`grid grid-cols-[1.6fr_1fr] gap-6 items-start`},g={class:`mt-10`},_={class:`mt-4 dl-reveal dl-reveal--side`},v={class:`mt-2 dl-secondary`},y={__name:`slides.md__slidev_72`,setup(y){let{$slidev:b,$nav:x,$clicksContext:S,$clicks:C,$page:w,$renderContext:T,$frontmatter:E}=d();return S.setup(),(d,y)=>{let b=m,x=r(`click`);return e(),c(p,l(n(u(f)(u(E),71))),{default:o(()=>[i(`div`,h,[i(`div`,null,[t(b,{question:`Why does diffusion's MSE loss not blur, when the VAE's did?`,items:[`Because it uses a U-Net rather than fully-connected layers`,`Because the loss is on noise, not on pixels`,`Because each step removes only a little noise — one plausible answer`,`Because the adversarial term in the autoencoder fixes it`]})]),i(`div`,g,[y[2]||=i(`svg`,{viewBox:`0 0 260 190`,class:`dl-diagram`,role:`img`,"aria-label":`A VAE makes one big jump between two possible answers and lands in the middle; diffusion takes many small steps and commits to one`},[i(`defs`,null,[i(`marker`,{id:`pb-arrow`,markerWidth:`6`,markerHeight:`6`,refX:`5`,refY:`3`,orient:`auto`},[i(`path`,{class:`dl-dg-head`,d:`M0 0 L6 3 L0 6 z`})])]),i(`text`,{class:`dl-dg-small`,x:`4`,y:`14`},`one big guess`),i(`circle`,{class:`dl-dg-dot`,cx:`20`,cy:`50`,r:`5`}),i(`circle`,{class:`dl-dg-dot is-accent`,cx:`230`,cy:`24`,r:`6`}),i(`circle`,{class:`dl-dg-dot is-accent`,cx:`230`,cy:`76`,r:`6`}),i(`path`,{class:`dl-dg-line is-bad`,"marker-end":`url(#pb-arrow)`,d:`M26 50 H214`}),i(`text`,{class:`dl-dg-small is-bad`,x:`170`,y:`44`,"text-anchor":`middle`},`average`),i(`text`,{class:`dl-dg-small`,x:`4`,y:`112`},`many small steps`),i(`circle`,{class:`dl-dg-dot`,cx:`20`,cy:`150`,r:`5`}),i(`circle`,{class:`dl-dg-dot is-accent`,cx:`230`,cy:`124`,r:`6`}),i(`circle`,{class:`dl-dg-dot is-accent`,cx:`230`,cy:`176`,r:`6`}),i(`path`,{class:`dl-dg-line`,"marker-end":`url(#pb-arrow)`,d:`M26 150 L60 146 L94 140 L128 136 L162 130 L196 126 L220 124`})],-1),s((e(),a(`div`,_,[...y[0]||=[i(`p`,null,`One small step has one plausible answer`,-1)]])),[[x]]),s((e(),a(`div`,v,[...y[1]||=[i(`p`,null,`A VAE averages several possible images. One small denoising step has almost only one right answer.`,-1)]])),[[x]])])])]),_:1},16)}}};export{y as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-rssEntkL.js b/lecture-07/assets/md-rssEntkL.js new file mode 100644 index 0000000000000000000000000000000000000000..19c691a7eff754d3befa66b4637a780a2ef13f5a --- /dev/null +++ b/lecture-07/assets/md-rssEntkL.js @@ -0,0 +1 @@ +import{B as e,D as t,G as n,S as r,_ as i,b as a,et as o,tt as s,v as c,xt as l,yt as u}from"./modules/shiki-CJZsCeMT.js";import{n as d,t as f}from"./slidev/context-DB-9afGB.js";import{t as p}from"./default-CbJk4Idc.js";var m={class:`mt-3 dl-callout`},h={__name:`slides.md__slidev_22`,setup(h){let{$slidev:g,$nav:_,$clicksContext:v,$clicks:y,$page:b,$renderContext:x,$frontmatter:S}=d();return v.setup(),(d,h)=>{let g=n(`click`);return e(),c(p,l(t(u(f)(u(S),21))),{default:o(()=>[h[1]||=i(`h1`,null,`You cannot backpropagate through a sample`,-1),h[2]||=i(`p`,null,[r(`The encoder produces `),i(`span`,{class:`katex`},[i(`span`,{class:`katex-mathml`},[i(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[i(`semantics`,null,[i(`mrow`,null,[i(`mi`,{mathvariant:`bold-italic`},`μ`),i(`mo`,{separator:`true`},`,`),i(`mi`,{mathvariant:`bold-italic`},`σ`)]),i(`annotation`,{encoding:`application/x-tex`},`\\boldsymbol\\mu, \\boldsymbol\\sigma`)])])]),i(`span`,{class:`katex-html`,"aria-hidden":`true`},[i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`0.6389em`,"vertical-align":`-0.1944em`}}),i(`span`,{class:`mord`},[i(`span`,{class:`mord`},[i(`span`,{class:`mord boldsymbol`},`μ`)])]),i(`span`,{class:`mpunct`},`,`),i(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),i(`span`,{class:`mord`},[i(`span`,{class:`mord`},[i(`span`,{class:`mord boldsymbol`,style:{"margin-right":`0.037em`}},`σ`)])])])])]),r(`; the decoder needs an actual `),i(`span`,{class:`katex`},[i(`span`,{class:`katex-mathml`},[i(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[i(`semantics`,null,[i(`mrow`,null,[i(`mi`,{mathvariant:`bold`},`z`)]),i(`annotation`,{encoding:`application/x-tex`},`\\mathbf{z}`)])])]),i(`span`,{class:`katex-html`,"aria-hidden":`true`},[i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`0.4444em`}}),i(`span`,{class:`mord mathbf`},`z`)])])]),r(`. A random draw has no gradient.`)],-1),h[3]||=i(`div`,{class:`mt-3 flex justify-center`},[i(`svg`,{viewBox:`0 0 660 132`,class:`dl-diagram`,role:`img`,"aria-label":`Sampling inside the graph blocks the gradient; adding scaled external noise does not`},[i(`defs`,null,[i(`marker`,{id:`rp-arrow`,markerWidth:`7`,markerHeight:`7`,refX:`6`,refY:`3.5`,orient:`auto`},[i(`path`,{class:`dl-dg-head`,d:`M0 0 L7 3.5 L0 7 z`})])]),i(`text`,{class:`dl-dg-small is-bad`,x:`8`,y:`14`},`sampling inside the graph`),i(`rect`,{class:`dl-dg-box`,x:`8`,y:`34`,width:`66`,height:`30`,rx:`4`}),i(`text`,{class:`dl-dg-lab is-sm`,x:`41`,y:`54`,"text-anchor":`middle`},`μ, σ`),i(`rect`,{class:`dl-dg-box is-bad`,x:`122`,y:`34`,width:`72`,height:`30`,rx:`4`}),i(`text`,{class:`dl-dg-lab is-sm`,x:`158`,y:`54`,"text-anchor":`middle`},`sample`),i(`rect`,{class:`dl-dg-box is-accent`,x:`242`,y:`34`,width:`44`,height:`30`,rx:`4`}),i(`text`,{class:`dl-dg-lab is-sm`,x:`264`,y:`54`,"text-anchor":`middle`},`z`),i(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#rp-arrow)`,d:`M74 49 H118`}),i(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#rp-arrow)`,d:`M196 49 H238`}),i(`path`,{class:`dl-dg-grad is-bad`,d:`M264 74 V96 H158 V70`}),i(`text`,{class:`dl-dg-small is-bad`,x:`196`,y:`112`},`gradient stops here`),i(`line`,{class:`dl-dg-split`,x1:`330`,y1:`6`,x2:`330`,y2:`126`}),i(`text`,{class:`dl-dg-small is-good`,x:`356`,y:`14`},`noise as an input`),i(`rect`,{class:`dl-dg-box`,x:`356`,y:`34`,width:`66`,height:`30`,rx:`4`}),i(`text`,{class:`dl-dg-lab is-sm`,x:`389`,y:`54`,"text-anchor":`middle`},`μ, σ`),i(`circle`,{class:`dl-dg-op`,cx:`486`,cy:`49`,r:`15`}),i(`text`,{class:`dl-dg-lab is-sm`,x:`486`,y:`55`,"text-anchor":`middle`},`+`),i(`text`,{class:`dl-dg-small`,x:`486`,y:`24`,"text-anchor":`middle`},`μ + σ ⊙ ε`),i(`rect`,{class:`dl-dg-box`,x:`456`,y:`94`,width:`60`,height:`26`,rx:`4`}),i(`text`,{class:`dl-dg-lab is-sm`,x:`486`,y:`112`,"text-anchor":`middle`},`ε`),i(`rect`,{class:`dl-dg-box is-accent`,x:`574`,y:`34`,width:`44`,height:`30`,rx:`4`}),i(`text`,{class:`dl-dg-lab is-sm`,x:`596`,y:`54`,"text-anchor":`middle`},`z`),i(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#rp-arrow)`,d:`M424 49 H468`}),i(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#rp-arrow)`,d:`M486 92 V66`}),i(`path`,{class:`dl-dg-arrow`,"marker-end":`url(#rp-arrow)`,d:`M503 49 H570`}),i(`path`,{class:`dl-dg-grad is-good`,d:`M596 74 V84 H389 V70`})])],-1),s((e(),a(`div`,m,[...h[0]||=[i(`p`,null,[i(`span`,{class:`katex`},[i(`span`,{class:`katex-mathml`},[i(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[i(`semantics`,null,[i(`mrow`,null,[i(`mi`,{mathvariant:`bold`},`z`),i(`mo`,null,`=`),i(`mi`,{mathvariant:`bold-italic`},`μ`),i(`mo`,null,`+`),i(`mi`,{mathvariant:`bold-italic`},`σ`),i(`mo`,null,`⊙`),i(`mi`,{mathvariant:`bold-italic`},`ϵ`)]),i(`annotation`,{encoding:`application/x-tex`},`\\mathbf{z} = \\boldsymbol\\mu + \\boldsymbol\\sigma \\odot \\boldsymbol\\epsilon`)])])]),i(`span`,{class:`katex-html`,"aria-hidden":`true`},[i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`0.4444em`}}),i(`span`,{class:`mord mathbf`},`z`),i(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),i(`span`,{class:`mrel`},`=`),i(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`0.7778em`,"vertical-align":`-0.1944em`}}),i(`span`,{class:`mord`},[i(`span`,{class:`mord`},[i(`span`,{class:`mord boldsymbol`},`μ`)])]),i(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),i(`span`,{class:`mbin`},`+`),i(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`0.6667em`,"vertical-align":`-0.0833em`}}),i(`span`,{class:`mord`},[i(`span`,{class:`mord`},[i(`span`,{class:`mord boldsymbol`,style:{"margin-right":`0.037em`}},`σ`)])]),i(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),i(`span`,{class:`mbin`},`⊙`),i(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`0.4444em`}}),i(`span`,{class:`mord`},[i(`span`,{class:`mord`},[i(`span`,{class:`mord boldsymbol`},`ϵ`)])])])])]),r(`, `),i(`span`,{class:`katex`},[i(`span`,{class:`katex-mathml`},[i(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[i(`semantics`,null,[i(`mrow`,null,[i(`mtext`,null,`  `),i(`mi`,{mathvariant:`bold-italic`},`ϵ`),i(`mo`,null,`∼`),i(`mi`,{mathvariant:`script`},`N`),i(`mo`,{stretchy:`false`},`(`),i(`mn`,{mathvariant:`bold`},`0`),i(`mo`,{separator:`true`},`,`),i(`mi`,null,`I`),i(`mo`,{stretchy:`false`},`)`)]),i(`annotation`,{encoding:`application/x-tex`},`\\;\\boldsymbol\\epsilon \\sim \\mathcal{N}(\\mathbf{0}, I)`)])])]),i(`span`,{class:`katex-html`,"aria-hidden":`true`},[i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`0.4444em`}}),i(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),i(`span`,{class:`mord`},[i(`span`,{class:`mord`},[i(`span`,{class:`mord boldsymbol`},`ϵ`)])]),i(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),i(`span`,{class:`mrel`},`∼`),i(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`1em`,"vertical-align":`-0.25em`}}),i(`span`,{class:`mord mathcal`,style:{"margin-right":`0.1474em`}},`N`),i(`span`,{class:`mopen`},`(`),i(`span`,{class:`mord mathbf`},`0`),i(`span`,{class:`mpunct`},`,`),i(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),i(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0785em`}},`I`),i(`span`,{class:`mclose`},`)`)])])]),r(` — the same random `),i(`span`,{class:`katex`},[i(`span`,{class:`katex-mathml`},[i(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[i(`semantics`,null,[i(`mrow`,null,[i(`mi`,{mathvariant:`bold`},`z`)]),i(`annotation`,{encoding:`application/x-tex`},`\\mathbf{z}`)])])]),i(`span`,{class:`katex-html`,"aria-hidden":`true`},[i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`0.4444em`}}),i(`span`,{class:`mord mathbf`},`z`)])])]),r(`, but now the gradient can reach `),i(`span`,{class:`katex`},[i(`span`,{class:`katex-mathml`},[i(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[i(`semantics`,null,[i(`mrow`,null,[i(`mi`,{mathvariant:`bold-italic`},`μ`)]),i(`annotation`,{encoding:`application/x-tex`},`\\boldsymbol\\mu`)])])]),i(`span`,{class:`katex-html`,"aria-hidden":`true`},[i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`0.6389em`,"vertical-align":`-0.1944em`}}),i(`span`,{class:`mord`},[i(`span`,{class:`mord`},[i(`span`,{class:`mord boldsymbol`},`μ`)])])])])]),r(` and `),i(`span`,{class:`katex`},[i(`span`,{class:`katex-mathml`},[i(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[i(`semantics`,null,[i(`mrow`,null,[i(`mi`,{mathvariant:`bold-italic`},`σ`)]),i(`annotation`,{encoding:`application/x-tex`},`\\boldsymbol\\sigma`)])])]),i(`span`,{class:`katex-html`,"aria-hidden":`true`},[i(`span`,{class:`katex-base`},[i(`span`,{class:`katex-strut`,style:{height:`0.4444em`}}),i(`span`,{class:`mord`},[i(`span`,{class:`mord`},[i(`span`,{class:`mord boldsymbol`,style:{"margin-right":`0.037em`}},`σ`)])])])])]),r(`.`)],-1)]])),[[g]])]),_:1},16)}}};export{h as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-x8semzhy.js b/lecture-07/assets/md-x8semzhy.js new file mode 100644 index 0000000000000000000000000000000000000000..ea67dc0787600e02dd68c1bc632dbdf66f3857a8 --- /dev/null +++ b/lecture-07/assets/md-x8semzhy.js @@ -0,0 +1,23 @@ +import{B as e,C as t,D as n,G as r,S as i,_ as a,b as o,et as s,tt as c,v as l,xt as u,yt as d}from"./modules/shiki-CJZsCeMT.js";import{n as f,t as p}from"./slidev/context-DB-9afGB.js";import{t as m}from"./slidev/VClicks-DhU7uhQr.js";import{t as h}from"./interactive-Co6Mxz4S.js";import{t as g}from"./DiffusionLab-DwmASr7s.js";var _={class:`mt-2 dl-callout`},v={__name:`slides.md__slidev_59`,setup(v){let{$slidev:y,$nav:b,$clicksContext:x,$clicks:S,$page:C,$renderContext:w,$frontmatter:T}=f();return x.setup(),(f,v)=>{let y=g,b=m,x=r(`click`);return e(),l(h,u(n(d(p)(d(T),58))),{aside:s(n=>[v[2]||=a(`p`,null,[i(`The three modes again, as blobs. Drag `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`t`)]),a(`annotation`,{encoding:`application/x-tex`},`t`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6151em`}}),a(`span`,{class:`mord mathnormal`},`t`)])])]),i(` from 0 to 47.`)],-1),t(b,null,{default:s(()=>[...v[0]||=[a(`ul`,null,[a(`li`,null,[a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`msqrt`,null,[a(`msub`,null,[a(`mover`,{accent:`true`},[a(`mi`,null,`α`),a(`mo`,null,`ˉ`)]),a(`mi`,null,`t`)])])]),a(`annotation`,{encoding:`application/x-tex`},`\\sqrt{\\bar\\alpha_t}`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1.04em`,"vertical-align":`-0.2461em`}}),a(`span`,{class:`mord sqrt`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.7939em`}},[a(`span`,{class:`svg-align`,style:{top:`-3em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`mord`,style:{"padding-left":`0.833em`}},[a(`span`,{class:`mord`},[a(`span`,{class:`mord katex-accent`},[a(`span`,{class:`vlist-t`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.5678em`}},[a(`span`,{style:{top:`-3em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0037em`}},`α`)]),a(`span`,{style:{top:`-3em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`accent-body`,style:{left:`-0.2222em`}},[a(`span`,{class:`mord`},`ˉ`)])])])])])]),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.2806em`}},[a(`span`,{style:{top:`-2.55em`,"margin-left":`-0.0037em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mathnormal mtight`},`t`)])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.15em`}},[a(`span`)])])])])])])]),a(`span`,{style:{top:`-2.7539em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`hide-tail`,style:{"min-width":`0.853em`,height:`1.08em`}},[a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`400em`,height:`1.08em`,viewBox:`0 0 400000 1080`,preserveAspectRatio:`xMinYMin slice`},[a(`path`,{d:`M95,702 +c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 +c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 +c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 +s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 +c69,-144,104.5,-217.7,106.5,-221 +l0 -0 +c5.3,-9.3,12,-14,20,-14 +H400000v40H845.2724 +s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 +c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z +M834 80h400000v40h-400000z`})])])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.2461em`}},[a(`span`)])])])])])])]),i(`: how much image is left. `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`msqrt`,null,[a(`mrow`,null,[a(`mn`,null,`1`),a(`mo`,null,`−`),a(`msub`,null,[a(`mover`,{accent:`true`},[a(`mi`,null,`α`),a(`mo`,null,`ˉ`)]),a(`mi`,null,`t`)])])])]),a(`annotation`,{encoding:`application/x-tex`},`\\sqrt{1-\\bar\\alpha_t}`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`1.04em`,"vertical-align":`-0.2078em`}}),a(`span`,{class:`mord sqrt`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.8322em`}},[a(`span`,{class:`svg-align`,style:{top:`-3em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`mord`,style:{"padding-left":`0.833em`}},[a(`span`,{class:`mord`},`1`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),a(`span`,{class:`mbin`},`−`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord katex-accent`},[a(`span`,{class:`vlist-t`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.5678em`}},[a(`span`,{style:{top:`-3em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0037em`}},`α`)]),a(`span`,{style:{top:`-3em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`accent-body`,style:{left:`-0.2222em`}},[a(`span`,{class:`mord`},`ˉ`)])])])])])]),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.2806em`}},[a(`span`,{style:{top:`-2.55em`,"margin-left":`-0.0037em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mathnormal mtight`},`t`)])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.15em`}},[a(`span`)])])])])])])]),a(`span`,{style:{top:`-2.7922em`}},[a(`span`,{class:`pstrut`,style:{height:`3em`}}),a(`span`,{class:`hide-tail`,style:{"min-width":`0.853em`,height:`1.08em`}},[a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`400em`,height:`1.08em`,viewBox:`0 0 400000 1080`,preserveAspectRatio:`xMinYMin slice`},[a(`path`,{d:`M95,702 +c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 +c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 +c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 +s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 +c69,-144,104.5,-217.7,106.5,-221 +l0 -0 +c5.3,-9.3,12,-14,20,-14 +H400000v40H845.2724 +s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 +c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z +M834 80h400000v40h-400000z`})])])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.2078em`}},[a(`span`)])])])])])])]),i(`: how much noise`)]),a(`li`,null,[i(`By `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`mi`,null,`t`),a(`mo`,null,`=`),a(`mn`,null,`47`)]),a(`annotation`,{encoding:`application/x-tex`},`t = 47`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6151em`}}),a(`span`,{class:`mord mathnormal`},`t`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),a(`span`,{class:`mrel`},`=`),a(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.6444em`}}),a(`span`,{class:`mord`},`47`)])])]),i(` the clusters are gone`)]),a(`li`,null,[i(`Every frame comes from `),a(`span`,{class:`katex`},[a(`span`,{class:`katex-mathml`},[a(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[a(`semantics`,null,[a(`mrow`,null,[a(`msub`,null,[a(`mi`,{mathvariant:`bold`},`x`),a(`mn`,null,`0`)])]),a(`annotation`,{encoding:`application/x-tex`},`\\mathbf{x}_0`)])])]),a(`span`,{class:`katex-html`,"aria-hidden":`true`},[a(`span`,{class:`katex-base`},[a(`span`,{class:`katex-strut`,style:{height:`0.5944em`,"vertical-align":`-0.15em`}}),a(`span`,{class:`mord`},[a(`span`,{class:`mord mathbf`},`x`),a(`span`,{class:`msupsub`},[a(`span`,{class:`vlist-t vlist-t2`},[a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.3011em`}},[a(`span`,{style:{top:`-2.55em`,"margin-left":`0em`,"margin-right":`0.05em`}},[a(`span`,{class:`pstrut`,style:{height:`2.7em`}}),a(`span`,{class:`katex-sizing reset-size6 size3 mtight`},[a(`span`,{class:`mord mtight`},`0`)])])]),a(`span`,{class:`vlist-s`},`​`)]),a(`span`,{class:`vlist-r`},[a(`span`,{class:`vlist`,style:{height:`0.15em`}},[a(`span`)])])])])])])])]),i(),a(`strong`,null,`directly`)])],-1)]]),_:1}),c((e(),o(`div`,_,[...v[1]||=[a(`p`,null,`Nothing was trained.`,-1)]])),[[x]])]),default:s(()=>[t(y)]),_:1},16)}}};export{v as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-yOY-3n-w.js b/lecture-07/assets/md-yOY-3n-w.js new file mode 100644 index 0000000000000000000000000000000000000000..e394d744f2d08057ffb021fcc7d22b2cf758b9f4 --- /dev/null +++ b/lecture-07/assets/md-yOY-3n-w.js @@ -0,0 +1 @@ +import{B as e,C as t,D as n,G as r,H as i,_ as a,b as o,et as s,m as c,tt as l,v as u,xt as d,yt as f}from"./modules/shiki-CJZsCeMT.js";import{n as p,t as m}from"./slidev/context-DB-9afGB.js";import{t as h}from"./PixelImage-C1NqQXMF.js";import{t as g}from"./default-CbJk4Idc.js";import{t as _}from"./PollSlide-BQgjKhm1.js";var v={class:`grid grid-cols-[1.7fr_1fr] gap-6 items-start`},y={class:`mt-10`},b={viewBox:`0 0 260 150`,class:`dl-diagram`,role:`img`,"aria-label":`Training codes sit in three clumps; a random z lands in a gap and decodes to noise`},x=[`cx`],S={class:`mt-4 dl-reveal dl-reveal--side`},C={class:`mt-2 dl-secondary`},w={__name:`slides.md__slidev_17`,setup(w){let{$slidev:T,$nav:E,$clicksContext:D,$clicks:O,$page:k,$renderContext:A,$frontmatter:j}=p();return D.setup(),(p,w)=>{let T=_,E=h,D=r(`click`);return e(),u(g,d(n(f(m)(f(j),16))),{default:s(()=>[a(`div`,v,[a(`div`,null,[t(T,{question:`An autoencoder rebuilds test images perfectly, yet a random z decodes to noise. Why?`,items:[`The decoder is undertrained`,`The code is too small to hold an image`,`The encoder never put any codes where that z is`,`You need a bigger dataset`]})]),a(`div`,y,[(e(),o(`svg`,b,[w[0]||=a(`line`,{class:`dl-dg-split`,x1:`6`,y1:`40`,x2:`254`,y2:`40`},null,-1),(e(),o(c,null,i([20,26,31,36,110,116,121,127,200,207,212,218],(e,t)=>a(`circle`,{key:t,class:`dl-dg-dot`,cx:e,cy:`40`,r:`4`},null,8,x)),64)),w[1]||=a(`text`,{class:`dl-dg-small`,x:`6`,y:`18`},`training codes`,-1),w[2]||=a(`path`,{class:`dl-dg-line is-bad`,d:`M165 20 L165 60`},null,-1),w[3]||=a(`text`,{class:`dl-dg-small is-bad`,x:`165`,y:`76`,"text-anchor":`middle`},`random z`,-1),w[4]||=a(`path`,{class:`dl-dg-arrow`,d:`M165 82 V96`},null,-1),t(E,{"in-svg":``,x:138,y:98,size:50,pattern:`noise`,seed:9,tone:`danger`})])),l((e(),o(`div`,S,[...w[5]||=[a(`p`,null,`Nothing ever lives at that z`,-1)]])),[[D]]),l((e(),o(`div`,C,[...w[6]||=[a(`p`,null,`The decoder only learned the places where the encoder put codes. Everywhere else its output was never trained.`,-1)]])),[[D]])])])]),_:1},16)}}};export{w as default}; \ No newline at end of file diff --git a/lecture-07/assets/md-zUivEl6R.js b/lecture-07/assets/md-zUivEl6R.js new file mode 100644 index 0000000000000000000000000000000000000000..c77cf8764bd2a1364e7547d27ab664b724b48f12 --- /dev/null +++ b/lecture-07/assets/md-zUivEl6R.js @@ -0,0 +1,11 @@ +import{B as e,C as t,D as n,G as r,N as i,S as a,_ as o,b as s,et as c,tt as l,v as u,xt as d,yt as f}from"./modules/shiki-CJZsCeMT.js";import{n as p,t as m}from"./slidev/context-DB-9afGB.js";import{t as h}from"./default-CbJk4Idc.js";import{t as g}from"./slidev/CodeBlockWrapper-CsMaG0t-.js";var _={class:`mt-1 flex justify-center`},v={viewBox:`0 0 660 92`,class:`dl-diagram`,role:`img`,"aria-label":`Line 6: detach cuts the gradient before it reaches G. Line 10: the gradient must cross D to reach G`},y={__name:`slides.md__slidev_40`,setup(y){let{$slidev:b,$nav:x,$clicksContext:S,$clicks:C,$page:w,$renderContext:T,$frontmatter:E}=p();return S.setup(),(p,y)=>{let b=g,x=r(`click`);return e(),u(h,d(n(f(m)(f(E),39))),{default:c(()=>[y[4]||=o(`h1`,null,`The training loop`,-1),t(b,i({lines:!0},{title:``,ranges:[`all`,`1-2`,`5-7`,`9-11`,`all`]}),{default:c(()=>[...y[0]||=[o(`pre`,{class:`shiki shiki-themes vitesse-dark vitesse-light slidev-code`,style:{"--shiki-dark":`#dbd7caee`,"--shiki-light":`#393a34`,"--shiki-dark-bg":`#121212`,"--shiki-light-bg":`#ffffff`}},[o(`code`,{class:`language-python`},[o(`span`,{class:`line`},[o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`opt_d `),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`=`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` torch`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`optim`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`Adam`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`D`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`parameters`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(),`),o(`span`,{style:{"--shiki-dark":`#BD976A`,"--shiki-light":`#B07D48`}},` lr`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`=`),o(`span`,{style:{"--shiki-dark":`#4C9A91`,"--shiki-light":`#2F798A`}},`2e-4`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`,`),o(`span`,{style:{"--shiki-dark":`#BD976A`,"--shiki-light":`#B07D48`}},` betas`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`=(`),o(`span`,{style:{"--shiki-dark":`#4C9A91`,"--shiki-light":`#2F798A`}},`0.5`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`,`),o(`span`,{style:{"--shiki-dark":`#4C9A91`,"--shiki-light":`#2F798A`}},` 0.999`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`))`)]),a(` +`),o(`span`,{class:`line`},[o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`opt_g `),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`=`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` torch`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`optim`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`Adam`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`G`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`parameters`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(),`),o(`span`,{style:{"--shiki-dark":`#BD976A`,"--shiki-light":`#B07D48`}},` lr`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`=`),o(`span`,{style:{"--shiki-dark":`#4C9A91`,"--shiki-light":`#2F798A`}},`2e-4`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`,`),o(`span`,{style:{"--shiki-dark":`#BD976A`,"--shiki-light":`#B07D48`}},` betas`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`=(`),o(`span`,{style:{"--shiki-dark":`#4C9A91`,"--shiki-light":`#2F798A`}},`0.5`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`,`),o(`span`,{style:{"--shiki-dark":`#4C9A91`,"--shiki-light":`#2F798A`}},` 0.999`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`))`)]),a(` +`),o(`span`,{class:`line`}),a(` +`),o(`span`,{class:`line`},[o(`span`,{style:{"--shiki-dark":`#4D9375`,"--shiki-light":`#1E754F`}},`for`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` real `),o(`span`,{style:{"--shiki-dark":`#4D9375`,"--shiki-light":`#1E754F`}},`in`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` loader`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`:`)]),a(` +`),o(`span`,{class:`line`},[o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` fake `),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`=`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` G`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`torch`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`randn`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`real`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`size`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),o(`span`,{style:{"--shiki-dark":`#4C9A91`,"--shiki-light":`#2F798A`}},`0`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`),`),o(`span`,{style:{"--shiki-dark":`#4C9A91`,"--shiki-light":`#2F798A`}},` 100`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`,`),o(`span`,{style:{"--shiki-dark":`#BD976A`,"--shiki-light":`#B07D48`}},` device`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`=`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`dev`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`))`),o(`span`,{style:{"--shiki-dark":`#758575DD`,"--shiki-light":`#A0ADA0`}},` # steps 1–3`)]),a(` +`),o(`span`,{class:`line`},[o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` loss_d `),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`=`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` bce`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`D`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`real`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`),`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` ones`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`)`),o(`span`,{style:{"--shiki-dark":`#CB7676`,"--shiki-light":`#AB5959`}},` +`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` bce`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`D`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`fake`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`detach`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`()),`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` zeros`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`)`)]),a(` +`),o(`span`,{class:`line`},[o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` opt_d`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`zero_grad`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`()`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`; loss_d`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`backward`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`()`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`; opt_d`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`step`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`()`)]),a(` +`),o(`span`,{class:`line`}),a(` +`),o(`span`,{class:`line`},[o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` fake `),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`=`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` G`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`torch`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`randn`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`real`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`size`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),o(`span`,{style:{"--shiki-dark":`#4C9A91`,"--shiki-light":`#2F798A`}},`0`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`),`),o(`span`,{style:{"--shiki-dark":`#4C9A91`,"--shiki-light":`#2F798A`}},` 100`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`,`),o(`span`,{style:{"--shiki-dark":`#BD976A`,"--shiki-light":`#B07D48`}},` device`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`=`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`dev`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`))`),o(`span`,{style:{"--shiki-dark":`#758575DD`,"--shiki-light":`#A0ADA0`}},` # step 4`)]),a(` +`),o(`span`,{class:`line`},[o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` loss_g `),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`=`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` bce`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`D`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`(`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`fake`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`),`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` ones`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`)`),o(`span`,{style:{"--shiki-dark":`#758575DD`,"--shiki-light":`#A0ADA0`}},` # label 1 — the non-saturating form`)]),a(` +`),o(`span`,{class:`line`},[o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},` opt_g`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`zero_grad`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`()`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`; loss_g`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`backward`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`()`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`; opt_g`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`.`),o(`span`,{style:{"--shiki-dark":`#DBD7CAEE`,"--shiki-light":`#393A34`}},`step`),o(`span`,{style:{"--shiki-dark":`#666666`,"--shiki-light":`#999999`}},`()`)])])],-1)]]),_:1},16),o(`div`,_,[(e(),s(`svg`,v,[y[3]||=o(`defs`,null,[o(`marker`,{id:`tl-arrow`,markerWidth:`7`,markerHeight:`7`,refX:`6`,refY:`3.5`,orient:`auto`},[o(`path`,{class:`dl-dg-head`,d:`M0 0 L7 3.5 L0 7 z`})])],-1),l((e(),s(`g`,null,[...y[1]||=[o(`text`,{class:`dl-dg-small`,x:`4`,y:`26`},`line 6`,-1),o(`rect`,{class:`dl-dg-box`,x:`50`,y:`10`,width:`44`,height:`24`,rx:`4`},null,-1),o(`text`,{class:`dl-dg-lab is-sm`,x:`72`,y:`27`,"text-anchor":`middle`},`G`,-1),o(`g`,{transform:`translate(116 12)`},[o(`circle`,{class:`dl-dg-op`,cx:`4`,cy:`4`,r:`4`}),o(`circle`,{class:`dl-dg-op`,cx:`4`,cy:`16`,r:`4`}),o(`path`,{class:`dl-dg-arrow`,d:`M7 6 L22 14 M7 14 L22 6`})],-1),o(`rect`,{class:`dl-dg-box is-accent`,x:`160`,y:`10`,width:`44`,height:`24`,rx:`4`},null,-1),o(`text`,{class:`dl-dg-lab is-sm`,x:`182`,y:`27`,"text-anchor":`middle`},`D`,-1),o(`text`,{class:`dl-dg-small`,x:`214`,y:`26`},`← loss_d`,-1),o(`path`,{class:`dl-dg-grad is-bad`,d:`M156 22 H140`},null,-1),o(`text`,{class:`dl-dg-small is-bad`,x:`280`,y:`26`},`detach(): D learns, G is untouched`,-1)]])),[[x]]),l((e(),s(`g`,null,[...y[2]||=[o(`text`,{class:`dl-dg-small`,x:`4`,y:`72`},`line 10`,-1),o(`rect`,{class:`dl-dg-box is-accent`,x:`50`,y:`56`,width:`44`,height:`24`,rx:`4`},null,-1),o(`text`,{class:`dl-dg-lab is-sm`,x:`72`,y:`73`,"text-anchor":`middle`},`G`,-1),o(`path`,{class:`dl-dg-grad is-good`,"marker-end":`url(#tl-arrow)`,d:`M158 68 H98`},null,-1),o(`rect`,{class:`dl-dg-box`,x:`160`,y:`56`,width:`44`,height:`24`,rx:`4`},null,-1),o(`text`,{class:`dl-dg-lab is-sm`,x:`182`,y:`73`,"text-anchor":`middle`},`D`,-1),o(`text`,{class:`dl-dg-small`,x:`214`,y:`72`},`← loss_g`,-1),o(`text`,{class:`dl-dg-small is-good`,x:`280`,y:`72`},`no detach: the gradient must cross D to reach G`,-1)]])),[[x]])]))])]),_:1},16)}}};export{y as default}; \ No newline at end of file diff --git a/lecture-07/assets/modules/shiki-CJZsCeMT.js b/lecture-07/assets/modules/shiki-CJZsCeMT.js new file mode 100644 index 0000000000000000000000000000000000000000..d8f6c66b34bb5820bf9f30abd42969dd072cc11e --- /dev/null +++ b/lecture-07/assets/modules/shiki-CJZsCeMT.js @@ -0,0 +1,10 @@ +import{n as e}from"../rolldown-runtime-hePW80VL.js";function t(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var n={},r=[],i=()=>{},a=()=>!1,o=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),s=e=>e.startsWith(`onUpdate:`),c=Object.assign,l=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},u=Object.prototype.hasOwnProperty,d=(e,t)=>u.call(e,t),f=Array.isArray,p=e=>C(e)===`[object Map]`,m=e=>C(e)===`[object Set]`,h=e=>C(e)===`[object Date]`,g=e=>C(e)===`[object RegExp]`,_=e=>typeof e==`function`,v=e=>typeof e==`string`,y=e=>typeof e==`symbol`,b=e=>typeof e==`object`&&!!e,x=e=>(b(e)||_(e))&&_(e.then)&&_(e.catch),S=Object.prototype.toString,C=e=>S.call(e),w=e=>C(e).slice(8,-1),T=e=>C(e)===`[object Object]`,E=e=>v(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,D=t(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),ee=t(`bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo`),te=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},O=/-\w/g,k=te(e=>e.replace(O,e=>e.slice(1).toUpperCase())),ne=/\B([A-Z])/g,A=te(e=>e.replace(ne,`-$1`).toLowerCase()),re=te(e=>e.charAt(0).toUpperCase()+e.slice(1)),j=te(e=>e?`on${re(e)}`:``),M=(e,t)=>!Object.is(e,t),ie=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},oe=e=>{let t=parseFloat(e);return isNaN(t)?e:t},se=e=>{let t=v(e)?Number(e):NaN;return isNaN(t)?e:t},ce,le=()=>ce||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function ue(e,t){return e+JSON.stringify(t,(e,t)=>typeof t==`function`?t.toString():t)}var de=t(`Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol`);function fe(e){if(f(e)){let t={};for(let n=0;n{if(e){let n=e.split(me);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function _e(e){let t=``;if(v(e))t=e;else if(f(e))for(let n=0;nje(e,t))}var Ne=e=>!!(e&&e.__v_isRef===!0),Pe=e=>v(e)?e:e==null?``:f(e)||b(e)&&(e.toString===S||!_(e.toString))?Ne(e)?Pe(e.value):JSON.stringify(e,Fe,2):String(e),Fe=(e,t)=>Ne(t)?Fe(e,t.value):p(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Ie(t,r)+` =>`]=n,e),{})}:m(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Ie(e))}:y(t)?Ie(t):b(t)&&!f(t)&&!T(t)?String(t):t,Ie=(e,t=``)=>y(e)?`Symbol(${e.description??t})`:e;function Le(e){return e==null?`initial`:typeof e==`string`?e===``?` `:e:String(e)}var N,Re=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&N&&(N.active?(this.parent=N,this.index=(N.scopes||(N.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e0&&--this._on===0){if(N===this)N=this.prevScope;else{let e=N;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t0)return;if(Ke){let e=Ke;for(Ke=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Ge;){let t=Ge;for(Ge=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function Xe(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ze(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),et(r),tt(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Qe(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&($e(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function $e(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===lt)||(e.globalVersion=lt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Qe(e))))return;e.flags|=2;let t=e.dep,n=P,r=it;P=e,it=!0;try{Xe(e);let n=e.fn(e._value);(t.version===0||M(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{P=n,it=r,Ze(e),e.flags&=-3}}function et(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)et(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function tt(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function nt(e,t){e.effect instanceof Ue&&(e=e.effect.fn);let n=new Ue(e);t&&c(n,t);try{n.run()}catch(e){throw n.stop(),e}let r=n.run.bind(n);return r.effect=n,r}function rt(e){e.effect.stop()}var it=!0,at=[];function ot(){at.push(it),it=!1}function st(){let e=at.pop();it=e===void 0||e}function ct(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=P;P=void 0;try{t()}finally{P=e}}}var lt=0,ut=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},dt=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!P||!it||P===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==P)t=this.activeLink=new ut(P,this),P.deps?(t.prevDep=P.depsTail,P.depsTail.nextDep=t,P.depsTail=t):P.deps=P.depsTail=t,ft(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=P.depsTail,t.nextDep=void 0,P.depsTail.nextDep=t,P.depsTail=t,P.deps===t&&(P.deps=e)}return t}trigger(e){this.version++,lt++,this.notify(e)}notify(e){Je();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Ye()}}};function ft(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)ft(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var pt=new WeakMap,mt=Symbol(``),ht=Symbol(``),gt=Symbol(``);function _t(e,t,n){if(it&&P){let t=pt.get(e);t||pt.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new dt),r.map=t,r.key=n),r.track()}}function vt(e,t,n,r,i,a){let o=pt.get(e);if(!o){lt++;return}let s=e=>{e&&e.trigger()};if(Je(),t===`clear`)o.forEach(s);else{let i=f(e),a=i&&E(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===gt||!y(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(gt)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(mt)),p(e)&&s(o.get(ht)));break;case`delete`:i||(s(o.get(mt)),p(e)&&s(o.get(ht)));break;case`set`:p(e)&&s(o.get(mt))}}Ye()}function yt(e,t){let n=pt.get(e);return n&&n.get(t)}function bt(e){let t=F(e);return t===e?t:(_t(t,`iterate`,gt),ln(e)?t:t.map(fn))}function xt(e){return _t(e=F(e),`iterate`,gt),e}function St(e,t){return cn(e)?pn(sn(e)?fn(t):t):fn(t)}var Ct={__proto__:null,[Symbol.iterator](){return wt(this,Symbol.iterator,e=>St(this,e))},concat(...e){return bt(this).concat(...e.map(e=>f(e)?bt(e):e))},entries(){return wt(this,`entries`,e=>(e[1]=St(this,e[1]),e))},every(e,t){return Et(this,`every`,e,t,void 0,arguments)},filter(e,t){return Et(this,`filter`,e,t,e=>e.map(e=>St(this,e)),arguments)},find(e,t){return Et(this,`find`,e,t,e=>St(this,e),arguments)},findIndex(e,t){return Et(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return Et(this,`findLast`,e,t,e=>St(this,e),arguments)},findLastIndex(e,t){return Et(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return Et(this,`forEach`,e,t,void 0,arguments)},includes(...e){return Ot(this,`includes`,e)},indexOf(...e){return Ot(this,`indexOf`,e)},join(e){return bt(this).join(e)},lastIndexOf(...e){return Ot(this,`lastIndexOf`,e)},map(e,t){return Et(this,`map`,e,t,void 0,arguments)},pop(){return kt(this,`pop`)},push(...e){return kt(this,`push`,e)},reduce(e,...t){return Dt(this,`reduce`,e,t)},reduceRight(e,...t){return Dt(this,`reduceRight`,e,t)},shift(){return kt(this,`shift`)},some(e,t){return Et(this,`some`,e,t,void 0,arguments)},splice(...e){return kt(this,`splice`,e)},toReversed(){return bt(this).toReversed()},toSorted(e){return bt(this).toSorted(e)},toSpliced(...e){return bt(this).toSpliced(...e)},unshift(...e){return kt(this,`unshift`,e)},values(){return wt(this,`values`,e=>St(this,e))}};function wt(e,t,n){let r=xt(e),i=r[t]();return r!==e&&!ln(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var Tt=Array.prototype;function Et(e,t,n,r,i,a){let o=xt(e),s=o!==e&&!ln(e),c=o[t];if(c!==Tt[t]){let t=c.apply(e,a);return s?fn(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,St(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function Dt(e,t,n,r){let i=xt(e),a=i!==e&&!ln(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=St(e,t)),n.call(this,t,St(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?St(e,c):c}function Ot(e,t,n){let r=F(e);_t(r,`iterate`,gt);let i=r[t](...n);return(i===-1||i===!1)&&un(n[0])?(n[0]=F(n[0]),r[t](...n)):i}function kt(e,t,n=[]){ot(),Je();let r=F(e)[t].apply(e,n);return Ye(),st(),r}var At=t(`__proto__,__v_isRef,__isVue`),jt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(y));function Mt(e){y(e)||(e=String(e));let t=F(this);return _t(t,`has`,e),t.hasOwnProperty(e)}var Nt=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?$t:Qt:i?Zt:Xt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=f(e);if(!r){let e;if(a&&(e=Ct[t]))return e;if(t===`hasOwnProperty`)return Mt}let o=Reflect.get(e,t,I(e)?e:n);if((y(t)?jt.has(t):At(t))||(r||_t(e,`get`,t),i))return o;if(I(o)){let e=a&&E(t)?o:o.value;return r&&b(e)?rn(e):e}return b(o)?r?rn(o):tn(o):o}},Pt=class extends Nt{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=f(e)&&E(t);if(!this._isShallow){let e=cn(i);if(!ln(n)&&!cn(n)&&(i=F(i),n=F(n)),!a&&I(i)&&!I(n))return e||(i.value=n),!0}let o=a?Number(t)e,Vt=e=>Reflect.getPrototypeOf(e);function Ht(e,t,n){return function(...r){let i=this.__v_raw,a=F(i),o=p(a),s=e===`entries`||e===Symbol.iterator&&o,l=e===`keys`&&o,u=i[e](...r),d=n?Bt:t?pn:fn;return!t&&_t(a,`iterate`,l?ht:mt),c(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:s?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function Ut(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function Wt(e,t){let n={get(n){let r=this.__v_raw,i=F(r),a=F(n);e||(M(n,a)&&_t(i,`get`,n),_t(i,`get`,a));let{has:o}=Vt(i),s=t?Bt:e?pn:fn;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&_t(F(t),`iterate`,mt),t.size},has(t){let n=this.__v_raw,r=F(n),i=F(t);return e||(M(t,i)&&_t(r,`has`,t),_t(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=F(a),s=t?Bt:e?pn:fn;return!e&&_t(o,`iterate`,mt),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return c(n,e?{add:Ut(`add`),set:Ut(`set`),delete:Ut(`delete`),clear:Ut(`clear`)}:{add(e){let n=F(this),r=Vt(n),i=F(e),a=!t&&!ln(e)&&!cn(e)?i:e;return r.has.call(n,a)||M(e,a)&&r.has.call(n,e)||M(i,a)&&r.has.call(n,i)||(n.add(a),vt(n,`add`,a,a)),this},set(e,n){!t&&!ln(n)&&!cn(n)&&(n=F(n));let r=F(this),{has:i,get:a}=Vt(r),o=i.call(r,e);o||=(e=F(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?M(n,s)&&vt(r,`set`,e,n,s):vt(r,`add`,e,n),this},delete(e){let t=F(this),{has:n,get:r}=Vt(t),i=n.call(t,e);i||=(e=F(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&vt(t,`delete`,e,void 0,a),o},clear(){let e=F(this),t=e.size!==0,n=e.clear();return t&&vt(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=Ht(r,e,t)}),n}function Gt(e,t){let n=Wt(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(d(n,r)&&r in t?n:t,r,i)}var Kt={get:Gt(!1,!1)},qt={get:Gt(!1,!0)},Jt={get:Gt(!0,!1)},Yt={get:Gt(!0,!0)},Xt=new WeakMap,Zt=new WeakMap,Qt=new WeakMap,$t=new WeakMap;function en(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function tn(e){return cn(e)?e:on(e,!1,It,Kt,Xt)}function nn(e){return on(e,!1,Rt,qt,Zt)}function rn(e){return on(e,!0,Lt,Jt,Qt)}function an(e){return on(e,!0,zt,Yt,$t)}function on(e,t,n,r,i){if(!b(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=en(w(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function sn(e){return cn(e)?sn(e.__v_raw):!!(e&&e.__v_isReactive)}function cn(e){return!!(e&&e.__v_isReadonly)}function ln(e){return!!(e&&e.__v_isShallow)}function un(e){return e?!!e.__v_raw:!1}function F(e){let t=e&&e.__v_raw;return t?F(t):e}function dn(e){return!d(e,`__v_skip`)&&Object.isExtensible(e)&&ae(e,`__v_skip`,!0),e}var fn=e=>b(e)?tn(e):e,pn=e=>b(e)?rn(e):e;function I(e){return e?e.__v_isRef===!0:!1}function mn(e){return gn(e,!1)}function hn(e){return gn(e,!0)}function gn(e,t){return I(e)?e:new _n(e,t)}var _n=class{constructor(e,t){this.dep=new dt,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:F(e),this._value=t?e:fn(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||ln(e)||cn(e);e=n?e:F(e),M(e,t)&&(this._rawValue=e,this._value=n?e:fn(e),this.dep.trigger())}};function vn(e){e.dep&&e.dep.trigger()}function yn(e){return I(e)?e.value:e}function bn(e){return _(e)?e():yn(e)}var xn={get:(e,t,n)=>t===`__v_raw`?e:yn(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return I(i)&&!I(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Sn(e){return sn(e)?e:new Proxy(e,xn)}var Cn=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new dt,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}};function wn(e){return new Cn(e)}function Tn(e){let t=f(e)?Array(e.length):{};for(let n in e)t[n]=kn(e,n);return t}var En=class{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=y(t)?t:String(t),this._raw=F(e);let r=!0,i=e;if(!f(e)||y(this._key)||!E(this._key))do r=!un(i)||ln(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=yn(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&I(this._raw[this._key])){let t=this._object[this._key];if(I(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return yt(this._raw,this._key)}},Dn=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function On(e,t,n){return I(e)?e:_(e)?new Dn(e):b(e)&&arguments.length>1?kn(e,t,n):mn(e)}function kn(e,t,n){return new En(e,t,n)}var An=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new dt(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=lt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&P!==this)return qe(this,!0),!0}get value(){let e=this.dep.track();return $e(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function jn(e,t,n=!1){let r,i;return _(e)?r=e:(r=e.get,i=e.set),new An(r,i,n)}var Mn={GET:`get`,HAS:`has`,ITERATE:`iterate`},Nn={SET:`set`,ADD:`add`,DELETE:`delete`,CLEAR:`clear`},Pn={},Fn=new WeakMap,In=void 0;function Ln(){return In}function Rn(e,t=!1,n=In){if(n){let t=Fn.get(n);t||Fn.set(n,t=[]),t.push(e)}}function zn(e,t,r=n){let{immediate:a,deep:o,once:s,scheduler:c,augmentJob:u,call:d}=r,p=e=>o?e:ln(e)||o===!1||o===0?Bn(e,1):Bn(e),m,h,g,v,y=!1,b=!1;if(I(e)?(h=()=>e.value,y=ln(e)):sn(e)?(h=()=>p(e),y=!0):f(e)?(b=!0,y=e.some(e=>sn(e)||ln(e)),h=()=>e.map(e=>{if(I(e))return e.value;if(sn(e))return p(e);if(_(e))return d?d(e,2):e()})):h=_(e)?t?d?()=>d(e,2):e:()=>{if(g){ot();try{g()}finally{st()}}let t=In;In=m;try{return d?d(e,3,[v]):e(v)}finally{In=t}}:i,t&&o){let e=h,t=o===!0?1/0:o;h=()=>Bn(e(),t)}let x=Be(),S=()=>{m.stop(),x&&x.active&&l(x.effects,m)};if(s&&t){let e=t;t=(...t)=>{let n=e(...t);return S(),n}}let C=b?Array(e.length).fill(Pn):Pn,w=e=>{if(!(!(m.flags&1)||!m.dirty&&!e)){if(t){let n=m.run();if(e||o||y||(b?n.some((e,t)=>M(e,C[t])):M(n,C))){g&&g();let e=In;In=m;try{let e=[n,C===Pn?void 0:b&&C[0]===Pn?[]:C,v];C=n,d?d(t,3,e):t(...e)}finally{In=e}}}else m.run()}};return u&&u(w),m=new Ue(h),m.scheduler=c?()=>c(w,!1):w,v=e=>Rn(e,!1,m),g=m.onStop=()=>{let e=Fn.get(m);if(e){if(d)d(e,4);else for(let t of e)t();Fn.delete(m)}},t?a?w(!0):C=m.run():c?c(w.bind(null,!0),!0):m.run(),S.pause=m.pause.bind(m),S.resume=m.resume.bind(m),S.stop=S,S}function Bn(e,t=1/0,n){if(t<=0||!b(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,I(e))Bn(e.value,t,n);else if(f(e))for(let r=0;r{Bn(e,t,n)});else if(T(e)){for(let r in e)Bn(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Bn(e[r],t,n)}return e}var Vn=[];function Hn(e){Vn.push(e)}function Un(){Vn.pop()}function Wn(e,t){}var Gn={SETUP_FUNCTION:0,0:`SETUP_FUNCTION`,RENDER_FUNCTION:1,1:`RENDER_FUNCTION`,NATIVE_EVENT_HANDLER:5,5:`NATIVE_EVENT_HANDLER`,COMPONENT_EVENT_HANDLER:6,6:`COMPONENT_EVENT_HANDLER`,VNODE_HOOK:7,7:`VNODE_HOOK`,DIRECTIVE_HOOK:8,8:`DIRECTIVE_HOOK`,TRANSITION_HOOK:9,9:`TRANSITION_HOOK`,APP_ERROR_HANDLER:10,10:`APP_ERROR_HANDLER`,APP_WARN_HANDLER:11,11:`APP_WARN_HANDLER`,FUNCTION_REF:12,12:`FUNCTION_REF`,ASYNC_COMPONENT_LOADER:13,13:`ASYNC_COMPONENT_LOADER`,SCHEDULER:14,14:`SCHEDULER`,COMPONENT_UPDATE:15,15:`COMPONENT_UPDATE`,APP_UNMOUNT_CLEANUP:16,16:`APP_UNMOUNT_CLEANUP`},Kn={sp:`serverPrefetch hook`,bc:`beforeCreate hook`,c:`created hook`,bm:`beforeMount hook`,m:`mounted hook`,bu:`beforeUpdate hook`,u:`updated`,bum:`beforeUnmount hook`,um:`unmounted hook`,a:`activated hook`,da:`deactivated hook`,ec:`errorCaptured hook`,rtc:`renderTracked hook`,rtg:`renderTriggered hook`,0:`setup function`,1:`render function`,2:`watcher getter`,3:`watcher callback`,4:`watcher cleanup function`,5:`native event handler`,6:`component event handler`,7:`vnode hook`,8:`directive hook`,9:`transition hook`,10:`app errorHandler`,11:`app warnHandler`,12:`ref function`,13:`async component loader`,14:`scheduler flush`,15:`component update`,16:`app unmount cleanup function`};function qn(e,t,n,r){try{return r?e(...r):e()}catch(e){Yn(e,t,n)}}function Jn(e,t,n,r){if(_(e)){let i=qn(e,t,n,r);return i&&x(i)&&i.catch(e=>{Yn(e,t,n)}),i}if(f(e)){let i=[];for(let a=0;a>>1,i=Zn[r],a=dr(i);a=dr(n)?Zn.push(e):Zn.splice(ar(t),0,e),e.flags|=1,sr()}}function sr(){rr||=nr.then(fr)}function cr(e){if(!f(e))er&&e.id===-1?er.splice(tr+1,0,e):e.flags&1||($n.push(e),e.flags|=1);else for(let t=0;tdr(e)-dr(t));if($n.length=0,er){for(let t=0;te.id==null?e.flags&2?-1:1/0:e.id;function fr(e){try{for(Qn=0;Qnpr.emit(e,...t)),mr=[]):typeof window<`u`&&window.HTMLElement&&!(window.navigator?.userAgent)?.includes(`jsdom`)?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(e=>{hr(e,t)}),setTimeout(()=>{pr||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,mr=[])},3e3)):mr=[]}var L=null,gr=null;function _r(e){let t=L;return L=e,gr=e&&e.type.__scopeId||null,t}function vr(e){gr=e}function yr(){gr=null}var br=e=>xr;function xr(e,t=L,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&xs(-1);let i=_r(t),a=gs.length,o;try{o=e(...n)}finally{for(let e=gs.length;e>a;e--)ys();_r(i),r._d&&xs(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Sr(e,t){if(L===null)return e;let r=cc(L),i=e.dirs||=[];for(let e=0;e1)return n&&_(t)?t.call(r&&r.proxy):t}}function Er(){return!!(Gs()||uo)}var Dr=Symbol.for(`v-scx`),Or=()=>Tr(Dr);function kr(e,t){return Nr(e,null,t)}function Ar(e,t){return Nr(e,null,{flush:`post`})}function jr(e,t){return Nr(e,null,{flush:`sync`})}function Mr(e,t,n){return Nr(e,t,n)}function Nr(e,t,r=n){let{immediate:a,deep:o,flush:s,once:l}=r,u=c({},r),d=t&&a||!t&&s!==`post`,f;if(Zs){if(s===`sync`){let e=Or();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=i,e.resume=i,e.pause=i,e}}let p=H;u.call=(e,t,n)=>Jn(e,p,t,n);let m=!1;s===`post`?u.scheduler=e=>{R(e,p&&p.suspense)}:s!==`sync`&&(m=!0,u.scheduler=(e,t)=>{t?e():or(e)}),u.augmentJob=e=>{t&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=zn(e,t,u);return Zs&&(f?f.push(h):d&&h()),h}function Pr(e,t,n){let r=this.proxy,i=v(e)?e.includes(`.`)?Fr(r,e):()=>r[e]:e.bind(r,r),a;_(t)?a=t:(a=t.handler,n=t);let o=Js(this),s=Nr(i,a.bind(r),n);return o(),s}function Fr(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;ee.__isTeleport,zr=e=>e&&(e.disabled||e.disabled===``),Br=e=>e&&(e.defer||e.defer===``),Vr=e=>typeof SVGElement<`u`&&e instanceof SVGElement,Hr=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,Ur=(e,t)=>{let n=e&&e.to;return v(n)?t?t(n):null:n},Wr={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g,parentNode:_}}=l,v=zr(t.props),{dynamicChildren:y}=t,b=(e,t,n)=>{e.shapeFlag&16&&u(e.children,t,n,i,a,o,s,c)},x=(e=t)=>{let n=zr(e.props),r=e.target=Ur(e.props,m),a=Yr(r,e,h,p);r&&(o!==`svg`&&Vr(r)?o=`svg`:o!==`mathml`&&Hr(r)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(b(e,r,a),Jr(e,!1)))},S=e=>{let t=()=>{if(Ir.get(e)===t){if(Ir.delete(e),zr(e.props)){let t=_(e.el)||n;b(e,t,e.anchor),Jr(e,!0)}x(e)}};Ir.set(e,t),R(t,a)};if(e==null){let e=t.el=h(``),i=t.anchor=h(``);if(p(e,n,r),p(i,n,r),Br(t.props)||a&&a.pendingBranch){S(t);return}v&&(b(t,n,i),Jr(t,!0)),x()}else{t.el=e.el;let r=t.anchor=e.anchor,u=Ir.get(e);if(u){u.flags|=8,Ir.delete(e),S(t);return}t.targetStart=e.targetStart;let p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=zr(e.props),_=g?n:p,b=g?r:h;if(o===`svg`||Vr(p)?o=`svg`:(o===`mathml`||Hr(p))&&(o=`mathml`),y?(f(e.dynamicChildren,y,_,i,a,o,s),Xo(e,t,!0)):c||d(e,t,_,b,i,a,o,s,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Gr(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=Ur(t.props,m);e&&(t.target=e,Gr(t,e,null,l,0))}else g&&Gr(t,p,h,l,1);Jr(t,v)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e,p=zr(f),m=a||!p,h=Ir.get(e);if(h&&(h.flags|=8,Ir.delete(e)),d&&(i(l),i(u)),a&&i(c),!h&&(p||d)&&o&16)for(let e=0;e{e.isMounted=!0}),sa(()=>{e.isUnmounting=!0}),e}var $r=[Function,Array],ei={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:$r,onEnter:$r,onAfterEnter:$r,onEnterCancelled:$r,onBeforeLeave:$r,onLeave:$r,onAfterLeave:$r,onLeaveCancelled:$r,onBeforeAppear:$r,onAppear:$r,onAfterAppear:$r,onAppearCancelled:$r},ti=e=>{let t=e.subTree;return t.component?ti(t.component):t},ni={name:`BaseTransition`,props:ei,setup(e,{slots:t}){let n=Gs(),r=Qr();return()=>{let i=t.default&&ui(t.default(),!0),a=i&&i.length?ri(i):n.subTree?Is():void 0;if(!a)return;let o=F(e),{mode:s}=o;if(r.isLeaving)return si(a);let c=ci(a);if(!c)return si(a);let l=oi(c,o,r,n,e=>l=e);c.type!==B&&li(c,l);let u=n.subTree&&ci(n.subTree);if(u&&u.type!==B&&!Es(u,c)&&ti(n).type!==B){let e=oi(u,o,r,n);if(li(u,e),s===`out-in`&&c.type!==B)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete e.afterLeave,u=void 0},si(a);s===`in-out`&&c.type!==B?e.delayLeave=(e,t,n)=>{let i=ai(r,u);i[String(u.key)]=u,e[Xr]=()=>{t(),e[Xr]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{n(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&=void 0;return a}}};function ri(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==B){t=n;break}}return t}var ii=ni;function ai(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function oi(e,t,n,r,i){let{appear:a,mode:o,persisted:s=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:p,onLeave:m,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:_,onAppear:v,onAfterAppear:y,onAppearCancelled:b}=t,x=String(e.key),S=ai(n,e),C=(e,t)=>{e&&Jn(e,r,9,t)},w=(e,t)=>{let n=t[1];C(e,t),f(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},T={mode:o,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted){if(a)r=_||c;else return}t[Xr]&&t[Xr](!0);let i=S[x];i&&Es(e,i)&&i.el[Xr]&&i.el[Xr](),C(r,[t])},enter(t){if(S[x]===e)return;let r=l,i=u,o=d;if(!n.isMounted){if(a)r=v||l,i=y||u,o=b||d;else return}let s=!1;t[Zr]=e=>{s||(s=!0,C(e?o:i,[t]),T.delayedLeave&&T.delayedLeave(),t[Zr]=void 0)};let c=t[Zr].bind(null,!1);r?w(r,[t,c]):c()},leave(t,r){let i=String(e.key);if(t[Zr]&&t[Zr](!0),n.isUnmounting)return r();C(p,[t]);let a=!1;t[Xr]=n=>{a||(a=!0,r(),C(n?g:h,[t]),t[Xr]=void 0,S[i]===e&&delete S[i])};let o=t[Xr].bind(null,!1);S[i]=e,m?w(m,[t,o]):o()},clone(e){let a=oi(e,t,n,r,i);return i&&i(a),a}};return T}function si(e){if(Ki(e))return e=Ns(e),e.children=null,e}function ci(e){if(!Ki(e))return Rr(e.type)&&e.children?ri(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&_(n.default))return n.default()}}function li(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let n=e.component.subTree;li(Rr(n.type)&&ci(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ui(e,t=!1,n){let r=[],i=0;for(let a=0;a1)for(let e=0;er.value,set:e=>r.value=e})}return r}function hi(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var gi=new WeakMap;function _i(e,t,r,i,o=!1){if(f(e)){e.forEach((e,n)=>_i(e,t&&(f(t)?t[n]:t),r,i,o));return}if(Ui(i)&&!o){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&_i(e,t,r,i.component.subTree);return}let s=i.shapeFlag&4?cc(i.component):i.el,c=o?null:s,{i:u,r:p}=e,m=t&&t.r,h=u.refs===n?u.refs={}:u.refs,g=u.setupState,y=F(g),b=g===n?a:e=>!hi(h,e)&&d(y,e),x=(e,t)=>!(t&&hi(h,t));if(m!=null&&m!==p){if(vi(t),v(m))h[m]=null,b(m)&&(g[m]=null);else if(I(m)){let e=t;x(m,e.k)&&(m.value=null),e.k&&(h[e.k]=null)}}if(_(p))qn(p,u,12,[c,h]);else{let t=v(p),n=I(p);if(t||n){let i=()=>{if(e.f){let n=t?b(p)?g[p]:h[p]:x(p)||!e.k?p.value:h[e.k];if(o)f(n)&&l(n,s);else if(f(n))n.includes(s)||n.push(s);else if(t)h[p]=[s],b(p)&&(g[p]=h[p]);else{let t=[s];x(p,e.k)&&(p.value=t),e.k&&(h[e.k]=t)}}else t?(h[p]=c,b(p)&&(g[p]=c)):n&&(x(p,e.k)&&(p.value=c),e.k&&(h[e.k]=c))};if(c){let t=()=>{i(),gi.delete(e)};t.id=-1,gi.set(e,t),R(t,r)}else vi(e),i()}}}function vi(e){let t=gi.get(e);t&&(t.flags|=8,gi.delete(e))}var yi=!1,bi=()=>{yi||=(console.error(`Hydration completed but contains mismatches.`),!0)},xi=e=>e.namespaceURI.includes(`svg`)&&e.tagName!==`foreignObject`,Si=e=>e.namespaceURI.includes(`MathML`),Ci=e=>{if(e.nodeType===1){if(xi(e))return`svg`;if(Si(e))return`mathml`}},wi=e=>e.nodeType===8;function Ti(e){let{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:a,parentNode:s,remove:c,insert:l,createComment:u}}=e,d=(e,t)=>{if(!t.hasChildNodes()){n(null,e,t),ur(),t._vnode=e;return}f(t.firstChild,e,null,null,null),ur(),t._vnode=e},f=(n,r,o,c,u,d=!1)=>{d||=!!r.dynamicChildren;let b=wi(n)&&n.data===`[`,x=()=>g(n,r,o,c,u,b),{type:S,ref:C,shapeFlag:w,patchFlag:T}=r,E=n.nodeType;r.el=n,T===-2&&(d=!1,r.dynamicChildren=null);let D=null;switch(S){case ms:E===3?(n.data!==r.children&&(bi(),n.data=r.children),D=a(n)):r.children===``?(l(r.el=i(``),s(n),n),D=n):D=x();break;case B:y(n)?(D=a(n),v(r.el=n.content.firstChild,n,o)):D=E!==8||b?x():a(n);break;case hs:if(b&&(n=a(n),E=n.nodeType),E===1||E===3){D=n;let e=!r.children.length;for(let t=0;t{s||=!!t.dynamicChildren;let{type:l,dynamicProps:u,props:d,patchFlag:f,shapeFlag:p,dirs:h,transition:g}=t,_=l===`input`||l===`option`,b=!!u;if(_||b||f!==-1){h&&Cr(t,null,n,`created`);let l=!1;if(y(e)){l=Yo(null,g)&&n&&n.vnode.props&&n.vnode.props.appear;let r=e.content.firstChild;if(l){let e=r.getAttribute(`class`);e&&(r.$cls=e),g.beforeEnter(r)}v(r,e,n),t.el=e=r}if(p&16&&!(d&&(d.innerHTML||d.textContent))){let r=m(e.firstChild,t,e,n,i,a,s);for(r&&!Ai(e,1)&&bi();r;){let e=r;r=r.nextSibling,c(e)}}else if(p&8){let n=t.children;n[0]===` +`&&(e.tagName===`PRE`||e.tagName===`TEXTAREA`)&&(n=n.slice(1));let{textContent:r}=e;r!==n&&r!==n.replace(/\r\n|\r/g,` +`)&&(Ai(e,0)||bi(),e.textContent=t.children)}if(d){if(_||b||!s||f&48){let t=e.tagName.includes(`-`),i=e.namespaceURI.includes(`svg`)?`svg`:e.namespaceURI.includes(`MathML`)?`mathml`:void 0;for(let a in d)if(_&&(a.endsWith(`value`)||a===`indeterminate`)||o(a)&&!D(a)||a[0]===`.`||t&&!D(a)||u&&u.includes(a)){if(Di(e,a,d[a]))continue;r(e,a,null,d[a],i,n)}}else if(d.onClick)r(e,`onClick`,null,d.onClick,void 0,n);else if(f&4&&sn(d.style))for(let e in d.style)d.style[e]}let x;(x=d&&d.onVnodeBeforeMount)&&Vs(x,n,t),h&&Cr(t,null,n,`beforeMount`),((x=d&&d.onVnodeMounted)||h||l)&&ds(()=>{x&&Vs(x,n,t),l&&g.enter(e),h&&Cr(t,null,n,`mounted`)},i)}return e.nextSibling},m=(e,t,r,o,s,c,u)=>{u||=!!t.dynamicChildren;let d=t.children,p=d.length,m=!1;for(let t=0;t{let{slotScopeIds:c}=t;c&&(i=i?i.concat(c):c);let d=s(e),f=m(a(e),t,d,n,r,i,o);return f&&wi(f)&&f.data===`]`?a(t.anchor=f):(bi(),l(t.anchor=u(`]`),d,f),f)},g=(e,t,r,i,o,l)=>{if(Mi(e,t)||bi(),t.el=null,l){let t=_(e);for(;;){let n=a(e);if(n&&n!==t)c(n);else break}}let u=a(e),d=s(e);return c(e),n(null,t,d,u,r,i,Ci(d),o),r&&(r.vnode.el=t.el,To(r,t.el)),u},_=(e,t=`[`,n=`]`)=>{let r=0;for(;e;)if(e=a(e),e&&wi(e)&&(e.data===t&&r++,e.data===n)){if(r===0)return a(e);r--}return e},v=(e,t,n)=>{let r=t.parentNode;r&&r.replaceChild(e,t);let i=n;for(;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},y=e=>e.nodeType===1&&e.tagName===`TEMPLATE`;return[d,f]}var Ei=new Set([`src`,`srcset`,`href`,`poster`]);function Di(e,t,n){return Ei.has(t)?e.getAttribute(t)===(n==null?null:`${n}`):!1}var Oi=`data-allow-mismatch`,ki={0:`text`,1:`children`,2:`class`,3:`style`,4:`attribute`};function Ai(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Oi);)e=e.parentElement;return ji(e&&e.getAttribute(Oi),t)}function ji(e,t){if(e==null)return!1;if(e===``)return!0;{let n=e.split(`,`);return t===0&&n.includes(`children`)?!0:n.includes(ki[t])}}function Mi(e,t){return Ai(e.parentElement,1)||Ni(e)||Pi(t)}function Ni(e){return e.nodeType===1&&ji(e.getAttribute(Oi),1)}function Pi({props:e}){let t=e&&e[Oi];return typeof t==`string`&&ji(t,1)}var Fi=le().requestIdleCallback||(e=>setTimeout(e,1)),Ii=le().cancelIdleCallback||(e=>clearTimeout(e)),Li=(e=1e4)=>t=>{let n=Fi(t,{timeout:e});return()=>Ii(n)};function Ri(e){let{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=window;return(t>0&&t0&&r0&&n0&&i(t,n)=>{let r=new IntersectionObserver(e=>{for(let n of e)if(n.isIntersecting){r.disconnect(),t();break}},e);return n(e=>{if(e instanceof Element){if(Ri(e))return t(),r.disconnect(),!1;r.observe(e)}}),()=>r.disconnect()},Bi=e=>t=>{if(e){let n=matchMedia(e);if(n.matches)t();else return n.addEventListener(`change`,t,{once:!0}),()=>n.removeEventListener(`change`,t)}},Vi=(e=[])=>(t,n)=>{v(e)&&(e=[e]);let r=!1,i=e=>{r||(r=!0,a(),t(),e.target.dispatchEvent(new e.constructor(e.type,e)))},a=()=>{n(t=>{for(let n of e)t.removeEventListener(n,i)})};return n(t=>{for(let n of e)t.addEventListener(n,i,{once:!0})}),a};function Hi(e,t){if(wi(e)&&e.data===`[`){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(wi(r)){if(r.data===`]`){if(--n===0)break}else r.data===`[`&&n++}r=r.nextSibling}}else t(e)}var Ui=e=>!!e.type.__asyncLoader;function Wi(e){_(e)&&(e={loader:e});let{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:c}=e,l=null,u,d=0,f=()=>(d++,l=null,p()),p=()=>{let e;return l||(e=l=t().catch(e=>{if(e=e instanceof Error?e:Error(String(e)),c)return new Promise((t,n)=>{c(e,()=>t(f()),()=>n(e),d+1)});throw e}).then(t=>e!==l&&l?l:(t&&(t.__esModule||t[Symbol.toStringTag]===`Module`)&&(t=t.default),u=t,t)))};return di({name:`AsyncComponentWrapper`,__asyncLoader:p,__asyncHydrate(e,t,n){let r=e.isConnected,i=!1;(t.bu||=[]).push(()=>i=!0);let o=()=>{i||!e.parentNode||r&&!e.isConnected||n()},s=a?()=>{let n=a(o,t=>Hi(e,t));n&&(t.bum||=[]).push(n)}:o;u?s():p().then(()=>!t.isUnmounted&&s())},get __asyncResolved(){return u},setup(){let e=H;if(pi(e),u)return()=>Gi(u,e);let t=t=>{l=null,Yn(t,e,13,!r)};if(s&&e.suspense||Zs)return p().then(t=>()=>Gi(t,e)).catch(e=>(t(e),()=>r?V(r,{error:e}):null));let a=mn(!1),c=mn(),d=mn(!!i),f,m;return ca(()=>{f!=null&&clearTimeout(f),m!=null&&clearTimeout(m)}),i&&(m=setTimeout(()=>{e.isUnmounted||(d.value=!1)},i)),o!=null&&(f=setTimeout(()=>{if(!e.isUnmounted&&!a.value&&!c.value){let e=Error(`Async component timed out after ${o}ms.`);t(e),c.value=e}},o)),p().then(()=>{e.isUnmounted||(a.value=!0,e.parent&&Ki(e.parent.vnode)&&e.parent.update())}).catch(n=>{if(e.isUnmounted){l=null;return}t(n),c.value=n}),()=>{if(a.value&&u)return Gi(u,e);if(c.value&&r)return V(r,{error:c.value});if(n&&!d.value)return Gi(n,e)}}})}function Gi(e,t){let{ref:n,props:r,children:i,ce:a}=t.vnode,o=V(e,r,i);return o.ref=n,o.ce=a,delete t.vnode.ce,o}var Ki=e=>e.type.__isKeepAlive,qi={name:`KeepAlive`,__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){let n=Gs(),r=n.ctx;if(!r.renderer)return()=>{let e=t.default&&t.default();return e&&e.length===1?e[0]:e};let i=new Map,a=new Set,o=null,s=n.suspense,{renderer:{p:c,m:l,um:u,o:{createElement:d}}}=r,f=d(`div`);r.activate=(e,t,n,r,i)=>{let a=e.component;l(e,t,n,0,s),c(a.vnode,e,t,n,a,s,r,e.slotScopeIds,i),R(()=>{a.isDeactivated=!1,a.a&&ie(a.a);let t=e.props&&e.props.onVnodeMounted;t&&Vs(t,a.parent,e)},s)},r.deactivate=e=>{let t=e.component;$o(t.m),$o(t.a),l(e,f,null,1,s),R(()=>{t.da&&ie(t.da);let n=e.props&&e.props.onVnodeUnmounted;n&&Vs(n,t.parent,e),t.isDeactivated=!0},s)};function p(e){$i(e),u(e,n,s,!0)}function m(e){i.forEach((t,n)=>{let r=lc(Ui(t)?t.type.__asyncResolved||{}:t.type);r&&!e(r)&&h(n)})}function h(e){let t=i.get(e);t&&(!o||!Es(t,o))?p(t):o&&$i(o),i.delete(e),a.delete(e)}Mr(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>Ji(e,t)),t&&m(e=>!Ji(t,e))},{flush:`post`,deep:!0});let g=null,_=()=>{g!=null&&(ts(n.subTree.type)?R(()=>{i.set(g,ea(n.subTree))},n.subTree.suspense):i.set(g,ea(n.subTree)))};return ia(_),oa(_),sa(()=>{i.forEach(e=>{let{subTree:t,suspense:r}=n,i=ea(t);if(e.type===i.type&&e.key===i.key){$i(i);let e=i.component.da;e&&R(e,r);return}p(e)})}),()=>{if(g=null,!t.default)return o=null;let n=t.default(),r=n[0];if(n.length>1)return o=null,n;if(!Ts(r)||!(r.shapeFlag&4)&&!(r.shapeFlag&128))return o=null,r;let s=ea(r);if(s.type===B)return o=null,s;let c=s.type,l=lc(Ui(s)?s.type.__asyncResolved||{}:c),{include:u,exclude:d,max:f}=e;if(u&&(!l||!Ji(u,l))||d&&l&&Ji(d,l))return s.shapeFlag&=-257,o=s,r;let p=s.key==null?c:s.key,m=i.get(p);return s.el&&(s=Ns(s),r.shapeFlag&128&&(r.ssContent=s)),g=p,m?(s.el=m.el,s.component=m.component,s.transition&&li(s,s.transition),s.shapeFlag|=512,a.delete(p),a.add(p)):(a.add(p),f&&a.size>parseInt(f,10)&&h(a.values().next().value)),s.shapeFlag|=256,o=s,ts(r.type)?r:s}}};function Ji(e,t){return f(e)?e.some(e=>Ji(e,t)):v(e)?e.split(`,`).includes(t):g(e)?(e.lastIndex=0,e.test(t)):!1}function Yi(e,t){Zi(e,`a`,t)}function Xi(e,t){Zi(e,`da`,t)}function Zi(e,t,n=H){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(ta(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Ki(e.parent.vnode)&&Qi(r,t,n,e),e=e.parent}}function Qi(e,t,n,r){let i=ta(t,e,r,!0);ca(()=>{l(r[t],i)},n)}function $i(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function ea(e){return e.shapeFlag&128?e.ssContent:e}function ta(e,t,n=H,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{ot();let i=Js(n),a=Jn(t,n,e,r);return i(),st(),a};return r?i.unshift(a):i.push(a),a}}var na=e=>(t,n=H)=>{(!Zs||e===`sp`)&&ta(e,(...e)=>t(...e),n)},ra=na(`bm`),ia=na(`m`),aa=na(`bu`),oa=na(`u`),sa=na(`bum`),ca=na(`um`),la=na(`sp`),ua=na(`rtg`),da=na(`rtc`);function fa(e,t=H){ta(`ec`,e,t)}var pa=`components`,ma=`directives`;function ha(e,t){return ya(pa,e,!0,t)||e}var ga=Symbol.for(`v-ndc`);function _a(e){return v(e)?ya(pa,e,!1)||e:e||ga}function va(e){return ya(ma,e)}function ya(e,t,n=!0,r=!1){let i=L||H;if(i){let n=i.type;if(e===pa){let e=lc(n,!1);if(e&&(e===t||e===k(t)||e===re(k(t))))return n}let a=ba(i[e]||n[e],t)||ba(i.appContext[e],t);return!a&&r?n:a}}function ba(e,t){return e&&(e[t]||e[k(t)]||e[re(k(t))])}function xa(e,t,n,r){let i,a=n&&n[r],o=f(e);if(o||v(e)){let n=o&&sn(e),r=!1,s=!1;n&&(r=!ln(e),s=cn(e),e=xt(e)),i=Array(e.length);for(let n=0,o=e.length;nt(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r{let t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function Ca(e,t,n,r,i,a){if(n??={},L.ce||L.parent&&Ui(L.parent)&&L.parent.ce){let e=a!=null&&n.key==null?c({},n,{key:a}):n,i=Object.keys(e).length>0;return t!=="default"&&(e.name=t),vs(),ws(z,null,[V(`slot`,e,r&&r())],i?-2:64)}let o=e[t];o&&o._c&&(o._d=!1);let s=gs.length;vs();let l;try{let i=o&&wa(o(n)),s=n.key||a||i&&i.key;l=ws(z,{key:(s&&!y(s)?s:`_${t}`)+(!i&&r?`_fb`:``)},i||(r?r():[]),i&&e._===1?64:-2)}catch(e){for(let e=gs.length;e>s;e--)ys();throw e}finally{o&&o._c&&(o._d=!0)}return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+`-s`]),l}function wa(e){return e.some(e=>!Ts(e)||!(e.type===B||e.type===z&&!wa(e.children)))?e:null}function Ta(e,t){let n={};for(let r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:j(r)]=e[r];return n}var Ea=e=>e?Xs(e)?cc(e):Ea(e.parent):null,Da=c(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ea(e.parent),$root:e=>Ea(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Za(e),$forceUpdate:e=>e.f||=()=>{or(e.update)},$nextTick:e=>e.n||=ir.bind(e.proxy),$watch:e=>Pr.bind(e)}),Oa=(e,t)=>e!==n&&!e.__isScriptSetup&&d(e,t),ka={get({_:e},t){if(t===`__v_skip`)return!0;let{ctx:r,setupState:i,data:a,props:o,accessCache:s,type:c,appContext:l}=e;if(t[0]!==`$`){let e=s[t];if(e!==void 0)switch(e){case 1:return i[t];case 2:return a[t];case 4:return r[t];case 3:return o[t]}else if(Oa(i,t))return s[t]=1,i[t];else if(a!==n&&d(a,t))return s[t]=2,a[t];else if(d(o,t))return s[t]=3,o[t];else if(r!==n&&d(r,t))return s[t]=4,r[t];else Ka&&(s[t]=0)}let u=Da[t],f,p;if(u)return t===`$attrs`&&_t(e.attrs,`get`,``),u(e);if((f=c.__cssModules)&&(f=f[t]))return f;if(r!==n&&d(r,t))return s[t]=4,r[t];if(p=l.config.globalProperties,d(p,t))return p[t]},set({_:e},t,r){let{data:i,setupState:a,ctx:o}=e;return Oa(a,t)?(a[t]=r,!0):i!==n&&d(i,t)?(i[t]=r,!0):d(e.props,t)||t[0]===`$`&&t.slice(1)in e?!1:(o[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:i,appContext:a,props:o,type:s}},c){let l;return!!(r[c]||e!==n&&c[0]!==`$`&&d(e,c)||Oa(t,c)||d(o,c)||d(i,c)||d(Da,c)||d(a.config.globalProperties,c)||(l=s.__cssModules)&&l[c])},defineProperty(e,t,n){return n.get==null?d(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}},Aa=c({},ka,{get(e,t){if(t!==Symbol.unscopables)return ka.get(e,t,e)},has(e,t){return t[0]!==`_`&&!de(t)}});function ja(){return null}function Ma(){return null}function Na(e){}function Pa(e){}function Fa(){return null}function Ia(){}function La(e,t){return null}function Ra(){return Ba(`useSlots`).slots}function za(){return Ba(`useAttrs`).attrs}function Ba(e){let t=Gs();return t.setupContext||=sc(t)}function Va(e){return f(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function Ha(e,t){let n=Va(e);for(let e in t){if(e.startsWith(`__skip`))continue;let r=n[e];r?f(r)||_(r)?r=n[e]={type:r,default:t[e]}:r.default=t[e]:r===null&&(r=n[e]={default:t[e]}),r&&t[`__skip_${e}`]&&(r.skipFactory=!0)}return n}function Ua(e,t){return!e||!t?e||t:f(e)&&f(t)?e.concat(t):c({},Va(e),Va(t))}function Wa(e,t){let n={};for(let r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function Ga(e){let t=Gs(),n=Zs,r=e();Ys(),n&&qs(!1);let i=()=>{Js(t),n&&qs(!0)},a=()=>{Gs()!==t&&t.scope.off(),Ys(),n&&qs(!1)};return x(r)&&(r=r.catch(e=>{throw i(),Promise.resolve().then(()=>Promise.resolve().then(a)),e})),[r,()=>{i(),Promise.resolve().then(a)}]}var Ka=!0;function qa(e){let t=Za(e),n=e.proxy,r=e.ctx;Ka=!1,t.beforeCreate&&Ya(t.beforeCreate,e,`bc`);let{data:a,computed:o,methods:s,watch:c,provide:l,inject:u,created:d,beforeMount:p,mounted:m,beforeUpdate:h,updated:g,activated:v,deactivated:y,beforeDestroy:x,beforeUnmount:S,destroyed:C,unmounted:w,render:T,renderTracked:E,renderTriggered:D,errorCaptured:ee,serverPrefetch:te,expose:O,inheritAttrs:k,components:ne,directives:A,filters:re}=t;if(u&&Ja(u,r,null),s)for(let e in s){let t=s[e];_(t)&&(r[e]=t.bind(n))}if(a){let t=a.call(n,n);b(t)&&(e.data=tn(t))}if(Ka=!0,o)for(let e in o){let t=o[e],a=dc({get:_(t)?t.bind(n,n):_(t.get)?t.get.bind(n,n):i,set:!_(t)&&_(t.set)?t.set.bind(n):i});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(c)for(let e in c)Xa(c[e],r,n,e);if(l){let e=_(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{wr(t,e[t])})}d&&Ya(d,e,`c`);function j(e,t){f(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(j(ra,p),j(ia,m),j(aa,h),j(oa,g),j(Yi,v),j(Xi,y),j(fa,ee),j(da,E),j(ua,D),j(sa,S),j(ca,w),j(la,te),f(O)){if(O.length){let t=e.exposed||={};O.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={}}T&&e.render===i&&(e.render=T),k!=null&&(e.inheritAttrs=k),ne&&(e.components=ne),A&&(e.directives=A),te&&pi(e)}function Ja(e,t,n=i){f(e)&&(e=no(e));for(let n in e){let r=e[n],i;i=b(r)?`default`in r?Tr(r.from||n,r.default,!0):Tr(r.from||n):Tr(r),I(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function Ya(e,t,n){Jn(f(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Xa(e,t,n,r){let i=r.includes(`.`)?Fr(n,r):()=>n[r];if(v(e)){let n=t[e];_(n)&&Mr(i,n)}else if(_(e))Mr(i,e.bind(n));else if(b(e)){if(f(e))e.forEach(e=>Xa(e,t,n,r));else{let r=_(e.handler)?e.handler.bind(n):t[e.handler];_(r)&&Mr(i,r,e)}}}function Za(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>Qa(c,e,o,!0)),Qa(c,t,o)),b(t)&&a.set(t,c),c}function Qa(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&Qa(e,a,n,!0),i&&i.forEach(t=>Qa(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=$a[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var $a={data:eo,props:ao,emits:ao,methods:io,computed:io,beforeCreate:ro,created:ro,beforeMount:ro,mounted:ro,beforeUpdate:ro,updated:ro,beforeDestroy:ro,beforeUnmount:ro,destroyed:ro,unmounted:ro,activated:ro,deactivated:ro,errorCaptured:ro,serverPrefetch:ro,components:io,directives:io,watch:oo,provide:eo,inject:to};function eo(e,t){return t?e?function(){return c(_(e)?e.call(this,this):e,_(t)?t.call(this,this):t)}:t:e}function to(e,t){return io(no(e),no(t))}function no(e){if(f(e)){let t={};for(let n=0;n{let l,u=n,d;return jr(()=>{let t=e[a];M(l,t)&&(l=t,c())}),{get(){return s(),r.get?r.get(l):l},set(e){let s=r.set?r.set(e):e;if(!M(s,l)&&!(u!==n&&M(e,u)))return;let f=i.vnode.props,p=!!(f&&(t in f||a in f||o in f)&&(`onUpdate:${t}`in f||`onUpdate:${a}`in f||`onUpdate:${o}`in f));p||(l=e,c()),i.emit(`update:${t}`,s),M(e,u)&&(M(e,s)&&!M(s,d)||p&&u!==n&&!M(s,l))&&c(),u=e,d=s}}});return c[Symbol.iterator]=()=>{let e=0;return{next(){return e<2?{value:e++?s||n:c,done:!1}:{done:!0}}}},c}var po=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${k(t)}Modifiers`]||e[`${A(t)}Modifiers`];function mo(e,t,...r){if(e.isUnmounted)return;let i=e.vnode.props||n,a=r,o=t.startsWith(`update:`),s=o&&po(i,t.slice(7));s&&(s.trim&&(a=r.map(e=>v(e)?e.trim():e)),s.number&&(a=r.map(oe)));let c,l=i[c=j(t)]||i[c=j(k(t))];!l&&o&&(l=i[c=j(A(t))]),l&&Jn(l,e,6,a);let u=i[c+`Once`];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,Jn(u,e,6,a)}}var ho=new WeakMap;function go(e,t,n=!1){let r=n?ho:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},s=!1;if(!_(e)){let r=e=>{let n=go(e,t,!0);n&&(s=!0,c(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!s?(b(e)&&r.set(e,null),null):(f(a)?a.forEach(e=>o[e]=null):c(o,a),b(e)&&r.set(e,o),o)}function _o(e,t){return!e||!o(t)?!1:(t=t.slice(2),t=t===`Once`?t:t.replace(/Once$/,``),d(e,t[0].toLowerCase()+t.slice(1))||d(e,A(t))||d(e,t))}function vo(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:o,attrs:c,emit:l,render:u,renderCache:d,props:f,data:p,setupState:m,ctx:h,inheritAttrs:g}=e,_=_r(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=Ls(u.call(t,e,d,f,m,p,h)),y=c}else{let e=t;v=Ls(e.length>1?e(f,{attrs:c,slots:o,emit:l}):e(f,null)),y=t.props?c:bo(c)}}catch(t){gs.length=0,Yn(t,e,1),v=V(B)}let b=v;if(y&&g!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(s)&&(y=xo(y,a)),b=Ns(b,y,!1,!0))}return n.dirs&&(b=Ns(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&li(Rr(b.type)&&ci(b)||b,n.transition),v=b,_r(_),v}function yo(e,t=!0){let n;for(let t=0;t{let t;for(let n in e)(n===`class`||n===`style`||o(n))&&((t||={})[n]=e[n]);return t},xo=(e,t)=>{let n={};for(let r in e)(!s(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function So(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Co(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;tObject.create(Eo),Oo=e=>Object.getPrototypeOf(e)===Eo;function ko(e,t,n,r=!1){let i={},a=Do();e.propsDefaults=Object.create(null),jo(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);e.props=n?r?i:nn(i):e.type.props?i:a,e.attrs=a}function Ao(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=F(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r{p=!0;let[n,r]=Po(e,t,!0);c(l,n),r&&u.push(...r)};!i&&t.mixins.length&&t.mixins.forEach(n),e.extends&&n(e.extends),e.mixins&&e.mixins.forEach(n)}if(!s&&!p)return b(e)&&a.set(e,r),r;if(f(s))for(let e=0;ee===`_`||e===`_ctx`||e===`$stable`,Lo=e=>f(e)?e.map(Ls):[Ls(e)],Ro=(e,t,n)=>{if(t._n)return t;let r=xr((...e)=>Lo(t(...e)),n);return r._c=!1,r},zo=(e,t,n)=>{let r=e._ctx;for(let n in e){if(Io(n))continue;let i=e[n];if(_(i))t[n]=Ro(n,i,r);else if(i!=null){let e=Lo(i);t[n]=()=>e}}},Bo=(e,t)=>{let n=Lo(t);e.slots.default=()=>n},Vo=(e,t,n)=>{for(let r in t)(n||!Io(r))&&(e[r]=t[r])},Ho=(e,t,n)=>{let r=e.slots=Do();if(e.vnode.shapeFlag&32){let e=t._;e?(Vo(r,t,n),n&&ae(r,`_`,e,!0)):zo(t,r)}else t&&Bo(e,t)},Uo=(e,t,r)=>{let{vnode:i,slots:a}=e,o=!0,s=n;if(i.shapeFlag&32){let e=t._;e?r&&e===1?o=!1:Vo(a,t,r):(o=!t.$stable,zo(t,a)),s=t}else t&&(Bo(e,t),s={default:1});if(o)for(let e in a)!Io(e)&&s[e]==null&&delete a[e]},R=ds;function Wo(e){return Ko(e)}function Go(e){return Ko(e,Ti)}function Ko(e,t){let a=le();a.__VUE__=!0;let{insert:o,remove:s,patchProp:c,createElement:l,createText:u,createComment:d,setText:f,setElementText:p,parentNode:m,nextSibling:h,setScopeId:g=i,insertStaticContent:_}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!Es(e,t)&&(r=ge(e),de(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case ms:y(e,t,n,r);break;case B:b(e,t,n,r);break;case hs:e??x(t,n,r,o);break;case z:ne(e,t,n,r,i,a,o,s,c);break;default:d&1?w(e,t,n,r,i,a,o,s,c):d&6?A(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,ye)}u!=null&&i?_i(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&_i(e.ref,null,a,e,!0)},y=(e,t,n,r)=>{if(e==null)o(t.el=u(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},b=(e,t,n,r)=>{e==null?o(t.el=d(t.children||``),n,r):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=h(e),o(e,n,r),e=i;o(t,n,r)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)},w=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)T(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),te(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},T=(e,t,n,r,i,a,s,u)=>{let d,f,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(d=e.el=l(e.type,a,m&&m.is,m),h&8?p(d,e.children):h&16&&ee(e.children,d,null,r,i,qo(e,a),s,u),_&&Cr(e,null,r,`created`),E(d,e,e.scopeId,s,r),m){for(let e in m)e!==`value`&&!D(e)&&c(d,e,null,m[e],a,r);`value`in m&&c(d,`value`,null,m.value,a),(f=m.onVnodeBeforeMount)&&Vs(f,r,e)}_&&Cr(e,null,r,`beforeMount`);let v=Yo(i,g);v&&g.beforeEnter(d),o(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&R(()=>{try{f&&Vs(f,r,e),v&&g.enter(d),_&&Cr(e,null,r,`mounted`)}finally{}},i)},E=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t{for(let l=c;l{let l=t.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:f}=t;u|=e.patchFlag&16;let m=e.props||n,h=t.props||n,g;if(r&&Jo(r,!1),(g=h.onVnodeBeforeUpdate)&&Vs(g,r,t,e),f&&Cr(t,e,r,`beforeUpdate`),r&&Jo(r,!0),d&&(!e.dynamicChildren||e.dynamicChildren.length!==d.length)&&(u=0,s=!1,d=null),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&p(l,``),d?O(e.dynamicChildren,d,l,r,i,qo(t,a),o):s||oe(e,t,l,null,r,i,qo(t,a),o,!1),u>0){if(u&16)k(l,m,h,r,a);else if(u&2&&m.class!==h.class&&c(l,`class`,null,h.class,a),u&4&&c(l,`style`,m.style,h.style,a),u&8){let e=t.dynamicProps;for(let t=0;t{g&&Vs(g,r,t,e),f&&Cr(t,e,r,`updated`)},i)},O=(e,t,n,r,i,a,o)=>{for(let s=0;s{if(t!==r){if(t!==n)for(let n in t)!D(n)&&!(n in r)&&c(e,n,t[n],null,a,i);for(let n in r){if(D(n))continue;let o=r[n],s=t[n];o!==s&&n!==`value`&&c(e,n,s,o,a,i)}`value`in r&&c(e,`value`,t.value,r.value,a)}},ne=(e,t,n,r,i,a,s,c,l)=>{let d=t.el=e?e.el:u(``),f=t.anchor=e?e.anchor:u(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),e==null?(o(d,n,r),o(f,n,r),ee(t.children||[],n,f,i,a,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(O(e.dynamicChildren,m,n,i,a,s,c),(t.key!=null||i&&t===i.subTree)&&Xo(e,t,!0)):oe(e,t,n,f,i,a,s,c,l)},A=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):re(t,n,r,i,a,o,c):j(e,t,c)},re=(e,t,n,r,i,a,o)=>{let s=e.component=Ws(e,r,i);if(Ki(e)&&(s.ctx.renderer=ye),Qs(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,M,o),!e.el){let r=s.subTree=V(B);b(null,r,t,n),e.placeholder=r.el}}else M(s,e,t,n,i,a,o)},j=(e,t,n)=>{let r=t.component=e.component;if(So(e,t,n)){if(r.asyncDep&&!r.asyncResolved){ae(r,t,n);return}r.next=t,r.update()}else t.el=e.el,r.vnode=t},M=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=Qo(e);if(n){t&&(t.el=c.el,ae(e,t,o)),n.asyncDep.then(()=>{R(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;Jo(e,!1),t?(t.el=c.el,ae(e,t,o)):t=c,n&&ie(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&Vs(d,s,t,c),Jo(e,!0);let f=vo(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),ge(p),e,i,a),t.el=f.el,u===null&&To(e,f.el),r&&R(r,i),(d=t.props&&t.props.onVnodeUpdated)&&R(()=>Vs(d,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=Ui(t);if(Jo(e,!1),l&&ie(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Vs(o,d,t),Jo(e,!0),s&&xe){let t=()=>{e.subTree=vo(e),xe(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=vo(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&R(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;R(()=>Vs(o,d,e),i)}(t.shapeFlag&256||d&&Ui(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&R(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new Ue(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>or(u),Jo(e,!0),l()},ae=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,Ao(e,t.props,r,n),Uo(e,t.children,n),ot(),lr(e),st()},oe=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:m}=t;if(f>0){if(f&128){ce(l,d,n,r,i,a,o,s,c);return}if(f&256){se(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&he(l,i,a),d!==l&&p(n,d)):u&16?m&16?ce(l,d,n,r,i,a,o,s,c):he(l,i,a,!0):(u&8&&p(n,``),m&16&&ee(d,n,r,i,a,o,s,c))},se=(e,t,n,i,a,o,s,c,l)=>{e||=r,t||=r;let u=e.length,d=t.length,f=Math.min(u,d),p;for(p=0;pd?he(e,a,o,!0,!1,f):ee(t,n,i,a,o,s,c,l,f)},ce=(e,t,n,i,a,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let r=e[u],i=t[u]=l?Rs(t[u]):Ls(t[u]);if(Es(r,i))v(r,i,n,null,a,o,s,c,l);else break;u++}for(;u<=f&&u<=p;){let r=e[f],i=t[p]=l?Rs(t[p]):Ls(t[p]);if(Es(r,i))v(r,i,n,null,a,o,s,c,l);else break;f--,p--}if(u>f){if(u<=p){let e=p+1,r=ep)for(;u<=f;)de(e[u],a,o,!0),u++;else{let m=u,h=u,g=new Map;for(u=h;u<=p;u++){let e=t[u]=l?Rs(t[u]):Ls(t[u]);e.key!=null&&g.set(e.key,u)}let _,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(u=0;u=b){de(r,a,o,!0);continue}let i;if(r.key!=null)i=g.get(r.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&Es(r,t[_])){i=_;break}i===void 0?de(r,a,o,!0):(C[i-h]=u+1,i>=S?S=i:x=!0,v(r,t[i],n,null,a,o,s,c,l),y++)}let w=x?Zo(C):r;for(_=w.length-1,u=b-1;u>=0;u--){let e=h+u,r=t[e],f=t[e+1],p=e+1{let{el:a,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){ue(e.component.subTree,t,n,r);return}if(d&128){e.suspense.move(t,n,r);return}if(d&64){c.move(e,t,n,ye);return}if(c===z){o(a,t,n);for(let e=0;el.enter(a),i));else{let{leave:r,delayLeave:i,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?s(a):o(a,t,n)},d=()=>{let e=a._isLeaving||!!a[Xr];a._isLeaving&&a[Xr](!0),l.persisted&&!e?u():r(a,()=>{u(),c&&c()})};i?i(a,u,d):d()}}else o(a,t,n)},de=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if(d===-2&&(i=!1),s!=null&&(ot(),_i(s,null,n,e,!0),st()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!Ui(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&Vs(_,t,e),u&6)me(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&Cr(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,ye,r):l&&!l.hasOnce&&(a!==z||d>0&&d&64)?he(l,t,n,!1,!0):(a===z&&d&384||!i&&u&16)&&he(c,t,n),r&&fe(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&R(()=>{_&&Vs(_,t,e),h&&Cr(e,null,t,`unmounted`),v&&(e.el=null)},n)},fe=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===z){pe(n,r);return}if(t===hs){C(e);return}let a=()=>{s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(e.shapeFlag&1&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},pe=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},me=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;$o(c),$o(l),r&&ie(r),i.stop(),a&&(a.flags|=8,de(o,e,t,n)),s&&R(s,t),R(()=>{e.isUnmounted=!0},t)},he=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o{if(e.shapeFlag&6)return ge(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[Lr];return n?h(n):t},_e=!1,ve=(e,t,n)=>{let r;e==null?t._vnode&&(de(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,_e||=(_e=!0,lr(r),ur(),!1)},ye={p:v,um:de,m:ue,r:fe,mt:re,mc:ee,pc:oe,pbc:O,n:ge,o:e},be,xe;return t&&([be,xe]=t(ye)),{render:ve,hydrate:be,createApp:lo(ve,be)}}function qo({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function Jo({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Yo(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Xo(e,t,n=!1){let r=e.children,i=t.children;if(f(r)&&f(i))for(let e=0;e>1,e[n[s]]0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-->0;)n[a]=o,o=t[o];return n}function Qo(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Qo(t)}function $o(e){if(e)for(let t=0;te.__isSuspense,ns=0,rs={name:`Suspense`,__isSuspense:!0,process(e,t,n,r,i,a,o,s,c,l){if(e==null)as(t,n,r,i,a,o,s,c,l);else{if(a&&a.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}os(e,t,n,r,i,o,s,c,l)}},hydrate:cs,normalize:ls};function is(e,t){let n=e.props&&e.props[t];_(n)&&n()}function as(e,t,n,r,i,a,o,s,c){let{p:l,o:{createElement:u}}=c,d=u(`div`),f=e.suspense=ss(e,i,r,t,d,n,a,o,s,c);l(null,f.pendingBranch=e.ssContent,d,null,r,f,a,o),f.deps>0?(is(e,`onPending`),is(e,`onFallback`),l(null,e.ssFallback,t,n,r,null,a,o),fs(f,e.ssFallback)):f.resolve(!1,!0)}function os(e,t,n,r,i,a,o,s,{p:c,um:l,o:{createElement:u}}){let d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;let f=t.ssContent,p=t.ssFallback,{activeBranch:m,pendingBranch:h,isInFallback:g,isHydrating:_}=d;if(h)d.pendingBranch=f,Es(h,f)?(c(h,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():g&&(_||(c(m,p,n,r,i,null,a,o,s),fs(d,p)))):(d.pendingId=ns++,_?(d.isHydrating=!1,d.activeBranch=h):l(h,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u(`div`),g?(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():(c(m,p,n,r,i,null,a,o,s),fs(d,p))):m&&Es(m,f)?(c(m,f,n,r,i,d,a,o,s),d.resolve(!0)):(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0&&d.resolve()));else if(m&&Es(m,f))c(m,f,n,r,i,d,a,o,s),fs(d,f);else if(is(t,`onPending`),d.pendingBranch=f,d.pendingId=f.shapeFlag&512?f.component.suspenseId:ns++,c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0)d.resolve();else{let{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(p)},e):e===0&&d.fallback(p)}}function ss(e,t,n,r,i,a,o,s,c,l,u=!1){let{p:d,m:f,um:p,n:m,o:{parentNode:h,remove:g}}=l,_,v=ps(e);v&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);let y=e.props?se(e.props.timeout):void 0,b=a,x={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:i,deps:0,pendingId:ns++,timeout:typeof y==`number`?y:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){let{vnode:r,activeBranch:i,pendingBranch:o,pendingId:s,effects:c,parentComponent:l,container:u,isInFallback:d}=x,g=!1;if(x.isHydrating)x.isHydrating=!1;else if(!e){g=i&&o.transition&&o.transition.mode===`out-in`;let e=!1;g&&(i.transition.afterLeave=()=>{s===x.pendingId&&(f(o,u,a===b&&!e?m(i):a,0),cr(c),d&&r.ssFallback&&(r.ssFallback.el=null))}),i&&!x.isFallbackMountPending&&(h(i.el)===u&&(a=m(i),e=!0),p(i,l,x,!0),!g&&d&&r.ssFallback&&R(()=>r.ssFallback.el=null,x)),g||f(o,u,a,0)}x.isFallbackMountPending=!1,fs(x,o),x.pendingBranch=null,x.isInFallback=!1;let y=x.parent,S=!1;for(;y;){if(y.pendingBranch){for(let e=0;e{x.isFallbackMountPending=!1,x.isInFallback&&(d(null,e,i,o,r,null,a,s,c),fs(x,e))},u=e.transition&&e.transition.mode===`out-in`;u&&(x.isFallbackMountPending=!0,n.transition.afterLeave=l),x.isInFallback=!0,p(n,r,null,!0),u||l()},move(e,t,n){x.activeBranch&&f(x.activeBranch,e,t,n),x.container=e},next(){return x.activeBranch&&m(x.activeBranch)},registerDep(e,t,n){let r=!!x.pendingBranch;r&&x.deps++;let i=e.vnode.el;e.asyncDep.catch(t=>{Yn(t,e,0)}).then(a=>{if(e.isUnmounted||x.isUnmounted||x.pendingId!==e.suspenseId)return;Ys(),e.asyncResolved=!0;let{vnode:s}=e;ec(e,a,!1),i&&(s.el=i);let c=!i&&e.subTree.el;t(e,s,h(i||e.subTree.el),i?null:m(e.subTree),x,o,n),c&&(s.placeholder=null,g(c)),To(e,s.el),r&&--x.deps===0&&x.resolve()})},unmount(e,t){x.isUnmounted=!0,x.activeBranch&&p(x.activeBranch,n,e,t),x.pendingBranch&&p(x.pendingBranch,n,e,t)}};return x}function cs(e,t,n,r,i,a,o,s,c){let l=t.suspense=ss(t,r,n,e.parentNode,document.createElement(`div`),null,i,a,o,s,!0),u=c(e,l.pendingBranch=t.ssContent,n,l,a,o);return l.deps===0&&l.resolve(!1,!0),u}function ls(e){let{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=us(r?n.default:n),e.ssFallback=r?us(n.fallback):V(B)}function us(e){let t;if(_(e)){let n=bs&&e._c;n&&(e._d=!1,vs()),e=e(),n&&(e._d=!0,t=_s,ys())}return f(e)&&(e=yo(e)),e=Ls(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function ds(e,t){t&&t.pendingBranch?f(e)?t.effects.push(...e):t.effects.push(e):cr(e)}function fs(e,t){e.activeBranch=t;let{vnode:n,parentComponent:r}=e,i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,To(r,i))}function ps(e){let t=e.props&&e.props.suspensible;return t!=null&&t!==!1}var z=Symbol.for(`v-fgt`),ms=Symbol.for(`v-txt`),B=Symbol.for(`v-cmt`),hs=Symbol.for(`v-stc`),gs=[],_s=null;function vs(e=!1){gs.push(_s=e?null:[])}function ys(){gs.pop(),_s=gs[gs.length-1]||null}var bs=1;function xs(e,t=!1){bs+=e,e<0&&_s&&t&&(_s.hasOnce=!0)}function Ss(e){return e.dynamicChildren=bs>0?_s||r:null,ys(),bs>0&&_s&&_s.push(e),e}function Cs(e,t,n,r,i,a){return Ss(As(e,t,n,r,i,a,!0))}function ws(e,t,n,r,i){return Ss(V(e,t,n,r,i,!0))}function Ts(e){return e?e.__v_isVNode===!0:!1}function Es(e,t){return e.type===t.type&&e.key===t.key}function Ds(e){}var Os=({key:e})=>e??null,ks=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:v(e)||I(e)||_(e)?{i:L,r:e,k:t,f:!!n}:e);function As(e,t=null,n=null,r=0,i=null,a=e===z?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Os(t),ref:t&&ks(t),scopeId:gr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:L};return s?(zs(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=v(n)?8:16),bs>0&&!o&&_s&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&_s.push(c),c}var V=js;function js(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===ga)&&(e=B),Ts(e)){let r=Ns(e,t,!0);return n&&zs(r,n),bs>0&&!a&&_s&&(r.shapeFlag&6?_s[_s.indexOf(e)]=r:_s.push(r)),r.patchFlag=-2,r}if(uc(e)&&(e=e.__vccOpts),t){t=Ms(t);let{class:e,style:n}=t;e&&!v(e)&&(t.class=_e(e)),b(n)&&(un(n)&&!f(n)&&(n=c({},n)),t.style=fe(n))}let o=v(e)?1:ts(e)?128:Rr(e)?64:b(e)?4:_(e)?2:0;return As(e,t,n,r,i,o,a,!0)}function Ms(e){return e?un(e)||Oo(e)?c({},e):e:null}function Ns(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?Bs(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Os(l),ref:t&&t.ref?n&&a?f(a)?a.concat(ks(t)):[a,ks(t)]:ks(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==z?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ns(e.ssContent),ssFallback:e.ssFallback&&Ns(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&li(u,c.clone(u)),u}function Ps(e=` `,t=0){return V(ms,null,e,t)}function Fs(e,t){let n=V(hs,null,e);return n.staticCount=t,n}function Is(e=``,t=!1){return t?(vs(),ws(B,null,e)):V(B,null,e)}function Ls(e){return e==null||typeof e==`boolean`?V(B):f(e)?V(z,null,e.slice()):Ts(e)?Rs(e):V(ms,null,String(e))}function Rs(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ns(e)}function zs(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(f(t))n=16;else if(typeof t==`object`){if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),zs(e,n()),n._c&&(n._d=!0));return}{n=32;let r=t._;!r&&!Oo(t)?t._ctx=L:r===3&&L&&(L.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}}else if(_(t)){if(r&65){zs(e,{default:t});return}t={default:t,_ctx:L},n=32}else t=String(t),r&64?(n=16,t=[Ps(t)]):n=8;e.children=t,e.shapeFlag|=n}function Bs(...e){let t={};for(let n=0;nH||L,Ks,qs;{let e=le(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};Ks=t(`__VUE_INSTANCE_SETTERS__`,e=>H=e),qs=t(`__VUE_SSR_SETTERS__`,e=>Zs=e)}var Js=e=>{let t=H;return Ks(e),e.scope.on(),()=>{e.scope.off(),Ks(t)}},Ys=()=>{H&&H.scope.off(),Ks(null)};function Xs(e){return e.vnode.shapeFlag&4}var Zs=!1;function Qs(e,t=!1,n=!1){t&&qs(t);let{props:r,children:i}=e.vnode,a=Xs(e);ko(e,r,a,t),Ho(e,i,n||t);let o=a?$s(e,t):void 0;return t&&qs(!1),o}function $s(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ka);let{setup:r}=n;if(r){ot();let n=e.setupContext=r.length>1?sc(e):null,i=Js(e),a=qn(r,e,0,[e.props,n]),o=x(a);if(st(),i(),(o||e.sp)&&!Ui(e)&&pi(e),o){if(a.then(Ys,Ys),t)return a.then(n=>{qs(!0);try{ec(e,n,t)}finally{qs(!1)}}).catch(t=>{Yn(t,e,0)});e.asyncDep=a}else ec(e,a,t)}else ac(e,t)}function ec(e,t,n){_(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:b(t)&&(e.setupState=Sn(t)),ac(e,n)}var tc,nc;function rc(e){tc=e,nc=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Aa))}}var ic=()=>!tc;function ac(e,t,n){let r=e.type;if(!e.render){if(!t&&tc&&!r.render){let t=r.template||Za(e).template;if(t){let{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:o}=r,s=c(c({isCustomElement:n,delimiters:a},i),o);r.render=tc(t,s)}}e.render=r.render||i,nc&&nc(e)}{let t=Js(e);ot();try{qa(e)}finally{st(),t()}}}var oc={get(e,t){return _t(e,`get`,``),e[t]}};function sc(e){return{attrs:new Proxy(e.attrs,oc),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function cc(e){return e.exposed?e.exposeProxy||=new Proxy(Sn(dn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Da)return Da[n](e)},has(e,t){return t in e||t in Da}}):e.proxy}function lc(e,t=!0){return _(e)?e.displayName||e.name:e.name||t&&e.__name}function uc(e){return _(e)&&`__vccOpts`in e}var dc=(e,t)=>jn(e,t,Zs);function fc(e,t,n){try{xs(-1);let r=arguments.length;return r===2?b(t)&&!f(t)?Ts(t)?V(e,null,[t]):V(e,t):V(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ts(n)&&(n=[n]),V(e,t,n))}finally{xs(1)}}function pc(){}function mc(e,t,n,r){let i=n[r];if(i&&hc(i,e))return i;let a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function hc(e,t){let n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&_s&&_s.push(e),!0}var gc=`3.5.41`,_c=i,vc=Kn,yc=pr,bc=hr,xc={createComponentInstance:Ws,setupComponent:Qs,renderComponentRoot:vo,setCurrentRenderingInstance:_r,isVNode:Ts,normalizeVNode:Ls,getComponentPublicInstance:cc,ensureValidVNode:wa,pushWarningContext:Hn,popWarningContext:Un},Sc=e({BaseTransition:()=>ii,BaseTransitionPropsValidators:()=>ei,Comment:()=>B,DeprecationTypes:()=>null,EffectScope:()=>Re,ErrorCodes:()=>Gn,ErrorTypeStrings:()=>vc,Fragment:()=>z,KeepAlive:()=>qi,ReactiveEffect:()=>Ue,Static:()=>hs,Suspense:()=>rs,Teleport:()=>qr,Text:()=>ms,TrackOpTypes:()=>Mn,Transition:()=>Ic,TransitionGroup:()=>Gl,TriggerOpTypes:()=>Nn,VueElement:()=>Ll,assertNumber:()=>Wn,callWithAsyncErrorHandling:()=>Jn,callWithErrorHandling:()=>qn,camelize:()=>k,capitalize:()=>re,cloneVNode:()=>Ns,compatUtils:()=>null,computed:()=>dc,createApp:()=>Du,createBlock:()=>ws,createCommentVNode:()=>Is,createElementBlock:()=>Cs,createElementVNode:()=>As,createHydrationRenderer:()=>Go,createPropsRestProxy:()=>Wa,createRenderer:()=>Wo,createSSRApp:()=>Ou,createSlots:()=>Sa,createStaticVNode:()=>Fs,createTextVNode:()=>Ps,createVNode:()=>V,customRef:()=>wn,defineAsyncComponent:()=>Wi,defineComponent:()=>di,defineCustomElement:()=>Pl,defineEmits:()=>Ma,defineExpose:()=>Na,defineModel:()=>Ia,defineOptions:()=>Pa,defineProps:()=>ja,defineSSRCustomElement:()=>Fl,defineSlots:()=>Fa,devtools:()=>yc,effect:()=>nt,effectScope:()=>ze,getCurrentInstance:()=>Gs,getCurrentScope:()=>Be,getCurrentWatcher:()=>Ln,getTransitionRawChildren:()=>ui,guardReactiveProps:()=>Ms,h:()=>fc,handleError:()=>Yn,hasInjectionContext:()=>Er,hydrate:()=>Eu,hydrateOnIdle:()=>Li,hydrateOnInteraction:()=>Vi,hydrateOnMediaQuery:()=>Bi,hydrateOnVisible:()=>zi,initCustomFormatter:()=>pc,initDirectivesForSSR:()=>Mu,inject:()=>Tr,isMemoSame:()=>hc,isProxy:()=>un,isReactive:()=>sn,isReadonly:()=>cn,isRef:()=>I,isRuntimeOnly:()=>ic,isShallow:()=>ln,isVNode:()=>Ts,markRaw:()=>dn,mergeDefaults:()=>Ha,mergeModels:()=>Ua,mergeProps:()=>Bs,nextTick:()=>ir,nodeOps:()=>Ac,normalizeClass:()=>_e,normalizeProps:()=>ve,normalizeStyle:()=>fe,onActivated:()=>Yi,onBeforeMount:()=>ra,onBeforeUnmount:()=>sa,onBeforeUpdate:()=>aa,onDeactivated:()=>Xi,onErrorCaptured:()=>fa,onMounted:()=>ia,onRenderTracked:()=>da,onRenderTriggered:()=>ua,onScopeDispose:()=>Ve,onServerPrefetch:()=>la,onUnmounted:()=>ca,onUpdated:()=>oa,onWatcherCleanup:()=>Rn,openBlock:()=>vs,patchProp:()=>Al,popScopeId:()=>yr,provide:()=>wr,proxyRefs:()=>Sn,pushScopeId:()=>vr,queuePostFlushCb:()=>cr,reactive:()=>tn,readonly:()=>rn,ref:()=>mn,registerRuntimeCompiler:()=>rc,render:()=>Tu,renderList:()=>xa,renderSlot:()=>Ca,resolveComponent:()=>ha,resolveDirective:()=>va,resolveDynamicComponent:()=>_a,resolveFilter:()=>null,resolveTransitionHooks:()=>oi,setBlockTracking:()=>xs,setDevtoolsHook:()=>bc,setTransitionHooks:()=>li,shallowReactive:()=>nn,shallowReadonly:()=>an,shallowRef:()=>hn,ssrContextKey:()=>Dr,ssrUtils:()=>xc,stop:()=>rt,toDisplayString:()=>Pe,toHandlerKey:()=>j,toHandlers:()=>Ta,toRaw:()=>F,toRef:()=>On,toRefs:()=>Tn,toValue:()=>bn,transformVNodeArgs:()=>Ds,triggerRef:()=>vn,unref:()=>yn,useAttrs:()=>za,useCssModule:()=>Bl,useCssVars:()=>il,useHost:()=>Rl,useId:()=>fi,useModel:()=>fo,useSSRContext:()=>Or,useShadowRoot:()=>zl,useSlots:()=>Ra,useTemplateRef:()=>mi,useTransitionState:()=>Qr,vModelCheckbox:()=>iu,vModelDynamic:()=>du,vModelRadio:()=>ou,vModelSelect:()=>su,vModelText:()=>ru,vShow:()=>el,version:()=>gc,warn:()=>_c,watch:()=>Mr,watchEffect:()=>kr,watchPostEffect:()=>Ar,watchSyncEffect:()=>jr,withAsyncContext:()=>Ga,withCtx:()=>xr,withDefaults:()=>La,withDirectives:()=>Sr,withKeys:()=>yu,withMemo:()=>mc,withModifiers:()=>_u,withScopeId:()=>br}),Cc=void 0,wc=typeof window<`u`&&window.trustedTypes;if(wc)try{Cc=wc.createPolicy(`vue`,{createHTML:e=>e})}catch{}var Tc=Cc?e=>Cc.createHTML(e):e=>e,Ec=`http://www.w3.org/2000/svg`,Dc=`http://www.w3.org/1998/Math/MathML`,Oc=typeof document<`u`?document:null,kc=Oc&&Oc.createElement(`template`),Ac={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?Oc.createElementNS(Ec,e):t===`mathml`?Oc.createElementNS(Dc,e):n?Oc.createElement(e,{is:n}):Oc.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>Oc.createTextNode(e),createComment:e=>Oc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Oc.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{kc.innerHTML=Tc(r===`svg`?`${e}`:r===`mathml`?`${e}`:e);let i=kc.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},jc=`transition`,Mc=`animation`,Nc=Symbol(`_vtc`),Pc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Fc=c({},ei,Pc),Ic=(e=>(e.displayName=`Transition`,e.props=Fc,e))((e,{slots:t})=>fc(ii,zc(e),t)),Lc=(e,t=[])=>{f(e)?e.forEach(e=>e(...t)):e&&e(...t)},Rc=e=>e?f(e)?e.some(e=>e.length>1):e.length>1:!1;function zc(e){let t={};for(let n in e)n in Pc||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=a,appearActiveClass:u=o,appearToClass:d=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,h=Bc(i),g=h&&h[0],_=h&&h[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:x,onLeaveCancelled:S,onBeforeAppear:C=v,onAppear:w=y,onAppearCancelled:T=b}=t,E=(e,t,n,r)=>{e._enterCancelled=r,Uc(e,t?d:s),Uc(e,t?u:o),n&&n()},D=(e,t)=>{e._isLeaving=!1,Uc(e,f),Uc(e,m),Uc(e,p),t&&t()},ee=e=>(t,n)=>{let i=e?w:y,o=()=>E(t,e,n);Lc(i,[t,o]),Wc(()=>{Uc(t,e?l:a),Hc(t,e?d:s),Rc(i)||Kc(t,r,g,o)})};return c(t,{onBeforeEnter(e){Lc(v,[e]),Hc(e,a),Hc(e,o)},onBeforeAppear(e){Lc(C,[e]),Hc(e,l),Hc(e,u)},onEnter:ee(!1),onAppear:ee(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>D(e,t);Hc(e,f),e._enterCancelled?(Hc(e,p),Xc(e)):(Xc(e),Hc(e,p)),Wc(()=>{e._isLeaving&&(Uc(e,f),Hc(e,m),Rc(x)||Kc(e,r,_,n))}),Lc(x,[e,n])},onEnterCancelled(e){E(e,!1,void 0,!0),Lc(b,[e])},onAppearCancelled(e){E(e,!0,void 0,!0),Lc(T,[e])},onLeaveCancelled(e){D(e),Lc(S,[e])}})}function Bc(e){if(e==null)return null;if(b(e))return[Vc(e.enter),Vc(e.leave)];{let t=Vc(e);return[t,t]}}function Vc(e){return se(e)}function Hc(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[Nc]||(e[Nc]=new Set)).add(t)}function Uc(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[Nc];n&&(n.delete(t),n.size||(e[Nc]=void 0))}function Wc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var Gc=0;function Kc(e,t,n,r){let i=e._endId=++Gc,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=qc(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u(n[e]||``).split(`, `),i=r(`${jc}Delay`),a=r(`${jc}Duration`),o=Jc(i,a),s=r(`${Mc}Delay`),c=r(`${Mc}Duration`),l=Jc(s,c),u=null,d=0,f=0;t===jc?o>0&&(u=jc,d=o,f=a.length):t===Mc?l>0&&(u=Mc,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?jc:Mc:null,f=u?u===jc?a.length:c.length:0);let p=u===jc&&/\b(?:transform|all)(?:,|$)/.test(r(`${jc}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function Jc(e,t){for(;e.lengthYc(t)+Yc(e[n])))}function Yc(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function Xc(e){return(e?e.ownerDocument:document).body.offsetHeight}function Zc(e,t,n){let r=e[Nc];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Qc=Symbol(`_vod`),$c=Symbol(`_vsh`),el={name:`show`,beforeMount(e,{value:t},{transition:n}){e[Qc]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):tl(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),tl(e,!0),r.enter(e)):r.leave(e,()=>{tl(e,!1)}):tl(e,t))},beforeUnmount(e,{value:t}){tl(e,t)}};function tl(e,t){e.style.display=t?e[Qc]:`none`,e[$c]=!t}function nl(){el.getSSRProps=({value:e})=>{if(!e)return{style:{display:`none`}}}}var rl=Symbol(``);function il(e){let t=Gs();if(!t)return;let n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>ol(e,n))},r=()=>{let r=e(t.proxy);t.ce?ol(t.ce,r):al(t.subTree,r),n(r)};aa(()=>{cr(r)}),ia(()=>{Mr(r,i,{flush:`post`});let e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),ca(()=>e.disconnect())})}function al(e,t){if(e.shapeFlag&128){let n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{al(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)ol(e.el,t);else if(e.type===z)e.children.forEach(e=>al(e,t));else if(e.type===hs){let{el:n,anchor:r}=e;for(;n&&(ol(n,t),n!==r);)n=n.nextSibling}}function ol(e,t){if(e.nodeType===1){let n=e.style,r=``;for(let e in t){let i=Le(t[e]);n.setProperty(`--${e}`,i),r+=`--${e}: ${i};`}n[rl]=r}}var sl=/(?:^|;)\s*display\s*:/;function cl(e,t,n){let r=e.style,i=v(n),a=!1;if(n&&!i){if(t){if(v(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??ul(r,t,``)}else for(let e in t)n[e]??ul(r,e,``)}for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?ul(r,i,``):ml(e,i,!v(t)&&t?t[i]:void 0,o)||ul(r,i,o)}}else if(i){if(t!==n){let e=r[rl];e&&(n+=`;`+e),r.cssText=n,a=sl.test(n)}}else t&&e.removeAttribute(`style`);Qc in e&&(e[Qc]=a?r.display:``,e[$c]&&(r.display=`none`))}var ll=/\s*!important$/;function ul(e,t,n){if(f(n))n.forEach(n=>ul(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=pl(e,t);ll.test(n)?e.setProperty(A(r),n.replace(ll,``),`important`):e[r]=n}}var dl=[`Webkit`,`Moz`,`ms`],fl={};function pl(e,t){let n=fl[t];if(n)return n;let r=k(t);if(r!==`filter`&&r in e)return fl[t]=r;r=re(r);for(let n=0;nTl||=(El.then(()=>Tl=0),Date.now());function Ol(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(f(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;ne.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Al=(e,t,n,r,i,a)=>{let c=i===`svg`;t===`class`?Zc(e,r,c):t===`style`?cl(e,n,r):o(t)?s(t)||xl(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):jl(e,t,r,c))?(_l(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&gl(e,t,r,c,a,t!==`value`)):e._isVueCE&&(Ml(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!v(r)))?_l(e,k(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),gl(e,t,r,c))};function jl(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&kl(t)&&_(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return kl(t)&&v(n)?!1:t in e}function Ml(e,t){let n=e._def.props;if(!n)return!1;let r=k(t);return Array.isArray(n)?n.some(e=>k(e)===r):Object.keys(n).some(e=>k(e)===r)}var Nl={};function Pl(e,t,n){let r=di(e,t);T(r)&&(r=c({},r,t));class i extends Ll{constructor(e){super(r,e,n)}}return i.def=r,i}var Fl=((e,t)=>Pl(e,t,Ou)),Il=typeof HTMLElement<`u`?HTMLElement:class{},Ll=class e extends Il{constructor(e,t={},n=Du){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&n!==Du?this._root=this.shadowRoot:e.shadowRoot===!1?this._root=this:(this.attachShadow(c({},e.shadowRootOptions,{mode:`open`})),this._root=this.shadowRoot)}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t&&=t.assignedSlot||t.parentNode||t.host;)if(t instanceof e){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{if(this._pendingResolve=void 0,this.isConnected)return this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,ir(()=>{this._connected||(this._ob&&=(this._ob.disconnect(),null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&=(this._teleportTargets.clear(),void 0))})}_processMutations(e){for(let t of e)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return this._pendingResolve;for(let e=0;e{this._resolved=!0,this._pendingResolve=void 0;let{props:n,styles:r}=e,i;if(n&&!f(n))for(let e in n){let t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=se(this._props[e])),(i||=Object.create(null))[k(e)]=!0)}this._numberProps=i,this._resolveProps(e),this.shadowRoot&&this._applyStyles(r),this._mount(e)},t=this._def.__asyncLoader;if(t)return this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}),this._pendingResolve;e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);let t=this._instance&&this._instance.exposed;if(t)for(let e in t)d(this,e)||Object.defineProperty(this,e,{get:()=>yn(t[e])})}_resolveProps(e){let{props:t}=e,n=f(t)?t:Object.keys(t||{});for(let e of Object.keys(this))e[0]!==`_`&&n.includes(e)&&this._setProp(e,this[e]);for(let e of n.map(k))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!this._patching)}})}_setAttr(e){if(e.startsWith(`data-v-`))return;let t=this.hasAttribute(e),n=t?this.getAttribute(e):Nl,r=k(e);t&&this._numberProps&&this._numberProps[r]&&(n=se(n)),this._setProp(r,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!1){if(t!==this._props[e]&&(this._dirty=!0,t===Nl?delete this._props[e]:(this._props[e]=t,e===`key`&&this._app&&(this._app._ceVNode.key=t)),r&&this._instance&&this._update(),n)){let n=this._ob;n&&(this._processMutations(n.takeRecords()),n.disconnect()),t===!0?this.setAttribute(A(e),``):typeof t==`string`||typeof t==`number`?this.setAttribute(A(e),t+``):t||this.removeAttribute(A(e)),n&&n.observe(this,{attributes:!0})}}_update(){let e=this._createVNode();this._app&&(e.appContext=this._app._context),Tu(e,this._root)}_createVNode(){let e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));let t=V(this._def,c(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;let t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,T(t[0])?c({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),A(e)!==e&&t(A(e),n)},this._setParent()}),t}_applyStyles(e,t,n){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}let r=this._nonce,i=this.shadowRoot,a=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(i),o=null;for(let s=e.length-1;s>=0;s--){let c=document.createElement(`style`);r&&c.setAttribute(`nonce`,r),c.textContent=e[s],i.insertBefore(c,o||a),o=c,s===0&&(n||this._styleAnchors.set(this._def,c),t&&this._styleAnchors.set(t,c))}}_getStyleAnchor(e){if(!e)return null;let t=this._styleAnchors.get(e);return t&&t.parentNode===this.shadowRoot?t:(t&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let t=0;t(delete e.props.mode,e))({name:`TransitionGroup`,props:c({},Fc,{tag:String,moveClass:String}),setup(e,{slots:t}){let n=Gs(),r=Qr(),i,a;return oa(()=>{if(!i.length)return;let t=e.moveClass||`${e.name||`v`}-move`;if(!Xl(i[0].el,n.vnode.el,t)){i=[];return}i.forEach(Kl),i.forEach(ql);let r=i.filter(Jl);Xc(n.vnode.el),r.forEach(e=>{let n=e.el,r=n.style;Hc(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[Ul]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[Ul]=null,Uc(n,t))};n.addEventListener(`transitionend`,i)}),i=[]}),()=>{let o=F(e),s=zc(o),c=o.tag||z;if(i=[],a)for(let e=0;e{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=qc(r);return a.removeChild(r),o}var Zl=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return f(t)?e=>ie(t,e):t};function Ql(e){e.target.composing=!0}function $l(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var eu=Symbol(`_assign`),tu=Symbol(`_initialValue`);function nu(e,t,n){return t&&(e=e.trim()),n&&(e=oe(e)),e}var ru={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e.parentNode&&(e.type===`text`?e[tu]=e.defaultValue.replace(/[\r\n]/g,``):e.type===`textarea`&&(e[tu]=e.defaultValue.replace(/\r\n?/g,` +`))),e[eu]=Zl(i);let a=r||i.props&&i.props.type===`number`;vl(e,t?`change`:`input`,t=>{t.target.composing||e[eu](nu(e.value,n,a))}),(n||a)&&vl(e,`change`,()=>{e.value=nu(e.value,n,a)}),t||(vl(e,`compositionstart`,Ql),vl(e,`compositionend`,$l),vl(e,`change`,$l))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){let i=t??``,a=e[tu];delete e[tu],a!==void 0&&(e.type===`text`||e.type===`textarea`)&&e.value!==a?e[eu](nu(e.value,n,r)):e.value=i},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[eu]=Zl(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?oe(e.value):e.value,c=t??``;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},iu={deep:!0,created(e,t,n){e[eu]=Zl(n),vl(e,`change`,()=>{let t=e._modelValue,n=lu(e),r=e.checked,i=e[eu];if(f(t)){let e=Me(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(m(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(uu(e,r))})},mounted:au,beforeUpdate(e,t,n){e[eu]=Zl(n),au(e,t,n)}};function au(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(f(t))i=Me(t,r.props.value)>-1;else if(m(t))i=t.has(r.props.value);else{if(t===n)return;i=je(t,uu(e,!0))}e.checked!==i&&(e.checked=i)}var ou={created(e,{value:t},n){e.checked=je(t,n.props.value),e[eu]=Zl(n),vl(e,`change`,()=>{e[eu](lu(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[eu]=Zl(r),t!==n&&(e.checked=je(t,r.props.value))}},su={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,vl(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?oe(lu(e)):lu(e));e[eu](e.multiple?m(e._modelValue)?new Set(t):t:t[0]),e._assigning=!0,ir(()=>{e._assigning=!1})}),e[eu]=Zl(r)},mounted(e,{value:t}){cu(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[eu]=Zl(n)},updated(e,{value:t}){e._assigning||cu(e,t)}};function cu(e,t){let n=e.multiple,r=f(t);if(!(n&&!r&&!m(t))){for(let i=0,a=e.options.length;iString(e)===String(o)):Me(t,o)>-1}else a.selected=t.has(o)}else if(je(lu(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function lu(e){return`_value`in e?e._value:e.value}function uu(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var du={created(e,t,n){pu(e,t,n,null,`created`)},mounted(e,t,n){pu(e,t,n,null,`mounted`)},beforeUpdate(e,t,n,r){pu(e,t,n,r,`beforeUpdate`)},updated(e,t,n,r){pu(e,t,n,r,`updated`)}};function fu(e,t){switch(e){case`SELECT`:return su;case`TEXTAREA`:return ru;default:switch(t){case`checkbox`:return iu;case`radio`:return ou;default:return ru}}}function pu(e,t,n,r,i){let a=fu(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}function mu(){ru.getSSRProps=({value:e})=>({value:e}),ou.getSSRProps=({value:e},t)=>{if(t.props&&je(t.props.value,e))return{checked:!0}},iu.getSSRProps=({value:e},t)=>{if(f(e)){if(t.props&&Me(e,t.props.value)>-1)return{checked:!0}}else if(m(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},du.getSSRProps=(e,t)=>{if(typeof t.type!=`string`)return;let n=fu(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}var hu=[`ctrl`,`shift`,`alt`,`meta`],gu={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>hu.some(n=>e[`${n}Key`]&&!t.includes(n))},_u=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=A(n.key);if(t.some(e=>e===r||vu[e]===r))return e(n)}))},bu=c({patchProp:Al},Ac),xu,Su=!1;function Cu(){return xu||=Wo(bu)}function wu(){return xu=Su?xu:Go(bu),Su=!0,xu}var Tu=((...e)=>{Cu().render(...e)}),Eu=((...e)=>{wu().hydrate(...e)}),Du=((...e)=>{let t=Cu().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=Au(e);if(!r)return;let i=t._component;!_(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,ku(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t}),Ou=((...e)=>{let t=wu().createApp(...e),{mount:n}=t;return t.mount=e=>{let t=Au(e);if(t)return n(t,!0,ku(t))},t});function ku(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function Au(e){return v(e)?document.querySelector(e):e}var ju=!1,Mu=()=>{ju||(ju=!0,mu(),nl())},Nu=Symbol(``),Pu=Symbol(``),Fu=Symbol(``),Iu=Symbol(``),Lu=Symbol(``),Ru=Symbol(``),zu=Symbol(``),Bu=Symbol(``),Vu=Symbol(``),Hu=Symbol(``),Uu=Symbol(``),Wu=Symbol(``),Gu=Symbol(``),Ku=Symbol(``),qu=Symbol(``),Ju=Symbol(``),Yu=Symbol(``),Xu=Symbol(``),Zu=Symbol(``),Qu=Symbol(``),$u=Symbol(``),ed=Symbol(``),td=Symbol(``),nd=Symbol(``),rd=Symbol(``),id=Symbol(``),ad=Symbol(``),od=Symbol(``),sd=Symbol(``),cd=Symbol(``),ld=Symbol(``),ud=Symbol(``),dd=Symbol(``),fd=Symbol(``),pd=Symbol(``),md=Symbol(``),hd=Symbol(``),gd=Symbol(``),_d=Symbol(``),vd={[Nu]:`Fragment`,[Pu]:`Teleport`,[Fu]:`Suspense`,[Iu]:`KeepAlive`,[Lu]:`BaseTransition`,[Ru]:`openBlock`,[zu]:`createBlock`,[Bu]:`createElementBlock`,[Vu]:`createVNode`,[Hu]:`createElementVNode`,[Uu]:`createCommentVNode`,[Wu]:`createTextVNode`,[Gu]:`createStaticVNode`,[Ku]:`resolveComponent`,[qu]:`resolveDynamicComponent`,[Ju]:`resolveDirective`,[Yu]:`resolveFilter`,[Xu]:`withDirectives`,[Zu]:`renderList`,[Qu]:`renderSlot`,[$u]:`createSlots`,[ed]:`toDisplayString`,[td]:`mergeProps`,[nd]:`normalizeClass`,[rd]:`normalizeStyle`,[id]:`normalizeProps`,[ad]:`guardReactiveProps`,[od]:`toHandlers`,[sd]:`camelize`,[cd]:`capitalize`,[ld]:`toHandlerKey`,[ud]:`setBlockTracking`,[dd]:`pushScopeId`,[fd]:`popScopeId`,[pd]:`withCtx`,[md]:`unref`,[hd]:`isRef`,[gd]:`withMemo`,[_d]:`isMemoSame`};function yd(e){Object.getOwnPropertySymbols(e).forEach(t=>{vd[t]=e[t]})}var bd={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:``};function xd(e,t=``){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:bd}}function Sd(e,t,n,r,i,a,o,s=!1,c=!1,l=!1,u=bd){return e&&(s?(e.helper(Ru),e.helper(jd(e.inSSR,l))):e.helper(Ad(e.inSSR,l)),o&&e.helper(Xu)),{type:13,tag:t,props:n,children:r,patchFlag:i,dynamicProps:a,directives:o,isBlock:s,disableTracking:c,isComponent:l,loc:u}}function Cd(e,t=bd){return{type:17,loc:t,elements:e}}function wd(e,t=bd){return{type:15,loc:t,properties:e}}function U(e,t){return{type:16,loc:bd,key:v(e)?W(e,!0):e,value:t}}function W(e,t=!1,n=bd,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function Td(e,t=bd){return{type:8,loc:t,children:e}}function G(e,t=[],n=bd){return{type:14,loc:n,callee:e,arguments:t}}function Ed(e,t=void 0,n=!1,r=!1,i=bd){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:i}}function Dd(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:bd}}function Od(e,t,n=!1,r=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:bd}}function kd(e){return{type:21,body:e,loc:bd}}function Ad(e,t){return e||t?Vu:Hu}function jd(e,t){return e||t?zu:Bu}function Md(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Ad(r,e.isComponent)),t(Ru),t(jd(r,e.isComponent)))}var Nd=new Uint8Array([123,123]),Pd=new Uint8Array([125,125]);function Fd(e){return e>=97&&e<=122||e>=65&&e<=90}function Id(e){return e===32||e===10||e===9||e===12||e===13}function Ld(e){return e===47||e===62||Id(e)}function Rd(e){let t=new Uint8Array(e.length);for(let n=0;n100){let t=-1,n=r;for(;t+1>>1;this.newlines[r]=0;t--)if(e>this.newlines[t]){i=t;break}return i>=0&&(t=i+2,n=e-this.newlines[i]),{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){e===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&e===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex]){if(this.delimiterIndex===this.delimiterOpen.length-1){let e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++}else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.state=this.inRCDATA?32:1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){let t=this.sequenceIndex===this.currentSequence.length;if(!(t?Ld(e):(e|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!t){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(e===62||Id(e)){let t=this.index-this.currentSequence.length;if(this.sectionStart=e||(this.state===28?this.currentSequence===zd.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}};function Vd(e,{compatConfig:t}){let n=t&&t[e];return e===`MODE`?n||3:n}function Hd(e,t){let n=Vd(`MODE`,t),r=Vd(e,t);return n===3?r===!0:r!==!1}function Ud(e,t,n,...r){return Hd(e,t)}function Wd(e){throw e}function Gd(e){}function K(e,t,n,r){let i=`https://vuejs.org/error-reference/#compiler-${e}`,a=SyntaxError(String(i));return a.code=e,a.loc=t,a}var Kd=e=>e.type===4&&e.isStatic;function qd(e){switch(e){case`Teleport`:case`teleport`:return Pu;case`Suspense`:case`suspense`:return Fu;case`KeepAlive`:case`keep-alive`:return Iu;case`BaseTransition`:case`base-transition`:return Lu}}var Jd=/^$|^\d|[^\$\w\xA0-\uFFFF]/,Yd=e=>!Jd.test(e),Xd=/[A-Za-z_$\xA0-\uFFFF]/,Zd=/[\.\?\w$\xA0-\uFFFF]/,Qd=/\s+[.[]\s*|\s*[.[]\s+/g,$d=e=>e.type===4?e.content:e.loc.source,ef=e=>{let t=$d(e).trim().replace(Qd,e=>e.trim()),n=0,r=[],i=0,a=0,o=null;for(let e=0;e|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,nf=e=>tf.test($d(e));function rf(e,t,n=!1){for(let r=0;re.type===7&&e.name===`bind`&&(!e.arg||e.arg.type!==4||!e.arg.isStatic))}function cf(e){return e.type===5||e.type===2}function lf(e){return e.type===7&&e.name===`pre`}function uf(e){return e.type===7&&e.name===`slot`}function df(e){return e.type===1&&e.tagType===3}function ff(e){return e.type===1&&e.tagType===2}var pf=new Set([id,ad]);function mf(e,t=[]){if(e&&!v(e)&&e.type===14){let n=e.callee;if(!v(n)&&pf.has(n))return mf(e.arguments[0],t.concat(e))}return[e,t]}function hf(e,t,n){if(e.type!==13&&gf(e,t))return;let r,i=e.type===13?e.props:e.arguments[2],a=[],o;if(i&&!v(i)&&i.type===14){let e=mf(i);i=e[0],a=e[1],o=a[a.length-1]}if(i==null||v(i))r=wd([t]);else if(i.type===14){let e=i.arguments[0];!v(e)&&e.type===15?_f(t,e)||e.properties.unshift(t):i.callee===od?r=G(n.helper(td),[wd([t]),i]):i.arguments.unshift(wd([t])),!r&&(r=i)}else i.type===15?(_f(t,i)||i.properties.unshift(t),r=i):(r=G(n.helper(td),[wd([t]),i]),o&&o.callee===ad&&(o=a[a.length-2]));e.type===13?o?o.arguments[0]=r:e.props=r:o?o.arguments[0]=r:e.arguments[2]=r}function gf(e,t){var n,r,i;if(t.key.type!==4||t.key.content!==`key`)return!1;let a=e.arguments[2];if(a&&!v(a)){let[e]=mf(a);if(e&&!v(e)&&e.type===15&&_f(t,e))return!0}return(n=e.arguments)[2]||(n[2]=`{}`),(r=e.arguments)[3]||(r[3]=`undefined`),(i=e.arguments)[4]||(i[4]=`undefined`),e.arguments[5]=t.value,!0}function _f(e,t){let n=!1;if(e.key.type===4){let r=e.key.content;n=t.properties.some(e=>e.key.type===4&&e.key.content===r)}return n}function vf(e,t){return`_${t}_${e.replace(/[^\w]/g,(t,n)=>t===`-`?`_`:e.charCodeAt(n).toString())}`}function yf(e){return e.type===14&&e.callee===gd?e.arguments[1].returns:e}var bf=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/;function xf(e){for(let t=0;t0,isVoidTag:a,isPreTag:a,isIgnoreNewlineTag:a,isCustomElement:a,onError:Wd,onWarn:Gd,comments:!1,prefixIdentifiers:!1},q=wf,Tf=null,Ef=``,Df=null,J=null,Of=``,kf=-1,Af=-1,jf=0,Mf=!1,Nf=null,Y=[],X=new Bd(Y,{onerr:tp,ontext(e,t){Rf(Z(e,t),e,t)},ontextentity(e,t,n){Rf(e,t,n)},oninterpolation(e,t){if(Mf)return Rf(Z(e,t),e,t);let n=e+X.delimiterOpen.length,r=t-X.delimiterClose.length;for(;Id(Ef.charCodeAt(n));)n++;for(;Id(Ef.charCodeAt(r-1));)r--;let i=Z(n,r);i.includes(`&`)&&(i=q.decodeEntities(i,!1)),Xf({type:5,content:ep(i,!1,Q(n,r)),loc:Q(e,t)})},onopentagname(e,t){let n=Z(e,t);Df={type:1,tag:n,ns:q.getNamespace(n,Y[0],q.ns),tagType:0,props:[],children:[],loc:Q(e-1,t),codegenNode:void 0}},onopentagend(e){Lf(e)},onclosetag(e,t){let n=Z(e,t);if(!q.isVoidTag(n)){let r=!1;for(let e=0;e0&&tp(24,Y[0].loc.start.offset);for(let n=0;n<=e;n++)zf(Y.shift(),t,n(e.type===7?e.rawName:e.name)===n)&&tp(2,t)},onattribend(e,t){if(Df&&J){if(Qf(J.loc,t),e!==0){if(Of.includes(`&`)&&(Of=q.decodeEntities(Of,!0)),J.type===6)J.name===`class`&&(Of=Yf(Of).trim()),e===1&&!Of&&tp(13,t),J.value={type:2,content:Of,loc:e===1?Q(kf,Af):Q(kf-1,Af+1)},X.inSFCRoot&&Df.tag===`template`&&J.name===`lang`&&Of&&Of!==`html`&&X.enterRCDATA(Rd(`e.content===`sync`))>-1&&Ud(`COMPILER_V_BIND_SYNC`,q,J.loc,J.arg.loc.source)&&(J.name=`model`,J.modifiers.splice(e,1))}}(J.type!==7||J.name!==`pre`)&&Df.props.push(J)}Of=``,kf=Af=-1},oncomment(e,t){q.comments&&Xf({type:3,content:Z(e,t),loc:Q(e-4,t+3)})},onend(){let e=Ef.length;for(let t=0;t{let i=t.start.offset+n;return ep(e,!1,Q(i,i+e.length),0,+!!r)},s={source:o(a.trim(),n.indexOf(a,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1},c=i.trim().replace(Ff,``).trim(),l=i.indexOf(c),u=c.match(Pf);if(u){c=c.replace(Pf,``).trim();let e=u[1].trim(),t;if(e&&(t=n.indexOf(e,l+c.length),s.key=o(e,t,!0)),u[2]){let r=u[2].trim();r&&(s.index=o(r,n.indexOf(r,s.key?t+e.length:l+c.length),!0))}}return c&&(s.value=o(c,l,!0)),s}function Z(e,t){return Ef.slice(e,t)}function Lf(e){X.inSFCRoot&&(Df.innerLoc=Q(e+1,e+1)),Xf(Df);let{tag:t,ns:n}=Df;n===0&&q.isPreTag(t)&&jf++,q.isVoidTag(t)?zf(Df,e):(Y.unshift(Df),(n===1||n===2)&&(X.inXML=!0)),Df=null}function Rf(e,t,n){{let t=Y[0]&&Y[0].tag;t!==`script`&&t!==`style`&&e.includes(`&`)&&(e=q.decodeEntities(e,!1))}let r=Y[0]||Tf,i=r.children[r.children.length-1];i&&i.type===2?(i.content+=e,Qf(i.loc,n)):r.children.push({type:2,content:e,loc:Q(t,n)})}function zf(e,t,n=!1){n?Qf(e.loc,Vf(t,60)):Qf(e.loc,Bf(t,62)+1),X.inSFCRoot&&(e.children.length?e.innerLoc.end=c({},e.children[e.children.length-1].loc.end):e.innerLoc.end=c({},e.innerLoc.start),e.innerLoc.source=Z(e.innerLoc.start.offset,e.innerLoc.end.offset));let{tag:r,ns:i,children:a}=e;if(Mf||(r===`slot`?e.tagType=2:Uf(e)?e.tagType=3:Wf(e)&&(e.tagType=1)),X.inRCDATA||(e.children=qf(a)),i===0&&q.isIgnoreNewlineTag(r)){let e=a[0];e&&e.type===2&&(e.content=e.content.replace(/^\r?\n/,``))}i===0&&q.isPreTag(r)&&jf--,Nf===e&&(Mf=X.inVPre=!1,Nf=null),X.inXML&&(Y[0]?Y[0].ns:q.ns)===0&&(X.inXML=!1);{let t=e.props;if(!X.inSFCRoot&&Hd(`COMPILER_NATIVE_TEMPLATE`,q)&&e.tag===`template`&&!Uf(e)){let t=Y[0]||Tf,n=t.children.indexOf(e);t.children.splice(n,1,...e.children)}let n=t.find(e=>e.type===6&&e.name===`inline-template`);n&&Ud(`COMPILER_INLINE_TEMPLATE`,q,n.loc)&&e.children.length&&(n.value={type:2,content:Z(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function Bf(e,t){let n=e;for(;Ef.charCodeAt(n)!==t&&n=0;)n--;return n}var Hf=new Set([`if`,`else`,`else-if`,`for`,`slot`]);function Uf({tag:e,props:t}){if(e===`template`){for(let e=0;e64&&e<91}var Kf=/\r\n/g;function qf(e){let t=q.whitespace!==`preserve`,n=!1;for(let r=0;re.type!==3);return t.length===1&&t[0].type===1&&!ff(t[0])?t[0]:null}function op(e,t,n,r=!1,i=!1){let{children:a}=e,o=[];for(let t=0;t0){if(e>=2){s.codegenNode.patchFlag=-1,o.push(s);continue}}else{let e=s.codegenNode;if(e.type===13){let t=e.patchFlag;if((t===void 0||t===512||t===1)&&up(s,n)>=2){let t=dp(s);t&&(e.props=n.hoist(t))}e.dynamicProps&&=n.hoist(e.dynamicProps)}}}else if(s.type===12&&(r?0:sp(s,n))>=2){s.codegenNode.type===14&&s.codegenNode.arguments.length>0&&s.codegenNode.arguments.push(`-1`),o.push(s);continue}if(s.type===1){let t=s.tagType===1;t&&n.scopes.vSlot++,op(s,e,n,!1,i),t&&n.scopes.vSlot--}else if(s.type===11)op(s,e,n,s.children.length===1,!0);else if(s.type===9)for(let t=0;te.key===t||e.key.content===t);return n&&n.value}}o.length&&n.transformHoist&&n.transformHoist(a,n,e)}function sp(e,t){let{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;let r=n.get(e);if(r!==void 0)return r;let i=e.codegenNode;if(i.type!==13||i.isBlock&&e.tag!==`svg`&&e.tag!==`foreignObject`&&e.tag!==`math`)return 0;if(i.patchFlag===void 0){let r=3,a=up(e,t);if(a===0)return n.set(e,0),0;a1)for(let i=0;in&&(D.childIndex--,D.onNodeRemoved()),D.parent.children.splice(n,1)},onNodeRemoved:i,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){v(e)&&(e=W(e)),D.hoists.push(e);let t=W(`_hoisted_${D.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache(e,t=!1,n=!1){let r=Od(D.cached.length,e,t,n);return D.cached.push(r),r}};return D.filters=new Set,D}function pp(e,t){let n=fp(e,t);gp(e,n),t.hoistStatic&&ip(e,n),t.ssr||mp(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function mp(e,t){let{helper:n}=t,{children:r}=e;if(r.length===1){let n=ap(e);if(n&&n.codegenNode){let r=n.codegenNode;r.type===13&&Md(r,t),e.codegenNode=r}else e.codegenNode=r[0]}else r.length>1&&(e.codegenNode=Sd(t,n(Nu),void 0,e.children,64,void 0,void 0,!0,void 0,!1))}function hp(e,t){let n=0,r=()=>{n--};for(;nt===e:t=>e.test(t);return(e,r)=>{if(e.type===1){let{props:i}=e;if(e.tagType===3&&i.some(uf))return;let a=[];for(let o=0;o`${vd[e]}: _${vd[e]}`;function bp(e,{mode:t=`function`,prefixIdentifiers:n=t===`module`,sourceMap:r=!1,filename:i=`template.vue.html`,scopeId:a=null,optimizeImports:o=!1,runtimeGlobalName:s=`Vue`,runtimeModuleName:c=`vue`,ssrRuntimeModuleName:l=`vue/server-renderer`,ssr:u=!1,isTS:d=!1,inSSR:f=!1}){let p={mode:t,prefixIdentifiers:n,sourceMap:r,filename:i,scopeId:a,optimizeImports:o,runtimeGlobalName:s,runtimeModuleName:c,ssrRuntimeModuleName:l,ssr:u,isTS:d,inSSR:f,source:e.source,code:``,column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(e){return`_${vd[e]}`},push(e,t=-2,n){p.code+=e},indent(){m(++p.indentLevel)},deindent(e=!1){e?--p.indentLevel:m(--p.indentLevel)},newline(){m(p.indentLevel)}};function m(e){p.push(` +`+` `.repeat(e),0)}return p}function xp(e,t={}){let n=bp(e,t);t.onContextCreated&&t.onContextCreated(n);let{mode:r,push:i,prefixIdentifiers:a,indent:o,deindent:s,newline:c,scopeId:l,ssr:u}=n,d=Array.from(e.helpers),f=d.length>0,p=!a&&r!==`module`;if(Sp(e,n),i(`function ${u?`ssrRender`:`render`}(${(u?[`_ctx`,`_push`,`_parent`,`_attrs`]:[`_ctx`,`_cache`]).join(`, `)}) {`),o(),p&&(i(`with (_ctx) {`),o(),f&&(i(`const { ${d.map(yp).join(`, `)} } = _Vue +`,-1),c())),e.components.length&&(Cp(e.components,`component`,n),(e.directives.length||e.temps>0)&&c()),e.directives.length&&(Cp(e.directives,`directive`,n),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),Cp(e.filters,`filter`,n),c()),e.temps>0){i(`let `);for(let t=0;t0?`, `:``}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(i(` +`,0),c()),u||i(`return `),e.codegenNode?Dp(e.codegenNode,n):i(`null`),p&&(s(),i(`}`)),s(),i(`}`),{ast:e,code:n.code,preamble:``,map:n.map?n.map.toJSON():void 0}}function Sp(e,t){let{ssr:n,prefixIdentifiers:r,push:i,newline:a,runtimeModuleName:o,runtimeGlobalName:s,ssrRuntimeModuleName:c}=t,l=s,u=Array.from(e.helpers);u.length>0&&(i(`const _Vue = ${l} +`,-1),e.hoists.length&&i(`const { ${[Vu,Hu,Uu,Wu,Gu].filter(e=>u.includes(e)).map(yp).join(`, `)} } = _Vue +`,-1)),wp(e.hoists,t),a(),i(`return `)}function Cp(e,t,{helper:n,push:r,newline:i,isTS:a}){let o=n(t===`filter`?Yu:t===`component`?Ku:Ju);for(let n=0;n3||!1;t.push(`[`),n&&t.indent(),Ep(e,t,n),n&&t.deindent(),t.push(`]`)}function Ep(e,t,n=!1,r=!0){let{push:i,newline:a}=t;for(let o=0;oe||`null`)}function Ip(e,t){let{push:n,helper:r,pure:i}=t,a=v(e.callee)?e.callee:r(e.callee);i&&n(vp),n(a+`(`,-2,e),Ep(e.arguments,t),n(`)`)}function Lp(e,t){let{push:n,indent:r,deindent:i,newline:a}=t,{properties:o}=e;if(!o.length){n(`{}`,-2,e);return}let s=o.length>1||!1;n(s?`{`:`{ `),s&&r();for(let e=0;e `),(c||s)&&(n(`{`),r()),o?(c&&n(`return `),f(o)?Tp(o,t):Dp(o,t)):s&&Dp(s,t),(c||s)&&(i(),n(`}`)),l&&(e.isNonScopedSlot&&n(`, undefined, true`),n(`)`))}function Bp(e,t){let{test:n,consequent:r,alternate:i,newline:a}=e,{push:o,indent:s,deindent:c,newline:l}=t;if(n.type===4){let e=!Yd(n.content);e&&o(`(`),kp(n,t),e&&o(`)`)}else o(`(`),Dp(n,t),o(`)`);a&&s(),t.indentLevel++,a||o(` `),o(`? `),Dp(r,t),t.indentLevel--,a&&l(),a||o(` `),o(`: `);let u=i.type===19;u||t.indentLevel++,Dp(i,t),u||t.indentLevel--,a&&c(!0)}function Vp(e,t){let{push:n,helper:r,indent:i,deindent:a,newline:o}=t,{needPauseTracking:s,needArraySpread:c}=e;c&&n(`[...(`),n(`_cache[${e.index}] || (`),s&&(i(),n(`${r(ud)}(-1`),e.inVOnce&&n(`, true`),n(`),`),o(),n(`(`)),n(`_cache[${e.index}] = `),Dp(e.value,t),s&&(n(`).cacheIndex = ${e.index},`),o(),n(`${r(ud)}(1),`),o(),n(`_cache[${e.index}]`),a()),n(`)`),c&&n(`)]`)}RegExp(`\\b`+`arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield`.split(`,`).join(`\\b|\\b`)+`\\b`);var Hp=_p(/^(?:if|else|else-if)$/,(e,t,n)=>Up(e,t,n,(e,t,r)=>{let i=n.parent.children,a=i.indexOf(e),o=0;for(;a-->=0;){let e=i[a];e&&e.type===9&&(o+=e.branches.length)}return()=>{if(r)e.codegenNode=Gp(t,o,n);else{let r=qp(e.codegenNode);r.alternate=Gp(t,o+e.branches.length-1,n)}}}));function Up(e,t,n,r){if(t.name!==`else`&&(!t.exp||!t.exp.content.trim())){let r=t.exp?t.exp.loc:e.loc;n.onError(K(28,t.loc)),t.exp=W(`true`,!1,r)}if(t.name===`if`){let i=Wp(e,t),a={type:9,loc:Zf(e.loc),branches:[i]};if(n.replaceNode(a),r)return r(a,i,!0)}else{let i=n.parent.children,a=i.indexOf(e);for(;a-->=-1;){let o=i[a];if(o&&Cf(o)){n.removeNode(o);continue}if(o&&o.type===9){(t.name===`else-if`||t.name===`else`)&&o.branches[o.branches.length-1].condition===void 0&&n.onError(K(30,e.loc)),n.removeNode();let i=Wp(e,t);o.branches.push(i);let a=r&&r(o,i,!1);gp(i,n),a&&a(),n.currentNode=null}else n.onError(K(30,e.loc));break}}}function Wp(e,t){let n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name===`else`?void 0:t.exp,children:n&&!rf(e,`for`)?e.children:[e],userKey:af(e,`key`),isTemplateIf:n}}function Gp(e,t,n){return e.condition?Dd(e.condition,Kp(e,t,n),G(n.helper(Uu),[`""`,`true`])):Kp(e,t,n)}function Kp(e,t,n){let{helper:r}=n,i=U(`key`,W(`${t}`,!1,bd,2)),{children:a}=e,o=a[0];if(a.length!==1||o.type!==1){if(a.length===1&&o.type===11){let e=o.codegenNode;return hf(e,i,n),e}return Sd(n,r(Nu),wd([i]),a,64,void 0,void 0,!0,!1,!1,e.loc)}{let e=o.codegenNode,t=yf(e);return t.type===13&&Md(t,n),hf(t,i,n),e}}function qp(e){for(;;)if(e.type===19){if(e.alternate.type===19)e=e.alternate;else return e}else e.type===20&&(e=e.value)}var Jp=_p(`for`,(e,t,n)=>{let{helper:r,removeHelper:i}=n;return Yp(e,t,n,t=>{let a=G(r(Zu),[t.source]),o=df(e),s=rf(e,`memo`),c=af(e,`key`,!1,!0);c&&c.type;let l=c&&(c.type===6?c.value?W(c.value.content,!0):void 0:c.exp),u=l?U(`key`,l):null,d=t.source.type===4&&t.source.constType>0,f=d?64:c?128:256;return t.codegenNode=Sd(n,r(Nu),void 0,a,f,void 0,void 0,!0,!d,!1,e.loc),()=>{let c,{children:f}=t,p=f.length!==1||f[0].type!==1,m=ff(e)?e:o&&e.children.length===1&&ff(e.children[0])?e.children[0]:null;if(m)c=m.codegenNode,o&&u&&hf(c,u,n);else if(p)c=Sd(n,r(Nu),u?wd([u]):void 0,e.children,64,void 0,void 0,!0,void 0,!1);else{c=f[0].codegenNode,o&&u&&hf(c,u,n);let e=!d||c.isBlockRequired===!0;c.isBlock!==e&&(c.isBlock?(i(Ru),i(jd(n.inSSR,c.isComponent))):i(Ad(n.inSSR,c.isComponent))),c.isBlock=e,c.isBlock?(r(Ru),r(jd(n.inSSR,c.isComponent))):(r(Ad(n.inSSR,c.isComponent)),c.needsPatch&&(c.patchFlag=(c.patchFlag??0)|512))}if(s){let e=Ed(Zp(t.parseResult,[W(`_cached`)]));e.body=kd([Td([`const _memo = (`,s.exp,`)`]),Td([`if (_cached && _cached.el`,...l?[` && _cached.key === `,l]:[],` && ${n.helperString(_d)}(_cached, _memo)) return _cached`]),Td([`const _item = `,c]),W(`_item.memo = _memo`),W(`return _item`)]),a.arguments.push(e,W(`_cache`),W(String(n.cached.length))),n.cached.push(null)}else a.arguments.push(Ed(Zp(t.parseResult),c,!0))}})});function Yp(e,t,n,r){if(!t.exp){n.onError(K(31,t.loc));return}let i=t.forParseResult;if(!i){n.onError(K(32,t.loc));return}Xp(i,n);let{addIdentifiers:a,removeIdentifiers:o,scopes:s}=n,{source:c,value:l,key:u,index:d}=i,f={type:11,loc:t.loc,source:c,valueAlias:l,keyAlias:u,objectIndexAlias:d,parseResult:i,children:df(e)?e.children:[e]};n.replaceNode(f),s.vFor++;let p=r&&r(f);return()=>{s.vFor--,p&&p()}}function Xp(e,t){e.finalized||=!0}function Zp({value:e,key:t,index:n},r=[]){return Qp([e,t,n,...r])}function Qp(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((e,t)=>e||W(`_`.repeat(t+1),!1))}var $p=W(`undefined`,!1),em=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){let n=rf(e,`slot`);if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},tm=(e,t,n,r)=>Ed(e,n,!1,!0,n.length?n[0].loc:r);function nm(e,t,n=tm){t.helper(pd);let{children:r,loc:i}=e,a=[],o=[],s=t.scopes.vSlot>0||t.scopes.vFor>0,c=rf(e,`slot`,!0);if(c){let{arg:e,exp:t}=c;e&&!Kd(e)&&(s=!0),a.push(U(e||W(`default`,!0),n(t,void 0,r,i)))}let l=!1,u=!1,d=[],f=new Set,p=0;for(let e=0;e{let a=n(e,void 0,r,i);return t.compatConfig&&(a.isNonScopedSlot=!0),U(`default`,a)};l?d.length&&!d.every(Sf)&&(u?t.onError(K(39,d[0].loc)):a.push(e(void 0,d))):a.push(e(void 0,r))}let m=s?2:im(e.children)?3:1,h=wd(a.concat(U(`_`,W(m+``,!1))),i);return o.length&&(h=G(t.helper($u),[h,Cd(o)])),{slots:h,hasDynamicSlots:s}}function rm(e,t,n){let r=[U(`name`,e),U(`fn`,t)];return n!=null&&r.push(U(`key`,W(String(n),!0))),wd(r)}function im(e){for(let t=0;tfunction(){if(e=t.currentNode,e.type!==1||e.tagType!==0&&e.tagType!==1)return;let{tag:n,props:r}=e,i=e.tagType===1,a=i?sm(e,t):`"${n}"`,o=b(a)&&a.callee===qu,s,c,l=0,u,d,f,p=!1,m=!1,h=o||a===Pu||a===Fu||!i&&(n===`svg`||n===`foreignObject`||n===`math`);if(r.length>0){let n=cm(e,t,void 0,i,o);s=n.props,l=n.patchFlag,d=n.dynamicPropNames,p=n.needsPatch,m=n.isBlockRequired;let r=n.directives;f=r&&r.length?Cd(r.map(e=>dm(e,t))):void 0,n.shouldUseBlock&&(h=!0)}if(e.children.length>0){if(a===Iu&&(h=!0,l|=1024),i&&a!==Pu&&a!==Iu){let{slots:n,hasDynamicSlots:r}=nm(e,t);c=n,r&&(l|=1024)}else if(e.children.length===1&&a!==Pu){let n=e.children[0],r=n.type,i=r===5||r===8;i&&sp(n,t)===0&&(l|=1),c=i||r===2?n:e.children}else c=e.children}d&&d.length&&(u=fm(d));let g=e.codegenNode=Sd(t,a,s,c,l===0?void 0:l,u,f,!!h,!1,i,e.loc);p&&=l===0||l===32,p&&(g.needsPatch=!0),m&&(g.isBlockRequired=!0)};function sm(e,t,n=!1){let{tag:r}=e,i=pm(r),a=af(e,`is`,!1,!0);if(a){if(i||Hd(`COMPILER_IS_ON_ELEMENT`,t)){let e;if(a.type===6?e=a.value&&W(a.value.content,!0):(e=a.exp,e||=W(`is`,!1,a.arg.loc)),e)return G(t.helper(qu),[e])}else a.type===6&&a.value.content.startsWith(`vue:`)&&(r=a.value.content.slice(4))}let o=qd(r)||t.isBuiltInComponent(r);return o?(n||t.helper(o),o):(t.helper(Ku),t.components.add(r),vf(r,`component`))}function cm(e,t,n=e.props,r,i,a=!1){let{tag:s,loc:c,children:l}=e,u=[],d=[],f=[],p=l.length>0,m=!1,h=!1,g=0,_=!1,v=!1,b=!1,x=!1,S=!1,C=!1,w=[],T=e=>{u.length&&(d.push(wd(lm(u),c)),u=[]),e&&d.push(e)},E=()=>{t.scopes.vFor>0&&u.push(U(W(`ref_for`,!0),W(`true`)))},te=({key:e,value:n})=>{if(Kd(e)){let a=e.content,s=o(a);if(s&&(!r||i)&&a.toLowerCase()!==`onclick`&&a!==`onUpdate:modelValue`&&!D(a)&&(x=!0),s&&D(a)&&(C=!0),a===`ref`&&(_=!0),s&&n.type===14&&(n=n.arguments[0]),n.type===20||(n.type===4||n.type===8)&&sp(n,t)>0)return;a===`class`?v=!0:a===`style`?b=!0:a!==`ref`&&a!==`key`&&!w.includes(a)&&w.push(a),r&&(a===`class`||a===`style`)&&!w.includes(a)&&w.push(a)}else S=!0};for(let i=0;ie.content===`prop`)&&(g|=32);let C=t.directiveTransforms[n];if(C){let{props:n,needRuntime:r}=C(o,e,t);!a&&n.forEach(te),x&&i&&!Kd(i)?T(wd(n,c)):u.push(...n),r&&(f.push(o),y(r)&&am.set(o,r))}else ee(n)||(f.push(o),p&&(m=!0,h=!0))}}let O;d.length?(T(),O=d.length>1?G(t.helper(td),d,c):d[0]):u.length&&(O=wd(lm(u),c)),S?g|=16:(v&&!r&&(g|=2),b&&!r&&(g|=4),w.length&&(g|=8),x&&(g|=32));let ne=(g===0||g===32)&&(_||C||f.length>0);if(!m&&ne&&(g|=512),!t.inSSR&&O)switch(O.type){case 15:let e=-1,n=-1,r=!1;for(let t=0;tU(e,t)),i))}return Cd(n,e.loc)}function fm(e){let t=`[`;for(let n=0,r=e.length;n{if(ff(e)){let{children:n,loc:r}=e,{slotName:i,slotProps:a}=hm(e,t),o=[t.prefixIdentifiers?`_ctx.$slots`:`$slots`,i,`{}`,`undefined`,`true`],s=2;a&&(o[2]=a,s=3),n.length&&(o[3]=Ed([],n,!1,!1,r),s=4),t.scopeId&&!t.slotted&&(s=5),o.splice(s),e.codegenNode=G(t.helper(Qu),o,r)}};function hm(e,t){let n=`"default"`,r,i=[];for(let t=0;t0){let{props:n,directives:a}=cm(e,t,i,!1,!1);r=n,a.length&&t.onError(K(36,a[0].loc))}return{slotName:n,slotProps:r}}var gm=(e,t,n,r)=>{let{loc:i,modifiers:a,arg:o}=e;!e.exp&&!a.length&&n.onError(K(35,i));let s;if(o.type===4){if(o.isStatic){let e=o.content;e.startsWith(`vue:`)&&(e=`vnode-${e.slice(4)}`),s=W(t.tagType!==0||e.startsWith(`vnode`)||!/[A-Z]/.test(e)?j(k(e)):`on:${e}`,!0,o.loc)}else s=Td([`${n.helperString(ld)}(`,o,`)`])}else s=o,s.children.unshift(`${n.helperString(ld)}(`),s.children.push(`)`);let c=e.exp;c&&!c.content.trim()&&(c=void 0);let l=n.cacheHandlers&&!c&&!n.inVOnce;if(c){let e=ef(c),t=!(e||nf(c)),n=c.content.includes(`;`);(t||l&&e)&&(c=Td([`${t?`$event`:`(...args)`} => ${n?`{`:`(`}`,c,n?`}`:`)`]))}let u={props:[U(s,c||W(`() => {}`,!1,i))]};return r&&(u=r(u)),l&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach(e=>e.key.isHandlerKey=!0),u},_m=(e,t,n)=>{let{modifiers:r,loc:i}=e,a=e.arg,{exp:o}=e;return o&&o.type===4&&!o.content.trim()&&(o=void 0),a.type===4?a.isStatic||(a.content=a.content?`${a.content} || ""`:`""`):(a.children.unshift(`(`),a.children.push(`) || ""`)),r.some(e=>e.content===`camel`)&&(a.type===4?a.content=a.isStatic?k(a.content):`${n.helperString(sd)}(${a.content})`:(a.children.unshift(`${n.helperString(sd)}(`),a.children.push(`)`))),n.inSSR||(r.some(e=>e.content===`prop`)&&vm(a,`.`),r.some(e=>e.content===`attr`)&&vm(a,`^`)),{props:[U(a,o)]}},vm=(e,t)=>{e.type===4?e.content=e.isStatic?t+e.content:`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(`)`))},ym=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{let n=e.children,r,i=!1;for(let e=0;ee.type===7&&!t.directiveTransforms[e.name])&&e.tag!==`template`)))for(let e=0;e{if(e.type===1&&rf(e,`once`,!0))return bm.has(e)||t.inVOnce||t.inSSR?void 0:(bm.add(e),t.inVOnce=!0,t.helper(ud),()=>{t.inVOnce=!1;let e=t.currentNode;e.codegenNode&&=t.cache(e.codegenNode,!0,!0)})},Sm=(e,t,n)=>{let{exp:r,arg:i}=e;if(!r)return n.onError(K(41,e.loc)),Cm();let a=r.loc.source.trim(),o=r.type===4?r.content:a,s=n.bindingMetadata[a];if(s===`props`||s===`props-aliased`)return n.onError(K(44,r.loc)),Cm();if(s===`literal-const`||s===`setup-const`)return n.onError(K(45,r.loc)),Cm();if(!o.trim()||!ef(r))return n.onError(K(42,r.loc)),Cm();let c=i||W(`modelValue`,!0),l=i?Kd(i)?`onUpdate:${k(i.content)}`:Td([`"onUpdate:" + `,i]):`onUpdate:modelValue`,u;u=Td([`${n.isTS?`($event: any)`:`$event`} => ((`,r,`) = $event)`]);let d=[U(c,e.exp),U(l,u)];if(e.modifiers.length&&t.tagType===1){let t=e.modifiers.map(e=>e.content).map(e=>(Yd(e)?e:JSON.stringify(e))+`: true`).join(`, `),n=i?Kd(i)?`${i.content}Modifiers`:Td([i,` + "Modifiers"`]):`modelModifiers`;d.push(U(n,W(`{ ${t} }`,!1,e.loc,2)))}return Cm(d)};function Cm(e=[]){return{props:e}}var wm=/[\w).+\-_$\]]/,Tm=(e,t)=>{Hd(`COMPILER_FILTERS`,t)&&(e.type===5?Em(e.content,t):e.type===1&&e.props.forEach(e=>{e.type===7&&e.name!==`for`&&e.exp&&Em(e.exp,t)}))};function Em(e,t){if(e.type===4)Dm(e,t);else for(let n=0;n=0&&(t=n.charAt(e),t===` `);e--);(!t||!wm.test(t))&&(o=!0)}}m===void 0?m=n.slice(0,p).trim():u!==0&&g();function g(){h.push(n.slice(u,p).trim()),u=p+1}if(h.length){for(p=0;p{if(e.type===1){let n=rf(e,`memo`);return!n||km.has(e)||t.inSSR?void 0:(km.add(e),()=>{let r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&Md(r,t),e.codegenNode=G(t.helper(gd),[n.exp,Ed(void 0,r),`_cache`,String(t.cached.length)]),t.cached.push(null))})}},jm=(e,t)=>{if(e.type===1){for(let n of e.props)if(n.type===7&&n.name===`bind`&&(!n.exp||n.exp.type===4&&!n.exp.content.trim())&&n.arg){let e=n.arg;if(e.type!==4||!e.isStatic)t.onError(K(53,e.loc)),n.exp=W(``,!0,e.loc);else{let t=k(e.content);(Xd.test(t[0])||t[0]===`-`)&&(n.exp=W(t,!1,e.loc))}}}};function Mm(e){return[[jm,xm,Hp,Am,Jp,Tm,mm,om,em,ym],{on:gm,bind:_m,model:Sm}]}function Nm(e,t={}){let n=t.onError||Wd,r=t.mode===`module`;t.prefixIdentifiers===!0?n(K(48)):r&&n(K(49)),t.cacheHandlers&&n(K(50)),t.scopeId&&!r&&n(K(51));let i=c({},t,{prefixIdentifiers:!1}),a=v(e)?rp(e,i):e,[o,s]=Mm();return pp(a,c({},i,{nodeTransforms:[...o,...t.nodeTransforms||[]],directiveTransforms:c({},s,t.directiveTransforms||{})})),xp(a,i)}var Pm=()=>({props:[]}),Fm=Symbol(``),Im=Symbol(``),Lm=Symbol(``),Rm=Symbol(``),zm=Symbol(``),Bm=Symbol(``),Vm=Symbol(``),Hm=Symbol(``),Um=Symbol(``),Wm=Symbol(``);yd({[Fm]:`vModelRadio`,[Im]:`vModelCheckbox`,[Lm]:`vModelText`,[Rm]:`vModelSelect`,[zm]:`vModelDynamic`,[Bm]:`withModifiers`,[Vm]:`withKeys`,[Hm]:`vShow`,[Um]:`Transition`,[Wm]:`TransitionGroup`});var Gm;function Km(e,t=!1){return Gm||=document.createElement(`div`),t?(Gm.innerHTML=`
`,Gm.children[0].getAttribute(`foo`)):(Gm.innerHTML=e,Gm.textContent)}var qm={parseMode:`html`,isVoidTag:Ee,isNativeTag:e=>Ce(e)||we(e)||Te(e),isPreTag:e=>e===`pre`,isIgnoreNewlineTag:e=>e===`pre`||e===`textarea`,decodeEntities:Km,isBuiltInComponent:e=>{if(e===`Transition`||e===`transition`)return Um;if(e===`TransitionGroup`||e===`transition-group`)return Wm},getNamespace(e,t,n){let r=t?t.ns:n;if(t&&r===2){if(t.tag===`annotation-xml`){if(e===`svg`)return 1;t.props.some(e=>e.type===6&&e.name===`encoding`&&e.value!=null&&(e.value.content===`text/html`||e.value.content===`application/xhtml+xml`))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!==`mglyph`&&e!==`malignmark`&&(r=0)}else t&&r===1&&(t.tag===`foreignObject`||t.tag===`desc`||t.tag===`title`)&&(r=0);if(r===0){if(e===`svg`)return 1;if(e===`math`)return 2}return r}},Jm=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name===`style`&&t.value&&(e.props[n]={type:7,name:`bind`,arg:W(`style`,!0,t.loc),exp:Ym(t.value.content,t.loc),modifiers:[],loc:t.loc})})},Ym=(e,t)=>{let n=ge(e);return W(JSON.stringify(n),!1,t,3)};function Xm(e,t){return K(e,t,void 0)}var Zm=(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(Xm(54,i)),t.children.length&&(n.onError(Xm(55,i)),t.children.length=0),{props:[U(W(`innerHTML`,!0,i),r||W(``,!0))]}},Qm=(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(Xm(56,i)),t.children.length&&(n.onError(Xm(57,i)),t.children.length=0),{props:[U(W(`textContent`,!0),r?sp(r,n)>0?r:G(n.helperString(ed),[r],i):W(``,!0))]}},$m=(e,t,n)=>{let r=Sm(e,t,n);if(!r.props.length||t.tagType===1)return r;e.arg&&n.onError(Xm(59,e.arg.loc));let{tag:i}=t,a=n.isCustomElement(i);if(i===`input`||i===`textarea`||i===`select`||a){let o=Lm,s=!1;if(i===`input`||a){let r=af(t,`type`);if(r){if(r.type===7)o=zm;else if(r.value)switch(r.value.content){case`radio`:o=Fm;break;case`checkbox`:o=Im;break;case`file`:s=!0,n.onError(Xm(60,e.loc))}}else sf(t)&&(o=zm)}else i===`select`&&(o=Rm);s||(r.needRuntime=n.helper(o))}else n.onError(Xm(58,e.loc));return r.props=r.props.filter(e=>e.key.type!==4||e.key.content!==`modelValue`),r},eh=t(`passive,once,capture`),th=t(`stop,prevent,self,ctrl,shift,alt,meta,exact,middle`),nh=t(`left,right`),rh=t(`onkeyup,onkeydown,onkeypress`),ih=(e,t,n,r)=>{let i=[],a=[],o=[];for(let s=0;sKd(e)&&e.content.toLowerCase()===`onclick`?W(t,!0):e.type===4?e:Td([`(`,e,`) === "onClick" ? "${t}" : (`,e,`)`]),oh=(e,t,n)=>gm(e,t,n,t=>{let{modifiers:r}=e;if(!r.length)return t;let{key:i,value:a}=t.props[0],{keyModifiers:o,nonKeyModifiers:s,eventOptionModifiers:c}=ih(i,r,n,e.loc);if(s.includes(`right`)&&(i=ah(i,`onContextmenu`)),s.includes(`middle`)&&(i=ah(i,`onMouseup`)),s.length&&(a=G(n.helper(Bm),[a,JSON.stringify(s)])),o.length&&(!Kd(i)||rh(i.content.toLowerCase()))&&(a=G(n.helper(Vm),[a,JSON.stringify(o)])),c.length){let e=c.map(re).join(``);i=Kd(i)?W(`${i.content}${e}`,!0):Td([`(`,i,`) + "${e}"`])}return{props:[U(i,a)]}}),sh=(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(Xm(62,i)),{props:[],needRuntime:n.helper(Hm)}},ch=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag===`script`||e.tag===`style`)&&t.removeNode()},lh=[Jm],uh={cloak:Pm,html:Zm,text:Qm,model:$m,on:oh,show:sh};function dh(e,t={}){return Nm(e,c({},qm,t,{nodeTransforms:[ch,...lh,...t.nodeTransforms||[]],directiveTransforms:c({},uh,t.directiveTransforms||{}),transformHoist:null}))}var fh=Object.create(null);function ph(e,t){if(!v(e)){if(e.nodeType)e=e.innerHTML;else return i}let n=ue(e,t),r=fh[n];if(r)return r;if(e[0]===`#`){let t=document.querySelector(e);e=t?t.innerHTML:``}let a=c({hoistStatic:!0,onError:void 0,onWarn:i},t);!a.isCustomElement&&typeof customElements<`u`&&(a.isCustomElement=e=>!!customElements.get(e));let{code:o}=dh(e,a),s=Function(`Vue`,o)(Sc);return s._rc=!0,fh[n]=s}rc(ph);var mh=[`top`,`right`,`bottom`,`left`],hh=[`start`,`end`],gh=mh.reduce((e,t)=>e.concat(t,t+`-`+hh[0],t+`-`+hh[1]),[]),_h=Math.min,vh=Math.max,yh={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function bh(e,t,n){return vh(e,_h(t,n))}function xh(e,t){return typeof e==`function`?e(t):e}function Sh(e){return e.split(`-`)[0]}function Ch(e){return e.split(`-`)[1]}function wh(e){return e===`x`?`y`:`x`}function Th(e){return e===`y`?`height`:`width`}function Eh(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Dh(e){return wh(Eh(e))}function Oh(e,t,n){n===void 0&&(n=!1);let r=Ch(e),i=Dh(e),a=Th(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Lh(o)),[o,Lh(o)]}function kh(e){let t=Lh(e);return[Ah(e),t,Ah(t)]}function Ah(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var jh=[`left`,`right`],Mh=[`right`,`left`],Nh=[`top`,`bottom`],Ph=[`bottom`,`top`];function Fh(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Mh:jh:t?jh:Mh;case`left`:case`right`:return t?Nh:Ph;default:return[]}}function Ih(e,t,n,r){let i=Ch(e),a=Fh(Sh(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Ah)))),a}function Lh(e){let t=Sh(e);return yh[t]+e.slice(t.length)}function Rh(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function zh(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Rh(e)}function Bh(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Vh(e,t,n){let{reference:r,floating:i}=e,a=Eh(t),o=Dh(t),s=Th(o),c=Sh(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=Ch(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Hh(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=xh(t,e),p=zh(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Bh(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Bh(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Uh=50,Wh=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Hh},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Vh(l,r,c),f=r,p=0,m={};for(let n=0;n({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=xh(e,t)||{};if(l==null)return{};let d=zh(u),f={x:n,y:r},p=Dh(i),m=Th(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=_h(d[_],T),D=_h(d[v],T),ee=C-h[m]-D,te=C/2-h[m]/2+w,O=bh(E,te,ee),k=!c.arrow&&Ch(i)!=null&&te!==O&&a.reference[m]/2-(teCh(t)===e),...n.filter(t=>Ch(t)!==e)]:n.filter(e=>Sh(e)===e)).filter(n=>!e||Ch(n)===e||(t?Ah(n)!==n:!1))}var qh=function(e){return e===void 0&&(e={}),{name:`autoPlacement`,options:e,async fn(t){let{rects:n,middlewareData:r,placement:i,platform:a,elements:o}=t,{crossAxis:s=!1,alignment:c,allowedPlacements:l=gh,autoAlignment:u=!0,...d}=xh(e,t),f=c!==void 0||l===gh?Kh(c||null,u,l):l,p=r.autoPlacement?.index||0,m=f[p];if(m==null)return{};if(i!==m)return{reset:{placement:f[0]}};let h=await a.detectOverflow(t,d),g=Oh(m,n,await(a.isRTL==null?void 0:a.isRTL(o.floating))),_=[h[Sh(m)],h[g[0]],h[g[1]]],v=[...r.autoPlacement?.overflows||[],{placement:m,overflows:_}],y=f[p+1];if(y)return{data:{index:p+1,overflows:v},reset:{placement:y}};let b=v.map(e=>{let t=Ch(e.placement);return[e.placement,t&&s?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),x=b.filter(e=>e[2].slice(0,Ch(e[0])?2:3).every(e=>e<=0))[0]?.[0]||b[0][0];return x===i?{}:{data:{index:p+1,overflows:v},reset:{placement:x}}}}},Jh=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=xh(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Sh(r),_=Eh(o),v=Sh(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Lh(o)]:kh(o)),x=p!==`none`;!d&&x&&b.push(...Ih(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Oh(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===Eh(t)||T.every(e=>Eh(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Eh(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}},Yh=new Set([`left`,`top`]);async function Xh(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Sh(n),s=Ch(n),c=Eh(n)===`y`,l=Yh.has(o)?-1:1,u=a&&c?-1:1,d=xh(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Zh=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Xh(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Qh=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=xh(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Eh(i),p=wh(f),m=u[p],h=u[f],g=(e,t)=>bh(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},$h=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=xh(e,t),c=await i.detectOverflow(t,s),l=Sh(n),u=Ch(n),d=Eh(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=_h(p-c[m],g),y=_h(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*vh(c.left,c.right):S=p-2*vh(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function eg(e){return e.ownerDocument?.defaultView||window}function tg(e){return eg(e).getComputedStyle(e)}var ng=Math.min,rg=Math.max,ig=Math.round;function ag(e){let t=tg(e),n=parseFloat(t.width),r=parseFloat(t.height),i=e.offsetWidth,a=e.offsetHeight,o=ig(n)!==i||ig(r)!==a;return o&&(n=i,r=a),{width:n,height:r,fallback:o}}function og(e){return dg(e)?(e.nodeName||``).toLowerCase():``}var sg;function cg(){if(sg)return sg;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(sg=e.brands.map((e=>e.brand+`/`+e.version)).join(` `),sg):navigator.userAgent}function lg(e){return e instanceof eg(e).HTMLElement}function ug(e){return e instanceof eg(e).Element}function dg(e){return e instanceof eg(e).Node}function fg(e){return typeof ShadowRoot>`u`?!1:e instanceof eg(e).ShadowRoot||e instanceof ShadowRoot}function pg(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=tg(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&![`inline`,`contents`].includes(i)}function mg(e){return[`table`,`td`,`th`].includes(og(e))}function hg(e){let t=/firefox/i.test(cg()),n=tg(e),r=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!==`none`||n.perspective!==`none`||!!r&&r!==`none`||t&&n.willChange===`filter`||t&&!!n.filter&&n.filter!==`none`||[`transform`,`perspective`].some((e=>n.willChange.includes(e)))||[`paint`,`layout`,`strict`,`content`].some((e=>{let t=n.contain;return t!=null&&t.includes(e)}))}function gg(){return!/^((?!chrome|android).)*safari/i.test(cg())}function _g(e){return[`html`,`body`,`#document`].includes(og(e))}function vg(e){return ug(e)?e:e.contextElement}var yg={x:1,y:1};function bg(e){let t=vg(e);if(!lg(t))return yg;let n=t.getBoundingClientRect(),{width:r,height:i,fallback:a}=ag(t),o=(a?ig(n.width):n.width)/r,s=(a?ig(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}function xg(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=vg(e),o=yg;t&&(r?ug(r)&&(o=bg(r)):o=bg(e));let s=a?eg(a):window,c=!gg()&&n,l=(i.left+(c&&s.visualViewport?.offsetLeft||0))/o.x,u=(i.top+(c&&s.visualViewport?.offsetTop||0))/o.y,d=i.width/o.x,f=i.height/o.y;if(a){let e=eg(a),t=r&&ug(r)?eg(r):r,n=e.frameElement;for(;n&&r&&t!==e;){let e=bg(n),t=n.getBoundingClientRect(),r=getComputedStyle(n);t.x+=(n.clientLeft+parseFloat(r.paddingLeft))*e.x,t.y+=(n.clientTop+parseFloat(r.paddingTop))*e.y,l*=e.x,u*=e.y,d*=e.x,f*=e.y,l+=t.x,u+=t.y,n=eg(n).frameElement}}return{width:d,height:f,top:u,right:l+d,bottom:u+f,left:l,x:l,y:u}}function Sg(e){return((dg(e)?e.ownerDocument:e.document)||window.document).documentElement}function Cg(e){return ug(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function wg(e){return xg(Sg(e)).left+Cg(e).scrollLeft}function Tg(e){if(og(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||fg(e)&&e.host||Sg(e);return fg(t)?t.host:t}function Eg(e){let t=Tg(e);return _g(t)?t.ownerDocument.body:lg(t)&&pg(t)?t:Eg(t)}function Dg(e,t){t===void 0&&(t=[]);let n=Eg(e),r=n===e.ownerDocument?.body,i=eg(n);return r?t.concat(i,i.visualViewport||[],pg(n)?n:[]):t.concat(n,Dg(n))}function Og(e,t,n){return t===`viewport`?Bh(function(e,t){let n=eg(e),r=Sg(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=gg();(e||!e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s,y:c}}(e,n)):ug(t)?Bh(function(e,t){let n=xg(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=lg(e)?bg(e):{x:1,y:1};return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}(t,n)):Bh(function(e){let t=Sg(e),n=Cg(e),r=e.ownerDocument.body,i=rg(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=rg(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+wg(e),s=-n.scrollTop;return tg(r).direction===`rtl`&&(o+=rg(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}(Sg(e)))}function kg(e){return lg(e)&&tg(e).position!==`fixed`?e.offsetParent:null}function Ag(e){let t=eg(e),n=kg(e);for(;n&&mg(n)&&tg(n).position===`static`;)n=kg(n);return n&&(og(n)===`html`||og(n)===`body`&&tg(n).position===`static`&&!hg(n))?t:n||function(e){let t=Tg(e);for(;lg(t)&&!_g(t);){if(hg(t))return t;t=Tg(t)}return null}(e)||t}function jg(e,t,n){let r=lg(t),i=Sg(t),a=xg(e,!0,n===`fixed`,t),o={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(r||!r&&n!==`fixed`){if((og(t)!==`body`||pg(i))&&(o=Cg(t)),lg(t)){let e=xg(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=wg(i))}return{x:a.left+o.scrollLeft-s.x,y:a.top+o.scrollTop-s.y,width:a.width,height:a.height}}var Mg={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?function(e,t){let n=t.get(e);if(n)return n;let r=Dg(e).filter((e=>ug(e)&&og(e)!==`body`)),i=null,a=tg(e).position===`fixed`,o=a?Tg(e):e;for(;ug(o)&&!_g(o);){let e=tg(o),t=hg(o);(a?t||i:t||e.position!==`static`||!i||![`absolute`,`fixed`].includes(i.position))?i=e:r=r.filter((e=>e!==o)),o=Tg(o)}return t.set(e,r),r}(t,this._c):[].concat(n),r],o=a[0],s=a.reduce(((e,n)=>{let r=Og(t,n,i);return e.top=rg(r.top,e.top),e.right=ng(r.right,e.right),e.bottom=ng(r.bottom,e.bottom),e.left=rg(r.left,e.left),e}),Og(t,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e,i=lg(n),a=Sg(n);if(n===a)return t;let o={scrollLeft:0,scrollTop:0},s={x:1,y:1},c={x:0,y:0};if((i||!i&&r!==`fixed`)&&((og(n)!==`body`||pg(a))&&(o=Cg(n)),lg(n))){let e=xg(n);s=bg(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-o.scrollLeft*s.x+c.x,y:t.y*s.y-o.scrollTop*s.y+c.y}},isElement:ug,getDimensions:function(e){return lg(e)?ag(e):e.getBoundingClientRect()},getOffsetParent:Ag,getDocumentElement:Sg,getScale:bg,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e,i=this.getOffsetParent||Ag,a=this.getDimensions;return{reference:jg(t,await i(n),r),floating:{x:0,y:0,...await a(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>tg(e).direction===`rtl`},Ng=(e,t,n)=>{let r=new Map,i={platform:Mg,...n},a={...i.platform,_c:r};return Wh(e,t,{...i,platform:a})};function Pg(e,t){for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]==`object`&&e[n]?Pg(e[n],t[n]):e[n]=t[n])}var Fg={disabled:!1,distance:5,skidding:0,container:`body`,boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:`absolute`,preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:`top`,triggers:[`hover`,`focus`,`touch`],hideTriggers:e=>[...e,`click`],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:`...`},dropdown:{placement:`bottom`,triggers:[`click`],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:`dropdown`,triggers:[`hover`,`focus`],popperTriggers:[`hover`],delay:{show:0,hide:400}}}};function Ig(e,t){let n=Fg.themes[e]||{},r;do r=n[t],typeof r>`u`?n.$extend?n=Fg.themes[n.$extend]||{}:(n=null,r=Fg[t]):n=null;while(n);return r}function Lg(e){let t=[e],n=Fg.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=Fg.themes[n.$extend]||{}):n=null;while(n);return t.map(e=>`v-popper--theme-${e}`)}function Rg(e){let t=[e],n=Fg.themes[e]||{};do n.$extend?(t.push(n.$extend),n=Fg.themes[n.$extend]||{}):n=null;while(n);return t}var zg=!1;if(typeof window<`u`){zg=!1;try{let e=Object.defineProperty({},"passive",{get(){zg=!0}});window.addEventListener(`test`,null,e)}catch{}}var Bg=!1;typeof window<`u`&&typeof navigator<`u`&&(Bg=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);var Vg=[`auto`,`top`,`bottom`,`left`,`right`].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Hg={hover:`mouseenter`,focus:`focus`,click:`click`,touch:`touchstart`,pointer:`pointerdown`},Ug={hover:`mouseleave`,focus:`blur`,click:`click`,touch:`touchend`,pointer:`pointerup`};function Wg(e,t){let n=e.indexOf(t);n!==-1&&e.splice(n,1)}function Gg(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}var Kg=[],qg=null,Jg={};function Yg(e){let t=Jg[e];return t||=Jg[e]=[],t}var Xg=function(){};typeof window<`u`&&(Xg=window.Element);function $(e){return function(t){return Ig(t.theme,e)}}var Zg=`__floating-vue__popper`,Qg=()=>di({name:`VPopper`,provide(){return{[Zg]:{parentPopper:this}}},inject:{[Zg]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:$(`disabled`)},positioningDisabled:{type:Boolean,default:$(`positioningDisabled`)},placement:{type:String,default:$(`placement`),validator:e=>Vg.includes(e)},delay:{type:[String,Number,Object],default:$(`delay`)},distance:{type:[Number,String],default:$(`distance`)},skidding:{type:[Number,String],default:$(`skidding`)},triggers:{type:Array,default:$(`triggers`)},showTriggers:{type:[Array,Function],default:$(`showTriggers`)},hideTriggers:{type:[Array,Function],default:$(`hideTriggers`)},popperTriggers:{type:Array,default:$(`popperTriggers`)},popperShowTriggers:{type:[Array,Function],default:$(`popperShowTriggers`)},popperHideTriggers:{type:[Array,Function],default:$(`popperHideTriggers`)},container:{type:[String,Object,Xg,Boolean],default:$(`container`)},boundary:{type:[String,Xg],default:$(`boundary`)},strategy:{type:String,validator:e=>[`absolute`,`fixed`].includes(e),default:$(`strategy`)},autoHide:{type:[Boolean,Function],default:$(`autoHide`)},handleResize:{type:Boolean,default:$(`handleResize`)},instantMove:{type:Boolean,default:$(`instantMove`)},eagerMount:{type:Boolean,default:$(`eagerMount`)},popperClass:{type:[String,Array,Object],default:$(`popperClass`)},computeTransformOrigin:{type:Boolean,default:$(`computeTransformOrigin`)},autoMinSize:{type:Boolean,default:$(`autoMinSize`)},autoSize:{type:[Boolean,String],default:$(`autoSize`)},autoMaxSize:{type:Boolean,default:$(`autoMaxSize`)},autoBoundaryMaxSize:{type:Boolean,default:$(`autoBoundaryMaxSize`)},preventOverflow:{type:Boolean,default:$(`preventOverflow`)},overflowPadding:{type:[Number,String],default:$(`overflowPadding`)},arrowPadding:{type:[Number,String],default:$(`arrowPadding`)},arrowOverflow:{type:Boolean,default:$(`arrowOverflow`)},flip:{type:Boolean,default:$(`flip`)},shift:{type:Boolean,default:$(`shift`)},shiftCrossAxis:{type:Boolean,default:$(`shiftCrossAxis`)},noAutoFocus:{type:Boolean,default:$(`noAutoFocus`)},disposeTimeout:{type:Number,default:$(`disposeTimeout`)}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:``,strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join(`_`)}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId==null?this.randomId:this.ariaId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide==`function`?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){return this[Zg]?.parentPopper},hasPopperShowTriggerHover(){return this.popperTriggers?.includes(`hover`)||this.popperShowTriggers?.includes(`hover`)}},watch:{shown:`$_autoShowHide`,disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:`$_refreshListeners`,deep:!0},positioningDisabled:`$_refreshListeners`,...[`placement`,`distance`,`skidding`,`boundary`,`strategy`,`overflowPadding`,`arrowPadding`,`preventOverflow`,`shift`,`shiftCrossAxis`,`flip`].reduce((e,t)=>(e[t]=`$_computePosition`,e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:n=!1}={}){var r;(r=this.parentPopper)!=null&&r.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(n||!this.disabled)&&(this.parentPopper?.lockedChild===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit(`show`),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit(`update:shown`,!0))},hide({event:e=null,skipDelay:t=!1}={}){if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}this.parentPopper?.lockedChild===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit(`hide`),this.$emit(`update:shown`,!1)}},init(){this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=this.referenceNode?.call(this)??this.$el,this.$_targetNodes=this.targetNodes().filter(e=>e.nodeType===e.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(`.v-popper__inner`),this.$_arrowNode=this.$_popperNode.querySelector(`.v-popper__arrow-container`),this.$_swapTargetAttrs(`title`,`data-original-title`),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs(`data-original-title`,`title`))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit(`resize`))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;let e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(Zh({mainAxis:this.distance,crossAxis:this.skidding}));let t=this.placement.startsWith(`auto`);if(t?e.middleware.push(qh({alignment:this.placement.split(`-`)[1]??``})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(Qh({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(Jh({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(Gh({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:`arrowOverflow`,fn:({placement:e,rects:t,middlewareData:n})=>{let r,{centerOffset:i}=n.arrow;return r=e.startsWith(`top`)||e.startsWith(`bottom`)?Math.abs(i)>t.reference.width/2:Math.abs(i)>t.reference.height/2,{data:{overflow:r}}}}),this.autoMinSize||this.autoSize){let t=this.autoSize?this.autoSize:this.autoMinSize?`min`:null;e.middleware.push({name:`autoSize`,fn:({rects:e,placement:n,middlewareData:r})=>{var i;if((i=r.autoSize)!=null&&i.skip)return{};let a,o;return n.startsWith(`top`)||n.startsWith(`bottom`)?a=e.reference.width:o=e.reference.height,this.$_innerNode.style[t===`min`?`minWidth`:t===`max`?`maxWidth`:`width`]=a==null?null:`${a}px`,this.$_innerNode.style[t===`min`?`minHeight`:t===`max`?`maxHeight`:`height`]=o==null?null:`${o}px`,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push($h({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:e,availableHeight:t})=>{this.$_innerNode.style.maxWidth=e==null?null:`${e}px`,this.$_innerNode.style.maxHeight=t==null?null:`${t}px`}})));let n=await Ng(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:{...n.middlewareData.arrow,...n.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),qg&&this.instantMove&&qg.instantMove&&qg!==this.parentPopper){qg.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay(`show`))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(qg=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay(`hide`))},$_computeDelay(e){let t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await Gg(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Dg(this.$_referenceNode),...Dg(this.$_popperNode)],`scroll`,()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){let e=this.$_referenceNode.getBoundingClientRect(),t=this.$_popperNode.querySelector(`.v-popper__wrapper`),n=t.parentNode.getBoundingClientRect(),r=e.x+e.width/2-(n.left+t.offsetLeft),i=e.y+e.height/2-(n.top+t.offsetTop);this.result.transformOrigin=`${r}px ${i}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":``});let e=this.showGroup;if(e){let t;for(let n=0;n0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,Wg(Kg,this),Kg.length===0&&document.body.classList.remove(`v-popper--some-open`);for(let e of Rg(this.theme)){let t=Yg(e);Wg(t,this),t.length===0&&document.body.classList.remove(`v-popper--some-open--${e}`)}qg===this&&(qg=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);let t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners(`scroll`),this.$emit(`apply-hide`),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Gg(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e==`string`?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw Error(`No container for popover: `+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){let e=e=>{this.isShown&&!this.$_hideInProgress||(e.usedByTooltip=!0,!this.$_preventShow&&this.show({event:e}))};this.$_registerTriggerListeners(this.$_targetNodes,Hg,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Hg,this.popperTriggers,this.popperShowTriggers,e);let t=e=>{e.usedByTooltip||this.hide({event:e})};this.$_registerTriggerListeners(this.$_targetNodes,Ug,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Ug,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(e=>e.addEventListener(t,n,zg?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,r,i){let a=n;r!=null&&(a=typeof r==`function`?r(a):r),a.forEach(n=>{let r=t[n];r&&this.$_registerEventListeners(e,r,i)})},$_removeEventListeners(e){let t=[];this.$_events.forEach(n=>{let{targetNodes:r,eventType:i,handler:a}=n;!e||e===i?r.forEach(e=>e.removeEventListener(i,a)):t.push(n)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit(`close-directive`):this.$emit(`auto-hide`),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(let n of this.$_targetNodes){let r=n.getAttribute(e);r&&(n.removeAttribute(e),n.setAttribute(t,r))}},$_applyAttrsToTarget(e){for(let t of this.$_targetNodes)for(let n in e){let r=e[n];r==null?t.removeAttribute(n):t.setAttribute(n,r)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){let e=this.$_referenceNode.getBoundingClientRect();if(s_>=e.left&&s_<=e.right&&c_>=e.top&&c_<=e.bottom){let e=this.$_popperNode.getBoundingClientRect(),t=s_-a_,n=c_-o_,r=e.left+e.width/2-a_+(e.top+e.height/2)-o_+e.width+e.height,i=a_+t*r,a=o_+n*r;return l_(a_,o_,i,a,e.left,e.top,e.left,e.bottom)||l_(a_,o_,i,a,e.left,e.top,e.right,e.top)||l_(a_,o_,i,a,e.right,e.top,e.right,e.bottom)||l_(a_,o_,i,a,e.left,e.bottom,e.right,e.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<`u`&&typeof window<`u`){if(Bg){let e=!zg||{passive:!0,capture:!0};document.addEventListener(`touchstart`,e=>$g(e,!0),e),document.addEventListener(`touchend`,e=>e_(e,!0),e)}else window.addEventListener(`mousedown`,e=>$g(e,!1),!0),window.addEventListener(`click`,e=>e_(e,!1),!0);window.addEventListener(`resize`,i_)}function $g(e,t){if(Fg.autoHideOnMousedown)t_(e,t);else for(let t=0;t=0;r--){let i=Kg[r];try{let r=i.containsGlobalTarget=i.mouseDownContains||i.popperNode().contains(e.target);i.pendingHide=!1,requestAnimationFrame(()=>{if(i.pendingHide=!1,!n[i.randomId]&&n_(i,r,e)){if(i.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&r){let e=i.parentPopper;for(;e;)n[e.randomId]=!0,e=e.parentPopper;return}let a=i.parentPopper;for(;a&&n_(a,a.containsGlobalTarget,e);)a.$_handleGlobalClose(e,t),a=a.parentPopper}})}catch{}}}function n_(e,t,n){return n.closeAllPopover||n.closePopover&&t||r_(e,n)&&!t}function r_(e,t){if(typeof e.autoHide==`function`){let n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function i_(){for(let e=0;e{a_=s_,o_=c_,s_=e.clientX,c_=e.clientY},zg?{passive:!0}:void 0);function l_(e,t,n,r,i,a,o,s){let c=((o-i)*(t-a)-(s-a)*(e-i))/((s-a)*(n-e)-(o-i)*(r-t)),l=((n-e)*(t-a)-(r-t)*(e-i))/((s-a)*(n-e)-(o-i)*(r-t));return c>=0&&c<=1&&l>=0&&l<=1}var u_={extends:Qg()},d_=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n};function f_(e,t,n,r,i,a){return vs(),Cs(`div`,{ref:`reference`,class:_e([`v-popper`,{"v-popper--shown":e.slotData.isShown}])},[Ca(e.$slots,`default`,ve(Ms(e.slotData)))],2)}var p_=d_(u_,[[`render`,f_]]);function m_(){var e=window.navigator.userAgent,t=e.indexOf(`MSIE `);if(t>0)return parseInt(e.substring(t+5,e.indexOf(`.`,t)),10);if(e.indexOf(`Trident/`)>0){var n=e.indexOf(`rv:`);return parseInt(e.substring(n+3,e.indexOf(`.`,n)),10)}var r=e.indexOf(`Edge/`);return r>0?parseInt(e.substring(r+5,e.indexOf(`.`,r)),10):-1}var h_;function g_(){g_.init||(g_.init=!0,h_=m_()!==-1)}var __={name:`ResizeObserver`,props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:[`notify`],mounted(){g_(),ir(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});let e=document.createElement(`object`);this._resizeObject=e,e.setAttribute(`aria-hidden`,`true`),e.setAttribute(`tabindex`,-1),e.onload=this.addResizeHandlers,e.type=`text/html`,h_&&this.$el.appendChild(e),e.data=`about:blank`,h_||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit(`notify`,{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener(`resize`,this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!h_&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener(`resize`,this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},v_=br(`data-v-b329ee4c`);vr(`data-v-b329ee4c`);var y_={class:`resize-observer`,tabindex:`-1`};yr(),__.render=v_((e,t,n,r,i,a)=>(vs(),ws(`div`,y_))),__.__scopeId=`data-v-b329ee4c`,__.__file=`src/components/ResizeObserver.vue`;var b_=(e=`theme`)=>({computed:{themeClass(){return Lg(this[e])}}}),x_=di({name:`VPopperContent`,components:{ResizeObserver:__},mixins:[b_()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:[`hide`,`resize`],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),S_=[`id`,`aria-hidden`,`tabindex`,`data-popper-placement`],C_={ref:`inner`,class:`v-popper__inner`},w_=[As(`div`,{class:`v-popper__arrow-outer`},null,-1),As(`div`,{class:`v-popper__arrow-inner`},null,-1)];function T_(e,t,n,r,i,a){let o=ha(`ResizeObserver`);return vs(),Cs(`div`,{id:e.popperId,ref:`popover`,class:_e([`v-popper__popper`,[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:fe(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?`false`:`true`,tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||=yu(t=>e.autoHide&&e.$emit(`hide`),[`esc`])},[As(`div`,{class:`v-popper__backdrop`,onClick:t[0]||=t=>e.autoHide&&e.$emit(`hide`)}),As(`div`,{class:`v-popper__wrapper`,style:fe(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[As(`div`,C_,[e.mounted?(vs(),Cs(z,{key:0},[As(`div`,null,[Ca(e.$slots,`default`)]),e.handleResize?(vs(),ws(o,{key:0,onNotify:t[1]||=t=>e.$emit(`resize`,t)})):Is(``,!0)],64)):Is(``,!0)],512),As(`div`,{ref:`arrow`,class:`v-popper__arrow-container`,style:fe(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},w_,4)],4)],46,S_)}var E_=d_(x_,[[`render`,T_]]),D_={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}},O_=function(){};typeof window<`u`&&(O_=window.Element);var k_=di({name:`VPopperWrapper`,components:{Popper:p_,PopperContent:E_},mixins:[D_,b_(`finalTheme`)],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,O_,Boolean],default:void 0},boundary:{type:[String,O_],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function A_(e,t,n,r,i,a){let o=ha(`PopperContent`),s=ha(`Popper`);return vs(),ws(s,Bs({ref:`popper`},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||=()=>e.$emit(`show`),onHide:t[1]||=()=>e.$emit(`hide`),"onUpdate:shown":t[2]||=t=>e.$emit(`update:shown`,t),onApplyShow:t[3]||=()=>e.$emit(`apply-show`),onApplyHide:t[4]||=()=>e.$emit(`apply-hide`),onCloseGroup:t[5]||=()=>e.$emit(`close-group`),onCloseDirective:t[6]||=()=>e.$emit(`close-directive`),onAutoHide:t[7]||=()=>e.$emit(`auto-hide`),onResize:t[8]||=()=>e.$emit(`resize`)}),{default:xr(({popperId:t,isShown:n,shouldMountContent:r,skipTransition:i,autoHide:a,show:s,hide:c,handleResize:l,onResize:u,classes:d,result:f})=>[Ca(e.$slots,`default`,{shown:n,show:s,hide:c}),V(o,{ref:`popperContent`,"popper-id":t,theme:e.finalTheme,shown:n,mounted:r,"skip-transition":i,"auto-hide":a,"handle-resize":l,classes:d,result:f,onHide:c,onResize:u},{default:xr(()=>[Ca(e.$slots,`popper`,{shown:n,hide:c})]),_:2},1032,[`popper-id`,`theme`,`shown`,`mounted`,`skip-transition`,`auto-hide`,`handle-resize`,`classes`,`result`,`onHide`,`onResize`])]),_:3},16,[`theme`,`target-nodes`,`popper-node`,`class`])}var j_=d_(k_,[[`render`,A_]]),M_={...j_,name:`VDropdown`,vPopperTheme:`dropdown`},N_={...j_,name:`VMenu`,vPopperTheme:`menu`},P_={...j_,name:`VTooltip`,vPopperTheme:`tooltip`},F_=di({name:`VTooltipDirective`,components:{Popper:Qg(),PopperContent:E_},mixins:[D_],inheritAttrs:!1,props:{theme:{type:String,default:`tooltip`},html:{type:Boolean,default:e=>Ig(e.theme,`html`)},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Ig(e.theme,`loadingContent`)},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content==`function`},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content==`function`&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;let e=++this.$_fetchId,t=this.content(this);t.then?t.then(t=>this.onResult(e,t)):this.onResult(e,t)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),I_=[`innerHTML`],L_=[`textContent`];function R_(e,t,n,r,i,a){let o=ha(`PopperContent`),s=ha(`Popper`);return vs(),ws(s,Bs({ref:`popper`},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:xr(({popperId:t,isShown:n,shouldMountContent:r,skipTransition:i,autoHide:a,hide:s,handleResize:c,onResize:l,classes:u,result:d})=>[V(o,{ref:`popperContent`,class:_e({"v-popper--tooltip-loading":e.loading}),"popper-id":t,theme:e.theme,shown:n,mounted:r,"skip-transition":i,"auto-hide":a,"handle-resize":c,classes:u,result:d,onHide:s,onResize:l},{default:xr(()=>[e.html?(vs(),Cs(`div`,{key:0,innerHTML:e.finalContent},null,8,I_)):(vs(),Cs(`div`,{key:1,textContent:Pe(e.finalContent)},null,8,L_))]),_:2},1032,[`class`,`popper-id`,`theme`,`shown`,`mounted`,`skip-transition`,`auto-hide`,`handle-resize`,`classes`,`result`,`onHide`,`onResize`])]),_:1},16,[`theme`,`target-nodes`,`popper-node`,`onApplyShow`,`onApplyHide`])}var z_=d_(F_,[[`render`,R_]]),B_=`v-popper--has-tooltip`;function V_(e,t){let n=e.placement;if(!n&&t)for(let e of Vg)t[e]&&(n=e);return n||=Ig(e.theme||`tooltip`,`placement`),n}function H_(e,t,n){let r,i=typeof t;return r=i===`string`?{content:t}:t&&i===`object`?t:{content:!1},r.placement=V_(r,n),r.targetNodes=()=>[e],r.referenceNode=()=>e,r}var U_,W_,G_=0;function K_(){if(U_)return;W_=mn([]),U_=Du({name:`VTooltipDirectiveApp`,setup(){return{directives:W_}},render(){return this.directives.map(e=>fc(z_,{...e.options,shown:e.shown||e.options.shown,key:e.id}))},devtools:{hide:!0}});let e=document.createElement(`div`);document.body.appendChild(e),U_.mount(e)}function q_(e,t,n){K_();let r=mn(H_(e,t,n)),i=mn(!1),a={id:G_++,options:r,shown:i};return W_.value.push(a),e.classList&&e.classList.add(B_),e.$_popper={options:r,item:a,show(){i.value=!0},hide(){i.value=!1}}}function J_(e){if(e.$_popper){let t=W_.value.indexOf(e.$_popper.item);t!==-1&&W_.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(B_)}function Y_(e,{value:t,modifiers:n}){let r=H_(e,t,n);if(!r.content||Ig(r.theme||`tooltip`,`disabled`))J_(e);else{let i;e.$_popper?(i=e.$_popper,i.options.value=r):i=q_(e,t,n),typeof t.shown<`u`&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?i.show():i.hide())}}var X_={beforeMount:Y_,updated:Y_,beforeUnmount(e){J_(e)}};function Z_(e){e.addEventListener(`mousedown`,$_),e.addEventListener(`click`,$_),e.addEventListener(`touchstart`,ev,zg?{passive:!0}:!1)}function Q_(e){e.removeEventListener(`mousedown`,$_),e.removeEventListener(`click`,$_),e.removeEventListener(`touchstart`,ev),e.removeEventListener(`touchend`,tv),e.removeEventListener(`touchcancel`,nv)}function $_(e){let t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function ev(e){if(e.changedTouches.length===1){let t=e.currentTarget;t.$_vclosepopover_touch=!0,t.$_vclosepopover_touchPoint=e.changedTouches[0],t.addEventListener(`touchend`,tv),t.addEventListener(`touchcancel`,nv)}}function tv(e){let t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){let n=e.changedTouches[0],r=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-r.screenY)<20&&Math.abs(n.screenX-r.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function nv(e){let t=e.currentTarget;t.$_vclosepopover_touch=!1}var rv={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>`u`||t)&&Z_(e)},updated(e,{value:t,oldValue:n,modifiers:r}){e.$_closePopoverModifiers=r,t!==n&&(typeof t>`u`||t?Z_(e):Q_(e))},beforeUnmount(e){Q_(e)}},iv=M_,av=P_;function ov(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,Pg(Fg,t),e.directive(`tooltip`,X_),e.directive(`close-popper`,rv),e.component(`VTooltip`,P_),e.component(`VDropdown`,M_),e.component(`VMenu`,N_))}var sv={version:`5.2.2`,install:ov,options:Fg},cv=typeof navigator<`u`&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),lv={install:(e,t={})=>{if(typeof window<`u`&&(window.addEventListener(`vitepress:codeGroupTabActivate`,i_,{passive:!0}),window.addEventListener(`click`,e=>{e.composedPath().some(e=>e?.classList?.contains?.(`vp-code-group`)||e?.classList?.contains?.(`tabs`))&&i_()},{passive:!0}),!cv)){let t=!1;window.addEventListener(`mousedown`,()=>{t=!0},{passive:!0}),window.addEventListener(`mouseup`,()=>{t=!1},{passive:!0});let n=e.component;e.component=function(...e){let r=n.apply(this,e);if(e.length>=2&&e[0]===`VMenu`)try{let n=e[1].components.Popper.extends,r=n.methods.show;n.methods.show=function(...e){if(!t)return r.apply(this,e)};let i=n.methods.hide;n.methods.hide=function(...e){if(!t)return i.apply(this,e)}}catch(e){console.error(`Failed to patch FloatingVue`,e)}return r}}e.use(sv,{strategy:`fixed`,...t,themes:{...t.themes,twoslash:{$extend:`dropdown`,triggers:cv?[`touch`]:[`hover`,`touch`],popperTriggers:cv?[`touch`]:[`hover`,`touch`],placement:`bottom-start`,overflowPadding:10,delay:{show:200,hide:0},handleResize:!1,autoHide:!0,noAutoFocus:!0,instantMove:!0,flip:!1,arrowPadding:8,autoBoundaryMaxSize:!0,...t.themes?.twoslash??{}},"twoslash-query":{$extend:`twoslash`,triggers:[`click`],popperTriggers:[`click`],autoHide:!1,noAutoFocus:!0,...t.themes?.[`twoslash-query`]??{}},"twoslash-completion":{$extend:`twoslash-query`,triggers:[`click`],popperTriggers:[`click`],autoHide:!1,noAutoFocus:!0,distance:0,arrowOverflow:!0,...t.themes?.[`twoslash-completion`]??{}}}})}};export{jr as $,Tr as A,vs as B,V as C,Pe as Ct,Ms as D,Gs as E,Yi as F,va as G,xa as H,sa as I,fo as J,_a as K,Xi as L,Ua as M,Bs as N,fc as O,ir as P,kr as Q,ia as R,Ps as S,fe as St,di as T,Ca as U,wr as V,ha as W,mi as X,Ra as Y,Mr as Z,As as _,Tn as _t,Ic as a,cn as at,Cs as b,_e as bt,iu as c,Ve as ct,yu as d,mn as dt,xr as et,_u as f,nn as ft,dc as g,On as gt,qi as h,F as ht,i_ as i,Be as it,Ts as j,Er as k,ru as l,tn as lt,z as m,hn as mt,av as n,wn as nt,Gl as o,I as ot,B as p,an as pt,fi as q,iv as r,ze as rt,Du as s,dn as st,lv as t,Sr as tt,el as u,rn as ut,ws as v,bn as vt,Wi as w,Fs as x,ve as xt,Is as y,yn as yt,ca as z}; \ No newline at end of file diff --git a/lecture-07/assets/modules/unplugin-icons-CStvVwzQ.js b/lecture-07/assets/modules/unplugin-icons-CStvVwzQ.js new file mode 100644 index 0000000000000000000000000000000000000000..2f4021458f23fc1bea24d68a9cd20965896c0626 --- /dev/null +++ b/lecture-07/assets/modules/unplugin-icons-CStvVwzQ.js @@ -0,0 +1 @@ +import{B as e,_ as t,b as n,st as r}from"./shiki-CJZsCeMT.js";var i={class:`slidev-icon`,viewBox:`0 0 256 256`,width:`1.2em`,height:`1.2em`};function a(r,a){return e(),n(`svg`,i,[...a[0]||=[t(`path`,{fill:`currentColor`,d:`M200 32h-36.26a47.92 47.92 0 0 0-71.48 0H56a16 16 0 0 0-16 16v168a16 16 0 0 0 16 16h144a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16m-72 0a32 32 0 0 1 32 32H96a32 32 0 0 1 32-32m72 184H56V48h26.75A47.9 47.9 0 0 0 80 64v8a8 8 0 0 0 8 8h80a8 8 0 0 0 8-8v-8a47.9 47.9 0 0 0-2.75-16H200Z`},null,-1)]])}var o=r({name:`ph-clipboard`,render:a}),s={class:`slidev-icon`,viewBox:`0 0 256 256`,width:`1.2em`,height:`1.2em`};function c(r,i){return e(),n(`svg`,s,[...i[0]||=[t(`path`,{fill:`currentColor`,d:`M173.66 98.34a8 8 0 0 1 0 11.32l-56 56a8 8 0 0 1-11.32 0l-24-24a8 8 0 0 1 11.32-11.32L112 148.69l50.34-50.35a8 8 0 0 1 11.32 0M232 128A104 104 0 1 1 128 24a104.11 104.11 0 0 1 104 104m-16 0a88 88 0 1 0-88 88a88.1 88.1 0 0 0 88-88`},null,-1)]])}var l=r({name:`ph-check-circle`,render:c}),u={class:`slidev-icon`,viewBox:`0 0 32 32`,width:`1.2em`,height:`1.2em`};function d(r,i){return e(),n(`svg`,u,[...i[0]||=[t(`path`,{fill:`currentColor`,d:`M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6M5.394 6.813L6.81 5.399l3.505 3.506L8.9 10.319zM2 15.005h5v2H2zm3.394 10.193L8.9 21.692l1.414 1.414l-3.505 3.506zM15 25.005h2v5h-2zm6.687-1.9l1.414-1.414l3.506 3.506l-1.414 1.414zm3.313-8.1h5v2h-5zm-3.313-6.101l3.506-3.506l1.414 1.414l-3.506 3.506zM15 2.005h2v5h-2z`},null,-1)]])}var f=r({name:`carbon-sun`,render:d}),p={class:`slidev-icon`,viewBox:`0 0 32 32`,width:`1.2em`,height:`1.2em`};function m(r,i){return e(),n(`svg`,p,[...i[0]||=[t(`path`,{fill:`currentColor`,d:`M13.503 5.414a15.076 15.076 0 0 0 11.593 18.194a11.1 11.1 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1 1 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.07 13.07 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3`},null,-1)]])}var h=r({name:`carbon-moon`,render:m}),g={class:`slidev-icon`,viewBox:`0 0 256 256`,width:`1.2em`,height:`1.2em`};function _(r,i){return e(),n(`svg`,g,[...i[0]||=[t(`path`,{fill:`currentColor`,d:`m220.49 207.8l-12.69 12.69a12 12 0 0 1-17 0l-56.57-56.57L115 214.08l-.13.33a15.84 15.84 0 0 1-14.61 9.59h-.78a15.82 15.82 0 0 1-14.41-11L32.8 52.92A15.95 15.95 0 0 1 52.92 32.8L213 85.07a16 16 0 0 1 1.41 29.8l-.33.13l-50.16 19.27l56.57 56.56a12 12 0 0 1 0 16.97`},null,-1)]])}var v=r({name:`ph-cursor-fill`,render:_});export{o as a,l as i,h as n,f as r,v as t}; \ No newline at end of file diff --git a/lecture-07/assets/modules/vue-Dnfgf7Ad.js b/lecture-07/assets/modules/vue-Dnfgf7Ad.js new file mode 100644 index 0000000000000000000000000000000000000000..d623f70a7ef1cc53c991dec5f16efa2c24b7ab8b --- /dev/null +++ b/lecture-07/assets/modules/vue-Dnfgf7Ad.js @@ -0,0 +1,5 @@ +import{A as e,E as t,O as n,P as r,Q as i,R as a,T as o,V as s,Y as c,Z as l,_t as u,ct as d,dt as f,ft as p,g as m,gt as h,ht as g,it as _,k as v,lt as y,m as b,mt as x,nt as S,ot as C,pt as w,rt as T,ut as E,vt as D,yt as O,z as k}from"./shiki-CJZsCeMT.js";function ee(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function A(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&ee(e.default)}var j=Object.assign;function te(e,t){let n={};for(let r in t){let i=t[r];n[r]=N(i)?i.map(e):e(i)}return n}var M=()=>{},N=Array.isArray;function ne(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var re=Symbol(``);function ie(e,t){return j(Error(),{type:e,[re]:!0},t)}function P(e,t){return e instanceof Error&&re in e&&(t==null||!!(e.type&t))}var ae=Symbol(``),oe=Symbol(``),se=Symbol(``),ce=Symbol(``),le=Symbol(``);function ue(){return e(se)}function de(t){return e(ce)}var fe=typeof document<`u`,pe=/#/g,me=/&/g,he=/\//g,ge=/=/g,_e=/\?/g,ve=/\+/g,ye=/%5B/g,be=/%5D/g,F=/%5E/g,xe=/%60/g,Se=/%7B/g,Ce=/%7C/g,we=/%7D/g,Te=/%20/g;function Ee(e){return e==null?``:encodeURI(``+e).replace(Ce,`|`).replace(ye,`[`).replace(be,`]`)}function De(e){return Ee(e).replace(Se,`{`).replace(we,`}`).replace(F,`^`)}function Oe(e){return Ee(e).replace(ve,`%2B`).replace(Te,`+`).replace(pe,`%23`).replace(me,`%26`).replace(xe,"`").replace(Se,`{`).replace(we,`}`).replace(F,`^`)}function ke(e){return Oe(e).replace(ge,`%3D`)}function Ae(e){return Ee(e).replace(pe,`%23`).replace(_e,`%3F`)}function je(e){return Ae(e).replace(he,`%2F`)}function Me(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var Ne=/\/$/,Pe=e=>e.replace(Ne,``);function Fe(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=Ue(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:Me(o)}}function Ie(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function Le(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function Re(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&ze(t.matched[r],n.matched[i])&&Be(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function ze(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Be(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Ve(e[n],t[n]))return!1;return!0}function Ve(e,t){return N(e)?He(e,t):N(t)?He(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function He(e,t){return N(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function Ue(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o1&&a--;else break}return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var I={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};function We(e){if(!e){if(fe){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^/]+/,``)}else e=`/`}return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),Pe(e)}var Ge=/^[^#]+#/;function Ke(e,t){return e.replace(Ge,`#`)+t}function qe(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var Je=()=>({left:window.scrollX,top:window.scrollY});function Ye(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=qe(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function Xe(e,t){return(history.state?history.state.position-t:-1)+e}var Ze=new Map;function Qe(e,t){Ze.set(e,t)}function $e(e){let t=Ze.get(e);return Ze.delete(e),t}function et(e){return typeof e==`string`||e&&typeof e==`object`}function tt(e){return typeof e==`string`||typeof e==`symbol`}function nt(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;ee&&Oe(e)):[r&&Oe(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function it(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=N(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function at(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function L(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(ie(4,{from:n,to:t})):e instanceof Error?c(e):et(e)?c(ie(2,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function ot(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e])){if(ee(s)){let c=(s.__vccOpts||s)[t];c&&a.push(L(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=A(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&L(c,n,r,o,e,i)()}))}}}return a}function st(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;oze(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>ze(e,s))||i.push(s))}return[n,r,i]}var ct=()=>location.protocol+`//`+location.host;function lt(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),Le(n,``)}return Le(n,e)+r+i}function ut(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=lt(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:`pop`,direction:u?u>0?`forward`:`back`:``})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(j({},e.state,{scroll:Je()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function dt(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Je():null}}function ft(e){let{history:t,location:n}=window,r={value:lt(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:ct()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,j({},t.state,dt(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=j({},i.value,t.state,{forward:e,scroll:Je()});a(o.current,o,!0),a(e,j({},dt(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function pt(e){e=We(e);let t=ft(e),n=ut(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=j({location:``,base:e,go:r,createHref:Ke.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function mt(e){return e=location.host?e||location.pathname+location.search:``,e.includes(`#`)||(e+=`#`),pt(e)}var ht={type:0,value:``},gt=/[a-zA-Z0-9_]/;function _t(e){if(!e)return[[]];if(e===`/`)return[[ht]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;st.length?t.length===1&&t[0]===80?1:-1:0}function Ct(e,t){let n=0,r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}var Tt={strict:!1,end:!0,sensitive:!1};function Et(e,t,n){let r=j(xt(_t(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Dt(e,t){let n=[],r=new Map;t=ne(Tt,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=kt(e);s.aliasOf=r&&r.record;let l=ne(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(kt(j({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=Et(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!jt(d)&&o(e.name)),Ft(d)&&c(d),s.children){let e=s.children;for(let t=0;t{o(f)}:M}function o(e){if(tt(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=Nt(e,n);n.splice(t,0,e),e.record.name&&!jt(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw ie(1,{location:e});s=i.record.name,a=j(Ot(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Ot(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name,i.keys.forEach(e=>{e.optional&&!a[e.name]&&delete a[e.name]}));else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw ie(1,{location:e,currentLocation:t});s=i.record.name,a=j({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:Mt(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function Ot(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function kt(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:At(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function At(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function jt(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Mt(e){return e.reduce((e,t)=>j(e,t.meta),{})}function Nt(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Ct(e,t[i])<0?r=i:n=i+1}let i=Pt(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function Pt(e){let t=e;for(;t=t.parent;)if(Ft(t)&&Ct(e,t)===0)return t}function Ft({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function It(t){let n=e(se),r=e(ce),i=m(()=>{let e=O(t.to);return n.resolve(e)}),a=m(()=>{let{matched:e}=i.value,{length:t}=e,n=e[t-1],a=r.matched;if(!n||!a.length)return-1;let o=a.findIndex(ze.bind(null,n));if(o>-1)return o;let s=Vt(e[t-2]);return t>1&&Vt(n)===s&&a[a.length-1].path!==s?a.findIndex(ze.bind(null,e[t-2])):o}),o=m(()=>a.value>-1&&Bt(r.params,i.value.params)),s=m(()=>a.value>-1&&a.value===r.matched.length-1&&Be(r.params,i.value.params));function c(e={}){if(zt(e)){let e=n[O(t.replace)?`replace`:`push`](O(t.to)).catch(M);return t.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>e),e}return Promise.resolve()}return{route:i,href:m(()=>i.value.href),isActive:o,isExactActive:s,navigate:c}}function Lt(e){return e.length===1?e[0]:e}var Rt=o({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:It,setup(t,{slots:r}){let i=y(It(t)),{options:a}=e(se),o=m(()=>({[Ht(t.activeClass,a.linkActiveClass,`router-link-active`)]:i.isActive,[Ht(t.exactActiveClass,a.linkExactActiveClass,`router-link-exact-active`)]:i.isExactActive}));return()=>{let e=r.default&&Lt(r.default(i));return t.custom?e:n(`a`,{"aria-current":i.isExactActive?t.ariaCurrentValue:null,href:i.href,onClick:i.navigate,class:o.value},e)}}});function zt(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(e.button===void 0||e.button===0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Bt(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!N(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function Vt(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var Ht=(e,t,n)=>e??t??n,Ut=o({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(t,{attrs:r,slots:i}){let a=e(le),o=m(()=>t.route||a.value),c=e(oe,0),u=m(()=>{let e=O(c),{matched:t}=o.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),d=m(()=>o.value.matched[u.value]);s(oe,m(()=>u.value+1)),s(ae,d),s(le,o);let p=f();return l(()=>[p.value,d.value,t.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!ze(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let e=o.value,a=t.name,s=d.value,c=s&&s.components[a];if(!c)return Wt(i.default,{Component:c,route:e});let l=s.props[a],u=l?l===!0?e.params:typeof l==`function`?l(e):l:null,f=n(c,j({},u,r,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(s.instances[a]=null)},ref:p}));return Wt(i.default,{Component:f,route:e})||f}}});function Wt(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var Gt=Ut;function Kt(e){let t=Dt(e.routes,e),n=e.parseQuery||nt,i=e.stringifyQuery||rt,a=e.history,o=at(),s=at(),c=at(),l=x(I),u=I;fe&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let d=te.bind(null,e=>``+e),f=te.bind(null,je),m=te.bind(null,Me);function h(e,n){let r,i;return tt(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function g(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function _(){return t.getRoutes().map(e=>e.record)}function v(e){return!!t.getRecordMatcher(e)}function y(e,r){if(r=j({},r||l.value),typeof e==`string`){let i=Fe(n,e,r.path),o=t.resolve({path:i.path},r),s=a.createHref(i.fullPath);return j(i,o,{params:m(o.params),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=j({},e,{path:Fe(n,e.path,r.path).path});else{let t=j({},e.params);for(let e in t)t[e]??delete t[e];o=j({},e,{params:f(t)}),r.params=f(r.params)}let s=t.resolve(o,r),c=e.hash||``;s.params=d(m(s.params));let u=Ie(i,j({},e,{hash:De(c),path:s.path})),p=a.createHref(u);return j({fullPath:u,hash:c,query:i===rt?it(e.query):e.query||{}},s,{redirectedFrom:void 0,href:p})}function b(e){return typeof e==`string`?Fe(n,e,l.value.path):j({},e)}function S(e,t){if(u!==e)return ie(8,{from:t,to:e})}function C(e){return E(e)}function w(e){return C(j(b(e),{replace:!0}))}function T(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=b(i):{path:i},i.params={}),j({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function E(e,t){let n=u=y(e),r=l.value,a=e.state,o=e.force,s=e.replace===!0,c=T(n,r);if(c)return E(j(b(c),{state:typeof c==`object`?j({},a,c.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&Re(i,r,n)&&(f=ie(16,{to:d,from:r}),ge(r,r,!0,!1)),(f?Promise.resolve(f):ee(d,r)).catch(e=>P(e)?P(e,2)?e:he(e):pe(e,d,r)).then(e=>{if(e){if(P(e,2))return E(j({replace:s},b(e.to),{state:typeof e.to==`object`?j({},a,e.to.state):a,force:o}),t||d)}else e=ne(d,r,!0,s,a);return A(d,r,e),e})}function D(e,t){let n=S(e,t);return n?Promise.reject(n):Promise.resolve()}function k(e){let t=ye.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function ee(e,t){let n,[r,i,a]=st(e,t);n=ot(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(L(r,e,t))});let c=D.bind(null,e,t);return n.push(c),F(n).then(()=>{n=[];for(let r of o.list())n.push(L(r,e,t));return n.push(c),F(n)}).then(()=>{n=ot(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(L(r,e,t))});return n.push(c),F(n)}).then(()=>{n=[];for(let r of a)if(r.beforeEnter){if(N(r.beforeEnter))for(let i of r.beforeEnter)n.push(L(i,e,t));else n.push(L(r.beforeEnter,e,t))}return n.push(c),F(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=ot(a,`beforeRouteEnter`,e,t,k),n.push(c),F(n))).then(()=>{n=[];for(let r of s.list())n.push(L(r,e,t));return n.push(c),F(n)}).catch(e=>P(e,8)?e:Promise.reject(e))}function A(e,t,n){c.list().forEach(r=>k(()=>r(e,t,n)))}function ne(e,t,n,r,i){let o=S(e,t);if(o)return o;let s=t===I,c=fe?history.state:{};n&&(r||s?a.replace(e.fullPath,j({scroll:s&&c&&c.scroll},i)):a.push(e.fullPath,i)),l.value=e,ge(e,t,n,s),he()}let re;function ae(){re||=a.listen((e,t,n)=>{if(!be.listening)return;let r=y(e),i=T(r,be.currentRoute.value);if(i){E(j(i,{replace:!0,force:!0}),r).catch(M);return}u=r;let o=l.value;fe&&Qe(Xe(o.fullPath,n.delta),Je()),ee(r,o).catch(e=>P(e,12)?e:P(e,2)?(E(j(b(e.to),{force:!0}),r).then(e=>{P(e,20)&&!n.delta&&n.type===`pop`&&a.go(-1,!1)}).catch(M),Promise.reject()):(n.delta&&a.go(-n.delta,!1),pe(e,r,o))).then(e=>{e||=ne(r,o,!1),e&&(n.delta&&!P(e,8)?a.go(-n.delta,!1):n.type===`pop`&&P(e,20)&&a.go(-1,!1)),A(r,o,e)}).catch(M)})}let oe=at(),ue=at(),de;function pe(e,t,n){he(e);let r=ue.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function me(){return de&&l.value!==I?Promise.resolve():new Promise((e,t)=>{oe.add([e,t])})}function he(e){return de||(de=!e,ae(),oe.list().forEach(([t,n])=>e?n(e):t()),oe.reset()),e}function ge(t,n,i,a){let{scrollBehavior:o}=e;if(!fe||!o)return Promise.resolve();let s=!i&&$e(Xe(t.fullPath,0))||(a||!i)&&history.state&&history.state.scroll||null;return r().then(()=>o(t,n,s)).then(e=>t===l.value&&e&&Ye(e)).catch(e=>t===l.value&&pe(e,t,n))}let _e=e=>a.go(e),ve,ye=new Set,be={currentRoute:l,listening:!0,addRoute:h,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:v,getRoutes:_,resolve:y,options:e,push:C,replace:w,go:_e,back:()=>_e(-1),forward:()=>_e(1),beforeEach:o.add,beforeResolve:s.add,afterEach:c.add,onError:ue.add,isReady:me,install(e){e.component(`RouterLink`,Rt),e.component(`RouterView`,Gt),e.config.globalProperties.$router=be,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>O(l)}),fe&&!ve&&l.value===I&&(ve=!0,C(a.location).catch(e=>{}));let t={};for(let e in I)Object.defineProperty(t,e,{get:()=>l.value[e],enumerable:!0});e.provide(se,be),e.provide(ce,p(t)),e.provide(le,l);let n=e.unmount;ye.add(e),e.unmount=function(){ye.delete(e),ye.size<1&&(u=I,re&&re(),re=null,l.value=I,ve=!1,de=!1),n()}}};function F(e){return e.reduce((e,t)=>e.then(()=>k(t)),Promise.resolve())}return be}function R(e,t){return _()?(d(e,t),!0):!1}var qt=new WeakMap,Jt=(...n)=>{let r=n[0],i=t()?.proxy??_();if(i==null&&!v())throw Error(`injectLocal must be called in setup`);return i&&qt.has(i)&&r in qt.get(i)?qt.get(i)[r]:e(...n)};function Yt(e,n){let r=t()?.proxy??_();if(r==null)throw Error(`provideLocal must be called in setup`);qt.has(r)||qt.set(r,Object.create(null));let i=qt.get(r);return i[e]=n,s(e,n)}var z=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var Xt=e=>e!==void 0,Zt=e=>e!=null,Qt=Object.prototype.toString,$t=e=>Qt.call(e)===`[object Object]`,en=()=>+Date.now(),B=()=>{},tn=nn();function nn(){var e,t;return z&&!!((e=window)!=null&&(e=e.navigator)!=null&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)==null||(t=t.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function rn(...e){if(e.length!==1)return h(...e);let t=e[0];return typeof t==`function`?E(S(()=>({get:t,set:B}))):f(t)}function an(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return`cancel`in e&&Object.assign(n,{cancel:e.cancel,flush:e.flush,isPending:e.isPending}),n}var on=e=>e();function sn(e,t={}){let n,r,i=B,a=B,o=x(!1),s=e=>{clearTimeout(e),i(),i=B},c;return Object.assign(l=>{let u=D(e),d=D(t.maxWait);return n&&s(n),u<=0||d!==void 0&&d<=0?(r&&=(s(r),void 0),o.value=!1,Promise.resolve(l())):(o.value=!0,new Promise((e,f)=>{i=t.rejectOnCancel?f:e,a=e,c=l,d&&!r&&(r=setTimeout(()=>{n&&s(n),r=void 0,o.value=!1,e(c())},d)),n=setTimeout(()=>{r&&s(r),r=void 0,o.value=!1,e(l())},u)}))},{cancel:()=>{n&&=(s(n),void 0),r&&=(s(r),void 0),o.value=!1,a=B},flush:()=>{if(o.value){n&&=(clearTimeout(n),void 0),r&&=(clearTimeout(r),void 0),o.value=!1;let e=a;i=B,a=B,e(c())}},isPending:w(o)})}function cn(e=on,t={}){let{initialState:n=`active`}=t,r=rn(n===`active`);function i(){r.value=!1}function a(){r.value=!0}return{isActive:w(r),pause:i,resume:a,eventFilter:(...t)=>{r.value&&e(...t)}}}function ln(e){let t;function n(){return t||=e(),t}return n.reset=async()=>{let e=t;t=void 0,e&&await e},n}function un(e,t){if(typeof e==`number`)return e+t;let n=e.match(/^-?\d+\.?\d*/)?.[0]||``,r=e.slice(n.length),i=Number.parseFloat(n)+t;return Number.isNaN(i)?e:i+r}function dn(e){return e.endsWith(`rem`)?Number.parseFloat(e)*16:Number.parseFloat(e)}function fn(e,t,n=!1){return Object.fromEntries(Object.entries(e).filter(([e,r])=>(!n||r!==void 0)&&!t.includes(e)))}function pn(e){return Array.isArray(e)?e:[e]}function mn(e){return e||t()}function hn(e){if(!z)return e;let t=0,n,r,i=()=>{--t,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return((...a)=>(t+=1,r||(r=T(!0),n=r.run(()=>e(...a))),R(i),n))}function gn(e,t,n={}){let{eventFilter:r=on,...i}=n;return l(e,an(r,t),i)}function _n(e,t,n={}){let{eventFilter:r,initialState:i=`active`,...a}=n,{eventFilter:o,pause:s,resume:c,isActive:l}=cn(r,{initialState:i});return{stop:gn(e,t,{...a,eventFilter:o}),pause:s,resume:c,isActive:l}}function vn(e,t={}){if(!C(e))return u(e);let n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(let r in e.value)n[r]=S(()=>({get(){return e.value[r]},set(n){if(D(t.replaceRef)??!0){if(Array.isArray(e.value)){let t=[...e.value];t[r]=n,e.value=t}else{let t={...e.value,[r]:n};Object.setPrototypeOf(t,Object.getPrototypeOf(e.value)),e.value=t}}else e.value[r]=n}}));return n}function V(e,t=!0,n){mn(n)?a(e,n):t?e():r(e)}function yn(e,t=1e3,n={}){let{immediate:r=!0,immediateCallback:i=!1}=n,a=null,o=x(!1);function s(){a&&=(clearInterval(a),null)}function c(){o.value=!1,s()}function u(){let n=D(t);n<=0||(o.value=!0,i&&e(),s(),o.value&&(a=setInterval(e,n)))}return r&&z&&u(),(C(t)||typeof t==`function`)&&R(l(t,()=>{o.value&&z&&u()})),R(c),{isActive:w(o),pause:c,resume:u}}function bn(e=1e3,t={}){let{controls:n=!1,immediate:r=!0,callback:i}=t,a=x(0),o=()=>a.value+=1,s=()=>{a.value=0},c=yn(i?()=>{o(),i(a.value)}:o,e,{immediate:r});return n?{counter:w(a),reset:s,...c}:w(a)}function xn(e,t,n={}){let{immediate:r=!0,immediateCallback:i=!1}=n,a=x(!1),o;function s(){o&&=(clearTimeout(o),void 0)}function c(){a.value=!1,s()}function l(...n){i&&e(),s(),a.value=!0,o=setTimeout(()=>{a.value=!1,o=void 0,e(...n)},D(t))}return r&&(a.value=!0,z&&l()),R(c),{isPending:w(a),start:l,stop:c}}function Sn(e=!1,t={}){let{truthyValue:n=!0,falsyValue:r=!1}=t,i=C(e),a=x(e);function o(e){if(arguments.length)return a.value=e,a.value;{let e=D(n);return a.value=a.value===e?D(r):e,a.value}}return i?o:[a,o]}function Cn(e,t,n={}){let{debounce:r=0,maxWait:i=void 0,...a}=n;return gn(e,t,{...a,eventFilter:sn(r,{maxWait:i})})}var wn=Cn;function Tn(e,t,n={}){let{eventFilter:r=on,...i}=n,a=an(r,t),o,s,c;if(i.flush===`sync`){let t=!1;s=()=>{},o=e=>{t=!0,e(),t=!1},c=l(e,(...e)=>{t||a(...e)},i)}else{let t=[],n=0,r=0;s=()=>{n=r},t.push(l(e,()=>{r++},{...i,flush:`sync`})),o=e=>{let t=r;e(),n+=r-t},t.push(l(e,(...e)=>{let t=n>0&&n===r;n=0,r=0,!t&&a(...e)},i)),c=()=>{t.forEach(e=>e())}}return{stop:c,ignoreUpdates:o,ignorePrevAsyncUpdates:s}}var En=Tn;function Dn(e,t,n){return l(e,t,{...n,immediate:!0})}function On(e,t,n){let i=l(e,(e,a,o)=>{e&&(n?.once&&r(()=>i()),t(e,a,o))},{...n,once:!1});return i}var H=z?window:void 0,kn=z?window.document:void 0,An=z?window.navigator:void 0;z&&window.location;function U(e){let t=D(e);return t?.$el??t}function W(...e){let t=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),n=m(()=>{let t=pn(D(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0});return Dn(()=>[n.value?.map(e=>U(e))??[H].filter(e=>e!=null),pn(D(n.value?e[1]:e[0])),pn(O(n.value?e[2]:e[1])),D(n.value?e[3]:e[2])],([e,n,r,i],a,o)=>{if(!e?.length||!n?.length||!r?.length)return;let s=$t(i)?{...i}:i,c=e.flatMap(e=>n.flatMap(n=>r.map(r=>t(e,n,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}var jn=!1;function Mn(e,t,n={}){let{window:r=H,ignore:i=[],capture:a=!0,detectIframe:o=!1,controls:s=!1}=n;if(!r)return s?{stop:B,cancel:B,trigger:B}:B;if(tn&&!jn){jn=!0;let e={passive:!0};Array.from(r.document.body.children).forEach(t=>t.addEventListener(`click`,B,e)),r.document.documentElement.addEventListener(`click`,B,e)}let c=!0,l=e=>D(i).some(t=>{if(typeof t==`string`)return Array.from(r.document.querySelectorAll(t)).some(t=>t===e.target||e.composedPath().includes(t));{let n=U(t);return n&&(e.target===n||e.composedPath().includes(n))}});function u(e){let t=D(e);return t&&t.$.subTree.shapeFlag===16}function d(e,t){let n=D(e),r=n.$.subTree&&n.$.subTree.children;return r==null||!Array.isArray(r)?!1:r.some(e=>e.el===t.target||t.composedPath().includes(e.el))}let f=n=>{let r=U(e);if(n.target!=null&&!(!(r instanceof Element)&&u(e)&&d(e,n))&&!(!r||r===n.target||n.composedPath().includes(r))){if(`detail`in n&&n.detail===0&&(c=!l(n)),!c){c=!0;return}t(n)}},p=!1,m=[W(r,`click`,e=>{p||(p=!0,setTimeout(()=>{p=!1},0),f(e))},{passive:!0,capture:a}),W(r,`pointerdown`,t=>{let n=U(e);c=!l(t)&&!!(n&&!t.composedPath().includes(n))},{passive:!0}),o&&W(r,`blur`,n=>{setTimeout(()=>{let i=U(e),a=r.document.activeElement;for(;a?.shadowRoot;)a=a.shadowRoot.activeElement;a?.tagName===`IFRAME`&&!i?.contains(r.document.activeElement)&&t(n)},0)},{passive:!0})].filter(Boolean),h=()=>m.forEach(e=>e());return s?{stop:h,cancel:()=>{c=!1},trigger:e=>{c=!0,f(e),c=!1}}:h}function Nn(){let e=x(!1),n=t();return n&&a(()=>{e.value=!0},n),e}function G(e){let t=Nn();return m(()=>(t.value,!!e()))}function Pn(e,t,n={}){let{window:r=H,...i}=n,a,o=G(()=>r&&`MutationObserver`in r),s=()=>{a&&=(a.disconnect(),void 0)},c=l(m(()=>{let t=pn(D(e)).map(U).filter(Zt);return new Set(t)}),e=>{s(),o.value&&e.size&&(a=new MutationObserver(t),e.forEach(e=>a.observe(e,i)))},{immediate:!0,flush:`post`}),u=()=>a?.takeRecords(),d=()=>{c(),s()};return R(d),{isSupported:o,stop:d,takeRecords:u}}function Fn(e,t,n={}){let{window:r=H,document:a=r?.document,flush:o=`sync`}=n;if(!r||!a)return B;let s,c=e=>{s?.(),s=e},l=i(()=>{let n=U(e);if(n){let{stop:e}=Pn(a,e=>{e.map(e=>[...e.removedNodes]).flat().some(e=>e===n||e.contains(n))&&t(e)},{window:r,childList:!0,subtree:!0});c(e)}},{flush:o}),u=()=>{l(),c()};return R(u),u}function In(e){return typeof e==`function`?e:typeof e==`string`?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Ln(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]==`object`?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);let{target:i=H,eventName:a=`keydown`,passive:o=!1,dedupe:s=!1}=r,c=In(t);return W(i,a,e=>{e.repeat&&D(s)||c(e)&&n(e)},o)}function Rn(e={}){let{window:t=H,deep:n=!0,triggerOnRemoval:r=!1}=e,i=e.document??t?.document,a=()=>{let e=i?.activeElement;if(n)for(var t;e?.shadowRoot;)e=e==null||(t=e.shadowRoot)==null?void 0:t.activeElement;return e},o=x(),s=()=>{o.value=a()};if(t){let e={capture:!0,passive:!0};W(t,`blur`,e=>{e.relatedTarget===null&&s()},e),W(t,`focus`,s,e)}return r&&Fn(o,s,{document:i}),s(),o}var zn=Symbol(`vueuse-ssr-width`);function Bn(){let e=v()?Jt(zn,null):null;return typeof e==`number`?e:void 0}function K(e,t={}){let{window:n=H,ssrWidth:r=Bn()}=t,a=G(()=>n&&`matchMedia`in n&&typeof n.matchMedia==`function`),o=x(typeof r==`number`),s=x(),c=x(!1);return i(()=>{if(o.value){o.value=!a.value;let t=D(e).split(`,`);c.value=t.some(e=>{let t=e.includes(`not all`),n=e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),i=e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),a=!!(n||i);return n&&a&&(a=r>=dn(n[1])),i&&a&&(a=r<=dn(i[1])),t?!a:a});return}a.value&&(s.value=n.matchMedia(D(e)),c.value=s.value.matches)}),W(s,`change`,e=>{c.value=e.matches},{passive:!0}),m(()=>c.value)}var Vn={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function Hn(e,t={}){function n(t,n){let r=D(e[D(t)]);return n!=null&&(r=un(r,n)),typeof r==`number`&&(r=`${r}px`),r}let{window:r=H,strategy:i=`min-width`,ssrWidth:a=Bn()}=t,o=typeof a==`number`,s=o?x(!1):{value:!0};o&&V(()=>s.value=!!r);function c(e,t){return!s.value&&o?e===`min`?a>=dn(t):a<=dn(t):r?r.matchMedia(`(${e}-width: ${t})`).matches:!1}let l=e=>K(()=>`(min-width: ${n(e)})`,t),u=e=>K(()=>`(max-width: ${n(e)})`,t),d=Object.keys(e).reduce((e,t)=>(Object.defineProperty(e,t,{get:()=>i===`min-width`?l(t):u(t),enumerable:!0,configurable:!0}),e),{});function f(){let t=Object.keys(e).map(e=>[e,d[e],dn(n(e))]).sort((e,t)=>e[2]-t[2]);return m(()=>t.filter(([,e])=>e.value).map(([e])=>e))}return Object.assign(d,{greaterOrEqual:l,smallerOrEqual:u,greater(e){return K(()=>`(min-width: ${n(e,.1)})`,t)},smaller(e){return K(()=>`(max-width: ${n(e,-.1)})`,t)},between(e,r){return K(()=>`(min-width: ${n(e)}) and (max-width: ${n(r,-.1)})`,t)},isGreater(e){return c(`min`,n(e,.1))},isGreaterOrEqual(e){return c(`min`,n(e))},isSmaller(e){return c(`max`,n(e,-.1))},isSmallerOrEqual(e){return c(`max`,n(e))},isInBetween(e,t){return c(`min`,n(e))&&c(`max`,n(t,-.1))},current:f,active(){let e=f();return m(()=>e.value.length===0?``:e.value.at(i===`min-width`?-1:0))}})}function Un(e,t={}){let{controls:n=!1,navigator:r=An}=t,i=G(()=>r&&`permissions`in r),a=x(),o=typeof e==`string`?{name:e}:e,s=x(),c=()=>{s.value=a.value?.state??`prompt`};W(a,`change`,c,{passive:!0});let l=ln(async()=>{if(i.value){if(!a.value)try{a.value=await r.permissions.query(o)}catch{a.value=void 0}finally{c()}if(n)return g(a.value)}});return l(),n?{state:s,isSupported:i,query:l}:s}function Wn(e={}){let{navigator:t=An,read:n=!1,source:r,copiedDuring:i=1500,legacy:a=!1}=e,o=G(()=>t&&`clipboard`in t),s=Un(`clipboard-read`),c=Un(`clipboard-write`),l=m(()=>o.value||a),u=x(``),d=x(!1),f=x(!1),p=xn(()=>d.value=!1,i,{immediate:!1}),h=0;async function g(){let e=!(o.value&&S(s.value));if(!e)try{u.value=await t.clipboard.readText()}catch{e=!0}e&&(u.value=b())}l.value&&n&&W([`copy`,`cut`],g,{passive:!0});async function _(e){let n=e??D(r);if(l.value&&n!=null){f.value=!0;let e=!(o.value&&S(c.value));if(!e)try{let e=v(n);await t.clipboard.write([e])}catch{e=!0}if(e){if(typeof n==`string`)u.value=n,y(n);else{let e=++h,t=await n();t!=null&&e===h&&(u.value=t,y(t))}}d.value=!0,p.start(),f.value=!1}}function v(e){return typeof e==`string`?(u.value=e,new ClipboardItem({"text/plain":e})):new ClipboardItem({"text/plain":e().then((e=``)=>(u.value=e,new Blob([e],{type:`text/plain`})))})}function y(e){let t=document.createElement(`textarea`);t.value=e,t.style.position=`absolute`,t.style.opacity=`0`,t.setAttribute(`readonly`,``),document.body.appendChild(t),t.select(),document.execCommand(`copy`),t.remove()}function b(){var e,t;return((e=document)==null||(t=e.getSelection)==null||(t=t.call(e))==null?void 0:t.toString())??``}function S(e){return e===`granted`||e===`prompt`}return{copyPending:w(f),isSupported:l,text:w(u),copied:w(d),copy:_}}function Gn(e){return JSON.parse(JSON.stringify(e))}var Kn=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},qn=`__vueuse_ssr_handlers__`,Jn=Yn();function Yn(){return qn in Kn||(Kn[qn]=Kn[qn]||{}),Kn[qn]}function Xn(e,t){return Jn[e]||t}function Zn(e){return K(`(prefers-color-scheme: dark)`,e)}function Qn(e){return e==null?`any`:e instanceof Set?`set`:e instanceof Map?`map`:e instanceof Date?`date`:typeof e==`boolean`?`boolean`:typeof e==`string`?`string`:typeof e==`object`?`object`:Number.isNaN(e)?`any`:`number`}var $n={boolean:{read:e=>e===`true`,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},er=`vueuse-storage`;function tr(e,t,n,i={}){let{flush:a=`pre`,deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:c=!0,mergeDefaults:u=!1,shallow:d,window:p=H,eventFilter:h,onError:g=e=>{console.error(e)},initOnMounted:_}=i,v=(d?x:f)(typeof t==`function`?t():t),y=m(()=>D(e));if(!n)try{n=Xn(`getDefaultStorage`,()=>H?.localStorage)()}catch(e){g(e)}if(!n)return v;let b=D(t),S=Qn(b),C=i.serializer??$n[S],{pause:w,resume:T}=_n(v,e=>k(e),{flush:a,deep:o,eventFilter:h});l(y,()=>A(),{flush:a});let E=!1;p&&s&&(n instanceof Storage?W(p,`storage`,e=>{_&&!E||A(e)},{passive:!0}):W(p,er,e=>{_&&!E||j(e)})),_?V(()=>{E=!0,A()}):A();function O(e,t){if(p){let r={key:y.value,oldValue:e,newValue:t,storageArea:n};p.dispatchEvent(n instanceof Storage?new StorageEvent(`storage`,r):new CustomEvent(er,{detail:r}))}}function k(e){try{let t=n.getItem(y.value);if(e==null)O(t,null),n.removeItem(y.value);else{let r=C.write(e);t!==r&&(n.setItem(y.value,r),O(t,r))}}catch(e){g(e)}}function ee(e){let t=e?e.newValue:n.getItem(y.value);if(t==null)return c&&b!=null&&n.setItem(y.value,C.write(b)),b;if(!e&&u){let e=C.read(t);return typeof u==`function`?u(e,b):S===`object`&&!Array.isArray(e)?{...b,...e}:e}return typeof t==`string`?C.read(t):t}function A(e){if(!(e&&e.storageArea!==n)){if(e&&e.key==null){v.value=b;return}if(!(e&&e.key!==y.value)){w();try{let t=C.write(v.value);(e===void 0||e?.newValue!==t)&&(v.value=ee(e))}catch(e){g(e)}finally{e?r(T):T()}}}}function j(e){A(e.detail)}return v}function nr(e={}){let{document:t=kn}=e;if(!t)return x(`visible`);let n=x(t.visibilityState);return W(t,`visibilitychange`,()=>{n.value=t.visibilityState},{passive:!0}),n}var rr={speed:2,margin:30,direction:`both`};function ir(e){e.scrollLeft>e.scrollWidth-e.clientWidth&&(e.scrollLeft=Math.max(0,e.scrollWidth-e.clientWidth)),e.scrollTop>e.scrollHeight-e.clientHeight&&(e.scrollTop=Math.max(0,e.scrollHeight-e.clientHeight))}function ar(e,t={}){let{pointerTypes:n,preventDefault:r,stopPropagation:i,exact:a,onMove:o,onEnd:s,onStart:c,initialValue:u,axis:d=`both`,draggingElement:p=H,containerElement:h,handle:g=e,buttons:_=[0],restrictInView:v,autoScroll:y=!1}=t,b=f(D(u)??{x:0,y:0}),x=f(),S=e=>!n||n.includes(e.pointerType),C=e=>{D(r)&&e.preventDefault(),D(i)&&e.stopPropagation()},w=D(y),T=typeof w==`object`?{speed:D(w.speed)??rr.speed,margin:D(w.margin)??rr.margin,direction:w.direction??rr.direction}:rr,E=e=>typeof e==`number`?[e,e]:[e.x,e.y],O=(e,t,n)=>{let{clientWidth:r,clientHeight:i,scrollLeft:a,scrollTop:o,scrollWidth:s,scrollHeight:c}=e,[l,u]=E(T.margin),[d,f]=E(T.speed),p=0,m=0;(T.direction===`x`||T.direction===`both`)&&(n.x0?p=-d:n.x+t.width>r-l&&a0?m=-f:n.y+t.height>i-u&&o{let t=D(h);t&&!k&&(k=setInterval(()=>{let n=D(e).getBoundingClientRect(),{x:r,y:i}=b.value,a={x:r-t.scrollLeft,y:i-t.scrollTop};a.x>=0&&a.y>=0&&(O(t,n,a),a.x+=t.scrollLeft,a.y+=t.scrollTop,b.value=a)},1e3/60))},A=()=>{k&&=(clearInterval(k),null)},j=(e,t,n,r)=>{let[i,a]=typeof n==`number`?[n,n]:[n.x,n.y],{clientWidth:o,clientHeight:s}=t;return e.xo-i||e.ys-a};D(y)&&l(b,()=>{if(D(t.disabled)||!x.value)return;let n=D(h);if(!n)return;let r=D(e).getBoundingClientRect(),{x:i,y:a}=b.value,o={x:i-n.scrollLeft,y:a-n.scrollTop};j(o,n,T.margin,r)?ee():A()});let te=n=>{var r;if(!D(_).includes(n.button)||D(t.disabled)||!S(n)||D(a)&&n.target!==D(e))return;let i=D(h),o=i==null||(r=i.getBoundingClientRect)==null?void 0:r.call(i),s=D(e).getBoundingClientRect(),l={x:n.clientX-(i?s.left-o.left+(y?0:i.scrollLeft):s.left),y:n.clientY-(i?s.top-o.top+(y?0:i.scrollTop):s.top)};c?.(l,n)!==!1&&(x.value=l,C(n))},M=n=>{if(D(t.disabled)||!S(n)||!x.value)return;let r=D(h);r instanceof HTMLElement&&ir(r);let i=D(e).getBoundingClientRect(),{x:a,y:s}=b.value;if((d===`x`||d===`both`)&&(a=n.clientX-x.value.x,r&&(a=Math.min(Math.max(0,a),r.scrollWidth-i.width))),(d===`y`||d===`both`)&&(s=n.clientY-x.value.y,r&&(s=Math.min(Math.max(0,s),r.scrollHeight-i.height))),D(y)&&r&&(k===null&&O(r,i,{x:a,y:s}),a+=r.scrollLeft,s+=r.scrollTop),r&&(v||y)){if(d!==`y`){let e=a-r.scrollLeft;e<0?a=r.scrollLeft:e>r.clientWidth-i.width&&(a=r.clientWidth-i.width+r.scrollLeft)}if(d!==`x`){let e=s-r.scrollTop;e<0?s=r.scrollTop:e>r.clientHeight-i.height&&(s=r.clientHeight-i.height+r.scrollTop)}}b.value={x:a,y:s},o?.(b.value,n),C(n)},N=e=>{D(t.disabled)||!S(e)||x.value&&(x.value=void 0,y&&A(),s?.(b.value,e),C(e))};if(z){let e=()=>({capture:t.capture??!0,passive:!D(r)});W(g,`pointerdown`,te,e),W(p,`pointermove`,M,e),W(p,[`pointerup`,`pointercancel`],N,e)}return{...vn(b),position:b,isDragging:m(()=>!!x.value),style:m(()=>` + left: ${b.value.x}px; + top: ${b.value.y}px; + ${y?`text-wrap: nowrap;`:``} + `)}}function or(e,t,n={}){let{window:r=H,...i}=n,a,o=G(()=>r&&`ResizeObserver`in r),s=()=>{a&&=(a.disconnect(),void 0)},c=l(m(()=>{let t=D(e);return Array.isArray(t)?t.map(e=>U(e)):[U(t)]}),e=>{if(s(),o.value&&r){a=new ResizeObserver(t);for(let t of e)t&&a.observe(t,i)}},{immediate:!0,flush:`post`}),u=()=>{s(),c()};return R(u),{isSupported:o,stop:u}}function sr(e,t={}){let{reset:n=!0,windowResize:r=!0,windowScroll:i=!0,immediate:a=!0,updateTiming:o=`sync`}=t,s=x(0),c=x(0),u=x(0),d=x(0),f=x(0),p=x(0),m=x(0),h=x(0);function g(){let t=U(e);if(!t){n&&(s.value=0,c.value=0,u.value=0,d.value=0,f.value=0,p.value=0,m.value=0,h.value=0);return}let r=t.getBoundingClientRect();s.value=r.height,c.value=r.bottom,u.value=r.left,d.value=r.right,f.value=r.top,p.value=r.width,m.value=r.x,h.value=r.y}function _(){o===`sync`?g():o===`next-frame`&&requestAnimationFrame(()=>g())}return or(e,_),l(()=>U(e),e=>!e&&_()),Pn(e,_,{attributeFilter:[`style`,`class`]}),i&&W(`scroll`,_,{capture:!0,passive:!0}),r&&W(`resize`,_,{passive:!0}),V(()=>{a&&_()}),{height:s,bottom:c,left:u,right:d,top:f,width:p,x:m,y:h,update:_}}function cr(e,t={width:0,height:0},n={}){let{window:r=H,box:i=`content-box`}=n,a=m(()=>{var t;return(t=U(e))==null||(t=t.namespaceURI)==null?void 0:t.includes(`svg`)}),o=x(t.width),s=x(t.height),{stop:c}=or(e,([t])=>{let n=i===`border-box`?t.borderBoxSize:i===`content-box`?t.contentBoxSize:t.devicePixelContentBoxSize;if(r&&a.value){let t=U(e);if(t){let e=t.getBoundingClientRect();o.value=e.width,s.value=e.height}}else if(n){let e=pn(n);o.value=e.reduce((e,{inlineSize:t})=>e+t,0),s.value=e.reduce((e,{blockSize:t})=>e+t,0)}else o.value=t.contentRect.width,s.value=t.contentRect.height},n);V(()=>{let n=U(e);if(n&&`offsetWidth`in n){if(i===`content-box`&&r){let e=r.getComputedStyle(n),t=Number.parseFloat(e.paddingLeft)+Number.parseFloat(e.paddingRight),i=Number.parseFloat(e.paddingTop)+Number.parseFloat(e.paddingBottom),a=Number.parseFloat(e.borderLeftWidth)+Number.parseFloat(e.borderRightWidth),c=Number.parseFloat(e.borderTopWidth)+Number.parseFloat(e.borderBottomWidth);o.value=n.offsetWidth-t-a,s.value=n.offsetHeight-i-c}else o.value=n.offsetWidth,s.value=n.offsetHeight}else n&&(o.value=t.width,s.value=t.height)});let u=l(()=>U(e),e=>{o.value=e?t.width:0,s.value=e?t.height:0});function d(){c(),u()}return{width:o,height:s,stop:d}}var lr=[`fullscreenchange`,`webkitfullscreenchange`,`webkitendfullscreen`,`mozfullscreenchange`,`MSFullscreenChange`];function ur(e,t={}){let{document:n=kn,autoExit:r=!1}=t,i=m(()=>U(e)??n?.documentElement),a=x(!1),o=m(()=>[`requestFullscreen`,`webkitRequestFullscreen`,`webkitEnterFullscreen`,`webkitEnterFullScreen`,`webkitRequestFullScreen`,`mozRequestFullScreen`,`msRequestFullscreen`].find(e=>n&&e in n||i.value&&e in i.value)),s=m(()=>[`exitFullscreen`,`webkitExitFullscreen`,`webkitExitFullScreen`,`webkitCancelFullScreen`,`mozCancelFullScreen`,`msExitFullscreen`].find(e=>n&&e in n||i.value&&e in i.value)),c=m(()=>[`fullScreen`,`webkitIsFullScreen`,`webkitDisplayingFullscreen`,`mozFullScreen`,`msFullscreenElement`].find(e=>n&&e in n||i.value&&e in i.value)),l=[`fullscreenElement`,`webkitFullscreenElement`,`mozFullScreenElement`,`msFullscreenElement`].find(e=>n&&e in n),u=G(()=>i.value&&n&&o.value!==void 0&&s.value!==void 0&&c.value!==void 0),d=()=>l?n?.[l]===i.value:!1,f=()=>{if(c.value){if(n&&n[c.value]!=null)return n[c.value];{let e=i.value;if(e?.[c.value]!=null)return!!e[c.value]}}return!1};async function p(){if(!(!u.value||!a.value)){if(s.value){if(n?.[s.value]!=null)await n[s.value]();else{let e=i.value;e?.[s.value]!=null&&await e[s.value]()}}a.value=!1}}async function h(){if(!u.value||a.value)return;f()&&await p();let e=i.value;o.value&&e?.[o.value]!=null&&(await e[o.value](),a.value=!0)}async function g(){await(a.value?p():h())}let _=()=>{let e=f();(!e||e&&d())&&(a.value=e)},v={capture:!1,passive:!0};return W(n,lr,_,v),W(()=>U(i),lr,_,v),V(_,!1),r&&R(p),{isSupported:u,isFullscreen:a,enter:h,exit:p,toggle:g}}function dr(e,t,n={}){let{window:r=H}=n;return tr(e,t,r?.localStorage,n)}var fr={ctrl:`control`,command:`meta`,cmd:`meta`,option:`alt`,up:`arrowup`,down:`arrowdown`,left:`arrowleft`,right:`arrowright`};function pr(e={}){let{reactive:t=!1,target:n=H,aliasMap:r=fr,passive:i=!0,onEventFired:a=B}=e,o=y(new Set),s={toJSON(){return{}},current:o},c=t?y(s):s,l=new Set,u=new Map([[`Meta`,l],[`Shift`,new Set],[`Alt`,new Set]]),d=new Set;function f(e,n){e in c&&(t?c[e]=n:c[e].value=n)}function p(){o.clear();for(let e of d)f(e,!1)}function h(e,t,n){if(!(!e||typeof t.getModifierState!=`function`)){for(let[e,r]of u)if(t.getModifierState(e)){n.forEach(e=>r.add(e));break}}}function g(e,t){if(e)return;let n=`${t[0].toUpperCase()}${t.slice(1)}`,r=u.get(n);if(![`shift`,`alt`].includes(t)||!r)return;let i=Array.from(r),a=i.indexOf(t);i.forEach((e,t)=>{t>=a&&(o.delete(e),f(e,!1))}),r.clear()}function _(e,t){let n=e.key?.toLowerCase(),r=[e.code?.toLowerCase(),n].filter(Boolean);if(n){n&&(t?o.add(n):o.delete(n));for(let e of r)d.add(e),f(e,t);h(t,e,[...o,...r]),g(t,n),n===`meta`&&!t&&(l.forEach(e=>{o.delete(e),f(e,!1)}),l.clear())}}W(n,`keydown`,e=>(_(e,!0),a(e)),{passive:i}),W(n,`keyup`,e=>(_(e,!1),a(e)),{passive:i}),W(`blur`,p,{passive:i}),W(`focus`,p,{passive:i});let v=new Proxy(c,{get(e,n,i){if(typeof n!=`string`)return Reflect.get(e,n,i);if(n=n.toLowerCase(),n in r&&(n=r[n]),!(n in c)){if(/[+_-]/.test(n)){let e=n.split(/[+_-]/g).map(e=>e.trim());c[n]=m(()=>e.map(e=>D(v[e])).every(Boolean))}else c[n]=x(!1)}let a=Reflect.get(e,n,i);return t?D(a):a}});return v}var mr={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof MouseEvent?[e.movementX,e.movementY]:null};function hr(e={}){let{type:t=`page`,touch:n=!0,resetOnTouchEnds:r=!1,initialValue:i={x:0,y:0},window:a=H,target:o=a,scroll:s=!0,eventFilter:c}=e,l=null,u=0,d=0,f=x(i.x),p=x(i.y),m=x(null),h=typeof t==`function`?t:mr[t],g=e=>{let t=h(e);l=e,t&&([f.value,p.value]=t,m.value=`mouse`),a&&(u=a.scrollX,d=a.scrollY)},_=e=>{if(e.touches.length>0){let t=h(e.touches[0]);t&&([f.value,p.value]=t,m.value=`touch`)}},v=()=>{if(!l||!a)return;let e=h(l);l instanceof MouseEvent&&e&&(f.value=e[0]+a.scrollX-u,p.value=e[1]+a.scrollY-d)},y=()=>{f.value=i.x,p.value=i.y},b=c?e=>c(()=>g(e),{}):e=>g(e),S=c?e=>c(()=>_(e),{}):e=>_(e),C=c?()=>c(()=>v(),{}):()=>v();if(o){let e={passive:!0};W(o,[`mousemove`,`dragover`],b,e),n&&t!==`movement`&&(W(o,[`touchstart`,`touchmove`],S,e),r&&W(o,`touchend`,y,e)),s&&t===`page`&&W(a,`scroll`,C,e)}return{x:f,y:p,sourceType:m}}function gr(e,t={}){let n=rn(e),{threshold:r=50,onSwipe:i,onSwipeEnd:a,onSwipeStart:o,disableTextSelect:s=!1}=t,c=y({x:0,y:0}),l=(e,t)=>{c.x=e,c.y=t},u=y({x:0,y:0}),d=(e,t)=>{u.x=e,u.y=t},f=m(()=>c.x-u.x),p=m(()=>c.y-u.y),{max:h,abs:g}=Math,_=m(()=>h(g(f.value),g(p.value))>=r),v=x(!1),b=x(!1),S=m(()=>_.value?g(f.value)>g(p.value)?f.value>0?`left`:`right`:p.value>0?`up`:`down`:`none`),C=e=>{let n=e.buttons===0,r=e.buttons===1;return t.pointerTypes?.includes(e.pointerType)??(n||r)??!0},T={passive:!0},D=[W(e,`pointerdown`,e=>{if(!C(e))return;b.value=!0,e.target?.setPointerCapture(e.pointerId);let{clientX:t,clientY:n}=e;l(t,n),d(t,n),o?.(e)},T),W(e,`pointermove`,e=>{if(!C(e)||!b.value)return;let{clientX:t,clientY:n}=e;d(t,n),!v.value&&_.value&&(v.value=!0),v.value&&i?.(e)},T),W(e,[`pointerup`,`pointercancel`],e=>{C(e)&&(v.value&&a?.(e,S.value),b.value=!1,v.value=!1)},T)];return V(()=>{var e;if((e=n.value)==null||(e=e.style)==null||e.setProperty(`touch-action`,`pan-y`),s){var t,r,i;(t=n.value)==null||(t=t.style)==null||t.setProperty(`-webkit-user-select`,`none`),(r=n.value)==null||(r=r.style)==null||r.setProperty(`-ms-user-select`,`none`),(i=n.value)==null||(i=i.style)==null||i.setProperty(`user-select`,`none`)}}),{isSwiping:w(v),direction:w(S),posStart:E(c),posEnd:E(u),distanceX:f,distanceY:p,stop:()=>D.forEach(e=>e())}}var _r=0,vr=new WeakMap;function yr(e,t={}){let n=x(!1),{document:r=kn,immediate:i=!0,manual:a=!1,id:o=`vueuse_styletag_${++_r}`}=t,s=x(e),c=()=>{},u=()=>{if(!r)return;let e=r.getElementById(o)||r.createElement(`style`);e.isConnected||(e.id=o,t.nonce&&(e.nonce=t.nonce),t.media&&(e.media=t.media),r.head.appendChild(e)),!n.value&&(vr.set(e,(vr.get(e)??0)+1),c=l(s,t=>{e.textContent=t},{immediate:!0}),n.value=!0)},d=()=>{if(!r||!n.value)return;c();let e=r.getElementById(o);if(e){let t=(vr.get(e)??1)-1;t<=0?(vr.delete(e),r.head.removeChild(e)):vr.set(e,t)}n.value=!1};return i&&!a&&V(u),a||R(d),{id:o,css:s,unload:d,load:u,isLoaded:w(n)}}function br(e,n,i,a={}){var o,s;let{clone:c=!1,passive:u=!1,eventName:d,deep:p=!1,defaultValue:h,shouldEmit:g}=a,_=t(),v=i||_?.emit||(_==null||(o=_.$emit)==null?void 0:o.bind(_))||(_==null||(s=_.proxy)==null||(s=s.$emit)==null?void 0:s.bind(_?.proxy)),y=d;n||=`modelValue`,y||=`update:${n.toString()}`;let b=e=>c?typeof c==`function`?c(e):Gn(e):e,x=()=>Xt(e[n])?b(e[n]):h,S=e=>{g?g(e)&&v(y,e):v(y,e)};if(u){let t=f(x()),i=!1;return l(()=>e[n],e=>{i||(i=!0,t.value=b(e),r(()=>i=!1))}),l(t,t=>{!i&&(t!==e[n]||p)&&S(t)},{deep:p}),t}return m({get(){return x()},set(e){S(e)}})}function xr(e={}){let{navigator:t=An,document:n=kn}=e,r=x(!1),i=x(null),a=nr({document:n}),o=G(()=>t&&`wakeLock`in t),s=m(()=>!!i.value&&a.value===`visible`);o.value&&(W(i,`release`,()=>{r.value=i.value?.type??!1},{passive:!0}),On(()=>a.value===`visible`&&n?.visibilityState===`visible`&&r.value,e=>{r.value=!1,c(e)}));async function c(e){await i.value?.release(),i.value=o.value?await t.wakeLock.request(e):null}async function l(e){a.value===`visible`?await c(e):r.value=e}async function u(){r.value=!1;let e=i.value;i.value=null,await e?.release()}return R(()=>{u()}),{sentinel:i,isSupported:o,isActive:s,request:l,forceRequest:c,release:u}}function Sr(e={}){let{window:t=H}=e;if(!t)return x(!1);let n=x(t.document.hasFocus()),r={passive:!0};return W(t,`blur`,()=>{n.value=!1},r),W(t,`focus`,()=>{n.value=!0},r),n}function Cr(e={}){let{window:t=H,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:i=!0,includeScrollbar:a=!0,type:o=`inner`}=e,s=x(n),c=x(r),u=()=>{if(t){if(o===`outer`)s.value=t.outerWidth,c.value=t.outerHeight;else if(o===`visual`&&t.visualViewport){let{width:e,height:n,scale:r}=t.visualViewport;s.value=Math.round(e*r),c.value=Math.round(n*r)}else a?(s.value=t.innerWidth,c.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,c.value=t.document.documentElement.clientHeight)}};u(),V(u);let d={passive:!0};return W(`resize`,u,d),t&&o===`visual`&&t.visualViewport&&W(t.visualViewport,`resize`,u,d),i&&l(K(`(orientation: portrait)`),()=>u()),{width:s,height:c}}function wr(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)===`[object Module]`:!0}function Tr(e,t,n=`.`,r){if(!wr(t))return Tr(e,{},n,r);let i={...t};for(let t of Object.keys(e)){if(t===`__proto__`||t===`constructor`)continue;let a=e[t];a!=null&&(r&&r(i,t,a,n)||(i[t]=Array.isArray(a)&&Array.isArray(i[t])?[...a,...i[t]]:wr(a)&&wr(i[t])?Tr(a,i[t],(n?`${n}.`:``)+t.toString(),r):a))}return i}function Er(e){return(...t)=>t.reduce((t,n)=>Tr(t,n,``,e),{})}var Dr=Er();function Or(e){return _()?(d(e),!0):!1}var kr=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var Ar=e=>e!=null,jr=Object.prototype.toString,Mr=e=>jr.call(e)===`[object Object]`,Nr=()=>{};function Pr(e){return Array.isArray(e)?e:[e]}function Fr(e){return e||t()}function Ir(e,t){Fr(t)&&k(e,t)}function Lr(e,t,n){return l(e,t,{...n,immediate:!0})}var Rr=kr?window:void 0;kr&&window.document,kr&&window.navigator,kr&&window.location;function zr(e){let t=D(e);return t?.$el??t}function q(...e){let t=[],n=()=>{t.forEach(e=>e()),t.length=0},r=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),i=m(()=>{let t=Pr(D(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0}),a=Lr(()=>[i.value?.map(e=>zr(e))??[Rr].filter(e=>e!=null),Pr(D(i.value?e[1]:e[0])),Pr(O(i.value?e[2]:e[1])),D(i.value?e[3]:e[2])],([e,i,a,o])=>{if(n(),!e?.length||!i?.length||!a?.length)return;let s=Mr(o)?{...o}:o;t.push(...e.flatMap(e=>i.flatMap(t=>a.map(n=>r(e,t,n,s)))))},{flush:`post`});return Or(n),()=>{a(),n()}}function Br(){let e=x(!1),n=t();return n&&a(()=>{e.value=!0},n),e}function Vr(e){let t=Br();return m(()=>(t.value,!!e()))}function Hr(e,t,n={}){let{root:r,rootMargin:i=`0px`,threshold:a=0,window:o=Rr,immediate:s=!0}=n,c=Vr(()=>o&&`IntersectionObserver`in o),u=m(()=>Pr(D(e)).map(zr).filter(Ar)),d=Nr,f=x(s),p=c.value?l(()=>[u.value,zr(r),f.value],([e,n])=>{if(d(),!f.value||!e.length)return;let r=new IntersectionObserver(t,{root:zr(n),rootMargin:i,threshold:a});e.forEach(e=>e&&r.observe(e)),d=()=>{r.disconnect(),d=Nr}},{immediate:s,flush:`post`}):Nr,h=()=>{d(),p(),f.value=!1};return Or(h),{isSupported:c,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:h}}var Ur=1/60*1e3,Wr=typeof performance<`u`?()=>performance.now():()=>Date.now(),Gr=typeof window<`u`?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(Wr()),Ur);function Kr(e){let t=[],n=[],r=0,i=!1,a=!1,o=new WeakSet,s={schedule:(e,a=!1,s=!1)=>{let c=s&&i,l=c?t:n;return a&&o.add(e),l.indexOf(e)===-1&&(l.push(e),c&&i&&(r=t.length)),e},cancel:e=>{let t=n.indexOf(e);t!==-1&&n.splice(t,1),o.delete(e)},process:c=>{if(i){a=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n(e[t]=Kr(()=>Yr=!0),e),{}),ei=Qr.reduce((e,t)=>{let n=$r[t];return e[t]=(e,t=!1,r=!1)=>(Yr||ii(),n.schedule(e,t,r)),e},{}),ti=Qr.reduce((e,t)=>(e[t]=$r[t].cancel,e),{});Qr.reduce((e,t)=>(e[t]=()=>$r[t].process(Zr),e),{});var ni=e=>$r[e].process(Zr),ri=e=>{Yr=!1,Zr.delta=Jr?Ur:Math.max(Math.min(e-Zr.timestamp,qr),1),Zr.timestamp=e,Xr=!0,Qr.forEach(ni),Xr=!1,Yr&&(Jr=!1,Gr(ri))},ii=()=>{Yr=!0,Jr=!0,Xr||Gr(ri)},ai=()=>Zr;function oi(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);iMath.min(Math.max(n,e),t),ci=.001,li=.01,ui=.05;function di({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,a,o=1-t;o=si(ui,1,o),e=si(li,10,e/1e3),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=mi(t,o),c=Math.exp(-i);return ci-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=mi(t**2,o);return(-i(t)+ci>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=pi(i,a,s);if(e*=1e3,isNaN(c))return{stiffness:100,damping:10,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var fi=12;function pi(e,t,n){let r=n;for(let n=1;ne[t]!==void 0)}function vi(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!_i(e,gi)&&_i(e,hi)){let n=di(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function yi(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,a=oi(e,[`from`,`to`,`restSpeed`,`restDelta`]);let o={done:!1,value:t},{stiffness:s,damping:c,mass:l,velocity:u,duration:d,isResolvedFromDuration:f}=vi(a),p=bi,m=bi;function h(){let e=u?-(u/1e3):0,r=n-t,a=c/(2*Math.sqrt(s*l)),o=Math.sqrt(s/l)/1e3;if(i===void 0&&(i=Math.min(Math.abs(n-t)/100,.4)),a<1){let t=mi(o,a);p=i=>{let s=Math.exp(-a*o*i);return n-s*((e+a*o*r)/t*Math.sin(t*i)+r*Math.cos(t*i))},m=n=>{let i=Math.exp(-a*o*n);return a*o*i*(Math.sin(t*n)*(e+a*o*r)/t+r*Math.cos(t*n))-i*(Math.cos(t*n)*(e+a*o*r)-t*r*Math.sin(t*n))}}else if(a===1)p=t=>n-Math.exp(-o*t)*(r+(e+o*r)*t);else{let t=o*Math.sqrt(a*a-1);p=i=>{let s=Math.exp(-a*o*i),c=Math.min(t*i,300);return n-s*((e+a*o*r)*Math.sinh(c)+t*r*Math.cosh(c))/t}}}return h(),{next:e=>{let t=p(e);if(f)o.done=e>=d;else{let a=m(e)*1e3,s=Math.abs(a)<=r,c=Math.abs(n-t)<=i;o.done=s&&c}return o.value=o.done?n:t,o},flipTarget:()=>{u=-u,[t,n]=[n,t],h()}}}yi.needsInterpolation=(e,t)=>typeof e==`string`||typeof t==`string`;var bi=e=>0,xi=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},Si=(e,t,n)=>-n*e+n*t+e,Ci=(e,t)=>n=>Math.max(Math.min(n,t),e),wi=e=>e%1?Number(e.toFixed(5)):e,Ti=/(-)?([\d]*\.?[\d])+/g,Ei=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Di=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Oi(e){return typeof e==`string`}var ki={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Ai=Object.assign(Object.assign({},ki),{transform:Ci(0,1)}),ji=Object.assign(Object.assign({},ki),{default:1}),Mi=e=>({test:t=>Oi(t)&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),J=Mi(`deg`),Ni=Mi(`%`),Y=Mi(`px`),Pi=Object.assign(Object.assign({},Ni),{parse:e=>Ni.parse(e)/100,transform:e=>Ni.transform(e*100)}),Fi=(e,t)=>n=>!!(Oi(n)&&Di.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Ii=(e,t,n)=>r=>{if(!Oi(r))return r;let[i,a,o,s]=r.match(Ti);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},X={test:Fi(`hsl`,`hue`),parse:Ii(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+Ni.transform(wi(t))+`, `+Ni.transform(wi(n))+`, `+wi(Ai.transform(r))+`)`},Li=Ci(0,255),Ri=Object.assign(Object.assign({},ki),{transform:e=>Math.round(Li(e))}),Z={test:Fi(`rgb`,`red`),parse:Ii(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Ri.transform(e)+`, `+Ri.transform(t)+`, `+Ri.transform(n)+`, `+wi(Ai.transform(r))+`)`};function zi(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var Bi={test:Fi(`#`),parse:zi,transform:Z.transform},Q={test:e=>Z.test(e)||Bi.test(e)||X.test(e),parse:e=>Z.test(e)?Z.parse(e):X.test(e)?X.parse(e):Bi.parse(e),transform:e=>Oi(e)?e:e.hasOwnProperty(`red`)?Z.transform(e):X.transform(e)},Vi="${c}",Hi="${n}";function Ui(e){return isNaN(e)&&Oi(e)&&(e.match(Ti)?.length??0)+(e.match(Ei)?.length??0)>0}function Wi(e){typeof e==`number`&&(e=`${e}`);let t=[],n=0,r=e.match(Ei);r&&(n=r.length,e=e.replace(Ei,Vi),t.push(...r.map(Q.parse)));let i=e.match(Ti);return i&&(e=e.replace(Ti,Hi),t.push(...i.map(ki.parse))),{values:t,numColors:n,tokenised:e}}function Gi(e){return Wi(e).values}function Ki(e){let{values:t,numColors:n,tokenised:r}=Wi(e),i=t.length;return e=>{let t=r;for(let r=0;rtypeof e==`number`?0:e;function Ji(e){let t=Gi(e);return Ki(e)(t.map(qi))}var Yi={test:Ui,parse:Gi,createTransformer:Ki,getAnimatableNone:Ji},Xi=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Zi(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Ti)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Xi.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Qi=/([a-z-]*)\(.*?\)/g,$i=Object.assign(Object.assign({},Yi),{getAnimatableNone:e=>{let t=e.match(Qi);return t?t.map(Zi).join(` `):e}});function ea(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ta({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=ea(s,r,e+1/3),a=ea(s,r,e),o=ea(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}var na=(e,t,n)=>{let r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},ra=[Bi,Z,X],ia=e=>ra.find(t=>t.test(e)),aa=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,oa=(e,t)=>{let n=ia(e),r=ia(t);aa(e),aa(t);let i=n.parse(e),a=r.parse(t);n===X&&(i=ta(i),n=Z),r===X&&(a=ta(a),r=Z);let o=Object.assign({},i);return e=>{for(let t in o)t!==`alpha`&&(o[t]=na(i[t],a[t],e));return o.alpha=Si(i.alpha,a.alpha,e),n.transform(o)}},sa=e=>typeof e==`number`,ca=(e,t)=>n=>t(e(n)),la=(...e)=>e.reduce(ca);function ua(e,t){return sa(e)?n=>Si(e,t,n):Q.test(e)?oa(e,t):ma(e,t)}var da=(e,t)=>{let n=[...e],r=n.length,i=e.map((e,n)=>ua(e,t[n]));return e=>{for(let t=0;t{let n=Object.assign(Object.assign({},e),t),r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=ua(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}};function pa(e){let t=Yi.parse(e),n=t.length,r=0,i=0,a=0;for(let e=0;e{let n=Yi.createTransformer(t),r=pa(e),i=pa(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?la(da(r.parsed,i.parsed),n):(`${e}${t}`,n=>`${n>0?t:e}`)},ha=(e,t)=>n=>Si(e,t,n);function ga(e){if(typeof e==`number`)return ha;if(typeof e==`string`)return Q.test(e)?oa:ma;if(Array.isArray(e))return da;if(typeof e==`object`)return fa}function _a(e,t,n){let r=[],i=n||ga(e[0]),a=e.length-1;for(let n=0;nn(xi(e,t,r))}function ya(e,t){let n=e.length,r=n-1;return i=>{let a=0,o=!1;if(i<=e[0]?o=!0:i>=e[r]&&(a=r-1,o=!0),!o){let t=1;for(;ti||t===r);t++);a=t-1}let s=xi(e[a],e[a+1],i);return t[a](s)}}function ba(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;t.length,!r||!Array.isArray(r)||(r.length,a-1),e[0]>e[a-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());let o=_a(t,r,i),s=a===2?va(e,o):ya(e,o);return n?t=>s(si(e[0],e[a-1],t)):s}var xa=e=>t=>1-e(1-t),Sa=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ca=e=>t=>t**+e,wa=e=>t=>t*t*((e+1)*t-e),Ta=e=>{let t=wa(e);return e=>(e*=2)<1?.5*t(e):.5*(2-2**(-10*(e-1)))},Ea=1.525,Da=4/11,Oa=8/11,ka=9/10,Aa=e=>e,ja=Ca(2),Ma=xa(ja),Na=Sa(ja),Pa=e=>1-Math.sin(Math.acos(e)),Fa=xa(Pa),Ia=Sa(Fa),La=wa(Ea),Ra=xa(La),za=Sa(La),Ba=Ta(Ea),Va=4356/361,Ha=35442/1805,Ua=16061/1805,Wa=e=>{if(e===1||e===0)return e;let t=e*e;return ee<.5?.5*(1-Wa(1-e*2)):.5*Wa(e*2-1)+.5;function qa(e,t){return e.map(()=>t||Na).splice(0,e.length-1)}function Ja(e){let t=e.length;return e.map((e,n)=>n===0?0:n/(t-1))}function Ya(e,t){return e.map(e=>e*t)}function Xa({from:e=0,to:t=1,ease:n,offset:r,duration:i=300}){let a={done:!1,value:e},o=Array.isArray(t)?t:[e,t],s=Ya(r&&r.length===o.length?r:Ja(o),i);function c(){return ba(s,o,{ease:Array.isArray(n)?n:qa(o,n)})}let l=c();return{next:e=>(a.value=l(e),a.done=e>=i,a),flipTarget:()=>{o.reverse(),l=c()}}}function Za({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:a}){let o={done:!1,value:t},s=n*e,c=t+s,l=a===void 0?c:a(c);return l!==c&&(s=l-t),{next:e=>{let t=-s*Math.exp(-e/r);return o.done=!(t>i||t<-i),o.value=o.done?l:l+t,o},flipTarget:()=>{}}}var Qa={keyframes:Xa,spring:yi,decay:Za};function $a(e){if(Array.isArray(e.to))return Xa;if(Qa[e.type])return Qa[e.type];let t=new Set(Object.keys(e));return t.has(`ease`)||t.has(`duration`)&&!t.has(`dampingRatio`)?Xa:t.has(`dampingRatio`)||t.has(`stiffness`)||t.has(`mass`)||t.has(`damping`)||t.has(`restSpeed`)||t.has(`restDelta`)?yi:Xa}function eo(e,t,n=0){return e-t-n}function to(e,t,n=0,r=!0){return r?eo(t+-e,t,n):t-(e-t)+n}function no(e,t,n,r){return r?e>=t+n:e<=-n}var ro=e=>{let t=({delta:t})=>e(t);return{start:()=>ei.update(t,!0),stop:()=>ti.update(t)}};function io(e){var t,{from:n,autoplay:r=!0,driver:i=ro,elapsed:a=0,repeat:o=0,repeatType:s=`loop`,repeatDelay:c=0,onPlay:l,onStop:u,onComplete:d,onRepeat:f,onUpdate:p}=e,m=oi(e,[`from`,`autoplay`,`driver`,`elapsed`,`repeat`,`repeatType`,`repeatDelay`,`onPlay`,`onStop`,`onComplete`,`onRepeat`,`onUpdate`]);let{to:h}=m,g,_=0,v=m.duration,y,b=!1,x=!0,S,C=$a(m);(t=C).needsInterpolation?.call(t,n,h)&&(S=ba([0,100],[n,h],{clamp:!1}),n=0,h=100);let w=C(Object.assign(Object.assign({},m),{from:n,to:h}));function T(){_++,s===`reverse`?(x=_%2==0,a=to(a,v,c,x)):(a=eo(a,v,c),s===`mirror`&&w.flipTarget()),b=!1,f&&f()}function E(){g.stop(),d&&d()}function D(e){if(x||(e=-e),a+=e,!b){let e=w.next(Math.max(0,a));y=e.value,S&&(y=S(y)),b=x?e.done:a<=0}p?.(y),b&&(_===0&&(v??=a),_{u?.(),g.stop()}}}function ao(e,t){return t?1e3/t*e:0}function oo({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:a=750,bounceStiffness:o=500,bounceDamping:s=10,restDelta:c=1,modifyTarget:l,driver:u,onUpdate:d,onComplete:f,onStop:p}){let m;function h(e){return n!==void 0&&er}function g(e){return n===void 0?r:r===void 0||Math.abs(n-e){var n;d?.(t),(n=e.onUpdate)==null||n.call(e,t)},onComplete:f,onStop:p}))}function v(e){_(Object.assign({type:`spring`,stiffness:o,damping:s,restDelta:c},e))}if(h(e))v({from:e,velocity:t,to:g(e)});else{let r=i*t+e;l!==void 0&&(r=l(r));let o=g(r),s=o===n?-1:1,u,d;_({type:`decay`,from:e,velocity:t,timeConstant:a,power:i,restDelta:c,modifyTarget:l,onUpdate:h(r)?e=>{u=d,d=e,t=ao(e-u,ai().delta),(s===1&&e>o||s===-1&&em?.stop()}}var so=(e,t)=>1-3*t+3*e,co=(e,t)=>3*t-6*e,lo=e=>3*e,uo=(e,t,n)=>((so(t,n)*e+co(t,n))*e+lo(t))*e,fo=(e,t,n)=>3*so(t,n)*e*e+2*co(t,n)*e+lo(t),po=1e-7,mo=10;function ho(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=uo(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>po&&++s=_o?vo(t,s,e,n):c===0?s:ho(t,r,r+bo,e,n)}return e=>e===0||e===1?e:uo(a(e),t,r)}var So={},Co=class{subscriptions=new Set;add(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}notify(e,t,n){if(this.subscriptions.size)for(let r of this.subscriptions)r(e,t,n)}clear(){this.subscriptions.clear()}};function wo(e){return!Number.isNaN(Number.parseFloat(e))}var To=class{current;prev;timeDelta=0;lastUpdated=0;updateSubscribers=new Co;stopAnimation;canTrackVelocity=!1;constructor(e){this.prev=this.current=e,this.canTrackVelocity=wo(this.current)}onChange(e){return this.updateSubscribers.add(e)}clearListeners(){this.updateSubscribers.clear()}set(e){this.updateAndNotify(e)}updateAndNotify=e=>{this.prev=this.current,this.current=e;let{delta:t,timestamp:n}=ai();this.lastUpdated!==n&&(this.timeDelta=t,this.lastUpdated=n),ei.postRender(this.scheduleVelocityCheck),this.updateSubscribers.notify(this.current)};get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?ao(Number.parseFloat(this.current)-Number.parseFloat(this.prev),this.timeDelta):0}scheduleVelocityCheck=()=>ei.postRender(this.velocityCheck);velocityCheck=({timestamp:e})=>{this.canTrackVelocity||=wo(this.current),e!==this.lastUpdated&&(this.prev=this.current)};start(e){return this.stop(),new Promise(t=>{let{stop:n}=e(t);this.stopAnimation=n}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.stop()}};function Eo(e){return new To(e)}var{isArray:Do}=Array;function Oo(){let e=f({}),t=t=>{let n=t=>{e.value[t]&&(e.value[t].stop(),e.value[t].destroy(),delete e.value[t])};t?Do(t)?t.forEach(n):n(t):Object.keys(e.value).forEach(n)};return Ir(t),{motionValues:e,get:(t,n,r)=>{if(e.value[t])return e.value[t];let i=Eo(n);return i.onChange(e=>r[t]=e),e.value[t]=i,i},stop:t}}function ko(e){return Array.isArray(e)}function $(){return{type:`spring`,stiffness:500,damping:25,restDelta:.5,restSpeed:10}}function Ao(e){return{type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}}function jo(e){return{type:`spring`,stiffness:550,damping:e===0?100:30,restDelta:.01,restSpeed:10}}function Mo(){return{type:`keyframes`,ease:`linear`,duration:300}}function No(e){return{type:`keyframes`,duration:800,values:e}}var Po={default:jo,x:$,y:$,z:$,rotate:$,rotateX:$,rotateY:$,rotateZ:$,scaleX:Ao,scaleY:Ao,scale:Ao,backgroundColor:Mo,color:Mo,opacity:Mo};function Fo(e,t){let n;return n=ko(t)?No:Po[e]||Po.default,{to:t,...n(t)}}var Io={...ki,transform:Math.round},Lo={color:Q,backgroundColor:Q,outlineColor:Q,fill:Q,stroke:Q,borderColor:Q,borderTopColor:Q,borderRightColor:Q,borderBottomColor:Q,borderLeftColor:Q,borderWidth:Y,borderTopWidth:Y,borderRightWidth:Y,borderBottomWidth:Y,borderLeftWidth:Y,borderRadius:Y,radius:Y,borderTopLeftRadius:Y,borderTopRightRadius:Y,borderBottomRightRadius:Y,borderBottomLeftRadius:Y,width:Y,maxWidth:Y,height:Y,maxHeight:Y,size:Y,top:Y,right:Y,bottom:Y,left:Y,padding:Y,paddingTop:Y,paddingRight:Y,paddingBottom:Y,paddingLeft:Y,margin:Y,marginTop:Y,marginRight:Y,marginBottom:Y,marginLeft:Y,rotate:J,rotateX:J,rotateY:J,rotateZ:J,scale:ji,scaleX:ji,scaleY:ji,scaleZ:ji,skew:J,skewX:J,skewY:J,distance:Y,translateX:Y,translateY:Y,translateZ:Y,x:Y,y:Y,z:Y,perspective:Y,transformPerspective:Y,opacity:Ai,originX:Pi,originY:Pi,originZ:Y,zIndex:Io,filter:$i,WebkitFilter:$i,fillOpacity:Ai,strokeOpacity:Ai,numOctaves:Io},Ro=e=>Lo[e];function zo(e,t){return t&&typeof e==`number`&&t.transform?t.transform(e):e}function Bo(e,t){let n=Ro(e);return n!==$i&&(n=Yi),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var Vo={linear:Aa,easeIn:ja,easeInOut:Na,easeOut:Ma,circIn:Pa,circInOut:Ia,circOut:Fa,backIn:La,backInOut:za,backOut:Ra,anticipate:Ba,bounceIn:Ga,bounceInOut:Ka,bounceOut:Wa};function Ho(e){if(Array.isArray(e)){let[t,n,r,i]=e;return xo(t,n,r,i)}return typeof e==`string`?Vo[e]:e}function Uo(e){return Array.isArray(e)&&typeof e[0]!=`number`}function Wo(e,t){return e!==`zIndex`&&!!(typeof t==`number`||Array.isArray(t)||typeof t==`string`&&Yi.test(t)&&!t.startsWith(`url(`))}function Go(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=[...e.to],e.to[0]=e.from),e}function Ko({ease:e,times:t,delay:n,...r}){let i={...r};return t&&(i.offset=t),e&&(i.ease=Uo(e)?e.map(Ho):Ho(e)),n&&(i.elapsed=-n),i}function qo(e,t,n){return Array.isArray(t.to)&&(e.duration||(e.duration=800)),Go(t),Jo(e)||(e={...e,...Fo(n,t.to)}),{...t,...Ko(e)}}function Jo({delay:e,repeat:t,repeatType:n,repeatDelay:r,from:i,...a}){return!!Object.keys(a).length}function Yo(e,t){return e[t]||e.default||e}function Xo(e,t,n,r,i){let a=Yo(r,e),o=a.from===null||a.from===void 0?t.get():a.from,s=Wo(e,n);o===`none`&&s&&typeof n==`string`&&(o=Bo(e,n));let c=Wo(e,o);function l(s){let c={from:o,to:n,velocity:r.velocity?r.velocity:t.getVelocity(),onUpdate:e=>t.set(e)};return a.type===`inertia`||a.type===`decay`?oo({...c,...a}):io({...qo(a,c,e),onUpdate:e=>{c.onUpdate(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{i&&i(),s&&s()}})}function u(e){return t.set(n),i&&i(),e&&e(),{stop:()=>{}}}return!c||!s||a.type===!1?u:l}function Zo(){let{motionValues:e,stop:t,get:n}=Oo();return{motionValues:e,stop:t,push:(e,t,r,i={},a)=>{let o=r[e],s=n(e,o,r);if(i&&i.immediate){s.set(t);return}let c=Xo(e,s,t,i,a);s.start(c)}}}function Qo(e,t={},{motionValues:n,push:r,stop:i}=Zo()){let a=O(t),o=f(!1);l(n,e=>{o.value=Object.values(e).filter(e=>e.isAnimating()).length>0},{immediate:!0,deep:!0});let s=e=>{if(!a||!a[e])throw Error(`The variant ${e} does not exist.`);return a[e]},c=t=>{typeof t==`string`&&(t=s(t));let n=Object.entries(t).map(([n,i])=>{if(n!==`transition`)return new Promise(a=>r(n,i,e,t.transition||Fo(n,t[n]),a))}).filter(Boolean);async function i(){await Promise.all(n),t.transition?.onComplete?.()}return Promise.all([i()])};return{isAnimating:o,apply:c,set:t=>{let n=Mr(t)?t:s(t);Object.entries(n).forEach(([t,n])=>{t!==`transition`&&r(t,n,e,{immediate:!0})})},leave:async e=>{let t;if(a&&(a.leave&&(t=a.leave),!a.leave&&a.initial&&(t=a.initial)),!t){e();return}await c(t),e()},stop:i}}var $o=typeof window<`u`,es=()=>$o&&(window.onpointerdown===null||void 0),ts=()=>$o&&(window.ontouchstart===null||void 0),ns=()=>$o&&(window.onmousedown===null||void 0);function rs({target:e,state:t,variants:n,apply:r}){let i=O(n),a=f(!1),o=f(!1),s=f(!1),c=m(()=>{let e=[...Object.keys(t.value||{})];return i?(i.hovered&&(e=[...e,...Object.keys(i.hovered)]),i.tapped&&(e=[...e,...Object.keys(i.tapped)]),i.focused&&(e=[...e,...Object.keys(i.focused)]),e):e}),u=m(()=>{let e={};Object.assign(e,t.value),a.value&&i.hovered&&Object.assign(e,i.hovered),o.value&&i.tapped&&Object.assign(e,i.tapped),s.value&&i.focused&&Object.assign(e,i.focused);for(let t in e)c.value.includes(t)||delete e[t];return e});i.hovered&&(q(e,`mouseenter`,()=>a.value=!0),q(e,`mouseleave`,()=>{a.value=!1,o.value=!1})),i.tapped&&(ns()&&(q(e,`mousedown`,()=>o.value=!0),q(e,`mouseup`,()=>o.value=!1)),es()&&(q(e,`pointerdown`,()=>o.value=!0),q(e,`pointerup`,()=>o.value=!1)),ts()&&(q(e,`touchstart`,()=>o.value=!0),q(e,`touchend`,()=>o.value=!1))),i.focused&&(q(e,`focus`,()=>s.value=!0),q(e,`blur`,()=>s.value=!1)),l([a,o,s],()=>{r(u.value)})}function is({set:e,target:t,variants:n,variant:r}){let i=O(n);l(()=>t,()=>{i&&(i.initial&&(e(`initial`),r.value=`initial`),i.enter&&(r.value=`enter`))},{immediate:!0,flush:`pre`})}function as({state:e,apply:t}){l(e,e=>{e&&t(e)},{immediate:!0})}function os({target:e,variants:t,variant:n}){let r=O(t);r&&(r.visible||r.visibleOnce)&&Hr(e,([{isIntersecting:e}])=>{r.visible?n.value=e?`visible`:`initial`:r.visibleOnce&&(e&&n.value!==`visibleOnce`?n.value=`visibleOnce`:n.value||=`initial`)})}function ss(e,t={syncVariants:!0,lifeCycleHooks:!0,visibilityHooks:!0,eventListeners:!0}){t.lifeCycleHooks&&is(e),t.syncVariants&&as(e),t.visibilityHooks&&os(e),t.eventListeners&&rs(e)}function cs(e={}){let t=y({...e}),n=f({});return l(t,()=>{let e={};for(let[n,r]of Object.entries(t))e[n]=zo(r,Ro(n));n.value=e},{immediate:!0,deep:!0}),{state:t,style:n}}function ls(e,t){l(()=>zr(e),e=>{e&&t(e)},{immediate:!0})}var us={x:`translateX`,y:`translateY`,z:`translateZ`};function ds(e={},t=!0){let n=y({...e}),r=f(``);return l(n,e=>{let n=``,i=!1;if(t&&(e.x||e.y||e.z)){let t=[e.x||0,e.y||0,e.z||0].map(e=>zo(e,Y)).join(`,`);n+=`translate3d(${t}) `,i=!0}for(let[r,i]of Object.entries(e)){if(t&&(r===`x`||r===`y`||r===`z`))continue;let e=zo(i,Ro(r));n+=`${us[r]||r}(${e}) `}t&&!i&&(n+=`translateZ(0px) `),r.value=n.trim()},{immediate:!0,deep:!0}),{state:n,transform:r}}var fs=[``,`X`,`Y`,`Z`],ps=[`perspective`,`translate`,`scale`,`rotate`,`skew`],ms=[`transformPerspective`,`x`,`y`,`z`];ps.forEach(e=>{fs.forEach(t=>{let n=e+t;ms.push(n)})});var hs=new Set(ms);function gs(e){return hs.has(e)}var _s=new Set([`originX`,`originY`,`originZ`]);function vs(e){return _s.has(e)}function ys(e){let t={},n={};return Object.entries(e).forEach(([e,r])=>{gs(e)||vs(e)?t[e]=r:n[e]=r}),{transform:t,style:n}}function bs(e){let{transform:t,style:n}=ys(e),{transform:r}=ds(t),{style:i}=cs(n);return r.value&&(i.value.transform=r.value),i.value}function xs(e,t){let n,r,{state:i,style:a}=cs();return ls(e,e=>{r=e;for(let t of Object.keys(Lo))e.style[t]===null||e.style[t]===``||gs(t)||vs(t)||(i[t]=e.style[t]);n&&Object.entries(n).forEach(([t,n])=>e.style[t]=n),t&&t(i)}),l(a,e=>{if(!r){n=e;return}for(let t in e)r.style[t]=e[t]},{immediate:!0}),{style:i}}function Ss(e){let t=e.trim().split(/\) |\)/);if(t.length===1)return{};let n=e=>e.endsWith(`px`)||e.endsWith(`deg`)?Number.parseFloat(e):Number.isNaN(Number(e))?Number(e):e;return t.reduce((e,t)=>{if(!t)return e;let[r,i]=t.split(`(`),a=i.split(`,`).map(e=>n(e.endsWith(`)`)?e.replace(`)`,``):e.trim())),o=a.length===1?a[0]:a;return{...e,[r]:o}},{})}function Cs(e,t){Object.entries(Ss(t)).forEach(([t,n])=>{let r=[`x`,`y`,`z`];if(t===`translate3d`){if(n===0){r.forEach(t=>e[t]=0);return}n.forEach((t,n)=>e[r[n]]=t);return}if(n=Number.parseFloat(`${n}`),t===`translateX`){e.x=n;return}if(t===`translateY`){e.y=n;return}if(t===`translateZ`){e.z=n;return}e[t]=n})}function ws(e,t){let n,r,{state:i,transform:a}=ds();return ls(e,e=>{r=e,e.style.transform&&Cs(i,e.style.transform),n&&(e.style.transform=n),t&&t(i)}),l(a,e=>{if(!r){n=e;return}r.style.transform=e},{immediate:!0}),{transform:i}}function Ts(e){return Object.entries(e)}function Es(e,t){let n=y({}),r=e=>Object.entries(e).forEach(([e,t])=>n[e]=t),{style:i}=xs(e,r),{transform:a}=ws(e,r);return l(n,e=>{Ts(e).forEach(([e,t])=>{let n=gs(e)?a:i;n[e]&&n[e]===t||(n[e]=t)})},{immediate:!0,deep:!0}),ls(e,()=>t&&r(t)),{motionProperties:n,style:i,transform:a}}function Ds(e={}){let t=O(e),n=f();return{state:m(()=>{if(n.value)return t[n.value]}),variant:n}}function Os(e,t={},n){let{motionProperties:r}=Es(e),{variant:i,state:a}=Ds(t),o={target:e,variant:i,variants:t,state:a,motionProperties:r,...Qo(r,t)};return ss(o,n),o}var ks=[`delay`,`duration`],As=[`initial`,`enter`,`leave`,`visible`,`visible-once`,`visibleOnce`,`hovered`,`tapped`,`focused`,...ks];function js(e){return ks.includes(e)}function Ms(e,t){let n=e.props?e.props:e.data&&e.data.attrs?e.data.attrs:{};if(n){n.variants&&Mr(n.variants)&&(t.value={...t.value,...n.variants});for(let e of As)if(!(!n||!n[e])){if(js(e)&&typeof n[e]==`number`){for(let r of[`enter`,`visible`,`visibleOnce`]){let i=t.value[r];i!=null&&(i.transition??={},i.transition[e]=n[e])}continue}if(Mr(n[e])){let r=n[e];e===`visible-once`&&(e=`visibleOnce`),t.value[e]=r}}}}function Ns(e,t=!1){return{created:(n,r,i)=>{let a=r.value&&typeof r.value==`string`?r.value:i.key;a&&So[a]&&So[a].stop();let o=t?structuredClone(g(e)||{}):e||{},s=f(o);typeof r.value==`object`&&(s.value=r.value),Ms(i,s);let c=Os(n,s,{eventListeners:!0,lifeCycleHooks:!0,syncVariants:!0,visibilityHooks:!1});n.motionInstance=c,a&&(So[a]=c)},mounted:(e,t,n)=>{e.motionInstance&&os(e.motionInstance)},getSSRProps(t,n){let{initial:r}=t.value||n&&n?.props||{};r=O(r);let i=Dr({},e?.initial||{},r||{});if(!(!i||Object.keys(i).length===0))return{style:bs(i)}}}}var Ps={__proto__:null,fade:{initial:{opacity:0},enter:{opacity:1}},fadeVisible:{initial:{opacity:0},visible:{opacity:1}},fadeVisibleOnce:{initial:{opacity:0},visibleOnce:{opacity:1}},pop:{initial:{scale:0,opacity:0},enter:{scale:1,opacity:1}},popVisible:{initial:{scale:0,opacity:0},visible:{scale:1,opacity:1}},popVisibleOnce:{initial:{scale:0,opacity:0},visibleOnce:{scale:1,opacity:1}},rollBottom:{initial:{y:100,rotate:90,opacity:0},enter:{y:0,rotate:0,opacity:1}},rollLeft:{initial:{x:-100,rotate:90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rollRight:{initial:{x:100,rotate:-90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rollTop:{initial:{y:-100,rotate:-90,opacity:0},enter:{y:0,rotate:0,opacity:1}},rollVisibleBottom:{initial:{y:100,rotate:90,opacity:0},visible:{y:0,rotate:0,opacity:1}},rollVisibleLeft:{initial:{x:-100,rotate:90,opacity:0},visible:{x:0,rotate:0,opacity:1}},rollVisibleOnceBottom:{initial:{y:100,rotate:90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},rollVisibleOnceLeft:{initial:{x:-100,rotate:90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rollVisibleOnceRight:{initial:{x:100,rotate:-90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rollVisibleOnceTop:{initial:{y:-100,rotate:-90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},rollVisibleRight:{initial:{x:100,rotate:-90,opacity:0},visible:{x:0,rotate:0,opacity:1}},rollVisibleTop:{initial:{y:-100,rotate:-90,opacity:0},visible:{y:0,rotate:0,opacity:1}},slideBottom:{initial:{y:100,opacity:0},enter:{y:0,opacity:1}},slideLeft:{initial:{x:-100,opacity:0},enter:{x:0,opacity:1}},slideRight:{initial:{x:100,opacity:0},enter:{x:0,opacity:1}},slideTop:{initial:{y:-100,opacity:0},enter:{y:0,opacity:1}},slideVisibleBottom:{initial:{y:100,opacity:0},visible:{y:0,opacity:1}},slideVisibleLeft:{initial:{x:-100,opacity:0},visible:{x:0,opacity:1}},slideVisibleOnceBottom:{initial:{y:100,opacity:0},visibleOnce:{y:0,opacity:1}},slideVisibleOnceLeft:{initial:{x:-100,opacity:0},visibleOnce:{x:0,opacity:1}},slideVisibleOnceRight:{initial:{x:100,opacity:0},visibleOnce:{x:0,opacity:1}},slideVisibleOnceTop:{initial:{y:-100,opacity:0},visibleOnce:{y:0,opacity:1}},slideVisibleRight:{initial:{x:100,opacity:0},visible:{x:0,opacity:1}},slideVisibleTop:{initial:{y:-100,opacity:0},visible:{y:0,opacity:1}}},Fs=Symbol(``),Is={preset:{type:String,required:!1},instance:{type:Object,required:!1},variants:{type:Object,required:!1},initial:{type:Object,required:!1},enter:{type:Object,required:!1},leave:{type:Object,required:!1},visible:{type:Object,required:!1},visibleOnce:{type:Object,required:!1},hovered:{type:Object,required:!1},tapped:{type:Object,required:!1},focused:{type:Object,required:!1},delay:{type:[Number,String],required:!1},duration:{type:[Number,String],required:!1}};function Ls(e){return Object.prototype.toString.call(e)===`[object Object]`}function Rs(e){if(Array.isArray(e))return e.map(Rs);if(Ls(e)){let t={};for(let n in e)t[n]=Rs(e[n]);return t}return e}function zs(t){let n=y({}),r=e(Fs,{}),i=m(()=>t.preset==null?{}:r!=null&&t.preset in r?structuredClone(g(r)[t.preset]):t.preset in Ps?structuredClone(Ps[t.preset]):{}),a=m(()=>({initial:t.initial,enter:t.enter,leave:t.leave,visible:t.visible,visibleOnce:t.visibleOnce,hovered:t.hovered,tapped:t.tapped,focused:t.focused}));function o(e,t){for(let n of[`delay`,`duration`]){if(t[n]==null)continue;let r=Number.parseInt(t[n]);for(let t of[`enter`,`visible`,`visibleOnce`]){let i=e[t];i!=null&&(i.transition??={},i.transition[n]=r)}}return e}let s=m(()=>o({...Dr({},a.value,i.value,t.variants||{})},t));function c(e,t,r){e.props??={},e.props.style??={},e.props.style={...e.props.style,...r};let i=o(Rs(s.value),e.props);return e.props.onVnodeMounted=({el:e})=>{n[t]=Os(e,i)},e.props.onVnodeUpdated=({el:e})=>{let r=bs(n[t].state);for(let[t,n]of Object.entries(r))e.style[t]=n},e}return{motionConfig:s,setNodeInstance:c}}o({name:`Motion`,props:{...Is,is:{type:[String,Object],default:`div`}},setup(e){let t=c(),{motionConfig:r,setNodeInstance:i}=zs(e);return()=>{let a=bs(r.value.initial||{}),o=n(e.is,void 0,t);return i(o,0,a),o}}}),o({name:`MotionGroup`,props:{...Is,is:{type:[String,Object],required:!1}},setup(e){let t=c(),{motionConfig:r,setNodeInstance:i}=zs(e);return()=>{let a=bs(r.value.initial||{}),o=t.default?.()||[];for(let e=0;ee.every(e=>D(e)))}var Vs=Bs;function Hs(e){return m(()=>!D(e))}var Us=Hs;function Ws(...e){return m(()=>e.some(e=>D(e)))}var Gs=Ws;export{Jt as A,de as B,br as C,hn as D,Cr as E,bn as F,yn as I,Sn as L,fn as M,Yt as N,wn as O,en as P,Kt as R,yr as S,Sr as T,ue as V,pr as _,Vn as a,gr as b,Rn as c,ar as d,sr as f,dr as g,ur as h,Ns as i,z as j,En as k,Hn as l,W as m,Us as n,Mn as o,cr as p,Gs as r,Ln as s,Vs as t,Wn as u,K as v,xr as w,Zn as x,hr as y,mt as z}; \ No newline at end of file diff --git a/lecture-07/assets/section-CqA-0pFf.js b/lecture-07/assets/section-CqA-0pFf.js new file mode 100644 index 0000000000000000000000000000000000000000..ad50f70931fdd909d37f080883fdcfdbe64ba824 --- /dev/null +++ b/lecture-07/assets/section-CqA-0pFf.js @@ -0,0 +1 @@ +import{B as e,Ct as t,T as n,U as r,_ as i,b as a,y as o}from"./modules/shiki-CJZsCeMT.js";import{t as s}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as c}from"./slidev/context-DB-9afGB.js";var l={class:`slidev-layout dl-section`},u={key:0,class:`dl-section__index`},d={class:`dl-section__body`},f=s(n({__name:`section`,props:{index:{}},setup(n){let{$slidev:s,$nav:f,$clicksContext:p,$clicks:m,$page:h,$renderContext:g,$frontmatter:_}=c(),v=n;return(n,s)=>(e(),a(`div`,l,[v.index?(e(),a(`div`,u,t(v.index),1)):o(`v-if`,!0),i(`div`,d,[r(n.$slots,`default`,{},void 0,!0)]),s[0]||=i(`div`,{class:`dl-rule dl-section__rule`},null,-1)]))}}),[[`__scopeId`,`data-v-833128c2`]]);export{f as t}; \ No newline at end of file diff --git a/lecture-07/assets/slidev/404-Dy8qVHZj.js b/lecture-07/assets/slidev/404-Dy8qVHZj.js new file mode 100644 index 0000000000000000000000000000000000000000..bd7844beb75dc535662d9f159142b956524aeb35 --- /dev/null +++ b/lecture-07/assets/slidev/404-Dy8qVHZj.js @@ -0,0 +1 @@ +import{B as e,Ct as t,S as n,T as r,W as i,_ as a,b as o,et as s,g as c,v as l,y as u,yt as d}from"../modules/shiki-CJZsCeMT.js";import{t as f}from"../useNav-BmBHxIEh.js";import{t as p}from"../_plugin-vue_export-helper-BDNMzG2s.js";import{V as m}from"../modules/vue-Dnfgf7Ad.js";var h={class:`grid justify-center text-center pt-15% gap-5`},g={class:`text-2xl`},_={class:`op-60`},v={class:`mt-3 flex flex-col gap-2 max-w-xs mx-auto w-full`},y=p(r({__name:`404`,setup(r){let p=/\d+/,{currentRoute:y}=m(),{total:b}=f(),x=c(()=>{let e=y.value.path.match(p);if(e){let t=+e[0];if(t>0&&t<=b.value)return t}return null});return(r,c)=>{let f=i(`RouterLink`);return e(),o(`div`,h,[a(`div`,null,[c[2]||=a(`h1`,{class:`text-9xl font-light`},` 404 `,-1),a(`p`,g,[c[0]||=n(` Page `,-1),a(`code`,_,t(d(y).path),1),c[1]||=n(` not found `,-1)])]),a(`div`,v,[x.value===1?u(`v-if`,!0):(e(),l(f,{key:0,to:`/`,class:`page-link`},{default:s(()=>[...c[3]||=[n(` Go Home `,-1)]]),_:1})),x.value?(e(),l(f,{key:1,to:`/${x.value}`,class:`page-link`},{default:s(()=>[n(` Go to Slide `+t(x.value),1)]),_:1},8,[`to`])):u(`v-if`,!0)])])}}}),[[`__scopeId`,`data-v-b584852f`]]);export{y as default}; \ No newline at end of file diff --git a/lecture-07/assets/slidev/CodeBlockWrapper-CsMaG0t-.js b/lecture-07/assets/slidev/CodeBlockWrapper-CsMaG0t-.js new file mode 100644 index 0000000000000000000000000000000000000000..08173abdc2340f1a087c0613159441a4d2a5e009 --- /dev/null +++ b/lecture-07/assets/slidev/CodeBlockWrapper-CsMaG0t-.js @@ -0,0 +1 @@ +import{A as e,B as t,C as n,Ct as r,Q as i,R as a,St as o,T as s,U as c,_ as l,b as u,bt as d,dt as f,g as p,v as m,y as h,yt as g,z as _}from"../modules/shiki-CJZsCeMT.js";import{tt as v}from"../useNav-BmBHxIEh.js";import{u as y}from"../modules/vue-Dnfgf7Ad.js";import{a as b,l as x,n as S}from"./context-DB-9afGB.js";import{d as C,u as w}from"../index-DxDNFTAW.js";import{a as T,i as E}from"../modules/unplugin-icons-CStvVwzQ.js";var D=s({__name:`TitleIcon`,props:{title:{}},setup(e){let n={pnpm:`i-vscode-icons:file-type-light-pnpm`,npm:`i-vscode-icons:file-type-npm`,yarn:`i-vscode-icons:file-type-yarn`,bun:`i-vscode-icons:file-type-bun`,deno:`i-vscode-icons:file-type-deno`,vue:`i-vscode-icons:file-type-vue`,svelte:`i-vscode-icons:file-type-svelte`,angular:`i-vscode-icons:file-type-angular`,react:`i-vscode-icons:file-type-reactjs`,next:`i-vscode-icons:file-type-light-next`,nuxt:`i-vscode-icons:file-type-nuxt`,solid:`logos:solidjs-icon`,astro:`i-vscode-icons:file-type-light-astro`,rollup:`i-vscode-icons:file-type-rollup`,webpack:`i-vscode-icons:file-type-webpack`,vite:`i-vscode-icons:file-type-vite`,esbuild:`i-vscode-icons:file-type-esbuild`,"package.json":`i-vscode-icons:file-type-node`,"tsconfig.json":`i-vscode-icons:file-type-tsconfig`,".npmrc":`i-vscode-icons:file-type-npm`,".editorconfig":`i-vscode-icons:file-type-editorconfig`,".eslintrc":`i-vscode-icons:file-type-eslint`,".eslintignore":`i-vscode-icons:file-type-eslint`,"eslint.config":`i-vscode-icons:file-type-eslint`,".gitignore":`i-vscode-icons:file-type-git`,".gitattributes":`i-vscode-icons:file-type-git`,".env":`i-vscode-icons:file-type-dotenv`,".env.example":`i-vscode-icons:file-type-dotenv`,".vscode":`i-vscode-icons:file-type-vscode`,"tailwind.config":`vscode-icons:file-type-tailwind`,"uno.config":`i-vscode-icons:file-type-unocss`,"unocss.config":`i-vscode-icons:file-type-unocss`,".oxlintrc":`i-vscode-icons:file-type-oxlint`,"vue.config":`i-vscode-icons:file-type-vueconfig`,".mts":`i-vscode-icons:file-type-typescript`,".cts":`i-vscode-icons:file-type-typescript`,".ts":`i-vscode-icons:file-type-typescript`,".tsx":`i-vscode-icons:file-type-typescript`,".mjs":`i-vscode-icons:file-type-js`,".cjs":`i-vscode-icons:file-type-js`,".json":`i-vscode-icons:file-type-json`,".js":`i-vscode-icons:file-type-js`,".jsx":`i-vscode-icons:file-type-js`,".md":`i-vscode-icons:file-type-markdown`,".py":`i-vscode-icons:file-type-python`,".ico":`i-vscode-icons:file-type-favicon`,".html":`i-vscode-icons:file-type-html`,".css":`i-vscode-icons:file-type-css`,".scss":`i-vscode-icons:file-type-scss`,".yml":`i-vscode-icons:file-type-light-yaml`,".yaml":`i-vscode-icons:file-type-light-yaml`,".php":`i-vscode-icons:file-type-php`,".svg":`i-vscode-icons:file-type-svg`};function r(e){let t=e.match(/~([^~]+)~/g);if(t&&t.length>0)return t[0].slice(1,-1);let r=Object.keys(n).sort((e,t)=>t.length-e.length);for(let t of r)if(e.toLowerCase().includes(t.toLowerCase()))return n[t];return``}return(n,i)=>r(e.title)?(t(),u(`div`,{key:0,class:d([`w-3.5 h-3.5 relative`,r(e.title)])},null,2)):h(`v-if`,!0)}}),O=[`data-title`],k={key:0,class:`slidev-code-block-title`},A={class:`leading-1em`},j=[`title`],M=s({__name:`CodeBlockWrapper`,props:{ranges:{type:Array,default:()=>[]},finally:{type:[String,Number],default:`last`},startLine:{type:Number,default:1},lines:{type:Boolean,default:v.lineNumbers},at:{type:[String,Number],default:`+1`},maxHeight:{type:String,default:void 0},title:{type:String,default:``}},setup(s){let M=s,{$frontmatter:N,$clicksContext:P}=S(),F=p(()=>N?.codeCopy??v.codeCopy),I=f(),L=w();_(()=>{P.unregister(L)}),i(()=>{I.value?.classList.toggle(`slidev-code-line-numbers`,M.lines)}),a(()=>{if(!P||!M.ranges?.length)return;let e=P.calculateSince(M.at,M.ranges.length-1);P.register(L,e);let t=p(()=>e?Math.max(0,P.current-e.start+1):x),n=p(()=>M.finally===`last`?M.ranges.at(-1):M.finally.toString());i(()=>{if(!I.value)return;let e=M.ranges[t.value]??n.value,r=e===`hide`;I.value.classList.toggle(b,r),r&&(e=M.ranges[t.value+1]??n.value);let i=I.value.querySelector(`.shiki`),a=Array.from(i.querySelectorAll(`code > .line`)),o=a.length;if(C(e,o,M.startLine,e=>[a[e]]),M.maxHeight){let e=Array.from(i.querySelectorAll(`.line.highlighted`));e.reduce((e,t)=>t.offsetHeight+e,0)>I.value.offsetHeight?e[0].scrollIntoView({behavior:`smooth`,block:`start`}):e.length>0&&e[Math.round((e.length-1)/2)].scrollIntoView({behavior:`smooth`,block:`center`})}})});let{copied:R,copy:z}=y();function B(){let e=I.value?.querySelector(`.slidev-code`)?.textContent;e&&z(e)}let V=e(`activeTitle`,null),H=p(()=>V===null&&M.title);return(e,i)=>{let a=E,f=T;return t(),u(`div`,{ref_key:`el`,ref:I,class:d([`slidev-code-wrapper relative group`,{"slidev-code-line-numbers":M.lines,active:g(V)===s.title}]),style:o({"max-height":M.maxHeight,"overflow-y":M.maxHeight?`scroll`:void 0,"--start":M.startLine}),"data-title":s.title},[H.value?(t(),u(`div`,k,[n(D,{title:s.title},null,8,[`title`]),l(`div`,A,r(s.title.replace(/~([^~]+)~/g,``).trim()),1)])):h(`v-if`,!0),c(e.$slots,`default`),F.value?(t(),u(`button`,{key:1,class:d([`slidev-code-copy absolute right-0 transition opacity-0 group-hover:opacity-20 hover:!opacity-100`,H.value?`top-10`:`top-0`]),title:g(R)?`Copied`:`Copy`,onClick:i[0]||=e=>B()},[g(R)?(t(),m(a,{key:0,class:`p-2 w-8 h-8`})):(t(),m(f,{key:1,class:`p-2 w-8 h-8`}))],10,j)):h(`v-if`,!0)],14,O)}}});export{M as t}; \ No newline at end of file diff --git a/lecture-07/assets/slidev/DrawingControls-CovJrial.js b/lecture-07/assets/slidev/DrawingControls-CovJrial.js new file mode 100644 index 0000000000000000000000000000000000000000..d4c3c713f2fb1741ab81f4cfa192196cadca4841 --- /dev/null +++ b/lecture-07/assets/slidev/DrawingControls-CovJrial.js @@ -0,0 +1 @@ +import{n as e}from"../rolldown-runtime-hePW80VL.js";import{B as t,C as n,Ct as r,H as i,St as a,T as o,U as s,_ as c,b as l,bt as u,dt as d,et as f,l as p,m,r as h,tt as g,u as _,v,y,yt as b}from"../modules/shiki-CJZsCeMT.js";import{d as x,g as S}from"../modules/vue-Dnfgf7Ad.js";import{t as C}from"../useDrawings-vNWRit9P.js";import{t as w}from"./IconButton-BwA4p7Ax.js";import{t as T}from"./VerticalDivider-Bvc1MZzH.js";var E=o({__name:`Draggable`,props:{storageKey:{},initial:{}},setup(e){let n=e,r=d(null),i=n.initial??{x:0,y:0},o=n.storageKey?S(n.storageKey,i):d(i),{style:c}=x(r,{initialValue:o});return(e,n)=>(t(),l(`div`,{ref_key:`el`,ref:r,class:`fixed`,style:a(b(c))},[s(e.$slots,`default`)],4))}}),D={class:`flex bg-main p-2`},O={class:`inline-block w-7 text-center`},k={class:`pt-.5`},A={class:`i-carbon:pin-filled transform -rotate-45`},j={class:`i-carbon:pin`},M={class:`i-carbon:error`},N={class:`i-carbon:close-outline`},P=o({__name:`DrawingControls`,setup(e){let{brush:o,canClear:s,canRedo:x,canUndo:S,clear:P,drauu:F,drawingEnabled:I,drawingMode:L,drawingPinned:R,brushColors:z}=C(),B=d(!1);function V(e){e.preventDefault(),e.stopPropagation(),requestAnimationFrame(()=>{requestAnimationFrame(()=>{B.value=!0})})}function H(e){e.pointerType!==`mouse`&&V(e)}function U(){F.undo()}function W(){F.redo()}let G=`stylus`;function K(e){L.value=e,I.value=!0,e!==`eraseLine`&&(G=e)}function q(e){o.value.color=e,I.value=!0,L.value=G}return(e,d)=>b(I)||b(R)?(t(),v(E,{key:0,class:u([`flex flex-wrap text-xl p-2 gap-1 rounded-md bg-main shadow transition-opacity duration-200 z-nav border border-main`,!b(I)&&b(R)?`opacity-40 hover:opacity-90`:``]),"storage-key":`slidev-drawing-pos`,"initial-x":10,"initial-y":10},{default:f(()=>[n(w,{title:`Draw with stylus`,class:u({shallow:b(L)!==`stylus`}),onClick:d[0]||=e=>K(`stylus`)},{default:f(()=>[...d[14]||=[c(`div`,{class:`i-carbon:pen`},null,-1)]]),_:1},8,[`class`]),n(w,{title:`Draw a line`,class:u({shallow:b(L)!==`line`}),onClick:d[1]||=e=>K(`line`)},{default:f(()=>[...d[15]||=[c(`svg`,{width:`1em`,height:`1em`,class:`-mt-0.5`,preserveAspectRatio:`xMidYMid meet`,viewBox:`0 0 24 24`},[c(`path`,{d:`M21.71 3.29a1 1 0 0 0-1.42 0l-18 18a1 1 0 0 0 0 1.42a1 1 0 0 0 1.42 0l18-18a1 1 0 0 0 0-1.42z`,fill:`currentColor`})],-1)]]),_:1},8,[`class`]),n(w,{title:`Draw an arrow`,class:u({shallow:b(L)!==`arrow`}),onClick:d[2]||=e=>K(`arrow`)},{default:f(()=>[...d[16]||=[c(`div`,{class:`i-carbon:arrow-up-right`},null,-1)]]),_:1},8,[`class`]),n(w,{title:`Draw an ellipse`,class:u({shallow:b(L)!==`ellipse`}),onClick:d[3]||=e=>K(`ellipse`)},{default:f(()=>[...d[17]||=[c(`div`,{class:`i-carbon:radio-button`},null,-1)]]),_:1},8,[`class`]),n(w,{title:`Draw a rectangle`,class:u({shallow:b(L)!==`rectangle`}),onClick:d[4]||=e=>K(`rectangle`)},{default:f(()=>[...d[18]||=[c(`div`,{class:`i-carbon:checkbox`},null,-1)]]),_:1},8,[`class`]),n(w,{title:`Erase`,class:u({shallow:b(L)!==`eraseLine`}),onClick:d[5]||=e=>K(`eraseLine`)},{default:f(()=>[...d[19]||=[c(`div`,{class:`i-carbon:erase`},null,-1)]]),_:1},8,[`class`]),n(T),n(b(h),{shown:B.value,"onUpdate:shown":d[8]||=e=>B.value=e,triggers:[]},{popper:f(()=>[c(`div`,D,[c(`div`,O,r(b(o).size),1),c(`div`,k,[g(c(`input`,{"onUpdate:modelValue":d[6]||=e=>b(o).size=e,type:`range`,min:`1`,max:`15`,onChange:d[7]||=e=>L.value=b(G)},null,544),[[p,b(o).size]])])])]),default:f(()=>[n(w,{title:`Adjust stroke width`,class:u({shallow:b(L)===`eraseLine`}),onClick:V,onPointerdown:H,onPointerup:H,onTouchend:V},{default:f(()=>[...d[20]||=[c(`svg`,{viewBox:`0 0 32 32`,width:`1.2em`,height:`1.2em`},[c(`line`,{x1:`2`,y1:`15`,x2:`22`,y2:`4`,stroke:`currentColor`,"stroke-width":`1`,"stroke-linecap":`round`}),c(`line`,{x1:`2`,y1:`24`,x2:`28`,y2:`10`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`}),c(`line`,{x1:`7`,y1:`31`,x2:`29`,y2:`19`,stroke:`currentColor`,"stroke-width":`3`,"stroke-linecap":`round`})],-1)]]),_:1},8,[`class`])]),_:1},8,[`shown`]),(t(!0),l(m,null,i(b(z),e=>(t(),v(w,{key:e,title:`Set brush color`,class:u(b(o).color===e&&b(L)!==`eraseLine`?`active`:`shallow`),onClick:t=>q(e)},{default:f(()=>[c(`div`,{class:u([`w-6 h-6 transition-all transform border`,b(o).color===e?`rounded-md border-gray-300/50`:`rounded-1/2 scale-85 border-white`]),style:a(b(I)?{background:e}:{borderColor:e})},null,6)]),_:2},1032,[`class`,`onClick`]))),128)),n(T),n(w,{title:`Undo`,class:u({disabled:!b(S)}),onClick:d[9]||=e=>U()},{default:f(()=>[...d[21]||=[c(`div`,{class:`i-carbon:undo`},null,-1)]]),_:1},8,[`class`]),n(w,{title:`Redo`,class:u({disabled:!b(x)}),onClick:d[10]||=e=>W()},{default:f(()=>[...d[22]||=[c(`div`,{class:`i-carbon:redo`},null,-1)]]),_:1},8,[`class`]),n(w,{title:`Delete`,class:u({disabled:!b(s)}),onClick:d[11]||=e=>b(P)()},{default:f(()=>[...d[23]||=[c(`div`,{class:`i-carbon:trash-can`},null,-1)]]),_:1},8,[`class`]),n(T),n(w,{title:b(R)?`Unpin drawing`:`Pin drawing`,class:u({shallow:!b(R)}),onClick:d[12]||=e=>R.value=!b(R)},{default:f(()=>[g(c(`div`,A,null,512),[[_,b(R)]]),g(c(`div`,j,null,512),[[_,!b(R)]])]),_:1},8,[`title`,`class`]),b(I)?(t(),v(w,{key:0,title:b(R)?`Drawing pinned`:`Drawing unpinned`,class:u({shallow:!b(I)}),onClick:d[13]||=e=>I.value=!b(I)},{default:f(()=>[g(c(`div`,M,null,512),[[_,b(R)]]),g(c(`div`,N,null,512),[[_,!b(R)]])]),_:1},8,[`title`,`class`])):y(`v-if`,!0)]),_:1},8,[`class`])):y(`v-if`,!0)}}),F=e({default:()=>I}),I=P;export{F as n,I as t}; \ No newline at end of file diff --git a/lecture-07/assets/slidev/DrawingLayer-BxwezCRF.js b/lecture-07/assets/slidev/DrawingLayer-BxwezCRF.js new file mode 100644 index 0000000000000000000000000000000000000000..c23fe3ba6ee7adca62ff36886790eb88b503302e --- /dev/null +++ b/lecture-07/assets/slidev/DrawingLayer-BxwezCRF.js @@ -0,0 +1 @@ +import{B as e,I as t,R as n,T as r,Z as i,b as a,bt as o,dt as s,yt as c}from"../modules/shiki-CJZsCeMT.js";import{n as l}from"./context-DB-9afGB.js";import{t as u}from"../useDrawings-vNWRit9P.js";var d=r({__name:`DrawingLayer`,setup(r){let{drauu:d,drawingEnabled:f,loadCanvas:p}=u(),m=l().$scale,h=s();return n(()=>{d.mount(h.value,h.value.parentElement),i(m,e=>d.options.coordinateScale=1/e,{immediate:!0}),p()}),t(()=>{d.unmount()}),(t,n)=>(e(),a(`svg`,{ref_key:`svg`,ref:h,class:o([`w-full h-full absolute top-0`,{"pointer-events-none":!c(f),"touch-none":c(f)}])},null,2))}});export{d as default}; \ No newline at end of file diff --git a/lecture-07/assets/slidev/IconButton-BwA4p7Ax.js b/lecture-07/assets/slidev/IconButton-BwA4p7Ax.js new file mode 100644 index 0000000000000000000000000000000000000000..2fbf02259081003a9351e7e5ee3213762a65f648 --- /dev/null +++ b/lecture-07/assets/slidev/IconButton-BwA4p7Ax.js @@ -0,0 +1 @@ +import{B as e,Ct as t,K as n,T as r,U as i,_ as a,bt as o,et as s,g as c,v as l}from"../modules/shiki-CJZsCeMT.js";var u={class:`sr-only`},d=r({__name:`IconButton`,props:{title:{},icon:{},as:{},to:{},disabled:{type:Boolean},active:{type:Boolean}},setup(r){let d=r,f=c(()=>d.as||(d.to?`router-link`:`button`));return(c,d)=>(e(),l(n(f.value),{class:o([`slidev-icon-btn`,{disabled:r.disabled,active:r.active}]),title:r.title,to:r.to},{default:s(()=>[a(`span`,u,t(r.title),1),i(c.$slots,`default`,{},()=>[a(`div`,{class:o(r.icon)},null,2)])]),_:3},8,[`class`,`title`,`to`]))}});export{d as t}; \ No newline at end of file diff --git a/lecture-07/assets/slidev/KaTexBlockWrapper-CffXlnxL.js b/lecture-07/assets/slidev/KaTexBlockWrapper-CffXlnxL.js new file mode 100644 index 0000000000000000000000000000000000000000..e902f05421d6292553513d312246788c4106f6ea --- /dev/null +++ b/lecture-07/assets/slidev/KaTexBlockWrapper-CffXlnxL.js @@ -0,0 +1 @@ +import{B as e,Q as t,R as n,T as r,U as i,b as a,dt as o,g as s,z as c}from"../modules/shiki-CJZsCeMT.js";import{H as l}from"../useNav-BmBHxIEh.js";import{a as u,c as d,l as f,n as p}from"./context-DB-9afGB.js";import{u as m}from"../index-DxDNFTAW.js";var h=`.mtable > [class*=col-align]`,g=`:scope > .vlist-t > .vlist-r > .vlist > span > .mord`;function _(e){let t=Array.from(e.querySelectorAll(h)).filter(e=>!e.parentElement?.closest(h)),n=[];for(let e of t)Array.from(e.querySelectorAll(g)).forEach((e,t)=>{e&&(Array.isArray(n[t])?n[t].push(e):n[t]=[e])});return n}var v=r({__name:`KaTexBlockWrapper`,props:{ranges:{type:Array,default:()=>[]},finally:{type:[String,Number],default:`last`},startLine:{type:Number,default:1},at:{type:[String,Number],default:`+1`}},setup(r){let h=r,{$clicksContext:g}=p(),v=o(),y=m();return c(()=>{g.unregister(y)}),n(()=>{if(!g||!h.ranges?.length)return;let e=g.calculateSince(h.at,h.ranges.length-1);g.register(y,e);let n=s(()=>e?Math.max(0,g.current-e.start+1):f),r=s(()=>h.finally===`last`?h.ranges.at(-1):h.finally.toString());t(()=>{if(!v.value)return;let e=h.ranges[n.value]??r.value,t=e===`hide`;v.value.classList.toggle(u,t),t&&(e=h.ranges[n.value+1]??r.value);let i=_(v.value);if(!i.length)return;let a=h.startLine,o=l(i.length+a-1,e);i.forEach((e,t)=>{let n=o.includes(t+a);e.forEach(e=>{e.classList.toggle(d,!0),e.classList.toggle(`highlighted`,n),e.classList.toggle(`dishonored`,!n)})})})}),(t,n)=>(e(),a(`div`,{ref_key:`el`,ref:v,class:`slidev-katex-wrapper`},[i(t.$slots,`default`)],512))}});export{v as t}; \ No newline at end of file diff --git a/lecture-07/assets/slidev/Modal-PBdP8Aqp.js b/lecture-07/assets/slidev/Modal-PBdP8Aqp.js new file mode 100644 index 0000000000000000000000000000000000000000..ce3d6d49240a674d98debe59e61ef293df83f119 --- /dev/null +++ b/lecture-07/assets/slidev/Modal-PBdP8Aqp.js @@ -0,0 +1 @@ +import{B as e,T as t,U as n,_ as r,b as i,bt as a,h as o,v as s,y as c,yt as l}from"../modules/shiki-CJZsCeMT.js";import{C as u}from"../modules/vue-Dnfgf7Ad.js";var d={key:0,class:`fixed top-0 bottom-0 left-0 right-0 grid z-modal`},f=t({__name:`Modal`,props:{modelValue:{default:!1},class:{default:``}},emits:[`update:modelValue`],setup(t,{emit:f}){let p=t,m=u(p,`modelValue`,f);function h(){m.value=!1}return(t,u)=>(e(),s(o,null,[l(m)?(e(),i(`div`,d,[r(`div`,{bg:`black opacity-80`,class:`absolute top-0 bottom-0 left-0 right-0 -z-1`,onClick:u[0]||=e=>h()}),r(`div`,{class:a([`m-auto rounded-md bg-main shadow`,p.class]),"dark:border":`~ main`},[n(t.$slots,`default`)],2)])):c(`v-if`,!0)],1024))}});export{f as t}; \ No newline at end of file