import{S as ot,i as it,s as st,a as lt,e as T,c as ct,b as M,g as Z,t as D,d as Q,f as j,h as q,j as ft,o as Ae,k as ut,l as dt,m as pt,n as ke,p as J,q as ht,r as mt,u as _t,v as G,w as H,x as se,y as K,z,A as he}from"./chunks/index-41559e88.js";import{S as tt,I as F,g as ze,f as Je,a as $e,b as me,s as Y,i as We,c as oe,P as Ye,d as gt,e as wt,h as yt}from"./chunks/singletons-a9494492.js";import{R as Xe,H as Pe}from"./chunks/control-e7f5239e.js";function bt(r,e){return r==="/"||e==="ignore"?r:e==="never"?r.endsWith("/")?r.slice(0,-1):r:e==="always"&&!r.endsWith("/")?r+"/":r}function vt(r){return r.split("%25").map(decodeURI).join("%25")}function Et(r){for(const e in r)r[e]=decodeURIComponent(r[e]);return r}const kt=["href","pathname","search","searchParams","toString","toJSON"];function $t(r,e){const n=new URL(r);for(const o of kt){let a=n[o];Object.defineProperty(n,o,{get(){return e(),a},enumerable:!0,configurable:!0})}return Rt(n),n}function Rt(r){Object.defineProperty(r,"hash",{get(){throw new Error("Cannot access event.url.hash. Consider using `$page.url.hash` inside a component instead")}})}const St="/__data.json";function Lt(r){return r.replace(/\/$/,"")+St}function It(r){let e=5381;if(typeof r=="string"){let n=r.length;for(;n;)e=e*33^r.charCodeAt(--n)}else if(ArrayBuffer.isView(r)){const n=new Uint8Array(r.buffer,r.byteOffset,r.byteLength);let o=n.length;for(;o;)e=e*33^n[--o]}else throw new TypeError("value must be a string or TypedArray");return(e>>>0).toString(36)}const _e=window.fetch;window.fetch=(r,e)=>((r instanceof Request?r.method:(e==null?void 0:e.method)||"GET")!=="GET"&&ie.delete(Ne(r)),_e(r,e));const ie=new Map;function At(r,e){const n=Ne(r,e),o=document.querySelector(n);if(o!=null&&o.textContent){const{body:a,...d}=JSON.parse(o.textContent),t=o.getAttribute("data-ttl");return t&&ie.set(n,{body:a,init:d,ttl:1e3*Number(t)}),Promise.resolve(new Response(a,d))}return _e(r,e)}function Pt(r,e,n){if(ie.size>0){const o=Ne(r,n),a=ie.get(o);if(a){if(performance.now(){const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(o);if(a)return e.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const d=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(o);if(d)return e.push({name:d[1],matcher:d[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!o)return;const t=o.split(/\[(.+?)\](?!\])/);return"/"+t.map((u,p)=>{if(p%2){if(u.startsWith("x+"))return Re(String.fromCharCode(parseInt(u.slice(2),16)));if(u.startsWith("u+"))return Re(String.fromCharCode(...u.slice(2).split("-").map(L=>parseInt(L,16))));const g=Ot.exec(u);if(!g)throw new Error(`Invalid param: ${u}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,y,N,k,B]=g;return e.push({name:k,matcher:B,optional:!!y,rest:!!N,chained:N?p===1&&t[0]==="":!1}),N?"(.*?)":y?"([^/]*)?":"([^/]+?)"}return Re(u)}).join("")}).join("")}/?$`),params:e}}function Ut(r){return!/^\([^)]+\)$/.test(r)}function Tt(r){return r.slice(1).split("/").filter(Ut)}function Dt(r,e,n){const o={},a=r.slice(1);let d="";for(let t=0;t=t;)a[p]=a[p-1],p-=1;continue}return}o[f.name]=u}}if(!d)return o}function Re(r){return r.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function jt(r,e,n,o){const a=new Set(e);return Object.entries(n).map(([f,[u,p,g]])=>{const{pattern:y,params:N}=Nt(f),k={id:f,exec:B=>{const L=y.exec(B);if(L)return Dt(L,N,o)},errors:[1,...g||[]].map(B=>r[B]),layouts:[0,...p||[]].map(t),leaf:d(u)};return k.errors.length=k.layouts.length=Math.max(k.errors.length,k.layouts.length),k});function d(f){const u=f<0;return u&&(f=~f),[u,r[f]]}function t(f){return f===void 0?f:[a.has(f),r[f]]}}function Vt(r){let e,n,o;var a=r[0][0];function d(t){return{props:{data:t[2],form:t[1]}}}return a&&(e=G(a,d(r))),{c(){e&&H(e.$$.fragment),n=T()},l(t){e&&se(e.$$.fragment,t),n=T()},m(t,f){e&&K(e,t,f),M(t,n,f),o=!0},p(t,f){const u={};if(f&4&&(u.data=t[2]),f&2&&(u.form=t[1]),a!==(a=t[0][0])){if(e){Z();const p=e;D(p.$$.fragment,1,0,()=>{z(p,1)}),Q()}a?(e=G(a,d(t)),H(e.$$.fragment),j(e.$$.fragment,1),K(e,n.parentNode,n)):e=null}else a&&e.$set(u)},i(t){o||(e&&j(e.$$.fragment,t),o=!0)},o(t){e&&D(e.$$.fragment,t),o=!1},d(t){t&&q(n),e&&z(e,t)}}}function Ct(r){let e,n,o;var a=r[0][0];function d(t){return{props:{data:t[2],$$slots:{default:[Mt]},$$scope:{ctx:t}}}}return a&&(e=G(a,d(r))),{c(){e&&H(e.$$.fragment),n=T()},l(t){e&&se(e.$$.fragment,t),n=T()},m(t,f){e&&K(e,t,f),M(t,n,f),o=!0},p(t,f){const u={};if(f&4&&(u.data=t[2]),f&1051&&(u.$$scope={dirty:f,ctx:t}),a!==(a=t[0][0])){if(e){Z();const p=e;D(p.$$.fragment,1,0,()=>{z(p,1)}),Q()}a?(e=G(a,d(t)),H(e.$$.fragment),j(e.$$.fragment,1),K(e,n.parentNode,n)):e=null}else a&&e.$set(u)},i(t){o||(e&&j(e.$$.fragment,t),o=!0)},o(t){e&&D(e.$$.fragment,t),o=!1},d(t){t&&q(n),e&&z(e,t)}}}function qt(r){let e,n,o;var a=r[0][1];function d(t){return{props:{data:t[3],form:t[1]}}}return a&&(e=G(a,d(r))),{c(){e&&H(e.$$.fragment),n=T()},l(t){e&&se(e.$$.fragment,t),n=T()},m(t,f){e&&K(e,t,f),M(t,n,f),o=!0},p(t,f){const u={};if(f&8&&(u.data=t[3]),f&2&&(u.form=t[1]),a!==(a=t[0][1])){if(e){Z();const p=e;D(p.$$.fragment,1,0,()=>{z(p,1)}),Q()}a?(e=G(a,d(t)),H(e.$$.fragment),j(e.$$.fragment,1),K(e,n.parentNode,n)):e=null}else a&&e.$set(u)},i(t){o||(e&&j(e.$$.fragment,t),o=!0)},o(t){e&&D(e.$$.fragment,t),o=!1},d(t){t&&q(n),e&&z(e,t)}}}function Bt(r){let e,n,o;var a=r[0][1];function d(t){return{props:{data:t[3],$$slots:{default:[Ft]},$$scope:{ctx:t}}}}return a&&(e=G(a,d(r))),{c(){e&&H(e.$$.fragment),n=T()},l(t){e&&se(e.$$.fragment,t),n=T()},m(t,f){e&&K(e,t,f),M(t,n,f),o=!0},p(t,f){const u={};if(f&8&&(u.data=t[3]),f&1043&&(u.$$scope={dirty:f,ctx:t}),a!==(a=t[0][1])){if(e){Z();const p=e;D(p.$$.fragment,1,0,()=>{z(p,1)}),Q()}a?(e=G(a,d(t)),H(e.$$.fragment),j(e.$$.fragment,1),K(e,n.parentNode,n)):e=null}else a&&e.$set(u)},i(t){o||(e&&j(e.$$.fragment,t),o=!0)},o(t){e&&D(e.$$.fragment,t),o=!1},d(t){t&&q(n),e&&z(e,t)}}}function Ft(r){let e,n,o;var a=r[0][2];function d(t){return{props:{data:t[4],form:t[1]}}}return a&&(e=G(a,d(r))),{c(){e&&H(e.$$.fragment),n=T()},l(t){e&&se(e.$$.fragment,t),n=T()},m(t,f){e&&K(e,t,f),M(t,n,f),o=!0},p(t,f){const u={};if(f&16&&(u.data=t[4]),f&2&&(u.form=t[1]),a!==(a=t[0][2])){if(e){Z();const p=e;D(p.$$.fragment,1,0,()=>{z(p,1)}),Q()}a?(e=G(a,d(t)),H(e.$$.fragment),j(e.$$.fragment,1),K(e,n.parentNode,n)):e=null}else a&&e.$set(u)},i(t){o||(e&&j(e.$$.fragment,t),o=!0)},o(t){e&&D(e.$$.fragment,t),o=!1},d(t){t&&q(n),e&&z(e,t)}}}function Mt(r){let e,n,o,a;const d=[Bt,qt],t=[];function f(u,p){return u[0][2]?0:1}return e=f(r),n=t[e]=d[e](r),{c(){n.c(),o=T()},l(u){n.l(u),o=T()},m(u,p){t[e].m(u,p),M(u,o,p),a=!0},p(u,p){let g=e;e=f(u),e===g?t[e].p(u,p):(Z(),D(t[g],1,1,()=>{t[g]=null}),Q(),n=t[e],n?n.p(u,p):(n=t[e]=d[e](u),n.c()),j(n,1),n.m(o.parentNode,o))},i(u){a||(j(n),a=!0)},o(u){D(n),a=!1},d(u){t[e].d(u),u&&q(o)}}}function Ze(r){let e,n=r[6]&&Qe(r);return{c(){e=ut("div"),n&&n.c(),this.h()},l(o){e=dt(o,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var a=pt(e);n&&n.l(a),a.forEach(q),this.h()},h(){ke(e,"id","svelte-announcer"),ke(e,"aria-live","assertive"),ke(e,"aria-atomic","true"),J(e,"position","absolute"),J(e,"left","0"),J(e,"top","0"),J(e,"clip","rect(0 0 0 0)"),J(e,"clip-path","inset(50%)"),J(e,"overflow","hidden"),J(e,"white-space","nowrap"),J(e,"width","1px"),J(e,"height","1px")},m(o,a){M(o,e,a),n&&n.m(e,null)},p(o,a){o[6]?n?n.p(o,a):(n=Qe(o),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(o){o&&q(e),n&&n.d()}}}function Qe(r){let e;return{c(){e=ht(r[7])},l(n){e=mt(n,r[7])},m(n,o){M(n,e,o)},p(n,o){o&128&&_t(e,n[7])},d(n){n&&q(e)}}}function Gt(r){let e,n,o,a,d;const t=[Ct,Vt],f=[];function u(g,y){return g[0][1]?0:1}e=u(r),n=f[e]=t[e](r);let p=r[5]&&Ze(r);return{c(){n.c(),o=lt(),p&&p.c(),a=T()},l(g){n.l(g),o=ct(g),p&&p.l(g),a=T()},m(g,y){f[e].m(g,y),M(g,o,y),p&&p.m(g,y),M(g,a,y),d=!0},p(g,[y]){let N=e;e=u(g),e===N?f[e].p(g,y):(Z(),D(f[N],1,1,()=>{f[N]=null}),Q(),n=f[e],n?n.p(g,y):(n=f[e]=t[e](g),n.c()),j(n,1),n.m(o.parentNode,o)),g[5]?p?p.p(g,y):(p=Ze(g),p.c(),p.m(a.parentNode,a)):p&&(p.d(1),p=null)},i(g){d||(j(n),d=!0)},o(g){D(n),d=!1},d(g){f[e].d(g),g&&q(o),p&&p.d(g),g&&q(a)}}}function Ht(r,e,n){let{stores:o}=e,{page:a}=e,{components:d}=e,{form:t}=e,{data_0:f=null}=e,{data_1:u=null}=e,{data_2:p=null}=e;ft(o.page.notify);let g=!1,y=!1,N=null;return Ae(()=>{const k=o.page.subscribe(()=>{g&&(n(6,y=!0),n(7,N=document.title||"untitled page"))});return n(5,g=!0),k}),r.$$set=k=>{"stores"in k&&n(8,o=k.stores),"page"in k&&n(9,a=k.page),"components"in k&&n(0,d=k.components),"form"in k&&n(1,t=k.form),"data_0"in k&&n(2,f=k.data_0),"data_1"in k&&n(3,u=k.data_1),"data_2"in k&&n(4,p=k.data_2)},r.$$.update=()=>{r.$$.dirty&768&&o.page.set(a)},[d,t,f,u,p,g,y,N,o,a]}class Kt extends ot{constructor(e){super(),it(this,e,Ht,Gt,st,{stores:8,page:9,components:0,form:1,data_0:2,data_1:3,data_2:4})}}const zt="modulepreload",Jt=function(r,e){return new URL(r,e).href},xe={},W=function(e,n,o){if(!n||n.length===0)return e();const a=document.getElementsByTagName("link");return Promise.all(n.map(d=>{if(d=Jt(d,o),d in xe)return;xe[d]=!0;const t=d.endsWith(".css"),f=t?'[rel="stylesheet"]':"";if(!!o)for(let g=a.length-1;g>=0;g--){const y=a[g];if(y.href===d&&(!t||y.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${d}"]${f}`))return;const p=document.createElement("link");if(p.rel=t?"stylesheet":zt,t||(p.as="script",p.crossOrigin=""),p.href=d,document.head.appendChild(p),t)return new Promise((g,y)=>{p.addEventListener("load",g),p.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${d}`)))})})).then(()=>e())},Wt={},ge=[()=>W(()=>import("./chunks/0-76e34f92.js"),["./chunks/0-76e34f92.js","./components/pages/_layout.svelte-a65a05f6.js","./chunks/index-41559e88.js","./chunks/stores-ec53abc6.js","./chunks/singletons-a9494492.js","./assets/_layout-cbcddbcc.css"],import.meta.url),()=>W(()=>import("./chunks/1-e60acfef.js"),["./chunks/1-e60acfef.js","./components/error.svelte-8618cc0a.js","./chunks/index-41559e88.js","./chunks/stores-ec53abc6.js","./chunks/singletons-a9494492.js"],import.meta.url),()=>W(()=>import("./chunks/2-b44b31f5.js"),["./chunks/2-b44b31f5.js","./chunks/_layout-b88e77da.js","./components/layout.svelte-9edc8d0d.js","./chunks/index-41559e88.js"],import.meta.url),()=>W(()=>import("./chunks/3-0b0487c0.js"),["./chunks/3-0b0487c0.js","./chunks/_page-6ce32609.js","./chunks/control-e7f5239e.js","./components/pages/_page.svelte-cf0cf666.js","./chunks/index-41559e88.js"],import.meta.url),()=>W(()=>import("./chunks/4-c545b5cf.js"),["./chunks/4-c545b5cf.js","./components/pages/_entry_/_page.svelte-0fd06ff8.js","./chunks/index-41559e88.js","./chunks/CollectionList-05a7962b.js","./chunks/utils-e57c1be1.js","./chunks/Footer-e8b834db.js","./chunks/TimelineHeatmap-c231b843.js","./chunks/navigation-10129872.js","./chunks/singletons-a9494492.js","./chunks/stores-ec53abc6.js"],import.meta.url),()=>W(()=>import("./chunks/5-d58e7a71.js"),["./chunks/5-d58e7a71.js","./components/pages/_entry_/_type_/_page.svelte-203ee095.js","./chunks/index-41559e88.js","./chunks/stores-ec53abc6.js","./chunks/singletons-a9494492.js","./chunks/Footer-e8b834db.js","./chunks/navigation-10129872.js","./chunks/utils-e57c1be1.js","./chunks/EventTypeBadge-e509a18c.js"],import.meta.url),()=>W(()=>import("./chunks/6-86ada563.js"),["./chunks/6-86ada563.js","./components/pages/_entry_/_type_/_slug_/_page.svelte-0de1844f.js","./chunks/index-41559e88.js","./chunks/stores-ec53abc6.js","./chunks/singletons-a9494492.js","./chunks/CollectionList-05a7962b.js","./chunks/utils-e57c1be1.js","./chunks/Footer-e8b834db.js","./chunks/CalendarList-93f326f6.js","./chunks/EventTypeBadge-e509a18c.js"],import.meta.url),()=>W(()=>import("./chunks/7-1830094e.js"),["./chunks/7-1830094e.js","./components/pages/_entry_/day/_date_/_page.svelte-8061bbe4.js","./chunks/index-41559e88.js","./chunks/stores-ec53abc6.js","./chunks/singletons-a9494492.js","./chunks/TimelineHeatmap-c231b843.js","./chunks/navigation-10129872.js","./chunks/Footer-e8b834db.js","./chunks/CalendarList-93f326f6.js","./chunks/EventTypeBadge-e509a18c.js"],import.meta.url),()=>W(()=>import("./chunks/8-65a737e5.js"),["./chunks/8-65a737e5.js","./components/pages/_entry_/schedule/_page.svelte-438841be.js","./chunks/index-41559e88.js","./chunks/stores-ec53abc6.js","./chunks/singletons-a9494492.js","./chunks/TimelineHeatmap-c231b843.js","./chunks/navigation-10129872.js","./chunks/Footer-e8b834db.js","./chunks/CalendarList-93f326f6.js","./chunks/EventTypeBadge-e509a18c.js"],import.meta.url)],nt=[],Yt={"/":[3],"/[entry]":[4,[2]],"/[entry]/day/[date]":[7,[2]],"/[entry]/schedule":[8,[2]],"/[entry]/[type]":[5,[2]],"/[entry]/[type]/[slug]":[6,[2]]},Xt={handleError:({error:r})=>{console.error(r)}};async function Zt(r){var e;for(const n in r)if(typeof((e=r[n])==null?void 0:e.then)=="function")return Object.fromEntries(await Promise.all(Object.entries(r).map(async([o,a])=>[o,await a])));return r}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");const Qt=-1,xt=-2,en=-3,tn=-4,nn=-5,an=-6;function rn(r){if(typeof r=="number")return o(r,!0);if(!Array.isArray(r)||r.length===0)throw new Error("Invalid input");const e=r,n=Array(e.length);function o(a,d=!1){if(a===Qt)return;if(a===en)return NaN;if(a===tn)return 1/0;if(a===nn)return-1/0;if(a===an)return-0;if(d)throw new Error("Invalid input");if(a in n)return n[a];const t=e[a];if(!t||typeof t!="object")n[a]=t;else if(Array.isArray(t))if(typeof t[0]=="string")switch(t[0]){case"Date":n[a]=new Date(t[1]);break;case"Set":const u=new Set;n[a]=u;for(let y=1;ye!=null)}const Se=jt(ge,nt,Yt,Wt),at=ge[0],Oe=ge[1];at();Oe();let te={};try{te=JSON.parse(sessionStorage[tt])}catch{}function Le(r){te[r]=oe()}function sn({target:r,base:e}){var Ge;const n=document.documentElement,o=[];let a=null;const d={before_navigate:[],after_navigate:[]};let t={branch:[],error:null,url:null},f=!1,u=!1,p=!0,g=!1,y=!1,N=!1,k=!1,B,L=(Ge=history.state)==null?void 0:Ge[F];L||(L=Date.now(),history.replaceState({...history.state,[F]:L},"",location.href));const we=te[L];we&&(history.scrollRestoration="manual",scrollTo(we.x,we.y));let X,Ue,le;async function Te(){le=le||Promise.resolve(),await le,le=null;const i=new URL(location.href),s=ue(i,!0);a=null,await je(s,i,[])}async function ye(i,{noScroll:s=!1,replaceState:c=!1,keepFocus:l=!1,state:m={},invalidateAll:h=!1},_,v){return typeof i=="string"&&(i=new URL(i,ze(document))),pe({url:i,scroll:s?oe():null,keepfocus:l,redirect_chain:_,details:{state:m,replaceState:c},nav_token:v,accepted:()=>{h&&(k=!0)},blocked:()=>{},type:"goto"})}async function De(i){const s=ue(i,!1);if(!s)throw new Error(`Attempted to preload a URL that does not belong to this app: ${i}`);return a={id:s.id,promise:qe(s).then(c=>(c.type==="loaded"&&c.state.error&&(a=null),c))},a.promise}async function ce(...i){const c=Se.filter(l=>i.some(m=>l.exec(m))).map(l=>Promise.all([...l.layouts,l.leaf].map(m=>m==null?void 0:m[1]())));await Promise.all(c)}async function je(i,s,c,l,m={},h){var v,b;Ue=m;let _=i&&await qe(i);if(_||(_=await Me(s,{id:null},await re(new Error(`Not found: ${s.pathname}`),{url:s,params:{},route:{id:null}}),404)),s=(i==null?void 0:i.url)||s,Ue!==m)return!1;if(_.type==="redirect")if(c.length>10||c.includes(s.pathname))_=await fe({status:500,error:await re(new Error("Redirect loop"),{url:s,params:{},route:{id:null}}),url:s,route:{id:null}});else return ye(new URL(_.location,s).href,{},[...c,s.pathname],m),!1;else((b=(v=_.props)==null?void 0:v.page)==null?void 0:b.status)>=400&&await Y.updated.check()&&await ae(s);if(o.length=0,k=!1,g=!0,l&&l.details){const{details:w}=l,$=w.replaceState?0:1;w.state[F]=L+=$,history[w.replaceState?"replaceState":"pushState"](w.state,"",s)}if(a=null,u?(t=_.state,_.props.page&&(_.props.page.url=s),B.$set(_.props)):Ve(_),l){const{scroll:w,keepfocus:$}=l,{activeElement:P}=document;await he();const C=document.activeElement!==P&&document.activeElement!==document.body;if(!$&&!C&&await Ie(),p){const S=s.hash&&document.getElementById(s.hash.slice(1));w?scrollTo(w.x,w.y):S?S.scrollIntoView():scrollTo(0,0)}}else await he();p=!0,_.props.page&&(X=_.props.page),h&&h(),g=!1}function Ve(i){var l;t=i.state;const s=document.querySelector("style[data-sveltekit]");s&&s.remove(),X=i.props.page,B=new Kt({target:r,props:{...i.props,stores:Y},hydrate:!0});const c={from:null,to:{params:t.params,route:{id:((l=t.route)==null?void 0:l.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter"};d.after_navigate.forEach(m=>m(c)),u=!0}async function ne({url:i,params:s,branch:c,status:l,error:m,route:h,form:_}){let v="never";for(const S of c)(S==null?void 0:S.slash)!==void 0&&(v=S.slash);i.pathname=bt(i.pathname,v),i.search=i.search;const b={type:"loaded",state:{url:i,params:s,branch:c,error:m,route:h},props:{components:on(c).map(S=>S.node.component)}};_!==void 0&&(b.props.form=_);let w={},$=!X,P=0;for(let S=0;S(v.params.add(O),E[O])}),data:(h==null?void 0:h.data)??null,url:$t(c,()=>{v.url=!0}),async fetch(E,O){let V;E instanceof Request?(V=E.url,O={body:E.method==="GET"||E.method==="HEAD"?void 0:await E.blob(),cache:E.cache,credentials:E.credentials,headers:E.headers,integrity:E.integrity,keepalive:E.keepalive,method:E.method,mode:E.mode,redirect:E.redirect,referrer:E.referrer,referrerPolicy:E.referrerPolicy,signal:E.signal,...O}):V=E;const R=new URL(V,c).href;return C(R),u?Pt(V,R,O):At(V,O)},setHeaders:()=>{},depends:C,parent(){return v.parent=!0,s()}};_=await b.universal.load.call(null,S)??null,_=_?await Zt(_):null}return{node:b,loader:i,server:h,universal:($=b.universal)!=null&&$.load?{type:"data",data:_,uses:v}:null,data:_??(h==null?void 0:h.data)??null,slash:((P=b.universal)==null?void 0:P.trailingSlash)??(h==null?void 0:h.slash)}}function Ce(i,s,c,l,m){if(k)return!0;if(!l)return!1;if(l.parent&&i||l.route&&s||l.url&&c)return!0;for(const h of l.params)if(m[h]!==t.params[h])return!0;for(const h of l.dependencies)if(o.some(_=>_(new URL(h))))return!0;return!1}function ve(i,s){return(i==null?void 0:i.type)==="data"?{type:"data",data:i.data,uses:{dependencies:new Set(i.uses.dependencies??[]),params:new Set(i.uses.params??[]),parent:!!i.uses.parent,route:!!i.uses.route,url:!!i.uses.url},slash:i.slash}:(i==null?void 0:i.type)==="skip"?s??null:null}async function qe({id:i,invalidating:s,url:c,params:l,route:m}){if((a==null?void 0:a.id)===i)return a.promise;const{errors:h,layouts:_,leaf:v}=m,b=[..._,v];h.forEach(R=>R==null?void 0:R().catch(()=>{})),b.forEach(R=>R==null?void 0:R[1]().catch(()=>{}));let w=null;const $=t.url?i!==t.url.pathname+t.url.search:!1,P=t.route?m.id!==t.route.id:!1,C=b.reduce((R,A,U)=>{var ee;const I=t.branch[U],x=!!(A!=null&&A[0])&&((I==null?void 0:I.loader)!==A[1]||Ce(R.some(Boolean),P,$,(ee=I.server)==null?void 0:ee.uses,l));return R.push(x),R},[]);if(C.some(Boolean)){try{w=await et(c,C)}catch(R){return fe({status:500,error:await re(R,{url:c,params:l,route:{id:m.id}}),url:c,route:m})}if(w.type==="redirect")return w}const S=w==null?void 0:w.nodes;let E=!1;const O=b.map(async(R,A)=>{var ee;if(!R)return;const U=t.branch[A],I=S==null?void 0:S[A];if((!I||I.type==="skip")&&R[1]===(U==null?void 0:U.loader)&&!Ce(E,P,$,(ee=U.universal)==null?void 0:ee.uses,l))return U;if(E=!0,(I==null?void 0:I.type)==="error")throw I;return be({loader:R[1],url:c,params:l,route:m,parent:async()=>{var Ke;const He={};for(let Ee=0;Ee{});const V=[];for(let R=0;RPromise.resolve({}),server_data_node:ve(h)}),b={node:await Oe(),loader:Oe,universal:null,server:null,data:null};return await ne({url:c,params:m,branch:[v,b],status:i,error:s,route:null})}function ue(i,s){if(We(i,e))return;const c=de(i);for(const l of Se){const m=l.exec(c);if(m)return{id:i.pathname+i.search,invalidating:s,route:l,params:Et(m),url:i}}}function de(i){return vt(i.pathname.slice(e.length)||"/")}function Fe({url:i,type:s,intent:c,delta:l}){var v,b;let m=!1;const h={from:{params:t.params,route:{id:((v=t.route)==null?void 0:v.id)??null},url:t.url},to:{params:(c==null?void 0:c.params)??null,route:{id:((b=c==null?void 0:c.route)==null?void 0:b.id)??null},url:i},willUnload:!c,type:s};l!==void 0&&(h.delta=l);const _={...h,cancel:()=>{m=!0}};return y||d.before_navigate.forEach(w=>w(_)),m?null:h}async function pe({url:i,scroll:s,keepfocus:c,redirect_chain:l,details:m,type:h,delta:_,nav_token:v,accepted:b,blocked:w}){const $=ue(i,!1),P=Fe({url:i,type:h,delta:_,intent:$});if(!P){w();return}Le(L),b(),y=!0,u&&Y.navigating.set(P),await je($,i,l,{scroll:s,keepfocus:c,details:m},v,()=>{y=!1,d.after_navigate.forEach(C=>C(P)),Y.navigating.set(null)})}async function Me(i,s,c,l){return i.origin===location.origin&&i.pathname===location.pathname&&!f?await fe({status:l,error:c,url:i,route:s}):await ae(i)}function ae(i){return location.href=i.href,new Promise(()=>{})}function rt(){let i;n.addEventListener("mousemove",h=>{const _=h.target;clearTimeout(i),i=setTimeout(()=>{l(_,2)},20)});function s(h){l(h.composedPath()[0],1)}n.addEventListener("mousedown",s),n.addEventListener("touchstart",s,{passive:!0});const c=new IntersectionObserver(h=>{for(const _ of h)_.isIntersecting&&(ce(de(new URL(_.target.href))),c.unobserve(_.target))},{threshold:0});function l(h,_){const v=Je(h,n);if(!v)return;const{url:b,external:w}=$e(v,e);if(w)return;const $=me(v);$.reload||(_<=$.preload_data?De(b):_<=$.preload_code&&ce(de(b)))}function m(){c.disconnect();for(const h of n.querySelectorAll("a")){const{url:_,external:v}=$e(h,e);if(v)continue;const b=me(h);b.reload||(b.preload_code===Ye.viewport&&c.observe(h),b.preload_code===Ye.eager&&ce(de(_)))}}d.after_navigate.push(m),m()}return{after_navigate:i=>{Ae(()=>(d.after_navigate.push(i),()=>{const s=d.after_navigate.indexOf(i);d.after_navigate.splice(s,1)}))},before_navigate:i=>{Ae(()=>(d.before_navigate.push(i),()=>{const s=d.before_navigate.indexOf(i);d.before_navigate.splice(s,1)}))},disable_scroll_handling:()=>{(g||!u)&&(p=!1)},goto:(i,s={})=>ye(i,s,[]),invalidate:i=>{if(typeof i=="function")o.push(i);else{const{href:s}=new URL(i,location.href);o.push(c=>c.href===s)}return Te()},invalidateAll:()=>(k=!0,Te()),preload_data:async i=>{const s=new URL(i,ze(document));await De(s)},preload_code:ce,apply_action:async i=>{if(i.type==="error"){const s=new URL(location.href),{branch:c,route:l}=t;if(!l)return;const m=await Be(t.branch.length,c,l.errors);if(m){const h=await ne({url:s,params:t.params,branch:c.slice(0,m.idx).concat(m.node),status:i.status??500,error:i.error,route:l});t=h.state,B.$set(h.props),he().then(Ie)}}else if(i.type==="redirect")ye(i.location,{invalidateAll:!0},[]);else{const s={form:i.data,page:{...X,form:i.data,status:i.status}};B.$set(s),i.type==="success"&&he().then(Ie)}},_start_router:()=>{var i;history.scrollRestoration="manual",addEventListener("beforeunload",s=>{var l;let c=!1;if(!y){const m={from:{params:t.params,route:{id:((l=t.route)==null?void 0:l.id)??null},url:t.url},to:null,willUnload:!0,type:"leave",cancel:()=>c=!0};d.before_navigate.forEach(h=>h(m))}c?(s.preventDefault(),s.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{if(document.visibilityState==="hidden"){Le(L);try{sessionStorage[tt]=JSON.stringify(te)}catch{}}}),(i=navigator.connection)!=null&&i.saveData||rt(),n.addEventListener("click",s=>{if(s.button||s.which!==1||s.metaKey||s.ctrlKey||s.shiftKey||s.altKey||s.defaultPrevented)return;const c=Je(s.composedPath()[0],n);if(!c)return;const{url:l,external:m,target:h}=$e(c,e);if(!l)return;if(h==="_parent"||h==="_top"){if(window.parent!==window)return}else if(h&&h!=="_self")return;const _=me(c);if(!(c instanceof SVGAElement)&&l.protocol!==location.protocol&&!(l.protocol==="https:"||l.protocol==="http:"))return;if(m||_.reload){Fe({url:l,type:"link"})||s.preventDefault(),y=!0;return}const[b,w]=l.href.split("#");if(w!==void 0&&b===location.href.split("#")[0]){N=!0,Le(L),t.url=l,Y.page.set({...X,url:l}),Y.page.notify();return}pe({url:l,scroll:_.noscroll?oe():null,keepfocus:!1,redirect_chain:[],details:{state:{},replaceState:l.href===location.href},accepted:()=>s.preventDefault(),blocked:()=>s.preventDefault(),type:"link"})}),n.addEventListener("submit",s=>{if(s.defaultPrevented)return;const c=HTMLFormElement.prototype.cloneNode.call(s.target),l=s.submitter;if(((l==null?void 0:l.formMethod)||c.method)!=="get")return;const h=new URL((l==null?void 0:l.hasAttribute("formaction"))&&(l==null?void 0:l.formAction)||c.action);if(We(h,e))return;const _=s.target,{noscroll:v,reload:b}=me(_);if(b)return;s.preventDefault(),s.stopPropagation();const w=new FormData(_),$=l==null?void 0:l.getAttribute("name");$&&w.append($,(l==null?void 0:l.getAttribute("value"))??""),h.search=new URLSearchParams(w).toString(),pe({url:h,scroll:v?oe():null,keepfocus:!1,redirect_chain:[],details:{state:{},replaceState:!1},nav_token:{},accepted:()=>{},blocked:()=>{},type:"form"})}),addEventListener("popstate",s=>{var c;if((c=s.state)!=null&&c[F]){if(s.state[F]===L)return;const l=te[s.state[F]];if(t.url.href.split("#")[0]===location.href.split("#")[0]){te[L]=oe(),L=s.state[F],scrollTo(l.x,l.y);return}const m=s.state[F]-L;pe({url:new URL(location.href),scroll:l,keepfocus:!1,redirect_chain:[],details:null,accepted:()=>{L=s.state[F]},blocked:()=>{history.go(-m)},type:"popstate",delta:m})}}),addEventListener("hashchange",()=>{N&&(N=!1,history.replaceState({...history.state,[F]:++L},"",location.href))});for(const s of document.querySelectorAll("link"))s.rel==="icon"&&(s.href=s.href);addEventListener("pageshow",s=>{s.persisted&&Y.navigating.set(null)})},_hydrate:async({status:i=200,error:s,node_ids:c,params:l,route:m,data:h,form:_})=>{f=!0;const v=new URL(location.href);({params:l={},route:m={id:null}}=ue(v,!1)||{});let b;try{const w=c.map(async($,P)=>{const C=h[P];return be({loader:ge[$],url:v,params:l,route:m,parent:async()=>{const S={};for(let E=0;E$===m.id)??null})}catch(w){if(w instanceof Xe){await ae(new URL(w.location,location.href));return}b=await fe({status:w instanceof Pe?w.status:500,error:await re(w,{url:v,params:l,route:m}),url:v,route:m})}Ve(b)}}}async function et(r,e){var d;const n=new URL(r);n.pathname=Lt(r.pathname),n.searchParams.append("x-sveltekit-invalidated",e.map(t=>t?"1":"").join("_"));const o=await _e(n.href),a=await o.json();if(!o.ok)throw new Error(a);return(d=a.nodes)==null||d.forEach(t=>{(t==null?void 0:t.type)==="data"&&(t.data=rn(t.data),t.uses={dependencies:new Set(t.uses.dependencies??[]),params:new Set(t.uses.params??[]),parent:!!t.uses.parent,route:!!t.uses.route,url:!!t.uses.url})}),a}function re(r,e){return r instanceof Pe?r.body:Xt.handleError({error:r,event:e})??{message:e.route.id!=null?"Internal Error":"Not Found"}}function Ie(){const r=document.querySelector("[autofocus]");if(r)r.focus();else{const e=document.body,n=e.getAttribute("tabindex");return e.tabIndex=-1,e.focus({preventScroll:!0}),n!==null?e.setAttribute("tabindex",n):e.removeAttribute("tabindex"),new Promise(o=>{setTimeout(()=>{var a;o((a=getSelection())==null?void 0:a.removeAllRanges())})})}}async function un({env:r,hydrate:e,paths:n,target:o,version:a}){gt(n),yt(a);const d=sn({target:o,base:n.base});wt({client:d}),e?await d._hydrate(e):d.goto(location.href,{replaceState:!0}),d._start_router()}export{un as start};