@axium/server 0.22.10 → 0.22.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/client/_app/immutable/chunks/{BgEiIyym.js → DN_VTkOW.js} +1 -1
- package/build/client/_app/immutable/chunks/DN_VTkOW.js.br +0 -0
- package/build/client/_app/immutable/chunks/DN_VTkOW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DwJfO5YS.js +3 -0
- package/build/client/_app/immutable/chunks/DwJfO5YS.js.br +0 -0
- package/build/client/_app/immutable/chunks/DwJfO5YS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DOf8Vlkp.js → lSbGwHqC.js} +1 -1
- package/build/client/_app/immutable/chunks/lSbGwHqC.js.br +0 -0
- package/build/client/_app/immutable/chunks/{DOf8Vlkp.js.gz → lSbGwHqC.js.gz} +0 -0
- package/build/client/_app/immutable/entry/{app.BMd3k5iZ.js → app.DLzwCGBk.js} +2 -2
- package/build/client/_app/immutable/entry/app.DLzwCGBk.js.br +0 -0
- package/build/client/_app/immutable/entry/app.DLzwCGBk.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.BoB-G5Ls.js +1 -0
- package/build/client/_app/immutable/entry/start.BoB-G5Ls.js.br +2 -0
- package/build/client/_app/immutable/entry/start.BoB-G5Ls.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{1.BbCjX8CT.js → 1.9GlBYpox.js} +1 -1
- package/build/client/_app/immutable/nodes/1.9GlBYpox.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.9GlBYpox.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.DuwUIVtX.js +7 -0
- package/build/client/_app/immutable/nodes/3.DuwUIVtX.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.DuwUIVtX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{4.-otZzHZ7.js → 4.C0wscA_4.js} +1 -1
- package/build/client/_app/immutable/nodes/4.C0wscA_4.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.C0wscA_4.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.CWS-YJ56.js +1 -0
- package/build/client/_app/immutable/nodes/5.CWS-YJ56.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.CWS-YJ56.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{6.BYvIaid9.js → 6.TEubHotu.js} +1 -1
- package/build/client/_app/immutable/nodes/6.TEubHotu.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.TEubHotu.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/server/chunks/{1-CQfOCLrv.js → 1-D4403Evz.js} +2 -2
- package/build/server/chunks/{1-CQfOCLrv.js.map → 1-D4403Evz.js.map} +1 -1
- package/build/server/chunks/{3-Bd45up_8.js → 3-CCrTqwF9.js} +3 -3
- package/build/server/chunks/{3-Bd45up_8.js.map → 3-CCrTqwF9.js.map} +1 -1
- package/build/server/chunks/{4-DaCX_NDZ.js → 4-vjHkix88.js} +2 -2
- package/build/server/chunks/{4-DaCX_NDZ.js.map → 4-vjHkix88.js.map} +1 -1
- package/build/server/chunks/{5-CVkFzkFo.js → 5-Dc6xvhmU.js} +2 -2
- package/build/server/chunks/{5-CVkFzkFo.js.map → 5-Dc6xvhmU.js.map} +1 -1
- package/build/server/chunks/{6-CTMhcbKj.js → 6-CvdeNFQU.js} +2 -2
- package/build/server/chunks/{6-CTMhcbKj.js.map → 6-CvdeNFQU.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-B_j_iDFj.js → _page.svelte-CNug2JTC.js} +8 -15
- package/build/server/chunks/_page.svelte-CNug2JTC.js.map +1 -0
- package/build/server/chunks/{hooks.server-DUwDq1Hw.js → hooks.server-BJTU7JI4.js} +3 -3
- package/build/server/chunks/{hooks.server-DUwDq1Hw.js.map → hooks.server-BJTU7JI4.js.map} +1 -1
- package/build/server/index.js +2 -2
- package/build/server/index.js.map +1 -1
- package/build/server/manifest.js +6 -6
- package/build/server/manifest.js.map +1 -1
- package/dist/api/users.js +1 -1
- package/package.json +1 -1
- package/build/client/_app/immutable/chunks/BgEiIyym.js.br +0 -0
- package/build/client/_app/immutable/chunks/BgEiIyym.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DOf8Vlkp.js.br +0 -0
- package/build/client/_app/immutable/chunks/rezgYUOp.js +0 -3
- package/build/client/_app/immutable/chunks/rezgYUOp.js.br +0 -0
- package/build/client/_app/immutable/chunks/rezgYUOp.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.BMd3k5iZ.js.br +0 -0
- package/build/client/_app/immutable/entry/app.BMd3k5iZ.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.wMNSiQfV.js +0 -1
- package/build/client/_app/immutable/entry/start.wMNSiQfV.js.br +0 -0
- package/build/client/_app/immutable/entry/start.wMNSiQfV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.BbCjX8CT.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.BbCjX8CT.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.DAVpu8yO.js +0 -7
- package/build/client/_app/immutable/nodes/3.DAVpu8yO.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.DAVpu8yO.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.-otZzHZ7.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.-otZzHZ7.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.Bfq-tL5b.js +0 -1
- package/build/client/_app/immutable/nodes/5.Bfq-tL5b.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.Bfq-tL5b.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.BYvIaid9.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.BYvIaid9.js.gz +0 -0
- package/build/server/chunks/_page.svelte-B_j_iDFj.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{q as p,r as c,p as f,v as d,f as b,a as u}from"./C8C04JmV.js";import{d as v}from"./x4Pz-wH_.js";import{p as n,i as _}from"./Cj9PL7OG.js";import{F as h,l as k}from"./
|
|
1
|
+
import"./DsnmJJEf.js";import{q as p,r as c,p as f,v as d,f as b,a as u}from"./C8C04JmV.js";import{d as v}from"./x4Pz-wH_.js";import{p as n,i as _}from"./Cj9PL7OG.js";import{F as h,l as k}from"./lSbGwHqC.js";var w=(t,o)=>{t.preventDefault(),o().close(),history.back()},y=f("<button>Take me back</button>"),L=f("<p>Are you sure you want to log out?</p> <!>",1);function A(t,o){p(o,!0);let a=n(o,"dialog",15),l=n(o,"fullPage",3,!1);h(t,{get pageMode(){return l()},submitText:"Log Out",submit:()=>k().then(()=>window.location.href="/"),get dialog(){return a()},set dialog(r){a(r)},children:(r,P)=>{var i=L(),g=d(b(i),2);{var m=e=>{var s=y();s.__click=[w,a],u(e,s)};_(g,e=>{l()&&e(m)})}u(r,i)},$$slots:{default:!0}}),c()}v(["click"]);export{A as L};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{o as De,s as vt}from"./ButWEHh0.js";import{D as me,a_ as bt,ax as T,a3 as x,a5 as P,t as qe}from"./C8C04JmV.js";const q=[];function Re(e,t=me){let n=null;const r=new Set;function a(o){if(bt(e,o)&&(e=o,n)){const c=!q.length;for(const l of r)l[1](),q.push(l,e);if(c){for(let l=0;l<q.length;l+=2)q[l][0](q[l+1]);q.length=0}}}function s(o){a(o(e))}function i(o,c=me){const l=[o,c];return r.add(l),r.size===1&&(n=t(a,s)||me),o(e),()=>{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:a,update:s,subscribe:i}}class le{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Ie{constructor(t,n){this.status=t,this.location=n}}class Ue extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}new URL("sveltekit-internal://");function kt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function At(e){return e.split("%25").map(decodeURI).join("%25")}function St(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function ye({href:e}){return e.split("#")[0]}function Et(e,t,n,r=!1){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(i,o){if(o==="get"||o==="getAll"||o==="has")return l=>(n(l),i[o](l));t();const c=Reflect.get(i,o);return typeof c=="function"?c.bind(i):c}}),enumerable:!0,configurable:!0});const s=["href","pathname","search","toString","toJSON"];r&&s.push("hash");for(const i of s)Object.defineProperty(a,i,{get(){return t(),e[i]},enumerable:!0,configurable:!0});return a}function Rt(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}function It(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n.buffer}const Ut=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&H.delete(Le(e)),Ut(e,t));const H=new Map;function Lt(e,t){const n=Le(e,t),r=document.querySelector(n);if(r?.textContent){let{body:a,...s}=JSON.parse(r.textContent);const i=r.getAttribute("data-ttl");return i&&H.set(n,{body:a,init:s,ttl:1e3*Number(i)}),r.getAttribute("data-b64")!==null&&(a=It(a)),Promise.resolve(new Response(a,s))}return window.fetch(e,t)}function Tt(e,t,n){if(H.size>0){const r=Le(e,n),a=H.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(a.body,a.init);H.delete(r)}}return window.fetch(t,n)}function Le(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const a=[];t.headers&&a.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&a.push(t.body),r+=`[data-hash="${Rt(...a)}"]`}return r}const xt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function Pt(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${Ot(e).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(s)return t.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return we(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return we(String.fromCharCode(...c.slice(2).split("-").map(m=>parseInt(m,16))));const d=xt.exec(c),[,h,u,f,p]=d;return t.push({name:f,matcher:p,optional:!!h,rest:!!u,chained:u?l===1&&i[0]==="":!1}),u?"([^]*?)":h?"([^/]*)?":"([^/]+?)"}return we(c)}).join("")}).join("")}/?$`),params:t}}function Ct(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function Ot(e){return e.slice(1).split("/").filter(Ct)}function Nt(e,t,n){const r={},a=e.slice(1),s=a.filter(o=>o!==void 0);let i=0;for(let o=0;o<t.length;o+=1){const c=t[o];let l=a[o-i];if(c.chained&&c.rest&&i&&(l=a.slice(o-i,o+1).filter(d=>d).join("/"),i=0),l===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){r[c.name]=l;const d=t[o+1],h=a[o+1];d&&!d.rest&&d.optional&&h&&c.chained&&(i=0),!d&&!h&&Object.keys(r).length===s.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return r}function we(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function jt({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([o,[c,l,d]])=>{const{pattern:h,params:u}=Pt(o),f={id:o,exec:p=>{const m=h.exec(p);if(m)return Nt(m,u,r)},errors:[1,...d||[]].map(p=>e[p]),layouts:[0,...l||[]].map(i),leaf:s(c)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function s(o){const c=o<0;return c&&(o=~o),[c,e[o]]}function i(o){return o===void 0?o:[a.has(o),e[o]]}}function Je(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Be(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const U=globalThis.__sveltekit_v07bjl?.base??"",$t=globalThis.__sveltekit_v07bjl?.assets??U,Dt="1755481238215",Xe="sveltekit:snapshot",Ze="sveltekit:scroll",Qe="sveltekit:states",qt="sveltekit:pageurl",F="sveltekit:history",z="sveltekit:navigation",j={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},fe=location.origin;function et(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function ue(){return{x:pageXOffset,y:pageYOffset}}function B(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Fe={...j,"":j.hover};function tt(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function nt(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=tt(e)}}function ke(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";r.hash=`#${o}${r.hash}`}}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,s=!r||!!a||de(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),i=r?.origin===fe&&e.hasAttribute("download");return{url:r,external:s,target:a,download:i}}function te(e){let t=null,n=null,r=null,a=null,s=null,i=null,o=e;for(;o&&o!==document.documentElement;)r===null&&(r=B(o,"preload-code")),a===null&&(a=B(o,"preload-data")),t===null&&(t=B(o,"keepfocus")),n===null&&(n=B(o,"noscroll")),s===null&&(s=B(o,"reload")),i===null&&(i=B(o,"replacestate")),o=tt(o);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Fe[r??"off"],preload_data:Fe[a??"off"],keepfocus:c(t),noscroll:c(n),reload:c(s),replace_state:c(i)}}function Ve(e){const t=Re(e);let n=!0;function r(){n=!0,t.update(i=>i)}function a(i){n=!1,t.set(i)}function s(i){let o;return t.subscribe(c=>{(o===void 0||n&&c!==o)&&i(o=c)})}return{notify:r,set:a,subscribe:s}}const rt={v:()=>{}};function Bt(){const{set:e,subscribe:t}=Re(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${$t}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==Dt;return i&&(e(!0),rt.v(),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:r}}function de(e,t,n){return e.origin!==fe||!e.pathname.startsWith(t)?!0:n?!(e.pathname===t+"/"||e.pathname===t+"/index.html"||e.protocol==="file:"&&e.pathname.replace(/\/[^/]+\.html?$/,"")===t):!1}function En(e){}function Me(e){const t=Vt(e),n=new ArrayBuffer(t.length),r=new DataView(n);for(let a=0;a<n.byteLength;a++)r.setUint8(a,t.charCodeAt(a));return n}const Ft="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Vt(e){e.length%4===0&&(e=e.replace(/==?$/,""));let t="",n=0,r=0;for(let a=0;a<e.length;a++)n<<=6,n|=Ft.indexOf(e[a]),r+=6,r===24&&(t+=String.fromCharCode((n&16711680)>>16),t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,t+=String.fromCharCode(n)):r===18&&(n>>=2,t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255)),t}const Mt=-1,Gt=-2,Ht=-3,Kt=-4,Wt=-5,Yt=-6;function zt(e,t){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function a(s,i=!1){if(s===Mt)return;if(s===Ht)return NaN;if(s===Kt)return 1/0;if(s===Wt)return-1/0;if(s===Yt)return-0;if(i)throw new Error("Invalid input");if(s in r)return r[s];const o=n[s];if(!o||typeof o!="object")r[s]=o;else if(Array.isArray(o))if(typeof o[0]=="string"){const c=o[0],l=t?.[c];if(l)return r[s]=l(a(o[1]));switch(c){case"Date":r[s]=new Date(o[1]);break;case"Set":const d=new Set;r[s]=d;for(let f=1;f<o.length;f+=1)d.add(a(o[f]));break;case"Map":const h=new Map;r[s]=h;for(let f=1;f<o.length;f+=2)h.set(a(o[f]),a(o[f+1]));break;case"RegExp":r[s]=new RegExp(o[1],o[2]);break;case"Object":r[s]=Object(o[1]);break;case"BigInt":r[s]=BigInt(o[1]);break;case"null":const u=Object.create(null);r[s]=u;for(let f=1;f<o.length;f+=2)u[o[f]]=a(o[f+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const f=globalThis[c],p=o[1],m=Me(p),_=new f(m);r[s]=_;break}case"ArrayBuffer":{const f=o[1],p=Me(f);r[s]=p;break}default:throw new Error(`Unknown type ${c}`)}}else{const c=new Array(o.length);r[s]=c;for(let l=0;l<o.length;l+=1){const d=o[l];d!==Gt&&(c[l]=a(d))}}else{const c={};r[s]=c;for(const l in o){const d=o[l];c[l]=a(d)}}return r[s]}return a(0)}const at=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...at];const Jt=new Set([...at]);[...Jt];function Xt(e){return e.filter(t=>t!=null)}const Zt="x-sveltekit-invalidated",Qt="x-sveltekit-trailing-slash";function ne(e){return e instanceof le||e instanceof Ue?e.status:500}function en(e){return e instanceof Ue?e.text:"Internal Error"}let S,J,ve;const tn=De.toString().includes("$$")||/function \w+\(\) \{\}/.test(De.toString());tn?(S={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},J={current:null},ve={current:!1}):(S=new class{#e=T({});get data(){return x(this.#e)}set data(t){P(this.#e,t)}#t=T(null);get form(){return x(this.#t)}set form(t){P(this.#t,t)}#n=T(null);get error(){return x(this.#n)}set error(t){P(this.#n,t)}#r=T({});get params(){return x(this.#r)}set params(t){P(this.#r,t)}#a=T({id:null});get route(){return x(this.#a)}set route(t){P(this.#a,t)}#o=T({});get state(){return x(this.#o)}set state(t){P(this.#o,t)}#s=T(-1);get status(){return x(this.#s)}set status(t){P(this.#s,t)}#i=T(new URL("https://example.com"));get url(){return x(this.#i)}set url(t){P(this.#i,t)}},J=new class{#e=T(null);get current(){return x(this.#e)}set current(t){P(this.#e,t)}},ve=new class{#e=T(!1);get current(){return x(this.#e)}set current(t){P(this.#e,t)}},rt.v=()=>ve.current=!0);function nn(e){Object.assign(S,e)}const rn="/__data.json",an=".html__data.json";function on(e){return e.endsWith(".html")?e.replace(/\.html$/,an):e.replace(/\/$/,"")+rn}const{tick:sn}=vt,cn=new Set(["icon","shortcut icon","apple-touch-icon"]),D=Je(Ze)??{},X=Je(Xe)??{},N={url:Ve({}),page:Ve({}),navigating:Re(null),updated:Bt()};function Te(e){D[e]=ue()}function ln(e,t){let n=e+1;for(;D[n];)delete D[n],n+=1;for(n=t+1;X[n];)delete X[n],n+=1}function M(e){return location.href=e.href,new Promise(()=>{})}async function ot(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(U||"/");e&&await e.update()}}function Ge(){}let xe,Ae,re,C,Se,v;globalThis.__sveltekit_v07bjl.data;const ae=[],oe=[];let O=null;const ee=new Map,st=new Set,fn=new Set,K=new Set;let w={branch:[],error:null,url:null},Pe=!1,se=!1,He=!0,Z=!1,G=!1,it=!1,Ce=!1,ct,k,I,$;const W=new Set,Ke=new Map;async function Ln(e,t,n){document.URL!==location.href&&(location.href=location.href),v=e,await e.hooks.init?.(),xe=jt(e),C=document.documentElement,Se=t,Ae=e.nodes[0],re=e.nodes[1],Ae(),re(),k=history.state?.[F],I=history.state?.[z],k||(k=I=Date.now(),history.replaceState({...history.state,[F]:k,[z]:I},""));const r=D[k];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await vn(Se,n)):(await Y({type:"enter",url:et(v.hash?kn(new URL(location.href)):location.href),replace_state:!0}),a()),wn()}function un(){ae.length=0,Ce=!1}function lt(e){oe.some(t=>t?.snapshot)&&(X[e]=oe.map(t=>t?.snapshot?.capture()))}function ft(e){X[e]?.forEach((t,n)=>{oe[n]?.snapshot?.restore(t)})}function We(){Te(k),Be(Ze,D),lt(I),Be(Xe,X)}async function ut(e,t,n,r){let a;const s=await Y({type:"goto",url:et(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(Ce=!0,a=[...Ke.keys()]),t.invalidate&&t.invalidate.forEach(yn)}});return t.invalidateAll&&qe().then(qe).then(()=>{Ke.forEach(({resource:i},o)=>{a?.includes(o)&&i.refresh?.()})}),s}async function dn(e){if(e.id!==O?.id){const t={};W.add(t),O={id:e.id,token:t,promise:pt({...e,preload:t}).then(n=>(W.delete(t),n.type==="loaded"&&n.state.error&&(O=null),n))}}return O.promise}async function be(e){const t=(await pe(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}function dt(e,t,n){w=e.state;const r=document.querySelector("style[data-sveltekit]");if(r&&r.remove(),Object.assign(S,e.props.page),ct=new v.root({target:t,props:{...e.props,stores:N,components:oe},hydrate:n,sync:!1}),ft(I),n){const a={from:null,to:{params:w.params,route:{id:w.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};K.forEach(s=>s(a))}se=!0}function ie({url:e,params:t,branch:n,status:r,error:a,route:s,form:i}){let o="never";if(U&&(e.pathname===U||e.pathname===U+"/"))o="always";else for(const f of n)f?.slash!==void 0&&(o=f.slash);e.pathname=kt(e.pathname,o),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:s},props:{constructors:Xt(n).map(f=>f.node.component),page:$e(S)}};i!==void 0&&(c.props.form=i);let l={},d=!S,h=0;for(let f=0;f<Math.max(n.length,w.branch.length);f+=1){const p=n[f],m=w.branch[f];p?.data!==m?.data&&(d=!0),p&&(l={...l,...p.data},d&&(c.props[`data_${h}`]=l),h+=1)}return(!w.url||e.href!==w.url.href||w.error!==a||i!==void 0&&i!==S.form||d)&&(c.props.page={error:a,params:t,route:{id:s?.id??null},state:{},status:r,url:new URL(e),form:i??null,data:d?l:S.data}),c}async function Oe({loader:e,parent:t,url:n,params:r,route:a,server_data_node:s}){let i=null,o=!0;const c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await e();if(l.universal?.load){let d=function(...u){for(const f of u){const{href:p}=new URL(f,n);c.dependencies.add(p)}};const h={route:new Proxy(a,{get:(u,f)=>(o&&(c.route=!0),u[f])}),params:new Proxy(r,{get:(u,f)=>(o&&c.params.add(f),u[f])}),data:s?.data??null,url:Et(n,()=>{o&&(c.url=!0)},u=>{o&&c.search_params.add(u)},v.hash),async fetch(u,f){u instanceof Request&&(f={body:u.method==="GET"||u.method==="HEAD"?void 0:await u.blob(),cache:u.cache,credentials:u.credentials,headers:[...u.headers].length>0?u?.headers:void 0,integrity:u.integrity,keepalive:u.keepalive,method:u.method,mode:u.mode,redirect:u.redirect,referrer:u.referrer,referrerPolicy:u.referrerPolicy,signal:u.signal,...f});const{resolved:p,promise:m}=ht(u,f,n);return o&&d(p.href),m},setHeaders:()=>{},depends:d,parent(){return o&&(c.parent=!0),t()},untrack(u){o=!1;try{return u()}finally{o=!0}}};i=await l.universal.load.call(null,h)??null}return{node:l,loader:e,server:s,universal:l.universal?.load?{type:"data",data:i,uses:c}:null,data:i??s?.data??null,slash:l.universal?.trailingSlash??s?.slash}}function ht(e,t,n){let r=e instanceof Request?e.url:e;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const s=se?Tt(r,a.href,t):Lt(r,t);return{resolved:a,promise:s}}function Ye(e,t,n,r,a,s){if(Ce)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(s[i]!==w.params[i])return!0;for(const i of a.dependencies)if(ae.some(o=>o(new URL(i))))return!0;return!1}function Ne(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function hn(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),s=t.searchParams.getAll(r);a.every(i=>s.includes(i))&&s.every(i=>a.includes(i))&&n.delete(r)}return n}function ze({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:$e(S),constructors:[]}}}async function pt({id:e,invalidating:t,url:n,params:r,route:a,preload:s}){if(O?.id===e)return W.delete(O.token),O.promise;const{errors:i,layouts:o,leaf:c}=a,l=[...o,c];i.forEach(g=>g?.().catch(()=>{})),l.forEach(g=>g?.[1]().catch(()=>{}));let d=null;const h=w.url?e!==ce(w.url):!1,u=w.route?a.id!==w.route.id:!1,f=hn(w.url,n);let p=!1;const m=l.map((g,y)=>{const b=w.branch[y],A=!!g?.[0]&&(b?.loader!==g[1]||Ye(p,u,h,f,b.server?.uses,r));return A&&(p=!0),A});if(m.some(Boolean)){try{d=await mt(n,m)}catch(g){const y=await V(g,{url:n,params:r,route:{id:e}});return W.has(s)?ze({error:y,url:n,params:r,route:a}):he({status:ne(g),error:y,url:n,route:a})}if(d.type==="redirect")return d}const _=d?.nodes;let R=!1;const E=l.map(async(g,y)=>{if(!g)return;const b=w.branch[y],A=_?.[y];if((!A||A.type==="skip")&&g[1]===b?.loader&&!Ye(R,u,h,f,b.universal?.uses,r))return b;if(R=!0,A?.type==="error")throw A;return Oe({loader:g[1],url:n,params:r,route:a,parent:async()=>{const ge={};for(let _e=0;_e<y;_e+=1)Object.assign(ge,(await E[_e])?.data);return ge},server_data_node:Ne(A===void 0&&g[0]?{type:"skip"}:A??null,g[0]?b?.server:void 0)})});for(const g of E)g.catch(()=>{});const L=[];for(let g=0;g<l.length;g+=1)if(l[g])try{L.push(await E[g])}catch(y){if(y instanceof Ie)return{type:"redirect",location:y.location};if(W.has(s))return ze({error:await V(y,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let b=ne(y),A;if(_?.includes(y))b=y.status??b,A=y.error;else if(y instanceof le)A=y.body;else{if(await N.updated.check())return await ot(),await M(n);A=await V(y,{params:r,url:n,route:{id:a.id}})}const Q=await pn(g,L,i);return Q?ie({url:n,params:r,branch:L.slice(0,Q.idx).concat(Q.node),status:b,error:A,route:a}):await _t(n,{id:a.id},A,b)}else L.push(void 0);return ie({url:n,params:r,branch:L,status:200,error:null,route:a,form:t?void 0:null})}async function pn(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)r-=1;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function he({status:e,error:t,url:n,route:r}){const a={};let s=null;if(v.server_loads[0]===0)try{const o=await mt(n,[!0]);if(o.type!=="data"||o.nodes[0]&&o.nodes[0].type!=="data")throw 0;s=o.nodes[0]??null}catch{(n.origin!==fe||n.pathname!==location.pathname||Pe)&&await M(n)}try{const o=await Oe({loader:Ae,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:Ne(s)}),c={node:await re(),loader:re,universal:null,server:null,data:null};return ie({url:n,params:a,branch:[o,c],status:e,error:t,route:null})}catch(o){if(o instanceof Ie)return ut(new URL(o.location,location.href),{},0);throw o}}async function gn(e){const t=e.href;if(ee.has(t))return ee.get(t);let n;try{const r=(async()=>{let a=await v.hooks.reroute({url:new URL(e),fetch:async(s,i)=>ht(s,i,e).promise})??e;if(typeof a=="string"){const s=new URL(e);v.hash?s.hash=a:s.pathname=a,a=s}return a})();ee.set(t,r),n=await r}catch{ee.delete(t);return}return n}async function pe(e,t){if(e&&!de(e,U,v.hash)){const n=await gn(e);if(!n)return;const r=_n(n);for(const a of xe){const s=a.exec(r);if(s)return{id:ce(e),invalidating:t,route:a,params:St(s),url:e}}}}function _n(e){return At(v.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(U.length))||"/"}function ce(e){return(v.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function gt({url:e,type:t,intent:n,delta:r}){let a=!1;const s=je(w,n,e,t);r!==void 0&&(s.navigation.delta=r);const i={...s.navigation,cancel:()=>{a=!0,s.reject(new Error("navigation cancelled"))}};return Z||st.forEach(o=>o(i)),a?null:s}async function Y({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:s,state:i={},redirect_count:o=0,nav_token:c={},accept:l=Ge,block:d=Ge}){const h=$;$=c;const u=await pe(t,!1),f=e==="enter"?je(w,u,t,e):gt({url:t,type:e,delta:n?.delta,intent:u});if(!f){d(),$===c&&($=h);return}const p=k,m=I;l(),Z=!0,se&&f.navigation.type!=="enter"&&N.navigating.set(J.current=f.navigation);let _=u&&await pt(u);if(!_){if(de(t,U,v.hash))return await M(t);_=await _t(t,{id:null},await V(new Ue(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404)}if(t=u?.url||t,$!==c)return f.reject(new Error("navigation aborted")),!1;if(_.type==="redirect")if(o>=20)_=await he({status:500,error:await V(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}});else return await ut(new URL(_.location,t).href,{},o+1,c),!1;else _.props.page.status>=400&&await N.updated.check()&&(await ot(),await M(t));if(un(),Te(p),lt(m),_.props.page.url.pathname!==t.pathname&&(t.pathname=_.props.page.url.pathname),i=n?n.state:i,!n){const g=s?0:1,y={[F]:k+=g,[z]:I+=g,[Qe]:i};(s?history.replaceState:history.pushState).call(history,y,"",t),s||ln(k,I)}if(O=null,_.props.page.state=i,se){const g=(await Promise.all(Array.from(fn,y=>y(f.navigation)))).filter(y=>typeof y=="function");if(g.length>0){let y=function(){g.forEach(b=>{K.delete(b)})};g.push(y),g.forEach(b=>{K.add(b)})}w=_.state,_.props.page&&(_.props.page.url=t),ct.$set(_.props),nn(_.props.page),it=!0}else dt(_,Se,!1);const{activeElement:R}=document;await sn();const E=n?n.scroll:a?ue():null;if(He){const g=t.hash&&document.getElementById(wt(t));E?scrollTo(E.x,E.y):g?g.scrollIntoView():scrollTo(0,0)}const L=document.activeElement!==R&&document.activeElement!==document.body;!r&&!L&&bn(t),He=!0,_.props.page&&Object.assign(S,_.props.page),Z=!1,e==="popstate"&&ft(I),f.fulfil(void 0),K.forEach(g=>g(f.navigation)),N.navigating.set(J.current=null)}async function _t(e,t,n,r){return e.origin===fe&&e.pathname===location.pathname&&!Pe?await he({status:r,error:n,url:e,route:t}):await M(e)}function mn(){let e,t,n;C.addEventListener("mousemove",o=>{const c=o.target;clearTimeout(e),e=setTimeout(()=>{s(c,j.hover)},20)});function r(o){o.defaultPrevented||s(o.composedPath()[0],j.tap)}C.addEventListener("mousedown",r),C.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(o=>{for(const c of o)c.isIntersecting&&(be(new URL(c.target.href)),a.unobserve(c.target))},{threshold:0});async function s(o,c){const l=nt(o,C),d=l===t&&c>=n;if(!l||d)return;const{url:h,external:u,download:f}=ke(l,U,v.hash);if(u||f)return;const p=te(l),m=h&&ce(w.url)===ce(h);if(!(p.reload||m))if(c<=p.preload_data){t=l,n=j.tap;const _=await pe(h,!1);if(!_)return;dn(_)}else c<=p.preload_code&&(t=l,n=c,be(h))}function i(){a.disconnect();for(const o of C.querySelectorAll("a")){const{url:c,external:l,download:d}=ke(o,U,v.hash);if(l||d)continue;const h=te(o);h.reload||(h.preload_code===j.viewport&&a.observe(o),h.preload_code===j.eager&&be(c))}}K.add(i),i()}function V(e,t){if(e instanceof le)return e.body;const n=ne(e),r=en(e);return v.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function yn(e){if(typeof e=="function")ae.push(e);else{const{href:t}=new URL(e,location.href);ae.push(n=>n.href===t)}}function wn(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(We(),!Z){const r=je(w,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};st.forEach(s=>s(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&We()}),navigator.connection?.saveData||mn(),C.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=nt(t.composedPath()[0],C);if(!n)return;const{url:r,external:a,target:s,download:i}=ke(n,U,v.hash);if(!r)return;if(s==="_parent"||s==="_top"){if(window.parent!==window)return}else if(s&&s!=="_self")return;const o=te(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||i)return;const[l,d]=(v.hash?r.hash.replace(/^#/,""):r.href).split("#"),h=l===ye(location);if(a||o.reload&&(!h||!d)){gt({url:r,type:"link"})?Z=!0:t.preventDefault();return}if(d!==void 0&&h){const[,u]=w.url.href.split("#");if(u===d){if(t.preventDefault(),d===""||d==="top"&&n.ownerDocument.getElementById("top")===null)window.scrollTo({top:0});else{const f=n.ownerDocument.getElementById(decodeURIComponent(d));f&&(f.scrollIntoView(),f.focus())}return}if(G=!0,Te(k),e(r),!o.replace_state)return;G=!1}t.preventDefault(),await new Promise(u=>{requestAnimationFrame(()=>{setTimeout(u,0)}),setTimeout(u,100)}),await Y({type:"link",url:r,keepfocus:o.keepfocus,noscroll:o.noscroll,replace_state:o.replace_state??r.href===location.href})}),C.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if((r?.formTarget||n.target)==="_blank"||(r?.formMethod||n.method)!=="get")return;const i=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(de(i,U,!1))return;const o=t.target,c=te(o);if(c.reload)return;t.preventDefault(),t.stopPropagation();const l=new FormData(o),d=r?.getAttribute("name");d&&l.append(d,r?.getAttribute("value")??""),i.search=new URLSearchParams(l).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=>{if(!Ee){if(t.state?.[F]){const n=t.state[F];if($={},n===k)return;const r=D[n],a=t.state[Qe]??{},s=new URL(t.state[qt]??location.href),i=t.state[z],o=w.url?ye(location)===ye(w.url):!1;if(i===I&&(it||o)){a!==S.state&&(S.state=a),e(s),D[k]=ue(),r&&scrollTo(r.x,r.y),k=n;return}const l=n-k;await Y({type:"popstate",url:s,popped:{state:a,scroll:r,delta:l},accept:()=>{k=n,I=i},block:()=>{history.go(-l)},nav_token:$})}else if(!G){const n=new URL(location.href);e(n),v.hash&&location.reload()}}}),addEventListener("hashchange",()=>{G&&(G=!1,history.replaceState({...history.state,[F]:++k,[z]:I},"",location.href))});for(const t of document.querySelectorAll("link"))cn.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&N.navigating.set(J.current=null)});function e(t){w.url=S.url=t,N.page.set($e(S)),N.page.notify()}}async function vn(e,{status:t=200,error:n,node_ids:r,params:a,route:s,server_route:i,data:o,form:c}){Pe=!0;const l=new URL(location.href);let d;({params:a={},route:s={id:null}}=await pe(l,!1)||{}),d=xe.find(({id:f})=>f===s.id);let h,u=!0;try{const f=r.map(async(m,_)=>{const R=o[_];return R?.uses&&(R.uses=yt(R.uses)),Oe({loader:v.nodes[m],url:l,params:a,route:s,parent:async()=>{const E={};for(let L=0;L<_;L+=1)Object.assign(E,(await f[L]).data);return E},server_data_node:Ne(R)})}),p=await Promise.all(f);if(d){const m=d.layouts;for(let _=0;_<m.length;_++)m[_]||p.splice(_,0,void 0)}h=ie({url:l,params:a,branch:p,status:t,error:n,form:c,route:d??null})}catch(f){if(f instanceof Ie){await M(new URL(f.location,location.href));return}h=await he({status:ne(f),error:await V(f,{url:l,params:a,route:s}),url:l,route:s}),e.textContent="",u=!1}h.props.page&&(h.props.page.state={}),dt(h,e,u)}async function mt(e,t){const n=new URL(e);n.pathname=on(e.pathname),e.pathname.endsWith("/")&&n.searchParams.append(Qt,"1"),n.searchParams.append(Zt,t.map(s=>s?"1":"0").join(""));const r=window.fetch,a=await r(n.href,{});if(!a.ok){let s;throw a.headers.get("content-type")?.includes("application/json")?s=await a.json():a.status===404?s="Not Found":a.status===500&&(s="Internal Error"),new le(a.status,s)}return new Promise(async s=>{const i=new Map,o=a.body.getReader(),c=new TextDecoder;function l(h){return zt(h,{...v.decoders,Promise:u=>new Promise((f,p)=>{i.set(u,{fulfil:f,reject:p})})})}let d="";for(;;){const{done:h,value:u}=await o.read();if(h&&!d)break;for(d+=!u&&d?`
|
|
2
|
+
`:c.decode(u,{stream:!0});;){const f=d.indexOf(`
|
|
3
|
+
`);if(f===-1)break;const p=JSON.parse(d.slice(0,f));if(d=d.slice(f+1),p.type==="redirect")return s(p);if(p.type==="data")p.nodes?.forEach(m=>{m?.type==="data"&&(m.uses=yt(m.uses),m.data=l(m.data))}),s(p);else if(p.type==="chunk"){const{id:m,data:_,error:R}=p,E=i.get(m);i.delete(m),R?E.reject(l(R)):E.fulfil(l(_))}}}})}function yt(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let Ee=!1;function bn(e){const t=document.querySelector("[autofocus]");if(t)t.focus();else{const n=wt(e);if(n&&document.getElementById(n)){const{x:a,y:s}=ue();setTimeout(()=>{const i=history.state;Ee=!0,location.replace(`#${n}`),v.hash&&location.replace(e.hash),history.replaceState(i,"",e.hash),scrollTo(a,s),Ee=!1})}else{const a=document.body,s=a.getAttribute("tabindex");a.tabIndex=-1,a.focus({preventScroll:!0,focusVisible:!1}),s!==null?a.setAttribute("tabindex",s):a.removeAttribute("tabindex")}const r=getSelection();if(r&&r.type!=="None"){const a=[];for(let s=0;s<r.rangeCount;s+=1)a.push(r.getRangeAt(s));setTimeout(()=>{if(r.rangeCount===a.length){for(let s=0;s<r.rangeCount;s+=1){const i=a[s],o=r.getRangeAt(s);if(i.commonAncestorContainer!==o.commonAncestorContainer||i.startContainer!==o.startContainer||i.endContainer!==o.endContainer||i.startOffset!==o.startOffset||i.endOffset!==o.endOffset)return}r.removeAllRanges()}})}}}function je(e,t,n,r){let a,s;const i=new Promise((c,l)=>{a=c,s=l});return i.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n},willUnload:!t,type:r,complete:i},fulfil:a,reject:s}}function $e(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function kn(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function wt(e){let t;if(v.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{Ln as a,En as l,S as p,N as s};
|
|
Binary file
|
|
Binary file
|
|
@@ -48,4 +48,4 @@ import"./DsnmJJEf.js";import{Z as Zn,w as Zt,F as Pe,C as At,X as jt,x as B,i as
|
|
|
48
48
|
to {
|
|
49
49
|
opacity: 1;
|
|
50
50
|
}
|
|
51
|
-
}`};function ys(e,t){Tt(t,!0),St(e,ks);let n=F(t,"dialog",15),i=Ot(t,["$$slots","$$events","$$legacy","children","dialog"]);var a=_s();oi(a,()=>({...i}),void 0,void 0,"svelte-cte1mz");var o=ne(a);ge(o,()=>t.children),ie(a),Jn(a,r=>n(r),()=>n()),te(e,a),Rt()}var zs=le('<button type="submit"> </button>'),Es=le('<div class="error"> </div>'),$s=(e,t)=>t().close(),Zs=le('<div class="actions svelte-p6pltw"><button type="button">Cancel</button> <!></div>'),As=le('<!> <form class="main" method="dialog"><!> <!> <!></form> <!>',1);const js={hash:"svelte-p6pltw",code:".actions.svelte-p6pltw {display:flex;gap:1em;flex-direction:row;justify-content:space-between;}"};function ic(e,t){Tt(t,!0),St(e,js);const n=v=>{var x=zs(),A=ne(x,!0);ie(x),Qe(()=>{Dt(x,1,Nt(["submit",l()&&"danger"])),et(A,o())}),te(v,x)};function i(){const v=new URL(location.href),x=v.searchParams.get("after");if(!x||x==v.pathname)return"/";for(const A of["/api/"])if(x.startsWith(A))return"/";return x||"/"}let a=F(t,"dialog",15),o=F(t,"submitText",3,"Submit"),r=F(t,"cancel",3,()=>{}),s=F(t,"submit",3,v=>Promise.resolve()),p=F(t,"pageMode",3,!1),l=F(t,"submitDanger",3,!1),g=Ot(t,["$$slots","$$events","$$legacy","children","dialog","submitText","cancel","submit","pageMode","submitDanger","header","footer"]),u=Mn(void 0);Un(()=>{p()&&a().showModal()});function d(v){v.preventDefault(),r()()}function b(v){v.preventDefault();const x=Object.fromEntries(new FormData(v.currentTarget));s()(x).then(A=>{p()?window.location.href=i():a().close()}).catch(A=>{A?typeof A=="object"&&"message"in A?Te(u,A.message,!0):Te(u,A,!0):Te(u,"An unknown error occurred")})}ys(e,Hn({onclose:d},()=>g,{get dialog(){return a()},set dialog(v){a(v)},children:(v,x)=>{var A=As(),j=Ln(A);ge(j,()=>t.header??Xe);var _=Y(j,2),f=ne(_);{var h=N=>{var q=Es(),me=ne(q,!0);ie(q),Qe(()=>et(me,Ne(u))),te(N,q)};tt(f,N=>{Ne(u)&&N(h)})}var Z=Y(f,2);ge(Z,()=>t.children);var S=Y(Z,2);{var T=N=>{n(N)},J=N=>{var q=Zs(),me=ne(q);me.__click=[$s,a];var $n=Y(me,2);n($n),ie(q),te(N,q)};tt(S,N=>{p()?N(T):N(J,!1)})}ie(_);var je=Y(_,2);ge(je,()=>t.footer??Xe),Gn("submit",_,b),te(v,A)},$$slots:{default:!0}})),Rt()}It(["click"]);export{
|
|
51
|
+
}`};function ys(e,t){Tt(t,!0),St(e,ks);let n=F(t,"dialog",15),i=Ot(t,["$$slots","$$events","$$legacy","children","dialog"]);var a=_s();oi(a,()=>({...i}),void 0,void 0,"svelte-cte1mz");var o=ne(a);ge(o,()=>t.children),ie(a),Jn(a,r=>n(r),()=>n()),te(e,a),Rt()}var zs=le('<button type="submit"> </button>'),Es=le('<div class="error"> </div>'),$s=(e,t)=>t().close(),Zs=le('<div class="actions svelte-p6pltw"><button type="button">Cancel</button> <!></div>'),As=le('<!> <form class="main" method="dialog"><!> <!> <!></form> <!>',1);const js={hash:"svelte-p6pltw",code:".actions.svelte-p6pltw {display:flex;gap:1em;flex-direction:row;justify-content:space-between;}"};function ic(e,t){Tt(t,!0),St(e,js);const n=v=>{var x=zs(),A=ne(x,!0);ie(x),Qe(()=>{Dt(x,1,Nt(["submit",l()&&"danger"])),et(A,o())}),te(v,x)};function i(){const v=new URL(location.href),x=v.searchParams.get("after");if(!x||x==v.pathname)return"/";for(const A of["/api/"])if(x.startsWith(A))return"/";return x||"/"}let a=F(t,"dialog",15),o=F(t,"submitText",3,"Submit"),r=F(t,"cancel",3,()=>{}),s=F(t,"submit",3,v=>Promise.resolve()),p=F(t,"pageMode",3,!1),l=F(t,"submitDanger",3,!1),g=Ot(t,["$$slots","$$events","$$legacy","children","dialog","submitText","cancel","submit","pageMode","submitDanger","header","footer"]),u=Mn(void 0);Un(()=>{p()&&a().showModal()});function d(v){v.preventDefault(),r()()}function b(v){v.preventDefault();const x=Object.fromEntries(new FormData(v.currentTarget));s()(x).then(A=>{p()?window.location.href=i():a().close()}).catch(A=>{A?typeof A=="object"&&"message"in A?Te(u,A.message,!0):Te(u,A,!0):Te(u,"An unknown error occurred")})}ys(e,Hn({onclose:d},()=>g,{get dialog(){return a()},set dialog(v){a(v)},children:(v,x)=>{var A=As(),j=Ln(A);ge(j,()=>t.header??Xe);var _=Y(j,2),f=ne(_);{var h=N=>{var q=Es(),me=ne(q,!0);ie(q),Qe(()=>et(me,Ne(u))),te(N,q)};tt(f,N=>{Ne(u)&&N(h)})}var Z=Y(f,2);ge(Z,()=>t.children);var S=Y(Z,2);{var T=N=>{n(N)},J=N=>{var q=Zs(),me=ne(q);me.__click=[$s,a];var $n=Y(me,2);n($n),ie(q),te(N,q)};tt(S,N=>{p()?N(T):N(J,!1)})}ie(_);var je=Y(_,2);ge(je,()=>t.footer??Xe),Gn("submit",_,b),te(v,A)},$$slots:{default:!0}})),Rt()}It(["click"]);export{Ks as A,Xs as B,ic as F,St as a,qs as b,Vs as c,Qs as d,Ys as e,oi as f,Fs as g,Ps as h,E as i,ii as j,Ds as k,Bs as l,Us as m,ti as n,ec as o,Cs as p,Ms as q,Gs as r,we as s,Ns as t,Hs as u,Ws as v,Js as w,tc as x,nc as y,Ls as z};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.CE0uBbp0.js","../chunks/DsnmJJEf.js","../chunks/C8C04JmV.js","../chunks/BMQhMafy.js","../nodes/1.
|
|
2
|
-
import{x as I,y as G,w as U,E as W,R as z,C as J,S as K,T as Y,G as H,W as Q,a5 as x,ad as X,a3 as m,j as Z,ai as $,av as ee,q as te,aw as re,u as ae,ax as k,t as se,p as N,f as w,v as ne,a as b,r as oe,c as L,K as ie,L as ce,ay as O,az as le,J as ue}from"../chunks/C8C04JmV.js";import{h as fe,m as de,u as me,s as _e}from"../chunks/x4Pz-wH_.js";import"../chunks/DsnmJJEf.js";import{o as he}from"../chunks/ButWEHh0.js";import{p as A,i as T,b as S}from"../chunks/Cj9PL7OG.js";function C(l,e,s){I&&G();var i=l,n,r,t=null,a=null;function _(){r&&(Q(r),r=null),t&&(t.lastChild.remove(),i.before(t),t=null),r=a,a=null}U(()=>{if(n!==(n=e())){var h=Y();if(n){var c=i;h&&(t=document.createDocumentFragment(),t.append(c=z())),a=J(()=>s(c,n))}h?K.add_callback(_):_()}},W),I&&(i=H)}function ve(l){return class extends ge{constructor(e){super({component:l,...e})}}}class ge{#t;#e;constructor(e){var s=new Map,i=(r,t)=>{var a=ee(t,!1,!1);return s.set(r,a),a};const n=new Proxy({...e.props||{},$$events:{}},{get(r,t){return m(s.get(t)??i(t,Reflect.get(r,t)))},has(r,t){return t===X?!0:(m(s.get(t)??i(t,Reflect.get(r,t))),Reflect.has(r,t))},set(r,t,a){return x(s.get(t)??i(t,a),a),Reflect.set(r,t,a)}});this.#e=(e.hydrate?fe:de)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&Z(),this.#t=n.$$events;for(const r of Object.keys(this.#e))r==="$set"||r==="$destroy"||r==="$on"||$(this,r,{get(){return this.#e[r]},set(t){this.#e[r]=t},enumerable:!0});this.#e.$set=r=>{Object.assign(n,r)},this.#e.$destroy=()=>{me(this.#e)}}$set(e){this.#e.$set(e)}$on(e,s){this.#t[e]=this.#t[e]||[];const i=(...n)=>s.call(this,...n);return this.#t[e].push(i),()=>{this.#t[e]=this.#t[e].filter(n=>n!==i)}}$destroy(){this.#e.$destroy()}}const ye="modulepreload",Ee=function(l,e){return new URL(l,e).href},V={},y=function(e,s,i){let n=Promise.resolve();if(s&&s.length>0){let h=function(c){return Promise.all(c.map(d=>Promise.resolve(d).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};const t=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),_=a?.nonce||a?.getAttribute("nonce");n=h(s.map(c=>{if(c=Ee(c,i),c in V)return;V[c]=!0;const d=c.endsWith(".css"),v=d?'[rel="stylesheet"]':"";if(!!i)for(let o=t.length-1;o>=0;o--){const u=t[o];if(u.href===c&&(!d||u.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${v}`))return;const f=document.createElement("link");if(f.rel=d?"stylesheet":ye,d||(f.as="script"),f.crossOrigin="",f.href=c,_&&f.setAttribute("nonce",_),document.head.appendChild(f),d)return new Promise((o,u)=>{f.addEventListener("load",o),f.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${c}`)))})}))}function r(t){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=t,window.dispatchEvent(a),!a.defaultPrevented)throw t}return n.then(t=>{for(const a of t||[])a.status==="rejected"&&r(a.reason);return e().catch(r)})},Se={};var be=N('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),pe=N("<!> <!>",1);function Pe(l,e){te(e,!0);let s=A(e,"components",23,()=>[]),i=A(e,"data_0",3,null),n=A(e,"data_1",3,null);re(()=>e.stores.page.set(e.page)),ae(()=>{e.stores,e.page,e.constructors,s(),e.form,i(),n(),e.stores.page.notify()});let r=k(!1),t=k(!1),a=k(null);he(()=>{const o=e.stores.page.subscribe(()=>{m(r)&&(x(t,!0),se().then(()=>{x(a,document.title||"untitled page",!0)}))});return x(r,!0),o});const _=O(()=>e.constructors[1]);var h=pe(),c=w(h);{var d=o=>{var u=L();const p=O(()=>e.constructors[0]);var P=w(u);C(P,()=>m(p),(g,E)=>{S(E(g,{get data(){return i()},get form(){return e.form},get params(){return e.page.params},children:(R,xe)=>{var j=L(),q=w(j);C(q,()=>m(_),(B,F)=>{S(F(B,{get data(){return n()},get form(){return e.form},get params(){return e.page.params}}),M=>s()[1]=M,()=>s()?.[1])}),b(R,j)},$$slots:{default:!0}}),R=>s()[0]=R,()=>s()?.[0])}),b(o,u)},v=o=>{var u=L();const p=O(()=>e.constructors[0]);var P=w(u);C(P,()=>m(p),(g,E)=>{S(E(g,{get data(){return i()},get form(){return e.form},get params(){return e.page.params}}),R=>s()[0]=R,()=>s()?.[0])}),b(o,u)};T(c,o=>{e.constructors[1]?o(d):o(v,!1)})}var D=ne(c,2);{var f=o=>{var u=be(),p=ie(u);{var P=g=>{var E=le();ue(()=>_e(E,m(a))),b(g,E)};T(p,g=>{m(t)&&g(P)})}ce(u),b(o,u)};T(D,o=>{m(r)&&o(f)})}b(l,h),oe()}const Ce=ve(Pe),De=[()=>y(()=>import("../nodes/0.CE0uBbp0.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),()=>y(()=>import("../nodes/1.
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.CE0uBbp0.js","../chunks/DsnmJJEf.js","../chunks/C8C04JmV.js","../chunks/BMQhMafy.js","../nodes/1.9GlBYpox.js","../chunks/x4Pz-wH_.js","../chunks/DwJfO5YS.js","../chunks/ButWEHh0.js","../nodes/2.B3qXd01D.js","../nodes/3.DuwUIVtX.js","../chunks/lSbGwHqC.js","../chunks/Cj9PL7OG.js","../chunks/DN_VTkOW.js","../nodes/4.C0wscA_4.js","../nodes/5.CWS-YJ56.js","../nodes/6.TEubHotu.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{x as I,y as G,w as U,E as W,R as z,C as J,S as K,T as Y,G as H,W as Q,a5 as x,ad as X,a3 as m,j as Z,ai as $,av as ee,q as te,aw as re,u as ae,ax as k,t as se,p as N,f as w,v as ne,a as b,r as oe,c as L,K as ie,L as ce,ay as O,az as le,J as ue}from"../chunks/C8C04JmV.js";import{h as fe,m as de,u as me,s as _e}from"../chunks/x4Pz-wH_.js";import"../chunks/DsnmJJEf.js";import{o as he}from"../chunks/ButWEHh0.js";import{p as A,i as T,b as S}from"../chunks/Cj9PL7OG.js";function C(l,e,s){I&&G();var i=l,n,r,t=null,a=null;function _(){r&&(Q(r),r=null),t&&(t.lastChild.remove(),i.before(t),t=null),r=a,a=null}U(()=>{if(n!==(n=e())){var h=Y();if(n){var c=i;h&&(t=document.createDocumentFragment(),t.append(c=z())),a=J(()=>s(c,n))}h?K.add_callback(_):_()}},W),I&&(i=H)}function ve(l){return class extends ge{constructor(e){super({component:l,...e})}}}class ge{#t;#e;constructor(e){var s=new Map,i=(r,t)=>{var a=ee(t,!1,!1);return s.set(r,a),a};const n=new Proxy({...e.props||{},$$events:{}},{get(r,t){return m(s.get(t)??i(t,Reflect.get(r,t)))},has(r,t){return t===X?!0:(m(s.get(t)??i(t,Reflect.get(r,t))),Reflect.has(r,t))},set(r,t,a){return x(s.get(t)??i(t,a),a),Reflect.set(r,t,a)}});this.#e=(e.hydrate?fe:de)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&Z(),this.#t=n.$$events;for(const r of Object.keys(this.#e))r==="$set"||r==="$destroy"||r==="$on"||$(this,r,{get(){return this.#e[r]},set(t){this.#e[r]=t},enumerable:!0});this.#e.$set=r=>{Object.assign(n,r)},this.#e.$destroy=()=>{me(this.#e)}}$set(e){this.#e.$set(e)}$on(e,s){this.#t[e]=this.#t[e]||[];const i=(...n)=>s.call(this,...n);return this.#t[e].push(i),()=>{this.#t[e]=this.#t[e].filter(n=>n!==i)}}$destroy(){this.#e.$destroy()}}const ye="modulepreload",Ee=function(l,e){return new URL(l,e).href},V={},y=function(e,s,i){let n=Promise.resolve();if(s&&s.length>0){let h=function(c){return Promise.all(c.map(d=>Promise.resolve(d).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};const t=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),_=a?.nonce||a?.getAttribute("nonce");n=h(s.map(c=>{if(c=Ee(c,i),c in V)return;V[c]=!0;const d=c.endsWith(".css"),v=d?'[rel="stylesheet"]':"";if(!!i)for(let o=t.length-1;o>=0;o--){const u=t[o];if(u.href===c&&(!d||u.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${v}`))return;const f=document.createElement("link");if(f.rel=d?"stylesheet":ye,d||(f.as="script"),f.crossOrigin="",f.href=c,_&&f.setAttribute("nonce",_),document.head.appendChild(f),d)return new Promise((o,u)=>{f.addEventListener("load",o),f.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${c}`)))})}))}function r(t){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=t,window.dispatchEvent(a),!a.defaultPrevented)throw t}return n.then(t=>{for(const a of t||[])a.status==="rejected"&&r(a.reason);return e().catch(r)})},Se={};var be=N('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),pe=N("<!> <!>",1);function Pe(l,e){te(e,!0);let s=A(e,"components",23,()=>[]),i=A(e,"data_0",3,null),n=A(e,"data_1",3,null);re(()=>e.stores.page.set(e.page)),ae(()=>{e.stores,e.page,e.constructors,s(),e.form,i(),n(),e.stores.page.notify()});let r=k(!1),t=k(!1),a=k(null);he(()=>{const o=e.stores.page.subscribe(()=>{m(r)&&(x(t,!0),se().then(()=>{x(a,document.title||"untitled page",!0)}))});return x(r,!0),o});const _=O(()=>e.constructors[1]);var h=pe(),c=w(h);{var d=o=>{var u=L();const p=O(()=>e.constructors[0]);var P=w(u);C(P,()=>m(p),(g,E)=>{S(E(g,{get data(){return i()},get form(){return e.form},get params(){return e.page.params},children:(R,xe)=>{var j=L(),q=w(j);C(q,()=>m(_),(B,F)=>{S(F(B,{get data(){return n()},get form(){return e.form},get params(){return e.page.params}}),M=>s()[1]=M,()=>s()?.[1])}),b(R,j)},$$slots:{default:!0}}),R=>s()[0]=R,()=>s()?.[0])}),b(o,u)},v=o=>{var u=L();const p=O(()=>e.constructors[0]);var P=w(u);C(P,()=>m(p),(g,E)=>{S(E(g,{get data(){return i()},get form(){return e.form},get params(){return e.page.params}}),R=>s()[0]=R,()=>s()?.[0])}),b(o,u)};T(c,o=>{e.constructors[1]?o(d):o(v,!1)})}var D=ne(c,2);{var f=o=>{var u=be(),p=ie(u);{var P=g=>{var E=le();ue(()=>_e(E,m(a))),b(g,E)};T(p,g=>{m(t)&&g(P)})}ce(u),b(o,u)};T(D,o=>{m(r)&&o(f)})}b(l,h),oe()}const Ce=ve(Pe),De=[()=>y(()=>import("../nodes/0.CE0uBbp0.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),()=>y(()=>import("../nodes/1.9GlBYpox.js"),__vite__mapDeps([4,1,2,5,6,7,3]),import.meta.url),()=>y(()=>import("../nodes/2.B3qXd01D.js"),__vite__mapDeps([8,1,2]),import.meta.url),()=>y(()=>import("../nodes/3.DuwUIVtX.js"),__vite__mapDeps([9,10,1,2,5,3,11,12]),import.meta.url),()=>y(()=>import("../nodes/4.C0wscA_4.js"),__vite__mapDeps([13,1,2,5,11,10,3]),import.meta.url),()=>y(()=>import("../nodes/5.CWS-YJ56.js"),__vite__mapDeps([14,1,12,2,5,11,10,3]),import.meta.url),()=>y(()=>import("../nodes/6.TEubHotu.js"),__vite__mapDeps([15,1,2,5,11,10,3]),import.meta.url)],je=[],Ie={"/_axium/default":[2],"/account":[3],"/login":[4],"/logout":[5],"/register":[6]},Re={handleError:({error:l})=>{console.error(l)},reroute:()=>{},transport:{}},we=Object.fromEntries(Object.entries(Re.transport).map(([l,e])=>[l,e.decode])),Ve=!1,Ne=(l,e)=>we[l](e);export{Ne as decode,we as decoders,Ie as dictionary,Ve as hash,Re as hooks,Se as matchers,De as nodes,Ce as root,je as server_loads};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as o,a as r}from"../chunks/DwJfO5YS.js";export{o as load_css,r as start};
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../chunks/DsnmJJEf.js";import{q as i,p as h,f as g,J as v,a as d,r as l,K as s,L as a,v as _}from"../chunks/C8C04JmV.js";import{s as o}from"../chunks/x4Pz-wH_.js";import{s as x,p}from"../chunks/
|
|
1
|
+
import"../chunks/DsnmJJEf.js";import{q as i,p as h,f as g,J as v,a as d,r as l,K as s,L as a,v as _}from"../chunks/C8C04JmV.js";import{s as o}from"../chunks/x4Pz-wH_.js";import{s as x,p}from"../chunks/DwJfO5YS.js";const $={get error(){return p.error},get status(){return p.status}};x.updated.check;const m=$;var k=h("<h1> </h1> <p> </p>",1);function K(c,n){i(n,!0);var t=k(),r=g(t),u=s(r,!0);a(r);var e=_(r,2),f=s(e,!0);a(e),v(()=>{o(u,m.status),o(f,m.error?.message)}),d(c,t),l()}export{K as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import{g as sa,e as ia,c as la,d as oa,a as at,f as Rt,s as ie,z as $,h as et,p as St,i as ca,j as Lt,k as Pt,m as va,F as Be,n as Ot,o as ua,q as da,t as gt,u as fa,v as _a,w as ha,x as ma,y as pa,A as ga,B as ba}from"../chunks/lSbGwHqC.js";import"../chunks/DsnmJJEf.js";import{Y as Ut,x as Se,P as ut,H as Bt,w as ya,y as wa,a3 as n,a9 as jt,M as ka,N as xa,O as Dt,Q as bt,G as $e,ak as Ea,ap as Ta,C as xt,T as Ca,S as Aa,aA as Mt,R as Yt,av as Ia,aB as Nt,at as Wt,i as Sa,aC as ft,V as Gt,W as La,aD as _t,aE as Pa,aF as yt,F as Jt,am as Oa,aG as Da,as as Ma,aH as Na,a6 as Kt,aI as Qt,Z as Xt,aJ as Va,E as Fa,aK as za,aL as Ha,X as qa,h as Zt,aM as Ra,ac as Ua,D as je,q as rt,aN as Ba,J as U,a as p,r as nt,K as w,L as _,ay as re,aO as Et,p as S,ax as tt,a5 as Oe,aP as $t,a4 as Ge,c as Y,f as q,v as k,$ as ja,I as Ya,aQ as Wa}from"../chunks/C8C04JmV.js";import{b as Ga,w as ea,l as Ja,d as Qe,s as Q,a as Ka}from"../chunks/x4Pz-wH_.js";import{r as Qa,p as dt,i as F,b as ct}from"../chunks/Cj9PL7OG.js";import{L as Xa}from"../chunks/DN_VTkOW.js";function Je(a,e){Se&&ut(Bt(a)),Ut(()=>{var t=e();for(var i in t){var r=t[i];r?a.style.setProperty(i,r):a.style.removeProperty(i)}})}function Le(a,e){return e}function Za(a,e,t){for(var i=a.items,r=[],g=e.length,f=0;f<g;f++)Da(e[f].e,r,!0);var c=g>0&&r.length===0&&t!==null;if(c){var d=t.parentNode;Ma(d),d.append(t),i.clear(),he(a,e[0].prev,e[g-1].next)}Na(r,()=>{for(var l=0;l<g;l++){var o=e[l];c||(i.delete(o.k),he(a,o.prev,o.next)),Jt(o.e,!c)}})}function Pe(a,e,t,i,r,g=null){var f=a,c={flags:e,items:new Map,first:null},d=(e&Qt)!==0;if(d){var l=a;f=Se?ut(Bt(l)):l.appendChild(Yt())}Se&&wa();var o=null,h=!1,E=new Map,P=jt(()=>{var y=t();return Sa(y)?y:y==null?[]:Wt(y)}),v,u;function s(){$a(u,v,c,E,f,r,e,i,t),g!==null&&(v.length===0?o?Gt(o):o=xt(()=>g(f)):o!==null&&La(o,()=>{o=null}))}ya(()=>{u??=Kt,v=n(P);var y=v.length;if(h&&y===0)return;h=y===0;let T=!1;if(Se){var x=ka(f)===xa;x!==(y===0)&&(f=Dt(),ut(f),bt(!1),T=!0)}if(Se){for(var N=null,I,b=0;b<y;b++){if($e.nodeType===Ea&&$e.data===Ta){f=$e,T=!0,bt(!1);break}var C=v[b],O=i(C,b);I=Tt($e,c,N,null,C,O,b,r,e,t),c.items.set(O,I),N=I}y>0&&ut(Dt())}if(Se)y===0&&g&&(o=xt(()=>g(f)));else if(Ca()){var z=new Set,ve=Aa;for(b=0;b<y;b+=1){C=v[b],O=i(C,b);var ue=c.items.get(O)??E.get(O);ue?(e&(_t|ft))!==0&&ta(ue,C,b,e):(I=Tt(null,c,null,null,C,O,b,r,e,t,!0),E.set(O,I)),z.add(O)}for(const[ee,pe]of c.items)z.has(ee)||ve.skipped_effects.add(pe.e);ve.add_callback(s)}else s();T&&bt(!0),n(P)}),Se&&(f=$e)}function $a(a,e,t,i,r,g,f,c,d){var l=(f&Va)!==0,o=(f&(_t|ft))!==0,h=e.length,E=t.items,P=t.first,v=P,u,s=null,y,T=[],x=[],N,I,b,C;if(l)for(C=0;C<h;C+=1)N=e[C],I=c(N,C),b=E.get(I),b!==void 0&&(b.a?.measure(),(y??=new Set).add(b));for(C=0;C<h;C+=1){if(N=e[C],I=c(N,C),b=E.get(I),b===void 0){var O=i.get(I);if(O!==void 0){i.delete(I),E.set(I,O);var z=s?s.next:v;he(t,s,O),he(t,O,z),wt(O,z,r),s=O}else{var ve=v?v.e.nodes_start:r;s=Tt(ve,t,s,s===null?t.first:s.next,N,I,C,g,f,d)}E.set(I,s),T=[],x=[],v=s.next;continue}if(o&&ta(b,N,C,f),(b.e.f&yt)!==0&&(Gt(b.e),l&&(b.a?.unfix(),(y??=new Set).delete(b))),b!==v){if(u!==void 0&&u.has(b)){if(T.length<x.length){var ue=x[0],ee;s=ue.prev;var pe=T[0],te=T[T.length-1];for(ee=0;ee<T.length;ee+=1)wt(T[ee],ue,r);for(ee=0;ee<x.length;ee+=1)u.delete(x[ee]);he(t,pe.prev,te.next),he(t,s,pe),he(t,te,ue),v=ue,s=te,C-=1,T=[],x=[]}else u.delete(b),wt(b,v,r),he(t,b.prev,b.next),he(t,b,s===null?t.first:s.next),he(t,s,b),s=b;continue}for(T=[],x=[];v!==null&&v.k!==I;)(v.e.f&yt)===0&&(u??=new Set).add(v),x.push(v),v=v.next;if(v===null)continue;b=v}T.push(b),s=b,v=b.next}if(v!==null||u!==void 0){for(var X=u===void 0?[]:Wt(u);v!==null;)(v.e.f&yt)===0&&X.push(v),v=v.next;var W=X.length;if(W>0){var ge=(f&Qt)!==0&&h===0?r:null;if(l){for(C=0;C<W;C+=1)X[C].a?.measure();for(C=0;C<W;C+=1)X[C].a?.fix()}Za(t,X,ge)}}l&&Xt(()=>{if(y!==void 0)for(b of y)b.a?.apply()}),a.first=t.first&&t.first.e,a.last=s&&s.e;for(var be of i.values())Jt(be.e);i.clear()}function ta(a,e,t,i){(i&_t)!==0&&Mt(a.v,e),(i&ft)!==0?Mt(a.i,t):a.i=t}function Tt(a,e,t,i,r,g,f,c,d,l,o){var h=(d&_t)!==0,E=(d&Pa)===0,P=h?E?Ia(r,!1,!1):Nt(r):r,v=(d&ft)===0?f:Nt(f),u={i:v,v:P,k:g,a:null,e:null,prev:t,next:i};try{if(a===null){var s=document.createDocumentFragment();s.append(a=Yt())}return u.e=xt(()=>c(a,P,v,l),Se),u.e.prev=t&&t.e,u.e.next=i&&i.e,t===null?o||(e.first=u):(t.next=u,t.e.next=u.e),i!==null&&(i.prev=u,i.e.prev=u.e),u}finally{}}function wt(a,e,t){for(var i=a.next?a.next.e.nodes_start:t,r=e?e.e.nodes_start:t,g=a.e.nodes_start;g!==null&&g!==i;){var f=Oa(g);r.before(g),g=f}}function he(a,e,t){e===null?a.first=t:(e.next=t,e.e.next=t&&t.e),t!==null&&(t.prev=e,t.e.prev=e&&e.e)}const er=()=>performance.now(),De={tick:a=>requestAnimationFrame(a),now:()=>er(),tasks:new Set};function aa(){const a=De.now();De.tasks.forEach(e=>{e.c(a)||(De.tasks.delete(e),e.f())}),De.tasks.size!==0&&De.tick(aa)}function tr(a){let e;return De.tasks.size===0&&De.tick(aa),{promise:new Promise(t=>{De.tasks.add(e={c:a,f:t})}),abort(){De.tasks.delete(e)}}}function vt(a,e){ea(()=>{a.dispatchEvent(new CustomEvent(e))})}function ar(a){if(a==="float")return"cssFloat";if(a==="offset")return"cssOffset";if(a.startsWith("--"))return a;const e=a.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(t=>t[0].toUpperCase()+t.slice(1)).join("")}function Vt(a){const e={},t=a.split(";");for(const i of t){const[r,g]=i.split(":");if(!r||g===void 0)break;const f=ar(r.trim());e[f]=g.trim()}return e}const rr=a=>a;function Ft(a,e,t,i){var r=(a&Ra)!==0,g="both",f,c=e.inert,d=e.style.overflow,l,o;function h(){return ea(()=>f??=t()(e,i?.()??{},{direction:g}))}var E={is_global:r,in(){e.inert=c,vt(e,"introstart"),l=Ct(e,h(),o,1,()=>{vt(e,"introend"),l?.abort(),l=f=void 0,e.style.overflow=d})},out(s){e.inert=!0,vt(e,"outrostart"),o=Ct(e,h(),l,0,()=>{vt(e,"outroend"),s?.()})},stop:()=>{l?.abort(),o?.abort()}},P=Kt;if((P.transitions??=[]).push(E),Ga){var v=r;if(!v){for(var u=P.parent;u&&(u.f&Fa)!==0;)for(;(u=u.parent)&&(u.f&za)===0;);v=!u||(u.f&Ha)!==0}v&&qa(()=>{Zt(()=>E.in())})}}function Ct(a,e,t,i,r){var g=i===1;if(Ua(e)){var f,c=!1;return Xt(()=>{if(!c){var s=e({direction:g?"in":"out"});f=Ct(a,s,t,i,r)}}),{abort:()=>{c=!0,f?.abort()},deactivate:()=>f.deactivate(),reset:()=>f.reset(),t:()=>f.t()}}if(t?.deactivate(),!e?.duration)return r(),{abort:je,deactivate:je,reset:je,t:()=>i};const{delay:d=0,css:l,tick:o,easing:h=rr}=e;var E=[];if(g&&t===void 0&&(o&&o(0,1),l)){var P=Vt(l(0,1));E.push(P,P)}var v=()=>1-i,u=a.animate(E,{duration:d,fill:"forwards"});return u.onfinish=()=>{u.cancel();var s=t?.t()??1-i;t?.abort();var y=i-s,T=e.duration*Math.abs(y),x=[];if(T>0){var N=!1;if(l)for(var I=Math.ceil(T/16.666666666666668),b=0;b<=I;b+=1){var C=s+y*h(b/I),O=Vt(l(C,1-C));x.push(O),N||=O.overflow==="hidden"}N&&(a.style.overflow="hidden"),v=()=>{var z=u.currentTime;return s+y*h(z/T)},o&&tr(()=>{if(u.playState!=="running")return!1;var z=v();return o(z,1-z),!0})}u=a.animate(x,{duration:T,fill:"forwards"}),u.onfinish=()=>{v=()=>i,o?.(i,1-i),r()}},{abort:()=>{u&&(u.cancel(),u.effect=null,u.onfinish=je)},deactivate:()=>{r=je},reset:()=>{i===0&&o?.(1,0)},t:()=>v()}}function nr(a,e,t=e){Ja(a,"change",i=>{var r=i?a.defaultChecked:a.checked;t(r)}),(Se&&a.defaultChecked!==a.checked||Zt(e)==null)&&t(a.checked),Ut(()=>{var i=e();a.checked=!!i})}const sr=!1;async function ir(){let a;try{a=await sa()}catch{throw window.location.href="/login?after=/account","Missing session, redirecting to login"}const e=a.user;return{currentSession:a,user:e,passkeys:await oa(e.id),sessions:await la(e.id),canVerify:await ia(e.id)}}const mn=Object.freeze(Object.defineProperty({__proto__:null,load:ir,ssr:sr},Symbol.toStringTag,{value:"Module"}));var lr=Ba("<svg><use></use></svg>");const or={hash:"svelte-1l501sr",code:"svg.svelte-1l501sr {width:var(--size, 1em);height:var(--size, 1em);display:inline-block;fill:var(--fill, hsl(var(--hue) 0 var(--fg-light)));}"};function me(a,e){rt(e,!0),at(a,or);const t=Qa(e,["$$slots","$$events","$$legacy","i"]),i=re(()=>e.i.includes("/")?e.i.split("/"):["solid",e.i]),r=re(()=>Et(n(i),2)),g=re(()=>n(r)[0]),f=re(()=>n(r)[1]),c=re(()=>`/icons/${n(g)}.svg#${n(f)}`);var d=lr();Rt(d,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:"1em",height:"1em",...t}),void 0,void 0,"svelte-1l501sr");var l=w(d);_(d),U(()=>ie(l,"href",n(c))),p(a,d),nt()}Qe(["click"]);const cr=a=>a;function zt(a,{delay:e=0,duration:t=400,easing:i=cr}={}){const r=+getComputedStyle(a).opacity;return{delay:e,duration:t,easing:i,css:g=>`opacity: ${g*r}`}}var kt={exports:{}},Ht;function vr(){return Ht||(Ht=1,function(a){var e=Object.prototype.hasOwnProperty,t="~";function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(t=!1));function r(d,l,o){this.fn=d,this.context=l,this.once=o||!1}function g(d,l,o,h,E){if(typeof o!="function")throw new TypeError("The listener must be a function");var P=new r(o,h||d,E),v=t?t+l:l;return d._events[v]?d._events[v].fn?d._events[v]=[d._events[v],P]:d._events[v].push(P):(d._events[v]=P,d._eventsCount++),d}function f(d,l){--d._eventsCount===0?d._events=new i:delete d._events[l]}function c(){this._events=new i,this._eventsCount=0}c.prototype.eventNames=function(){var l=[],o,h;if(this._eventsCount===0)return l;for(h in o=this._events)e.call(o,h)&&l.push(t?h.slice(1):h);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(o)):l},c.prototype.listeners=function(l){var o=t?t+l:l,h=this._events[o];if(!h)return[];if(h.fn)return[h.fn];for(var E=0,P=h.length,v=new Array(P);E<P;E++)v[E]=h[E].fn;return v},c.prototype.listenerCount=function(l){var o=t?t+l:l,h=this._events[o];return h?h.fn?1:h.length:0},c.prototype.emit=function(l,o,h,E,P,v){var u=t?t+l:l;if(!this._events[u])return!1;var s=this._events[u],y=arguments.length,T,x;if(s.fn){switch(s.once&&this.removeListener(l,s.fn,void 0,!0),y){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,o),!0;case 3:return s.fn.call(s.context,o,h),!0;case 4:return s.fn.call(s.context,o,h,E),!0;case 5:return s.fn.call(s.context,o,h,E,P),!0;case 6:return s.fn.call(s.context,o,h,E,P,v),!0}for(x=1,T=new Array(y-1);x<y;x++)T[x-1]=arguments[x];s.fn.apply(s.context,T)}else{var N=s.length,I;for(x=0;x<N;x++)switch(s[x].once&&this.removeListener(l,s[x].fn,void 0,!0),y){case 1:s[x].fn.call(s[x].context);break;case 2:s[x].fn.call(s[x].context,o);break;case 3:s[x].fn.call(s[x].context,o,h);break;case 4:s[x].fn.call(s[x].context,o,h,E);break;default:if(!T)for(I=1,T=new Array(y-1);I<y;I++)T[I-1]=arguments[I];s[x].fn.apply(s[x].context,T)}}return!0},c.prototype.on=function(l,o,h){return g(this,l,o,h,!1)},c.prototype.once=function(l,o,h){return g(this,l,o,h,!0)},c.prototype.removeListener=function(l,o,h,E){var P=t?t+l:l;if(!this._events[P])return this;if(!o)return f(this,P),this;var v=this._events[P];if(v.fn)v.fn===o&&(!E||v.once)&&(!h||v.context===h)&&f(this,P);else{for(var u=0,s=[],y=v.length;u<y;u++)(v[u].fn!==o||E&&!v[u].once||h&&v[u].context!==h)&&s.push(v[u]);s.length?this._events[P]=s.length===1?s[0]:s:f(this,P)}return this},c.prototype.removeAllListeners=function(l){var o;return l?(o=t?t+l:l,this._events[o]&&f(this,o)):(this._events=new i,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=t,c.EventEmitter=c,a.exports=c}(kt)),kt.exports}vr();function ur(a,...e){const t={};for(const i of e.flat())t[i]=a[i];return t}function We(a,e,t=/[.[\]'"]/){return e.split(t).filter(i=>i&&i!="__proto__").reduce((i,r)=>i?.[r],a)}function dr(a,e,t,i=/[.[\]'"]/){return e.split(i).filter(r=>r&&r!="__proto__").reduce((r,g,f)=>r[g]=e.split(i).filter(c=>c).length===++f?t:r[g]||{},a)}function fr(a){return new Promise(e=>setTimeout(e,a))}const qt=Intl.NumberFormat("en",{notation:"compact"});qt.format.bind(qt);new TextEncoder;new TextDecoder;async function _r(a,e,t,i){const r=new Blob([e.value],{type:t()}),g=new ClipboardItem({[t()]:r});await navigator.clipboard.write([g]),Oe(i,!0),await fr(3e3),Oe(i,!1)}var hr=S('<span class="svelte-g409dh"><!></span>'),mr=S('<span class="svelte-g409dh"><!></span>'),pr=S('<button class="svelte-g409dh"><!></button>');const gr={hash:"svelte-g409dh",code:"button.svelte-g409dh {position:relative;display:inline-block;width:1em;height:1em;border:none;background:transparent;}span.svelte-g409dh {position:absolute;inset:0;}"};function br(a,e){rt(e,!0),at(a,gr);const t=dt(e,"type",3,"text/plain");let i=tt(!1);var r=pr();r.__click=[_r,e,t,i];var g=w(r);{var f=d=>{var l=hr(),o=w(l);me(o,{i:"check"}),_(l),Ft(3,l,()=>zt),p(d,l)},c=d=>{var l=mr(),o=w(l);me(o,{i:"copy"}),_(l),Ft(3,l,()=>zt),p(d,l)};F(g,d=>{n(i)?d(f):d(c,!1)})}_(r),p(a,r),nt()}Qe(["click"]);var yr=S("<input/>"),wr=S('<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>',1),kr=S('<input type="checkbox" class="svelte-23hpnn"/> <label class="checkbox svelte-23hpnn"><!></label>',1),xr=S("<option> </option>"),Er=S("<select></select>"),Tr=S('<div class="pref-record-entry"><!></div>'),Cr=S('<div class="pref-sub"></div>'),Ar=S('<div class="pref-record-entry"><label> </label> <!></div>'),Ir=S('<div class="pref-sub"></div>'),Sr=S('<div class="pref-sub"><label> </label> <!></div>'),Lr=S('<div class="pref-sub"></div>'),Pr=S("<option> </option>"),Or=S("<select></select>"),Dr=S('<i class="error-text"> </i>');const Mr={hash:"svelte-23hpnn",code:"input[type='checkbox'].svelte-23hpnn {display:none;}label.checkbox.svelte-23hpnn {cursor:pointer;width:1.5em;height:1.5em;border:1px solid var(--border-accent);border-radius:0.5em;display:inline-flex;justify-content:center;align-items:center;}"};function Ke(a,e){const t=$t();rt(e,!0),at(a,Mr);const i=(u,s=je)=>{var y=yr();et(y),Rt(y,()=>({id:t,...s(),value:n(d),onchange:o,required:!g()}),void 0,void 0,"svelte-23hpnn"),ct(y,T=>Oe(f,T),()=>n(f)),p(u,y)};let r=dt(e,"preferences",15),g=dt(e,"optional",3,!1),f=tt(void 0),c=tt(Ge(e.schema.def.type=="boolean"&&We(r(),e.path)));const d=re(()=>We(r(),e.path)??We(St,e.path));function l(u,s){if(!u)return null;const y=z=>String(z).padStart(2,"0"),T=u.getFullYear(),x=y(u.getMonth()+1),N=y(u.getDate()),I=`${T}-${x}-${N}`,b=y(u.getHours()),C=y(u.getMinutes()),O=`${b}:${C}`;switch(s){case"date":return I;case"time":return O;case"time+sec":return`${O}:${y(u.getSeconds())}`;case"datetime":default:return`${I}T${O}`}}function o(u){const s=e.schema.parse(n(f)instanceof HTMLInputElement&&n(f).type==="checkbox"?n(f).checked:n(f).value);if(s!=We(r(),e.path)){if(We(St,e.path)==s){const y=e.path.split("."),T=y.pop();delete We(r(),y.join("."))[T]}else dr(r(),e.path,s);ca("PATCH","users/:id",{preferences:r()},e.userId)}}var h=Y(),E=q(h);{var P=u=>{{let s=re(()=>({type:e.schema.format=="email"?"email":"text",...ur(e.schema,"minLength","maxLength")}));i(u,()=>n(s))}},v=u=>{var s=Y(),y=q(s);{var T=N=>{{let I=re(()=>({type:"number",min:e.schema.minValue,max:e.schema.maxValue,step:e.schema.format?.includes("int")?1:.1}));i(N,()=>n(I))}},x=N=>{var I=Y(),b=q(I);{var C=z=>{{let ve=re(()=>({type:"number",min:Number(e.schema.minValue),max:Number(e.schema.maxValue),step:1}));i(z,()=>n(ve))}},O=z=>{var ve=Y(),ue=q(ve);{var ee=te=>{var X=kr(),W=q(X);et(W),W.__change=o,ct(W,G=>Oe(f,G),()=>n(f));var ge=k(W,2),be=w(ge);{var de=G=>{var ze=wr(),Me=q(ze);Je(Me,()=>({"--size":"1.3em"})),me(Me.lastChild,{i:"check"}),_(Me),p(G,ze)};F(be,G=>{n(c)&&G(de)})}_(ge),U(()=>{ie(W,"id",t),W.required=!g(),ie(ge,"for",t)}),nr(W,()=>n(c),G=>Oe(c,G)),p(te,X)},pe=te=>{var X=Y(),W=q(X);{var ge=de=>{{let G=re(()=>({type:"date",min:l(e.schema.minDate,"date"),max:l(e.schema.maxDate,"date")}));i(de,()=>n(G))}},be=de=>{var G=Y(),ze=q(G);{var Me=Ne=>{},Xe=Ne=>{var st=Y(),Ze=q(st);{var it=fe=>{var le=Er();le.__change=o,Pe(le,21,()=>e.schema.values,Le,(ye,we)=>{var oe=xr(),ke=w(oe,!0);_(oe);var He={};U(()=>{Lt(oe,n(d)===n(we)),Q(ke,n(we)),He!==(He=n(we))&&(oe.value=(oe.__value=n(we))??"")}),p(ye,oe)}),_(le),ct(le,ye=>Oe(f,ye),()=>n(f)),U(()=>{ie(le,"id",t),le.required=!g()}),p(fe,le)},lt=fe=>{var le=Y(),ye=q(le);{var we=ke=>{},oe=ke=>{var He=Y(),ot=q(He);{var ht=m=>{Ke(m,{get userId(){return e.userId},get path(){return e.path},get schema(){return e.schema.def.innerType},optional:!0,get preferences(){return r()},set preferences(M){r(M)}})},A=m=>{var M=Y(),R=q(M);{var B=Z=>{var ne=Cr();Pe(ne,21,()=>n(d),Le,(xe,qe,Ee)=>{var ae=Tr(),J=w(ae);Ke(J,{get userId(){return e.userId},get path(){return`${e.path??""}.${Ee}`},get schema(){return e.schema.element},get preferences(){return r()},set preferences(Te){r(Te)}}),_(ae),p(xe,ae)}),_(ne),p(Z,ne)},j=Z=>{var ne=Y(),xe=q(ne);{var qe=ae=>{var J=Ir();Pe(J,21,()=>Object.keys(n(d)),Le,(Te,Ce)=>{var Ae=Ar(),D=w(Ae),K=w(D,!0);_(D);var ce=k(D,2);Ke(ce,{get userId(){return e.userId},get path(){return`${e.path??""}.${n(Ce)??""}`},get schema(){return e.schema.valueType},get preferences(){return r()},set preferences(Ie){r(Ie)}}),_(Ae),U(()=>{ie(D,"for",t),Q(K,n(Ce))}),p(Te,Ae)}),_(J),p(ae,J)},Ee=ae=>{var J=Y(),Te=q(J);{var Ce=D=>{var K=Y(),ce=q(K);Pe(ce,17,()=>Object.entries(e.schema.shape),Le,(Ie,L)=>{var H=re(()=>Et(n(L),2));let V=()=>n(H)[0],Ve=()=>n(H)[1];var Re=Sr(),Fe=w(Re),_e=w(Fe,!0);_(Fe);var se=k(Fe,2);Ke(se,{get userId(){return e.userId},get path(){return`${e.path??""}.${V()??""}`},get schema(){return Ve()},get preferences(){return r()},set preferences(Ue){r(Ue)}}),_(Re),U(()=>{ie(Fe,"for",t),Q(_e,V())}),p(Ie,Re)}),p(D,K)},Ae=D=>{var K=Y(),ce=q(K);{var Ie=H=>{var V=Lr();Pe(V,21,()=>e.schema.def.items,Le,(Ve,Re,Fe)=>{Ke(Ve,{get userId(){return e.userId},get path(){return`${e.path??""}.${Fe}`},get schema(){return n(Re)},get preferences(){return r()},set preferences(_e){r(_e)}})}),_(V),U(()=>ie(V,"data-rest",e.schema.def.rest)),p(H,V)},L=H=>{var V=Y(),Ve=q(V);{var Re=_e=>{var se=Or();se.__change=o,Pe(se,21,()=>Object.entries(e.schema.enum),Le,(Ue,mt)=>{var At=re(()=>Et(n(mt),2));let ra=()=>n(At)[0],pt=()=>n(At)[1];var Ye=Pr(),na=w(Ye,!0);_(Ye);var It={};U(()=>{Lt(Ye,n(d)===pt()),Q(na,ra()),It!==(It=pt())&&(Ye.value=(Ye.__value=pt())??"")}),p(Ue,Ye)}),_(se),ct(se,Ue=>Oe(f,Ue),()=>n(f)),U(()=>{ie(se,"id",t),se.required=!g()}),p(_e,se)},Fe=_e=>{var se=Dr(),Ue=w(se);_(se),U(mt=>Q(Ue,`Invalid preference type: ${mt??""}`),[()=>JSON.stringify(e.schema?.def?.type)]),p(_e,se)};F(Ve,_e=>{$(e.schema,"enum")?_e(Re):_e(Fe,!1)},!0)}p(H,V)};F(ce,H=>{$(e.schema,"tuple")?H(Ie):H(L,!1)},!0)}p(D,K)};F(Te,D=>{$(e.schema,"object")?D(Ce):D(Ae,!1)},!0)}p(ae,J)};F(xe,ae=>{$(e.schema,"record")?ae(qe):ae(Ee,!1)},!0)}p(Z,ne)};F(R,Z=>{$(e.schema,"array")?Z(B):Z(j,!1)},!0)}p(m,M)};F(ot,m=>{$(e.schema,"nullable")||$(e.schema,"optional")?m(ht):m(A,!1)},!0)}p(ke,He)};F(ye,ke=>{$(e.schema,"template_literal")?ke(we):ke(oe,!1)},!0)}p(fe,le)};F(Ze,fe=>{$(e.schema,"literal")?fe(it):fe(lt,!1)},!0)}p(Ne,st)};F(ze,Ne=>{$(e.schema,"file")?Ne(Me):Ne(Xe,!1)},!0)}p(de,G)};F(W,de=>{$(e.schema,"date")?de(ge):de(be,!1)},!0)}p(te,X)};F(ue,te=>{$(e.schema,"boolean")?te(ee):te(pe,!1)},!0)}p(z,ve)};F(b,z=>{$(e.schema,"bigint")?z(C):z(O,!1)},!0)}p(N,I)};F(y,N=>{$(e.schema,"number")?N(T):N(x,!1)},!0)}p(u,s)};F(E,u=>{$(e.schema,"string")?u(P):u(v,!1)})}p(a,h),nt()}Qe(["change"]);var Nr=S('<div class="pref svelte-b9ddyh"><label> </label> <!></div>');const Vr={hash:"svelte-b9ddyh",code:".pref.svelte-b9ddyh {display:grid;grid-template-columns:1fr 1fr;gap:1em;}"};function Fr(a,e){const t=$t();rt(e,!0),at(a,Vr);let i=dt(e,"preferences",15);var r=Y(),g=q(r);Pe(g,17,()=>Object.keys(Pt),Le,(f,c)=>{var d=Nr(),l=w(d),o=w(l,!0);_(l);var h=k(l,2);Ke(h,{get userId(){return e.userId},get path(){return n(c)},get schema(){return Pt[n(c)]},get preferences(){return i()},set preferences(E){i(E)}}),_(d),U(()=>{ie(l,"for",t),Q(o,va[n(c)])}),p(f,d)}),p(a,r),nt()}Qe(["click"]);Qe(["click"]);var zr=(a,e,t)=>e[t()].showModal(),Hr=S('<button class="svelte-c74k6c"><svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper></button>'),qr=S('<div><label for="name">What do you want to be called?</label> <input name="name" type="text" required/></div>'),Rr=S("<dfn><!></dfn>"),Ur=(a,e,t)=>ba(n(e).id).then(()=>Oe(t,!0)),Br=S("<button> </button>"),jr=S('<div><label for="email">Email Address</label> <input name="email" type="email" required/></div>'),Yr=(a,e)=>e.logout.showModal(),Wr=(a,e)=>e.delete.showModal(),Gr=S("<p>Are you sure you want to delete your account?<br/>This action can't be undone.</p>"),Jr=S("<p> </p>"),Kr=S('<p class="subtle"><i>Unnamed</i></p>'),Qr=S('<dfn title="You must have at least one passkey" class="disabled svelte-c74k6c"><svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper></dfn>'),Xr=S('<div><label for="name">Passkey Name</label> <input name="name" type="text"/></div>'),Zr=S("<p>Are you sure you want to delete this passkey?<br/>This action can't be undone.</p>"),$r=S('<div class="item passkey svelte-c74k6c"><dfn class="svelte-c74k6c"><svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper></dfn> <dfn class="svelte-c74k6c"><svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper></dfn> <!> <p> </p> <!> <!></div> <!> <!>',1),en=(a,e,t)=>ua(n(e).id).then(t.push.bind(t)),tn=S('<span class="current svelte-c74k6c">Current</span>'),an=S('<span class="elevated svelte-c74k6c">Elevated</span>'),rn=S("<p>Are you sure you want to log out this session?</p>"),nn=S('<div class="item session svelte-c74k6c"><p> <!> <!></p> <p> </p> <p> </p> <!></div> <!>',1),sn=(a,e)=>e.logout_all.showModal(),ln=S("<p>Are you sure you want to log out all sessions?</p>"),on=S(`<div class="Account flex-content"><div id="pfp-container" class="svelte-c74k6c"><img id="pfp" alt="User profile" width="100px" height="100px" class="svelte-c74k6c"/></div> <p class="greeting svelte-c74k6c"> </p> <div class="section main svelte-c74k6c"><h3>Personal Information</h3> <div class="item info svelte-c74k6c"><p class="subtle svelte-c74k6c">Name</p> <p class="svelte-c74k6c"> </p> <!></div> <!> <div class="item info svelte-c74k6c"><p class="subtle svelte-c74k6c">Email</p> <p class="svelte-c74k6c"> <!></p> <!></div> <!> <div class="item info svelte-c74k6c"><p class="subtle svelte-c74k6c">User ID <dfn title="This is your UUID. It can't be changed."><!></dfn></p> <p class="svelte-c74k6c"> </p> <svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper></div> <span><button class="signout svelte-c74k6c">Sign Out</button> <button class="danger">Delete Account</button> <!> <!></span></div> <div class="section main svelte-c74k6c"><h3>Passkeys</h3> <!> <span><button class="icon-text"><!> Create</button></span></div> <div class="section main svelte-c74k6c"><h3>Sessions</h3> <!> <span><button class="danger">Logout All</button></span> <!></div> <div class="section main svelte-c74k6c"><h3>Preferences</h3> <!></div></div>`);const cn={hash:"svelte-c74k6c",code:`#pfp-container.svelte-c74k6c {width:100px;height:100px;margin-top:3em;.MenuToggle {float:right;position:relative;top:-24px;}}#pfp.svelte-c74k6c {width:100px;height:100px;border-radius:50%;border:1px solid #8888;}.greeting.svelte-c74k6c {font-size:2em;}.signout.svelte-c74k6c {margin-top:2em;}.section.svelte-c74k6c {width:50%;padding-top:4em;
|
|
2
|
+
|
|
3
|
+
/* This is causing duplicate separators when removing sessions/passkeys
|
|
4
|
+
> div:has(+ div) {
|
|
5
|
+
border-bottom: 1px solid #8888;
|
|
6
|
+
}
|
|
7
|
+
*/}.section.svelte-c74k6c .item:where(.svelte-c74k6c) {display:grid;align-items:center;width:100%;gap:1em;text-wrap:nowrap;border-top:1px solid #8888;padding-bottom:1em;}.info.svelte-c74k6c {grid-template-columns:10em 1fr 2em;> :where(.svelte-c74k6c):first-child {margin-left:1em;}> :where(.svelte-c74k6c):nth-child(2) {text-overflow:ellipsis;overflow:hidden;}}.passkey.svelte-c74k6c {grid-template-columns:1em 1em 1fr 1fr 1em 1em;dfn:where(.svelte-c74k6c):not(.disabled) {cursor:help;}}.session.svelte-c74k6c {grid-template-columns:1fr 1fr 1fr 1em;.current:where(.svelte-c74k6c) {border-radius:2em;padding:0 0.5em;background-color:#337;}.elevated:where(.svelte-c74k6c) {border-radius:2em;padding:0 0.5em;background-color:#733;}}`};function pn(a,e){rt(e,!0),at(a,cn);const t=(A,m=je,M)=>{let R=jt(()=>Wa(M?.(),"pen"));var B=Hr();B.__click=[zr,r,m],Ot(B,"",{},{display:"contents"});var j=w(B);Je(j,()=>({"--size":"16px"})),me(j.lastChild,{get i(){return n(R)}}),_(j),_(B),p(A,B)},{canVerify:i}=e.data,r=Ge({});let g=tt(!1),f=Ge(e.data.currentSession),c=tt(Ge(e.data.user)),d=Ge(e.data.passkeys),l=Ge(e.data.sessions);async function o(A){const m=await ha(n(c).id,A);Oe(c,m,!0)}var h=on();Ka(A=>{ja.title="Account"});var E=w(h),P=w(E);_(E);var v=k(E,2),u=w(v);_(v);var s=k(v,2),y=k(w(s),2),T=k(w(y),2),x=w(T,!0);_(T);var N=k(T,2);t(N,()=>"edit_name"),_(y);var I=k(y,2);Be(I,{submit:o,submitText:"Change",get dialog(){return r.edit_name},set dialog(A){r.edit_name=A},children:(A,m)=>{var M=qr(),R=k(w(M),2);et(R),_(M),U(()=>gt(R,n(c).name||"")),p(A,M)},$$slots:{default:!0}});var b=k(I,2),C=k(w(b),2),O=w(C),z=k(O);{var ve=A=>{var m=Rr(),M=w(m);me(M,{i:"regular/circle-check"}),_(m),U(R=>ie(m,"title",`Email verified on ${R??""}`),[()=>n(c).emailVerified.toLocaleDateString()]),p(A,m)},ue=A=>{var m=Y(),M=q(m);{var R=B=>{var j=Br();j.__click=[Ur,c,g];var Z=w(j,!0);_(j),U(()=>Q(Z,n(g)?"Verification email sent":"Verify")),p(B,j)};F(M,B=>{i&&B(R)},!0)}p(A,m)};F(z,A=>{n(c).emailVerified?A(ve):A(ue,!1)})}_(C);var ee=k(C,2);t(ee,()=>"edit_email"),_(b);var pe=k(b,2);Be(pe,{submit:o,submitText:"Change",get dialog(){return r.edit_email},set dialog(A){r.edit_email=A},children:(A,m)=>{var M=jr(),R=k(w(M),2);et(R),_(M),U(()=>gt(R,n(c).email||"")),p(A,M)},$$slots:{default:!0}});var te=k(pe,2),X=w(te),W=k(w(X)),ge=w(W);me(ge,{i:"regular/circle-info"}),_(W),_(X);var be=k(X,2),de=w(be,!0);_(be);var G=k(be,2);Je(G,()=>({"--size":"16px"})),br(G.lastChild,{get value(){return n(c).id}}),_(G),_(te);var ze=k(te,2),Me=w(ze);Me.__click=[Yr,r];var Xe=k(Me,2);Xe.__click=[Wr,r],Ot(Xe,"",{},{cursor:"pointer"});var Ne=k(Xe,2);Xa(Ne,{get dialog(){return r.logout},set dialog(A){r.logout=A}});var st=k(Ne,2);Be(st,{submit:()=>fa(n(c).id).then(()=>window.location.href="/"),submitText:"Delete Account",submitDanger:!0,get dialog(){return r.delete},set dialog(A){r.delete=A},children:(A,m)=>{var M=Gr();p(A,M)},$$slots:{default:!0}}),_(ze),_(s);var Ze=k(s,2),it=k(w(Ze),2);Pe(it,17,()=>d,Le,(A,m,M)=>{var R=$r(),B=q(R),j=w(B),Z=w(j);{let L=re(()=>n(m).deviceType=="multiDevice"?"laptop-mobile":"mobile");Je(Z,()=>({"--size":"16px"})),me(Z.lastChild,{get i(){return n(L)}}),_(Z)}_(j);var ne=k(j,2),xe=w(ne);{let L=re(()=>n(m).backedUp?"circle-check":"circle-xmark");Je(xe,()=>({"--size":"16px"})),me(xe.lastChild,{get i(){return n(L)}}),_(xe)}_(ne);var qe=k(ne,2);{var Ee=L=>{var H=Jr(),V=w(H,!0);_(H),U(()=>Q(V,n(m).name)),p(L,H)},ae=L=>{var H=Kr();p(L,H)};F(qe,L=>{n(m).name?L(Ee):L(ae,!1)})}var J=k(qe,2),Te=w(J);_(J);var Ce=k(J,2);t(Ce,()=>"edit_passkey#"+n(m).id);var Ae=k(Ce,2);{var D=L=>{t(L,()=>"delete_passkey#"+n(m).id,()=>"trash")},K=L=>{var H=Qr(),V=w(H);Je(V,()=>({"--fill":"#888","--size":"16px"})),me(V.lastChild,{i:"trash-slash"}),_(V),_(H),p(L,H)};F(Ae,L=>{d.length>1?L(D):L(K,!1)})}_(B);var ce=k(B,2);Be(ce,{submit:L=>{if(typeof L.name!="string")throw"Passkey name must be a string";return n(m).name=L.name,ma(n(m).id,L)},submitText:"Change",get dialog(){return r["edit_passkey#"+n(m).id]},set dialog(L){r["edit_passkey#"+n(m).id]=L},children:(L,H)=>{var V=Xr(),Ve=k(w(V),2);et(Ve),_(V),U(()=>gt(Ve,n(m).name||"")),p(L,V)},$$slots:{default:!0}});var Ie=k(ce,2);Be(Ie,{submit:()=>pa(n(m).id).then(()=>d.splice(d.indexOf(n(m)),1)),submitText:"Delete",submitDanger:!0,get dialog(){return r["delete_passkey#"+n(m).id]},set dialog(L){r["delete_passkey#"+n(m).id]=L},children:(L,H)=>{var V=Zr();p(L,V)},$$slots:{default:!0}}),U(L=>{ie(j,"title",n(m).deviceType=="multiDevice"?"Multiple devices":"Single device"),ie(ne,"title",`This passkey is ${n(m).backedUp?"":"not "}backed up`),Q(Te,`Created ${L??""}`)},[()=>n(m).createdAt.toLocaleString()]),p(A,R)});var lt=k(it,2),fe=w(lt);fe.__click=[en,c,d];var le=w(fe);me(le,{i:"plus"}),Ya(),_(fe),_(lt),_(Ze);var ye=k(Ze,2),we=k(w(ye),2);Pe(we,17,()=>l,Le,(A,m)=>{var M=nn(),R=q(M),B=w(R),j=w(B),Z=k(j);{var ne=D=>{var K=tn();p(D,K)};F(Z,D=>{n(m).id==f.id&&D(ne)})}var xe=k(Z,2);{var qe=D=>{var K=an();p(D,K)};F(xe,D=>{n(m).elevated&&D(qe)})}_(B);var Ee=k(B,2),ae=w(Ee);_(Ee);var J=k(Ee,2),Te=w(J);_(J);var Ce=k(J,2);t(Ce,()=>"logout#"+n(m).id,()=>"right-from-bracket"),_(R);var Ae=k(R,2);Be(Ae,{submit:async()=>{await ga(n(c).id,n(m).id),r["logout#"+n(m).id].remove(),l.splice(l.indexOf(n(m)),1),n(m).id==f.id&&(window.location.href="/")},submitText:"Logout",get dialog(){return r["logout#"+n(m).id]},set dialog(D){r["logout#"+n(m).id]=D},children:(D,K)=>{var ce=rn();p(D,ce)},$$slots:{default:!0}}),U((D,K,ce,Ie)=>{Q(j,`${D??""}...${K??""} `),Q(ae,`Created ${ce??""}`),Q(Te,`Expires ${Ie??""}`)},[()=>n(m).id.slice(0,4),()=>n(m).id.slice(-4),()=>n(m).created.toLocaleString(),()=>n(m).expires.toLocaleString()]),p(A,M)});var oe=k(we,2),ke=w(oe);ke.__click=[sn,r],_(oe);var He=k(oe,2);Be(He,{submit:()=>_a(n(c).id).then(()=>window.location.href="/"),submitText:"Logout All Sessions",submitDanger:!0,get dialog(){return r.logout_all},set dialog(A){r.logout_all=A},children:(A,m)=>{var M=ln();p(A,M)},$$slots:{default:!0}}),_(ye);var ot=k(ye,2),ht=k(w(ot),2);Fr(ht,{get userId(){return n(c).id},get preferences(){return n(c).preferences},set preferences(A){n(c).preferences=A}}),_(ot),_(h),U(A=>{ie(P,"src",A),Q(u,`Welcome, ${n(c).name??""}`),Q(x,n(c).name),Q(O,`${n(c).email??""} `),Q(de,n(c).id)},[()=>da(n(c))]),p(a,h),nt()}Qe(["click"]);export{pn as component,mn as universal};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../chunks/DsnmJJEf.js";import{q as c,r as v,p as d,a as s,c as h,f as _,$ as b}from"../chunks/C8C04JmV.js";import{a as q}from"../chunks/x4Pz-wH_.js";import{p as f,i as w}from"../chunks/Cj9PL7OG.js";import{a as y,F as P,b as $}from"../chunks/
|
|
1
|
+
import"../chunks/DsnmJJEf.js";import{q as c,r as v,p as d,a as s,c as h,f as _,$ as b}from"../chunks/C8C04JmV.js";import{a as q}from"../chunks/x4Pz-wH_.js";import{p as f,i as w}from"../chunks/Cj9PL7OG.js";import{a as y,F as P,b as $}from"../chunks/lSbGwHqC.js";var x=d('<div class="footer svelte-16cw95q"><a href="/register">Register instead</a></div>'),L=d('<div><label for="email">Email</label> <input name="email" type="email" required/></div>');const k={hash:"svelte-16cw95q",code:".footer.svelte-16cw95q {margin-bottom:1em;text-align:center;background:none;}"};function E(o,a){c(a,!0),y(o,k);let n=f(a,"dialog",15),m=f(a,"fullPage",3,!1);function g(t){if(typeof t.email!="string")throw"Tried to upload a file for an email. Huh?!";return $(t.email)}P(o,{submitText:"Login",submit:g,get pageMode(){return m()},get dialog(){return n()},set dialog(e){n(e)},footer:e=>{var r=h(),i=_(r);{var u=l=>{var p=x();s(l,p)};w(i,l=>{m()&&l(u)})}s(e,r)},children:(e,r)=>{var i=L();s(e,i)},$$slots:{footer:!0,default:!0}}),v()}function M(o){q(a=>{b.title="Login"}),E(o,{fullPage:!0})}export{M as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../chunks/DsnmJJEf.js";import{L as t}from"../chunks/DN_VTkOW.js";function r(o){t(o,{fullPage:!0})}export{r as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../chunks/DsnmJJEf.js";import{q as p,r as u,p as f,a as l,c,f as v,I as b,$ as _}from"../chunks/C8C04JmV.js";import{a as h}from"../chunks/x4Pz-wH_.js";import{p as m,i as q}from"../chunks/Cj9PL7OG.js";import{a as x,F as y,r as P}from"../chunks/
|
|
1
|
+
import"../chunks/DsnmJJEf.js";import{q as p,r as u,p as f,a as l,c,f as v,I as b,$ as _}from"../chunks/C8C04JmV.js";import{a as h}from"../chunks/x4Pz-wH_.js";import{p as m,i as q}from"../chunks/Cj9PL7OG.js";import{a as x,F as y,r as P}from"../chunks/lSbGwHqC.js";var $=f('<div class="footer svelte-16cw95q"><a href="/login">Login instead</a></div>'),w=f('<div><label for="name">Display Name</label> <input name="name" type="text" required/></div> <div><label for="email">Email</label> <input name="email" type="email" required/></div>',1);const k={hash:"svelte-16cw95q",code:".footer.svelte-16cw95q {margin-bottom:1em;text-align:center;background:none;}"};function D(a,t){p(t,!0),x(a,k);let s=m(t,"dialog",15),n=m(t,"fullPage",3,!1);y(a,{submitText:"Register",get submit(){return P},get pageMode(){return n()},get dialog(){return s()},set dialog(e){s(e)},footer:e=>{var r=c(),o=v(r);{var d=i=>{var g=$();l(i,g)};q(o,i=>{n()&&i(d)})}l(e,r)},children:(e,r)=>{var o=w();b(2),l(e,o)},$$slots:{footer:!0,default:!0}}),u()}function N(a){h(t=>{_.title="Sign Up"}),D(a,{fullPage:!0})}export{N as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"1755481238215"}
|
|
Binary file
|
|
Binary file
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const index = 1;
|
|
2
2
|
let component_cache;
|
|
3
3
|
const component = async () => component_cache ??= (await import('./error.svelte-DtpUafMU.js')).default;
|
|
4
|
-
const imports = ["_app/immutable/nodes/1.
|
|
4
|
+
const imports = ["_app/immutable/nodes/1.9GlBYpox.js","_app/immutable/chunks/DsnmJJEf.js","_app/immutable/chunks/C8C04JmV.js","_app/immutable/chunks/x4Pz-wH_.js","_app/immutable/chunks/DwJfO5YS.js","_app/immutable/chunks/ButWEHh0.js","_app/immutable/chunks/BMQhMafy.js"];
|
|
5
5
|
const stylesheets = [];
|
|
6
6
|
const fonts = [];
|
|
7
7
|
|
|
8
8
|
export { component, fonts, imports, index, stylesheets };
|
|
9
|
-
//# sourceMappingURL=1-
|
|
9
|
+
//# sourceMappingURL=1-D4403Evz.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1-
|
|
1
|
+
{"version":3,"file":"1-D4403Evz.js","sources":["../../../.svelte-kit/adapter-node/nodes/1.js"],"sourcesContent":["\n\nexport const index = 1;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/fallbacks/error.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/1.9GlBYpox.js\",\"_app/immutable/chunks/DsnmJJEf.js\",\"_app/immutable/chunks/C8C04JmV.js\",\"_app/immutable/chunks/x4Pz-wH_.js\",\"_app/immutable/chunks/DwJfO5YS.js\",\"_app/immutable/chunks/ButWEHh0.js\",\"_app/immutable/chunks/BMQhMafy.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAsC,CAAC,EAAE;AACpG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AACxQ,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
const index = 3;
|
|
2
2
|
let component_cache;
|
|
3
|
-
const component = async () => component_cache ??= (await import('./_page.svelte-
|
|
3
|
+
const component = async () => component_cache ??= (await import('./_page.svelte-CNug2JTC.js')).default;
|
|
4
4
|
const universal = {
|
|
5
5
|
"ssr": false
|
|
6
6
|
};
|
|
7
7
|
const universal_id = "routes/account/+page.ts";
|
|
8
|
-
const imports = ["_app/immutable/nodes/3.
|
|
8
|
+
const imports = ["_app/immutable/nodes/3.DuwUIVtX.js","_app/immutable/chunks/lSbGwHqC.js","_app/immutable/chunks/DsnmJJEf.js","_app/immutable/chunks/C8C04JmV.js","_app/immutable/chunks/x4Pz-wH_.js","_app/immutable/chunks/BMQhMafy.js","_app/immutable/chunks/Cj9PL7OG.js","_app/immutable/chunks/DN_VTkOW.js"];
|
|
9
9
|
const stylesheets = [];
|
|
10
10
|
const fonts = [];
|
|
11
11
|
|
|
12
12
|
export { component, fonts, imports, index, stylesheets, universal, universal_id };
|
|
13
|
-
//# sourceMappingURL=3-
|
|
13
|
+
//# sourceMappingURL=3-CCrTqwF9.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"3-
|
|
1
|
+
{"version":3,"file":"3-CCrTqwF9.js","sources":["../../../.svelte-kit/adapter-node/nodes/3.js"],"sourcesContent":["\n\nexport const index = 3;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/account/_page.svelte.js')).default;\nexport const universal = {\n \"ssr\": false\n};\nexport const universal_id = \"routes/account/+page.ts\";\nexport const imports = [\"_app/immutable/nodes/3.DuwUIVtX.js\",\"_app/immutable/chunks/lSbGwHqC.js\",\"_app/immutable/chunks/DsnmJJEf.js\",\"_app/immutable/chunks/C8C04JmV.js\",\"_app/immutable/chunks/x4Pz-wH_.js\",\"_app/immutable/chunks/BMQhMafy.js\",\"_app/immutable/chunks/Cj9PL7OG.js\",\"_app/immutable/chunks/DN_VTkOW.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAA0C,CAAC,EAAE;AACxG,MAAC,SAAS,GAAG;AACzB,EAAE,KAAK,EAAE;AACT;AACY,MAAC,YAAY,GAAG;AAChB,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAC5S,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const index = 4;
|
|
2
2
|
let component_cache;
|
|
3
3
|
const component = async () => component_cache ??= (await import('./_page.svelte-DSnarRUI.js')).default;
|
|
4
|
-
const imports = ["_app/immutable/nodes/4
|
|
4
|
+
const imports = ["_app/immutable/nodes/4.C0wscA_4.js","_app/immutable/chunks/DsnmJJEf.js","_app/immutable/chunks/C8C04JmV.js","_app/immutable/chunks/x4Pz-wH_.js","_app/immutable/chunks/Cj9PL7OG.js","_app/immutable/chunks/lSbGwHqC.js","_app/immutable/chunks/BMQhMafy.js"];
|
|
5
5
|
const stylesheets = [];
|
|
6
6
|
const fonts = [];
|
|
7
7
|
|
|
8
8
|
export { component, fonts, imports, index, stylesheets };
|
|
9
|
-
//# sourceMappingURL=4-
|
|
9
|
+
//# sourceMappingURL=4-vjHkix88.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"4-
|
|
1
|
+
{"version":3,"file":"4-vjHkix88.js","sources":["../../../.svelte-kit/adapter-node/nodes/4.js"],"sourcesContent":["\n\nexport const index = 4;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/login/_page.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/4.C0wscA_4.js\",\"_app/immutable/chunks/DsnmJJEf.js\",\"_app/immutable/chunks/C8C04JmV.js\",\"_app/immutable/chunks/x4Pz-wH_.js\",\"_app/immutable/chunks/Cj9PL7OG.js\",\"_app/immutable/chunks/lSbGwHqC.js\",\"_app/immutable/chunks/BMQhMafy.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAwC,CAAC,EAAE;AACtG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AACxQ,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const index = 5;
|
|
2
2
|
let component_cache;
|
|
3
3
|
const component = async () => component_cache ??= (await import('./_page.svelte-BHwIILw0.js')).default;
|
|
4
|
-
const imports = ["_app/immutable/nodes/5.
|
|
4
|
+
const imports = ["_app/immutable/nodes/5.CWS-YJ56.js","_app/immutable/chunks/DsnmJJEf.js","_app/immutable/chunks/DN_VTkOW.js","_app/immutable/chunks/C8C04JmV.js","_app/immutable/chunks/x4Pz-wH_.js","_app/immutable/chunks/Cj9PL7OG.js","_app/immutable/chunks/lSbGwHqC.js","_app/immutable/chunks/BMQhMafy.js"];
|
|
5
5
|
const stylesheets = [];
|
|
6
6
|
const fonts = [];
|
|
7
7
|
|
|
8
8
|
export { component, fonts, imports, index, stylesheets };
|
|
9
|
-
//# sourceMappingURL=5-
|
|
9
|
+
//# sourceMappingURL=5-Dc6xvhmU.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"5-
|
|
1
|
+
{"version":3,"file":"5-Dc6xvhmU.js","sources":["../../../.svelte-kit/adapter-node/nodes/5.js"],"sourcesContent":["\n\nexport const index = 5;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/logout/_page.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/5.CWS-YJ56.js\",\"_app/immutable/chunks/DsnmJJEf.js\",\"_app/immutable/chunks/DN_VTkOW.js\",\"_app/immutable/chunks/C8C04JmV.js\",\"_app/immutable/chunks/x4Pz-wH_.js\",\"_app/immutable/chunks/Cj9PL7OG.js\",\"_app/immutable/chunks/lSbGwHqC.js\",\"_app/immutable/chunks/BMQhMafy.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAyC,CAAC,EAAE;AACvG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAC5S,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const index = 6;
|
|
2
2
|
let component_cache;
|
|
3
3
|
const component = async () => component_cache ??= (await import('./_page.svelte-Yesd_T6C.js')).default;
|
|
4
|
-
const imports = ["_app/immutable/nodes/6.
|
|
4
|
+
const imports = ["_app/immutable/nodes/6.TEubHotu.js","_app/immutable/chunks/DsnmJJEf.js","_app/immutable/chunks/C8C04JmV.js","_app/immutable/chunks/x4Pz-wH_.js","_app/immutable/chunks/Cj9PL7OG.js","_app/immutable/chunks/lSbGwHqC.js","_app/immutable/chunks/BMQhMafy.js"];
|
|
5
5
|
const stylesheets = [];
|
|
6
6
|
const fonts = [];
|
|
7
7
|
|
|
8
8
|
export { component, fonts, imports, index, stylesheets };
|
|
9
|
-
//# sourceMappingURL=6-
|
|
9
|
+
//# sourceMappingURL=6-CvdeNFQU.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"6-
|
|
1
|
+
{"version":3,"file":"6-CvdeNFQU.js","sources":["../../../.svelte-kit/adapter-node/nodes/6.js"],"sourcesContent":["\n\nexport const index = 6;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/register/_page.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/6.TEubHotu.js\",\"_app/immutable/chunks/DsnmJJEf.js\",\"_app/immutable/chunks/C8C04JmV.js\",\"_app/immutable/chunks/x4Pz-wH_.js\",\"_app/immutable/chunks/Cj9PL7OG.js\",\"_app/immutable/chunks/lSbGwHqC.js\",\"_app/immutable/chunks/BMQhMafy.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAA2C,CAAC,EAAE;AACzG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AACxQ,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -56,6 +56,7 @@ function Preference_1($$payload, $$props) {
|
|
|
56
56
|
const id = props_id($$payload);
|
|
57
57
|
let { preferences = void 0, userId, path, schema, optional = false } = $$props;
|
|
58
58
|
let checked = schema.def.type == "boolean" && getByString(preferences, path);
|
|
59
|
+
const initialValue = getByString(preferences, path) ?? getByString(preferenceDefaults, path);
|
|
59
60
|
function dateAttr(date, format) {
|
|
60
61
|
if (!date) return null;
|
|
61
62
|
const pad = (n) => String(n).padStart(2, "0");
|
|
@@ -79,15 +80,7 @@ function Preference_1($$payload, $$props) {
|
|
|
79
80
|
}
|
|
80
81
|
}
|
|
81
82
|
function _in($$payload2, rest) {
|
|
82
|
-
$$payload2.out.push(`<input${spread_attributes(
|
|
83
|
-
{
|
|
84
|
-
id,
|
|
85
|
-
...rest,
|
|
86
|
-
value: getByString(preferences, path) ?? getByString(preferenceDefaults, path),
|
|
87
|
-
required: !optional
|
|
88
|
-
},
|
|
89
|
-
"svelte-23hpnn"
|
|
90
|
-
)}/>`);
|
|
83
|
+
$$payload2.out.push(`<input${spread_attributes({ id, ...rest, value: initialValue, required: !optional }, "svelte-23hpnn")}/>`);
|
|
91
84
|
}
|
|
92
85
|
let $$settled = true;
|
|
93
86
|
let $$inner_payload;
|
|
@@ -153,7 +146,7 @@ function Preference_1($$payload, $$props) {
|
|
|
153
146
|
$$payload2.out.push(`<select${attr("id", id)}${attr("required", !optional, true)}><!--[-->`);
|
|
154
147
|
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
155
148
|
let value = each_array[$$index];
|
|
156
|
-
$$payload2.out.push(`<option${attr("value", value)}${maybe_selected($$payload2, value)}>${escape_html(value)}</option>`);
|
|
149
|
+
$$payload2.out.push(`<option${attr("value", value)}${maybe_selected($$payload2, value)}${attr("selected", initialValue === value, true)}>${escape_html(value)}</option>`);
|
|
157
150
|
}
|
|
158
151
|
$$payload2.out.push(`<!--]--></select>`);
|
|
159
152
|
} else {
|
|
@@ -181,7 +174,7 @@ function Preference_1($$payload, $$props) {
|
|
|
181
174
|
$$payload2.out.push("<!--[!-->");
|
|
182
175
|
if (zIs(schema, "array")) {
|
|
183
176
|
$$payload2.out.push("<!--[-->");
|
|
184
|
-
const each_array_1 = ensure_array_like(
|
|
177
|
+
const each_array_1 = ensure_array_like(initialValue);
|
|
185
178
|
$$payload2.out.push(`<div class="pref-sub"><!--[-->`);
|
|
186
179
|
for (let i = 0, $$length = each_array_1.length; i < $$length; i++) {
|
|
187
180
|
$$payload2.out.push(`<div class="pref-record-entry">`);
|
|
@@ -204,7 +197,7 @@ function Preference_1($$payload, $$props) {
|
|
|
204
197
|
$$payload2.out.push("<!--[!-->");
|
|
205
198
|
if (zIs(schema, "record")) {
|
|
206
199
|
$$payload2.out.push("<!--[-->");
|
|
207
|
-
const each_array_2 = ensure_array_like(Object.keys(
|
|
200
|
+
const each_array_2 = ensure_array_like(Object.keys(initialValue));
|
|
208
201
|
$$payload2.out.push(`<div class="pref-sub"><!--[-->`);
|
|
209
202
|
for (let $$index_2 = 0, $$length = each_array_2.length; $$index_2 < $$length; $$index_2++) {
|
|
210
203
|
let key = each_array_2[$$index_2];
|
|
@@ -277,8 +270,8 @@ function Preference_1($$payload, $$props) {
|
|
|
277
270
|
const each_array_5 = ensure_array_like(Object.entries(schema.enum));
|
|
278
271
|
$$payload2.out.push(`<select${attr("id", id)}${attr("required", !optional, true)}><!--[-->`);
|
|
279
272
|
for (let $$index_5 = 0, $$length = each_array_5.length; $$index_5 < $$length; $$index_5++) {
|
|
280
|
-
let [key,
|
|
281
|
-
$$payload2.out.push(`<option${attr("value",
|
|
273
|
+
let [key, value] = each_array_5[$$index_5];
|
|
274
|
+
$$payload2.out.push(`<option${attr("value", value)}${maybe_selected($$payload2, value)}${attr("selected", initialValue === value, true)}>${escape_html(key)}</option>`);
|
|
282
275
|
}
|
|
283
276
|
$$payload2.out.push(`<!--]--></select>`);
|
|
284
277
|
} else {
|
|
@@ -640,4 +633,4 @@ function _page($$payload, $$props) {
|
|
|
640
633
|
}
|
|
641
634
|
|
|
642
635
|
export { _page as default };
|
|
643
|
-
//# sourceMappingURL=_page.svelte-
|
|
636
|
+
//# sourceMappingURL=_page.svelte-CNug2JTC.js.map
|