wherever-dev 0.9.3 → 0.9.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/index.js +40 -0
  2. package/dist/index.js.map +1 -1
  3. package/dist/protocol.d.ts +11 -0
  4. package/dist/protocol.d.ts.map +1 -1
  5. package/dist/session-pool.d.ts +1 -0
  6. package/dist/session-pool.d.ts.map +1 -1
  7. package/dist/session-pool.js +14 -0
  8. package/dist/session-pool.js.map +1 -1
  9. package/package.json +1 -1
  10. package/public/_app/immutable/assets/{0.u_Dd8K1r.css → 0.CaSe4dAO.css} +1 -1
  11. package/public/_app/immutable/chunks/B7T1N4sd.js +2 -0
  12. package/public/_app/immutable/chunks/{BLTq6nZr.js.map → B7T1N4sd.js.map} +1 -1
  13. package/public/_app/immutable/chunks/{X9_bB3Nt.js → BbwVAszK.js} +2 -2
  14. package/public/_app/immutable/chunks/{X9_bB3Nt.js.map → BbwVAszK.js.map} +1 -1
  15. package/public/_app/immutable/chunks/{cYZ5dNr4.js → DLTFvaRN.js} +2 -2
  16. package/public/_app/immutable/chunks/{cYZ5dNr4.js.map → DLTFvaRN.js.map} +1 -1
  17. package/public/_app/immutable/entry/{app.C3xG9hRh.js → app.BNlo-8En.js} +3 -3
  18. package/public/_app/immutable/entry/{app.C3xG9hRh.js.map → app.BNlo-8En.js.map} +1 -1
  19. package/public/_app/immutable/entry/start.Cv1gfwP2.js +2 -0
  20. package/public/_app/immutable/entry/start.Cv1gfwP2.js.map +1 -0
  21. package/public/_app/immutable/nodes/{0.HvYJXJ_M.js → 0.VtlQhnst.js} +2 -2
  22. package/public/_app/immutable/nodes/{0.HvYJXJ_M.js.map → 0.VtlQhnst.js.map} +1 -1
  23. package/public/_app/immutable/nodes/{1.C7w9W4lc.js → 1.DYUPzfom.js} +2 -2
  24. package/public/_app/immutable/nodes/{1.C7w9W4lc.js.map → 1.DYUPzfom.js.map} +1 -1
  25. package/public/_app/immutable/nodes/2.DzewpPG3.js +87 -0
  26. package/public/_app/immutable/nodes/2.DzewpPG3.js.map +1 -0
  27. package/public/_app/version.json +1 -1
  28. package/public/index.html +11 -11
  29. package/public/service-worker.js +1 -1
  30. package/public/_app/immutable/chunks/BLTq6nZr.js +0 -2
  31. package/public/_app/immutable/entry/start.BR9tyzQb.js +0 -2
  32. package/public/_app/immutable/entry/start.BR9tyzQb.js.map +0 -1
  33. package/public/_app/immutable/nodes/2.BJRdjyrb.js +0 -87
  34. package/public/_app/immutable/nodes/2.BJRdjyrb.js.map +0 -1
@@ -1 +1 @@
1
- {"version":"4054111"}
1
+ {"version":"18b303e"}
package/public/index.html CHANGED
@@ -47,33 +47,33 @@
47
47
  })();
48
48
  </script>
49
49
 
50
- <link href="./_app/immutable/entry/start.BR9tyzQb.js" rel="modulepreload">
51
- <link href="./_app/immutable/chunks/BLTq6nZr.js" rel="modulepreload">
50
+ <link href="./_app/immutable/entry/start.Cv1gfwP2.js" rel="modulepreload">
51
+ <link href="./_app/immutable/chunks/B7T1N4sd.js" rel="modulepreload">
52
52
  <link href="./_app/immutable/chunks/CEg8tgYI.js" rel="modulepreload">
53
- <link href="./_app/immutable/entry/app.C3xG9hRh.js" rel="modulepreload">
53
+ <link href="./_app/immutable/entry/app.BNlo-8En.js" rel="modulepreload">
54
54
  <link href="./_app/immutable/chunks/ylfInSZr.js" rel="modulepreload">
55
55
  <link href="./_app/immutable/chunks/vMsF8lo6.js" rel="modulepreload">
56
56
  <link href="./_app/immutable/chunks/MtE7VtNZ.js" rel="modulepreload">
57
- <link href="./_app/immutable/nodes/0.HvYJXJ_M.js" rel="modulepreload">
58
- <link href="./_app/immutable/chunks/X9_bB3Nt.js" rel="modulepreload">
59
- <link href="./_app/immutable/chunks/cYZ5dNr4.js" rel="modulepreload">
60
- <link href="./_app/immutable/nodes/2.BJRdjyrb.js" rel="modulepreload">
57
+ <link href="./_app/immutable/nodes/0.VtlQhnst.js" rel="modulepreload">
58
+ <link href="./_app/immutable/chunks/BbwVAszK.js" rel="modulepreload">
59
+ <link href="./_app/immutable/chunks/DLTFvaRN.js" rel="modulepreload">
60
+ <link href="./_app/immutable/nodes/2.DzewpPG3.js" rel="modulepreload">
61
61
 
62
- <link href="./_app/immutable/assets/0.u_Dd8K1r.css" rel="stylesheet">
62
+ <link href="./_app/immutable/assets/0.CaSe4dAO.css" rel="stylesheet">
63
63
  </head>
64
64
  <body data-sveltekit-preload-data="hover">
65
65
  <div style="display: contents">
66
66
  <script>
