From 9c50c7f2cf83a1f740ecf97076ba93f01aa45926 Mon Sep 17 00:00:00 2001 From: Pierstoval Date: Thu, 19 Oct 2023 13:19:22 +0000 Subject: [PATCH] deploy: 2fc1422216e8873d927faf934c16a67eaea8a47a --- ...tons.72468d17.js => singletons.e1fd5d7c.js} | 2 +- .../{stores.cc420d09.js => stores.c8aedbcc.js} | 2 +- .../entry/{app.afd3c359.js => app.dc9d2be7.js} | 2 +- .../{start.62209ed4.js => start.1fa9ed47.js} | 2 +- .../nodes/{1.6c3b9c6a.js => 1.5c963048.js} | 2 +- .../nodes/{3.83df4219.js => 3.c3d9b5f7.js} | 2 +- _app/version.json | 2 +- admin/books/delete/index.html | 16 ++++++++-------- admin/books/edit/index.html | 16 ++++++++-------- admin/books/list/index.html | 16 ++++++++-------- admin/books/new/index.html | 18 +++++++++--------- index.html | 12 ++++++------ 12 files changed, 46 insertions(+), 46 deletions(-) rename _app/immutable/chunks/{singletons.72468d17.js => singletons.e1fd5d7c.js} (92%) rename _app/immutable/chunks/{stores.cc420d09.js => stores.c8aedbcc.js} (76%) rename _app/immutable/entry/{app.afd3c359.js => app.dc9d2be7.js} (93%) rename _app/immutable/entry/{start.62209ed4.js => start.1fa9ed47.js} (99%) rename _app/immutable/nodes/{1.6c3b9c6a.js => 1.5c963048.js} (92%) rename _app/immutable/nodes/{3.83df4219.js => 3.c3d9b5f7.js} (95%) diff --git a/_app/immutable/chunks/singletons.72468d17.js b/_app/immutable/chunks/singletons.e1fd5d7c.js similarity index 92% rename from _app/immutable/chunks/singletons.72468d17.js rename to _app/immutable/chunks/singletons.e1fd5d7c.js index c778456f..250f9b62 100644 --- a/_app/immutable/chunks/singletons.72468d17.js +++ b/_app/immutable/chunks/singletons.e1fd5d7c.js @@ -1 +1 @@ -import{w as u}from"./index.eec0ac44.js";var _;const v=((_=globalThis.__sveltekit_161h00o)==null?void 0:_.base)??"";var h;const k=((h=globalThis.__sveltekit_161h00o)==null?void 0:h.assets)??v,m="1697667248692",R="sveltekit:snapshot",T="sveltekit:scroll",y="sveltekit:index",f={tap:1,hover:2,viewport:3,eager:4,off:-1};function I(e){let t=e.baseURI;if(!t){const n=e.getElementsByTagName("base");t=n.length?n[0].href:e.URL}return t}function S(){return{x:pageXOffset,y:pageYOffset}}function c(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const d={...f,"":f.hover};function g(e){let t=e.assignedSlot??e.parentNode;return(t==null?void 0:t.nodeType)===11&&(t=t.host),t}function x(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=g(e)}}function O(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const o=e instanceof SVGAElement?e.target.baseVal:e.target,r=!n||!!o||E(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),l=(n==null?void 0:n.origin)===location.origin&&e.hasAttribute("download");return{url:n,external:r,target:o,download:l}}function U(e){let t=null,n=null,o=null,r=null,l=null,a=null,s=e;for(;s&&s!==document.documentElement;)o===null&&(o=c(s,"preload-code")),r===null&&(r=c(s,"preload-data")),t===null&&(t=c(s,"keepfocus")),n===null&&(n=c(s,"noscroll")),l===null&&(l=c(s,"reload")),a===null&&(a=c(s,"replacestate")),s=g(s);function i(b){switch(b){case"":case"true":return!0;case"off":case"false":return!1;default:return null}}return{preload_code:d[o??"off"],preload_data:d[r??"off"],keep_focus:i(t),noscroll:i(n),reload:i(l),replace_state:i(a)}}function p(e){const t=u(e);let n=!0;function o(){n=!0,t.update(a=>a)}function r(a){n=!1,t.set(a)}function l(a){let s;return t.subscribe(i=>{(s===void 0||n&&i!==s)&&a(s=i)})}return{notify:o,set:r,subscribe:l}}function w(){const{set:e,subscribe:t}=u(!1);let n;async function o(){clearTimeout(n);try{const r=await fetch(`${k}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const a=(await r.json()).version!==m;return a&&(e(!0),clearTimeout(n)),a}catch{return!1}}return{subscribe:t,check:o}}function E(e,t){return e.origin!==location.origin||!e.pathname.startsWith(t)}function L(e){e.client}const N={url:p({}),page:p({}),navigating:u(null),updated:w()};export{y as I,f as P,T as S,R as a,O as b,U as c,N as d,v as e,x as f,I as g,L as h,E as i,S as s}; +import{w as u}from"./index.eec0ac44.js";var _;const v=((_=globalThis.__sveltekit_1kzfhv6)==null?void 0:_.base)??"";var h;const k=((h=globalThis.__sveltekit_1kzfhv6)==null?void 0:h.assets)??v,m="1697721549561",R="sveltekit:snapshot",T="sveltekit:scroll",y="sveltekit:index",f={tap:1,hover:2,viewport:3,eager:4,off:-1};function I(e){let t=e.baseURI;if(!t){const n=e.getElementsByTagName("base");t=n.length?n[0].href:e.URL}return t}function S(){return{x:pageXOffset,y:pageYOffset}}function c(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const d={...f,"":f.hover};function g(e){let t=e.assignedSlot??e.parentNode;return(t==null?void 0:t.nodeType)===11&&(t=t.host),t}function x(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=g(e)}}function O(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const o=e instanceof SVGAElement?e.target.baseVal:e.target,r=!n||!!o||E(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),l=(n==null?void 0:n.origin)===location.origin&&e.hasAttribute("download");return{url:n,external:r,target:o,download:l}}function U(e){let t=null,n=null,o=null,r=null,l=null,a=null,s=e;for(;s&&s!==document.documentElement;)o===null&&(o=c(s,"preload-code")),r===null&&(r=c(s,"preload-data")),t===null&&(t=c(s,"keepfocus")),n===null&&(n=c(s,"noscroll")),l===null&&(l=c(s,"reload")),a===null&&(a=c(s,"replacestate")),s=g(s);function i(b){switch(b){case"":case"true":return!0;case"off":case"false":return!1;default:return null}}return{preload_code:d[o??"off"],preload_data:d[r??"off"],keep_focus:i(t),noscroll:i(n),reload:i(l),replace_state:i(a)}}function p(e){const t=u(e);let n=!0;function o(){n=!0,t.update(a=>a)}function r(a){n=!1,t.set(a)}function l(a){let s;return t.subscribe(i=>{(s===void 0||n&&i!==s)&&a(s=i)})}return{notify:o,set:r,subscribe:l}}function w(){const{set:e,subscribe:t}=u(!1);let n;async function o(){clearTimeout(n);try{const r=await fetch(`${k}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const a=(await r.json()).version!==m;return a&&(e(!0),clearTimeout(n)),a}catch{return!1}}return{subscribe:t,check:o}}function E(e,t){return e.origin!==location.origin||!e.pathname.startsWith(t)}function L(e){e.client}const N={url:p({}),page:p({}),navigating:u(null),updated:w()};export{y as I,f as P,T as S,R as a,O as b,U as c,N as d,v as e,x as f,I as g,L as h,E as i,S as s}; diff --git a/_app/immutable/chunks/stores.cc420d09.js b/_app/immutable/chunks/stores.c8aedbcc.js similarity index 76% rename from _app/immutable/chunks/stores.cc420d09.js rename to _app/immutable/chunks/stores.c8aedbcc.js index baa284e4..2663d82e 100644 --- a/_app/immutable/chunks/stores.cc420d09.js +++ b/_app/immutable/chunks/stores.c8aedbcc.js @@ -1 +1 @@ -import"./Component.febea800.js";import{d as e}from"./singletons.72468d17.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"./Component.febea800.js";import{d as e}from"./singletons.e1fd5d7c.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.afd3c359.js b/_app/immutable/entry/app.dc9d2be7.js similarity index 93% rename from _app/immutable/entry/app.afd3c359.js rename to _app/immutable/entry/app.dc9d2be7.js index fcccd339..0cccbc85 100644 --- a/_app/immutable/entry/app.afd3c359.js +++ b/_app/immutable/entry/app.dc9d2be7.js @@ -1 +1 @@ -import{c as B,S as q,i as U,f as w,s as j,a as z,e as h,b as W,d as b,g as d,h as L,j as p,k as g,l as F,o as G,m as H,n as J,p as K,q as D,r as m,u as M,v as Q,w as X,x as P,t as Y,y as N,z as v,A as E,B as S,C as $,D as y}from"../chunks/Component.febea800.js";import"../chunks/index.0fe306af.js";const Z="modulepreload",x=function(o,t){return new URL(o,t).href},A={},R=function(t,n,s){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(l=>{if(l=x(l,s),l in A)return;A[l]=!0;const e=l.endsWith(".css"),r=e?'[rel="stylesheet"]':"";if(!!s)for(let a=i.length-1;a>=0;a--){const _=i[a];if(_.href===l&&(!e||_.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${r}`))return;const f=document.createElement("link");if(f.rel=e?"stylesheet":Z,e||(f.as="script",f.crossOrigin=""),f.href=l,document.head.appendChild(f),e)return new Promise((a,_)=>{f.addEventListener("load",a),f.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${l}`)))})})).then(()=>t()).catch(l=>{const e=new Event("vite:preloadError",{cancelable:!0});if(e.payload=l,window.dispatchEvent(e),!e.defaultPrevented)throw l})},ct={};function tt(o){let t,n,s;var i=o[1][0];function l(e,r){return{props:{data:e[3],form:e[2]}}}return i&&(t=v(i,l(o)),o[12](t)),{c(){t&&E(t.$$.fragment),n=h()},l(e){t&&S(t.$$.fragment,e),n=h()},m(e,r){t&&$(t,e,r),b(e,n,r),s=!0},p(e,r){if(r&2&&i!==(i=e[1][0])){if(t){P();const c=t;d(c.$$.fragment,1,0,()=>{y(c,1)}),L()}i?(t=v(i,l(e)),e[12](t),E(t.$$.fragment),p(t.$$.fragment,1),$(t,n.parentNode,n)):t=null}else if(i){const c={};r&8&&(c.data=e[3]),r&4&&(c.form=e[2]),t.$set(c)}},i(e){s||(t&&p(t.$$.fragment,e),s=!0)},o(e){t&&d(t.$$.fragment,e),s=!1},d(e){e&&g(n),o[12](null),t&&y(t,e)}}}function et(o){let t,n,s;var i=o[1][0];function l(e,r){return{props:{data:e[3],$$slots:{default:[nt]},$$scope:{ctx:e}}}}return i&&(t=v(i,l(o)),o[11](t)),{c(){t&&E(t.$$.fragment),n=h()},l(e){t&&S(t.$$.fragment,e),n=h()},m(e,r){t&&$(t,e,r),b(e,n,r),s=!0},p(e,r){if(r&2&&i!==(i=e[1][0])){if(t){P();const c=t;d(c.$$.fragment,1,0,()=>{y(c,1)}),L()}i?(t=v(i,l(e)),e[11](t),E(t.$$.fragment),p(t.$$.fragment,1),$(t,n.parentNode,n)):t=null}else if(i){const c={};r&8&&(c.data=e[3]),r&8215&&(c.$$scope={dirty:r,ctx:e}),t.$set(c)}},i(e){s||(t&&p(t.$$.fragment,e),s=!0)},o(e){t&&d(t.$$.fragment,e),s=!1},d(e){e&&g(n),o[11](null),t&&y(t,e)}}}function nt(o){let t,n,s;var i=o[1][1];function l(e,r){return{props:{data:e[4],form:e[2]}}}return i&&(t=v(i,l(o)),o[10](t)),{c(){t&&E(t.$$.fragment),n=h()},l(e){t&&S(t.$$.fragment,e),n=h()},m(e,r){t&&$(t,e,r),b(e,n,r),s=!0},p(e,r){if(r&2&&i!==(i=e[1][1])){if(t){P();const c=t;d(c.$$.fragment,1,0,()=>{y(c,1)}),L()}i?(t=v(i,l(e)),e[10](t),E(t.$$.fragment),p(t.$$.fragment,1),$(t,n.parentNode,n)):t=null}else if(i){const c={};r&16&&(c.data=e[4]),r&4&&(c.form=e[2]),t.$set(c)}},i(e){s||(t&&p(t.$$.fragment,e),s=!0)},o(e){t&&d(t.$$.fragment,e),s=!1},d(e){e&&g(n),o[10](null),t&&y(t,e)}}}function C(o){let t,n=o[6]&&I(o);return{c(){t=H("div"),n&&n.c(),this.h()},l(s){t=J(s,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var i=K(t);n&&n.l(i),i.forEach(g),this.h()},h(){D(t,"id","svelte-announcer"),D(t,"aria-live","assertive"),D(t,"aria-atomic","true"),m(t,"position","absolute"),m(t,"left","0"),m(t,"top","0"),m(t,"clip","rect(0 0 0 0)"),m(t,"clip-path","inset(50%)"),m(t,"overflow","hidden"),m(t,"white-space","nowrap"),m(t,"width","1px"),m(t,"height","1px")},m(s,i){b(s,t,i),n&&n.m(t,null)},p(s,i){s[6]?n?n.p(s,i):(n=I(s),n.c(),n.m(t,null)):n&&(n.d(1),n=null)},d(s){s&&g(t),n&&n.d()}}}function I(o){let t;return{c(){t=M(o[7])},l(n){t=Q(n,o[7])},m(n,s){b(n,t,s)},p(n,s){s&128&&X(t,n[7])},d(n){n&&g(t)}}}function st(o){let t,n,s,i,l;const e=[et,tt],r=[];function c(a,_){return a[1][1]?0:1}t=c(o),n=r[t]=e[t](o);let f=o[5]&&C(o);return{c(){n.c(),s=z(),f&&f.c(),i=h()},l(a){n.l(a),s=W(a),f&&f.l(a),i=h()},m(a,_){r[t].m(a,_),b(a,s,_),f&&f.m(a,_),b(a,i,_),l=!0},p(a,[_]){let k=t;t=c(a),t===k?r[t].p(a,_):(P(),d(r[k],1,1,()=>{r[k]=null}),L(),n=r[t],n?n.p(a,_):(n=r[t]=e[t](a),n.c()),p(n,1),n.m(s.parentNode,s)),a[5]?f?f.p(a,_):(f=C(a),f.c(),f.m(i.parentNode,i)):f&&(f.d(1),f=null)},i(a){l||(p(n),l=!0)},o(a){d(n),l=!1},d(a){a&&(g(s),g(i)),r[t].d(a),f&&f.d(a)}}}function it(o,t,n){let{stores:s}=t,{page:i}=t,{constructors:l}=t,{components:e=[]}=t,{form:r}=t,{data_0:c=null}=t,{data_1:f=null}=t;F(s.page.notify);let a=!1,_=!1,k=null;G(()=>{const u=s.page.subscribe(()=>{a&&(n(6,_=!0),Y().then(()=>{n(7,k=document.title||"untitled page")}))});return n(5,a=!0),u});function O(u){N[u?"unshift":"push"](()=>{e[1]=u,n(0,e)})}function T(u){N[u?"unshift":"push"](()=>{e[0]=u,n(0,e)})}function V(u){N[u?"unshift":"push"](()=>{e[0]=u,n(0,e)})}return o.$$set=u=>{"stores"in u&&n(8,s=u.stores),"page"in u&&n(9,i=u.page),"constructors"in u&&n(1,l=u.constructors),"components"in u&&n(0,e=u.components),"form"in u&&n(2,r=u.form),"data_0"in u&&n(3,c=u.data_0),"data_1"in u&&n(4,f=u.data_1)},o.$$.update=()=>{o.$$.dirty&768&&s.page.set(i)},[e,l,r,c,f,a,_,k,s,i,O,T,V]}class rt extends q{constructor(t){super(),U(this,t,it,st,j,{stores:8,page:9,constructors:1,components:0,form:2,data_0:3,data_1:4})}get stores(){return this.$$.ctx[8]}set stores(t){this.$$set({stores:t}),w()}get page(){return this.$$.ctx[9]}set page(t){this.$$set({page:t}),w()}get constructors(){return this.$$.ctx[1]}set constructors(t){this.$$set({constructors:t}),w()}get components(){return this.$$.ctx[0]}set components(t){this.$$set({components:t}),w()}get form(){return this.$$.ctx[2]}set form(t){this.$$set({form:t}),w()}get data_0(){return this.$$.ctx[3]}set data_0(t){this.$$set({data_0:t}),w()}get data_1(){return this.$$.ctx[4]}set data_1(t){this.$$set({data_1:t}),w()}}B(rt,{stores:{},page:{},constructors:{},components:{},form:{},data_0:{},data_1:{}},[],[],!0);const lt=[()=>R(()=>import("../nodes/0.6c55f1f0.js"),["../nodes/0.6c55f1f0.js","../chunks/Component.febea800.js","../chunks/index.0fe306af.js"],import.meta.url),()=>R(()=>import("../nodes/1.6c3b9c6a.js"),["../nodes/1.6c3b9c6a.js","../chunks/Component.febea800.js","../chunks/index.0fe306af.js","../chunks/stores.cc420d09.js","../chunks/singletons.72468d17.js","../chunks/index.eec0ac44.js"],import.meta.url),()=>R(()=>import("../nodes/2.f2a13221.js"),["../nodes/2.f2a13221.js","../chunks/Component.febea800.js","../chunks/Dashboard.5406c1a0.js","../chunks/index.0fe306af.js","../chunks/index.eec0ac44.js","../assets/Dashboard.29ceb043.css"],import.meta.url),()=>R(()=>import("../nodes/3.83df4219.js"),["../nodes/3.83df4219.js","../chunks/Component.febea800.js","../chunks/index.0fe306af.js","../chunks/Dashboard.5406c1a0.js","../chunks/index.eec0ac44.js","../assets/Dashboard.29ceb043.css","../chunks/stores.cc420d09.js","../chunks/singletons.72468d17.js"],import.meta.url)],ft=[],ut={"/":[2],"/admin/[crud]/[operation]":[3]},_t={handleError:({error:o})=>{console.error(o)}};export{ut as dictionary,_t as hooks,ct as matchers,lt as nodes,rt as root,ft as server_loads}; +import{c as B,S as q,i as U,f as w,s as j,a as z,e as h,b as W,d as b,g as d,h as L,j as p,k as g,l as F,o as G,m as H,n as J,p as K,q as D,r as m,u as M,v as Q,w as X,x as P,t as Y,y as N,z as v,A as E,B as S,C as $,D as y}from"../chunks/Component.febea800.js";import"../chunks/index.0fe306af.js";const Z="modulepreload",x=function(o,t){return new URL(o,t).href},A={},R=function(t,n,s){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(l=>{if(l=x(l,s),l in A)return;A[l]=!0;const e=l.endsWith(".css"),r=e?'[rel="stylesheet"]':"";if(!!s)for(let a=i.length-1;a>=0;a--){const _=i[a];if(_.href===l&&(!e||_.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${r}`))return;const f=document.createElement("link");if(f.rel=e?"stylesheet":Z,e||(f.as="script",f.crossOrigin=""),f.href=l,document.head.appendChild(f),e)return new Promise((a,_)=>{f.addEventListener("load",a),f.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${l}`)))})})).then(()=>t()).catch(l=>{const e=new Event("vite:preloadError",{cancelable:!0});if(e.payload=l,window.dispatchEvent(e),!e.defaultPrevented)throw l})},ct={};function tt(o){let t,n,s;var i=o[1][0];function l(e,r){return{props:{data:e[3],form:e[2]}}}return i&&(t=v(i,l(o)),o[12](t)),{c(){t&&E(t.$$.fragment),n=h()},l(e){t&&S(t.$$.fragment,e),n=h()},m(e,r){t&&$(t,e,r),b(e,n,r),s=!0},p(e,r){if(r&2&&i!==(i=e[1][0])){if(t){P();const c=t;d(c.$$.fragment,1,0,()=>{y(c,1)}),L()}i?(t=v(i,l(e)),e[12](t),E(t.$$.fragment),p(t.$$.fragment,1),$(t,n.parentNode,n)):t=null}else if(i){const c={};r&8&&(c.data=e[3]),r&4&&(c.form=e[2]),t.$set(c)}},i(e){s||(t&&p(t.$$.fragment,e),s=!0)},o(e){t&&d(t.$$.fragment,e),s=!1},d(e){e&&g(n),o[12](null),t&&y(t,e)}}}function et(o){let t,n,s;var i=o[1][0];function l(e,r){return{props:{data:e[3],$$slots:{default:[nt]},$$scope:{ctx:e}}}}return i&&(t=v(i,l(o)),o[11](t)),{c(){t&&E(t.$$.fragment),n=h()},l(e){t&&S(t.$$.fragment,e),n=h()},m(e,r){t&&$(t,e,r),b(e,n,r),s=!0},p(e,r){if(r&2&&i!==(i=e[1][0])){if(t){P();const c=t;d(c.$$.fragment,1,0,()=>{y(c,1)}),L()}i?(t=v(i,l(e)),e[11](t),E(t.$$.fragment),p(t.$$.fragment,1),$(t,n.parentNode,n)):t=null}else if(i){const c={};r&8&&(c.data=e[3]),r&8215&&(c.$$scope={dirty:r,ctx:e}),t.$set(c)}},i(e){s||(t&&p(t.$$.fragment,e),s=!0)},o(e){t&&d(t.$$.fragment,e),s=!1},d(e){e&&g(n),o[11](null),t&&y(t,e)}}}function nt(o){let t,n,s;var i=o[1][1];function l(e,r){return{props:{data:e[4],form:e[2]}}}return i&&(t=v(i,l(o)),o[10](t)),{c(){t&&E(t.$$.fragment),n=h()},l(e){t&&S(t.$$.fragment,e),n=h()},m(e,r){t&&$(t,e,r),b(e,n,r),s=!0},p(e,r){if(r&2&&i!==(i=e[1][1])){if(t){P();const c=t;d(c.$$.fragment,1,0,()=>{y(c,1)}),L()}i?(t=v(i,l(e)),e[10](t),E(t.$$.fragment),p(t.$$.fragment,1),$(t,n.parentNode,n)):t=null}else if(i){const c={};r&16&&(c.data=e[4]),r&4&&(c.form=e[2]),t.$set(c)}},i(e){s||(t&&p(t.$$.fragment,e),s=!0)},o(e){t&&d(t.$$.fragment,e),s=!1},d(e){e&&g(n),o[10](null),t&&y(t,e)}}}function C(o){let t,n=o[6]&&I(o);return{c(){t=H("div"),n&&n.c(),this.h()},l(s){t=J(s,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var i=K(t);n&&n.l(i),i.forEach(g),this.h()},h(){D(t,"id","svelte-announcer"),D(t,"aria-live","assertive"),D(t,"aria-atomic","true"),m(t,"position","absolute"),m(t,"left","0"),m(t,"top","0"),m(t,"clip","rect(0 0 0 0)"),m(t,"clip-path","inset(50%)"),m(t,"overflow","hidden"),m(t,"white-space","nowrap"),m(t,"width","1px"),m(t,"height","1px")},m(s,i){b(s,t,i),n&&n.m(t,null)},p(s,i){s[6]?n?n.p(s,i):(n=I(s),n.c(),n.m(t,null)):n&&(n.d(1),n=null)},d(s){s&&g(t),n&&n.d()}}}function I(o){let t;return{c(){t=M(o[7])},l(n){t=Q(n,o[7])},m(n,s){b(n,t,s)},p(n,s){s&128&&X(t,n[7])},d(n){n&&g(t)}}}function st(o){let t,n,s,i,l;const e=[et,tt],r=[];function c(a,_){return a[1][1]?0:1}t=c(o),n=r[t]=e[t](o);let f=o[5]&&C(o);return{c(){n.c(),s=z(),f&&f.c(),i=h()},l(a){n.l(a),s=W(a),f&&f.l(a),i=h()},m(a,_){r[t].m(a,_),b(a,s,_),f&&f.m(a,_),b(a,i,_),l=!0},p(a,[_]){let k=t;t=c(a),t===k?r[t].p(a,_):(P(),d(r[k],1,1,()=>{r[k]=null}),L(),n=r[t],n?n.p(a,_):(n=r[t]=e[t](a),n.c()),p(n,1),n.m(s.parentNode,s)),a[5]?f?f.p(a,_):(f=C(a),f.c(),f.m(i.parentNode,i)):f&&(f.d(1),f=null)},i(a){l||(p(n),l=!0)},o(a){d(n),l=!1},d(a){a&&(g(s),g(i)),r[t].d(a),f&&f.d(a)}}}function it(o,t,n){let{stores:s}=t,{page:i}=t,{constructors:l}=t,{components:e=[]}=t,{form:r}=t,{data_0:c=null}=t,{data_1:f=null}=t;F(s.page.notify);let a=!1,_=!1,k=null;G(()=>{const u=s.page.subscribe(()=>{a&&(n(6,_=!0),Y().then(()=>{n(7,k=document.title||"untitled page")}))});return n(5,a=!0),u});function O(u){N[u?"unshift":"push"](()=>{e[1]=u,n(0,e)})}function T(u){N[u?"unshift":"push"](()=>{e[0]=u,n(0,e)})}function V(u){N[u?"unshift":"push"](()=>{e[0]=u,n(0,e)})}return o.$$set=u=>{"stores"in u&&n(8,s=u.stores),"page"in u&&n(9,i=u.page),"constructors"in u&&n(1,l=u.constructors),"components"in u&&n(0,e=u.components),"form"in u&&n(2,r=u.form),"data_0"in u&&n(3,c=u.data_0),"data_1"in u&&n(4,f=u.data_1)},o.$$.update=()=>{o.$$.dirty&768&&s.page.set(i)},[e,l,r,c,f,a,_,k,s,i,O,T,V]}class rt extends q{constructor(t){super(),U(this,t,it,st,j,{stores:8,page:9,constructors:1,components:0,form:2,data_0:3,data_1:4})}get stores(){return this.$$.ctx[8]}set stores(t){this.$$set({stores:t}),w()}get page(){return this.$$.ctx[9]}set page(t){this.$$set({page:t}),w()}get constructors(){return this.$$.ctx[1]}set constructors(t){this.$$set({constructors:t}),w()}get components(){return this.$$.ctx[0]}set components(t){this.$$set({components:t}),w()}get form(){return this.$$.ctx[2]}set form(t){this.$$set({form:t}),w()}get data_0(){return this.$$.ctx[3]}set data_0(t){this.$$set({data_0:t}),w()}get data_1(){return this.$$.ctx[4]}set data_1(t){this.$$set({data_1:t}),w()}}B(rt,{stores:{},page:{},constructors:{},components:{},form:{},data_0:{},data_1:{}},[],[],!0);const lt=[()=>R(()=>import("../nodes/0.6c55f1f0.js"),["../nodes/0.6c55f1f0.js","../chunks/Component.febea800.js","../chunks/index.0fe306af.js"],import.meta.url),()=>R(()=>import("../nodes/1.5c963048.js"),["../nodes/1.5c963048.js","../chunks/Component.febea800.js","../chunks/index.0fe306af.js","../chunks/stores.c8aedbcc.js","../chunks/singletons.e1fd5d7c.js","../chunks/index.eec0ac44.js"],import.meta.url),()=>R(()=>import("../nodes/2.f2a13221.js"),["../nodes/2.f2a13221.js","../chunks/Component.febea800.js","../chunks/Dashboard.5406c1a0.js","../chunks/index.0fe306af.js","../chunks/index.eec0ac44.js","../assets/Dashboard.29ceb043.css"],import.meta.url),()=>R(()=>import("../nodes/3.c3d9b5f7.js"),["../nodes/3.c3d9b5f7.js","../chunks/Component.febea800.js","../chunks/index.0fe306af.js","../chunks/Dashboard.5406c1a0.js","../chunks/index.eec0ac44.js","../assets/Dashboard.29ceb043.css","../chunks/stores.c8aedbcc.js","../chunks/singletons.e1fd5d7c.js"],import.meta.url)],ft=[],ut={"/":[2],"/admin/[crud]/[operation]":[3]},_t={handleError:({error:o})=>{console.error(o)}};export{ut as dictionary,_t as hooks,ct as matchers,lt as nodes,rt as root,ft as server_loads}; diff --git a/_app/immutable/entry/start.62209ed4.js b/_app/immutable/entry/start.1fa9ed47.js similarity index 99% rename from _app/immutable/entry/start.62209ed4.js rename to _app/immutable/entry/start.1fa9ed47.js index 1f96c4e7..fe57bf8c 100644 --- a/_app/immutable/entry/start.62209ed4.js +++ b/_app/immutable/entry/start.1fa9ed47.js @@ -1,3 +1,3 @@ -import{o as me,t as we}from"../chunks/Component.febea800.js";import{S as Be,a as Ge,I as M,g as De,f as Ce,b as _e,c as le,s as te,i as ye,d as F,e as J,P as Me,h as Xe}from"../chunks/singletons.72468d17.js";function Ze(t,r){return t==="/"||r==="ignore"?t:r==="never"?t.endsWith("/")?t.slice(0,-1):t:r==="always"&&!t.endsWith("/")?t+"/":t}function Qe(t){return t.split("%25").map(decodeURI).join("%25")}function et(t){for(const r in t)t[r]=decodeURIComponent(t[r]);return t}const tt=["href","pathname","search","searchParams","toString","toJSON"];function nt(t,r){const f=new URL(t);for(const s of tt)Object.defineProperty(f,s,{get(){return r(),t[s]},enumerable:!0,configurable:!0});return at(f),f}function at(t){Object.defineProperty(t,"hash",{get(){throw new Error("Cannot access event.url.hash. Consider using `$page.url.hash` inside a component instead")}})}const rt="/__data.json";function ot(t){return t.replace(/\/$/,"")+rt}function it(...t){let r=5381;for(const f of t)if(typeof f=="string"){let s=f.length;for(;s;)r=r*33^f.charCodeAt(--s)}else if(ArrayBuffer.isView(f)){const s=new Uint8Array(f.buffer,f.byteOffset,f.byteLength);let d=s.length;for(;d;)r=r*33^s[--d]}else throw new TypeError("value must be a string or TypedArray");return(r>>>0).toString(36)}const Je=window.fetch;window.fetch=(t,r)=>((t instanceof Request?t.method:(r==null?void 0:r.method)||"GET")!=="GET"&&ae.delete(Se(t)),Je(t,r));const ae=new Map;function st(t,r){const f=Se(t,r),s=document.querySelector(f);if(s!=null&&s.textContent){const{body:d,...u}=JSON.parse(s.textContent),E=s.getAttribute("data-ttl");return E&&ae.set(f,{body:d,init:u,ttl:1e3*Number(E)}),Promise.resolve(new Response(d,u))}return window.fetch(t,r)}function ct(t,r,f){if(ae.size>0){const s=Se(t,f),d=ae.get(s);if(d){if(performance.now(){const d=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(s);if(d)return r.push({name:d[1],matcher:d[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const u=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(s);if(u)return r.push({name:u[1],matcher:u[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!s)return;const E=s.split(/\[(.+?)\](?!\])/);return"/"+E.map((g,m)=>{if(m%2){if(g.startsWith("x+"))return ve(String.fromCharCode(parseInt(g.slice(2),16)));if(g.startsWith("u+"))return ve(String.fromCharCode(...g.slice(2).split("-").map(U=>parseInt(U,16))));const h=lt.exec(g);if(!h)throw new Error(`Invalid param: ${g}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,x,j,k,N]=h;return r.push({name:k,matcher:N,optional:!!x,rest:!!j,chained:j?m===1&&E[0]==="":!1}),j?"(.*?)":x?"([^/]*)?":"([^/]+?)"}return ve(g)}).join("")}).join("")}/?$`),params:r}}function ut(t){return!/^\([^)]+\)$/.test(t)}function dt(t){return t.slice(1).split("/").filter(ut)}function pt(t,r,f){const s={},d=t.slice(1),u=d.filter(l=>l!==void 0);let E=0;for(let l=0;lh).join("/"),E=0),m===void 0){g.rest&&(s[g.name]="");continue}if(!g.matcher||f[g.matcher](m)){s[g.name]=m;const h=r[l+1],x=d[l+1];h&&!h.rest&&h.optional&&x&&g.chained&&(E=0),!h&&!x&&Object.keys(s).length===u.length&&(E=0);continue}if(g.optional&&g.chained){E++;continue}return}if(!E)return s}function ve(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function ht({nodes:t,server_loads:r,dictionary:f,matchers:s}){const d=new Set(r);return Object.entries(f).map(([l,[g,m,h]])=>{const{pattern:x,params:j}=ft(l),k={id:l,exec:N=>{const U=x.exec(N);if(U)return pt(U,j,s)},errors:[1,...h||[]].map(N=>t[N]),layouts:[0,...m||[]].map(E),leaf:u(g)};return k.errors.length=k.layouts.length=Math.max(k.errors.length,k.layouts.length),k});function u(l){const g=l<0;return g&&(l=~l),[g,t[l]]}function E(l){return l===void 0?l:[d.has(l),t[l]]}}function Ke(t){try{return JSON.parse(sessionStorage[t])}catch{}}function Ve(t,r){const f=JSON.stringify(r);try{sessionStorage[t]=f}catch{}}const gt=-1,mt=-2,wt=-3,_t=-4,yt=-5,vt=-6;function bt(t,r){if(typeof t=="number")return d(t,!0);if(!Array.isArray(t)||t.length===0)throw new Error("Invalid input");const f=t,s=Array(f.length);function d(u,E=!1){if(u===gt)return;if(u===wt)return NaN;if(u===_t)return 1/0;if(u===yt)return-1/0;if(u===vt)return-0;if(E)throw new Error("Invalid input");if(u in s)return s[u];const l=f[u];if(!l||typeof l!="object")s[u]=l;else if(Array.isArray(l))if(typeof l[0]=="string"){const g=l[0],m=r==null?void 0:r[g];if(m)return s[u]=m(d(l[1]));switch(g){case"Date":s[u]=new Date(l[1]);break;case"Set":const h=new Set;s[u]=h;for(let k=1;kr!=null)}const ze=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...ze];const St=new Set([...ze]);[...St];async function kt(t){var r;for(const f in t)if(typeof((r=t[f])==null?void 0:r.then)=="function")return Object.fromEntries(await Promise.all(Object.entries(t).map(async([s,d])=>[s,await d])));return t}class ne{constructor(r,f){this.status=r,typeof f=="string"?this.body={message:f}:f?this.body=f:this.body={message:`Error: ${r}`}}toString(){return JSON.stringify(this.body)}}class qe{constructor(r,f){this.status=r,this.location=f}}const Rt="x-sveltekit-invalidated",At="x-sveltekit-trailing-slash",K=Ke(Be)??{},ee=Ke(Ge)??{};function be(t){K[t]=te()}function It(t,r){var Ne;const f=ht(t),s=t.nodes[0],d=t.nodes[1];s(),d();const u=document.documentElement,E=[],l=[];let g=null;const m={before_navigate:[],on_navigate:[],after_navigate:[]};let h={branch:[],error:null,url:null},x=!1,j=!1,k=!0,N=!1,U=!1,H=!1,B=!1,V,D=(Ne=history.state)==null?void 0:Ne[M];D||(D=Date.now(),history.replaceState({...history.state,[M]:D},"",location.href));const fe=K[D];fe&&(history.scrollRestoration="manual",scrollTo(fe.x,fe.y));let q,z,Y;async function ke(){if(Y=Y||Promise.resolve(),await Y,!Y)return;Y=null;const e=new URL(location.href),i=Z(e,!0);g=null;const n=z={},o=i&&await pe(i);if(n===z&&o){if(o.type==="redirect")return re(new URL(o.location,e).href,{},1,n);o.props.page!==void 0&&(q=o.props.page),V.$set(o.props)}}function Re(e){l.some(i=>i==null?void 0:i.snapshot)&&(ee[e]=l.map(i=>{var n;return(n=i==null?void 0:i.snapshot)==null?void 0:n.capture()}))}function Ae(e){var i;(i=ee[e])==null||i.forEach((n,o)=>{var a,c;(c=(a=l[o])==null?void 0:a.snapshot)==null||c.restore(n)})}function Ie(){be(D),Ve(Be,K),Re(D),Ve(Ge,ee)}async function re(e,{noScroll:i=!1,replaceState:n=!1,keepFocus:o=!1,state:a={},invalidateAll:c=!1},p,v){return typeof e=="string"&&(e=new URL(e,De(document))),ce({url:e,scroll:i?te():null,keepfocus:o,redirect_count:p,details:{state:a,replaceState:n},nav_token:v,accepted:()=>{c&&(B=!0)},blocked:()=>{},type:"goto"})}async function Le(e){return g={id:e.id,promise:pe(e).then(i=>(i.type==="loaded"&&i.state.error&&(g=null),i))},g.promise}async function oe(...e){const n=f.filter(o=>e.some(a=>o.exec(a))).map(o=>Promise.all([...o.layouts,o.leaf].map(a=>a==null?void 0:a[1]())));await Promise.all(n)}function Pe(e){var o;h=e.state;const i=document.querySelector("style[data-sveltekit]");i&&i.remove(),q=e.props.page,V=new t.root({target:r,props:{...e.props,stores:F,components:l},hydrate:!0}),Ae(D);const n={from:null,to:{params:h.params,route:{id:((o=h.route)==null?void 0:o.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};m.after_navigate.forEach(a=>a(n)),j=!0}async function X({url:e,params:i,branch:n,status:o,error:a,route:c,form:p}){let v="never";for(const _ of n)(_==null?void 0:_.slash)!==void 0&&(v=_.slash);e.pathname=Ze(e.pathname,v),e.search=e.search;const b={type:"loaded",state:{url:e,params:i,branch:n,error:a,route:c},props:{constructors:Et(n).map(_=>_.node.component)}};p!==void 0&&(b.props.form=p);let y={},L=!q,A=0;for(let _=0;_(v.route=!0,w[O])}),params:new Proxy(o,{get:(w,O)=>(v.params.add(O),w[O])}),data:(c==null?void 0:c.data)??null,url:nt(n,()=>{v.url=!0}),async fetch(w,O){let $;w instanceof Request?($=w.url,O={body:w.method==="GET"||w.method==="HEAD"?void 0:await w.blob(),cache:w.cache,credentials:w.credentials,headers:w.headers,integrity:w.integrity,keepalive:w.keepalive,method:w.method,mode:w.mode,redirect:w.redirect,referrer:w.referrer,referrerPolicy:w.referrerPolicy,signal:w.signal,...O}):$=w;const C=new URL($,n);return P(C.href),C.origin===n.origin&&($=C.href.slice(n.origin.length)),j?ct($,C.href,O):st($,O)},setHeaders:()=>{},depends:P,parent(){return v.parent=!0,i()}};p=await b.universal.load.call(null,_)??null,p=p?await kt(p):null}return{node:b,loader:e,server:c,universal:(L=b.universal)!=null&&L.load?{type:"data",data:p,uses:v}:null,data:p??(c==null?void 0:c.data)??null,slash:((A=b.universal)==null?void 0:A.trailingSlash)??(c==null?void 0:c.slash)}}function Oe(e,i,n,o,a){if(B)return!0;if(!o)return!1;if(o.parent&&e||o.route&&i||o.url&&n)return!0;for(const c of o.params)if(a[c]!==h.params[c])return!0;for(const c of o.dependencies)if(E.some(p=>p(new URL(c))))return!0;return!1}function de(e,i){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?i??null:null}async function pe({id:e,invalidating:i,url:n,params:o,route:a}){if((g==null?void 0:g.id)===e)return g.promise;const{errors:c,layouts:p,leaf:v}=a,b=[...p,v];c.forEach(S=>S==null?void 0:S().catch(()=>{})),b.forEach(S=>S==null?void 0:S[1]().catch(()=>{}));let y=null;const L=h.url?e!==h.url.pathname+h.url.search:!1,A=h.route?a.id!==h.route.id:!1;let P=!1;const _=b.map((S,I)=>{var G;const R=h.branch[I],T=!!(S!=null&&S[0])&&((R==null?void 0:R.loader)!==S[1]||Oe(P,A,L,(G=R.server)==null?void 0:G.uses,o));return T&&(P=!0),T});if(_.some(Boolean)){try{y=await Fe(n,_)}catch(S){return ie({status:S instanceof ne?S.status:500,error:await Q(S,{url:n,params:o,route:{id:a.id}}),url:n,route:a})}if(y.type==="redirect")return y}const w=y==null?void 0:y.nodes;let O=!1;const $=b.map(async(S,I)=>{var he;if(!S)return;const R=h.branch[I],T=w==null?void 0:w[I];if((!T||T.type==="skip")&&S[1]===(R==null?void 0:R.loader)&&!Oe(O,A,L,(he=R.universal)==null?void 0:he.uses,o))return R;if(O=!0,(T==null?void 0:T.type)==="error")throw T;return ue({loader:S[1],url:n,params:o,route:a,parent:async()=>{var Te;const $e={};for(let ge=0;ge{});const C=[];for(let S=0;SPromise.resolve({}),server_data_node:de(c)}),b={node:await d(),loader:d,universal:null,server:null,data:null};return await X({url:n,params:a,branch:[v,b],status:e,error:i,route:null})}function Z(e,i){if(ye(e,J))return;const n=se(e);for(const o of f){const a=o.exec(n);if(a)return{id:e.pathname+e.search,invalidating:i,route:o,params:et(a),url:e}}}function se(e){return Qe(e.pathname.slice(J.length)||"/")}function xe({url:e,type:i,intent:n,delta:o}){let a=!1;const c=He(h,n,e,i);o!==void 0&&(c.navigation.delta=o);const p={...c.navigation,cancel:()=>{a=!0,c.reject(new Error("navigation was cancelled"))}};return U||m.before_navigate.forEach(v=>v(p)),a?null:c}async function ce({url:e,scroll:i,keepfocus:n,redirect_count:o,details:a,type:c,delta:p,nav_token:v={},accepted:b,blocked:y}){var $,C,S;const L=Z(e,!1),A=xe({url:e,type:c,delta:p,intent:L});if(!A){y();return}const P=D;b(),U=!0,j&&F.navigating.set(A.navigation),z=v;let _=L&&await pe(L);if(!_){if(ye(e,J))return await W(e);_=await je(e,{id:null},await Q(new Error(`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404)}if(e=(L==null?void 0:L.url)||e,z!==v)return A.reject(new Error("navigation was aborted")),!1;if(_.type==="redirect")if(o>=20)_=await ie({status:500,error:await Q(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}});else return re(new URL(_.location,e).href,{},o+1,v),!1;else(($=_.props.page)==null?void 0:$.status)>=400&&await F.updated.check()&&await W(e);if(E.length=0,B=!1,N=!0,be(P),Re(P),(C=_.props.page)!=null&&C.url&&_.props.page.url.pathname!==e.pathname&&(e.pathname=(S=_.props.page)==null?void 0:S.url.pathname),a){const I=a.replaceState?0:1;if(a.state[M]=D+=I,history[a.replaceState?"replaceState":"pushState"](a.state,"",e),!a.replaceState){let R=D+1;for(;ee[R]||K[R];)delete ee[R],delete K[R],R+=1}}if(g=null,j){h=_.state,_.props.page&&(_.props.page.url=e);const I=(await Promise.all(m.on_navigate.map(R=>R(A.navigation)))).filter(R=>typeof R=="function");if(I.length>0){let R=function(){m.after_navigate=m.after_navigate.filter(T=>!I.includes(T))};I.push(R),m.after_navigate.push(...I)}V.$set(_.props)}else Pe(_);const{activeElement:w}=document;if(await we(),k){const I=e.hash&&document.getElementById(decodeURIComponent(e.hash.slice(1)));i?scrollTo(i.x,i.y):I?I.scrollIntoView():scrollTo(0,0)}const O=document.activeElement!==w&&document.activeElement!==document.body;!n&&!O&&Ee(),k=!0,_.props.page&&(q=_.props.page),U=!1,c==="popstate"&&Ae(D),A.fulfil(void 0),m.after_navigate.forEach(I=>I(A.navigation)),F.navigating.set(null),N=!1}async function je(e,i,n,o){return e.origin===location.origin&&e.pathname===location.pathname&&!x?await ie({status:o,error:n,url:e,route:i}):await W(e)}function W(e){return location.href=e.href,new Promise(()=>{})}function Ye(){let e;u.addEventListener("mousemove",c=>{const p=c.target;clearTimeout(e),e=setTimeout(()=>{o(p,2)},20)});function i(c){o(c.composedPath()[0],1)}u.addEventListener("mousedown",i),u.addEventListener("touchstart",i,{passive:!0});const n=new IntersectionObserver(c=>{for(const p of c)p.isIntersecting&&(oe(se(new URL(p.target.href))),n.unobserve(p.target))},{threshold:0});function o(c,p){const v=Ce(c,u);if(!v)return;const{url:b,external:y,download:L}=_e(v,J);if(y||L)return;const A=le(v);if(!A.reload)if(p<=A.preload_data){const P=Z(b,!1);P&&Le(P)}else p<=A.preload_code&&oe(se(b))}function a(){n.disconnect();for(const c of u.querySelectorAll("a")){const{url:p,external:v,download:b}=_e(c,J);if(v||b)continue;const y=le(c);y.reload||(y.preload_code===Me.viewport&&n.observe(c),y.preload_code===Me.eager&&oe(se(p)))}}m.after_navigate.push(a),a()}function Q(e,i){return e instanceof ne?e.body:t.hooks.handleError({error:e,event:i})??{message:i.route.id!=null?"Internal Error":"Not Found"}}return{after_navigate:e=>{me(()=>(m.after_navigate.push(e),()=>{const i=m.after_navigate.indexOf(e);m.after_navigate.splice(i,1)}))},before_navigate:e=>{me(()=>(m.before_navigate.push(e),()=>{const i=m.before_navigate.indexOf(e);m.before_navigate.splice(i,1)}))},on_navigate:e=>{me(()=>(m.on_navigate.push(e),()=>{const i=m.on_navigate.indexOf(e);m.on_navigate.splice(i,1)}))},disable_scroll_handling:()=>{(N||!j)&&(k=!1)},goto:(e,i={})=>re(e,i,0),invalidate:e=>{if(typeof e=="function")E.push(e);else{const{href:i}=new URL(e,location.href);E.push(n=>n.href===i)}return ke()},invalidate_all:()=>(B=!0,ke()),preload_data:async e=>{const i=new URL(e,De(document)),n=Z(i,!1);if(!n)throw new Error(`Attempted to preload a URL that does not belong to this app: ${i}`);await Le(n)},preload_code:oe,apply_action:async e=>{if(e.type==="error"){const i=new URL(location.href),{branch:n,route:o}=h;if(!o)return;const a=await Ue(h.branch.length,n,o.errors);if(a){const c=await X({url:i,params:h.params,branch:n.slice(0,a.idx).concat(a.node),status:e.status??500,error:e.error,route:o});h=c.state,V.$set(c.props),we().then(Ee)}}else e.type==="redirect"?re(e.location,{invalidateAll:!0},0):(V.$set({form:null,page:{...q,form:e.data,status:e.status}}),await we(),V.$set({form:e.data}),e.type==="success"&&Ee())},_start_router:()=>{var i;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let o=!1;if(Ie(),!U){const a=He(h,void 0,null,"leave"),c={...a.navigation,cancel:()=>{o=!0,a.reject(new Error("navigation was cancelled"))}};m.before_navigate.forEach(p=>p(c))}o?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ie()}),(i=navigator.connection)!=null&&i.saveData||Ye(),u.addEventListener("click",n=>{var P;if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const o=Ce(n.composedPath()[0],u);if(!o)return;const{url:a,external:c,target:p,download:v}=_e(o,J);if(!a)return;if(p==="_parent"||p==="_top"){if(window.parent!==window)return}else if(p&&p!=="_self")return;const b=le(o);if(!(o instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||v)return;if(c||b.reload){xe({url:a,type:"link"})?U=!0:n.preventDefault();return}const[L,A]=a.href.split("#");if(A!==void 0&&L===location.href.split("#")[0]){if(h.url.hash===a.hash){n.preventDefault(),(P=o.ownerDocument.getElementById(A))==null||P.scrollIntoView();return}if(H=!0,be(D),e(a),!b.replace_state)return;H=!1,n.preventDefault()}ce({url:a,scroll:b.noscroll?te():null,keepfocus:b.keep_focus??!1,redirect_count:0,details:{state:{},replaceState:b.replace_state??a.href===location.href},accepted:()=>n.preventDefault(),blocked:()=>n.preventDefault(),type:"link"})}),u.addEventListener("submit",n=>{if(n.defaultPrevented)return;const o=HTMLFormElement.prototype.cloneNode.call(n.target),a=n.submitter;if(((a==null?void 0:a.formMethod)||o.method)!=="get")return;const p=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||o.action);if(ye(p,J))return;const v=n.target,{keep_focus:b,noscroll:y,reload:L,replace_state:A}=le(v);if(L)return;n.preventDefault(),n.stopPropagation();const P=new FormData(v),_=a==null?void 0:a.getAttribute("name");_&&P.append(_,(a==null?void 0:a.getAttribute("value"))??""),p.search=new URLSearchParams(P).toString(),ce({url:p,scroll:y?te():null,keepfocus:b??!1,redirect_count:0,details:{state:{},replaceState:A??p.href===location.href},nav_token:{},accepted:()=>{},blocked:()=>{},type:"form"})}),addEventListener("popstate",async n=>{var o;if(z={},(o=n.state)!=null&&o[M]){if(n.state[M]===D)return;const a=K[n.state[M]],c=new URL(location.href);if(h.url.href.split("#")[0]===location.href.split("#")[0]){e(c),K[D]=te(),D=n.state[M],scrollTo(a.x,a.y);return}const p=n.state[M]-D;await ce({url:c,scroll:a,keepfocus:!1,redirect_count:0,details:null,accepted:()=>{D=n.state[M]},blocked:()=>{history.go(-p)},type:"popstate",delta:p,nav_token:z})}else if(!H){const a=new URL(location.href);e(a)}}),addEventListener("hashchange",()=>{H&&(H=!1,history.replaceState({...history.state,[M]:++D},"",location.href))});for(const n of document.querySelectorAll("link"))n.rel==="icon"&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&F.navigating.set(null)});function e(n){h.url=n,F.page.set({...q,url:n}),F.page.notify()}},_hydrate:async({status:e=200,error:i,node_ids:n,params:o,route:a,data:c,form:p})=>{x=!0;const v=new URL(location.href);({params:o={},route:a={id:null}}=Z(v,!1)||{});let b;try{const y=n.map(async(P,_)=>{const w=c[_];return w!=null&&w.uses&&(w.uses=We(w.uses)),ue({loader:t.nodes[P],url:v,params:o,route:a,parent:async()=>{const O={};for(let $=0;$<_;$+=1)Object.assign(O,(await y[$]).data);return O},server_data_node:de(w)})}),L=await Promise.all(y),A=f.find(({id:P})=>P===a.id);if(A){const P=A.layouts;for(let _=0;_d?"1":"0").join(""));const s=await Je(f.href);if(!s.ok)throw new ne(s.status,await s.json());return new Promise(async d=>{var h;const u=new Map,E=s.body.getReader(),l=new TextDecoder;function g(x){return bt(x,{Promise:j=>new Promise((k,N)=>{u.set(j,{fulfil:k,reject:N})})})}let m="";for(;;){const{done:x,value:j}=await E.read();if(x&&!m)break;for(m+=!j&&m?` +import{o as me,t as we}from"../chunks/Component.febea800.js";import{S as Be,a as Ge,I as M,g as De,f as Ce,b as _e,c as le,s as te,i as ye,d as F,e as J,P as Me,h as Xe}from"../chunks/singletons.e1fd5d7c.js";function Ze(t,r){return t==="/"||r==="ignore"?t:r==="never"?t.endsWith("/")?t.slice(0,-1):t:r==="always"&&!t.endsWith("/")?t+"/":t}function Qe(t){return t.split("%25").map(decodeURI).join("%25")}function et(t){for(const r in t)t[r]=decodeURIComponent(t[r]);return t}const tt=["href","pathname","search","searchParams","toString","toJSON"];function nt(t,r){const f=new URL(t);for(const s of tt)Object.defineProperty(f,s,{get(){return r(),t[s]},enumerable:!0,configurable:!0});return at(f),f}function at(t){Object.defineProperty(t,"hash",{get(){throw new Error("Cannot access event.url.hash. Consider using `$page.url.hash` inside a component instead")}})}const rt="/__data.json";function ot(t){return t.replace(/\/$/,"")+rt}function it(...t){let r=5381;for(const f of t)if(typeof f=="string"){let s=f.length;for(;s;)r=r*33^f.charCodeAt(--s)}else if(ArrayBuffer.isView(f)){const s=new Uint8Array(f.buffer,f.byteOffset,f.byteLength);let d=s.length;for(;d;)r=r*33^s[--d]}else throw new TypeError("value must be a string or TypedArray");return(r>>>0).toString(36)}const Je=window.fetch;window.fetch=(t,r)=>((t instanceof Request?t.method:(r==null?void 0:r.method)||"GET")!=="GET"&&ae.delete(Se(t)),Je(t,r));const ae=new Map;function st(t,r){const f=Se(t,r),s=document.querySelector(f);if(s!=null&&s.textContent){const{body:d,...u}=JSON.parse(s.textContent),E=s.getAttribute("data-ttl");return E&&ae.set(f,{body:d,init:u,ttl:1e3*Number(E)}),Promise.resolve(new Response(d,u))}return window.fetch(t,r)}function ct(t,r,f){if(ae.size>0){const s=Se(t,f),d=ae.get(s);if(d){if(performance.now(){const d=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(s);if(d)return r.push({name:d[1],matcher:d[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const u=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(s);if(u)return r.push({name:u[1],matcher:u[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!s)return;const E=s.split(/\[(.+?)\](?!\])/);return"/"+E.map((g,m)=>{if(m%2){if(g.startsWith("x+"))return ve(String.fromCharCode(parseInt(g.slice(2),16)));if(g.startsWith("u+"))return ve(String.fromCharCode(...g.slice(2).split("-").map(U=>parseInt(U,16))));const h=lt.exec(g);if(!h)throw new Error(`Invalid param: ${g}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,x,j,k,N]=h;return r.push({name:k,matcher:N,optional:!!x,rest:!!j,chained:j?m===1&&E[0]==="":!1}),j?"(.*?)":x?"([^/]*)?":"([^/]+?)"}return ve(g)}).join("")}).join("")}/?$`),params:r}}function ut(t){return!/^\([^)]+\)$/.test(t)}function dt(t){return t.slice(1).split("/").filter(ut)}function pt(t,r,f){const s={},d=t.slice(1),u=d.filter(l=>l!==void 0);let E=0;for(let l=0;lh).join("/"),E=0),m===void 0){g.rest&&(s[g.name]="");continue}if(!g.matcher||f[g.matcher](m)){s[g.name]=m;const h=r[l+1],x=d[l+1];h&&!h.rest&&h.optional&&x&&g.chained&&(E=0),!h&&!x&&Object.keys(s).length===u.length&&(E=0);continue}if(g.optional&&g.chained){E++;continue}return}if(!E)return s}function ve(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function ht({nodes:t,server_loads:r,dictionary:f,matchers:s}){const d=new Set(r);return Object.entries(f).map(([l,[g,m,h]])=>{const{pattern:x,params:j}=ft(l),k={id:l,exec:N=>{const U=x.exec(N);if(U)return pt(U,j,s)},errors:[1,...h||[]].map(N=>t[N]),layouts:[0,...m||[]].map(E),leaf:u(g)};return k.errors.length=k.layouts.length=Math.max(k.errors.length,k.layouts.length),k});function u(l){const g=l<0;return g&&(l=~l),[g,t[l]]}function E(l){return l===void 0?l:[d.has(l),t[l]]}}function Ke(t){try{return JSON.parse(sessionStorage[t])}catch{}}function Ve(t,r){const f=JSON.stringify(r);try{sessionStorage[t]=f}catch{}}const gt=-1,mt=-2,wt=-3,_t=-4,yt=-5,vt=-6;function bt(t,r){if(typeof t=="number")return d(t,!0);if(!Array.isArray(t)||t.length===0)throw new Error("Invalid input");const f=t,s=Array(f.length);function d(u,E=!1){if(u===gt)return;if(u===wt)return NaN;if(u===_t)return 1/0;if(u===yt)return-1/0;if(u===vt)return-0;if(E)throw new Error("Invalid input");if(u in s)return s[u];const l=f[u];if(!l||typeof l!="object")s[u]=l;else if(Array.isArray(l))if(typeof l[0]=="string"){const g=l[0],m=r==null?void 0:r[g];if(m)return s[u]=m(d(l[1]));switch(g){case"Date":s[u]=new Date(l[1]);break;case"Set":const h=new Set;s[u]=h;for(let k=1;kr!=null)}const ze=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...ze];const St=new Set([...ze]);[...St];async function kt(t){var r;for(const f in t)if(typeof((r=t[f])==null?void 0:r.then)=="function")return Object.fromEntries(await Promise.all(Object.entries(t).map(async([s,d])=>[s,await d])));return t}class ne{constructor(r,f){this.status=r,typeof f=="string"?this.body={message:f}:f?this.body=f:this.body={message:`Error: ${r}`}}toString(){return JSON.stringify(this.body)}}class qe{constructor(r,f){this.status=r,this.location=f}}const Rt="x-sveltekit-invalidated",At="x-sveltekit-trailing-slash",K=Ke(Be)??{},ee=Ke(Ge)??{};function be(t){K[t]=te()}function It(t,r){var Ne;const f=ht(t),s=t.nodes[0],d=t.nodes[1];s(),d();const u=document.documentElement,E=[],l=[];let g=null;const m={before_navigate:[],on_navigate:[],after_navigate:[]};let h={branch:[],error:null,url:null},x=!1,j=!1,k=!0,N=!1,U=!1,H=!1,B=!1,V,D=(Ne=history.state)==null?void 0:Ne[M];D||(D=Date.now(),history.replaceState({...history.state,[M]:D},"",location.href));const fe=K[D];fe&&(history.scrollRestoration="manual",scrollTo(fe.x,fe.y));let q,z,Y;async function ke(){if(Y=Y||Promise.resolve(),await Y,!Y)return;Y=null;const e=new URL(location.href),i=Z(e,!0);g=null;const n=z={},o=i&&await pe(i);if(n===z&&o){if(o.type==="redirect")return re(new URL(o.location,e).href,{},1,n);o.props.page!==void 0&&(q=o.props.page),V.$set(o.props)}}function Re(e){l.some(i=>i==null?void 0:i.snapshot)&&(ee[e]=l.map(i=>{var n;return(n=i==null?void 0:i.snapshot)==null?void 0:n.capture()}))}function Ae(e){var i;(i=ee[e])==null||i.forEach((n,o)=>{var a,c;(c=(a=l[o])==null?void 0:a.snapshot)==null||c.restore(n)})}function Ie(){be(D),Ve(Be,K),Re(D),Ve(Ge,ee)}async function re(e,{noScroll:i=!1,replaceState:n=!1,keepFocus:o=!1,state:a={},invalidateAll:c=!1},p,v){return typeof e=="string"&&(e=new URL(e,De(document))),ce({url:e,scroll:i?te():null,keepfocus:o,redirect_count:p,details:{state:a,replaceState:n},nav_token:v,accepted:()=>{c&&(B=!0)},blocked:()=>{},type:"goto"})}async function Le(e){return g={id:e.id,promise:pe(e).then(i=>(i.type==="loaded"&&i.state.error&&(g=null),i))},g.promise}async function oe(...e){const n=f.filter(o=>e.some(a=>o.exec(a))).map(o=>Promise.all([...o.layouts,o.leaf].map(a=>a==null?void 0:a[1]())));await Promise.all(n)}function Pe(e){var o;h=e.state;const i=document.querySelector("style[data-sveltekit]");i&&i.remove(),q=e.props.page,V=new t.root({target:r,props:{...e.props,stores:F,components:l},hydrate:!0}),Ae(D);const n={from:null,to:{params:h.params,route:{id:((o=h.route)==null?void 0:o.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};m.after_navigate.forEach(a=>a(n)),j=!0}async function X({url:e,params:i,branch:n,status:o,error:a,route:c,form:p}){let v="never";for(const _ of n)(_==null?void 0:_.slash)!==void 0&&(v=_.slash);e.pathname=Ze(e.pathname,v),e.search=e.search;const b={type:"loaded",state:{url:e,params:i,branch:n,error:a,route:c},props:{constructors:Et(n).map(_=>_.node.component)}};p!==void 0&&(b.props.form=p);let y={},L=!q,A=0;for(let _=0;_(v.route=!0,w[O])}),params:new Proxy(o,{get:(w,O)=>(v.params.add(O),w[O])}),data:(c==null?void 0:c.data)??null,url:nt(n,()=>{v.url=!0}),async fetch(w,O){let $;w instanceof Request?($=w.url,O={body:w.method==="GET"||w.method==="HEAD"?void 0:await w.blob(),cache:w.cache,credentials:w.credentials,headers:w.headers,integrity:w.integrity,keepalive:w.keepalive,method:w.method,mode:w.mode,redirect:w.redirect,referrer:w.referrer,referrerPolicy:w.referrerPolicy,signal:w.signal,...O}):$=w;const C=new URL($,n);return P(C.href),C.origin===n.origin&&($=C.href.slice(n.origin.length)),j?ct($,C.href,O):st($,O)},setHeaders:()=>{},depends:P,parent(){return v.parent=!0,i()}};p=await b.universal.load.call(null,_)??null,p=p?await kt(p):null}return{node:b,loader:e,server:c,universal:(L=b.universal)!=null&&L.load?{type:"data",data:p,uses:v}:null,data:p??(c==null?void 0:c.data)??null,slash:((A=b.universal)==null?void 0:A.trailingSlash)??(c==null?void 0:c.slash)}}function Oe(e,i,n,o,a){if(B)return!0;if(!o)return!1;if(o.parent&&e||o.route&&i||o.url&&n)return!0;for(const c of o.params)if(a[c]!==h.params[c])return!0;for(const c of o.dependencies)if(E.some(p=>p(new URL(c))))return!0;return!1}function de(e,i){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?i??null:null}async function pe({id:e,invalidating:i,url:n,params:o,route:a}){if((g==null?void 0:g.id)===e)return g.promise;const{errors:c,layouts:p,leaf:v}=a,b=[...p,v];c.forEach(S=>S==null?void 0:S().catch(()=>{})),b.forEach(S=>S==null?void 0:S[1]().catch(()=>{}));let y=null;const L=h.url?e!==h.url.pathname+h.url.search:!1,A=h.route?a.id!==h.route.id:!1;let P=!1;const _=b.map((S,I)=>{var G;const R=h.branch[I],T=!!(S!=null&&S[0])&&((R==null?void 0:R.loader)!==S[1]||Oe(P,A,L,(G=R.server)==null?void 0:G.uses,o));return T&&(P=!0),T});if(_.some(Boolean)){try{y=await Fe(n,_)}catch(S){return ie({status:S instanceof ne?S.status:500,error:await Q(S,{url:n,params:o,route:{id:a.id}}),url:n,route:a})}if(y.type==="redirect")return y}const w=y==null?void 0:y.nodes;let O=!1;const $=b.map(async(S,I)=>{var he;if(!S)return;const R=h.branch[I],T=w==null?void 0:w[I];if((!T||T.type==="skip")&&S[1]===(R==null?void 0:R.loader)&&!Oe(O,A,L,(he=R.universal)==null?void 0:he.uses,o))return R;if(O=!0,(T==null?void 0:T.type)==="error")throw T;return ue({loader:S[1],url:n,params:o,route:a,parent:async()=>{var Te;const $e={};for(let ge=0;ge{});const C=[];for(let S=0;SPromise.resolve({}),server_data_node:de(c)}),b={node:await d(),loader:d,universal:null,server:null,data:null};return await X({url:n,params:a,branch:[v,b],status:e,error:i,route:null})}function Z(e,i){if(ye(e,J))return;const n=se(e);for(const o of f){const a=o.exec(n);if(a)return{id:e.pathname+e.search,invalidating:i,route:o,params:et(a),url:e}}}function se(e){return Qe(e.pathname.slice(J.length)||"/")}function xe({url:e,type:i,intent:n,delta:o}){let a=!1;const c=He(h,n,e,i);o!==void 0&&(c.navigation.delta=o);const p={...c.navigation,cancel:()=>{a=!0,c.reject(new Error("navigation was cancelled"))}};return U||m.before_navigate.forEach(v=>v(p)),a?null:c}async function ce({url:e,scroll:i,keepfocus:n,redirect_count:o,details:a,type:c,delta:p,nav_token:v={},accepted:b,blocked:y}){var $,C,S;const L=Z(e,!1),A=xe({url:e,type:c,delta:p,intent:L});if(!A){y();return}const P=D;b(),U=!0,j&&F.navigating.set(A.navigation),z=v;let _=L&&await pe(L);if(!_){if(ye(e,J))return await W(e);_=await je(e,{id:null},await Q(new Error(`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404)}if(e=(L==null?void 0:L.url)||e,z!==v)return A.reject(new Error("navigation was aborted")),!1;if(_.type==="redirect")if(o>=20)_=await ie({status:500,error:await Q(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}});else return re(new URL(_.location,e).href,{},o+1,v),!1;else(($=_.props.page)==null?void 0:$.status)>=400&&await F.updated.check()&&await W(e);if(E.length=0,B=!1,N=!0,be(P),Re(P),(C=_.props.page)!=null&&C.url&&_.props.page.url.pathname!==e.pathname&&(e.pathname=(S=_.props.page)==null?void 0:S.url.pathname),a){const I=a.replaceState?0:1;if(a.state[M]=D+=I,history[a.replaceState?"replaceState":"pushState"](a.state,"",e),!a.replaceState){let R=D+1;for(;ee[R]||K[R];)delete ee[R],delete K[R],R+=1}}if(g=null,j){h=_.state,_.props.page&&(_.props.page.url=e);const I=(await Promise.all(m.on_navigate.map(R=>R(A.navigation)))).filter(R=>typeof R=="function");if(I.length>0){let R=function(){m.after_navigate=m.after_navigate.filter(T=>!I.includes(T))};I.push(R),m.after_navigate.push(...I)}V.$set(_.props)}else Pe(_);const{activeElement:w}=document;if(await we(),k){const I=e.hash&&document.getElementById(decodeURIComponent(e.hash.slice(1)));i?scrollTo(i.x,i.y):I?I.scrollIntoView():scrollTo(0,0)}const O=document.activeElement!==w&&document.activeElement!==document.body;!n&&!O&&Ee(),k=!0,_.props.page&&(q=_.props.page),U=!1,c==="popstate"&&Ae(D),A.fulfil(void 0),m.after_navigate.forEach(I=>I(A.navigation)),F.navigating.set(null),N=!1}async function je(e,i,n,o){return e.origin===location.origin&&e.pathname===location.pathname&&!x?await ie({status:o,error:n,url:e,route:i}):await W(e)}function W(e){return location.href=e.href,new Promise(()=>{})}function Ye(){let e;u.addEventListener("mousemove",c=>{const p=c.target;clearTimeout(e),e=setTimeout(()=>{o(p,2)},20)});function i(c){o(c.composedPath()[0],1)}u.addEventListener("mousedown",i),u.addEventListener("touchstart",i,{passive:!0});const n=new IntersectionObserver(c=>{for(const p of c)p.isIntersecting&&(oe(se(new URL(p.target.href))),n.unobserve(p.target))},{threshold:0});function o(c,p){const v=Ce(c,u);if(!v)return;const{url:b,external:y,download:L}=_e(v,J);if(y||L)return;const A=le(v);if(!A.reload)if(p<=A.preload_data){const P=Z(b,!1);P&&Le(P)}else p<=A.preload_code&&oe(se(b))}function a(){n.disconnect();for(const c of u.querySelectorAll("a")){const{url:p,external:v,download:b}=_e(c,J);if(v||b)continue;const y=le(c);y.reload||(y.preload_code===Me.viewport&&n.observe(c),y.preload_code===Me.eager&&oe(se(p)))}}m.after_navigate.push(a),a()}function Q(e,i){return e instanceof ne?e.body:t.hooks.handleError({error:e,event:i})??{message:i.route.id!=null?"Internal Error":"Not Found"}}return{after_navigate:e=>{me(()=>(m.after_navigate.push(e),()=>{const i=m.after_navigate.indexOf(e);m.after_navigate.splice(i,1)}))},before_navigate:e=>{me(()=>(m.before_navigate.push(e),()=>{const i=m.before_navigate.indexOf(e);m.before_navigate.splice(i,1)}))},on_navigate:e=>{me(()=>(m.on_navigate.push(e),()=>{const i=m.on_navigate.indexOf(e);m.on_navigate.splice(i,1)}))},disable_scroll_handling:()=>{(N||!j)&&(k=!1)},goto:(e,i={})=>re(e,i,0),invalidate:e=>{if(typeof e=="function")E.push(e);else{const{href:i}=new URL(e,location.href);E.push(n=>n.href===i)}return ke()},invalidate_all:()=>(B=!0,ke()),preload_data:async e=>{const i=new URL(e,De(document)),n=Z(i,!1);if(!n)throw new Error(`Attempted to preload a URL that does not belong to this app: ${i}`);await Le(n)},preload_code:oe,apply_action:async e=>{if(e.type==="error"){const i=new URL(location.href),{branch:n,route:o}=h;if(!o)return;const a=await Ue(h.branch.length,n,o.errors);if(a){const c=await X({url:i,params:h.params,branch:n.slice(0,a.idx).concat(a.node),status:e.status??500,error:e.error,route:o});h=c.state,V.$set(c.props),we().then(Ee)}}else e.type==="redirect"?re(e.location,{invalidateAll:!0},0):(V.$set({form:null,page:{...q,form:e.data,status:e.status}}),await we(),V.$set({form:e.data}),e.type==="success"&&Ee())},_start_router:()=>{var i;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let o=!1;if(Ie(),!U){const a=He(h,void 0,null,"leave"),c={...a.navigation,cancel:()=>{o=!0,a.reject(new Error("navigation was cancelled"))}};m.before_navigate.forEach(p=>p(c))}o?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ie()}),(i=navigator.connection)!=null&&i.saveData||Ye(),u.addEventListener("click",n=>{var P;if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const o=Ce(n.composedPath()[0],u);if(!o)return;const{url:a,external:c,target:p,download:v}=_e(o,J);if(!a)return;if(p==="_parent"||p==="_top"){if(window.parent!==window)return}else if(p&&p!=="_self")return;const b=le(o);if(!(o instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||v)return;if(c||b.reload){xe({url:a,type:"link"})?U=!0:n.preventDefault();return}const[L,A]=a.href.split("#");if(A!==void 0&&L===location.href.split("#")[0]){if(h.url.hash===a.hash){n.preventDefault(),(P=o.ownerDocument.getElementById(A))==null||P.scrollIntoView();return}if(H=!0,be(D),e(a),!b.replace_state)return;H=!1,n.preventDefault()}ce({url:a,scroll:b.noscroll?te():null,keepfocus:b.keep_focus??!1,redirect_count:0,details:{state:{},replaceState:b.replace_state??a.href===location.href},accepted:()=>n.preventDefault(),blocked:()=>n.preventDefault(),type:"link"})}),u.addEventListener("submit",n=>{if(n.defaultPrevented)return;const o=HTMLFormElement.prototype.cloneNode.call(n.target),a=n.submitter;if(((a==null?void 0:a.formMethod)||o.method)!=="get")return;const p=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||o.action);if(ye(p,J))return;const v=n.target,{keep_focus:b,noscroll:y,reload:L,replace_state:A}=le(v);if(L)return;n.preventDefault(),n.stopPropagation();const P=new FormData(v),_=a==null?void 0:a.getAttribute("name");_&&P.append(_,(a==null?void 0:a.getAttribute("value"))??""),p.search=new URLSearchParams(P).toString(),ce({url:p,scroll:y?te():null,keepfocus:b??!1,redirect_count:0,details:{state:{},replaceState:A??p.href===location.href},nav_token:{},accepted:()=>{},blocked:()=>{},type:"form"})}),addEventListener("popstate",async n=>{var o;if(z={},(o=n.state)!=null&&o[M]){if(n.state[M]===D)return;const a=K[n.state[M]],c=new URL(location.href);if(h.url.href.split("#")[0]===location.href.split("#")[0]){e(c),K[D]=te(),D=n.state[M],scrollTo(a.x,a.y);return}const p=n.state[M]-D;await ce({url:c,scroll:a,keepfocus:!1,redirect_count:0,details:null,accepted:()=>{D=n.state[M]},blocked:()=>{history.go(-p)},type:"popstate",delta:p,nav_token:z})}else if(!H){const a=new URL(location.href);e(a)}}),addEventListener("hashchange",()=>{H&&(H=!1,history.replaceState({...history.state,[M]:++D},"",location.href))});for(const n of document.querySelectorAll("link"))n.rel==="icon"&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&F.navigating.set(null)});function e(n){h.url=n,F.page.set({...q,url:n}),F.page.notify()}},_hydrate:async({status:e=200,error:i,node_ids:n,params:o,route:a,data:c,form:p})=>{x=!0;const v=new URL(location.href);({params:o={},route:a={id:null}}=Z(v,!1)||{});let b;try{const y=n.map(async(P,_)=>{const w=c[_];return w!=null&&w.uses&&(w.uses=We(w.uses)),ue({loader:t.nodes[P],url:v,params:o,route:a,parent:async()=>{const O={};for(let $=0;$<_;$+=1)Object.assign(O,(await y[$]).data);return O},server_data_node:de(w)})}),L=await Promise.all(y),A=f.find(({id:P})=>P===a.id);if(A){const P=A.layouts;for(let _=0;_d?"1":"0").join(""));const s=await Je(f.href);if(!s.ok)throw new ne(s.status,await s.json());return new Promise(async d=>{var h;const u=new Map,E=s.body.getReader(),l=new TextDecoder;function g(x){return bt(x,{Promise:j=>new Promise((k,N)=>{u.set(j,{fulfil:k,reject:N})})})}let m="";for(;;){const{done:x,value:j}=await E.read();if(x&&!m)break;for(m+=!j&&m?` `:l.decode(j);;){const k=m.indexOf(` `);if(k===-1)break;const N=JSON.parse(m.slice(0,k));if(m=m.slice(k+1),N.type==="redirect")return d(N);if(N.type==="data")(h=N.nodes)==null||h.forEach(U=>{(U==null?void 0:U.type)==="data"&&(U.uses=We(U.uses),U.data=g(U.data))}),d(N);else if(N.type==="chunk"){const{id:U,data:H,error:B}=N,V=u.get(U);u.delete(U),B?V.reject(g(B)):V.fulfil(g(H))}}}})}function We(t){return{dependencies:new Set((t==null?void 0:t.dependencies)??[]),params:new Set((t==null?void 0:t.params)??[]),parent:!!(t!=null&&t.parent),route:!!(t!=null&&t.route),url:!!(t!=null&&t.url)}}function Ee(){const t=document.querySelector("[autofocus]");if(t)t.focus();else{const r=document.body,f=r.getAttribute("tabindex");r.tabIndex=-1,r.focus({preventScroll:!0,focusVisible:!1}),f!==null?r.setAttribute("tabindex",f):r.removeAttribute("tabindex");const s=getSelection();if(s&&s.type!=="None"){const d=[];for(let u=0;u{if(s.rangeCount===d.length){for(let u=0;u{d=h,u=x});return E.catch(()=>{}),{navigation:{from:{params:t.params,route:{id:((g=t.route)==null?void 0:g.id)??null},url:t.url},to:f&&{params:(r==null?void 0:r.params)??null,route:{id:((m=r==null?void 0:r.route)==null?void 0:m.id)??null},url:f},willUnload:!r,type:s,complete:E},fulfil:d,reject:u}}async function Ot(t,r,f){const s=It(t,r);Xe({client:s}),f?await s._hydrate(f):s.goto(location.href,{replaceState:!0}),s._start_router()}export{Ot as start}; diff --git a/_app/immutable/nodes/1.6c3b9c6a.js b/_app/immutable/nodes/1.5c963048.js similarity index 92% rename from _app/immutable/nodes/1.6c3b9c6a.js rename to _app/immutable/nodes/1.5c963048.js index 557bf587..482cf20a 100644 --- a/_app/immutable/nodes/1.6c3b9c6a.js +++ b/_app/immutable/nodes/1.5c963048.js @@ -1 +1 @@ -import{c as x,S,i as k,s as q,m as f,u as d,a as w,n as h,p as v,v as b,k as m,b as y,d as _,I as g,w as E,J as $,K as C}from"../chunks/Component.febea800.js";import"../chunks/index.0fe306af.js";import{p as H}from"../chunks/stores.cc420d09.js";function I(p){var u;let t,s=p[0].status+"",r,n,o,i=((u=p[0].error)==null?void 0:u.message)+"",c;return{c(){t=f("h1"),r=d(s),n=w(),o=f("p"),c=d(i)},l(e){t=h(e,"H1",{});var a=v(t);r=b(a,s),a.forEach(m),n=y(e),o=h(e,"P",{});var l=v(o);c=b(l,i),l.forEach(m)},m(e,a){_(e,t,a),g(t,r),_(e,n,a),_(e,o,a),g(o,c)},p(e,[a]){var l;a&1&&s!==(s=e[0].status+"")&&E(r,s),a&1&&i!==(i=((l=e[0].error)==null?void 0:l.message)+"")&&E(c,i)},i:$,o:$,d(e){e&&(m(t),m(n),m(o))}}}function J(p,t,s){let r;return C(p,H,n=>s(0,r=n)),[r]}class K extends S{constructor(t){super(),k(this,t,J,I,q,{})}}x(K,{},[],[],!0);export{K as component}; +import{c as x,S,i as k,s as q,m as f,u as d,a as w,n as h,p as v,v as b,k as m,b as y,d as _,I as g,w as E,J as $,K as C}from"../chunks/Component.febea800.js";import"../chunks/index.0fe306af.js";import{p as H}from"../chunks/stores.c8aedbcc.js";function I(p){var u;let t,s=p[0].status+"",r,n,o,i=((u=p[0].error)==null?void 0:u.message)+"",c;return{c(){t=f("h1"),r=d(s),n=w(),o=f("p"),c=d(i)},l(e){t=h(e,"H1",{});var a=v(t);r=b(a,s),a.forEach(m),n=y(e),o=h(e,"P",{});var l=v(o);c=b(l,i),l.forEach(m)},m(e,a){_(e,t,a),g(t,r),_(e,n,a),_(e,o,a),g(o,c)},p(e,[a]){var l;a&1&&s!==(s=e[0].status+"")&&E(r,s),a&1&&i!==(i=((l=e[0].error)==null?void 0:l.message)+"")&&E(c,i)},i:$,o:$,d(e){e&&(m(t),m(n),m(o))}}}function J(p,t,s){let r;return C(p,H,n=>s(0,r=n)),[r]}class K extends S{constructor(t){super(),k(this,t,J,I,q,{})}}x(K,{},[],[],!0);export{K as component}; diff --git a/_app/immutable/nodes/3.83df4219.js b/_app/immutable/nodes/3.c3d9b5f7.js similarity index 95% rename from _app/immutable/nodes/3.83df4219.js rename to _app/immutable/nodes/3.c3d9b5f7.js index 9aa9e8c4..7a0d8860 100644 --- a/_app/immutable/nodes/3.83df4219.js +++ b/_app/immutable/nodes/3.c3d9b5f7.js @@ -1 +1 @@ -import{c as f,S as l,i as d,s as i,e as m,d as b,g as u,h,j as c,k as g,K as k,A as y,B as P,C as $,D as q,x as D,J as R}from"../chunks/Component.febea800.js";import"../chunks/index.0fe306af.js";import{D as S,d as j}from"../chunks/Dashboard.5406c1a0.js";import{p as w}from"../chunks/stores.cc420d09.js";const B=!0,C=B;function E(o,s){let a={...o.params};return s&&(a={...Object.fromEntries(o.url.searchParams),...a}),a}function p(o){let s,a;return s=new S({props:{dashboard:j,crud:o[3],operation:o[2],requestParameters:o[1]}}),{c(){y(s.$$.fragment)},l(e){P(s.$$.fragment,e)},m(e,r){$(s,e,r),a=!0},p(e,r){const t={};r&8&&(t.crud=e[3]),r&4&&(t.operation=e[2]),r&2&&(t.requestParameters=e[1]),s.$set(t)},i(e){a||(c(s.$$.fragment,e),a=!0)},o(e){u(s.$$.fragment,e),a=!1},d(e){q(s,e)}}}function O(o){let s=o[0],a,e,r=p(o);return{c(){r.c(),a=m()},l(t){r.l(t),a=m()},m(t,n){r.m(t,n),b(t,a,n),e=!0},p(t,[n]){n&1&&i(s,s=t[0])?(D(),u(r,1,1,R),h(),r=p(t),r.c(),c(r,1),r.m(a.parentNode,a)):r.p(t,n)},i(t){e||(c(r),e=!0)},o(t){u(r),e=!1},d(t){t&&g(a),r.d(t)}}}function A(o,s,a){let e,r,t,n;return k(o,w,_=>a(0,n=_)),o.$$.update=()=>{o.$$.dirty&1&&a(3,e=n.params.crud),o.$$.dirty&1&&a(2,r=n.params.operation),o.$$.dirty&1&&a(1,t=E(n,C))},[n,t,r,e]}class J extends l{constructor(s){super(),d(this,s,A,O,i,{})}}f(J,{},[],[],!0);export{J as component}; +import{c as f,S as l,i as d,s as i,e as m,d as b,g as u,h,j as c,k as g,K as k,A as y,B as P,C as $,D as q,x as D,J as R}from"../chunks/Component.febea800.js";import"../chunks/index.0fe306af.js";import{D as S,d as j}from"../chunks/Dashboard.5406c1a0.js";import{p as w}from"../chunks/stores.c8aedbcc.js";const B=!0,C=B;function E(o,s){let a={...o.params};return s&&(a={...Object.fromEntries(o.url.searchParams),...a}),a}function p(o){let s,a;return s=new S({props:{dashboard:j,crud:o[3],operation:o[2],requestParameters:o[1]}}),{c(){y(s.$$.fragment)},l(e){P(s.$$.fragment,e)},m(e,r){$(s,e,r),a=!0},p(e,r){const t={};r&8&&(t.crud=e[3]),r&4&&(t.operation=e[2]),r&2&&(t.requestParameters=e[1]),s.$set(t)},i(e){a||(c(s.$$.fragment,e),a=!0)},o(e){u(s.$$.fragment,e),a=!1},d(e){q(s,e)}}}function O(o){let s=o[0],a,e,r=p(o);return{c(){r.c(),a=m()},l(t){r.l(t),a=m()},m(t,n){r.m(t,n),b(t,a,n),e=!0},p(t,[n]){n&1&&i(s,s=t[0])?(D(),u(r,1,1,R),h(),r=p(t),r.c(),c(r,1),r.m(a.parentNode,a)):r.p(t,n)},i(t){e||(c(r),e=!0)},o(t){u(r),e=!1},d(t){t&&g(a),r.d(t)}}}function A(o,s,a){let e,r,t,n;return k(o,w,_=>a(0,n=_)),o.$$.update=()=>{o.$$.dirty&1&&a(3,e=n.params.crud),o.$$.dirty&1&&a(2,r=n.params.operation),o.$$.dirty&1&&a(1,t=E(n,C))},[n,t,r,e]}class J extends l{constructor(s){super(),d(this,s,A,O,i,{})}}f(J,{},[],[],!0);export{J as component}; diff --git a/_app/version.json b/_app/version.json index 7f169bc7..32f1ed26 100644 --- a/_app/version.json +++ b/_app/version.json @@ -1 +1 @@ -{"version":"1697667248692"} \ No newline at end of file +{"version":"1697721549561"} \ No newline at end of file diff --git a/admin/books/delete/index.html b/admin/books/delete/index.html index b6851ea4..4fc2763f 100644 --- a/admin/books/delete/index.html +++ b/admin/books/delete/index.html @@ -6,23 +6,23 @@ - + - + - + - + - +
Skip to main content Svelte Admin  Demo