diff --git a/404.html b/404.html index 6f87ed1..902b460 100644 --- a/404.html +++ b/404.html @@ -5,7 +5,7 @@ - + diff --git a/_app/immutable/chunks/entry.CqJLIjjn.js b/_app/immutable/chunks/entry.Be0Gp7OG.js similarity index 99% rename from _app/immutable/chunks/entry.CqJLIjjn.js rename to _app/immutable/chunks/entry.Be0Gp7OG.js index 378afb8..ff9dd01 100644 --- a/_app/immutable/chunks/entry.CqJLIjjn.js +++ b/_app/immutable/chunks/entry.Be0Gp7OG.js @@ -1,3 +1,3 @@ -import{P as ot}from"./runtime.DkqSkKrO.js";import{w as pe}from"./index.DRt9ZR3B.js";import{a as st,b as P}from"./paths.DHGntW90.js";new URL("sveltekit-internal://");function it(e,n){return e==="/"||n==="ignore"?e:n==="never"?e.endsWith("/")?e.slice(0,-1):e:n==="always"&&!e.endsWith("/")?e+"/":e}function ct(e){return e.split("%25").map(decodeURI).join("%25")}function lt(e){for(const n in e)e[n]=decodeURIComponent(e[n]);return e}function ce({href:e}){return e.split("#")[0]}const ft=["href","pathname","search","toString","toJSON"];function ut(e,n,t){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(r,o){if(o==="get"||o==="getAll"||o==="has")return s=>(t(s),r[o](s));n();const i=Reflect.get(r,o);return typeof i=="function"?i.bind(r):i}}),enumerable:!0,configurable:!0});for(const r of ft)Object.defineProperty(a,r,{get(){return n(),e[r]},enumerable:!0,configurable:!0});return a}const dt="/__data.json",ht=".html__data.json";function pt(e){return e.endsWith(".html")?e.replace(/\.html$/,ht):e.replace(/\/$/,"")+dt}function gt(...e){let n=5381;for(const t of e)if(typeof t=="string"){let a=t.length;for(;a;)n=n*33^t.charCodeAt(--a)}else if(ArrayBuffer.isView(t)){const a=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);let r=a.length;for(;r;)n=n*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(n>>>0).toString(36)}function mt(e){const n=atob(e),t=new Uint8Array(n.length);for(let a=0;a((e instanceof Request?e.method:(n==null?void 0:n.method)||"GET")!=="GET"&&q.delete(ge(e)),je(e,n));const q=new Map;function _t(e,n){const t=ge(e,n),a=document.querySelector(t);if(a!=null&&a.textContent){let{body:r,...o}=JSON.parse(a.textContent);const i=a.getAttribute("data-ttl");return i&&q.set(t,{body:r,init:o,ttl:1e3*Number(i)}),a.getAttribute("data-b64")!==null&&(r=mt(r)),Promise.resolve(new Response(r,o))}return window.fetch(e,n)}function yt(e,n,t){if(q.size>0){const a=ge(e,t),r=q.get(a);if(r){if(performance.now(){const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(a);if(r)return n.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const o=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(a);if(o)return n.push({name:o[1],matcher:o[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!a)return;const i=a.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,f)=>{if(f%2){if(c.startsWith("x+"))return le(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return le(String.fromCharCode(...c.slice(2).split("-").map(l=>parseInt(l,16))));const u=wt.exec(c),[,h,g,d,_]=u;return n.push({name:d,matcher:_,optional:!!h,rest:!!g,chained:g?f===1&&i[0]==="":!1}),g?"(.*?)":h?"([^/]*)?":"([^/]+?)"}return le(c)}).join("")}).join("")}/?$`),params:n}}function bt(e){return!/^\([^)]+\)$/.test(e)}function Et(e){return e.slice(1).split("/").filter(bt)}function kt(e,n,t){const a={},r=e.slice(1),o=r.filter(s=>s!==void 0);let i=0;for(let s=0;su).join("/"),i=0),f===void 0){c.rest&&(a[c.name]="");continue}if(!c.matcher||t[c.matcher](f)){a[c.name]=f;const u=n[s+1],h=r[s+1];u&&!u.rest&&u.optional&&h&&c.chained&&(i=0),!u&&!h&&Object.keys(a).length===o.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return a}function le(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function St({nodes:e,server_loads:n,dictionary:t,matchers:a}){const r=new Set(n);return Object.entries(t).map(([s,[c,f,u]])=>{const{pattern:h,params:g}=vt(s),d={id:s,exec:_=>{const l=h.exec(_);if(l)return kt(l,g,a)},errors:[1,...u||[]].map(_=>e[_]),layouts:[0,...f||[]].map(i),leaf:o(c)};return d.errors.length=d.layouts.length=Math.max(d.errors.length,d.layouts.length),d});function o(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function i(s){return s===void 0?s:[r.has(s),e[s]]}}function De(e,n=JSON.parse){try{return n(sessionStorage[e])}catch{}}function Ie(e,n,t=JSON.stringify){const a=t(n);try{sessionStorage[e]=a}catch{}}const At="1722062695816",$e="sveltekit:snapshot",Ce="sveltekit:scroll",Ve="sveltekit:states",Rt="sveltekit:pageurl",D="sveltekit:history",M="sveltekit:navigation",J={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},K=location.origin;function Fe(e){if(e instanceof URL)return e;let n=document.baseURI;if(!n){const t=document.getElementsByTagName("base");n=t.length?t[0].href:document.URL}return new URL(e,n)}function me(){return{x:pageXOffset,y:pageYOffset}}function O(e,n){return e.getAttribute(`data-sveltekit-${n}`)}const Le={...J,"":J.hover};function qe(e){let n=e.assignedSlot??e.parentNode;return(n==null?void 0:n.nodeType)===11&&(n=n.host),n}function Ge(e,n){for(;e&&e!==n;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=qe(e)}}function ue(e,n){let t;try{t=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,r=!t||!!a||ne(t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=(t==null?void 0:t.origin)===K&&e.hasAttribute("download");return{url:t,external:r,target:a,download:o}}function W(e){let n=null,t=null,a=null,r=null,o=null,i=null,s=e;for(;s&&s!==document.documentElement;)a===null&&(a=O(s,"preload-code")),r===null&&(r=O(s,"preload-data")),n===null&&(n=O(s,"keepfocus")),t===null&&(t=O(s,"noscroll")),o===null&&(o=O(s,"reload")),i===null&&(i=O(s,"replacestate")),s=qe(s);function c(f){switch(f){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Le[a??"off"],preload_data:Le[r??"off"],keepfocus:c(n),noscroll:c(t),reload:c(o),replace_state:c(i)}}function Pe(e){const n=pe(e);let t=!0;function a(){t=!0,n.update(i=>i)}function r(i){t=!1,n.set(i)}function o(i){let s;return n.subscribe(c=>{(s===void 0||t&&c!==s)&&i(s=c)})}return{notify:a,set:r,subscribe:o}}function It(){const{set:e,subscribe:n}=pe(!1);let t;async function a(){clearTimeout(t);try{const r=await fetch(`${st}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const i=(await r.json()).version!==At;return i&&(e(!0),clearTimeout(t)),i}catch{return!1}}return{subscribe:n,check:a}}function ne(e,n){return e.origin!==K||!e.pathname.startsWith(n)}const Lt=-1,Pt=-2,Tt=-3,Ut=-4,xt=-5,Nt=-6;function Ot(e,n){if(typeof e=="number")return r(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const t=e,a=Array(t.length);function r(o,i=!1){if(o===Lt)return;if(o===Tt)return NaN;if(o===Ut)return 1/0;if(o===xt)return-1/0;if(o===Nt)return-0;if(i)throw new Error("Invalid input");if(o in a)return a[o];const s=t[o];if(!s||typeof s!="object")a[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const c=s[0],f=n==null?void 0:n[c];if(f)return a[o]=f(r(s[1]));switch(c){case"Date":a[o]=new Date(s[1]);break;case"Set":const u=new Set;a[o]=u;for(let d=1;dn!=null)}class ae{constructor(n,t){this.status=n,typeof t=="string"?this.body={message:t}:t?this.body=t:this.body={message:`Error: ${n}`}}toString(){return JSON.stringify(this.body)}}class He{constructor(n,t){this.status=n,this.location=t}}class _e extends Error{constructor(n,t,a){super(a),this.status=n,this.text=t}}const $t="x-sveltekit-invalidated",Ct="x-sveltekit-trailing-slash";function z(e){return e instanceof ae||e instanceof _e?e.status:500}function Vt(e){return e instanceof _e?e.text:"Internal Error"}const N=De(Ce)??{},H=De($e)??{},U={url:Pe({}),page:Pe({}),navigating:pe(null),updated:It()};function ye(e){N[e]=me()}function Ft(e,n){let t=e+1;for(;N[t];)delete N[t],t+=1;for(t=n+1;H[t];)delete H[t],t+=1}function C(e){return location.href=e.href,new Promise(()=>{})}function Te(){}let re,de,X,T,he,V;const Be=[],Z=[];let R=null;const Ke=[],qt=[];let j=[],y={branch:[],error:null,url:null},we=!1,Q=!1,Ue=!0,B=!1,F=!1,Ye=!1,ve=!1,be,S,L,I,ee;const G=new Set;async function en(e,n,t){var r,o;document.URL!==location.href&&(location.href=location.href),V=e,re=St(e),T=document.documentElement,he=n,de=e.nodes[0],X=e.nodes[1],de(),X(),S=(r=history.state)==null?void 0:r[D],L=(o=history.state)==null?void 0:o[M],S||(S=L=Date.now(),history.replaceState({...history.state,[D]:S,[M]:L},""));const a=N[S];a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y)),t?await Wt(he,t):Yt(location.href,{replaceState:!0}),Jt()}function Gt(){Be.length=0,ve=!1}function Je(e){Z.some(n=>n==null?void 0:n.snapshot)&&(H[e]=Z.map(n=>{var t;return(t=n==null?void 0:n.snapshot)==null?void 0:t.capture()}))}function We(e){var n;(n=H[e])==null||n.forEach((t,a)=>{var r,o;(o=(r=Z[a])==null?void 0:r.snapshot)==null||o.restore(t)})}function xe(){ye(S),Ie(Ce,N),Je(L),Ie($e,H)}async function ze(e,n,t,a){return Y({type:"goto",url:Fe(e),keepfocus:n.keepFocus,noscroll:n.noScroll,replace_state:n.replaceState,state:n.state,redirect_count:t,nav_token:a,accept:()=>{n.invalidateAll&&(ve=!0)}})}async function Mt(e){if(e.id!==(R==null?void 0:R.id)){const n={};G.add(n),R={id:e.id,token:n,promise:Ze({...e,preload:n}).then(t=>(G.delete(n),t.type==="loaded"&&t.state.error&&(R=null),t))}}return R.promise}async function fe(e){const n=re.find(t=>t.exec(Qe(e)));n&&await Promise.all([...n.layouts,n.leaf].map(t=>t==null?void 0:t[1]()))}function Xe(e,n,t){var o;y=e.state;const a=document.querySelector("style[data-sveltekit]");a&&a.remove(),I=e.props.page,be=new V.root({target:n,props:{...e.props,stores:U,components:Z},hydrate:t}),We(L);const r={from:null,to:{params:y.params,route:{id:((o=y.route)==null?void 0:o.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};j.forEach(i=>i(r)),Q=!0}function te({url:e,params:n,branch:t,status:a,error:r,route:o,form:i}){let s="never";if(P&&(e.pathname===P||e.pathname===P+"/"))s="always";else for(const d of t)(d==null?void 0:d.slash)!==void 0&&(s=d.slash);e.pathname=it(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:n,branch:t,error:r,route:o},props:{constructors:Dt(t).map(d=>d.node.component),page:I}};i!==void 0&&(c.props.form=i);let f={},u=!I,h=0;for(let d=0;d(s&&(c.route=!0),l[m])}),params:new Proxy(a,{get:(l,m)=>(s&&c.params.add(m),l[m])}),data:(o==null?void 0:o.data)??null,url:ut(t,()=>{s&&(c.url=!0)},l=>{s&&c.search_params.add(l)}),async fetch(l,m){let b;l instanceof Request?(b=l.url,m={body:l.method==="GET"||l.method==="HEAD"?void 0:await l.blob(),cache:l.cache,credentials:l.credentials,headers:l.headers,integrity:l.integrity,keepalive:l.keepalive,method:l.method,mode:l.mode,redirect:l.redirect,referrer:l.referrer,referrerPolicy:l.referrerPolicy,signal:l.signal,...m}):b=l;const A=new URL(b,t);return s&&d(A.href),A.origin===t.origin&&(b=A.href.slice(t.origin.length)),Q?yt(b,A.href,m):_t(b,m)},setHeaders:()=>{},depends:d,parent(){return s&&(c.parent=!0),n()},untrack(l){s=!1;try{return l()}finally{s=!0}}};i=await f.universal.load.call(null,_)??null}return{node:f,loader:e,server:o,universal:(h=f.universal)!=null&&h.load?{type:"data",data:i,uses:c}:null,data:i??(o==null?void 0:o.data)??null,slash:((g=f.universal)==null?void 0:g.trailingSlash)??(o==null?void 0:o.slash)}}function Ne(e,n,t,a,r,o){if(ve)return!0;if(!r)return!1;if(r.parent&&e||r.route&&n||r.url&&t)return!0;for(const i of r.search_params)if(a.has(i))return!0;for(const i of r.params)if(o[i]!==y.params[i])return!0;for(const i of r.dependencies)if(Be.some(s=>s(new URL(i))))return!0;return!1}function ke(e,n){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?n??null:null}function Ht(e,n){if(!e)return new Set(n.searchParams.keys());const t=new Set([...e.searchParams.keys(),...n.searchParams.keys()]);for(const a of t){const r=e.searchParams.getAll(a),o=n.searchParams.getAll(a);r.every(i=>o.includes(i))&&o.every(i=>r.includes(i))&&t.delete(a)}return t}function Oe({error:e,url:n,route:t,params:a}){return{type:"loaded",state:{error:e,url:n,route:t,params:a,branch:[]},props:{page:I,constructors:[]}}}async function Ze({id:e,invalidating:n,url:t,params:a,route:r,preload:o}){if((R==null?void 0:R.id)===e)return G.delete(R.token),R.promise;const{errors:i,layouts:s,leaf:c}=r,f=[...s,c];i.forEach(p=>p==null?void 0:p().catch(()=>{})),f.forEach(p=>p==null?void 0:p[1]().catch(()=>{}));let u=null;const h=y.url?e!==y.url.pathname+y.url.search:!1,g=y.route?r.id!==y.route.id:!1,d=Ht(y.url,t);let _=!1;const l=f.map((p,v)=>{var x;const E=y.branch[v],k=!!(p!=null&&p[0])&&((E==null?void 0:E.loader)!==p[1]||Ne(_,g,h,d,(x=E.server)==null?void 0:x.uses,a));return k&&(_=!0),k});if(l.some(Boolean)){try{u=await nt(t,l)}catch(p){const v=await $(p,{url:t,params:a,route:{id:e}});return G.has(o)?Oe({error:v,url:t,params:a,route:r}):oe({status:z(p),error:v,url:t,route:r})}if(u.type==="redirect")return u}const m=u==null?void 0:u.nodes;let b=!1;const A=f.map(async(p,v)=>{var se;if(!p)return;const E=y.branch[v],k=m==null?void 0:m[v];if((!k||k.type==="skip")&&p[1]===(E==null?void 0:E.loader)&&!Ne(b,g,h,d,(se=E.universal)==null?void 0:se.uses,a))return E;if(b=!0,(k==null?void 0:k.type)==="error")throw k;return Ee({loader:p[1],url:t,params:a,route:r,parent:async()=>{var Re;const Ae={};for(let ie=0;ie{});const w=[];for(let p=0;pPromise.resolve({}),server_data_node:ke(o)}),c={node:await X(),loader:X,universal:null,server:null,data:null};return te({url:t,params:r,branch:[s,c],status:e,error:n,route:null})}function Se(e,n){if(!e||ne(e,P))return;let t;try{t=V.hooks.reroute({url:new URL(e)})??e.pathname}catch{return}const a=Qe(t);for(const r of re){const o=r.exec(a);if(o)return{id:e.pathname+e.search,invalidating:n,route:r,params:lt(o),url:e}}}function Qe(e){return ct(e.slice(P.length)||"/")}function et({url:e,type:n,intent:t,delta:a}){let r=!1;const o=rt(y,t,e,n);a!==void 0&&(o.navigation.delta=a);const i={...o.navigation,cancel:()=>{r=!0,o.reject(new Error("navigation cancelled"))}};return B||Ke.forEach(s=>s(i)),r?null:o}async function Y({type:e,url:n,popped:t,keepfocus:a,noscroll:r,replace_state:o,state:i={},redirect_count:s=0,nav_token:c={},accept:f=Te,block:u=Te}){const h=Se(n,!1),g=et({url:n,type:e,delta:t==null?void 0:t.delta,intent:h});if(!g){u();return}const d=S,_=L;f(),B=!0,Q&&U.navigating.set(g.navigation),ee=c;let l=h&&await Ze(h);if(!l){if(ne(n,P))return await C(n);l=await tt(n,{id:null},await $(new _e(404,"Not Found",`Not found: ${n.pathname}`),{url:n,params:{},route:{id:null}}),404)}if(n=(h==null?void 0:h.url)||n,ee!==c)return g.reject(new Error("navigation aborted")),!1;if(l.type==="redirect")if(s>=20)l=await oe({status:500,error:await $(new Error("Redirect loop"),{url:n,params:{},route:{id:null}}),url:n,route:{id:null}});else return ze(new URL(l.location,n).href,{},s+1,c),!1;else l.props.page.status>=400&&await U.updated.check()&&await C(n);if(Gt(),ye(d),Je(_),l.props.page.url.pathname!==n.pathname&&(n.pathname=l.props.page.url.pathname),i=t?t.state:i,!t){const w=o?0:1,p={[D]:S+=w,[M]:L+=w,[Ve]:i};(o?history.replaceState:history.pushState).call(history,p,"",n),o||Ft(S,L)}if(R=null,l.props.page.state=i,Q){y=l.state,l.props.page&&(l.props.page.url=n);const w=(await Promise.all(qt.map(p=>p(g.navigation)))).filter(p=>typeof p=="function");if(w.length>0){let p=function(){j=j.filter(v=>!w.includes(v))};w.push(p),j.push(...w)}be.$set(l.props),Ye=!0}else Xe(l,he,!1);const{activeElement:m}=document;await ot();const b=t?t.scroll:r?me():null;if(Ue){const w=n.hash&&document.getElementById(decodeURIComponent(n.hash.slice(1)));b?scrollTo(b.x,b.y):w?w.scrollIntoView():scrollTo(0,0)}const A=document.activeElement!==m&&document.activeElement!==document.body;!a&&!A&&zt(),Ue=!0,l.props.page&&(I=l.props.page),B=!1,e==="popstate"&&We(L),g.fulfil(void 0),j.forEach(w=>w(g.navigation)),U.navigating.set(null)}async function tt(e,n,t,a){return e.origin===K&&e.pathname===location.pathname&&!we?await oe({status:a,error:t,url:e,route:n}):await C(e)}function Kt(){let e;T.addEventListener("mousemove",o=>{const i=o.target;clearTimeout(e),e=setTimeout(()=>{a(i,2)},20)});function n(o){a(o.composedPath()[0],1)}T.addEventListener("mousedown",n),T.addEventListener("touchstart",n,{passive:!0});const t=new IntersectionObserver(o=>{for(const i of o)i.isIntersecting&&(fe(i.target.href),t.unobserve(i.target))},{threshold:0});function a(o,i){const s=Ge(o,T);if(!s)return;const{url:c,external:f,download:u}=ue(s,P);if(f||u)return;const h=W(s);if(!h.reload)if(i<=h.preload_data){const g=Se(c,!1);g&&Mt(g)}else i<=h.preload_code&&fe(c.pathname)}function r(){t.disconnect();for(const o of T.querySelectorAll("a")){const{url:i,external:s,download:c}=ue(o,P);if(s||c)continue;const f=W(o);f.reload||(f.preload_code===J.viewport&&t.observe(o),f.preload_code===J.eager&&fe(i.pathname))}}j.push(r),r()}function $(e,n){if(e instanceof ae)return e.body;const t=z(e),a=Vt(e);return V.hooks.handleError({error:e,event:n,status:t,message:a})??{message:a}}function Yt(e,n={}){return e=Fe(e),e.origin!==K?Promise.reject(new Error("goto: invalid URL")):ze(e,n,0)}function Jt(){var n;history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let a=!1;if(xe(),!B){const r=rt(y,void 0,null,"leave"),o={...r.navigation,cancel:()=>{a=!0,r.reject(new Error("navigation cancelled"))}};Ke.forEach(i=>i(o))}a?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&xe()}),(n=navigator.connection)!=null&&n.saveData||Kt(),T.addEventListener("click",async t=>{var g;if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const a=Ge(t.composedPath()[0],T);if(!a)return;const{url:r,external:o,target:i,download:s}=ue(a,P);if(!r)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const c=W(a);if(!(a instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||s)return;if(o||c.reload){et({url:r,type:"link"})?B=!0:t.preventDefault();return}const[u,h]=r.href.split("#");if(h!==void 0&&u===ce(location)){const[,d]=y.url.href.split("#");if(d===h){t.preventDefault(),h===""||h==="top"&&a.ownerDocument.getElementById("top")===null?window.scrollTo({top:0}):(g=a.ownerDocument.getElementById(h))==null||g.scrollIntoView();return}if(F=!0,ye(S),e(r),!c.replace_state)return;F=!1}t.preventDefault(),await new Promise(d=>{requestAnimationFrame(()=>{setTimeout(d,0)}),setTimeout(d,100)}),Y({type:"link",url:r,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??r.href===location.href})}),T.addEventListener("submit",t=>{if(t.defaultPrevented)return;const a=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if(((r==null?void 0:r.formMethod)||a.method)!=="get")return;const i=new URL((r==null?void 0:r.hasAttribute("formaction"))&&(r==null?void 0:r.formAction)||a.action);if(ne(i,P))return;const s=t.target,c=W(s);if(c.reload)return;t.preventDefault(),t.stopPropagation();const f=new FormData(s),u=r==null?void 0:r.getAttribute("name");u&&f.append(u,(r==null?void 0:r.getAttribute("value"))??""),i.search=new URLSearchParams(f).toString(),Y({type:"form",url:i,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??i.href===location.href})}),addEventListener("popstate",async t=>{var a;if((a=t.state)!=null&&a[D]){const r=t.state[D];if(ee={},r===S)return;const o=N[r],i=t.state[Ve]??{},s=new URL(t.state[Rt]??location.href),c=t.state[M],f=ce(location)===ce(y.url);if(c===L&&(Ye||f)){e(s),N[S]=me(),o&&scrollTo(o.x,o.y),i!==I.state&&(I={...I,state:i},be.$set({page:I})),S=r;return}const h=r-S;await Y({type:"popstate",url:s,popped:{state:i,scroll:o,delta:h},accept:()=>{S=r,L=c},block:()=>{history.go(-h)},nav_token:ee})}else if(!F){const r=new URL(location.href);e(r)}}),addEventListener("hashchange",()=>{F&&(F=!1,history.replaceState({...history.state,[D]:++S,[M]:L},"",location.href))});for(const t of document.querySelectorAll("link"))t.rel==="icon"&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&U.navigating.set(null)});function e(t){y.url=t,U.page.set({...I,url:t}),U.page.notify()}}async function Wt(e,{status:n=200,error:t,node_ids:a,params:r,route:o,data:i,form:s}){we=!0;const c=new URL(location.href);({params:r={},route:o={id:null}}=Se(c,!1)||{});let f;try{const u=a.map(async(d,_)=>{const l=i[_];return l!=null&&l.uses&&(l.uses=at(l.uses)),Ee({loader:V.nodes[d],url:c,params:r,route:o,parent:async()=>{const m={};for(let b=0;b<_;b+=1)Object.assign(m,(await u[b]).data);return m},server_data_node:ke(l)})}),h=await Promise.all(u),g=re.find(({id:d})=>d===o.id);if(g){const d=g.layouts;for(let _=0;_o?"1":"0").join(""));const a=await je(t.href);if(!a.ok){let o;throw(r=a.headers.get("content-type"))!=null&&r.includes("application/json")?o=await a.json():a.status===404?o="Not Found":a.status===500&&(o="Internal Error"),new ae(a.status,o)}return new Promise(async o=>{var h;const i=new Map,s=a.body.getReader(),c=new TextDecoder;function f(g){return Ot(g,{Promise:d=>new Promise((_,l)=>{i.set(d,{fulfil:_,reject:l})})})}let u="";for(;;){const{done:g,value:d}=await s.read();if(g&&!u)break;for(u+=!d&&u?` +import{P as ot}from"./runtime.DkqSkKrO.js";import{w as pe}from"./index.DRt9ZR3B.js";import{a as st,b as P}from"./paths.Du6MGWI8.js";new URL("sveltekit-internal://");function it(e,n){return e==="/"||n==="ignore"?e:n==="never"?e.endsWith("/")?e.slice(0,-1):e:n==="always"&&!e.endsWith("/")?e+"/":e}function ct(e){return e.split("%25").map(decodeURI).join("%25")}function lt(e){for(const n in e)e[n]=decodeURIComponent(e[n]);return e}function ce({href:e}){return e.split("#")[0]}const ft=["href","pathname","search","toString","toJSON"];function ut(e,n,t){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(r,o){if(o==="get"||o==="getAll"||o==="has")return s=>(t(s),r[o](s));n();const i=Reflect.get(r,o);return typeof i=="function"?i.bind(r):i}}),enumerable:!0,configurable:!0});for(const r of ft)Object.defineProperty(a,r,{get(){return n(),e[r]},enumerable:!0,configurable:!0});return a}const dt="/__data.json",ht=".html__data.json";function pt(e){return e.endsWith(".html")?e.replace(/\.html$/,ht):e.replace(/\/$/,"")+dt}function gt(...e){let n=5381;for(const t of e)if(typeof t=="string"){let a=t.length;for(;a;)n=n*33^t.charCodeAt(--a)}else if(ArrayBuffer.isView(t)){const a=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);let r=a.length;for(;r;)n=n*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(n>>>0).toString(36)}function mt(e){const n=atob(e),t=new Uint8Array(n.length);for(let a=0;a((e instanceof Request?e.method:(n==null?void 0:n.method)||"GET")!=="GET"&&q.delete(ge(e)),je(e,n));const q=new Map;function _t(e,n){const t=ge(e,n),a=document.querySelector(t);if(a!=null&&a.textContent){let{body:r,...o}=JSON.parse(a.textContent);const i=a.getAttribute("data-ttl");return i&&q.set(t,{body:r,init:o,ttl:1e3*Number(i)}),a.getAttribute("data-b64")!==null&&(r=mt(r)),Promise.resolve(new Response(r,o))}return window.fetch(e,n)}function yt(e,n,t){if(q.size>0){const a=ge(e,t),r=q.get(a);if(r){if(performance.now(){const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(a);if(r)return n.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const o=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(a);if(o)return n.push({name:o[1],matcher:o[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!a)return;const i=a.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,f)=>{if(f%2){if(c.startsWith("x+"))return le(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return le(String.fromCharCode(...c.slice(2).split("-").map(l=>parseInt(l,16))));const u=wt.exec(c),[,h,g,d,_]=u;return n.push({name:d,matcher:_,optional:!!h,rest:!!g,chained:g?f===1&&i[0]==="":!1}),g?"(.*?)":h?"([^/]*)?":"([^/]+?)"}return le(c)}).join("")}).join("")}/?$`),params:n}}function bt(e){return!/^\([^)]+\)$/.test(e)}function Et(e){return e.slice(1).split("/").filter(bt)}function kt(e,n,t){const a={},r=e.slice(1),o=r.filter(s=>s!==void 0);let i=0;for(let s=0;su).join("/"),i=0),f===void 0){c.rest&&(a[c.name]="");continue}if(!c.matcher||t[c.matcher](f)){a[c.name]=f;const u=n[s+1],h=r[s+1];u&&!u.rest&&u.optional&&h&&c.chained&&(i=0),!u&&!h&&Object.keys(a).length===o.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return a}function le(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function St({nodes:e,server_loads:n,dictionary:t,matchers:a}){const r=new Set(n);return Object.entries(t).map(([s,[c,f,u]])=>{const{pattern:h,params:g}=vt(s),d={id:s,exec:_=>{const l=h.exec(_);if(l)return kt(l,g,a)},errors:[1,...u||[]].map(_=>e[_]),layouts:[0,...f||[]].map(i),leaf:o(c)};return d.errors.length=d.layouts.length=Math.max(d.errors.length,d.layouts.length),d});function o(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function i(s){return s===void 0?s:[r.has(s),e[s]]}}function De(e,n=JSON.parse){try{return n(sessionStorage[e])}catch{}}function Ie(e,n,t=JSON.stringify){const a=t(n);try{sessionStorage[e]=a}catch{}}const At="1722104965943",$e="sveltekit:snapshot",Ce="sveltekit:scroll",Ve="sveltekit:states",Rt="sveltekit:pageurl",D="sveltekit:history",M="sveltekit:navigation",J={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},K=location.origin;function Fe(e){if(e instanceof URL)return e;let n=document.baseURI;if(!n){const t=document.getElementsByTagName("base");n=t.length?t[0].href:document.URL}return new URL(e,n)}function me(){return{x:pageXOffset,y:pageYOffset}}function O(e,n){return e.getAttribute(`data-sveltekit-${n}`)}const Le={...J,"":J.hover};function qe(e){let n=e.assignedSlot??e.parentNode;return(n==null?void 0:n.nodeType)===11&&(n=n.host),n}function Ge(e,n){for(;e&&e!==n;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=qe(e)}}function ue(e,n){let t;try{t=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,r=!t||!!a||ne(t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=(t==null?void 0:t.origin)===K&&e.hasAttribute("download");return{url:t,external:r,target:a,download:o}}function W(e){let n=null,t=null,a=null,r=null,o=null,i=null,s=e;for(;s&&s!==document.documentElement;)a===null&&(a=O(s,"preload-code")),r===null&&(r=O(s,"preload-data")),n===null&&(n=O(s,"keepfocus")),t===null&&(t=O(s,"noscroll")),o===null&&(o=O(s,"reload")),i===null&&(i=O(s,"replacestate")),s=qe(s);function c(f){switch(f){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Le[a??"off"],preload_data:Le[r??"off"],keepfocus:c(n),noscroll:c(t),reload:c(o),replace_state:c(i)}}function Pe(e){const n=pe(e);let t=!0;function a(){t=!0,n.update(i=>i)}function r(i){t=!1,n.set(i)}function o(i){let s;return n.subscribe(c=>{(s===void 0||t&&c!==s)&&i(s=c)})}return{notify:a,set:r,subscribe:o}}function It(){const{set:e,subscribe:n}=pe(!1);let t;async function a(){clearTimeout(t);try{const r=await fetch(`${st}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const i=(await r.json()).version!==At;return i&&(e(!0),clearTimeout(t)),i}catch{return!1}}return{subscribe:n,check:a}}function ne(e,n){return e.origin!==K||!e.pathname.startsWith(n)}const Lt=-1,Pt=-2,Tt=-3,Ut=-4,xt=-5,Nt=-6;function Ot(e,n){if(typeof e=="number")return r(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const t=e,a=Array(t.length);function r(o,i=!1){if(o===Lt)return;if(o===Tt)return NaN;if(o===Ut)return 1/0;if(o===xt)return-1/0;if(o===Nt)return-0;if(i)throw new Error("Invalid input");if(o in a)return a[o];const s=t[o];if(!s||typeof s!="object")a[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const c=s[0],f=n==null?void 0:n[c];if(f)return a[o]=f(r(s[1]));switch(c){case"Date":a[o]=new Date(s[1]);break;case"Set":const u=new Set;a[o]=u;for(let d=1;dn!=null)}class ae{constructor(n,t){this.status=n,typeof t=="string"?this.body={message:t}:t?this.body=t:this.body={message:`Error: ${n}`}}toString(){return JSON.stringify(this.body)}}class He{constructor(n,t){this.status=n,this.location=t}}class _e extends Error{constructor(n,t,a){super(a),this.status=n,this.text=t}}const $t="x-sveltekit-invalidated",Ct="x-sveltekit-trailing-slash";function z(e){return e instanceof ae||e instanceof _e?e.status:500}function Vt(e){return e instanceof _e?e.text:"Internal Error"}const N=De(Ce)??{},H=De($e)??{},U={url:Pe({}),page:Pe({}),navigating:pe(null),updated:It()};function ye(e){N[e]=me()}function Ft(e,n){let t=e+1;for(;N[t];)delete N[t],t+=1;for(t=n+1;H[t];)delete H[t],t+=1}function C(e){return location.href=e.href,new Promise(()=>{})}function Te(){}let re,de,X,T,he,V;const Be=[],Z=[];let R=null;const Ke=[],qt=[];let j=[],y={branch:[],error:null,url:null},we=!1,Q=!1,Ue=!0,B=!1,F=!1,Ye=!1,ve=!1,be,S,L,I,ee;const G=new Set;async function en(e,n,t){var r,o;document.URL!==location.href&&(location.href=location.href),V=e,re=St(e),T=document.documentElement,he=n,de=e.nodes[0],X=e.nodes[1],de(),X(),S=(r=history.state)==null?void 0:r[D],L=(o=history.state)==null?void 0:o[M],S||(S=L=Date.now(),history.replaceState({...history.state,[D]:S,[M]:L},""));const a=N[S];a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y)),t?await Wt(he,t):Yt(location.href,{replaceState:!0}),Jt()}function Gt(){Be.length=0,ve=!1}function Je(e){Z.some(n=>n==null?void 0:n.snapshot)&&(H[e]=Z.map(n=>{var t;return(t=n==null?void 0:n.snapshot)==null?void 0:t.capture()}))}function We(e){var n;(n=H[e])==null||n.forEach((t,a)=>{var r,o;(o=(r=Z[a])==null?void 0:r.snapshot)==null||o.restore(t)})}function xe(){ye(S),Ie(Ce,N),Je(L),Ie($e,H)}async function ze(e,n,t,a){return Y({type:"goto",url:Fe(e),keepfocus:n.keepFocus,noscroll:n.noScroll,replace_state:n.replaceState,state:n.state,redirect_count:t,nav_token:a,accept:()=>{n.invalidateAll&&(ve=!0)}})}async function Mt(e){if(e.id!==(R==null?void 0:R.id)){const n={};G.add(n),R={id:e.id,token:n,promise:Ze({...e,preload:n}).then(t=>(G.delete(n),t.type==="loaded"&&t.state.error&&(R=null),t))}}return R.promise}async function fe(e){const n=re.find(t=>t.exec(Qe(e)));n&&await Promise.all([...n.layouts,n.leaf].map(t=>t==null?void 0:t[1]()))}function Xe(e,n,t){var o;y=e.state;const a=document.querySelector("style[data-sveltekit]");a&&a.remove(),I=e.props.page,be=new V.root({target:n,props:{...e.props,stores:U,components:Z},hydrate:t}),We(L);const r={from:null,to:{params:y.params,route:{id:((o=y.route)==null?void 0:o.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};j.forEach(i=>i(r)),Q=!0}function te({url:e,params:n,branch:t,status:a,error:r,route:o,form:i}){let s="never";if(P&&(e.pathname===P||e.pathname===P+"/"))s="always";else for(const d of t)(d==null?void 0:d.slash)!==void 0&&(s=d.slash);e.pathname=it(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:n,branch:t,error:r,route:o},props:{constructors:Dt(t).map(d=>d.node.component),page:I}};i!==void 0&&(c.props.form=i);let f={},u=!I,h=0;for(let d=0;d(s&&(c.route=!0),l[m])}),params:new Proxy(a,{get:(l,m)=>(s&&c.params.add(m),l[m])}),data:(o==null?void 0:o.data)??null,url:ut(t,()=>{s&&(c.url=!0)},l=>{s&&c.search_params.add(l)}),async fetch(l,m){let b;l instanceof Request?(b=l.url,m={body:l.method==="GET"||l.method==="HEAD"?void 0:await l.blob(),cache:l.cache,credentials:l.credentials,headers:l.headers,integrity:l.integrity,keepalive:l.keepalive,method:l.method,mode:l.mode,redirect:l.redirect,referrer:l.referrer,referrerPolicy:l.referrerPolicy,signal:l.signal,...m}):b=l;const A=new URL(b,t);return s&&d(A.href),A.origin===t.origin&&(b=A.href.slice(t.origin.length)),Q?yt(b,A.href,m):_t(b,m)},setHeaders:()=>{},depends:d,parent(){return s&&(c.parent=!0),n()},untrack(l){s=!1;try{return l()}finally{s=!0}}};i=await f.universal.load.call(null,_)??null}return{node:f,loader:e,server:o,universal:(h=f.universal)!=null&&h.load?{type:"data",data:i,uses:c}:null,data:i??(o==null?void 0:o.data)??null,slash:((g=f.universal)==null?void 0:g.trailingSlash)??(o==null?void 0:o.slash)}}function Ne(e,n,t,a,r,o){if(ve)return!0;if(!r)return!1;if(r.parent&&e||r.route&&n||r.url&&t)return!0;for(const i of r.search_params)if(a.has(i))return!0;for(const i of r.params)if(o[i]!==y.params[i])return!0;for(const i of r.dependencies)if(Be.some(s=>s(new URL(i))))return!0;return!1}function ke(e,n){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?n??null:null}function Ht(e,n){if(!e)return new Set(n.searchParams.keys());const t=new Set([...e.searchParams.keys(),...n.searchParams.keys()]);for(const a of t){const r=e.searchParams.getAll(a),o=n.searchParams.getAll(a);r.every(i=>o.includes(i))&&o.every(i=>r.includes(i))&&t.delete(a)}return t}function Oe({error:e,url:n,route:t,params:a}){return{type:"loaded",state:{error:e,url:n,route:t,params:a,branch:[]},props:{page:I,constructors:[]}}}async function Ze({id:e,invalidating:n,url:t,params:a,route:r,preload:o}){if((R==null?void 0:R.id)===e)return G.delete(R.token),R.promise;const{errors:i,layouts:s,leaf:c}=r,f=[...s,c];i.forEach(p=>p==null?void 0:p().catch(()=>{})),f.forEach(p=>p==null?void 0:p[1]().catch(()=>{}));let u=null;const h=y.url?e!==y.url.pathname+y.url.search:!1,g=y.route?r.id!==y.route.id:!1,d=Ht(y.url,t);let _=!1;const l=f.map((p,v)=>{var x;const E=y.branch[v],k=!!(p!=null&&p[0])&&((E==null?void 0:E.loader)!==p[1]||Ne(_,g,h,d,(x=E.server)==null?void 0:x.uses,a));return k&&(_=!0),k});if(l.some(Boolean)){try{u=await nt(t,l)}catch(p){const v=await $(p,{url:t,params:a,route:{id:e}});return G.has(o)?Oe({error:v,url:t,params:a,route:r}):oe({status:z(p),error:v,url:t,route:r})}if(u.type==="redirect")return u}const m=u==null?void 0:u.nodes;let b=!1;const A=f.map(async(p,v)=>{var se;if(!p)return;const E=y.branch[v],k=m==null?void 0:m[v];if((!k||k.type==="skip")&&p[1]===(E==null?void 0:E.loader)&&!Ne(b,g,h,d,(se=E.universal)==null?void 0:se.uses,a))return E;if(b=!0,(k==null?void 0:k.type)==="error")throw k;return Ee({loader:p[1],url:t,params:a,route:r,parent:async()=>{var Re;const Ae={};for(let ie=0;ie{});const w=[];for(let p=0;pPromise.resolve({}),server_data_node:ke(o)}),c={node:await X(),loader:X,universal:null,server:null,data:null};return te({url:t,params:r,branch:[s,c],status:e,error:n,route:null})}function Se(e,n){if(!e||ne(e,P))return;let t;try{t=V.hooks.reroute({url:new URL(e)})??e.pathname}catch{return}const a=Qe(t);for(const r of re){const o=r.exec(a);if(o)return{id:e.pathname+e.search,invalidating:n,route:r,params:lt(o),url:e}}}function Qe(e){return ct(e.slice(P.length)||"/")}function et({url:e,type:n,intent:t,delta:a}){let r=!1;const o=rt(y,t,e,n);a!==void 0&&(o.navigation.delta=a);const i={...o.navigation,cancel:()=>{r=!0,o.reject(new Error("navigation cancelled"))}};return B||Ke.forEach(s=>s(i)),r?null:o}async function Y({type:e,url:n,popped:t,keepfocus:a,noscroll:r,replace_state:o,state:i={},redirect_count:s=0,nav_token:c={},accept:f=Te,block:u=Te}){const h=Se(n,!1),g=et({url:n,type:e,delta:t==null?void 0:t.delta,intent:h});if(!g){u();return}const d=S,_=L;f(),B=!0,Q&&U.navigating.set(g.navigation),ee=c;let l=h&&await Ze(h);if(!l){if(ne(n,P))return await C(n);l=await tt(n,{id:null},await $(new _e(404,"Not Found",`Not found: ${n.pathname}`),{url:n,params:{},route:{id:null}}),404)}if(n=(h==null?void 0:h.url)||n,ee!==c)return g.reject(new Error("navigation aborted")),!1;if(l.type==="redirect")if(s>=20)l=await oe({status:500,error:await $(new Error("Redirect loop"),{url:n,params:{},route:{id:null}}),url:n,route:{id:null}});else return ze(new URL(l.location,n).href,{},s+1,c),!1;else l.props.page.status>=400&&await U.updated.check()&&await C(n);if(Gt(),ye(d),Je(_),l.props.page.url.pathname!==n.pathname&&(n.pathname=l.props.page.url.pathname),i=t?t.state:i,!t){const w=o?0:1,p={[D]:S+=w,[M]:L+=w,[Ve]:i};(o?history.replaceState:history.pushState).call(history,p,"",n),o||Ft(S,L)}if(R=null,l.props.page.state=i,Q){y=l.state,l.props.page&&(l.props.page.url=n);const w=(await Promise.all(qt.map(p=>p(g.navigation)))).filter(p=>typeof p=="function");if(w.length>0){let p=function(){j=j.filter(v=>!w.includes(v))};w.push(p),j.push(...w)}be.$set(l.props),Ye=!0}else Xe(l,he,!1);const{activeElement:m}=document;await ot();const b=t?t.scroll:r?me():null;if(Ue){const w=n.hash&&document.getElementById(decodeURIComponent(n.hash.slice(1)));b?scrollTo(b.x,b.y):w?w.scrollIntoView():scrollTo(0,0)}const A=document.activeElement!==m&&document.activeElement!==document.body;!a&&!A&&zt(),Ue=!0,l.props.page&&(I=l.props.page),B=!1,e==="popstate"&&We(L),g.fulfil(void 0),j.forEach(w=>w(g.navigation)),U.navigating.set(null)}async function tt(e,n,t,a){return e.origin===K&&e.pathname===location.pathname&&!we?await oe({status:a,error:t,url:e,route:n}):await C(e)}function Kt(){let e;T.addEventListener("mousemove",o=>{const i=o.target;clearTimeout(e),e=setTimeout(()=>{a(i,2)},20)});function n(o){a(o.composedPath()[0],1)}T.addEventListener("mousedown",n),T.addEventListener("touchstart",n,{passive:!0});const t=new IntersectionObserver(o=>{for(const i of o)i.isIntersecting&&(fe(i.target.href),t.unobserve(i.target))},{threshold:0});function a(o,i){const s=Ge(o,T);if(!s)return;const{url:c,external:f,download:u}=ue(s,P);if(f||u)return;const h=W(s);if(!h.reload)if(i<=h.preload_data){const g=Se(c,!1);g&&Mt(g)}else i<=h.preload_code&&fe(c.pathname)}function r(){t.disconnect();for(const o of T.querySelectorAll("a")){const{url:i,external:s,download:c}=ue(o,P);if(s||c)continue;const f=W(o);f.reload||(f.preload_code===J.viewport&&t.observe(o),f.preload_code===J.eager&&fe(i.pathname))}}j.push(r),r()}function $(e,n){if(e instanceof ae)return e.body;const t=z(e),a=Vt(e);return V.hooks.handleError({error:e,event:n,status:t,message:a})??{message:a}}function Yt(e,n={}){return e=Fe(e),e.origin!==K?Promise.reject(new Error("goto: invalid URL")):ze(e,n,0)}function Jt(){var n;history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let a=!1;if(xe(),!B){const r=rt(y,void 0,null,"leave"),o={...r.navigation,cancel:()=>{a=!0,r.reject(new Error("navigation cancelled"))}};Ke.forEach(i=>i(o))}a?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&xe()}),(n=navigator.connection)!=null&&n.saveData||Kt(),T.addEventListener("click",async t=>{var g;if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const a=Ge(t.composedPath()[0],T);if(!a)return;const{url:r,external:o,target:i,download:s}=ue(a,P);if(!r)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const c=W(a);if(!(a instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||s)return;if(o||c.reload){et({url:r,type:"link"})?B=!0:t.preventDefault();return}const[u,h]=r.href.split("#");if(h!==void 0&&u===ce(location)){const[,d]=y.url.href.split("#");if(d===h){t.preventDefault(),h===""||h==="top"&&a.ownerDocument.getElementById("top")===null?window.scrollTo({top:0}):(g=a.ownerDocument.getElementById(h))==null||g.scrollIntoView();return}if(F=!0,ye(S),e(r),!c.replace_state)return;F=!1}t.preventDefault(),await new Promise(d=>{requestAnimationFrame(()=>{setTimeout(d,0)}),setTimeout(d,100)}),Y({type:"link",url:r,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??r.href===location.href})}),T.addEventListener("submit",t=>{if(t.defaultPrevented)return;const a=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if(((r==null?void 0:r.formMethod)||a.method)!=="get")return;const i=new URL((r==null?void 0:r.hasAttribute("formaction"))&&(r==null?void 0:r.formAction)||a.action);if(ne(i,P))return;const s=t.target,c=W(s);if(c.reload)return;t.preventDefault(),t.stopPropagation();const f=new FormData(s),u=r==null?void 0:r.getAttribute("name");u&&f.append(u,(r==null?void 0:r.getAttribute("value"))??""),i.search=new URLSearchParams(f).toString(),Y({type:"form",url:i,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??i.href===location.href})}),addEventListener("popstate",async t=>{var a;if((a=t.state)!=null&&a[D]){const r=t.state[D];if(ee={},r===S)return;const o=N[r],i=t.state[Ve]??{},s=new URL(t.state[Rt]??location.href),c=t.state[M],f=ce(location)===ce(y.url);if(c===L&&(Ye||f)){e(s),N[S]=me(),o&&scrollTo(o.x,o.y),i!==I.state&&(I={...I,state:i},be.$set({page:I})),S=r;return}const h=r-S;await Y({type:"popstate",url:s,popped:{state:i,scroll:o,delta:h},accept:()=>{S=r,L=c},block:()=>{history.go(-h)},nav_token:ee})}else if(!F){const r=new URL(location.href);e(r)}}),addEventListener("hashchange",()=>{F&&(F=!1,history.replaceState({...history.state,[D]:++S,[M]:L},"",location.href))});for(const t of document.querySelectorAll("link"))t.rel==="icon"&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&U.navigating.set(null)});function e(t){y.url=t,U.page.set({...I,url:t}),U.page.notify()}}async function Wt(e,{status:n=200,error:t,node_ids:a,params:r,route:o,data:i,form:s}){we=!0;const c=new URL(location.href);({params:r={},route:o={id:null}}=Se(c,!1)||{});let f;try{const u=a.map(async(d,_)=>{const l=i[_];return l!=null&&l.uses&&(l.uses=at(l.uses)),Ee({loader:V.nodes[d],url:c,params:r,route:o,parent:async()=>{const m={};for(let b=0;b<_;b+=1)Object.assign(m,(await u[b]).data);return m},server_data_node:ke(l)})}),h=await Promise.all(u),g=re.find(({id:d})=>d===o.id);if(g){const d=g.layouts;for(let _=0;_o?"1":"0").join(""));const a=await je(t.href);if(!a.ok){let o;throw(r=a.headers.get("content-type"))!=null&&r.includes("application/json")?o=await a.json():a.status===404?o="Not Found":a.status===500&&(o="Internal Error"),new ae(a.status,o)}return new Promise(async o=>{var h;const i=new Map,s=a.body.getReader(),c=new TextDecoder;function f(g){return Ot(g,{Promise:d=>new Promise((_,l)=>{i.set(d,{fulfil:_,reject:l})})})}let u="";for(;;){const{done:g,value:d}=await s.read();if(g&&!u)break;for(u+=!d&&u?` `:c.decode(d,{stream:!0});;){const _=u.indexOf(` `);if(_===-1)break;const l=JSON.parse(u.slice(0,_));if(u=u.slice(_+1),l.type==="redirect")return o(l);if(l.type==="data")(h=l.nodes)==null||h.forEach(m=>{(m==null?void 0:m.type)==="data"&&(m.uses=at(m.uses),m.data=f(m.data))}),o(l);else if(l.type==="chunk"){const{id:m,data:b,error:A}=l,w=i.get(m);i.delete(m),A?w.reject(f(A)):w.fulfil(f(b))}}}})}function at(e){return{dependencies:new Set((e==null?void 0:e.dependencies)??[]),params:new Set((e==null?void 0:e.params)??[]),parent:!!(e!=null&&e.parent),route:!!(e!=null&&e.route),url:!!(e!=null&&e.url),search_params:new Set((e==null?void 0:e.search_params)??[])}}function zt(){const e=document.querySelector("[autofocus]");if(e)e.focus();else{const n=document.body,t=n.getAttribute("tabindex");n.tabIndex=-1,n.focus({preventScroll:!0,focusVisible:!1}),t!==null?n.setAttribute("tabindex",t):n.removeAttribute("tabindex");const a=getSelection();if(a&&a.type!=="None"){const r=[];for(let o=0;o{if(a.rangeCount===r.length){for(let o=0;o{r=u,o=h});return i.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:((c=e.route)==null?void 0:c.id)??null},url:e.url},to:t&&{params:(n==null?void 0:n.params)??null,route:{id:((f=n==null?void 0:n.route)==null?void 0:f.id)??null},url:t},willUnload:!n,type:a,complete:i},fulfil:r,reject:o}}export{en as a,Yt as g,U as s}; diff --git a/_app/immutable/chunks/paths.DHGntW90.js b/_app/immutable/chunks/paths.DHGntW90.js deleted file mode 100644 index 41615a7..0000000 --- a/_app/immutable/chunks/paths.DHGntW90.js +++ /dev/null @@ -1 +0,0 @@ -var s;const e=((s=globalThis.__sveltekit_1iwa4fm)==null?void 0:s.base)??"/wjfe-dataview";var a;const t=((a=globalThis.__sveltekit_1iwa4fm)==null?void 0:a.assets)??e;export{t as a,e as b}; diff --git a/_app/immutable/chunks/paths.Du6MGWI8.js b/_app/immutable/chunks/paths.Du6MGWI8.js new file mode 100644 index 0000000..fb83037 --- /dev/null +++ b/_app/immutable/chunks/paths.Du6MGWI8.js @@ -0,0 +1 @@ +var s;const e=((s=globalThis.__sveltekit_12cr1u)==null?void 0:s.base)??"/wjfe-dataview";var a;const t=((a=globalThis.__sveltekit_12cr1u)==null?void 0:a.assets)??e;export{t as a,e as b}; diff --git a/_app/immutable/chunks/stores.eZgNM1yc.js b/_app/immutable/chunks/stores.BttJYbw1.js similarity index 72% rename from _app/immutable/chunks/stores.eZgNM1yc.js rename to _app/immutable/chunks/stores.BttJYbw1.js index 8741a2b..72a58ad 100644 --- a/_app/immutable/chunks/stores.eZgNM1yc.js +++ b/_app/immutable/chunks/stores.BttJYbw1.js @@ -1 +1 @@ -import{s as e}from"./entry.CqJLIjjn.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p}; +import{s as e}from"./entry.Be0Gp7OG.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p}; diff --git a/_app/immutable/entry/app.tSjfSvRo.js b/_app/immutable/entry/app.lF2dOKhA.js similarity index 91% rename from _app/immutable/entry/app.tSjfSvRo.js rename to _app/immutable/entry/app.lF2dOKhA.js index 6526fc6..bacae8d 100644 --- a/_app/immutable/entry/app.tSjfSvRo.js +++ b/_app/immutable/entry/app.lF2dOKhA.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.B9BOUbM2.js","../chunks/disclose-version.nVD1GsKE.js","../chunks/runtime.DkqSkKrO.js","../chunks/index.C6iX3467.js","../chunks/paths.DHGntW90.js","../chunks/props.BKMiv4-i.js","../assets/0.CjPPfRgz.css","../nodes/1.Cupg7CIU.js","../chunks/store.DvkKOton.js","../chunks/stores.eZgNM1yc.js","../chunks/entry.CqJLIjjn.js","../chunks/index.DRt9ZR3B.js","../nodes/2.D8s762SF.js","../chunks/themeOptions.svelte.L3gI9O9D.js","../chunks/this.CejIyEeZ.js","../assets/themeOptions.CTe8USOf.css","../assets/2.D-Dwjtkh.css","../nodes/3.BCj8Na_W.js","../assets/3.CicfAJD_.css"])))=>i.map(i=>d[i]); -var I=e=>{throw TypeError(e)};var V=(e,t,n)=>t.has(e)||I("Cannot "+n);var c=(e,t,n)=>(V(e,t,"read from private field"),n?n.call(e):t.get(e)),P=(e,t,n)=>t.has(e)?I("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),L=(e,t,n,o)=>(V(e,t,"write to private field"),o?o.call(e,n):t.set(e,n),n);import{h as J,j as Q,k as X,g as E,B as R,O as Y,y as Z,K as M,c as O,a as K,b as N,p as $,u as tt,f as et,P as rt,z as A,t as nt}from"../chunks/runtime.DkqSkKrO.js";import{h as q,d as st,j as ot,q as at,u as it,v as ct,f as k,w as C,a as b,s as U,t as W,c as lt,p as ut,b as ft,r as dt}from"../chunks/disclose-version.nVD1GsKE.js";import{i as S,b as T}from"../chunks/this.CejIyEeZ.js";import{p as j,a as mt}from"../chunks/props.BKMiv4-i.js";function ht(e){throw new Error("lifecycle_outside_component")}function B(e,t,n){q&&st();var o=e,a,r;J(()=>{a!==(a=t())&&(r&&(X(r),r=null),a&&(r=Q(()=>n(o,a))))}),q&&(o=ot)}function _t(e){return class extends vt{constructor(t){super({component:e,...t})}}}var _,f;class vt{constructor(t){P(this,_);P(this,f);var n=new Map,o=(r,s)=>{var l=M(s);return n.set(r,l),l};const a=new Proxy({...t.props||{},$$events:{}},{get(r,s){return E(n.get(s)??o(s,Reflect.get(r,s)))},has(r,s){return E(n.get(s)??o(s,Reflect.get(r,s))),Reflect.has(r,s)},set(r,s,l){return R(n.get(s)??o(s,l),l),Reflect.set(r,s,l)}});L(this,f,(t.hydrate?at:it)(t.component,{target:t.target,props:a,context:t.context,intro:t.intro??!1,recover:t.recover})),Y(),L(this,_,a.$$events);for(const r of Object.keys(c(this,f)))r==="$set"||r==="$destroy"||r==="$on"||Z(this,r,{get(){return c(this,f)[r]},set(s){c(this,f)[r]=s},enumerable:!0});c(this,f).$set=r=>{Object.assign(a,r)},c(this,f).$destroy=()=>{ct(c(this,f))}}$set(t){c(this,f).$set(t)}$on(t,n){c(this,_)[t]=c(this,_)[t]||[];const o=(...a)=>n.call(this,...a);return c(this,_)[t].push(o),()=>{c(this,_)[t]=c(this,_)[t].filter(a=>a!==o)}}$destroy(){c(this,f).$destroy()}}_=new WeakMap,f=new WeakMap;function gt(e){O===null&&ht(),O.l!==null?yt(O).m.push(e):K(()=>{const t=N(e);if(typeof t=="function")return t})}function yt(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}const bt="modulepreload",Et=function(e,t){return new URL(e,t).href},z={},p=function(t,n,o){let a=Promise.resolve();if(n&&n.length>0){const r=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),l=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));a=Promise.all(n.map(u=>{if(u=Et(u,o),u in z)return;z[u]=!0;const v=u.endsWith(".css"),x=v?'[rel="stylesheet"]':"";if(!!o)for(let d=r.length-1;d>=0;d--){const h=r[d];if(h.href===u&&(!v||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${x}`))return;const i=document.createElement("link");if(i.rel=v?"stylesheet":bt,v||(i.as="script",i.crossOrigin=""),i.href=u,l&&i.setAttribute("nonce",l),document.head.appendChild(i),v)return new Promise((d,h)=>{i.addEventListener("load",d),i.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${u}`)))})}))}return a.then(()=>t()).catch(r=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=r,window.dispatchEvent(s),!s.defaultPrevented)throw r})},Ct={};var wt=W('
'),kt=W(" ",1);function pt(e,t){$(t,!0);let n=j(t,"components",15,()=>[]),o=j(t,"data_0",3,null),a=j(t,"data_1",3,null);tt(()=>t.stores.page.set(t.page)),K(()=>{t.stores,t.page,t.constructors,n(),t.form,o(),a(),t.stores.page.notify()});let r=A(!1),s=A(!1),l=A(null);gt(()=>{const g=t.stores.page.subscribe(()=>{E(r)&&(R(s,!0),rt().then(()=>{R(l,mt(document.title||"untitled page"))}))});return R(r,!0),g});var u=kt(),v=k(u);S(v,()=>t.constructors[1],g=>{var i=C(),d=k(i);B(d,()=>t.constructors[0],(h,y)=>{T(y(h,{get data(){return o()},children:(m,Rt)=>{var D=C(),F=k(D);B(F,()=>t.constructors[1],(G,H)=>{T(H(G,{get data(){return a()},get form(){return t.form}}),w=>n()[1]=w,()=>{var w;return(w=n())==null?void 0:w[1]})}),b(m,D)},$$slots:{default:!0}}),m=>n()[0]=m,()=>{var m;return(m=n())==null?void 0:m[0]})}),b(g,i)},g=>{var i=C(),d=k(i);B(d,()=>t.constructors[0],(h,y)=>{T(y(h,{get data(){return o()},get form(){return t.form}}),m=>n()[0]=m,()=>{var m;return(m=n())==null?void 0:m[0]})}),b(g,i)});var x=U(U(v,!0));S(x,()=>E(r),g=>{var i=wt(),d=lt(i);S(d,()=>E(s),h=>{var y=ut();nt(()=>ft(y,E(l))),b(h,y)}),dt(i),b(g,i)}),b(e,u),et()}const St=_t(pt),Tt=[()=>p(()=>import("../nodes/0.B9BOUbM2.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url),()=>p(()=>import("../nodes/1.Cupg7CIU.js"),__vite__mapDeps([7,1,2,8,9,10,11,4]),import.meta.url),()=>p(()=>import("../nodes/2.D8s762SF.js"),__vite__mapDeps([12,13,2,3,1,5,14,8,11,15,10,4,9,16]),import.meta.url),()=>p(()=>import("../nodes/3.BCj8Na_W.js"),__vite__mapDeps([17,1,2,14,3,13,5,8,11,15,18]),import.meta.url)],jt=[],Bt={"/":[2],"/sales":[3]},Dt={handleError:({error:e})=>{console.error(e)},reroute:()=>{}};export{Bt as dictionary,Dt as hooks,Ct as matchers,Tt as nodes,St as root,jt as server_loads}; +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.izst8h-8.js","../chunks/disclose-version.nVD1GsKE.js","../chunks/runtime.DkqSkKrO.js","../chunks/index.C6iX3467.js","../chunks/paths.Du6MGWI8.js","../chunks/props.BKMiv4-i.js","../assets/0.CjPPfRgz.css","../nodes/1.CqAKUBXF.js","../chunks/store.DvkKOton.js","../chunks/stores.BttJYbw1.js","../chunks/entry.Be0Gp7OG.js","../chunks/index.DRt9ZR3B.js","../nodes/2.y8wHwHaJ.js","../chunks/themeOptions.svelte.L3gI9O9D.js","../chunks/this.CejIyEeZ.js","../assets/themeOptions.CTe8USOf.css","../assets/2.D-Dwjtkh.css","../nodes/3.BCj8Na_W.js","../assets/3.CicfAJD_.css"])))=>i.map(i=>d[i]); +var I=e=>{throw TypeError(e)};var V=(e,t,n)=>t.has(e)||I("Cannot "+n);var c=(e,t,n)=>(V(e,t,"read from private field"),n?n.call(e):t.get(e)),P=(e,t,n)=>t.has(e)?I("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),L=(e,t,n,o)=>(V(e,t,"write to private field"),o?o.call(e,n):t.set(e,n),n);import{h as J,j as Q,k as X,g as E,B as R,O as Y,y as Z,K as M,c as O,a as K,b as N,p as $,u as tt,f as et,P as rt,z as A,t as nt}from"../chunks/runtime.DkqSkKrO.js";import{h as q,d as st,j as ot,q as at,u as it,v as ct,f as k,w as C,a as b,s as U,t as W,c as lt,p as ut,b as ft,r as dt}from"../chunks/disclose-version.nVD1GsKE.js";import{i as S,b as T}from"../chunks/this.CejIyEeZ.js";import{p as j,a as mt}from"../chunks/props.BKMiv4-i.js";function ht(e){throw new Error("lifecycle_outside_component")}function B(e,t,n){q&&st();var o=e,a,r;J(()=>{a!==(a=t())&&(r&&(X(r),r=null),a&&(r=Q(()=>n(o,a))))}),q&&(o=ot)}function _t(e){return class extends vt{constructor(t){super({component:e,...t})}}}var _,f;class vt{constructor(t){P(this,_);P(this,f);var n=new Map,o=(r,s)=>{var l=M(s);return n.set(r,l),l};const a=new Proxy({...t.props||{},$$events:{}},{get(r,s){return E(n.get(s)??o(s,Reflect.get(r,s)))},has(r,s){return E(n.get(s)??o(s,Reflect.get(r,s))),Reflect.has(r,s)},set(r,s,l){return R(n.get(s)??o(s,l),l),Reflect.set(r,s,l)}});L(this,f,(t.hydrate?at:it)(t.component,{target:t.target,props:a,context:t.context,intro:t.intro??!1,recover:t.recover})),Y(),L(this,_,a.$$events);for(const r of Object.keys(c(this,f)))r==="$set"||r==="$destroy"||r==="$on"||Z(this,r,{get(){return c(this,f)[r]},set(s){c(this,f)[r]=s},enumerable:!0});c(this,f).$set=r=>{Object.assign(a,r)},c(this,f).$destroy=()=>{ct(c(this,f))}}$set(t){c(this,f).$set(t)}$on(t,n){c(this,_)[t]=c(this,_)[t]||[];const o=(...a)=>n.call(this,...a);return c(this,_)[t].push(o),()=>{c(this,_)[t]=c(this,_)[t].filter(a=>a!==o)}}$destroy(){c(this,f).$destroy()}}_=new WeakMap,f=new WeakMap;function gt(e){O===null&&ht(),O.l!==null?yt(O).m.push(e):K(()=>{const t=N(e);if(typeof t=="function")return t})}function yt(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}const bt="modulepreload",Et=function(e,t){return new URL(e,t).href},z={},p=function(t,n,o){let a=Promise.resolve();if(n&&n.length>0){const r=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),l=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));a=Promise.all(n.map(u=>{if(u=Et(u,o),u in z)return;z[u]=!0;const v=u.endsWith(".css"),x=v?'[rel="stylesheet"]':"";if(!!o)for(let d=r.length-1;d>=0;d--){const h=r[d];if(h.href===u&&(!v||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${x}`))return;const i=document.createElement("link");if(i.rel=v?"stylesheet":bt,v||(i.as="script",i.crossOrigin=""),i.href=u,l&&i.setAttribute("nonce",l),document.head.appendChild(i),v)return new Promise((d,h)=>{i.addEventListener("load",d),i.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${u}`)))})}))}return a.then(()=>t()).catch(r=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=r,window.dispatchEvent(s),!s.defaultPrevented)throw r})},Ct={};var wt=W('
'),kt=W(" ",1);function pt(e,t){$(t,!0);let n=j(t,"components",15,()=>[]),o=j(t,"data_0",3,null),a=j(t,"data_1",3,null);tt(()=>t.stores.page.set(t.page)),K(()=>{t.stores,t.page,t.constructors,n(),t.form,o(),a(),t.stores.page.notify()});let r=A(!1),s=A(!1),l=A(null);gt(()=>{const g=t.stores.page.subscribe(()=>{E(r)&&(R(s,!0),rt().then(()=>{R(l,mt(document.title||"untitled page"))}))});return R(r,!0),g});var u=kt(),v=k(u);S(v,()=>t.constructors[1],g=>{var i=C(),d=k(i);B(d,()=>t.constructors[0],(h,y)=>{T(y(h,{get data(){return o()},children:(m,Rt)=>{var D=C(),F=k(D);B(F,()=>t.constructors[1],(G,H)=>{T(H(G,{get data(){return a()},get form(){return t.form}}),w=>n()[1]=w,()=>{var w;return(w=n())==null?void 0:w[1]})}),b(m,D)},$$slots:{default:!0}}),m=>n()[0]=m,()=>{var m;return(m=n())==null?void 0:m[0]})}),b(g,i)},g=>{var i=C(),d=k(i);B(d,()=>t.constructors[0],(h,y)=>{T(y(h,{get data(){return o()},get form(){return t.form}}),m=>n()[0]=m,()=>{var m;return(m=n())==null?void 0:m[0]})}),b(g,i)});var x=U(U(v,!0));S(x,()=>E(r),g=>{var i=wt(),d=lt(i);S(d,()=>E(s),h=>{var y=ut();nt(()=>ft(y,E(l))),b(h,y)}),dt(i),b(g,i)}),b(e,u),et()}const St=_t(pt),Tt=[()=>p(()=>import("../nodes/0.izst8h-8.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url),()=>p(()=>import("../nodes/1.CqAKUBXF.js"),__vite__mapDeps([7,1,2,8,9,10,11,4]),import.meta.url),()=>p(()=>import("../nodes/2.y8wHwHaJ.js"),__vite__mapDeps([12,13,2,3,1,5,14,8,11,15,10,4,9,16]),import.meta.url),()=>p(()=>import("../nodes/3.BCj8Na_W.js"),__vite__mapDeps([17,1,2,14,3,13,5,8,11,15,18]),import.meta.url)],jt=[],Bt={"/":[2],"/sales":[3]},Dt={handleError:({error:e})=>{console.error(e)},reroute:()=>{}};export{Bt as dictionary,Dt as hooks,Ct as matchers,Tt as nodes,St as root,jt as server_loads}; diff --git a/_app/immutable/entry/start.CFwza6ya.js b/_app/immutable/entry/start.CFwza6ya.js deleted file mode 100644 index 2835d92..0000000 --- a/_app/immutable/entry/start.CFwza6ya.js +++ /dev/null @@ -1 +0,0 @@ -import{a as t}from"../chunks/entry.CqJLIjjn.js";export{t as start}; diff --git a/_app/immutable/entry/start.CcHGPPGf.js b/_app/immutable/entry/start.CcHGPPGf.js new file mode 100644 index 0000000..6e0fdf1 --- /dev/null +++ b/_app/immutable/entry/start.CcHGPPGf.js @@ -0,0 +1 @@ +import{a as t}from"../chunks/entry.Be0Gp7OG.js";export{t as start}; diff --git a/_app/immutable/nodes/0.B9BOUbM2.js b/_app/immutable/nodes/0.izst8h-8.js similarity index 98% rename from _app/immutable/nodes/0.B9BOUbM2.js rename to _app/immutable/nodes/0.izst8h-8.js index cd2bf9a..35d2107 100644 --- a/_app/immutable/nodes/0.B9BOUbM2.js +++ b/_app/immutable/nodes/0.izst8h-8.js @@ -1 +1 @@ -import{h as O,d as z,U as C,j as J,n as X,c as s,a as S,t as A,r as i,s as t}from"../chunks/disclose-version.nVD1GsKE.js";import{h as Z,s as G,k as K,j as Q,p as U,z as Y,u as W,t as D,f as V,B as I,g as j,I as F}from"../chunks/runtime.DkqSkKrO.js";import{s as q,c as H,a as p,t as B,f as P,b as $}from"../chunks/index.C6iX3467.js";import{b as R}from"../chunks/paths.DHGntW90.js";import{p as L,a as k}from"../chunks/props.BKMiv4-i.js";function ee(h,l,r){O&&z();var v=h,f=C,o;Z(()=>{G(f,f=l())&&(o&&K(o),o=Q(()=>r(v)))}),O&&(v=J)}var ae=(h,l)=>l(),te=A(""),se=A('');function ie(h,l){U(l,!0);let r=L(l,"theme",7,"system"),v=L(l,"disabled",3,!1),f=L(l,"fallbackTheme",3,"light");const o=["system","light","dark"];let c,u=o.findIndex(e=>e===r()),m=Y(k(r()==="system"?f():r()));W(()=>{let e;r()==="system"?(e=w(),I(m,k(e===null?f():e)),c||(c=y(({matches:a})=>{I(m,k(a?"dark":"light"))}))):(I(m,k(r())),c==null||c(),c=void 0)}),W(()=>{var e,a,d;j(m)==="dark"?(e=globalThis.document)==null||e.documentElement.setAttribute("data-bs-theme","dark"):(a=globalThis.document)==null||a.documentElement.removeAttribute("data-bs-theme"),(d=l.onthemeChanged)==null||d.call(l,j(m))});const g=F(()=>({system:"display",dark:"moon-stars-fill",light:"sun-fill"})[r()]);function w(){const e=globalThis==null?void 0:globalThis.window;return e?e.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":null}function b(){r(o[u=(u+1)%o.length])}function y(e){var d;const a=(d=globalThis==null?void 0:globalThis.window)==null?void 0:d.matchMedia("(prefers-color-scheme: dark)");return a==null||a.addEventListener("change",e),()=>{a==null||a.removeEventListener("change",e)}}var n=se();D(()=>q(n,`${H("btn",l.class)??""} svelte-eigntt`)),n.__click=[ae,b];var _=s(n),x=s(_);ee(x,r,e=>{var a=te();D(()=>q(a,`bi bi-${j(g)??""} svelte-eigntt`)),B(1,a,()=>P,()=>({duration:600,y:20})),B(2,a,()=>P,()=>({duration:600,y:-20})),S(e,a)}),i(_),i(n),D(()=>{p(n,"title",l.title),n.disabled=v(),p(n,"aria-disabled",v())}),S(h,n),V()}X(["click"]);var le=A('
Made with:
WjDataView only works with Svelte v5 - EXPERIMENTAL
');function de(h,l){U(l,!0);var r=le(),v=s(r),f=s(v),o=t(t(f,!0)),c=s(o),u=s(c),m=s(u);p(m,"href",R),i(u);var g=t(t(u,!0)),w=s(g);p(w,"href",`${R??""}/sales`),i(g),i(c),i(o);var b=t(t(o,!0));s(b),i(b);var y=t(t(b,!0));ie(y,{}),i(v);var n=t(t(v,!0)),_=s(n),x=s(_);$(x,()=>l.children),i(_),i(n);var e=t(t(n,!0)),a=s(e),d=s(a),T=s(d),E=t(s(T));s(E),i(E);var M=t(t(E,!0));s(M),i(M),i(T);var N=t(t(T,!0));t(s(N)),i(N),i(d),i(a),i(e),i(r),S(h,r),V()}export{de as component}; +import{h as O,d as z,U as C,j as J,n as X,c as s,a as S,t as A,r as i,s as t}from"../chunks/disclose-version.nVD1GsKE.js";import{h as Z,s as G,k as K,j as Q,p as U,z as Y,u as W,t as D,f as V,B as I,g as j,I as F}from"../chunks/runtime.DkqSkKrO.js";import{s as q,c as H,a as p,t as B,f as P,b as $}from"../chunks/index.C6iX3467.js";import{b as R}from"../chunks/paths.Du6MGWI8.js";import{p as L,a as k}from"../chunks/props.BKMiv4-i.js";function ee(h,l,r){O&&z();var v=h,f=C,o;Z(()=>{G(f,f=l())&&(o&&K(o),o=Q(()=>r(v)))}),O&&(v=J)}var ae=(h,l)=>l(),te=A(""),se=A('');function ie(h,l){U(l,!0);let r=L(l,"theme",7,"system"),v=L(l,"disabled",3,!1),f=L(l,"fallbackTheme",3,"light");const o=["system","light","dark"];let c,u=o.findIndex(e=>e===r()),m=Y(k(r()==="system"?f():r()));W(()=>{let e;r()==="system"?(e=w(),I(m,k(e===null?f():e)),c||(c=y(({matches:a})=>{I(m,k(a?"dark":"light"))}))):(I(m,k(r())),c==null||c(),c=void 0)}),W(()=>{var e,a,d;j(m)==="dark"?(e=globalThis.document)==null||e.documentElement.setAttribute("data-bs-theme","dark"):(a=globalThis.document)==null||a.documentElement.removeAttribute("data-bs-theme"),(d=l.onthemeChanged)==null||d.call(l,j(m))});const g=F(()=>({system:"display",dark:"moon-stars-fill",light:"sun-fill"})[r()]);function w(){const e=globalThis==null?void 0:globalThis.window;return e?e.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":null}function b(){r(o[u=(u+1)%o.length])}function y(e){var d;const a=(d=globalThis==null?void 0:globalThis.window)==null?void 0:d.matchMedia("(prefers-color-scheme: dark)");return a==null||a.addEventListener("change",e),()=>{a==null||a.removeEventListener("change",e)}}var n=se();D(()=>q(n,`${H("btn",l.class)??""} svelte-eigntt`)),n.__click=[ae,b];var _=s(n),x=s(_);ee(x,r,e=>{var a=te();D(()=>q(a,`bi bi-${j(g)??""} svelte-eigntt`)),B(1,a,()=>P,()=>({duration:600,y:20})),B(2,a,()=>P,()=>({duration:600,y:-20})),S(e,a)}),i(_),i(n),D(()=>{p(n,"title",l.title),n.disabled=v(),p(n,"aria-disabled",v())}),S(h,n),V()}X(["click"]);var le=A('
Made with:
WjDataView only works with Svelte v5 - EXPERIMENTAL
');function de(h,l){U(l,!0);var r=le(),v=s(r),f=s(v),o=t(t(f,!0)),c=s(o),u=s(c),m=s(u);p(m,"href",R),i(u);var g=t(t(u,!0)),w=s(g);p(w,"href",`${R??""}/sales`),i(g),i(c),i(o);var b=t(t(o,!0));s(b),i(b);var y=t(t(b,!0));ie(y,{}),i(v);var n=t(t(v,!0)),_=s(n),x=s(_);$(x,()=>l.children),i(_),i(n);var e=t(t(n,!0)),a=s(e),d=s(a),T=s(d),E=t(s(T));s(E),i(E);var M=t(t(E,!0));s(M),i(M),i(T);var N=t(t(T,!0));t(s(N)),i(N),i(d),i(a),i(e),i(r),S(h,r),V()}export{de as component}; diff --git a/_app/immutable/nodes/1.Cupg7CIU.js b/_app/immutable/nodes/1.CqAKUBXF.js similarity index 92% rename from _app/immutable/nodes/1.Cupg7CIU.js rename to _app/immutable/nodes/1.CqAKUBXF.js index 5c371cc..c820a13 100644 --- a/_app/immutable/nodes/1.Cupg7CIU.js +++ b/_app/immutable/nodes/1.CqAKUBXF.js @@ -1 +1 @@ -import{f as b,c as p,s as c,a as v,t as d,r as i,b as l}from"../chunks/disclose-version.nVD1GsKE.js";import{u as x,a as u,c as $,r as m,b as k,d as y,g as E,e as j,p as q,t as w,f as z}from"../chunks/runtime.DkqSkKrO.js";import{s as A,a as B}from"../chunks/store.DvkKOton.js";import{p as C}from"../chunks/stores.eZgNM1yc.js";function D(){const t=$,s=t.l.u;s&&(s.b.length&&x(()=>{_(t),m(s.b)}),u(()=>{const e=k(()=>s.m.map(y));return()=>{for(const a of e)typeof a=="function"&&a()}}),s.a.length&&u(()=>{_(t),m(s.a)}))}function _(t){if(t.l.s)for(const s of t.l.s)E(s);j(t.s)}var F=d("

",1);function K(t,s){q(s,!1);const e=A(),a=()=>B(C,"$page",e);D();var o=F(),r=b(o),g=p(r);i(r);var n=c(c(r,!0)),h=p(n);i(n),w(()=>{var f;l(g,a().status),l(h,(f=a().error)==null?void 0:f.message)}),v(t,o),z()}export{K as component}; +import{f as b,c as p,s as c,a as v,t as d,r as i,b as l}from"../chunks/disclose-version.nVD1GsKE.js";import{u as x,a as u,c as $,r as m,b as k,d as y,g as E,e as j,p as q,t as w,f as z}from"../chunks/runtime.DkqSkKrO.js";import{s as A,a as B}from"../chunks/store.DvkKOton.js";import{p as C}from"../chunks/stores.BttJYbw1.js";function D(){const t=$,s=t.l.u;s&&(s.b.length&&x(()=>{_(t),m(s.b)}),u(()=>{const e=k(()=>s.m.map(y));return()=>{for(const a of e)typeof a=="function"&&a()}}),s.a.length&&u(()=>{_(t),m(s.a)}))}function _(t){if(t.l.s)for(const s of t.l.s)E(s);j(t.s)}var F=d("

",1);function K(t,s){q(s,!1);const e=A(),a=()=>B(C,"$page",e);D();var o=F(),r=b(o),g=p(r);i(r);var n=c(c(r,!0)),h=p(n);i(n),w(()=>{var f;l(g,a().status),l(h,(f=a().error)==null?void 0:f.message)}),v(t,o),z()}export{K as component}; diff --git a/_app/immutable/nodes/2.D8s762SF.js b/_app/immutable/nodes/2.y8wHwHaJ.js similarity index 98% rename from _app/immutable/nodes/2.D8s762SF.js rename to _app/immutable/nodes/2.y8wHwHaJ.js index c6fe27d..2bb1ef2 100644 --- a/_app/immutable/nodes/2.D8s762SF.js +++ b/_app/immutable/nodes/2.y8wHwHaJ.js @@ -1,4 +1,4 @@ -import{l as Se,G as B,d as je,e as pe,b as Z,a as ne,t as fe,g as $e,c as be,W as De,E as qe,f as Re,N as He}from"../chunks/themeOptions.svelte.L3gI9O9D.js";import{i as Le,a as Q}from"../chunks/props.BKMiv4-i.js";import{c as a,s as e,a as y,t as C,r as t,o as se,f as We,b as ie,n as Oe,p as ze}from"../chunks/disclose-version.nVD1GsKE.js";import{l as he,p as ge,a as we,t as F,f as ke,N as g,B as re,g as I,z as ue,u as Ge,n as ae,I as me}from"../chunks/runtime.DkqSkKrO.js";import{i as Ie}from"../chunks/this.CejIyEeZ.js";import{r as H,a as oe,d as Ve,e as Ne,s as _e}from"../chunks/index.C6iX3467.js";import{s as Ee,a as Pe}from"../chunks/store.DvkKOton.js";import{g as Be}from"../chunks/entry.CqJLIjjn.js";import{b as Fe}from"../chunks/paths.DHGntW90.js";import{p as Me}from"../chunks/stores.eZgNM1yc.js";function xe(r,i,u){if(r.multiple)return Je(r,i);for(var d of r.options){var c=K(d);if(Le(c,i)){d.selected=!0;return}}(!u||i!==void 0)&&(r.selectedIndex=-1)}function Ue(r,i){he(()=>{var u=new MutationObserver(()=>{var d=r.__value;xe(r,d)});return u.observe(r,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),()=>{u.disconnect()}})}function Ae(r,i,u){var d=!0;Se(r,"change",()=>{var c;if(r.multiple)c=[].map.call(r.querySelectorAll(":checked"),K);else{var _=r.querySelector(":checked");c=_&&K(_)}u(c)}),he(()=>{var c=i();if(xe(r,c,d),d&&c===void 0){var _=r.querySelector(":checked");_!==null&&(c=K(_),u(c))}r.__value=c,d=!1}),Ue(r)}function Je(r,i){for(var u of r.options)u.selected=~i.indexOf(K(u))}function K(r){return"__value"in r?r.__value:r.value}const s=Q({striped:!0,rowTracking:!0,rowSelectionHighlight:!0,records:200,grid_lines:[],get gridLines(){return this.grid_lines.reduce((r,i)=>r|i,B.None)},showControlColumn:!0});async function Ye(r){const i=+(r.url.searchParams.get("records")??"200");console.log("Loading page data for records = %d...",i),s.records=i;const d=await(await r.fetch(`https://my.api.mockaroo.com/people.json?key=a53dac10&records=${i}`)).json();return{total:i,data:je(d)}}const kt=Object.freeze(Object.defineProperty({__proto__:null,load:Ye},Symbol.toStringTag,{value:"Module"}));var Qe=C(`

WjDataView

The data view component shows data in tabular format.

The following is the list of features. Some of these may not be evident if the browser's width is +import{l as Se,G as B,d as je,e as pe,b as Z,a as ne,t as fe,g as $e,c as be,W as De,E as qe,f as Re,N as He}from"../chunks/themeOptions.svelte.L3gI9O9D.js";import{i as Le,a as Q}from"../chunks/props.BKMiv4-i.js";import{c as a,s as e,a as y,t as C,r as t,o as se,f as We,b as ie,n as Oe,p as ze}from"../chunks/disclose-version.nVD1GsKE.js";import{l as he,p as ge,a as we,t as F,f as ke,N as g,B as re,g as I,z as ue,u as Ge,n as ae,I as me}from"../chunks/runtime.DkqSkKrO.js";import{i as Ie}from"../chunks/this.CejIyEeZ.js";import{r as H,a as oe,d as Ve,e as Ne,s as _e}from"../chunks/index.C6iX3467.js";import{s as Ee,a as Pe}from"../chunks/store.DvkKOton.js";import{g as Be}from"../chunks/entry.Be0Gp7OG.js";import{b as Fe}from"../chunks/paths.Du6MGWI8.js";import{p as Me}from"../chunks/stores.BttJYbw1.js";function xe(r,i,u){if(r.multiple)return Je(r,i);for(var d of r.options){var c=K(d);if(Le(c,i)){d.selected=!0;return}}(!u||i!==void 0)&&(r.selectedIndex=-1)}function Ue(r,i){he(()=>{var u=new MutationObserver(()=>{var d=r.__value;xe(r,d)});return u.observe(r,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),()=>{u.disconnect()}})}function Ae(r,i,u){var d=!0;Se(r,"change",()=>{var c;if(r.multiple)c=[].map.call(r.querySelectorAll(":checked"),K);else{var _=r.querySelector(":checked");c=_&&K(_)}u(c)}),he(()=>{var c=i();if(xe(r,c,d),d&&c===void 0){var _=r.querySelector(":checked");_!==null&&(c=K(_),u(c))}r.__value=c,d=!1}),Ue(r)}function Je(r,i){for(var u of r.options)u.selected=~i.indexOf(K(u))}function K(r){return"__value"in r?r.__value:r.value}const s=Q({striped:!0,rowTracking:!0,rowSelectionHighlight:!0,records:200,grid_lines:[],get gridLines(){return this.grid_lines.reduce((r,i)=>r|i,B.None)},showControlColumn:!0});async function Ye(r){const i=+(r.url.searchParams.get("records")??"200");console.log("Loading page data for records = %d...",i),s.records=i;const d=await(await r.fetch(`https://my.api.mockaroo.com/people.json?key=a53dac10&records=${i}`)).json();return{total:i,data:je(d)}}const kt=Object.freeze(Object.defineProperty({__proto__:null,load:Ye},Symbol.toStringTag,{value:"Module"}));var Qe=C(`

WjDataView

The data view component shows data in tabular format.

The following is the list of features. Some of these may not be evident if the browser's width is enough to show all data at once, such as the pinnable columns. To overcome this, either make the browser window smaller, or resize some columns until the data goes off view.

List of Features

  • Scrollable viewport
  • Striped rows
  • Row tracking on mouse hover
  • Row highlighting on selection
  • Expansible rows
  • Hideable columns
  • Pinnable columns
  • Resizable columns
  • Column alignment
  • Text wrap control
  • Grid lines for columns and rows
  • Customizable header content
  • Customizable data cell content
  • Control column (an always-pinned special column for per-row controls/actions)
  • Customizable appearance via CSS variables (theme component available)

Can it be used to edit data?

The short answer is Yes! The cell contents are rendered by providing a custom snippet named dataCell. However, note that WjDataView will not provide any form of keyboard navigation of any kind.

Having said this, use dataCell to provide cell content with controls such as diff --git a/_app/version.json b/_app/version.json index 8f05527..75e2d81 100644 --- a/_app/version.json +++ b/_app/version.json @@ -1 +1 @@ -{"version":"1722062695816"} \ No newline at end of file +{"version":"1722104965943"} \ No newline at end of file diff --git a/index.html b/index.html index cbe4b63..48f895e 100644 --- a/index.html +++ b/index.html @@ -17,12 +17,12 @@ })(); - - + + - - + + @@ -31,7 +31,7 @@