67
67
  {
68
- __sveltekit_4zswkx = {
68
+ __sveltekit_16tj57f = {
69
69
  base: new URL(".", location).pathname.slice(0, -1)
70
70
  };
71
71
 
72
72
  const element = document.currentScript.parentElement;
73
73
 
74
74
  Promise.all([
75
- import("./_app/immutable/entry/start.BR9tyzQb.js"),
76
- import("./_app/immutable/entry/app.C3xG9hRh.js")
75
+ import("./_app/immutable/entry/start.Cv1gfwP2.js"),
76
+ import("./_app/immutable/entry/app.BNlo-8En.js")
77
77
  ]).then(([kit, app]) => {
78
78
  kit.start(app, element);
79
79
  });
@@ -1 +1 @@
1
- const a=location.pathname.split("/").slice(0,-1).join("/"),b=[a+"/_app/immutable/entry/start.BR9tyzQb.js",a+"/_app/immutable/entry/app.C3xG9hRh.js",a+"/_app/immutable/nodes/0.HvYJXJ_M.js",a+"/_app/immutable/assets/0.u_Dd8K1r.css",a+"/_app/immutable/nodes/1.C7w9W4lc.js",a+"/_app/immutable/nodes/2.BJRdjyrb.js",a+"/_app/immutable/chunks/BLTq6nZr.js",a+"/_app/immutable/chunks/CEg8tgYI.js",a+"/_app/immutable/chunks/MtE7VtNZ.js",a+"/_app/immutable/chunks/X9_bB3Nt.js",a+"/_app/immutable/chunks/cYZ5dNr4.js",a+"/_app/immutable/chunks/vMsF8lo6.js",a+"/_app/immutable/chunks/ylfInSZr.js"],y=[a+"/logo.svg",a+"/pwa/apple-touch-icon.png",a+"/pwa/favicon-192.png",a+"/pwa/favicon-512.png",a+"/pwa/favicon.ico",a+"/pwa/favicon.svg",a+"/pwa/manifest.webmanifest",a+"/robots.txt"],v=[a+"/"],m="4054111",$=m,s=self;let w=[];w=b.concat(v).concat(y.filter(t=>t.indexOf("pwa/")===-1));let u=!0;function o(...t){u&&console.debug(`[Service Worker #${$}] ${t[0]}`,...t.slice(1))}const d=`cache-${m}`,h=[];h.push("localhost");const _=["/sessions(\\?|$|/)","/models(\\?|$|/)","/config(\\?|$|/)","/check-path(\\?|$|/)","/autocomplete-path(\\?|$|/)","/session/","/health(\\?|$)"];for(const t of _)h.push(t);const k=[],x=[s.location.origin,"cdn",".*\\.png$",".*\\.svg$"],O=[];o(`Origin: ${s.location.origin}`);s.addEventListener("install",t=>{o("Install"),t.waitUntil(caches.open(d).then(i=>(o(`Creating cache: ${d}`),i.addAll(w))).then(()=>{o("cache fully fetched!")}))});s.addEventListener("activate",t=>{o("Activate"),t.waitUntil(caches.keys().then(i=>Promise.all(i.map(e=>{if(e!==d)return o(`Deleting: ${e}`),caches.delete(e)})).then(()=>s.clients.claim())))});async function g(t,i){try{const e=await fetch(t);try{const c=await caches.open(d);return t.method==="GET"&&t.url.startsWith("http")&&c.put(t,e.clone()),e}catch(c){return o(`error: ${c}`),e}}catch{return i||new Response(`Could Not fetch ${t.url}`,{status:503,headers:{"Content-Type":"text/plain"}})}}const j={method:(t,i)=>{o(`Cache first: ${t.url}`);const e=g(t,i);return i||e},regexes:x},C={method:(t,i)=>(o(`Cache only: ${t.url}`),i||g(t,i)),regexes:O},f={method:(t,i)=>(o(`Online first: ${t.url}`),g(t,i)),regexes:h},E={method:t=>(o(`Online only: ${t.url}`),fetch(t)),regexes:k};async function A(t){const i=t.request,e=s.registration;if(t.request.mode==="navigate"&&t.request.method==="GET"&&e.waiting&&(await s.clients.matchAll()).length<2)return o("only one client, skipWaiting as we navigate the page"),e.waiting.postMessage("skipWaiting"),new Response("",{headers:{Refresh:"0"}});if(t.request.mode==="navigate"&&t.request.method==="GET"){const n=await caches.match(i);return f.method(i,n)}return await caches.match(i).then(n=>{const l=[f,E,j,C];for(const r of l)for(const p of r.regexes)if(RegExp(p).test(i.url))return r.method(i,n);return f.method(i,n)})}s.addEventListener("fetch",t=>{t.respondWith(A(t))});s.addEventListener("message",async function(t){t.data&&t.data.type==="debug"?(u=t.data.enabled&&t.data.level>=5,u&&o(`log enabled ${t.data.level}`)):t.data&&t.data.type==="ping"?o("pong"):t.data==="skipWaiting"&&(o("skipWaiting received"),t.waitUntil(s.skipWaiting()))});async function F(){const t=await s.clients.matchAll({type:"window",includeUncontrolled:!0});let i,e,c;for(var n=0;n<t.length;n++){const l=t[n],r=l.visibilityState==="visible",p=l.focused;if(r&&!i&&(i=l),p&&!e&&(e=l),p&&r){c=l;break}}return{atLeastOneFocused:e,atLeastOneVisible:i,atLeastOneVisibleAndFocused:c}}async function L(t){const i=await F(),e={title:"Notification",options:{body:"You have a new notification",icon:"/favicon.png",badge:"/favicon.png"}};if(t)try{const c=JSON.parse(t);if(c.web_push===8030){const n=c.notification;e.options={badge:n.badge,body:n.body,data:n.data,dir:n.dir,icon:n.icon,lang:n.lang,requireInteraction:n.requireInteraction,silent:n.silent,tag:n.tag},e.title=n.title,e.options.icon||(e.options.icon=n.image),n.navigate&&(e.options.data?typeof e.options.data=="object"&&!e.options.data.navigate&&(e.options.data={...e.options.data,navigate:n.navigate}):e.options.data={navigate:n.navigate})}else e.title=c.notification?.title||c.title||"Notification",e.options=c.notification||c.options}catch{e.options.body=t}o("handlePush",t,e),i.atLeastOneVisibleAndFocused?(o("posting notification to active app",e),i.atLeastOneVisibleAndFocused.postMessage({type:"notification",notification:{title:e.title,options:e.options}})):await s.registration.showNotification(e.title,e.options)}s.addEventListener("push",function(t){const i=t.data?.text();t.waitUntil(L(i))});async function W(t){const i=await s.clients.matchAll({type:"window",includeUncontrolled:!0}),e=location.pathname,c=e.substring(0,e.lastIndexOf("/")+1);let n=t.data?.navigate;n&&!n.startsWith("/")&&n.indexOf(":/")==-1&&(n=c+n);for(const l of i)if(o(`${"focus"in l?"focus-available: ":""}: ${l.url}`),"focus"in l)return n&&"navigate"in l?l.focus().then(()=>l.navigate(n)):l.focus();if(s.clients.openWindow)return s.clients.openWindow(n||"/")}s.addEventListener("notificationclick",function(t){t.notification.close(),t.waitUntil(W(t.notification))});
1
+ const a=location.pathname.split("/").slice(0,-1).join("/"),b=[a+"/_app/immutable/entry/start.Cv1gfwP2.js",a+"/_app/immutable/entry/app.BNlo-8En.js",a+"/_app/immutable/nodes/0.VtlQhnst.js",a+"/_app/immutable/assets/0.CaSe4dAO.css",a+"/_app/immutable/nodes/1.DYUPzfom.js",a+"/_app/immutable/nodes/2.DzewpPG3.js",a+"/_app/immutable/chunks/B7T1N4sd.js",a+"/_app/immutable/chunks/BbwVAszK.js",a+"/_app/immutable/chunks/CEg8tgYI.js",a+"/_app/immutable/chunks/DLTFvaRN.js",a+"/_app/immutable/chunks/MtE7VtNZ.js",a+"/_app/immutable/chunks/vMsF8lo6.js",a+"/_app/immutable/chunks/ylfInSZr.js"],y=[a+"/logo.svg",a+"/pwa/apple-touch-icon.png",a+"/pwa/favicon-192.png",a+"/pwa/favicon-512.png",a+"/pwa/favicon.ico",a+"/pwa/favicon.svg",a+"/pwa/manifest.webmanifest",a+"/robots.txt"],v=[a+"/"],m="18b303e",$=m,s=self;let w=[];w=b.concat(v).concat(y.filter(t=>t.indexOf("pwa/")===-1));let u=!0;function o(...t){u&&console.debug(`[Service Worker #${$}] ${t[0]}`,...t.slice(1))}const d=`cache-${m}`,h=[];h.push("localhost");const O=["/sessions(\\?|$|/)","/models(\\?|$|/)","/config(\\?|$|/)","/check-path(\\?|$|/)","/autocomplete-path(\\?|$|/)","/session/","/health(\\?|$)"];for(const t of O)h.push(t);const k=[],x=[s.location.origin,"cdn",".*\\.png$",".*\\.svg$"],_=[];o(`Origin: ${s.location.origin}`);s.addEventListener("install",t=>{o("Install"),t.waitUntil(caches.open(d).then(i=>(o(`Creating cache: ${d}`),i.addAll(w))).then(()=>{o("cache fully fetched!")}))});s.addEventListener("activate",t=>{o("Activate"),t.waitUntil(caches.keys().then(i=>Promise.all(i.map(e=>{if(e!==d)return o(`Deleting: ${e}`),caches.delete(e)})).then(()=>s.clients.claim())))});async function g(t,i){try{const e=await fetch(t);try{const c=await caches.open(d);return t.method==="GET"&&t.url.startsWith("http")&&c.put(t,e.clone()),e}catch(c){return o(`error: ${c}`),e}}catch{return i||new Response(`Could Not fetch ${t.url}`,{status:503,headers:{"Content-Type":"text/plain"}})}}const E={method:(t,i)=>{o(`Cache first: ${t.url}`);const e=g(t,i);return i||e},regexes:x},A={method:(t,i)=>(o(`Cache only: ${t.url}`),i||g(t,i)),regexes:_},f={method:(t,i)=>(o(`Online first: ${t.url}`),g(t,i)),regexes:h},C={method:t=>(o(`Online only: ${t.url}`),fetch(t)),regexes:k};async function j(t){const i=t.request,e=s.registration;if(t.request.mode==="navigate"&&t.request.method==="GET"&&e.waiting&&(await s.clients.matchAll()).length<2)return o("only one client, skipWaiting as we navigate the page"),e.waiting.postMessage("skipWaiting"),new Response("",{headers:{Refresh:"0"}});if(t.request.mode==="navigate"&&t.request.method==="GET"){const n=await caches.match(i);return f.method(i,n)}return await caches.match(i).then(n=>{const l=[f,C,E,A];for(const r of l)for(const p of r.regexes)if(RegExp(p).test(i.url))return r.method(i,n);return f.method(i,n)})}s.addEventListener("fetch",t=>{t.respondWith(j(t))});s.addEventListener("message",async function(t){t.data&&t.data.type==="debug"?(u=t.data.enabled&&t.data.level>=5,u&&o(`log enabled ${t.data.level}`)):t.data&&t.data.type==="ping"?o("pong"):t.data==="skipWaiting"&&(o("skipWaiting received"),t.waitUntil(s.skipWaiting()))});async function F(){const t=await s.clients.matchAll({type:"window",includeUncontrolled:!0});let i,e,c;for(var n=0;n<t.length;n++){const l=t[n],r=l.visibilityState==="visible",p=l.focused;if(r&&!i&&(i=l),p&&!e&&(e=l),p&&r){c=l;break}}return{atLeastOneFocused:e,atLeastOneVisible:i,atLeastOneVisibleAndFocused:c}}async function L(t){const i=await F(),e={title:"Notification",options:{body:"You have a new notification",icon:"/favicon.png",badge:"/favicon.png"}};if(t)try{const c=JSON.parse(t);if(c.web_push===8030){const n=c.notification;e.options={badge:n.badge,body:n.body,data:n.data,dir:n.dir,icon:n.icon,lang:n.lang,requireInteraction:n.requireInteraction,silent:n.silent,tag:n.tag},e.title=n.title,e.options.icon||(e.options.icon=n.image),n.navigate&&(e.options.data?typeof e.options.data=="object"&&!e.options.data.navigate&&(e.options.data={...e.options.data,navigate:n.navigate}):e.options.data={navigate:n.navigate})}else e.title=c.notification?.title||c.title||"Notification",e.options=c.notification||c.options}catch{e.options.body=t}o("handlePush",t,e),i.atLeastOneVisibleAndFocused?(o("posting notification to active app",e),i.atLeastOneVisibleAndFocused.postMessage({type:"notification",notification:{title:e.title,options:e.options}})):await s.registration.showNotification(e.title,e.options)}s.addEventListener("push",function(t){const i=t.data?.text();t.waitUntil(L(i))});async function W(t){const i=await s.clients.matchAll({type:"window",includeUncontrolled:!0}),e=location.pathname,c=e.substring(0,e.lastIndexOf("/")+1);let n=t.data?.navigate;n&&!n.startsWith("/")&&n.indexOf(":/")==-1&&(n=c+n);for(const l of i)if(o(`${"focus"in l?"focus-available: ":""}: ${l.url}`),"focus"in l)return n&&"navigate"in l?l.focus().then(()=>l.navigate(n)):l.focus();if(s.clients.openWindow)return s.clients.openWindow(n||"/")}s.addEventListener("notificationclick",function(t){t.notification.close(),t.waitUntil(W(t.notification))});
@@ -1,2 +0,0 @@
1
- import{bl as Le,aK as Me,b9 as A,ai as U,a_ as T,bf as re,b4 as bt,bg as kt}from"./CEg8tgYI.js";class Ae{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Ue{constructor(t,n){try{new Headers({location:n})}catch{throw new Error(`Invalid redirect location ${JSON.stringify(n)}: this string contains characters that cannot be used in HTTP headers`)}this.status=t,this.location=n}}class Te extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}new URL("sveltekit-internal://");function St(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function Et(e){return e.split("%25").map(decodeURI).join("%25")}function Rt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function ve({href:e}){return e.split("#")[0]}function C(){}function xt(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;function Lt(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}const At=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&H.delete($e(e)),At(e,t));const H=new Map;function Ut(e,t){const n=$e(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:a,...i}=JSON.parse(r.textContent);const o=r.getAttribute("data-ttl");return o&&H.set(n,{body:a,init:i,ttl:1e3*Number(o)}),r.getAttribute("data-b64")!==null&&(a=Lt(a)),Promise.resolve(new Response(a,i))}return window.fetch(e,t)}function Tt(e,t,n){if(H.size>0){const r=$e(e,n),a=H.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(a.body,a.init);H.delete(r)}}return window.fetch(t,n)}function $e(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const a=[];t.headers&&a.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&a.push(t.body),r+=`[data-hash="${xt(...a)}"]`}return r}const $t=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function It(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${Ze(e).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const i=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(i)return t.push({name:i[1],matcher:i[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const o=r.split(/\[(.+?)\](?!\])/);return"/"+o.map((l,c)=>{if(c%2){if(l.startsWith("x+"))return ye(String.fromCharCode(parseInt(l.slice(2),16)));if(l.startsWith("u+"))return ye(String.fromCharCode(...l.slice(2).split("-").map(g=>parseInt(g,16))));const f=$t.exec(l),[,p,w,d,u]=f;return t.push({name:d,matcher:u,optional:!!p,rest:!!w,chained:w?c===1&&o[0]==="":!1}),w?"([^]*?)":p?"([^/]*)?":"([^/]+?)"}return ye(l)}).join("")}).join("")}/?$`),params:t}}function Pt(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function Ze(e){return e.slice(1).split("/").filter(Pt)}function Ot(e,t,n){const r={},a=e.slice(1),i=a.filter(s=>s!==void 0);let o=0;for(let s=0;s<t.length;s+=1){const l=t[s];let c=a[s-o];if(l.chained&&l.rest&&o&&(c=a.slice(s-o,s+1).filter(f=>f).join("/"),o=0),c===void 0)if(l.rest)c="";else continue;if(!l.matcher||n[l.matcher](c)){r[l.name]=c;const f=t[s+1],p=a[s+1];f&&!f.rest&&f.optional&&p&&l.chained&&(o=0),!f&&!p&&Object.keys(r).length===i.length&&(o=0);continue}if(l.optional&&l.chained){o++;continue}return}if(!o)return r}function ye(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}const Ct=/\[(\[)?(\.\.\.)?(\w+?)(?:=(\w+))?\]\]?/g;function dn(e,t){const n=Ze(e),r=e!="/"&&e.endsWith("/");return"/"+n.map(a=>a.replace(Ct,(i,o,s,l)=>{const c=t[l];if(!c){if(o||s&&c!==void 0)return"";throw new Error(`Missing parameter '${l}' in route ${e}`)}if(c.startsWith("/")||c.endsWith("/"))throw new Error(`Parameter '${l}' in route ${e} cannot start or end with a slash -- this would cause an invalid route like foo//bar`);return c})).filter(Boolean).join("/")+(r?"/":"")}function jt({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([s,[l,c,f]])=>{const{pattern:p,params:w}=It(s),d={id:s,exec:u=>{const g=p.exec(u);if(g)return Ot(g,w,r)},errors:[1,...f||[]].map(u=>e[u]),layouts:[0,...c||[]].map(o),leaf:i(l)};return d.errors.length=d.layouts.length=Math.max(d.errors.length,d.layouts.length),d});function i(s){const l=s<0;return l&&(s=~s),[l,e[s]]}function o(s){return s===void 0?s:[a.has(s),e[s]]}}function et(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function We(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const L=globalThis.__sveltekit_4zswkx?.base??"",Nt=globalThis.__sveltekit_4zswkx?.assets??L??"",qt="4054111",tt="sveltekit:snapshot",nt="sveltekit:scroll",Ie="sveltekit:states",rt="sveltekit:pageurl",D="sveltekit:history",K="sveltekit:navigation",q={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},Pe=location.origin;function Oe(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function V(){return{x:pageXOffset,y:pageYOffset}}function z(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Fe={...q,"":q.hover};function at(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function ot(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=at(e)}}function Se(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const s=location.hash.split("#")[1]||"/";r.hash=`#${s}${r.hash}`}}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,i=!r||!!a||he(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=r?.origin===Pe&&e.hasAttribute("download");return{url:r,external:i,target:a,download:o}}function ae(e){let t=null,n=null,r=null,a=null,i=null,o=null,s=e;for(;s&&s!==document.documentElement;)r===null&&(r=z(s,"preload-code")),a===null&&(a=z(s,"preload-data")),t===null&&(t=z(s,"keepfocus")),n===null&&(n=z(s,"noscroll")),i===null&&(i=z(s,"reload")),o===null&&(o=z(s,"replacestate")),s=at(s);function l(c){switch(c){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Fe[r??"off"],preload_data:Fe[a??"off"],keepfocus:l(t),noscroll:l(n),reload:l(i),replace_state:l(o)}}function Ge(e){const t=Le(e);let n=!0;function r(){n=!0,t.update(o=>o)}function a(o){n=!1,t.set(o)}function i(o){let s;return t.subscribe(l=>{(s===void 0||n&&l!==s)&&o(s=l)})}return{notify:r,set:a,subscribe:i}}const st={v:C};function Dt(){const{set:e,subscribe:t}=Le(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${Nt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const o=(await a.json()).version!==qt;return o&&(e(!0),st.v(),clearTimeout(n)),o}catch{return!1}}return{subscribe:t,check:r}}function he(e,t,n){return e.origin!==Pe||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function hn(e){}const it=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...it];const Vt=new Set([...it]);[...Vt];function zt(e){return e.filter(t=>t!=null)}function te(e,t){return e+"/"+t}function Ce(e){return e instanceof Ae||e instanceof Te?e.status:500}function Bt(e){return e instanceof Te?e.text:"Internal Error"}let b,Y,be;const Kt=Me.toString().includes("$$")||/function \w+\(\) \{\}/.test(Me.toString()),He="a:";Kt?(b={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(He)},Y={current:null},be={current:!1}):(b=new class{#e=A({});get data(){return U(this.#e)}set data(t){T(this.#e,t)}#t=A(null);get form(){return U(this.#t)}set form(t){T(this.#t,t)}#n=A(null);get error(){return U(this.#n)}set error(t){T(this.#n,t)}#r=A({});get params(){return U(this.#r)}set params(t){T(this.#r,t)}#a=A({id:null});get route(){return U(this.#a)}set route(t){T(this.#a,t)}#o=A({});get state(){return U(this.#o)}set state(t){T(this.#o,t)}#s=A(-1);get status(){return U(this.#s)}set status(t){T(this.#s,t)}#i=A(new URL(He));get url(){return U(this.#i)}set url(t){T(this.#i,t)}},Y=new class{#e=A(null);get current(){return U(this.#e)}set current(t){T(this.#e,t)}},be=new class{#e=A(!1);get current(){return U(this.#e)}set current(t){T(this.#e,t)}},st.v=()=>be.current=!0);function lt(e){Object.assign(b,e)}const Mt=kt??(e=>e()),Wt=new Set(["icon","shortcut icon","apple-touch-icon"]);let F=null;const N=et(nt)??{},X=et(tt)??{},j={url:Ge({}),page:Ge({}),navigating:Le(null),updated:Dt()};function pe(e){N[e]=V()}function ct(e,t){let n=e+1;for(;N[n];)delete N[n],n+=1;for(n=t+1;X[n];)delete X[n],n+=1}function Q(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(C)}async function ut(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(L||"/");e&&await e.update()}}let je,Ee,oe,$,Re,y;const se=[],ie=[];let x=null;function le(){x?.fork?.then(e=>e?.discard()),x=null}const ne=new Map,ft=new Set,Ft=new Set,J=new Set;let m={branch:[],error:null,url:null},dt=!1,ce=!1,Je=!0,Z=!1,G=!1,Ne=!1,qe=!1,De,v,E,O;const ue=new Set,Ye=new Map,Xe=new Map;async function mn(e,t,n){globalThis.__sveltekit_4zswkx&&(globalThis.__sveltekit_4zswkx.query,globalThis.__sveltekit_4zswkx.prerender),document.URL!==location.href&&(location.href=location.href),y=e,await e.hooks.init?.(),je=jt(e),$=document.documentElement,Re=t,Ee=e.nodes[0],oe=e.nodes[1],Ee(),oe(),v=history.state?.[D],E=history.state?.[K],v||(v=E=Date.now(),history.replaceState({...history.state,[D]:v,[K]:E},""));const r=N[v];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await sn(Re,n)):(await B({type:"enter",url:Oe(y.hash?un(new URL(location.href)):location.href),replace_state:!0}),a()),on()}function Gt(){se.length=0,qe=!1}function ht(e){ie.some(t=>t?.snapshot)&&(X[e]=ie.map(t=>t?.snapshot?.capture()))}function pt(e){X[e]?.forEach((t,n)=>{ie[n]?.snapshot?.restore(t)})}function Qe(){pe(v),We(nt,N),ht(E),We(tt,X)}async function Ht(e,t,n,r){let a,i;t.invalidateAll&&le(),await B({type:"goto",url:Oe(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{if(t.invalidateAll){qe=!0,a=new Set;for(const[o,s]of Ye)for(const l of s.keys())a.add(te(o,l));i=new Set;for(const[o,s]of Xe)for(const l of s.keys())i.add(te(o,l))}t.invalidate&&t.invalidate.forEach(an)}}),t.invalidateAll&&re().then(re).then(()=>{for(const[o,s]of Ye)for(const[l,{resource:c}]of s)a?.has(te(o,l))&&c.refresh();for(const[o,s]of Xe)for(const[l,{resource:c}]of s)i?.has(te(o,l))&&c.reconnect()})}async function Jt(e){if(e.id!==x?.id){le();const t={};ue.add(t),x={id:e.id,token:t,promise:gt({...e,preload:t}).then(n=>(ue.delete(t),n.type==="loaded"&&n.state.error&&le(),n)),fork:null}}return x.promise}async function ke(e){const t=(await _e(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(n=>n[1]()))}async function _t(e,t,n){const r={params:m.params,route:{id:m.route?.id??null},url:new URL(location.href)};m={...e.state,nav:r};const a=document.querySelector("style[data-sveltekit]");if(a&&a.remove(),lt(e.props.page),De=new y.root({target:t,props:{...e.props,stores:j,components:ie},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),pt(E),n){const i={from:null,to:{...r,scroll:N[v]??V()},willUnload:!1,type:"enter",complete:Promise.resolve()};J.forEach(o=>o(i))}ce=!0}async function fe({url:e,params:t,branch:n,errors:r,status:a,error:i,route:o,form:s}){let l="never";if(L&&(e.pathname===L||e.pathname===L+"/"))l="always";else for(const u of n)u?.slash!==void 0&&(l=u.slash);e.pathname=St(e.pathname,l),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:i,route:o},props:{constructors:zt(n).map(u=>u.node.component),page:ge(b)}};s!==void 0&&(c.props.form=s);let f={},p=!b,w=0;for(let u=0;u<Math.max(n.length,m.branch.length);u+=1){const g=n[u],_=m.branch[u];g?.data!==_?.data&&(p=!0),g&&(f={...f,...g.data},p&&(c.props[`data_${w}`]=f),w+=1)}return(!m.url||e.href!==m.url.href||m.error!==i||s!==void 0&&s!==b.form||p)&&(c.props.page={error:i,params:t,route:{id:o?.id??null},state:{},status:a,url:new URL(e),form:s??null,data:p?f:b.data}),c}async function Ve({loader:e,parent:t,url:n,params:r,route:a,server_data_node:i}){let o=null;const s={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await e();return{node:l,loader:e,server:i,universal:l.universal?.load?{type:"data",data:o,uses:s}:null,data:o??i?.data??null,slash:l.universal?.trailingSlash??i?.slash}}function Yt(e,t,n){let r=e instanceof Request?e.url:e;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const i=ce?Tt(r,a.href,t):Ut(r,t);return{resolved:a,promise:i}}function Xt(e,t,n,r,a,i){if(qe)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const o of a.search_params)if(r.has(o))return!0;for(const o of a.params)if(i[o]!==m.params[o])return!0;for(const o of a.dependencies)if(se.some(s=>s(new URL(o))))return!0;return!1}function ze(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Qt(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),i=t.searchParams.getAll(r);a.every(o=>i.includes(o))&&i.every(o=>a.includes(o))&&n.delete(r)}return n}function Zt({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:ge(b),constructors:[]}}}async function gt({id:e,invalidating:t,url:n,params:r,route:a,preload:i}){if(x?.id===e)return ue.delete(x.token),x.promise;const{errors:o,layouts:s,leaf:l}=a,c=[...s,l];o.forEach(_=>_?.().catch(C)),c.forEach(_=>_?.[1]().catch(C));const f=m.url?e!==de(m.url):!1,p=m.route?a.id!==m.route.id:!1,w=Qt(m.url,n);let d=!1;const u=c.map(async(_,h)=>{if(!_)return;const k=m.branch[h];return _[1]===k?.loader&&!Xt(d,p,f,w,k.universal?.uses,r)?k:(d=!0,Ve({loader:_[1],url:n,params:r,route:a,parent:async()=>{const I={};for(let P=0;P<h;P+=1)Object.assign(I,(await u[P])?.data);return I},server_data_node:ze(_[0]?{type:"skip"}:null,_[0]?k?.server:void 0)}))});for(const _ of u)_.catch(C);const g=[];for(let _=0;_<c.length;_+=1)if(c[_])try{g.push(await u[_])}catch(h){if(h instanceof Ue)return{type:"redirect",location:h.location};if(ue.has(i))return Zt({error:await ee(h,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let k=Ce(h),R;if(h instanceof Ae)R=h.body;else{if(await j.updated.check())return await ut(),await Q(n);R=await ee(h,{params:r,url:n,route:{id:a.id}})}const I=await en(_,g,o);return I?fe({url:n,params:r,branch:g.slice(0,I.idx).concat(I.node),errors:o,status:k,error:R,route:a}):await wt(n,{id:a.id},R,k)}else g.push(void 0);return fe({url:n,params:r,branch:g,errors:o,status:200,error:null,route:a,form:t?void 0:null})}async function en(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)r-=1;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function Be({status:e,error:t,url:n,route:r}){const a={};let i=null;try{const o=await Ve({loader:Ee,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:ze(i)}),s={node:await oe(),loader:oe,universal:null,server:null,data:null};return fe({url:n,params:a,branch:[o,s],status:e,error:t,errors:[],route:null})}catch(o){if(o instanceof Ue)return Ht(new URL(o.location,location.href),{},0);throw o}}async function tn(e){const t=e.href;if(ne.has(t))return ne.get(t);let n;try{const r=(async()=>{let a=await y.hooks.reroute({url:new URL(e),fetch:async(i,o)=>Yt(i,o,e).promise})??e;if(typeof a=="string"){const i=new URL(e);y.hash?i.hash=a:i.pathname=a,a=i}return a})();ne.set(t,r),n=await r}catch{ne.delete(t);return}return n}async function _e(e,t){if(e&&!he(e,L,y.hash)){const n=await tn(e);if(!n)return;const r=nn(n);for(const a of je){const i=a.exec(r);if(i)return{id:de(e),invalidating:t,route:a,params:Rt(i),url:e}}}}function nn(e){return Et(y.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(L.length))||"/"}function de(e){return(y.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function mt({url:e,type:t,intent:n,delta:r,event:a,scroll:i}){let o=!1;const s=Ke(m,n,e,t,i??null);r!==void 0&&(s.navigation.delta=r),a!==void 0&&(s.navigation.event=a);const l={...s.navigation,cancel:()=>{o=!0,s.reject(new Error("navigation cancelled"))}};return Z||ft.forEach(c=>c(l)),o?null:s}async function B({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:i,state:o={},redirect_count:s=0,nav_token:l={},accept:c=C,block:f=C,event:p}){const w=O;O=l;const d=await _e(t,!1),u=e==="enter"?Ke(m,d,t,e):mt({url:t,type:e,delta:n?.delta,intent:d,scroll:n?.scroll,event:p});if(!u){f(),O===l&&(O=w);return}const g=v,_=E;c(),Z=!0,ce&&u.navigation.type!=="enter"&&j.navigating.set(Y.current=u.navigation);let h=d&&await gt(d);if(!h){if(he(t,L,y.hash))return await Q(t,i);h=await wt(t,{id:null},await ee(new Te(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,i)}if(t=d?.url||t,O!==l)return u.reject(new Error("navigation aborted")),!1;if(h.type==="redirect"){if(s<20){await B({type:e,url:new URL(h.location,t),popped:n,keepfocus:r,noscroll:a,replace_state:i,state:o,redirect_count:s+1,nav_token:l}),u.fulfil(void 0);return}h=await Be({status:500,error:await ee(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else h.props.page.status>=400&&await j.updated.check()&&(await ut(),await Q(t,i));if(Gt(),pe(g),ht(_),h.props.page.url.pathname!==t.pathname&&(t.pathname=h.props.page.url.pathname),o=n?n.state:o,!n){const S=i?0:1,M={[D]:v+=S,[K]:E+=S,[Ie]:o};(i?history.replaceState:history.pushState).call(history,M,"",t),i||ct(v,E)}const k=d&&x?.id===d.id?x.fork:null;x?.fork&&!k&&le(),x=null,h.props.page.state=o;let R;if(ce){const S=(await Promise.all(Array.from(Ft,W=>W(u.navigation)))).filter(W=>typeof W=="function");if(S.length>0){let W=function(){S.forEach(we=>{J.delete(we)})};S.push(W),S.forEach(we=>{J.add(we)})}const M=u.navigation.to;m={...h.state,nav:{params:M.params,route:M.route,url:M.url}},h.props.page&&(h.props.page.url=t);const me=k&&await k;me?R=me.commit():(F=null,De.$set(h.props),F&&Object.assign(h.props.page,F),lt(h.props.page),R=bt?.()),Ne=!0}else await _t(h,Re,!1);const{activeElement:I}=document;if(await R,await re(),await re(),O!==l)return u.reject(new Error("navigation aborted")),!1;h.props.page&&F&&Object.assign(h.props.page,F);let P=null;if(Je){const S=n?n.scroll:a?V():null;S?scrollTo(S.x,S.y):(P=t.hash&&document.getElementById(vt(t)))?P.scrollIntoView():scrollTo(0,0)}const yt=document.activeElement!==I&&document.activeElement!==document.body;!r&&!yt&&cn(t,!P),Je=!0,Z=!1,e==="popstate"&&pt(E),u.fulfil(void 0),u.navigation.to&&(u.navigation.to.scroll=V()),J.forEach(S=>S(u.navigation)),j.navigating.set(Y.current=null)}async function wt(e,t,n,r,a){return e.origin===Pe&&e.pathname===location.pathname&&!dt?await Be({status:r,error:n,url:e,route:t}):await Q(e,a)}function rn(){let e,t={element:void 0,href:void 0},n;$.addEventListener("mousemove",s=>{const l=s.target;clearTimeout(e),e=setTimeout(()=>{i(l,q.hover)},20)});function r(s){s.defaultPrevented||i(s.composedPath()[0],q.tap)}$.addEventListener("mousedown",r),$.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(s=>{for(const l of s)l.isIntersecting&&(ke(new URL(l.target.href)),a.unobserve(l.target))},{threshold:0});async function i(s,l){const c=ot(s,$),f=c===t.element&&c?.href===t.href&&l>=n;if(!c||f)return;const{url:p,external:w,download:d}=Se(c,L,y.hash);if(w||d)return;const u=ae(c),g=p&&de(m.url)===de(p);if(!(u.reload||g))if(l<=u.preload_data){t={element:c,href:c.href},n=q.tap;const _=await _e(p,!1);if(!_)return;Jt(_)}else l<=u.preload_code&&(t={element:c,href:c.href},n=l,ke(p))}function o(){a.disconnect();for(const s of $.querySelectorAll("a")){const{url:l,external:c,download:f}=Se(s,L,y.hash);if(c||f)continue;const p=ae(s);p.reload||(p.preload_code===q.viewport&&a.observe(s),p.preload_code===q.eager&&ke(l))}}J.add(o),o()}function ee(e,t){if(e instanceof Ae)return e.body;const n=Ce(e),r=Bt(e);return y.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function an(e){if(typeof e=="function")se.push(e);else{const{href:t}=new URL(e,location.href);se.push(n=>n.href===t)}}function wn(e,t){pe(v);const n={[D]:v+=1,[K]:E,[rt]:b.url.href,[Ie]:t};history.pushState(n,"",Oe(e)),Ne=!0,b.state=t,De.$set({page:Mt(()=>ge(b))}),ct(v,E)}function on(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(Qe(),!Z){const r=Ke(m,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};ft.forEach(i=>i(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Qe()}),navigator.connection?.saveData||rn(),$.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=ot(t.composedPath()[0],$);if(!n)return;const{url:r,external:a,target:i,download:o}=Se(n,L,y.hash);if(!r)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const s=ae(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||o)return;const[c,f]=(y.hash?r.hash.replace(/^#/,""):r.href).split("#"),p=c===ve(location);if(a||s.reload&&(!p||!f)){mt({url:r,type:"link",event:t})?Z=!0:t.preventDefault();return}if(f!==void 0&&p){const[,w]=m.url.href.split("#");if(w===f){if(t.preventDefault(),f===""||f==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const d=n.ownerDocument.getElementById(decodeURIComponent(f));d&&(d.scrollIntoView(),d.focus())}return}if(G=!0,pe(v),e(r),!s.replace_state)return;G=!1}t.preventDefault(),await new Promise(w=>{requestAnimationFrame(()=>{setTimeout(w,0)}),setTimeout(w,100)}),await B({type:"link",url:r,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??r.href===location.href,event:t})}),$.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if((r?.formTarget||n.target)==="_blank"||(r?.formMethod||n.method)!=="get")return;const o=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(he(o,L,!1))return;const s=t.target,l=ae(s);if(l.reload)return;t.preventDefault(),t.stopPropagation();const c=new FormData(s,r);o.search=new URLSearchParams(c).toString(),B({type:"form",url:o,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??o.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!xe){if(t.state?.[D]){const n=t.state[D];if(O={},n===v)return;const r=N[n],a=t.state[Ie]??{},i=new URL(t.state[rt]??location.href),o=t.state[K],s=m.url?ve(location)===ve(m.url):!1;if(o===E&&(Ne||s)){a!==b.state&&(b.state=a),e(i),N[v]=V(),r&&scrollTo(r.x,r.y),v=n;return}const c=n-v;await B({type:"popstate",url:i,popped:{state:a,scroll:r,delta:c},accept:()=>{v=n,E=o},block:()=>{history.go(-c)},nav_token:O,event:t})}else if(!G){const n=new URL(location.href);e(n),y.hash&&location.reload()}}}),addEventListener("hashchange",()=>{G&&(G=!1,history.replaceState({...history.state,[D]:++v,[K]:E},"",location.href))});for(const t of document.querySelectorAll("link"))Wt.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&j.navigating.set(Y.current=null)});function e(t){m.url=b.url=t,j.page.set(ge(b)),j.page.notify()}}async function sn(e,{status:t=200,error:n,node_ids:r,params:a,route:i,server_route:o,data:s,form:l}){dt=!0;const c=new URL(location.href);let f;({params:a={},route:i={id:null}}=await _e(c,!1)||{}),f=je.find(({id:d})=>d===i.id);let p,w=!0;try{const d=r.map(async(g,_)=>{const h=s[_];return h?.uses&&(h.uses=ln(h.uses)),Ve({loader:y.nodes[g],url:c,params:a,route:i,parent:async()=>{const k={};for(let R=0;R<_;R+=1)Object.assign(k,(await d[R]).data);return k},server_data_node:ze(h)})}),u=await Promise.all(d);if(f){const g=f.layouts;for(let _=0;_<g.length;_++)g[_]||u.splice(_,0,void 0)}p=await fe({url:c,params:a,branch:u,status:t,error:n,errors:f?.errors,form:l,route:f??null})}catch(d){if(d instanceof Ue){await Q(new URL(d.location,location.href));return}p=await Be({status:Ce(d),error:await ee(d,{url:c,params:a,route:i}),url:c,route:i}),e.textContent="",w=!1}p.props.page&&(p.props.page.state={}),await _t(p,e,w)}function ln(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let xe=!1;function cn(e,t=!0){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const r=vt(e);if(r&&document.getElementById(r)){const{x:i,y:o}=V();setTimeout(()=>{const s=history.state;xe=!0,location.replace(new URL(`#${r}`,location.href)),history.replaceState(s,"",e),t&&scrollTo(i,o),xe=!1})}else{const i=document.body,o=i.getAttribute("tabindex");i.tabIndex=-1,i.focus({preventScroll:!0,focusVisible:!1}),o!==null?i.setAttribute("tabindex",o):i.removeAttribute("tabindex")}const a=getSelection();if(a&&a.type!=="None"){const i=[];for(let o=0;o<a.rangeCount;o+=1)i.push(a.getRangeAt(o));setTimeout(()=>{if(a.rangeCount===i.length){for(let o=0;o<a.rangeCount;o+=1){const s=i[o],l=a.getRangeAt(o);if(s.commonAncestorContainer!==l.commonAncestorContainer||s.startContainer!==l.startContainer||s.endContainer!==l.endContainer||s.startOffset!==l.startOffset||s.endOffset!==l.endOffset)return}a.removeAllRanges()}})}}}function Ke(e,t,n,r,a=null){let i,o;const s=new Promise((c,f)=>{i=c,o=f});return s.catch(C),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:V()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:a},willUnload:!t,type:r,complete:s},fulfil:i,reject:o}}function ge(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function un(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function vt(e){let t;if(y.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{wn as a,L as b,j as c,hn as l,b as p,dn as r,mn as s,qt as v};
2
- //# sourceMappingURL=BLTq6nZr.js.map
@@ -1,2 +0,0 @@
1
- import{l as o,s as r}from"../chunks/BLTq6nZr.js";export{o as load_css,r as start};
2
- //# sourceMappingURL=start.BR9tyzQb.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"start.BR9tyzQb.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}