import{s as ke,f as g,g as k,r as Ne,k as me,i as w,u as _e,d as u,v as ft,w as cl,a as I,e as pe,c as D,x as Y,o as ot,h as E,j as h,y as b,z as ce,A as fe,B as ue,C as he,l as oe,m as ie,D as X,p as Ae,E as se,F as fl,G as J,H as ll,I as nl,J as Ze,n as Ve,K as Pe,L as je,M as Re,N as et,O as ut,P as ul,t as Je,Q as nt,R as sl}from"../chunks/scheduler.518119ed.js";import{S as ye,i as we,n as hl,l as _l,a as $,t as M,b as x,d as ee,m as te,g as $e,c as Ee,e as le,f as ml,h as pl,j as rl}from"../chunks/index.19865bf4.js";import"../chunks/Banner.26c42b91.js";import{n as dl,p as Xe}from"../chunks/stores.8bb10029.js";import{q as vl,a as it,I as Ce,c as bl,f as gl,e as kl,b as yl,g as wl}from"../chunks/focus-outside.c09c9f4c.js";import{o as De,t as Ie,e as ge,r as $l,n as tt,s as qe,a as El,b as He,c as lt}from"../chunks/theme.d2c4453d.js";import{w as Ke}from"../chunks/paths.907ee83e.js";import{r as Tl,a as ht}from"../chunks/root-scroll.b2f8f13b.js";import{S as ql}from"../chunks/search.295417eb.js";function Vl(n){let e,t='<svg><symbol id="arrow-left" class="icon" viewBox="0 0 24 24"><line x1="19" y1="12" x2="5" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline></symbol><symbol id="arrow-right" class="icon" viewBox="0 0 24 24"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></symbol><symbol id="arrow-right-chevron" viewBox="0 0 24 24"><path fill="currentColor" d="M8.7 17.3q-.275-.275-.275-.7t.275-.7l3.9-3.9l-3.9-3.9q-.275-.275-.275-.7t.275-.7q.275-.275.7-.275t.7.275l4.6 4.6q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.6 4.6q-.275.275-.7.275t-.7-.275Z"></path></symbol><symbol id="arrow-up" class="icon" viewBox="0 0 24 24"><line x1="12" y1="19" x2="12" y2="5"></line><polyline points="5 12 12 5 19 12"></polyline></symbol><symbol id="arrow-down" class="icon" viewBox="0 0 24 24"><line x1="12" y1="5" x2="12" y2="19"></line><polyline points="19 12 12 19 5 12"></polyline></symbol><symbol id="check" class="icon" viewBox="0 0 24 24"><polyline points="20 6 9 17 4 12"></polyline></symbol><symbol id="close" class="icon" viewBox="0 0 24 24"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></symbol><symbol id="download" class="icon" viewBox="0 0 24 24"><path d="M21 15V19A2 2 0 0 1 19 21H5A2 2 0 0 1 3 19V15"></path><polyline points="7 10 12 15 17 10"></polyline><line x1="12" y1="15" x2="12" y2="3"></line></symbol><symbol id="edit" class="icon" viewBox="0 0 24 24"><path d="M20 14.66V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h5.34"></path><polygon points="18 2 22 6 12 16 8 16 8 12 18 2"></polygon></symbol><symbol viewBox="0 0 24 24" id="github" stroke-width="0"><path fill="currentColor" d="M12 0a12 12 0 1 0 0 24a12 12 0 0 0 0-24zm3.163 21.783h-.093a.513.513 0 0 1-.382-.14a.513.513 0 0 1-.14-.372v-1.406c.006-.467.01-.94.01-1.416a3.693 3.693 0 0 0-.151-1.028a1.832 1.832 0 0 0-.542-.875a8.014 8.014 0 0 0 2.038-.471a4.051 4.051 0 0 0 1.466-.964c.407-.427.71-.943.885-1.506a6.77 6.77 0 0 0 .3-2.13a4.138 4.138 0 0 0-.26-1.476a3.892 3.892 0 0 0-.795-1.284a2.81 2.81 0 0 0 .162-.582c.033-.2.05-.402.05-.604c0-.26-.03-.52-.09-.773a5.309 5.309 0 0 0-.221-.763a.293.293 0 0 0-.111-.02h-.11c-.23.002-.456.04-.674.111a5.34 5.34 0 0 0-.703.26a6.503 6.503 0 0 0-.661.343c-.215.127-.405.249-.573.362a9.578 9.578 0 0 0-5.143 0a13.507 13.507 0 0 0-.572-.362a6.022 6.022 0 0 0-.672-.342a4.516 4.516 0 0 0-.705-.261a2.203 2.203 0 0 0-.662-.111h-.11a.29.29 0 0 0-.11.02a5.844 5.844 0 0 0-.23.763c-.054.254-.08.513-.081.773c0 .202.017.404.051.604c.033.199.086.394.16.582A3.888 3.888 0 0 0 5.702 10a4.142 4.142 0 0 0-.263 1.476a6.871 6.871 0 0 0 .292 2.12c.181.563.483 1.08.884 1.516c.415.422.915.75 1.466.964c.653.25 1.337.41 2.033.476a1.828 1.828 0 0 0-.452.633a2.99 2.99 0 0 0-.2.744a2.754 2.754 0 0 1-1.175.27a1.788 1.788 0 0 1-1.065-.3a2.904 2.904 0 0 1-.752-.824a3.1 3.1 0 0 0-.292-.382a2.693 2.693 0 0 0-.372-.343a1.841 1.841 0 0 0-.432-.24a1.2 1.2 0 0 0-.481-.101c-.04.001-.08.005-.12.01a.649.649 0 0 0-.162.02a.408.408 0 0 0-.13.06a.116.116 0 0 0-.06.1a.33.33 0 0 0 .14.242c.093.074.17.131.232.171l.03.021c.133.103.261.214.382.333c.112.098.213.209.3.33c.09.119.168.246.231.381c.073.134.15.288.231.463c.188.474.522.875.954 1.145c.453.243.961.364 1.476.351c.174 0 .349-.01.522-.03c.172-.028.343-.057.515-.091v1.743a.5.5 0 0 1-.533.521h-.062a10.286 10.286 0 1 1 6.324 0v.005z"></path></symbol><symbol viewBox="0 0 24 24" id="discord" stroke-width="0"><path fill="currentColor" d="M19.27 5.33C17.94 4.71 16.5 4.26 15 4a.09.09 0 0 0-.07.03c-.18.33-.39.76-.53 1.09a16.09 16.09 0 0 0-4.8 0c-.14-.34-.35-.76-.54-1.09c-.01-.02-.04-.03-.07-.03c-1.5.26-2.93.71-4.27 1.33c-.01 0-.02.01-.03.02c-2.72 4.07-3.47 8.03-3.1 11.95c0 .02.01.04.03.05c1.8 1.32 3.53 2.12 5.24 2.65c.03.01.06 0 .07-.02c.4-.55.76-1.13 1.07-1.74c.02-.04 0-.08-.04-.09c-.57-.22-1.11-.48-1.64-.78c-.04-.02-.04-.08-.01-.11c.11-.08.22-.17.33-.25c.02-.02.05-.02.07-.01c3.44 1.57 7.15 1.57 10.55 0c.02-.01.05-.01.07.01c.11.09.22.17.33.26c.04.03.04.09-.01.11c-.52.31-1.07.56-1.64.78c-.04.01-.05.06-.04.09c.32.61.68 1.19 1.07 1.74c.03.01.06.02.09.01c1.72-.53 3.45-1.33 5.25-2.65c.02-.01.03-.03.03-.05c.44-4.53-.73-8.46-3.1-11.95c-.01-.01-.02-.02-.04-.02zM8.52 14.91c-1.03 0-1.89-.95-1.89-2.12s.84-2.12 1.89-2.12c1.06 0 1.9.96 1.89 2.12c0 1.17-.84 2.12-1.89 2.12zm6.97 0c-1.03 0-1.89-.95-1.89-2.12s.84-2.12 1.89-2.12c1.06 0 1.9.96 1.89 2.12c0 1.17-.83 2.12-1.89 2.12z"></path></symbol><symbol id="git-branch" class="icon" viewBox="0 0 24 24"><line x1="6" y1="3" x2="6" y2="15"></line><circle cx="18" cy="6" r="3"></circle><circle cx="6" cy="18" r="3"></circle><path d="M18 9a9 9 0 0 1-9 9"></path></symbol><symbol id="log-in" class="icon" viewBox="0 0 24 24"><path d="M15 3H19A2 2 0 0 1 21 5V19A2 2 0 0 1 19 21H15"></path><polyline points="10 17 15 12 10 7"></polyline><line x1="15" y1="12" x2="3" y2="12"></line></symbol><symbol id="maximize" class="icon" viewBox="0 0 24 24"><path d="M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"></path></symbol><symbol id="maximize-2" class="icon" viewBox="0 0 24 24"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" y1="3" x2="14" y2="10"></line><line x1="3" y1="21" x2="10" y2="14"></line></symbol><symbol id="menu" viewBox="0 0 48 48"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M7.95 11.95h32m-32 12h32m-32 12h32"></path></symbol><symbol id="message-square" class="icon" viewBox="0 0 24 24"><g transform="translate(0, 1)"><path d="M16.5 19H11V15H18V11H22V19H19.5L18 20.5L16.5 19Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M2 3H18V15H8.5L6.5 17L4.5 15H2V3 M5 10L5 12L10 12L10 10  M5 6L5 9L13 9L13 6Z" fill="currentColor" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></g></symbol><symbol id="minus" class="icon" viewBox="0 0 24 24"><line x1="5" y1="12" x2="19" y2="12"></line></symbol><symbol id="plus" class="icon" viewBox="0 0 24 24"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></symbol><symbol id="save" class="icon" viewBox="0 0 24 24"><path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"></path><polyline points="17 21 17 13 7 13 7 21"></polyline><polyline points="7 3 7 8 15 8"></polyline></symbol><symbol id="link" class="icon" viewBox="0 0 24 24"><path d="M9,7L6,7A2 2 0 0 0 6,17L9,17"></path><path d="M15,7L18,7A2 2 0 0 1 18,17L15,17"></path><path d="M7,12L17,12"></path></symbol><symbol viewBox="0 0 24 24" id="external-link"><path fill="currentColor" stroke-width="0" d="m16 8.4l-8.875 8.9q-.3.3-.713.3t-.712-.3q-.3-.3-.3-.713t.3-.712L14.6 7H7q-.425 0-.713-.288T6 6q0-.425.288-.713T7 5h10q.425 0 .713.288T18 6v10q0 .425-.288.713T17 17q-.425 0-.713-.288T16 16V8.4Z"></path></symbol><symbol id="chevron" class="icon" viewBox="0 0 24 24"><path d="M2,7 L12,17 L20,7"></path></symbol><symbol id="chevron-up" class="icon" viewBox="0 0 24 24"><polyline points="18 15 12 9 6 15"></polyline></symbol><symbol id="chevron-down" class="icon" viewBox="0 0 24 24"><polyline points="6 9 12 15 18 9"></polyline></symbol><symbol id="delete" class="icon" viewBox="0 0 24 24"><path fill="currentColor" stroke="none" d="M22 4.2h-5.6L15 1.6c-.1-.2-.4-.4-.7-.4H9.6c-.2 0-.5.2-.6.4L7.6 4.2H2c-.4 0-.8.4-.8.8s.4.8.8.8h1.8V22c0 .4.3.8.8.8h15c.4 0 .8-.3.8-.8V5.8H22c.4 0 .8-.3.8-.8s-.4-.8-.8-.8zM10.8 16.5c0 .4-.3.8-.8.8s-.8-.3-.8-.8V10c0-.4.3-.8.8-.8s.8.3.8.8v6.5zm4 0c0 .4-.3.8-.8.8s-.8-.3-.8-.8V10c0-.4.3-.8.8-.8s.8.3.8.8v6.5z"></path></symbol><symbol id="home" viewBox="0 0 256 256"><path fill="currentColor" d="m221.56 100.85l-79.95-75.47l-.16-.15a19.93 19.93 0 0 0-26.91 0l-.17.15l-79.93 75.47a20.07 20.07 0 0 0-6.44 14.7V208a20 20 0 0 0 20 20h48a20 20 0 0 0 20-20v-44h24v44a20 20 0 0 0 20 20h48a20 20 0 0 0 20-20v-92.45a20.07 20.07 0 0 0-6.44-14.7ZM204 204h-40v-44a20 20 0 0 0-20-20h-32a20 20 0 0 0-20 20v44H52v-86.72l76-71.75l76 71.75Z"></path></symbol><symbol id="search" viewBox="0 0 24 24"><path stroke-width="0.2" fill="currentColor" d="m18.9 20.3l-5.6-5.6q-.75.6-1.725.95T9.5 16q-2.725 0-4.612-1.888T3 9.5q0-2.725 1.888-4.612T9.5 3q2.725 0 4.612 1.888T16 9.5q0 1.1-.35 2.075T14.7 13.3l5.625 5.625q.275.275.275.675t-.3.7q-.275.275-.7.275t-.7-.275ZM9.5 14q1.875 0 3.188-1.313T14 9.5q0-1.875-1.313-3.188T9.5 5Q7.625 5 6.312 6.313T5 9.5q0 1.875 1.313 3.188T9.5 14Z"></path></symbol><symbol id="docs" viewBox="0 0 16 16"><path fill="currentColor" d="M1 3.25C1 2.56 1.56 2 2.249 2h.5c.69 0 1.248.56 1.248 1.25v9.495c0 .69-.559 1.25-1.248 1.25h-.5A1.25 1.25 0 0 1 1 12.744V3.249ZM2.249 3a.25.25 0 0 0-.25.25v9.495c0 .138.112.25.25.25h.5a.25.25 0 0 0 .25-.25V3.249a.25.25 0 0 0-.25-.25h-.5Zm2.748.25c0-.69.559-1.25 1.249-1.25h.5c.689 0 1.248.56 1.248 1.25v9.495c0 .69-.56 1.25-1.249 1.25h-.5a1.25 1.25 0 0 1-1.248-1.25V3.249ZM6.246 3a.25.25 0 0 0-.25.25v9.495c0 .138.112.25.25.25h.5a.25.25 0 0 0 .249-.25V3.249a.25.25 0 0 0-.25-.25h-.5Zm5.726 1.777a1.249 1.249 0 0 0-1.57-.713l-.583.204a1.25 1.25 0 0 0-.746 1.645l2.937 7.304c.249.62.94.933 1.571.713l.582-.204a1.25 1.25 0 0 0 .746-1.646l-2.937-7.303Zm-1.24.23a.25.25 0 0 1 .313.143l2.937 7.303a.25.25 0 0 1-.149.33l-.582.203a.25.25 0 0 1-.314-.142L10 5.54a.25.25 0 0 1 .149-.329l.582-.204Z"></path></symbol><symbol id="contents" viewBox="0 0 256 256" stroke-width="0"><path fill="currentColor" d="M224 44h-64a43.86 43.86 0 0 0-32 13.85A43.86 43.86 0 0 0 96 44H32a20 20 0 0 0-20 20v128a20 20 0 0 0 20 20h64a20 20 0 0 1 20 20a12 12 0 0 0 24 0a20 20 0 0 1 20-20h64a20 20 0 0 0 20-20V64a20 20 0 0 0-20-20ZM96 188H36V68h60a20 20 0 0 1 20 20v104.81A43.79 43.79 0 0 0 96 188Zm124 0h-60a43.71 43.71 0 0 0-20 4.83V88a20 20 0 0 1 20-20h60Z"></path></symbol><symbol viewBox="0 0 24 24" id="copy-to-clipboard-empty"><path fill="currentColor" d="M5 22q-.825 0-1.413-.588T3 20V6h2v14h11v2H5Zm4-4q-.825 0-1.413-.588T7 16V4q0-.825.588-1.413T9 2h9q.825 0 1.413.588T20 4v12q0 .825-.588 1.413T18 18H9Zm0-2h9V4H9v12Zm0 0V4v12Z"></path></symbol><symbol viewBox="0 0 24 24" id="copy-to-clipboard-filled"><path fill="currentColor" d="M5 22q-.825 0-1.413-.588T3 20V6h2v14h11v2H5Zm4-4q-.825 0-1.413-.588T7 16V4q0-.825.588-1.413T9 2h9q.825 0 1.413.588T20 4v12q0 .825-.588 1.413T18 18H9Z"></path></symbol></svg>';return{c(){e=g("div"),e.innerHTML=t,this.h()},l(l){e=k(l,"DIV",{style:!0,"data-svelte-h":!0}),Ne(e)!=="svelte-qvvwta"&&(e.innerHTML=t),this.h()},h(){me(e,"display","none")},m(l,s){w(l,e,s)},p:_e,i:_e,o:_e,d(l){l&&u(e)}}}class Al extends ye{constructor(e){super(),we(this,e,null,Vl,ke,{})}}function _t(n){return Object.prototype.toString.call(n)==="[object Date]"}function st(n,e){if(n===e||n!==n)return()=>n;const t=typeof n;if(t!==typeof e||Array.isArray(n)!==Array.isArray(e))throw new Error("Cannot interpolate values of different type");if(Array.isArray(n)){const l=e.map((s,r)=>st(n[r],s));return s=>l.map(r=>r(s))}if(t==="object"){if(!n||!e)throw new Error("Object cannot be null");if(_t(n)&&_t(e)){n=n.getTime(),e=e.getTime();const r=e-n;return o=>new Date(n+o*r)}const l=Object.keys(e),s={};return l.forEach(r=>{s[r]=st(n[r],e[r])}),r=>{const o={};return l.forEach(i=>{o[i]=s[i](r)}),o}}if(t==="number"){const l=e-n;return s=>n+s*l}throw new Error(`Cannot interpolate ${t} values`)}function Ml(n,e={}){const t=Ke(n);let l,s=n;function r(o,i){if(n==null)return t.set(n=o),Promise.resolve();s=o;let a=l,c=!1,{delay:f=0,duration:_=400,easing:p=cl,interpolate:N=st}=ft(ft({},e),i);if(_===0)return a&&(a.abort(),a=null),t.set(n=s),Promise.resolve();const T=hl()+f;let V;return l=_l(v=>{if(v<T)return!0;c||(V=N(n,o),typeof _=="function"&&(_=_(n,o)),c=!0),a&&(a.abort(),a=null);const d=v-T;return d>_?(t.set(n=o),!1):(t.set(n=V(p(d/_))),!0)}),l.promise}return{set:r,update:(o,i)=>r(o(s,n),i),subscribe:t.subscribe}}function mt(n){let e,t;return{c(){e=g("div"),t=g("div"),this.h()},l(l){e=k(l,"DIV",{class:!0});var s=E(e);t=k(s,"DIV",{class:!0,style:!0}),E(t).forEach(u),s.forEach(u),this.h()},h(){h(t,"class","progress svelte-156y8je"),me(t,"width",n[1]*100+"%"),h(e,"class","progress-container svelte-156y8je")},m(l,s){w(l,e,s),b(e,t)},p(l,s){s&2&&me(t,"width",l[1]*100+"%")},d(l){l&&u(e)}}}function pt(n){let e;return{c(){e=g("div"),this.h()},l(t){e=k(t,"DIV",{class:!0}),E(e).forEach(u),this.h()},h(){h(e,"class","fade svelte-156y8je")},m(t,l){w(t,e,l)},d(t){t&&u(e)}}}function Nl(n){let e,t,l=n[0]&&mt(n),s=n[1]>=.4&&pt();return{c(){l&&l.c(),e=I(),s&&s.c(),t=pe()},l(r){l&&l.l(r),e=D(r),s&&s.l(r),t=pe()},m(r,o){l&&l.m(r,o),w(r,e,o),s&&s.m(r,o),w(r,t,o)},p(r,[o]){r[0]?l?l.p(r,o):(l=mt(r),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),r[1]>=.4?s||(s=pt(),s.c(),s.m(t.parentNode,t)):s&&(s.d(1),s=null)},i:_e,o:_e,d(r){r&&(u(e),u(t)),l&&l.d(r),s&&s.d(r)}}}function Cl(n,e,t){let l;const s=Ml(0,{easing:vl});Y(n,s,o=>t(1,l=o));let r=!1;return ot(()=>{function o(){t(0,r=!0);const i=1-l;s.update(a=>a+.1,{duration:i+.1>.15?250:500/i}),i>.15&&setTimeout(o,500/i)}setTimeout(o,250)}),[r,l,s]}class Ll extends ye{constructor(e){super(),we(this,e,Cl,Nl,ke,{})}}function Bl(n){let e;return{c(){e=oe("Skip to main content")},l(t){e=ie(t,"Skip to main content")},m(t,l){w(t,e,l)},d(t){t&&u(e)}}}function Il(n){let e,t;const l=n[2].default,s=ce(l,n,n[1],null),r=s||Bl();return{c(){e=g("a"),r&&r.c(),this.h()},l(o){e=k(o,"A",{href:!0,class:!0});var i=E(e);r&&r.l(i),i.forEach(u),this.h()},h(){h(e,"href",n[0]),h(e,"class","svelte-1rscj97")},m(o,i){w(o,e,i),r&&r.m(e,null),t=!0},p(o,[i]){s&&s.p&&(!t||i&2)&&fe(s,l,o,o[1],t?he(l,o[1],i,null):ue(o[1]),null),(!t||i&1)&&h(e,"href",o[0])},i(o){t||($(r,o),t=!0)},o(o){M(r,o),t=!1},d(o){o&&u(e),r&&r.d(o)}}}function Dl(n,e,t){let{$$slots:l={},$$scope:s}=e,{href:r}=e;return n.$$set=o=>{"href"in o&&t(0,r=o.href),"$$scope"in o&&t(1,s=o.$$scope)},[r,s,l]}class zl extends ye{constructor(e){super(),we(this,e,Dl,Il,ke,{href:0})}}const Hl=n=>({}),dt=n=>({}),Sl=n=>({}),vt=n=>({});function bt(n){let e,t;return e=new Ll({}),{c(){x(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,s){te(e,l,s),t=!0},i(l){t||($(e.$$.fragment,l),t=!0)},o(l){M(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function gt(n){let e,t,l;e=new zl({props:{href:"#main"}});const s=n[6]["top-nav"],r=ce(s,n,n[5],vt);return{c(){x(e.$$.fragment),t=I(),r&&r.c()},l(o){ee(e.$$.fragment,o),t=D(o),r&&r.l(o)},m(o,i){te(e,o,i),w(o,t,i),r&&r.m(o,i),l=!0},p(o,i){r&&r.p&&(!l||i&32)&&fe(r,s,o,o[5],l?he(s,o[5],i,Sl):ue(o[5]),vt)},i(o){l||($(e.$$.fragment,o),$(r,o),l=!0)},o(o){M(e.$$.fragment,o),M(r,o),l=!1},d(o){o&&u(t),le(e,o),r&&r.d(o)}}}function Pl(n){let e,t,l,s,r,o,i,a,c,f;e=new Al({});let _=n[2]&&bt(),p=n[0]&&gt(n);const N=n[6].default,T=ce(N,n,n[5],null),V=n[6]["banner-bottom"],v=ce(V,n,n[5],dt);return{c(){x(e.$$.fragment),t=I(),_&&_.c(),l=I(),p&&p.c(),s=I(),r=g("div"),o=I(),i=g("main"),T&&T.c(),a=I(),c=g("div"),v&&v.c(),this.h()},l(d){ee(e.$$.fragment,d),t=D(d),_&&_.l(d),l=D(d),p&&p.l(d),s=D(d),r=k(d,"DIV",{class:!0,"aria-hidden":!0}),E(r).forEach(u),o=D(d),i=k(d,"MAIN",{id:!0,class:!0});var C=E(i);T&&T.l(C),C.forEach(u),a=D(d),c=k(d,"DIV",{class:!0});var G=E(c);v&&v.l(G),G.forEach(u),this.h()},h(){h(r,"class","modal-overlay svelte-1sui5a8"),h(r,"aria-hidden","true"),X(r,"visible",n[3]),h(i,"id","main"),h(i,"class","svelte-1sui5a8"),h(c,"class","banner-bottom")},m(d,C){te(e,d,C),w(d,t,C),_&&_.m(d,C),w(d,l,C),p&&p.m(d,C),w(d,s,C),w(d,r,C),w(d,o,C),w(d,i,C),T&&T.m(i,null),n[7](i),w(d,a,C),w(d,c,C),v&&v.m(c,null),f=!0},p(d,[C]){d[2]?_?C&4&&$(_,1):(_=bt(),_.c(),$(_,1),_.m(l.parentNode,l)):_&&($e(),M(_,1,1,()=>{_=null}),Ee()),d[0]?p?(p.p(d,C),C&1&&$(p,1)):(p=gt(d),p.c(),$(p,1),p.m(s.parentNode,s)):p&&($e(),M(p,1,1,()=>{p=null}),Ee()),(!f||C&8)&&X(r,"visible",d[3]),T&&T.p&&(!f||C&32)&&fe(T,N,d,d[5],f?he(N,d[5],C,null):ue(d[5]),null),v&&v.p&&(!f||C&32)&&fe(v,V,d,d[5],f?he(V,d[5],C,Hl):ue(d[5]),dt)},i(d){f||($(e.$$.fragment,d),$(_),$(p),$(T,d),$(v,d),f=!0)},o(d){M(e.$$.fragment,d),M(_),M(p),M(T,d),M(v,d),f=!1},d(d){d&&(u(t),u(l),u(s),u(r),u(o),u(i),u(a),u(c)),le(e,d),_&&_.d(d),p&&p.d(d),T&&T.d(d),n[7](null),v&&v.d(d)}}}function Zl(n,e,t){let l,s;Y(n,dl,p=>t(2,l=p)),Y(n,De,p=>t(3,s=p));let{$$slots:r={},$$scope:o}=e,{nav_visible:i=!0}=e,a,c=!1;it(()=>{c||t(1,a.scrollTop=0,a),c=!1});const f={capture(){return a.scrollTop},restore(p){t(1,a.scrollTop=p,a),c=!0}};function _(p){Ae[p?"unshift":"push"](()=>{a=p,t(1,a)})}return n.$$set=p=>{"nav_visible"in p&&t(0,i=p.nav_visible),"$$scope"in p&&t(5,o=p.$$scope)},[i,a,l,s,f,o,r,_]}class jl extends ye{constructor(e){super(),we(this,e,Zl,Pl,ke,{nav_visible:0,snapshot:4})}get snapshot(){return this.$$.ctx[4]}}function Ol(n){let e;function t(r,o){return r[1].current==="dark"?Ul:Rl}let l=t(n),s=l(n);return{c(){s.c(),e=pe()},l(r){s.l(r),e=pe()},m(r,o){s.m(r,o),w(r,e,o)},p(r,o){l!==(l=t(r))&&(s.d(1),s=l(r),s&&(s.c(),s.m(e.parentNode,e)))},d(r){r&&u(e),s.d(r)}}}function Rl(n){let e,t='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><g fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M0 0h24v24H0z"/><path fill="currentColor" d="M12 19a1 1 0 0 1 .993.883L13 20v1a1 1 0 0 1-1.993.117L11 21v-1a1 1 0 0 1 1-1zm6.313-2.09l.094.083l.7.7a1 1 0 0 1-1.32 1.497l-.094-.083l-.7-.7a1 1 0 0 1 1.218-1.567l.102.07zm-11.306.083a1 1 0 0 1 .083 1.32l-.083.094l-.7.7a1 1 0 0 1-1.497-1.32l.083-.094l.7-.7a1 1 0 0 1 1.414 0zM4 11a1 1 0 0 1 .117 1.993L4 13H3a1 1 0 0 1-.117-1.993L3 11h1zm17 0a1 1 0 0 1 .117 1.993L21 13h-1a1 1 0 0 1-.117-1.993L20 11h1zM6.213 4.81l.094.083l.7.7a1 1 0 0 1-1.32 1.497l-.094-.083l-.7-.7A1 1 0 0 1 6.11 4.74l.102.07zm12.894.083a1 1 0 0 1 .083 1.32l-.083.094l-.7.7a1 1 0 0 1-1.497-1.32l.083-.094l.7-.7a1 1 0 0 1 1.414 0zM12 2a1 1 0 0 1 .993.883L13 3v1a1 1 0 0 1-1.993.117L11 4V3a1 1 0 0 1 1-1zm0 5a5 5 0 1 1-4.995 5.217L7 12l.005-.217A5 5 0 0 1 12 7z"/></g></svg>',l;return{c(){e=new ll(!1),l=pe(),this.h()},l(s){e=nl(s,!1),l=pe(),this.h()},h(){e.a=l},m(s,r){e.m(t,s,r),w(s,l,r)},d(s){s&&(u(l),e.d())}}}function Ul(n){let e,t='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="currentColor" d="M12 21q-3.775 0-6.388-2.613T3 12q0-3.45 2.25-5.988T11 3.05q.625-.075.975.45t-.025 1.1q-.425.65-.638 1.375T11.1 7.5q0 2.25 1.575 3.825T16.5 12.9q.775 0 1.538-.225t1.362-.625q.525-.35 1.075-.037t.475.987q-.35 3.45-2.937 5.725T12 21Zm0-2q2.2 0 3.95-1.213t2.55-3.162q-.5.125-1 .2t-1 .075q-3.075 0-5.238-2.163T9.1 7.5q0-.5.075-1t.2-1q-1.95.8-3.163 2.55T5 12q0 2.9 2.05 4.95T12 19Zm-.25-6.75Z"/></svg>',l;return{c(){e=new ll(!1),l=pe(),this.h()},l(s){e=nl(s,!1),l=pe(),this.h()},h(){e.a=l},m(s,r){e.m(t,s,r),w(s,l,r)},d(s){s&&(u(l),e.d())}}}function Kl(n){let e,t,l,s,r,o,i=Ol(n);return{c(){e=g("button"),t=g("span"),l=g("span"),i&&i.c(),this.h()},l(a){e=k(a,"BUTTON",{type:!0,"aria-pressed":!0,"aria-label":!0,class:!0});var c=E(e);t=k(c,"SPAN",{class:!0});var f=E(t);l=k(f,"SPAN",{class:!0});var _=E(l);i&&i.l(_),_.forEach(u),f.forEach(u),c.forEach(u),this.h()},h(){h(l,"class","icon svelte-1b9q9nc"),h(t,"class","check svelte-1b9q9nc"),X(t,"checked",n[1].current==="dark"),h(e,"type","button"),h(e,"aria-pressed",s=n[1].current==="dark"?"true":"false"),h(e,"aria-label",n[0]),h(e,"class","svelte-1b9q9nc")},m(a,c){w(a,e,c),b(e,t),b(t,l),i&&i.m(l,null),r||(o=se(e,"click",n[2]),r=!0)},p(a,[c]){i.p(a,c),c&2&&X(t,"checked",a[1].current==="dark"),c&2&&s!==(s=a[1].current==="dark"?"true":"false")&&h(e,"aria-pressed",s),c&1&&h(e,"aria-label",a[0])},i:_e,o:_e,d(a){a&&u(e),i&&i.d(),r=!1,o()}}}function Gl(n,e,t){let l;Y(n,Ie,a=>t(1,l=a));let{label:s="Dark mode"}=e;function r(){const a=l.current==="light"?"dark":"light";a===(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light")?J(Ie,l.preference="system",l):J(Ie,l.preference=a,l),J(Ie,l.current=a,l)}const o=a=>Ie.set({preference:l.preference,current:a.matches?"dark":"light"});let i;return fl(()=>i==null?void 0:i.removeEventListener("change",o)),n.$$set=a=>{"label"in a&&t(0,s=a.label)},n.$$.update=()=>{n.$$.dirty&10&&(i==null||i.removeEventListener("change",o),l.preference==="system"&&(t(3,i=window.matchMedia("(prefers-color-scheme: dark)")),i.addEventListener("change",o)))},[s,l,r,i]}class ol extends ye{constructor(e){super(),we(this,e,Gl,Kl,ke,{label:0})}}function il(n){const e=Array.from(n.querySelectorAll('a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])')),t=e.indexOf(document.activeElement);return{next:s=>{const r=[...e.slice(t+1),...e.slice(0,t+1)];for(let o=0;o<r.length;o+=1)if(!s||r[o].matches(s)){r[o].focus();return}},prev:s=>{const r=[...e.slice(t+1),...e.slice(0,t+1)];for(let o=r.length-2;o>=0;o-=1)if(!s||r[o].matches(s)){r[o].focus();return}},update:s=>{let r=t+s;r+=e.length,r%=e.length,e[r].focus()}}}function al(n,{reset_focus:e=!0}={}){const t=document.activeElement,l=s=>{if(s.key==="Tab"){s.preventDefault();const r=il(n);s.shiftKey?r.prev():r.next()}};return n.addEventListener("keydown",l),{destroy:()=>{n.removeEventListener("keydown",l),e&&(t==null||t.focus({preventScroll:!0}))}}}function kt(n,e,t){const l=n.slice();return l[5]=e[t].sections,l[6]=e[t].title,l[8]=t,l}function yt(n,e,t){const l=n.slice();return l[6]=e[t].title,l[9]=e[t].sections,l}function wt(n,e,t){const l=n.slice();return l[12]=e[t].path,l[6]=e[t].title,l[13]=e[t].badge,l}function $t(n){let e,t=ge(n[0]),l=[];for(let s=0;s<t.length;s+=1)l[s]=Nt(kt(n,t,s));return{c(){for(let s=0;s<l.length;s+=1)l[s].c();e=pe()},l(s){for(let r=0;r<l.length;r+=1)l[r].l(s);e=pe()},m(s,r){for(let o=0;o<l.length;o+=1)l[o]&&l[o].m(s,r);w(s,e,r)},p(s,r){if(r&5){t=ge(s[0]);let o;for(o=0;o<t.length;o+=1){const i=kt(s,t,o);l[o]?l[o].p(i,r):(l[o]=Nt(i),l[o].c(),l[o].m(e.parentNode,e))}for(;o<l.length;o+=1)l[o].d(1);l.length=t.length}},d(s){s&&u(e),Ze(l,s)}}}function Et(n){let e,t=ge(n[5]),l=[];for(let s=0;s<t.length;s+=1)l[s]=At(yt(n,t,s));return{c(){e=g("ul");for(let s=0;s<l.length;s+=1)l[s].c();this.h()},l(s){e=k(s,"UL",{class:!0});var r=E(e);for(let o=0;o<l.length;o+=1)l[o].l(r);r.forEach(u),this.h()},h(){h(e,"class","svelte-g9bops")},m(s,r){w(s,e,r);for(let o=0;o<l.length;o+=1)l[o]&&l[o].m(e,null)},p(s,r){if(r&5){t=ge(s[5]);let o;for(o=0;o<t.length;o+=1){const i=yt(s,t,o);l[o]?l[o].p(i,r):(l[o]=At(i),l[o].c(),l[o].m(e,null))}for(;o<l.length;o+=1)l[o].d(1);l.length=t.length}},d(s){s&&u(e),Ze(l,s)}}}function Tt(n){let e,t=n[6]+"",l;return{c(){e=g("h4"),l=oe(t),this.h()},l(s){e=k(s,"H4",{class:!0});var r=E(e);l=ie(r,t),r.forEach(u),this.h()},h(){h(e,"class","svelte-g9bops")},m(s,r){w(s,e,r),b(e,l)},p(s,r){r&1&&t!==(t=s[6]+"")&&Ve(l,t)},d(s){s&&u(e)}}}function qt(n){let e,t,l,s=n[13]+"",r;return{c(){e=g("span"),t=I(),l=g("span"),r=oe(s),this.h()},l(o){e=k(o,"SPAN",{style:!0}),E(e).forEach(u),t=D(o),l=k(o,"SPAN",{class:!0});var i=E(l);r=ie(i,s),i.forEach(u),this.h()},h(){me(e,"flex","1 1 auto"),h(l,"class","badge svelte-g9bops")},m(o,i){w(o,e,i),w(o,t,i),w(o,l,i),b(l,r)},p(o,i){i&1&&s!==(s=o[13]+"")&&Ve(r,s)},d(o){o&&(u(e),u(t),u(l))}}}function Vt(n){let e,t,l=n[6]+"",s,r,o,i,a,c=n[13]&&qt(n);return{c(){e=g("li"),t=g("a"),s=oe(l),r=I(),c&&c.c(),a=I(),this.h()},l(f){e=k(f,"LI",{class:!0});var _=E(e);t=k(_,"A",{href:!0,"aria-current":!0,class:!0});var p=E(t);s=ie(p,l),r=D(p),c&&c.l(p),p.forEach(u),a=D(_),_.forEach(u),this.h()},h(){h(t,"href",o=n[12]),h(t,"aria-current",i=n[12]===n[2].url.pathname),h(t,"class","svelte-g9bops"),h(e,"class","svelte-g9bops")},m(f,_){w(f,e,_),b(e,t),b(t,s),b(t,r),c&&c.m(t,null),b(e,a)},p(f,_){_&1&&l!==(l=f[6]+"")&&Ve(s,l),f[13]?c?c.p(f,_):(c=qt(f),c.c(),c.m(t,null)):c&&(c.d(1),c=null),_&1&&o!==(o=f[12])&&h(t,"href",o),_&5&&i!==(i=f[12]===f[2].url.pathname)&&h(t,"aria-current",i)},d(f){f&&u(e),c&&c.d()}}}function At(n){let e,t,l,s,r=n[6]&&Tt(n),o=ge(n[9]),i=[];for(let a=0;a<o.length;a+=1)i[a]=Vt(wt(n,o,a));return{c(){e=g("li"),r&&r.c(),t=I(),l=g("ul");for(let a=0;a<i.length;a+=1)i[a].c();s=I(),this.h()},l(a){e=k(a,"LI",{class:!0});var c=E(e);r&&r.l(c),t=D(c),l=k(c,"UL",{class:!0});var f=E(l);for(let _=0;_<i.length;_+=1)i[_].l(f);f.forEach(u),s=D(c),c.forEach(u),this.h()},h(){h(l,"class","svelte-g9bops"),h(e,"class","svelte-g9bops")},m(a,c){w(a,e,c),r&&r.m(e,null),b(e,t),b(e,l);for(let f=0;f<i.length;f+=1)i[f]&&i[f].m(l,null);b(e,s)},p(a,c){if(a[6]?r?r.p(a,c):(r=Tt(a),r.c(),r.m(e,t)):r&&(r.d(1),r=null),c&5){o=ge(a[9]);let f;for(f=0;f<o.length;f+=1){const _=wt(a,o,f);i[f]?i[f].p(_,c):(i[f]=Vt(_),i[f].c(),i[f].m(l,null))}for(;f<i.length;f+=1)i[f].d(1);i.length=o.length}},d(a){a&&u(e),r&&r.d(),Ze(i,a)}}}function Mt(n){let e;return{c(){e=g("hr"),this.h()},l(t){e=k(t,"HR",{class:!0}),this.h()},h(){h(e,"class","svelte-g9bops")},m(t,l){w(t,e,l)},d(t){t&&u(e)}}}function Nt(n){let e,t,l=n[6]+"",s,r,o,i,a=n[5].length!==0&&Et(n),c=n[0].length!==1&&n[8]!==n[0].length-1&&Mt();return{c(){e=g("section"),t=g("h3"),s=oe(l),r=I(),a&&a.c(),o=I(),c&&c.c(),i=I(),this.h()},l(f){e=k(f,"SECTION",{class:!0});var _=E(e);t=k(_,"H3",{class:!0});var p=E(t);s=ie(p,l),p.forEach(u),r=D(_),a&&a.l(_),o=D(_),c&&c.l(_),i=D(_),_.forEach(u),this.h()},h(){h(t,"class","svelte-g9bops"),h(e,"class","svelte-g9bops")},m(f,_){w(f,e,_),b(e,t),b(t,s),b(e,r),a&&a.m(e,null),b(e,o),c&&c.m(e,null),b(e,i)},p(f,_){_&1&&l!==(l=f[6]+"")&&Ve(s,l),f[5].length!==0?a?a.p(f,_):(a=Et(f),a.c(),a.m(e,o)):a&&(a.d(1),a=null),f[0].length!==1&&f[8]!==f[0].length-1?c||(c=Mt(),c.c(),c.m(e,i)):c&&(c.d(1),c=null)},d(f){f&&u(e),a&&a.d(),c&&c.d()}}}function Wl(n){let e,t=n[0]&&$t(n);return{c(){e=g("nav"),t&&t.c(),this.h()},l(l){e=k(l,"NAV",{class:!0});var s=E(e);t&&t.l(s),s.forEach(u),this.h()},h(){h(e,"class","svelte-g9bops")},m(l,s){w(l,e,s),t&&t.m(e,null),n[4](e)},p(l,[s]){l[0]?t?t.p(l,s):(t=$t(l),t.c(),t.m(e,null)):t&&(t.d(1),t=null)},i:_e,o:_e,d(l){l&&u(e),t&&t.d(),n[4](null)}}}function Fl(n,e,t){let l;Y(n,Xe,a=>t(2,l=a));let{contents:s=[]}=e,r;ot(()=>{o()});async function o(){const a=r.querySelector('[aria-current="true"]');if(!a){t(1,r.scrollTop=0,r);return}const c=r.offsetHeight/2,f=a.offsetHeight/2,p=a.offsetTop-c+f;requestAnimationFrame(()=>t(1,r.scrollTop=p,r))}function i(a){Ae[a?"unshift":"push"](()=>{r=a,t(1,r)})}return n.$$set=a=>{"contents"in a&&t(0,s=a.contents)},[s,r,l,o,i]}class Ql extends ye{constructor(e){super(),we(this,e,Fl,Wl,ke,{contents:0,scrollToActive:3})}get scrollToActive(){return this.$$.ctx[3]}}const Jl=n=>({}),Ct=n=>({});function Lt(n,e,t){const l=n.slice();return l[30]=e[t],l}function Bt(n){let e,t,l,s,r,o,i,a,c,f,_,p,N,T,V,v,d,C,G,H,P=`${n[4]-n[5]}px`,Z,z,m,K,S,re=ge(n[1]),O=[];for(let q=0;q<re.length;q+=1)O[q]=Dt(Lt(n,re,q));const L=q=>M(O[q],1,1,()=>{O[q]=null}),R=n[16].default,F=ce(R,n,n[15],null);let Q=ze&&Yl(n);d=new Ce({props:{name:"arrow-left",size:".6em"}});const A=n[16]["back-button"],ae=ce(A,n,n[15],Ct),W=ae||Xl();return{c(){e=g("div"),t=g("div"),l=g("div"),r=I(),o=g("div"),i=g("div"),a=g("div"),c=g("div");for(let q=0;q<O.length;q+=1)O[q].c();f=I(),F&&F.c(),p=I(),N=g("div"),Q&&Q.c(),V=I(),v=g("button"),x(d.$$.fragment),C=I(),G=g("span"),W&&W.c(),this.h()},l(q){e=k(q,"DIV",{class:!0});var B=E(e);t=k(B,"DIV",{class:!0});var U=E(t);l=k(U,"DIV",{class:!0}),E(l).forEach(u),r=D(U),o=k(U,"DIV",{class:!0});var ne=E(o);i=k(ne,"DIV",{class:!0});var Te=E(i);a=k(Te,"DIV",{class:!0});var Le=E(a);c=k(Le,"DIV",{class:!0});var de=E(c);for(let j=0;j<O.length;j+=1)O[j].l(de);f=D(de),F&&F.l(de),de.forEach(u),Le.forEach(u),p=D(Te),N=k(Te,"DIV",{class:!0});var Ge=E(N);Q&&Q.l(Ge),Ge.forEach(u),V=D(Te),v=k(Te,"BUTTON",{class:!0});var Be=E(v);ee(d.$$.fragment,Be),C=D(Be),G=k(Be,"SPAN",{});var y=E(G);W&&W.l(y),y.forEach(u),Be.forEach(u),Te.forEach(u),ne.forEach(u),U.forEach(u),B.forEach(u),this.h()},h(){h(l,"class","menu-background svelte-1ih0snl"),X(l,"dark",n[11].current==="dark"),X(l,"ready",n[6]),me(l,"height",n[12]?"99%":`${n[5]}px`),me(l,"--background",n[12]?"var(--sk-back-3)":null),h(c,"class","contents svelte-1ih0snl"),et(()=>n[21].call(c)),h(a,"class","universal svelte-1ih0snl"),a.inert=n[12],h(N,"class","context svelte-1ih0snl"),N.inert=T=!n[12],h(v,"class","back-button svelte-1ih0snl"),v.inert=!Ue,X(v,"dark",n[11].current==="dark"),h(i,"class","viewport svelte-1ih0snl"),et(()=>n[25].call(i)),X(i,"reduced-motion",n[9]),X(i,"offset",n[12]),h(o,"class","clip svelte-1ih0snl"),me(o,"--height-difference",P),h(t,"class","mobile-main-menu svelte-1ih0snl"),h(e,"class","menu svelte-1ih0snl")},m(q,B){w(q,e,B),b(e,t),b(t,l),b(t,r),b(t,o),b(o,i),b(i,a),b(a,c);for(let U=0;U<O.length;U+=1)O[U]&&O[U].m(c,null);b(c,f),F&&F.m(c,null),_=ut(c,n[21].bind(c)),n[22](a),b(i,p),b(i,N),Q&&Q.m(N,null),b(i,V),b(i,v),te(d,v,null),b(v,C),b(v,G),W&&W.m(G,null),H=ut(i,n[25].bind(i)),m=!0,K||(S=[Pe(s=tn.call(null,l,n[19])),se(v,"click",n[24]),se(o,"transitionstart",n[26]),se(o,"transitionend",n[27]),Pe(al.call(null,e,{reset_focus:!1}))],K=!0)},p(q,B){if(s&&ul(s.update)&&B[0]&64&&s.update.call(null,q[19]),(!m||B[0]&2048)&&X(l,"dark",q[11].current==="dark"),(!m||B[0]&64)&&X(l,"ready",q[6]),B[0]&4128&&me(l,"height",q[12]?"99%":`${q[5]}px`),B[0]&4096&&me(l,"--background",q[12]?"var(--sk-back-3)":null),B[0]&5130){re=ge(q[1]);let U;for(U=0;U<re.length;U+=1){const ne=Lt(q,re,U);O[U]?(O[U].p(ne,B),$(O[U],1)):(O[U]=Dt(ne),O[U].c(),$(O[U],1),O[U].m(c,f))}for($e(),U=re.length;U<O.length;U+=1)L(U);Ee()}F&&F.p&&(!m||B[0]&32768)&&fe(F,R,q,q[15],m?he(R,q[15],B,null):ue(q[15]),null),(!m||B[0]&4096)&&(a.inert=q[12]),ze&&Q.p(q,B),(!m||B[0]&4096&&T!==(T=!q[12]))&&(N.inert=T),ae&&ae.p&&(!m||B[0]&32768)&&fe(ae,A,q,q[15],m?he(A,q[15],B,Jl):ue(q[15]),Ct),(!m||B[0]&2048)&&X(v,"dark",q[11].current==="dark"),(!m||B[0]&512)&&X(i,"reduced-motion",q[9]),(!m||B[0]&4096)&&X(i,"offset",q[12]),B[0]&48&&P!==(P=`${q[4]-q[5]}px`)&&me(o,"--height-difference",P)},i(q){if(!m){for(let B=0;B<re.length;B+=1)$(O[B]);$(F,q),$(Q),$(d.$$.fragment,q),$(W,q),q&&et(()=>{m&&(z&&z.end(1),Z=ml(t,n[14],{}),Z.start())}),m=!0}},o(q){O=O.filter(Boolean);for(let B=0;B<O.length;B+=1)M(O[B]);M(F,q),M(Q),M(d.$$.fragment,q),M(W,q),Z&&Z.invalidate(),q&&(z=pl(t,n[14],{duration:500,easing:yl})),m=!1},d(q){q&&u(e),Ze(O,q),F&&F.d(q),_(),n[22](null),Q&&Q.d(),le(d),W&&W.d(q),H(),q&&z&&z.end(),K=!1,je(S)}}}function It(n){let e,t,l,s,r,o;t=new Ce({props:{name:"arrow-right-chevron",size:"6rem"}});function i(){return n[20](n[30])}return{c(){e=g("button"),x(t.$$.fragment),this.h()},l(a){e=k(a,"BUTTON",{class:!0,"aria-label":!0});var c=E(e);ee(t.$$.fragment,c),c.forEach(u),this.h()},h(){h(e,"class","related-menu-arrow svelte-1ih0snl"),h(e,"aria-label",l="Show "+n[30].title+" submenu")},m(a,c){w(a,e,c),te(t,e,null),s=!0,r||(o=se(e,"click",nt(i)),r=!0)},p(a,c){n=a,(!s||c[0]&2&&l!==(l="Show "+n[30].title+" submenu"))&&h(e,"aria-label",l)},i(a){s||($(t.$$.fragment,a),s=!0)},o(a){M(t.$$.fragment,a),s=!1},d(a){a&&u(e),le(t),r=!1,o()}}}function Dt(n){let e,t,l=n[30].title+"",s,r,o,i,a=n[30].sections&&It(n);return{c(){e=g("div"),t=g("a"),s=oe(l),o=I(),a&&a.c(),this.h()},l(c){e=k(c,"DIV",{class:!0});var f=E(e);t=k(f,"A",{href:!0});var _=E(t);s=ie(_,l),_.forEach(u),o=D(f),a&&a.l(f),f.forEach(u),this.h()},h(){h(t,"href",r=n[30].pathname),h(e,"class","link-item svelte-1ih0snl"),me(e,"--button-width",n[30].sections?"4rem":"0")},m(c,f){w(c,e,f),b(e,t),b(t,s),b(e,o),a&&a.m(e,null),i=!0},p(c,f){(!i||f[0]&2)&&l!==(l=c[30].title+"")&&Ve(s,l),(!i||f[0]&2&&r!==(r=c[30].pathname))&&h(t,"href",r),c[30].sections?a?(a.p(c,f),f[0]&2&&$(a,1)):(a=It(c),a.c(),$(a,1),a.m(e,null)):a&&($e(),M(a,1,1,()=>{a=null}),Ee()),f[0]&2&&me(e,"--button-width",c[30].sections?"4rem":"0")},i(c){i||($(a),i=!0)},o(c){M(a),i=!1},d(c){c&&u(e),a&&a.d()}}}function Yl(n){var s;let e,t,l={contents:(s=n[10])==null?void 0:s.sections};return e=new Ql({props:l}),n[23](e),{c(){x(e.$$.fragment)},l(r){ee(e.$$.fragment,r)},m(r,o){te(e,r,o),t=!0},p(r,o){var a;const i={};o[0]&1024&&(i.contents=(a=r[10])==null?void 0:a.sections),e.$set(i)},i(r){t||($(e.$$.fragment,r),t=!0)},o(r){M(e.$$.fragment,r),t=!1},d(r){n[23](null),le(e,r)}}}function Xl(n){let e;return{c(){e=oe("Back to main menu")},l(t){e=ie(t,"Back to main menu")},m(t,l){w(t,e,l)},d(t){t&&u(e)}}}function xl(n){let e,t,l,s,r,o,i;l=new Ce({props:{name:n[2]?"close":"menu",size:"1em"}});let a=n[2]&&Bt(n);return{c(){e=g("div"),t=g("button"),x(l.$$.fragment),s=I(),a&&a.c(),this.h()},l(c){e=k(c,"DIV",{style:!0});var f=E(e);t=k(f,"BUTTON",{"aria-label":!0,"aria-expanded":!0,class:!0});var _=E(t);ee(l.$$.fragment,_),_.forEach(u),s=D(f),a&&a.l(f),f.forEach(u),this.h()},h(){h(t,"aria-label","Toggle menu"),h(t,"aria-expanded",n[2]),h(t,"class","menu-toggle svelte-1ih0snl"),X(t,"open",n[0]),me(e,"display","contents")},m(c,f){w(c,e,f),b(e,t),te(l,t,null),n[18](t),b(e,s),a&&a.m(e,null),r=!0,o||(i=[se(window,"keydown",n[17]),se(t,"click",en),Pe(bl.call(null,e,n[13])),Pe(gl.call(null,e,n[13]))],o=!0)},p(c,f){const _={};f[0]&4&&(_.name=c[2]?"close":"menu"),l.$set(_),(!r||f[0]&4)&&h(t,"aria-expanded",c[2]),(!r||f[0]&1)&&X(t,"open",c[0]),c[2]?a?(a.p(c,f),f[0]&4&&$(a,1)):(a=Bt(c),a.c(),$(a,1),a.m(e,null)):a&&($e(),M(a,1,1,()=>{a=null}),Ee())},i(c){r||($(l.$$.fragment,c),$(a),r=!0)},o(c){M(l.$$.fragment,c),M(a),r=!1},d(c){c&&u(e),le(l),n[18](null),a&&a.d(),o=!1,je(i)}}}const Se=Ke(!1),ze=Ke(void 0),Ue=Ke(!1),rt=Ke([]);function en(){var n;if(Re(Se))Se.set(!1);else{Se.set(!0);const e=Re(Xe).url.pathname.split("/")[1];ze.set(Re(rt).find(t=>t.prefix===e)),Ue.set(!!((n=Re(ze))!=null&&n.sections)&&!!Re(ze))}}function tn(n,e){return setTimeout(()=>{e(!0)}),{destroy(){e(!1)}}}function ln(n,e,t){let l,s,r,o,i,a,c;Y(n,Se,A=>t(2,l=A)),Y(n,De,A=>t(28,s=A)),Y(n,$l,A=>t(9,r=A)),Y(n,ze,A=>t(10,o=A)),Y(n,rt,A=>t(29,i=A)),Y(n,Ie,A=>t(11,a=A)),Y(n,Ue,A=>t(12,c=A));let{$$slots:f={},$$scope:_}=e,{open:p}=e,{links:N}=e,T,V=0,v=0,d=!1,C,G;function H(){t(0,p=!1),J(Se,l=p,l)}it(H);const P=(A,{duration:ae=400,easing:W=kl}={})=>{const q=o?A.clientHeight:v;return{css:(B,U)=>r?`opacity: ${B}`:`transform: translate3d(0, ${q*U}px, 0) scale3d(${.9+.1*B}, ${.9+.1*B}, 1)`,easing:W,duration:ae}},Z=A=>{A.key==="Escape"&&(H(),Je().then(()=>G.focus()))};function z(A){Ae[A?"unshift":"push"](()=>{G=A,t(8,G)})}const m=A=>t(6,d=A),K=async A=>{J(ze,o=A,o),await Je(),J(Ue,c=!0,c),await Je(),T.scrollToActive()};function S(){v=this.clientHeight,t(5,v)}function re(A){Ae[A?"unshift":"push"](()=>{C=A,t(7,C)})}function O(A){Ae[A?"unshift":"push"](()=>{T=A,t(3,T)})}const L=()=>J(Ue,c=!1,c);function R(){V=this.clientHeight,t(4,V)}const F=A=>{const ae=A.target;if(!(ae!=null&&ae.classList.contains("viewport"))||A.propertyName!=="transform")return;const W="calc(var(--height-difference) + 1px)",q="1px",B=c?W:q,U=c?q:W,ne=A.currentTarget;ne.style.clipPath=`polygon(0% ${B}, 100% ${B}, 100% 100%, 0% 100%)`,setTimeout(()=>{ne.style.clipPath=`polygon(0% ${U}, 100% ${U}, 100% 100%, 0% 100%)`},0)},Q=A=>{var W;const ae=A.target;ae!=null&&ae.classList.contains("viewport")&&A.propertyName==="transform"&&(A.currentTarget.style.clipPath="",c||(W=C.querySelector("a"))==null||W.focus())};return n.$$set=A=>{"open"in A&&t(0,p=A.open),"links"in A&&t(1,N=A.links),"$$scope"in A&&t(15,_=A.$$scope)},n.$$.update=()=>{n.$$.dirty[0]&1&&J(Se,l=p,l),n.$$.dirty[0]&2&&J(rt,i=N,i),n.$$.dirty[0]&4&&J(De,s=l,s)},[p,N,l,T,V,v,d,C,G,r,o,a,c,H,P,_,f,Z,z,m,K,S,re,O,L,R,F,Q]}class nn extends ye{constructor(e){super(),we(this,e,ln,xl,ke,{open:0,links:1},null,[-1,-1])}}function sn(n){let e;return{c(){e=g("hr"),this.h()},l(t){e=k(t,"HR",{class:!0}),this.h()},h(){h(e,"class","svelte-hbkmlj")},m(t,l){w(t,e,l)},p:_e,i:_e,o:_e,d(t){t&&u(e)}}}class Ye extends ye{constructor(e){super(),we(this,e,null,sn,ke,{})}}const rn=n=>({}),zt=n=>({}),on=n=>({}),Ht=n=>({}),an=n=>({}),St=n=>({}),cn=n=>({}),Pt=n=>({});function Zt(n,e,t){const l=n.slice();return l[21]=e[t],l}const fn=n=>({}),jt=n=>({}),un=n=>({}),Ot=n=>({}),hn=n=>({}),Rt=n=>({});function Ut(n){let e,t,l;return{c(){e=g("div"),t=oe("｜ "),l=oe(n[1]),this.h()},l(s){e=k(s,"DIV",{class:!0});var r=E(e);t=ie(r,"｜ "),l=ie(r,n[1]),r.forEach(u),this.h()},h(){h(e,"class","current-section mobile svelte-vmtx6z")},m(s,r){w(s,e,r),b(e,t),b(e,l)},p(s,r){r&2&&Ve(l,s[1])},d(s){s&&u(e)}}}function Kt(n){let e,t=n[21].title+"",l,s,r;return{c(){e=g("a"),l=oe(t),this.h()},l(o){e=k(o,"A",{href:!0,"aria-current":!0});var i=E(e);l=ie(i,t),i.forEach(u),this.h()},h(){h(e,"href",s=n[21].pathname),h(e,"aria-current",r=n[10].url.pathname.startsWith(`/${n[21].prefix}`)?"page":null)},m(o,i){w(o,e,i),b(e,l)},p(o,i){i&4&&t!==(t=o[21].title+"")&&Ve(l,t),i&4&&s!==(s=o[21].pathname)&&h(e,"href",s),i&1028&&r!==(r=o[10].url.pathname.startsWith(`/${o[21].prefix}`)?"page":null)&&h(e,"aria-current",r)},d(o){o&&u(e)}}}function _n(n){let e;return{c(){e=oe("Theme")},l(t){e=ie(t,"Theme")},m(t,l){w(t,e,l)},d(t){t&&u(e)}}}function mn(n){let e;return{c(){e=oe("Theme")},l(t){e=ie(t,"Theme")},m(t,l){w(t,e,l)},d(t){t&&u(e)}}}function pn(n){let e,t,l,s,r,o,i,a,c,f;e=new Ye({});const _=n[14]["external-links"],p=ce(_,n,n[18],Ht);s=new Ye({});const N=n[14]["theme-label"],T=ce(N,n,n[18],zt),V=T||mn();return c=new ol({}),{c(){x(e.$$.fragment),t=I(),p&&p.c(),l=I(),x(s.$$.fragment),r=I(),o=g("div"),i=g("span"),V&&V.c(),a=I(),x(c.$$.fragment),this.h()},l(v){ee(e.$$.fragment,v),t=D(v),p&&p.l(v),l=D(v),ee(s.$$.fragment,v),r=D(v),o=k(v,"DIV",{class:!0});var d=E(o);i=k(d,"SPAN",{class:!0});var C=E(i);V&&V.l(C),C.forEach(u),a=D(d),ee(c.$$.fragment,d),d.forEach(u),this.h()},h(){h(i,"class","caption svelte-vmtx6z"),h(o,"class","appearance svelte-vmtx6z")},m(v,d){te(e,v,d),w(v,t,d),p&&p.m(v,d),w(v,l,d),te(s,v,d),w(v,r,d),w(v,o,d),b(o,i),V&&V.m(i,null),b(o,a),te(c,o,null),f=!0},p(v,d){p&&p.p&&(!f||d&262144)&&fe(p,_,v,v[18],f?he(_,v[18],d,on):ue(v[18]),Ht),T&&T.p&&(!f||d&262144)&&fe(T,N,v,v[18],f?he(N,v[18],d,rn):ue(v[18]),zt)},i(v){f||($(e.$$.fragment,v),$(p,v),$(s.$$.fragment,v),$(V,v),$(c.$$.fragment,v),f=!0)},o(v){M(e.$$.fragment,v),M(p,v),M(s.$$.fragment,v),M(V,v),M(c.$$.fragment,v),f=!1},d(v){v&&(u(t),u(l),u(r),u(o)),le(e,v),p&&p.d(v),le(s,v),V&&V.d(v),le(c)}}}function dn(n){let e,t,l,s,r,o,i,a,c,f,_,p,N,T,V,v,d,C,G,H,P,Z,z,m,K,S,re,O;const L=n[14]["home-large"],R=ce(L,n,n[18],Rt),F=n[14]["home-small"],Q=ce(F,n,n[18],Ot);let A=n[1]&&Ut(n);const ae=n[14].search,W=ce(ae,n,n[18],jt);let q=ge(n[2]),B=[];for(let y=0;y<q.length;y+=1)B[y]=Kt(Zt(n,q,y));p=new Ye({});const U=n[14]["external-links"],ne=ce(U,n,n[18],Pt),Te=n[14]["theme-label"],Le=ce(Te,n,n[18],St),de=Le||_n();C=new ol({}),Z=new Ce({props:{name:"search",size:".6em"}});function Ge(y){n[16](y)}let Be={links:n[2],$$slots:{default:[pn]},$$scope:{ctx:n}};return n[5]!==void 0&&(Be.open=n[5]),m=new nn({props:Be}),Ae.push(()=>rl(m,"open",Ge)),{c(){e=g("nav"),t=g("a"),l=g("span"),R&&R.c(),s=I(),r=g("span"),Q&&Q.c(),o=I(),A&&A.c(),i=I(),a=g("div"),W&&W.c(),c=I(),f=g("div");for(let y=0;y<B.length;y+=1)B[y].c();_=I(),x(p.$$.fragment),N=I(),ne&&ne.c(),T=I(),V=g("div"),v=g("span"),de&&de.c(),d=I(),x(C.$$.fragment),G=I(),H=g("div"),P=g("button"),x(Z.$$.fragment),z=I(),x(m.$$.fragment),this.h()},l(y){e=k(y,"NAV",{"aria-label":!0,class:!0});var j=E(e);t=k(j,"A",{class:!0,href:!0,title:!0});var be=E(t);l=k(be,"SPAN",{class:!0});var ve=E(l);R&&R.l(ve),ve.forEach(u),s=D(be),r=k(be,"SPAN",{class:!0});var Oe=E(r);Q&&Q.l(Oe),Oe.forEach(u),be.forEach(u),o=D(j),A&&A.l(j),i=D(j),a=k(j,"DIV",{class:!0});var We=E(a);W&&W.l(We),c=D(We),f=k(We,"DIV",{class:!0});var Me=E(f);for(let xe=0;xe<B.length;xe+=1)B[xe].l(Me);_=D(Me),ee(p.$$.fragment,Me),N=D(Me),ne&&ne.l(Me),T=D(Me),V=k(Me,"DIV",{class:!0});var Fe=E(V);v=k(Fe,"SPAN",{class:!0});var at=E(v);de&&de.l(at),at.forEach(u),d=D(Fe),ee(C.$$.fragment,Fe),Fe.forEach(u),Me.forEach(u),We.forEach(u),G=D(j),H=k(j,"DIV",{class:!0});var Qe=E(H);P=k(Qe,"BUTTON",{"aria-label":!0,class:!0});var ct=E(P);ee(Z.$$.fragment,ct),ct.forEach(u),z=D(Qe),ee(m.$$.fragment,Qe),Qe.forEach(u),j.forEach(u),this.h()},h(){h(l,"class","home-large svelte-vmtx6z"),h(r,"class","home-small svelte-vmtx6z"),h(t,"class","home-link svelte-vmtx6z"),h(t,"href","/"),h(t,"title",n[0]),h(v,"class","caption svelte-vmtx6z"),h(V,"class","appearance svelte-vmtx6z"),h(f,"class","menu svelte-vmtx6z"),h(a,"class","desktop svelte-vmtx6z"),h(P,"aria-label","Search"),h(P,"class","search svelte-vmtx6z"),h(H,"class","mobile mobile-menu svelte-vmtx6z"),h(e,"aria-label","Primary"),h(e,"class","svelte-vmtx6z"),X(e,"visible",n[3]||n[5]),X(e,"$nav_open",n[5]),X(e,"dark",n[6].current==="dark"),me(e,"z-index",n[7]&&(n[8]||n[9])?80:null)},m(y,j){w(y,e,j),b(e,t),b(t,l),R&&R.m(l,null),b(t,s),b(t,r),Q&&Q.m(r,null),b(e,o),A&&A.m(e,null),b(e,i),b(e,a),W&&W.m(a,null),b(a,c),b(a,f);for(let be=0;be<B.length;be+=1)B[be]&&B[be].m(f,null);b(f,_),te(p,f,null),b(f,N),ne&&ne.m(f,null),b(f,T),b(f,V),b(V,v),de&&de.m(v,null),b(V,d),te(C,V,null),b(e,G),b(e,H),b(H,P),te(Z,P,null),b(H,z),te(m,H,null),n[17](e),S=!0,re||(O=[Pe(Tl.call(null,window,n[12])),se(window,"hashchange",n[11]),se(window,"focusin",n[13]),se(P,"click",n[15])],re=!0)},p(y,[j]){if(R&&R.p&&(!S||j&262144)&&fe(R,L,y,y[18],S?he(L,y[18],j,hn):ue(y[18]),Rt),Q&&Q.p&&(!S||j&262144)&&fe(Q,F,y,y[18],S?he(F,y[18],j,un):ue(y[18]),Ot),(!S||j&1)&&h(t,"title",y[0]),y[1]?A?A.p(y,j):(A=Ut(y),A.c(),A.m(e,i)):A&&(A.d(1),A=null),W&&W.p&&(!S||j&262144)&&fe(W,ae,y,y[18],S?he(ae,y[18],j,fn):ue(y[18]),jt),j&1028){q=ge(y[2]);let ve;for(ve=0;ve<q.length;ve+=1){const Oe=Zt(y,q,ve);B[ve]?B[ve].p(Oe,j):(B[ve]=Kt(Oe),B[ve].c(),B[ve].m(f,_))}for(;ve<B.length;ve+=1)B[ve].d(1);B.length=q.length}ne&&ne.p&&(!S||j&262144)&&fe(ne,U,y,y[18],S?he(U,y[18],j,cn):ue(y[18]),Pt),Le&&Le.p&&(!S||j&262144)&&fe(Le,Te,y,y[18],S?he(Te,y[18],j,an):ue(y[18]),St);const be={};j&4&&(be.links=y[2]),j&262144&&(be.$$scope={dirty:j,ctx:y}),!K&&j&32&&(K=!0,be.open=y[5],sl(()=>K=!1)),m.$set(be),(!S||j&40)&&X(e,"visible",y[3]||y[5]),(!S||j&32)&&X(e,"$nav_open",y[5]),(!S||j&64)&&X(e,"dark",y[6].current==="dark"),j&896&&me(e,"z-index",y[7]&&(y[8]||y[9])?80:null)},i(y){S||($(R,y),$(Q,y),$(W,y),$(p.$$.fragment,y),$(ne,y),$(de,y),$(C.$$.fragment,y),$(Z.$$.fragment,y),$(m.$$.fragment,y),S=!0)},o(y){M(R,y),M(Q,y),M(W,y),M(p.$$.fragment,y),M(ne,y),M(de,y),M(C.$$.fragment,y),M(Z.$$.fragment,y),M(m.$$.fragment,y),S=!1},d(y){y&&u(e),R&&R.d(y),Q&&Q.d(y),A&&A.d(),W&&W.d(y),Ze(B,y),le(p),ne&&ne.d(y),de&&de.d(y),le(C),le(Z),le(m),n[17](null),re=!1,je(O)}}}function vn(n,e,t){let l,s,r,o,i,a;Y(n,tt,m=>t(5,l=m)),Y(n,Ie,m=>t(6,s=m)),Y(n,De,m=>t(7,r=m)),Y(n,qe,m=>t(8,o=m)),Y(n,El,m=>t(9,i=m)),Y(n,Xe,m=>t(10,a=m));let{$$slots:c={},$$scope:f}=e,{home_title:_="Homepage"}=e,{title:p}=e,{links:N}=e,T=!0,V,v=!1;function d(){v=!0}let C=0;function G(){if(!ht)return;const m=ht.scrollTop;v||t(3,T=m===C?T:m<50||m<C),C=m,v=!1}function H(){l&&!V.contains(document.activeElement)&&J(tt,l=!1,l)}const P=()=>{J(qe,o=!0,o)};function Z(m){l=m,tt.set(l)}function z(m){Ae[m?"unshift":"push"](()=>{V=m,t(4,V)})}return n.$$set=m=>{"home_title"in m&&t(0,_=m.home_title),"title"in m&&t(1,p=m.title),"links"in m&&t(2,N=m.links),"$$scope"in m&&t(18,f=m.$$scope)},[_,p,N,T,V,l,s,r,o,i,a,d,G,H,c,P,Z,z,f]}class bn extends ye{constructor(e){super(),we(this,e,vn,dn,ke,{home_title:0,title:1,links:2})}}function gn(n){let e,t,l=navigator.platform==="MacIntel"?"⌘":"Ctrl",s,r,o,i="K";return{c(){e=g("div"),t=g("kbd"),s=oe(l),r=I(),o=g("kbd"),o.textContent=i,this.h()},l(a){e=k(a,"DIV",{class:!0});var c=E(e);t=k(c,"KBD",{class:!0});var f=E(t);s=ie(f,l),f.forEach(u),r=D(c),o=k(c,"KBD",{class:!0,"data-svelte-h":!0}),Ne(o)!=="svelte-3k5xuj"&&(o.textContent=i),c.forEach(u),this.h()},h(){h(t,"class","svelte-15l0yne"),h(o,"class","svelte-15l0yne"),h(e,"class","shortcut svelte-15l0yne")},m(a,c){w(a,e,c),b(e,t),b(t,s),b(e,r),b(e,o)},p:_e,d(a){a&&u(e)}}}function kn(n){let e,t,l,s,r,o=gn();return{c(){e=g("form"),t=g("input"),l=I(),o&&o.c(),this.h()},l(i){e=k(i,"FORM",{class:!0,action:!0});var a=E(e);t=k(a,"INPUT",{type:!0,name:!0,placeholder:!0,"aria-label":!0,spellcheck:!0,class:!0}),l=D(a),o&&o.l(a),a.forEach(u),this.h()},h(){t.value=n[0],h(t,"type","search"),h(t,"name","q"),h(t,"placeholder",n[1]),h(t,"aria-label",n[1]),h(t,"spellcheck","false"),h(t,"class","svelte-15l0yne"),h(e,"class","search-container svelte-15l0yne"),h(e,"action","/search")},m(i,a){w(i,e,a),b(e,t),b(e,l),o&&o.m(e,null),s||(r=[se(t,"input",n[4]),se(t,"mousedown",nt(n[5])),se(t,"touchend",nt(n[6]))],s=!0)},p(i,[a]){a&1&&t.value!==i[0]&&(t.value=i[0]),a&2&&h(t,"placeholder",i[1]),a&2&&h(t,"aria-label",i[1]),o.p(i,a)},i:_e,o:_e,d(i){i&&u(e),o&&o.d(),s=!1,je(r)}}}function yn(n,e,t){let l,s;Y(n,qe,f=>t(2,l=f)),Y(n,He,f=>t(3,s=f));let{q:r=""}=e,{label:o="Search"}=e;const i=f=>{J(qe,l=!0,l),J(He,s=f.currentTarget.value,s),f.currentTarget.value=""},a=()=>J(qe,l=!0,l),c=()=>J(qe,l=!0,l);return n.$$set=f=>{"q"in f&&t(0,r=f.q),"label"in f&&t(1,o=f.label)},[r,o,l,s,i,a,c]}class wn extends ye{constructor(e){super(),we(this,e,yn,kn,ke,{q:0,label:1})}}function $n(){return new Worker(""+new URL("../workers/search-worker-248fd502.js",import.meta.url).href)}const{window:En}=wl,Tn=n=>({}),Gt=n=>({});function Wt(n,e,t){const l=n.slice();return l[7]=e[t],l[27]=t,l}const qn=n=>({has_recent_searches:n&64}),Ft=n=>({has_recent_searches:n[6].length}),Vn=n=>({}),Qt=n=>({slot:"no-results"}),An=n=>({}),Jt=n=>({});function Yt(n){let e,t,l,s,r,o,i,a,c,f,_,p,N,T,V,v,d;a=new Ce({props:{name:"close"}});const C=n[12]["search-description"],G=ce(C,n,n[22],Jt),H=G||Mn(),P=[Cn,Nn],Z=[];function z(m,K){var S;return(S=m[7])!=null&&S.query?0:1}return N=z(n),T=Z[N]=P[N](n),{c(){e=g("div"),t=I(),l=g("div"),s=g("div"),r=g("input"),o=I(),i=g("button"),x(a.$$.fragment),c=I(),f=g("span"),H&&H.c(),_=I(),p=g("div"),T.c(),this.h()},l(m){e=k(m,"DIV",{class:!0,"aria-hidden":!0}),E(e).forEach(u),t=D(m),l=k(m,"DIV",{class:!0});var K=E(l);s=k(K,"DIV",{class:!0});var S=E(s);r=k(S,"INPUT",{placeholder:!0,"aria-describedby":!0,"aria-label":!0,spellcheck:!0,class:!0}),o=D(S),i=k(S,"BUTTON",{"aria-label":!0,class:!0});var re=E(i);ee(a.$$.fragment,re),re.forEach(u),c=D(S),f=k(S,"SPAN",{id:!0,class:!0});var O=E(f);H&&H.l(O),O.forEach(u),_=D(S),p=k(S,"DIV",{class:!0});var L=E(p);T.l(L),L.forEach(u),S.forEach(u),K.forEach(u),this.h()},h(){h(e,"class","pseudo-overlay svelte-y8ty26"),h(e,"aria-hidden","true"),r.autofocus=!0,r.value=n[2],h(r,"placeholder",n[0]),h(r,"aria-describedby","search-description"),h(r,"aria-label",n[0]),h(r,"spellcheck","false"),h(r,"class","svelte-y8ty26"),h(i,"aria-label","Close"),h(i,"class","svelte-y8ty26"),h(f,"id","search-description"),h(f,"class","visually-hidden svelte-y8ty26"),h(p,"class","results svelte-y8ty26"),h(s,"class","search-box svelte-y8ty26"),h(l,"class","modal svelte-y8ty26")},m(m,K){w(m,e,K),w(m,t,K),w(m,l,K),b(l,s),b(s,r),b(s,o),b(s,i),te(a,i,null),b(s,c),b(s,f),H&&H.m(f,null),b(s,_),b(s,p),Z[N].m(p,null),n[20](l),V=!0,r.focus(),v||(d=[se(e,"click",n[8]),se(r,"keydown",n[14]),se(r,"input",n[15]),se(i,"click",n[8]),se(l,"keydown",n[21]),Pe(al.call(null,l))],v=!0)},p(m,K){(!V||K&4&&r.value!==m[2])&&(r.value=m[2]),(!V||K&1)&&h(r,"placeholder",m[0]),(!V||K&1)&&h(r,"aria-label",m[0]),G&&G.p&&(!V||K&4194304)&&fe(G,C,m,m[22],V?he(C,m[22],K,An):ue(m[22]),Jt);let S=N;N=z(m),N===S?Z[N].p(m,K):($e(),M(Z[S],1,1,()=>{Z[S]=null}),Ee(),T=Z[N],T?T.p(m,K):(T=Z[N]=P[N](m),T.c()),$(T,1),T.m(p,null))},i(m){V||($(a.$$.fragment,m),$(H,m),$(T),V=!0)},o(m){M(a.$$.fragment,m),M(H,m),M(T),V=!1},d(m){m&&(u(e),u(t),u(l)),le(a),H&&H.d(m),Z[N].d(),n[20](null),v=!1,je(d)}}}function Mn(n){let e;return{c(){e=oe("Results will update as you type")},l(t){e=ie(t,"Results will update as you type")},m(t,l){w(t,e,l)},d(t){t&&u(e)}}}function Nn(n){let e,t,l,s;const r=n[12].idle,o=ce(r,n,n[22],Ft),i=o||Ln(n);let a=n[6].length&&Xt(n);return{c(){e=g("h2"),i&&i.c(),t=I(),a&&a.c(),l=pe(),this.h()},l(c){e=k(c,"H2",{class:!0});var f=E(e);i&&i.l(f),f.forEach(u),t=D(c),a&&a.l(c),l=pe(),this.h()},h(){h(e,"class","info svelte-y8ty26"),X(e,"empty",n[6].length===0)},m(c,f){w(c,e,f),i&&i.m(e,null),w(c,t,f),a&&a.m(c,f),w(c,l,f),s=!0},p(c,f){o?o.p&&(!s||f&4194368)&&fe(o,r,c,c[22],s?he(r,c[22],f,qn):ue(c[22]),Ft):i&&i.p&&(!s||f&64)&&i.p(c,s?f:-1),(!s||f&64)&&X(e,"empty",c[6].length===0),c[6].length?a?(a.p(c,f),f&64&&$(a,1)):(a=Xt(c),a.c(),$(a,1),a.m(l.parentNode,l)):a&&($e(),M(a,1,1,()=>{a=null}),Ee())},i(c){s||($(i,c),$(a),s=!0)},o(c){M(i,c),M(a),s=!1},d(c){c&&(u(e),u(t),u(l)),i&&i.d(c),a&&a.d(c)}}}function Cn(n){let e,t,l,s,r;return t=new ql({props:{results:n[7].results,query:n[7].query,$$slots:{"no-results":[In]},$$scope:{ctx:n}}}),t.$on("select",n[16]),{c(){e=g("div"),x(t.$$.fragment),this.h()},l(o){e=k(o,"DIV",{class:!0});var i=E(e);ee(t.$$.fragment,i),i.forEach(u),this.h()},h(){h(e,"class","results-container svelte-y8ty26")},m(o,i){w(o,e,i),te(t,e,null),l=!0,s||(r=se(e,"click",n[17]),s=!0)},p(o,i){const a={};i&128&&(a.results=o[7].results),i&128&&(a.query=o[7].query),i&4194304&&(a.$$scope={dirty:i,ctx:o}),t.$set(a)},i(o){l||($(t.$$.fragment,o),l=!0)},o(o){M(t.$$.fragment,o),l=!1},d(o){o&&u(e),le(t),s=!1,r()}}}function Ln(n){let e=n[6].length?"Recent searches":"No recent searches",t;return{c(){t=oe(e)},l(l){t=ie(l,e)},m(l,s){w(l,t,s)},p(l,s){s&64&&e!==(e=l[6].length?"Recent searches":"No recent searches")&&Ve(t,e)},d(l){l&&u(t)}}}function Xt(n){let e,t,l,s=ge(n[6]),r=[];for(let i=0;i<s.length;i+=1)r[i]=xt(Wt(n,s,i));const o=i=>M(r[i],1,1,()=>{r[i]=null});return{c(){e=g("div"),t=g("ul");for(let i=0;i<r.length;i+=1)r[i].c();this.h()},l(i){e=k(i,"DIV",{class:!0});var a=E(e);t=k(a,"UL",{class:!0});var c=E(t);for(let f=0;f<r.length;f+=1)r[f].l(c);c.forEach(u),a.forEach(u),this.h()},h(){h(t,"class","svelte-y8ty26"),h(e,"class","results-container svelte-y8ty26")},m(i,a){w(i,e,a),b(e,t);for(let c=0;c<r.length;c+=1)r[c]&&r[c].m(t,null);l=!0},p(i,a){if(a&592){s=ge(i[6]);let c;for(c=0;c<s.length;c+=1){const f=Wt(i,s,c);r[c]?(r[c].p(f,a),$(r[c],1)):(r[c]=xt(f),r[c].c(),$(r[c],1),r[c].m(t,null))}for($e(),c=s.length;c<r.length;c+=1)o(c);Ee()}},i(i){if(!l){for(let a=0;a<s.length;a+=1)$(r[a]);l=!0}},o(i){r=r.filter(Boolean);for(let a=0;a<r.length;a+=1)M(r[a]);l=!1},d(i){i&&u(e),Ze(r,i)}}}function xt(n){let e,t,l,s=n[7].breadcrumbs.join("/")+"",r,o,i,a=n[7].breadcrumbs.at(-1)+"",c,f,_,p,N,T,V,v,d;function C(){return n[18](n[7])}N=new Ce({props:{name:"delete"}});function G(...H){return n[19](n[7],...H)}return{c(){e=g("li"),t=g("a"),l=g("small"),r=oe(s),o=I(),i=g("strong"),c=oe(a),_=I(),p=g("button"),x(N.$$.fragment),T=I(),this.h()},l(H){e=k(H,"LI",{class:!0});var P=E(e);t=k(P,"A",{href:!0,class:!0});var Z=E(t);l=k(Z,"SMALL",{class:!0});var z=E(l);r=ie(z,s),z.forEach(u),o=D(Z),i=k(Z,"STRONG",{class:!0});var m=E(i);c=ie(m,a),m.forEach(u),Z.forEach(u),_=D(P),p=k(P,"BUTTON",{"aria-label":!0,class:!0});var K=E(p);ee(N.$$.fragment,K),K.forEach(u),T=D(P),P.forEach(u),this.h()},h(){h(l,"class","svelte-y8ty26"),h(i,"class","svelte-y8ty26"),h(t,"href",f=n[7].href),h(t,"class","svelte-y8ty26"),h(p,"aria-label","Delete"),h(p,"class","svelte-y8ty26"),h(e,"class","recent svelte-y8ty26")},m(H,P){w(H,e,P),b(e,t),b(t,l),b(l,r),b(t,o),b(t,i),b(i,c),b(e,_),b(e,p),te(N,p,null),b(e,T),V=!0,v||(d=[se(t,"click",C),se(p,"click",G)],v=!0)},p(H,P){n=H,(!V||P&64)&&s!==(s=n[7].breadcrumbs.join("/")+"")&&Ve(r,s),(!V||P&64)&&a!==(a=n[7].breadcrumbs.at(-1)+"")&&Ve(c,a),(!V||P&64&&f!==(f=n[7].href))&&h(t,"href",f)},i(H){V||($(N.$$.fragment,H),V=!0)},o(H){M(N.$$.fragment,H),V=!1},d(H){H&&u(e),le(N),v=!1,je(d)}}}function Bn(n){let e;return{c(){e=oe("No results")},l(t){e=ie(t,"No results")},m(t,l){w(t,e,l)},d(t){t&&u(e)}}}function In(n){let e;const t=n[12]["no-results"],l=ce(t,n,n[22],Qt),s=l||Bn();return{c(){s&&s.c()},l(r){s&&s.l(r)},m(r,o){s&&s.m(r,o),e=!0},p(r,o){l&&l.p&&(!e||o&4194304)&&fe(l,t,r,r[22],e?he(t,r[22],o,Vn):ue(r[22]),Qt)},i(r){e||($(s,r),e=!0)},o(r){M(s,r),e=!1},d(r){s&&s.d(r)}}}function el(n){let e,t;const l=n[12]["no-results"],s=ce(l,n,n[22],Gt),r=s||Dn();return{c(){e=g("p"),r&&r.c()},l(o){e=k(o,"P",{});var i=E(e);r&&r.l(i),i.forEach(u)},m(o,i){w(o,e,i),r&&r.m(e,null),t=!0},p(o,i){s&&s.p&&(!t||i&4194304)&&fe(s,l,o,o[22],t?he(l,o[22],i,Tn):ue(o[22]),Gt)},i(o){t||($(r,o),t=!0)},o(o){M(r,o),t=!1},d(o){o&&u(e),r&&r.d(o)}}}function Dn(n){let e;return{c(){e=oe("No results")},l(t){e=ie(t,"No results")},m(t,l){w(t,e,l)},d(t){t&&u(e)}}}function zn(n){var a;let e,t,l,s,r,o=n[3]&&n[1]&&Yt(n),i=n[3]&&((a=n[7])==null?void 0:a.results.length)===0&&el(n);return{c(){o&&o.c(),e=I(),t=g("div"),i&&i.c(),this.h()},l(c){o&&o.l(c),e=D(c),t=k(c,"DIV",{"aria-live":!0,class:!0});var f=E(t);i&&i.l(f),f.forEach(u),this.h()},h(){h(t,"aria-live","assertive"),h(t,"class","visually-hidden")},m(c,f){o&&o.m(c,f),w(c,e,f),w(c,t,f),i&&i.m(t,null),l=!0,s||(r=se(En,"keydown",n[13]),s=!0)},p(c,[f]){var _;c[3]&&c[1]?o?(o.p(c,f),f&10&&$(o,1)):(o=Yt(c),o.c(),$(o,1),o.m(e.parentNode,e)):o&&($e(),M(o,1,1,()=>{o=null}),Ee()),c[3]&&((_=c[7])==null?void 0:_.results.length)===0?i?(i.p(c,f),f&136&&$(i,1)):(i=el(c),i.c(),$(i,1),i.m(t,null)):i&&($e(),M(i,1,1,()=>{i=null}),Ee())},i(c){l||($(o),$(i),l=!0)},o(c){M(o),M(i),l=!1},d(c){c&&(u(e),u(t)),o&&o.d(c),i&&i.d(),s=!1,r()}}}function Hn(n,e,t){let l,s,r,o;Y(n,He,L=>t(2,l=L)),Y(n,De,L=>t(23,s=L)),Y(n,qe,L=>t(3,r=L)),Y(n,lt,L=>t(4,o=L));let{$$slots:i={},$$scope:a}=e,{placeholder:c="Search"}=e,f,_=null,p=[],N,T=!1,V=1;const v=new Set;ot(async()=>{t(10,N=new $n),N.addEventListener("message",L=>{const{type:R,payload:F}=L.data;R==="ready"&&t(1,T=!0),R==="results"&&t(7,_=F),R==="recents"&&t(6,p=F)}),N.postMessage({type:"init",payload:{origin:location.origin}})}),it(()=>{d()});async function d(){if(r){J(qe,r=!1,r);const L=-parseInt(document.body.style.top||"0");document.body.style.position="",document.body.style.top="",document.body.tabIndex=-1,document.body.focus(),document.body.removeAttribute("tabindex"),window.scrollTo(0,L)}t(7,_=null)}function C(L){J(lt,o=[L,...o.filter(R=>R!==L)],o),d()}const G=()=>J(He,l="",l),H=L=>{L.key==="k"&&(navigator.platform==="MacIntel"?L.metaKey:L.ctrlKey)&&(L.preventDefault(),J(He,l="",l),r?d():J(qe,r=!0,r)),L.code==="Escape"&&d()},P=L=>{var R;L.key==="Enter"&&!L.isComposing&&((R=f.querySelector("a[data-has-node]"))==null||R.click())},Z=L=>{J(He,l=L.currentTarget.value,l)},z=L=>{C(L.detail.href)},m=()=>J(qe,r=!1,r),K=L=>C(L.href),S=(L,R)=>{J(lt,o=o.filter(F=>F!==L.href),o),R.stopPropagation(),R.preventDefault()};function re(L){Ae[L?"unshift":"push"](()=>{f=L,t(5,f)})}const O=L=>{if(L.key==="ArrowDown"||L.key==="ArrowUp"){L.preventDefault();const R=il(L.currentTarget),F="a, input";L.key==="ArrowDown"?R.next(F):R.prev(F)}};return n.$$set=L=>{"placeholder"in L&&t(0,c=L.placeholder),"$$scope"in L&&t(22,a=L.$$scope)},n.$$.update=()=>{if(n.$$.dirty&3078&&T){const L=t(11,V++,V);v.add(L),N.postMessage({type:"query",id:L,payload:l})}n.$$.dirty&1042&&T&&N.postMessage({type:"recents",payload:o}),n.$$.dirty&8&&Je().then(()=>J(De,s=r,s)),n.$$.dirty&8&&r&&(document.body.style.top=`-${window.scrollY}px`,document.body.style.position="fixed",J(De,s=!0,s),G())},[c,T,l,r,o,f,p,_,d,C,N,V,i,H,P,Z,z,m,K,S,re,O,a]}class Sn extends ye{constructor(e){super(),we(this,e,Hn,zn,ke,{placeholder:0})}}function Pn(n){let e;const t=n[4].default,l=ce(t,n,n[6],null);return{c(){l&&l.c()},l(s){l&&l.l(s)},m(s,r){l&&l.m(s,r),e=!0},p(s,r){l&&l.p&&(!e||r&64)&&fe(l,t,s,s[6],e?he(t,s[6],r,null):ue(s[6]),null)},i(s){e||($(l,s),e=!0)},o(s){M(l,s),e=!1},d(s){l&&l.d(s)}}}function Zn(n){let e,t="kit",l;return{c(){e=g("strong"),e.textContent=t,l=oe(".svelte.dev")},l(s){e=k(s,"STRONG",{"data-svelte-h":!0}),Ne(e)!=="svelte-1to94iu"&&(e.textContent=t),l=ie(s,".svelte.dev")},m(s,r){w(s,e,r),w(s,l,r)},p:_e,d(s){s&&(u(e),u(l))}}}function jn(n){let e,t="kit";return{c(){e=g("strong"),e.textContent=t},l(l){e=k(l,"STRONG",{"data-svelte-h":!0}),Ne(e)!=="svelte-1to94iu"&&(e.textContent=t)},m(l,s){w(l,e,s)},p:_e,d(l){l&&u(e)}}}function tl(n){let e,t;return e=new wn({}),{c(){x(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,s){te(e,l,s),t=!0},i(l){t||($(e.$$.fragment,l),t=!0)},o(l){M(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function On(n){let e,t,l=n[2].url.pathname!=="/search"&&tl();return{c(){l&&l.c(),e=pe()},l(s){l&&l.l(s),e=pe()},m(s,r){l&&l.m(s,r),w(s,e,r),t=!0},p(s,r){s[2].url.pathname!=="/search"?l?r&4&&$(l,1):(l=tl(),l.c(),$(l,1),l.m(e.parentNode,e)):l&&($e(),M(l,1,1,()=>{l=null}),Ee())},i(s){t||($(l),t=!0)},o(s){M(l),t=!1},d(s){s&&u(e),l&&l.d(s)}}}function Rn(n){let e,t="Tutorial",l,s,r="Svelte",o,i,a,c,f,_="Discord",p,N,T,V,v,d,C="GitHub",G,H,P,Z;return i=new Ye({}),T=new Ce({props:{name:"discord"}}),P=new Ce({props:{name:"github"}}),{c(){e=g("a"),e.textContent=t,l=I(),s=g("a"),s.textContent=r,o=I(),x(i.$$.fragment),a=I(),c=g("a"),f=g("span"),f.textContent=_,p=I(),N=g("span"),x(T.$$.fragment),V=I(),v=g("a"),d=g("span"),d.textContent=C,G=I(),H=g("span"),x(P.$$.fragment),this.h()},l(z){e=k(z,"A",{href:!0,rel:!0,"data-svelte-h":!0}),Ne(e)!=="svelte-15y8ruk"&&(e.textContent=t),l=D(z),s=k(z,"A",{href:!0,"data-svelte-h":!0}),Ne(s)!=="svelte-yry8a6"&&(s.textContent=r),o=D(z),ee(i.$$.fragment,z),a=D(z),c=k(z,"A",{href:!0,rel:!0,title:!0});var m=E(c);f=k(m,"SPAN",{class:!0,"data-svelte-h":!0}),Ne(f)!=="svelte-byakra"&&(f.textContent=_),p=D(m),N=k(m,"SPAN",{class:!0});var K=E(N);ee(T.$$.fragment,K),K.forEach(u),m.forEach(u),V=D(z),v=k(z,"A",{href:!0,title:!0});var S=E(v);d=k(S,"SPAN",{class:!0,"data-svelte-h":!0}),Ne(d)!=="svelte-1o8f6s1"&&(d.textContent=C),G=D(S),H=k(S,"SPAN",{class:!0});var re=E(H);ee(P.$$.fragment,re),re.forEach(u),S.forEach(u),this.h()},h(){h(e,"href","https://learn.svelte.dev/tutorial/introducing-sveltekit"),h(e,"rel","external"),h(s,"href","https://svelte.dev"),h(f,"class","small svelte-egrlut"),h(N,"class","large svelte-egrlut"),h(c,"href","https://svelte.dev/chat"),h(c,"rel","external"),h(c,"title","Discord Chat"),h(d,"class","small svelte-egrlut"),h(H,"class","large svelte-egrlut"),h(v,"href","https://github.com/sveltejs/kit"),h(v,"title","GitHub Repo")},m(z,m){w(z,e,m),w(z,l,m),w(z,s,m),w(z,o,m),te(i,z,m),w(z,a,m),w(z,c,m),b(c,f),b(c,p),b(c,N),te(T,N,null),w(z,V,m),w(z,v,m),b(v,d),b(v,G),b(v,H),te(P,H,null),Z=!0},p:_e,i(z){Z||($(i.$$.fragment,z),$(T.$$.fragment,z),$(P.$$.fragment,z),Z=!0)},o(z){M(i.$$.fragment,z),M(T.$$.fragment,z),M(P.$$.fragment,z),Z=!1},d(z){z&&(u(e),u(l),u(s),u(o),u(a),u(c),u(V),u(v)),le(i,z),le(T),le(P)}}}function Un(n){let e,t;return e=new bn({props:{slot:"top-nav",title:n[0].nav_title,links:n[0].nav_links,$$slots:{"external-links":[Rn],search:[On],"home-small":[jn],"home-large":[Zn]},$$scope:{ctx:n}}}),{c(){x(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,s){te(e,l,s),t=!0},p(l,s){const r={};s&1&&(r.title=l[0].nav_title),s&1&&(r.links=l[0].nav_links),s&68&&(r.$$scope={dirty:s,ctx:l}),e.$set(r)},i(l){t||($(e.$$.fragment,l),t=!0)},o(l){M(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function Kn(n){let e,t;return e=new Sn({}),{c(){x(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,s){te(e,l,s),t=!0},i(l){t||($(e.$$.fragment,l),t=!0)},o(l){M(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function Gn(n){let e,t,l,s,r,o;function i(f){n[5](f)}let a={nav_visible:n[2].url.pathname!=="/repl/embed",$$slots:{"top-nav":[Un],default:[Pn]},$$scope:{ctx:n}};n[1]!==void 0&&(a.snapshot=n[1]),t=new jl({props:a}),Ae.push(()=>rl(t,"snapshot",i));let c=Kn();return{c(){e=g("div"),x(t.$$.fragment),s=I(),c&&c.c(),r=pe(),this.h()},l(f){e=k(f,"DIV",{});var _=E(e);ee(t.$$.fragment,_),_.forEach(u),s=D(f),c&&c.l(f),r=pe(),this.h()},h(){me(e,"display",n[2].url.pathname!=="/docs"?"contents":"none")},m(f,_){w(f,e,_),te(t,e,null),w(f,s,_),c&&c.m(f,_),w(f,r,_),o=!0},p(f,[_]){const p={};_&4&&(p.nav_visible=f[2].url.pathname!=="/repl/embed"),_&69&&(p.$$scope={dirty:_,ctx:f}),!l&&_&2&&(l=!0,p.snapshot=f[1],sl(()=>l=!1)),t.$set(p),_&4&&me(e,"display",f[2].url.pathname!=="/docs"?"contents":"none")},i(f){o||($(t.$$.fragment,f),$(c),o=!0)},o(f){M(t.$$.fragment,f),M(c),o=!1},d(f){f&&(u(e),u(s),u(r)),le(t),c&&c.d(f)}}}function Wn(n,e,t){let l;Y(n,Xe,f=>t(2,l=f));let{$$slots:s={},$$scope:r}=e,{data:o}=e,i;const a={capture(){return{shell:i==null?void 0:i.capture()}},restore(f){i==null||i.restore(f.shell)}};function c(f){i=f,t(1,i)}return n.$$set=f=>{"data"in f&&t(0,o=f.data),"$$scope"in f&&t(6,r=f.$$scope)},[o,i,l,a,s,c,r]}class ns extends ye{constructor(e){super(),we(this,e,Wn,Gn,ke,{data:0,snapshot:3})}get snapshot(){return this.$$.ctx[3]}}export{ns as component};
