@axium/server 0.18.4 → 0.18.6
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/{BPkdKBlw.js → B4IjTTLF.js} +1 -1
- package/build/client/_app/immutable/chunks/B4IjTTLF.js.br +0 -0
- package/build/client/_app/immutable/chunks/B4IjTTLF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BeFE4kE2.js +3 -0
- package/build/client/_app/immutable/chunks/BeFE4kE2.js.br +0 -0
- package/build/client/_app/immutable/chunks/BeFE4kE2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Che41mwa.js → CtT1TXOG.js} +1 -1
- package/build/client/_app/immutable/chunks/CtT1TXOG.js.br +0 -0
- package/build/client/_app/immutable/chunks/CtT1TXOG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{C2G00Wo_.js → rXU5YtEm.js} +1 -1
- package/build/client/_app/immutable/chunks/rXU5YtEm.js.br +0 -0
- package/build/client/_app/immutable/chunks/rXU5YtEm.js.gz +0 -0
- package/build/client/_app/immutable/entry/{app.BbBU38hK.js → app.VDao1I0a.js} +2 -2
- package/build/client/_app/immutable/entry/app.VDao1I0a.js.br +0 -0
- package/build/client/_app/immutable/entry/app.VDao1I0a.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.CqVn4hZK.js +1 -0
- package/build/client/_app/immutable/entry/start.CqVn4hZK.js.br +0 -0
- package/build/client/_app/immutable/entry/start.CqVn4hZK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{1.Cmx8cGI-.js → 1.C3jvF6zj.js} +1 -1
- package/build/client/_app/immutable/nodes/1.C3jvF6zj.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.C3jvF6zj.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{3.CHH7rvxu.js → 3.C1G23fTe.js} +1 -1
- package/build/client/_app/immutable/nodes/3.C1G23fTe.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.C1G23fTe.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{4.D9IcRvFq.js → 4.TQjMBeyV.js} +1 -1
- package/build/client/_app/immutable/nodes/4.TQjMBeyV.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.TQjMBeyV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.SHyxFZfo.js +1 -0
- package/build/client/_app/immutable/nodes/5.SHyxFZfo.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.SHyxFZfo.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{6.BIv1GUh7.js → 6.ikul5Bcl.js} +1 -1
- package/build/client/_app/immutable/nodes/6.ikul5Bcl.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.ikul5Bcl.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-CbHAdNVA.js → 1-DffE3_iJ.js} +2 -2
- package/build/server/chunks/{1-CbHAdNVA.js.map → 1-DffE3_iJ.js.map} +1 -1
- package/build/server/chunks/{3-D-f3CysO.js → 3-D6wMMS06.js} +2 -2
- package/build/server/chunks/{3-D-f3CysO.js.map → 3-D6wMMS06.js.map} +1 -1
- package/build/server/chunks/{4-DzUqqu1u.js → 4-BIBXJVxM.js} +2 -2
- package/build/server/chunks/{4-DzUqqu1u.js.map → 4-BIBXJVxM.js.map} +1 -1
- package/build/server/chunks/{5-C4XhViZP.js → 5-DnTszr4V.js} +2 -2
- package/build/server/chunks/{5-C4XhViZP.js.map → 5-DnTszr4V.js.map} +1 -1
- package/build/server/chunks/{6-BosXK7US.js → 6-Ls1UJLAz.js} +2 -2
- package/build/server/chunks/{6-BosXK7US.js.map → 6-Ls1UJLAz.js.map} +1 -1
- package/build/server/index.js +1 -1
- 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/cli.js +5 -4
- package/dist/database.js +1 -0
- package/package.json +1 -1
- package/svelte.config.js +1 -1
- package/build/client/_app/immutable/chunks/BPkdKBlw.js.br +0 -0
- package/build/client/_app/immutable/chunks/BPkdKBlw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C2G00Wo_.js.br +0 -0
- package/build/client/_app/immutable/chunks/C2G00Wo_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Che41mwa.js.br +0 -0
- package/build/client/_app/immutable/chunks/Che41mwa.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DOU_MWYN.js +0 -3
- package/build/client/_app/immutable/chunks/DOU_MWYN.js.br +0 -0
- package/build/client/_app/immutable/chunks/DOU_MWYN.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.BbBU38hK.js.br +0 -0
- package/build/client/_app/immutable/entry/app.BbBU38hK.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.Da9-9H3m.js +0 -1
- package/build/client/_app/immutable/entry/start.Da9-9H3m.js.br +0 -2
- package/build/client/_app/immutable/entry/start.Da9-9H3m.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.Cmx8cGI-.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.Cmx8cGI-.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.CHH7rvxu.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.CHH7rvxu.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.D9IcRvFq.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.D9IcRvFq.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.C2-lE2kM.js +0 -1
- package/build/client/_app/immutable/nodes/5.C2-lE2kM.js.br +0 -2
- package/build/client/_app/immutable/nodes/5.C2-lE2kM.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.BIv1GUh7.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.BIv1GUh7.js.gz +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{J as Zn,g as jt,o as Pe,m as Tt,G as Rt,h as B,a6 as An,aQ as jn,aR as Tn,l as Rn,aS as In,N as Ne,aT as On,z as Ye,aU as Sn,aV as Pn,aW as Nn,aX as Dn,aY as Cn,p as It,b as le,a as te,d as Ot,e as ne,r as ie,al as Un,f as Ln,n as Xe,s as Y,ax as Mn,t as Qe,Q as Te}from"./B3bf7yrh.js";import{i as qn,c as Fn,d as St,n as Vn,e as Kn,f as Wn,s as et}from"./D5lcOOwR.js";import{s as ge}from"./DCs3KlJy.js";import{p as F,b as Bn,r as Pt,s as Gn,i as tt}from"./ct9jA5hl.js";import{g as Jn}from"./
|
|
1
|
+
import"./DsnmJJEf.js";import{J as Zn,g as jt,o as Pe,m as Tt,G as Rt,h as B,a6 as An,aQ as jn,aR as Tn,l as Rn,aS as In,N as Ne,aT as On,z as Ye,aU as Sn,aV as Pn,aW as Nn,aX as Dn,aY as Cn,p as It,b as le,a as te,d as Ot,e as ne,r as ie,al as Un,f as Ln,n as Xe,s as Y,ax as Mn,t as Qe,Q as Te}from"./B3bf7yrh.js";import{i as qn,c as Fn,d as St,n as Vn,e as Kn,f as Wn,s as et}from"./D5lcOOwR.js";import{s as ge}from"./DCs3KlJy.js";import{p as F,b as Bn,r as Pt,s as Gn,i as tt}from"./ct9jA5hl.js";import{g as Jn}from"./BeFE4kE2.js";import{p as nt}from"./rXU5YtEm.js";function Hn(e,t){if(t){const n=document.body;e.autofocus=!0,Zn(()=>{document.activeElement===n&&e.focus()})}}let it=!1;function Yn(){it||(it=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Xn(e,t){var n=void 0,i;jt(()=>{n!==(n=t())&&(i&&(Pe(i),i=null),n&&(i=Tt(()=>{Rt(()=>n(e))})))})}function Nt(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=Nt(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function Qn(){for(var e,t,n=0,i="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=Nt(e))&&(i&&(i+=" "),i+=t);return i}function Dt(e){return typeof e=="object"?Qn(e):e??""}const at=[...`
|
|
2
2
|
\r\f \v\uFEFF`];function ei(e,t,n){var i=e==null?"":""+e;if(t&&(i=i?i+" "+t:t),n){for(var a in n)if(n[a])i=i?i+" "+a:a;else if(i.length)for(var o=a.length,r=0;(r=i.indexOf(a,r))>=0;){var s=r+o;(r===0||at.includes(i[r-1]))&&(s===i.length||at.includes(i[s]))?i=(r===0?"":i.substring(0,r))+i.substring(s+1):r=s}}return i===""?null:i}function ot(e,t=!1){var n=t?" !important;":";",i="";for(var a in e){var o=e[a];o!=null&&o!==""&&(i+=" "+a+": "+o+n)}return i}function Re(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function ti(e,t){if(t){var n="",i,a;if(Array.isArray(t)?(i=t[0],a=t[1]):i=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var o=!1,r=0,s=!1,p=[];i&&p.push(...Object.keys(i).map(Re)),a&&p.push(...Object.keys(a).map(Re));var l=0,g=-1;const b=e.length;for(var u=0;u<b;u++){var d=e[u];if(s?d==="/"&&e[u-1]==="*"&&(s=!1):o?o===d&&(o=!1):d==="/"&&e[u+1]==="*"?s=!0:d==='"'||d==="'"?o=d:d==="("?r++:d===")"&&r--,!s&&o===!1&&r===0){if(d===":"&&g===-1)g=u;else if(d===";"||u===b-1){if(g!==-1){var x=Re(e.substring(l,g).trim());if(!p.includes(x)){d!==";"&&u++;var v=e.substring(l,u).trim();n+=" "+v+";"}}l=u+1,g=-1}}}}return i&&(n+=ot(i)),a&&(n+=ot(a,!0)),n=n.trim(),n===""?null:n}return e==null?null:String(e)}function Ct(e,t,n,i,a,o){var r=e.__className;if(B||r!==n||r===void 0){var s=ei(n,i,o);(!B||s!==e.getAttribute("class"))&&(s==null?e.removeAttribute("class"):t?e.className=s:e.setAttribute("class",s)),e.__className=n}else if(o&&a!==o)for(var p in o){var l=!!o[p];(a==null||l!==!!a[p])&&e.classList.toggle(p,l)}return o}function Ie(e,t={},n,i){for(var a in n){var o=n[a];t[a]!==o&&(n[a]==null?e.style.removeProperty(a):e.style.setProperty(a,o,i))}}function ni(e,t,n,i){var a=e.__style;if(B||a!==t){var o=ti(t,i);(!B||o!==e.getAttribute("style"))&&(o==null?e.removeAttribute("style"):e.style.cssText=o),e.__style=t}else i&&(Array.isArray(i)?(Ie(e,n?.[0],i[0]),Ie(e,n?.[1],i[1],"important")):Ie(e,n,i));return i}function De(e,t,n=!1){if(e.multiple){if(t==null)return;if(!An(t))return jn();for(var i of e.options)i.selected=t.includes(rt(i));return}for(i of e.options){var a=rt(i);if(Tn(a,t)){i.selected=!0;return}}(!n||t!==void 0)&&(e.selectedIndex=-1)}function ii(e){var t=new MutationObserver(()=>{De(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Rn(()=>{t.disconnect()})}function rt(e){return"__value"in e?e.__value:e.value}const X=Symbol("class"),Q=Symbol("style"),Ut=Symbol("is custom element"),Lt=Symbol("is html");function Ds(e){if(B){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var i=e.value;we(e,"value",null),e.value=i}if(e.hasAttribute("checked")){var a=e.checked;we(e,"checked",null),e.checked=a}}};e.__on_r=n,Dn(n),Yn()}}function Cs(e,t){var n=Me(e);n.value===(n.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!=="PROGRESS")||(e.value=t??"")}function ai(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function we(e,t,n,i){var a=Me(e);B&&(a[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||a[t]!==(a[t]=n)&&(t==="loading"&&(e[Nn]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Mt(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function oi(e,t,n,i,a=!1){var o=Me(e),r=o[Ut],s=!o[Lt];let p=B&&r;p&&Ye(!1);var l=t||{},g=e.tagName==="OPTION";for(var u in t)u in n||(n[u]=null);n.class?n.class=Dt(n.class):(i||n[X])&&(n.class=null),n[Q]&&(n.style??=null);var d=Mt(e);for(const f in n){let h=n[f];if(g&&f==="value"&&h==null){e.value=e.__value="",l[f]=h;continue}if(f==="class"){var x=e.namespaceURI==="http://www.w3.org/1999/xhtml";Ct(e,x,h,i,t?.[X],n[X]),l[f]=h,l[X]=n[X];continue}if(f==="style"){ni(e,h,t?.[Q],n[Q]),l[f]=h,l[Q]=n[Q];continue}var v=l[f];if(!(h===v&&!(h===void 0&&e.hasAttribute(f)))){l[f]=h;var b=f[0]+f[1];if(b!=="$$")if(b==="on"){const Z={},S="$$"+f;let j=f.slice(2);var T=Kn(j);if(qn(j)&&(j=j.slice(0,-7),Z.capture=!0),!T&&v){if(h!=null)continue;e.removeEventListener(j,l[S],Z),l[S]=null}if(h!=null)if(T)e[`__${j}`]=h,St([j]);else{let J=function(je){l[f].call(this,je)};l[S]=Fn(j,e,J,Z)}else T&&(e[`__${j}`]=void 0)}else if(f==="style")we(e,f,h);else if(f==="autofocus")Hn(e,!!h);else if(!r&&(f==="__value"||f==="value"&&h!=null))e.value=e.__value=h;else if(f==="selected"&&g)ai(e,h);else{var A=f;s||(A=Vn(A));var _=A==="defaultValue"||A==="defaultChecked";if(h==null&&!r&&!_)if(o[f]=null,A==="value"||A==="checked"){let Z=e;const S=t===void 0;if(A==="value"){let j=Z.defaultValue;Z.removeAttribute(A),Z.defaultValue=j,Z.value=Z.__value=S?j:null}else{let j=Z.defaultChecked;Z.removeAttribute(A),Z.defaultChecked=j,Z.checked=S?j:!1}}else e.removeAttribute(f);else _||d.includes(A)&&(r||typeof h!="string")?e[A]=h:typeof h!="function"&&we(e,A,h)}}}return p&&Ye(!0),l}function ri(e,t,n=[],i=[],a,o=!1){In(n,i,r=>{var s=void 0,p={},l=e.nodeName==="SELECT",g=!1;if(jt(()=>{var d=t(...r.map(Ne)),x=oi(e,s,d,a,o);g&&l&&"value"in d&&De(e,d.value);for(let b of Object.getOwnPropertySymbols(p))d[b]||Pe(p[b]);for(let b of Object.getOwnPropertySymbols(d)){var v=d[b];b.description===On&&(!s||v!==s[b])&&(p[b]&&Pe(p[b]),p[b]=Tt(()=>Xn(e,()=>v))),x[b]=v}s=x}),l){var u=e;Rt(()=>{De(u,s.value,!0),ii(u)})}g=!0})}function Me(e){return e.__attributes??={[Ut]:e.nodeName.includes("-"),[Lt]:e.namespaceURI===Sn}}var st=new Map;function Mt(e){var t=st.get(e.nodeName);if(t)return t;st.set(e.nodeName,t=[]);for(var n,i=e,a=Element.prototype;a!==i;){n=Cn(i);for(var o in n)n[o].set&&t.push(o);i=Pn(i)}return t}var si=le("<dialog><!></dialog>");function ci(e,t){It(t,!0);let n=F(t,"dialog",15),i=Pt(t,["$$slots","$$events","$$legacy","children","dialog"]);var a=si();ri(a,()=>({...i}),void 0,void 0,"svelte-1yuzruq");var o=ne(a);ge(o,()=>t.children),ie(a),Bn(a,r=>n(r),()=>n()),te(e,a),Ot()}var pi=le('<button type="submit"> </button>'),li=le('<div class="error"> </div>'),ui=(e,t)=>t().close(),di=le('<div class="actions svelte-p6pltw"><button type="button">Cancel</button> <!></div>'),mi=le('<!> <form class="main" method="dialog"><!> <!> <!></form> <!>',1);function Us(e,t){It(t,!0);const n=v=>{var b=pi(),T=ne(b,!0);ie(b),Qe(()=>{Ct(b,1,Dt(["submit",l()&&"danger"])),et(T,o())}),te(v,b)};function i(){const v=nt.url.searchParams.get("after");if(!v||v==nt.url.pathname)return"/";for(const b of["/api/"])if(v.startsWith(b))return"/";return v||"/"}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=Pt(t,["$$slots","$$events","$$legacy","children","dialog","submitText","cancel","submit","pageMode","submitDanger","header","footer"]),u=Mn(null);Un(()=>{p()&&a().showModal()});function d(v){v.preventDefault(),r()()}function x(v){v.preventDefault();const b=Object.fromEntries(new FormData(v.currentTarget));s()(b).then(T=>{p()?Jn(i()):a().close()}).catch(T=>{T?typeof T=="object"&&"message"in T?Te(u,T.message,!0):Te(u,T,!0):Te(u,"An unknown error occurred")})}ci(e,Gn({onclose:d},()=>g,{get dialog(){return a()},set dialog(v){a(v)},children:(v,b)=>{var T=mi(),A=Ln(T);ge(A,()=>t.header??Xe);var _=Y(A,2),f=ne(_);{var h=N=>{var q=li(),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 j=N=>{n(N)},J=N=>{var q=di(),me=ne(q);me.__click=[ui,a];var $n=Y(me,2);n($n),ie(q),te(N,q)};tt(S,N=>{p()?N(j):N(J,!1)})}ie(_);var je=Y(_,2);ge(je,()=>t.footer??Xe),Wn("submit",_,x),te(v,T)},$$slots:{default:!0}})),Ot()}St(["click"]);function D(e){const t=new Uint8Array(e);let n="";for(const a of t)n+=String.fromCharCode(a);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function _e(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),n=(4-t.length%4)%4,i=t.padEnd(t.length+n,"="),a=atob(i),o=new ArrayBuffer(a.length),r=new Uint8Array(o);for(let s=0;s<a.length;s++)r[s]=a.charCodeAt(s);return o}function qe(){return fi.stubThis(globalThis?.PublicKeyCredential!==void 0&&typeof globalThis.PublicKeyCredential=="function")}const fi={stubThis:e=>e};function qt(e){const{id:t}=e;return{...e,id:_e(t),transports:e.transports}}function Ft(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}class I extends Error{constructor({message:t,code:n,cause:i,name:a}){super(t,{cause:i}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=a??i.name,this.code=n}}function vi({error:e,options:t}){const{publicKey:n}=t;if(!n)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new I({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(n.authenticatorSelection?.requireResidentKey===!0)return new I({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&n.authenticatorSelection?.userVerification==="required")return new I({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(n.authenticatorSelection?.userVerification==="required")return new I({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new I({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new I({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return n.pubKeyCredParams.filter(a=>a.type==="public-key").length===0?new I({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new I({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const i=globalThis.location.hostname;if(Ft(i)){if(n.rp.id!==i)return new I({message:`The RP ID "${n.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new I({message:`${globalThis.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(n.user.id.byteLength<1||n.user.id.byteLength>64)return new I({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new I({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return e}class hi{constructor(){Object.defineProperty(this,"controller",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}createNewAbortSignal(){if(this.controller){const n=new Error("Cancelling existing WebAuthn API call for new one");n.name="AbortError",this.controller.abort(n)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const Vt=new hi,gi=["cross-platform","platform"];function Kt(e){if(e&&!(gi.indexOf(e)<0))return e}async function Wt(e){!e.optionsJSON&&e.challenge&&(console.warn("startRegistration() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."),e={optionsJSON:e});const{optionsJSON:t,useAutoRegister:n=!1}=e;if(!qe())throw new Error("WebAuthn is not supported in this browser");const i={...t,challenge:_e(t.challenge),user:{...t.user,id:_e(t.user.id)},excludeCredentials:t.excludeCredentials?.map(qt)},a={};n&&(a.mediation="conditional"),a.publicKey=i,a.signal=Vt.createNewAbortSignal();let o;try{o=await navigator.credentials.create(a)}catch(v){throw vi({error:v,options:a})}if(!o)throw new Error("Registration was not completed");const{id:r,rawId:s,response:p,type:l}=o;let g;typeof p.getTransports=="function"&&(g=p.getTransports());let u;if(typeof p.getPublicKeyAlgorithm=="function")try{u=p.getPublicKeyAlgorithm()}catch(v){Oe("getPublicKeyAlgorithm()",v)}let d;if(typeof p.getPublicKey=="function")try{const v=p.getPublicKey();v!==null&&(d=D(v))}catch(v){Oe("getPublicKey()",v)}let x;if(typeof p.getAuthenticatorData=="function")try{x=D(p.getAuthenticatorData())}catch(v){Oe("getAuthenticatorData()",v)}return{id:r,rawId:D(s),response:{attestationObject:D(p.attestationObject),clientDataJSON:D(p.clientDataJSON),transports:g,publicKeyAlgorithm:u,publicKey:d,authenticatorData:x},type:l,clientExtensionResults:o.getClientExtensionResults(),authenticatorAttachment:Kt(o.authenticatorAttachment)}}function Oe(e,t){console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.
|
|
3
3
|
`,t)}function xi(){if(!qe())return Se.stubThis(new Promise(t=>t(!1)));const e=globalThis.PublicKeyCredential;return e?.isConditionalMediationAvailable===void 0?Se.stubThis(new Promise(t=>t(!1))):Se.stubThis(e.isConditionalMediationAvailable())}const Se={stubThis:e=>e};function bi({error:e,options:t}){const{publicKey:n}=t;if(!n)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new I({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new I({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const i=globalThis.location.hostname;if(Ft(i)){if(n.rpId!==i)return new I({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new I({message:`${globalThis.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new I({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return e}async function Fe(e){!e.optionsJSON&&e.challenge&&(console.warn("startAuthentication() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."),e={optionsJSON:e});const{optionsJSON:t,useBrowserAutofill:n=!1,verifyBrowserAutofillInput:i=!0}=e;if(!qe())throw new Error("WebAuthn is not supported in this browser");let a;t.allowCredentials?.length!==0&&(a=t.allowCredentials?.map(qt));const o={...t,challenge:_e(t.challenge),allowCredentials:a},r={};if(n){if(!await xi())throw Error("Browser does not support WebAuthn autofill");if(document.querySelectorAll("input[autocomplete$='webauthn']").length<1&&i)throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');r.mediation="conditional",o.allowCredentials=[]}r.publicKey=o,r.signal=Vt.createNewAbortSignal();let s;try{s=await navigator.credentials.get(r)}catch(x){throw bi({error:x,options:r})}if(!s)throw new Error("Authentication was not completed");const{id:p,rawId:l,response:g,type:u}=s;let d;return g.userHandle&&(d=D(g.userHandle)),{id:p,rawId:D(l),response:{authenticatorData:D(g.authenticatorData),clientDataJSON:D(g.clientDataJSON),signature:D(g.signature),userHandle:d},type:u,clientExtensionResults:s.getClientExtensionResults(),authenticatorAttachment:Kt(s.authenticatorAttachment)}}function c(e,t,n){function i(s,p){var l;Object.defineProperty(s,"_zod",{value:s._zod??{},enumerable:!1}),(l=s._zod).traits??(l.traits=new Set),s._zod.traits.add(e),t(s,p);for(const g in r.prototype)g in s||Object.defineProperty(s,g,{value:r.prototype[g].bind(s)});s._zod.constr=r,s._zod.def=p}const a=n?.Parent??Object;class o extends a{}Object.defineProperty(o,"name",{value:e});function r(s){var p;const l=n?.Parent?new o:this;i(l,s),(p=l._zod).deferred??(p.deferred=[]);for(const g of l._zod.deferred)g();return l}return Object.defineProperty(r,"init",{value:i}),Object.defineProperty(r,Symbol.hasInstance,{value:s=>n?.Parent&&s instanceof n.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(r,"name",{value:e}),r}class se extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const Bt={};function L(e){return Bt}function wi(e){const t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,a])=>t.indexOf(+i)===-1).map(([i,a])=>a)}function _i(e,t){return typeof t=="bigint"?t.toString():t}function Gt(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Ve(e){return e==null}function Ke(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function ki(e,t){const n=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,a=n>i?n:i,o=Number.parseInt(e.toFixed(a).replace(".","")),r=Number.parseInt(t.toFixed(a).replace(".",""));return o%r/10**a}function k(e,t,n){Object.defineProperty(e,t,{get(){{const i=n();return e[t]=i,i}},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function We(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function ee(e){return JSON.stringify(e)}const Jt=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function Ce(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const yi=Gt(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function ke(e){if(Ce(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(Ce(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}const zi=new Set(["string","number","symbol"]);function ue(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function G(e,t,n){const i=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(i._zod.parent=e),i}function m(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Ei(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const $i={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Zi(e,t){const n={},i=e._zod.def;for(const a in t){if(!(a in i.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(n[a]=i.shape[a])}return G(e,{...e._zod.def,shape:n,checks:[]})}function Ai(e,t){const n={...e._zod.def.shape},i=e._zod.def;for(const a in t){if(!(a in i.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&delete n[a]}return G(e,{...e._zod.def,shape:n,checks:[]})}function ji(e,t){if(!ke(t))throw new Error("Invalid input to extend: expected a plain object");const n={...e._zod.def,get shape(){const i={...e._zod.def.shape,...t};return We(this,"shape",i),i},checks:[]};return G(e,n)}function Ti(e,t){return G(e,{...e._zod.def,get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return We(this,"shape",n),n},catchall:t._zod.def.catchall,checks:[]})}function Ri(e,t,n){const i=t._zod.def.shape,a={...i};if(n)for(const o in n){if(!(o in i))throw new Error(`Unrecognized key: "${o}"`);n[o]&&(a[o]=e?new e({type:"optional",innerType:i[o]}):i[o])}else for(const o in i)a[o]=e?new e({type:"optional",innerType:i[o]}):i[o];return G(t,{...t._zod.def,shape:a,checks:[]})}function Ii(e,t,n){const i=t._zod.def.shape,a={...i};if(n)for(const o in n){if(!(o in a))throw new Error(`Unrecognized key: "${o}"`);n[o]&&(a[o]=new e({type:"nonoptional",innerType:i[o]}))}else for(const o in i)a[o]=new e({type:"nonoptional",innerType:i[o]});return G(t,{...t._zod.def,shape:a,checks:[]})}function re(e,t=0){for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function W(e,t){return t.map(n=>{var i;return(i=n).path??(i.path=[]),n.path.unshift(e),n})}function fe(e){return typeof e=="string"?e:e?.message}function M(e,t,n){const i={...e,path:e.path??[]};if(!e.message){const a=fe(e.inst?._zod.def?.error?.(e))??fe(t?.error?.(e))??fe(n.customError?.(e))??fe(n.localeError?.(e))??"Invalid input";i.message=a}return delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function Be(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function ce(...e){const[t,n,i]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:i}:{...t}}const Ht=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(t,_i,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Yt=c("$ZodError",Ht),Xt=c("$ZodError",Ht,{Parent:Error});function Oi(e,t=n=>n.message){const n={},i=[];for(const a of e.issues)a.path.length>0?(n[a.path[0]]=n[a.path[0]]||[],n[a.path[0]].push(t(a))):i.push(t(a));return{formErrors:i,fieldErrors:n}}function Si(e,t){const n=t||function(o){return o.message},i={_errors:[]},a=o=>{for(const r of o.issues)if(r.code==="invalid_union"&&r.errors.length)r.errors.map(s=>a({issues:s}));else if(r.code==="invalid_key")a({issues:r.issues});else if(r.code==="invalid_element")a({issues:r.issues});else if(r.path.length===0)i._errors.push(n(r));else{let s=i,p=0;for(;p<r.path.length;){const l=r.path[p];p===r.path.length-1?(s[l]=s[l]||{_errors:[]},s[l]._errors.push(n(r))):s[l]=s[l]||{_errors:[]},s=s[l],p++}}};return a(e),i}function Pi(e){const t=[];for(const n of e)typeof n=="number"?t.push(`[${n}]`):typeof n=="symbol"?t.push(`[${JSON.stringify(String(n))}]`):/[^\w$]/.test(n)?t.push(`[${JSON.stringify(n)}]`):(t.length&&t.push("."),t.push(n));return t.join("")}function Qt(e){const t=[],n=[...e.issues].sort((i,a)=>i.path.length-a.path.length);for(const i of n)t.push(`✖ ${i.message}`),i.path?.length&&t.push(` → at ${Pi(i.path)}`);return t.join(`
|
|
4
4
|
`)}const Ni=e=>(t,n,i,a)=>{const o=i?Object.assign(i,{async:!1}):{async:!1},r=t._zod.run({value:n,issues:[]},o);if(r instanceof Promise)throw new se;if(r.issues.length){const s=new(a?.Err??e)(r.issues.map(p=>M(p,o,L())));throw Jt(s,a?.callee),s}return r.value},Di=e=>async(t,n,i,a)=>{const o=i?Object.assign(i,{async:!0}):{async:!0};let r=t._zod.run({value:n,issues:[]},o);if(r instanceof Promise&&(r=await r),r.issues.length){const s=new(a?.Err??e)(r.issues.map(p=>M(p,o,L())));throw Jt(s,a?.callee),s}return r.value},en=e=>(t,n,i)=>{const a=i?{...i,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new se;return o.issues.length?{success:!1,error:new(e??Yt)(o.issues.map(r=>M(r,a,L())))}:{success:!0,data:o.value}},Ci=en(Xt),tn=e=>async(t,n,i)=>{const a=i?Object.assign(i,{async:!0}):{async:!0};let o=t._zod.run({value:n,issues:[]},a);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(r=>M(r,a,L())))}:{success:!0,data:o.value}},Ui=tn(Xt),Li=/^[cC][^\s-]{8,}$/,Mi=/^[0-9a-z]+$/,qi=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Fi=/^[0-9a-vA-V]{20}$/,Vi=/^[A-Za-z0-9]{27}$/,Ki=/^[a-zA-Z0-9_-]{21}$/,Wi=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Bi=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,ct=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/,Gi=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Ji="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Hi(){return new RegExp(Ji,"u")}const Yi=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Xi=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,Qi=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,ea=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,ta=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,nn=/^[A-Za-z0-9_-]*$/,na=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,ia=/^\+(?:[0-9]){6,14}[0-9]$/,an="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",aa=new RegExp(`^${an}$`);function on(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function oa(e){return new RegExp(`^${on(e)}$`)}function ra(e){const t=on({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-]\\d{2}:\\d{2})");const i=`${t}(?:${n.join("|")})`;return new RegExp(`^${an}T(?:${i})$`)}const sa=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},ca=/^\d+$/,pa=/^-?\d+(?:\.\d+)?/i,la=/true|false/i,ua=/^[^A-Z]*$/,da=/^[^a-z]*$/,O=c("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),rn={number:"number",bigint:"bigint",object:"date"},sn=c("$ZodCheckLessThan",(e,t)=>{O.init(e,t);const n=rn[typeof t.value];e._zod.onattach.push(i=>{const a=i._zod.bag,o=(t.inclusive?a.maximum:a.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?a.maximum=t.value:a.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:n,code:"too_big",maximum:t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),cn=c("$ZodCheckGreaterThan",(e,t)=>{O.init(e,t);const n=rn[typeof t.value];e._zod.onattach.push(i=>{const a=i._zod.bag,o=(t.inclusive?a.minimum:a.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?a.minimum=t.value:a.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:n,code:"too_small",minimum:t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ma=c("$ZodCheckMultipleOf",(e,t)=>{O.init(e,t),e._zod.onattach.push(n=>{var i;(i=n._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):ki(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),fa=c("$ZodCheckNumberFormat",(e,t)=>{O.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),i=n?"int":"number",[a,o]=$i[t.format];e._zod.onattach.push(r=>{const s=r._zod.bag;s.format=t.format,s.minimum=a,s.maximum=o,n&&(s.pattern=ca)}),e._zod.check=r=>{const s=r.value;if(n){if(!Number.isInteger(s)){r.issues.push({expected:i,format:t.format,code:"invalid_type",input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?r.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!t.abort}):r.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!t.abort});return}}s<a&&r.issues.push({origin:"number",input:s,code:"too_small",minimum:a,inclusive:!0,inst:e,continue:!t.abort}),s>o&&r.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inst:e})}}),va=c("$ZodCheckMaxLength",(e,t)=>{var n;O.init(e,t),(n=e._zod.def).when??(n.when=i=>{const a=i.value;return!Ve(a)&&a.length!==void 0}),e._zod.onattach.push(i=>{const a=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<a&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const a=i.value;if(a.length<=t.maximum)return;const r=Be(a);i.issues.push({origin:r,code:"too_big",maximum:t.maximum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),ha=c("$ZodCheckMinLength",(e,t)=>{var n;O.init(e,t),(n=e._zod.def).when??(n.when=i=>{const a=i.value;return!Ve(a)&&a.length!==void 0}),e._zod.onattach.push(i=>{const a=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>a&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const a=i.value;if(a.length>=t.minimum)return;const r=Be(a);i.issues.push({origin:r,code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),ga=c("$ZodCheckLengthEquals",(e,t)=>{var n;O.init(e,t),(n=e._zod.def).when??(n.when=i=>{const a=i.value;return!Ve(a)&&a.length!==void 0}),e._zod.onattach.push(i=>{const a=i._zod.bag;a.minimum=t.length,a.maximum=t.length,a.length=t.length}),e._zod.check=i=>{const a=i.value,o=a.length;if(o===t.length)return;const r=Be(a),s=o>t.length;i.issues.push({origin:r,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),ze=c("$ZodCheckStringFormat",(e,t)=>{var n,i;O.init(e,t),e._zod.onattach.push(a=>{const o=a._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=a=>{t.pattern.lastIndex=0,!t.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:t.format,input:a.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),xa=c("$ZodCheckRegex",(e,t)=>{ze.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),ba=c("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=ua),ze.init(e,t)}),wa=c("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=da),ze.init(e,t)}),_a=c("$ZodCheckIncludes",(e,t)=>{O.init(e,t);const n=ue(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=i,e._zod.onattach.push(a=>{const o=a._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i)}),e._zod.check=a=>{a.value.includes(t.includes,t.position)||a.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:a.value,inst:e,continue:!t.abort})}}),ka=c("$ZodCheckStartsWith",(e,t)=>{O.init(e,t);const n=new RegExp(`^${ue(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{const a=i._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),ya=c("$ZodCheckEndsWith",(e,t)=>{O.init(e,t);const n=new RegExp(`.*${ue(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{const a=i._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}}),za=c("$ZodCheckOverwrite",(e,t)=>{O.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Ea{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const i=t.split(`
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{o as Be,g as yt}from"./D5lcOOwR.js";import{n as me,aZ as wt,ax as T,N as x,Q as P}from"./B3bf7yrh.js";const q=[];function Re(e,t=me){let n=null;const r=new Set;function a(o){if(wt(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 fe{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 vt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function bt(e){return e.split("%25").map(decodeURI).join("%25")}function kt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function ye({href:e}){return e.split("#")[0]}function At(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 St(...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 Et(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 Rt=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&H.delete(Le(e)),Rt(e,t));const H=new Map;function It(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=Et(a)),Promise.resolve(new Response(a,s))}return window.fetch(e,t)}function Ut(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="${St(...a)}"]`}return r}const Lt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function Tt(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${Pt(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=Lt.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 xt(e){return!/^\([^)]+\)$/.test(e)}function Pt(e){return e.slice(1).split("/").filter(xt)}function Ct(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 Nt({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}=Tt(o),f={id:o,exec:p=>{const m=h.exec(p);if(m)return Ct(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 Fe(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const U=globalThis.__sveltekit_1k8tjlq?.base??"",Ot=globalThis.__sveltekit_1k8tjlq?.assets??U,jt="1753739247777",Xe="sveltekit:snapshot",Ze="sveltekit:scroll",Qe="sveltekit:states",$t="sveltekit:pageurl",F="sveltekit:history",z="sveltekit:navigation",j={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},Q=location.origin;function Te(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 Ve={...j,"":j.hover};function et(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function tt(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=et(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===Q&&e.hasAttribute("download");return{url:r,external:s,target:a,download:i}}function ne(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=et(o);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Ve[r??"off"],preload_data:Ve[a??"off"],keepfocus:c(t),noscroll:c(n),reload:c(s),replace_state:c(i)}}function Me(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 nt={v:()=>{}};function Dt(){const{set:e,subscribe:t}=Re(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${Ot}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==jt;return i&&(e(!0),nt.v(),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:r}}function de(e,t,n){return e.origin!==Q||!e.pathname.startsWith(t)?!0:n?!(e.pathname===t+"/"||e.pathname===t+"/index.html"||e.protocol==="file:"&&e.pathname.replace(/\/[^/]+\.html?$/,"")===t):!1}function An(e){}function Ge(e){const t=Bt(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 qt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Bt(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|=qt.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 Ft=-1,Vt=-2,Mt=-3,Gt=-4,Ht=-5,Kt=-6;function Wt(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===Ft)return;if(s===Mt)return NaN;if(s===Gt)return 1/0;if(s===Ht)return-1/0;if(s===Kt)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=Ge(p),_=new f(m);r[s]=_;break}case"ArrayBuffer":{const f=o[1],p=Ge(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!==Vt&&(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 rt=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...rt];const Yt=new Set([...rt]);[...Yt];function zt(e){return e.filter(t=>t!=null)}const Jt="x-sveltekit-invalidated",Xt="x-sveltekit-trailing-slash";function re(e){return e instanceof fe||e instanceof Ue?e.status:500}function Zt(e){return e instanceof Ue?e.text:"Internal Error"}let S,J,ve;const Qt=Be.toString().includes("$$")||/function \w+\(\) \{\}/.test(Be.toString());Qt?(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)}},nt.v=()=>ve.current=!0);function en(e){Object.assign(S,e)}const tn="/__data.json",nn=".html__data.json";function rn(e){return e.endsWith(".html")?e.replace(/\.html$/,nn):e.replace(/\/$/,"")+tn}const{tick:an}=yt,on=new Set(["icon","shortcut icon","apple-touch-icon"]),D=Je(Ze)??{},X=Je(Xe)??{},O={url:Me({}),page:Me({}),navigating:Re(null),updated:Dt()};function xe(e){D[e]=ue()}function sn(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 at(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(U||"/");e&&await e.update()}}function He(){}let Pe,Ae,ae,C,Se,v;const oe=[],se=[];let N=null;const te=new Map,ot=new Set,cn=new Set,K=new Set;let w={branch:[],error:null,url:null},Ce=!1,ie=!1,Ke=!0,Z=!1,G=!1,st=!1,Ne=!1,it,k,I,$;const W=new Set;async function In(e,t,n){document.URL!==location.href&&(location.href=location.href),v=e,await e.hooks.init?.(),Pe=Nt(e),C=document.documentElement,Se=t,Ae=e.nodes[0],ae=e.nodes[1],Ae(),ae(),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 yn(Se,n)):(await Y({type:"enter",url:Te(v.hash?vn(new URL(location.href)):location.href),replace_state:!0}),a()),mn()}function ln(){oe.length=0,Ne=!1}function ct(e){se.some(t=>t?.snapshot)&&(X[e]=se.map(t=>t?.snapshot?.capture()))}function lt(e){X[e]?.forEach((t,n)=>{se[n]?.snapshot?.restore(t)})}function We(){xe(k),Fe(Ze,D),ct(I),Fe(Xe,X)}async function Oe(e,t,n,r){return Y({type:"goto",url:Te(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(Ne=!0),t.invalidate&&t.invalidate.forEach(_n)}})}async function fn(e){if(e.id!==N?.id){const t={};W.add(t),N={id:e.id,token:t,promise:dt({...e,preload:t}).then(n=>(W.delete(t),n.type==="loaded"&&n.state.error&&(N=null),n))}}return N.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 ft(e,t,n){w=e.state;const r=document.querySelector("style[data-sveltekit]");if(r&&r.remove(),Object.assign(S,e.props.page),it=new v.root({target:t,props:{...e.props,stores:O,components:se},hydrate:n,sync:!1}),lt(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))}ie=!0}function ce({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=vt(e.pathname,o),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:s},props:{constructors:zt(n).map(f=>f.node.component),page:qe(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 je({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:At(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}=ut(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 ut(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=ie?Ut(r,a.href,t):It(r,t);return{resolved:a,promise:s}}function Ye(e,t,n,r,a,s){if(Ne)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(oe.some(o=>o(new URL(i))))return!0;return!1}function $e(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function un(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:qe(S),constructors:[]}}}async function dt({id:e,invalidating:t,url:n,params:r,route:a,preload:s}){if(N?.id===e)return W.delete(N.token),N.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!==le(w.url):!1,u=w.route?a.id!==w.route.id:!1,f=un(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 gt(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:re(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 je({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:$e(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=re(y),A;if(_?.includes(y))b=y.status??b,A=y.error;else if(y instanceof fe)A=y.body;else{if(await O.updated.check())return await at(),await M(n);A=await V(y,{params:r,url:n,route:{id:a.id}})}const ee=await dn(g,L,i);return ee?ce({url:n,params:r,branch:L.slice(0,ee.idx).concat(ee.node),status:b,error:A,route:a}):await pt(n,{id:a.id},A,b)}else L.push(void 0);return ce({url:n,params:r,branch:L,status:200,error:null,route:a,form:t?void 0:null})}async function dn(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 gt(n,[!0]);if(o.type!=="data"||o.nodes[0]&&o.nodes[0].type!=="data")throw 0;s=o.nodes[0]??null}catch{(n.origin!==Q||n.pathname!==location.pathname||Ce)&&await M(n)}try{const o=await je({loader:Ae,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:$e(s)}),c={node:await ae(),loader:ae,universal:null,server:null,data:null};return ce({url:n,params:a,branch:[o,c],status:e,error:t,route:null})}catch(o){if(o instanceof Ie)return Oe(new URL(o.location,location.href),{},0);throw o}}async function hn(e){const t=e.href;if(te.has(t))return te.get(t);let n;try{const r=(async()=>{let a=await v.hooks.reroute({url:new URL(e),fetch:async(s,i)=>ut(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})();te.set(t,r),n=await r}catch{te.delete(t);return}return n}async function pe(e,t){if(e&&!de(e,U,v.hash)){const n=await hn(e);if(!n)return;const r=pn(n);for(const a of Pe){const s=a.exec(r);if(s)return{id:le(e),invalidating:t,route:a,params:kt(s),url:e}}}}function pn(e){return bt(v.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(U.length))||"/"}function le(e){return(v.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function ht({url:e,type:t,intent:n,delta:r}){let a=!1;const s=De(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||ot.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=He,block:d=He}){const h=$;$=c;const u=await pe(t,!1),f=e==="enter"?De(w,u,t,e):ht({url:t,type:e,delta:n?.delta,intent:u});if(!f){d(),$===c&&($=h);return}const p=k,m=I;l(),Z=!0,ie&&f.navigation.type!=="enter"&&O.navigating.set(J.current=f.navigation);let _=u&&await dt(u);if(!_){if(de(t,U,v.hash))return await M(t);_=await pt(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 Oe(new URL(_.location,t).href,{},o+1,c),!1;else _.props.page.status>=400&&await O.updated.check()&&(await at(),await M(t));if(ln(),xe(p),ct(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||sn(k,I)}if(N=null,_.props.page.state=i,ie){w=_.state,_.props.page&&(_.props.page.url=t);const g=(await Promise.all(Array.from(cn,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)})}it.$set(_.props),en(_.props.page),st=!0}else ft(_,Se,!1);const{activeElement:R}=document;await an();const E=n?n.scroll:a?ue():null;if(Ke){const g=t.hash&&document.getElementById(mt(t));E?scrollTo(E.x,E.y):g?g.scrollIntoView():scrollTo(0,0)}const L=document.activeElement!==R&&document.activeElement!==document.body;!r&&!L&&wn(t),Ke=!0,_.props.page&&Object.assign(S,_.props.page),Z=!1,e==="popstate"&<(I),f.fulfil(void 0),K.forEach(g=>g(f.navigation)),O.navigating.set(J.current=null)}async function pt(e,t,n,r){return e.origin===Q&&e.pathname===location.pathname&&!Ce?await he({status:r,error:n,url:e,route:t}):await M(e)}function gn(){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=tt(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=ne(l),m=h&&le(w.url)===le(h);if(!(p.reload||m))if(c<=p.preload_data){t=l,n=j.tap;const _=await pe(h,!1);if(!_)return;fn(_)}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=ne(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 fe)return e.body;const n=re(e),r=Zt(e);return v.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function Un(e,t={}){return e=new URL(Te(e)),e.origin!==Q?Promise.reject(new Error("goto: invalid URL")):Oe(e,t,0)}function _n(e){if(typeof e=="function")oe.push(e);else{const{href:t}=new URL(e,location.href);oe.push(n=>n.href===t)}}function mn(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(We(),!Z){const r=De(w,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};ot.forEach(s=>s(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&We()}),navigator.connection?.saveData||gn(),C.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=tt(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=ne(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)){ht({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,xe(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=ne(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[$t]??location.href),i=t.state[z],o=w.url?ye(location)===ye(w.url):!1;if(i===I&&(st||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"))on.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&O.navigating.set(J.current=null)});function e(t){w.url=S.url=t,O.page.set(qe(S)),O.page.notify()}}async function yn(e,{status:t=200,error:n,node_ids:r,params:a,route:s,server_route:i,data:o,form:c}){Ce=!0;const l=new URL(location.href);let d;({params:a={},route:s={id:null}}=await pe(l,!1)||{}),d=Pe.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=_t(R.uses)),je({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:$e(R)})}),p=await Promise.all(f);if(d){const m=d.layouts;for(let _=0;_<m.length;_++)m[_]||p.splice(_,0,void 0)}h=ce({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:re(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={}),ft(h,e,u)}async function gt(e,t){const n=new URL(e);n.pathname=rn(e.pathname),e.pathname.endsWith("/")&&n.searchParams.append(Xt,"1"),n.searchParams.append(Jt,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 fe(a.status,s)}return new Promise(async s=>{const i=new Map,o=a.body.getReader(),c=new TextDecoder;function l(h){return Wt(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=_t(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 _t(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 wn(e){const t=document.querySelector("[autofocus]");if(t)t.focus();else{const n=mt(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 De(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 qe(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 vn(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function mt(e){let t;if(v.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{In as a,Un as g,An as l,S as p,O as s};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{p,d as c,b as m,s as d,f as b,a as u}from"./B3bf7yrh.js";import{d as _}from"./D5lcOOwR.js";import{p as g,i as v}from"./ct9jA5hl.js";import{g as k}from"./
|
|
1
|
+
import"./DsnmJJEf.js";import{p,d as c,b as m,s as d,f as b,a as u}from"./B3bf7yrh.js";import{d as _}from"./D5lcOOwR.js";import{p as g,i as v}from"./ct9jA5hl.js";import{g as k}from"./BeFE4kE2.js";import{F as h,l as y}from"./B4IjTTLF.js";var L=(t,o)=>{t.preventDefault(),o().close(),history.back()},P=m("<button>Take me back</button>"),x=m("<p>Are you sure you want to log out?</p> <!>",1);function O(t,o){p(o,!0);let a=g(o,"dialog",15),l=g(o,"fullPage",3,!1);h(t,{get pageMode(){return l()},submitText:"Log Out",submit:()=>y().then(()=>k("/")),get dialog(){return a()},set dialog(r){a(r)},children:(r,D)=>{var s=x(),n=d(b(s),2);{var f=e=>{var i=P();i.__click=[L,a],u(e,i)};v(n,e=>{l()&&e(f)})}u(r,s)},$$slots:{default:!0}}),c()}_(["click"]);export{O as L};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as e,p as r}from"./
|
|
1
|
+
import{s as e,p as r}from"./BeFE4kE2.js";const t={get error(){return r.error},get status(){return r.status},get url(){return r.url}};e.updated.check;const a=t;export{a as p};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.BbGefPez.js","../chunks/DsnmJJEf.js","../chunks/B3bf7yrh.js","../chunks/DCs3KlJy.js","../nodes/1.
|
|
2
|
-
import{h as V,i as U,g as z,E as G,A as Q,m as W,B as Y,C as H,q as J,F as K,Q as x,_ as X,N as m,ao as Z,a5 as $,av as ee,p as te,aw as re,al as ae,ax as k,au as se,b as N,f as w,s as ne,a as b,d as oe,c as A,e as ie,r as ce,ay as O,az as le,t as ue}from"../chunks/B3bf7yrh.js";import{a as fe,m as de,u as me,o as _e,s as he}from"../chunks/D5lcOOwR.js";import"../chunks/DsnmJJEf.js";import{p as L,i as T,b as C}from"../chunks/ct9jA5hl.js";function S(l,e,s){V&&U();var i=l,n,r,t=null,a=null;function _(){r&&(K(r),r=null),t&&(t.lastChild.remove(),i.before(t),t=null),r=a,a=null}z(()=>{if(n!==(n=e())){var h=H();if(n){var c=i;h&&(t=document.createDocumentFragment(),t.append(c=Q())),a=W(()=>s(c,n))}h?Y.add_callback(_):_()}},G),V&&(i=J)}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},j={},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 j)return;j[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)})},Te={};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=L(e,"components",23,()=>[]),i=L(e,"data_0",3,null),n=L(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);_e(()=>{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=A();const p=O(()=>e.constructors[0]);var P=w(u);S(P,()=>m(p),(g,E)=>{C(E(g,{get data(){return i()},get form(){return e.form},get params(){return e.page.params},children:(R,xe)=>{var I=A(),B=w(I);S(B,()=>m(_),(F,q)=>{C(q(F,{get data(){return n()},get form(){return e.form},get params(){return e.page.params}}),M=>s()[1]=M,()=>s()?.[1])}),b(R,I)},$$slots:{default:!0}}),R=>s()[0]=R,()=>s()?.[0])}),b(o,u)},v=o=>{var u=A();const p=O(()=>e.constructors[0]);var P=w(u);S(P,()=>m(p),(g,E)=>{C(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(()=>he(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),Se=[()=>y(()=>import("../nodes/0.BbGefPez.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.BbGefPez.js","../chunks/DsnmJJEf.js","../chunks/B3bf7yrh.js","../chunks/DCs3KlJy.js","../nodes/1.C3jvF6zj.js","../chunks/D5lcOOwR.js","../chunks/rXU5YtEm.js","../chunks/BeFE4kE2.js","../nodes/2._Jmh03he.js","../nodes/3.C1G23fTe.js","../chunks/ct9jA5hl.js","../chunks/B4IjTTLF.js","../assets/user.Cbakz6hh.css","../chunks/CtT1TXOG.js","../assets/3.C2J9FN5q.css","../assets/Login.C58W2qGZ.css","../nodes/4.TQjMBeyV.js","../nodes/5.SHyxFZfo.js","../nodes/6.ikul5Bcl.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{h as V,i as U,g as z,E as G,A as Q,m as W,B as Y,C as H,q as J,F as K,Q as x,_ as X,N as m,ao as Z,a5 as $,av as ee,p as te,aw as re,al as ae,ax as k,au as se,b as N,f as w,s as ne,a as b,d as oe,c as A,e as ie,r as ce,ay as O,az as le,t as ue}from"../chunks/B3bf7yrh.js";import{a as fe,m as de,u as me,o as _e,s as he}from"../chunks/D5lcOOwR.js";import"../chunks/DsnmJJEf.js";import{p as L,i as T,b as C}from"../chunks/ct9jA5hl.js";function S(l,e,s){V&&U();var i=l,n,r,t=null,a=null;function _(){r&&(K(r),r=null),t&&(t.lastChild.remove(),i.before(t),t=null),r=a,a=null}z(()=>{if(n!==(n=e())){var h=H();if(n){var c=i;h&&(t=document.createDocumentFragment(),t.append(c=Q())),a=W(()=>s(c,n))}h?Y.add_callback(_):_()}},G),V&&(i=J)}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},j={},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 j)return;j[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)})},Te={};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=L(e,"components",23,()=>[]),i=L(e,"data_0",3,null),n=L(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);_e(()=>{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=A();const p=O(()=>e.constructors[0]);var P=w(u);S(P,()=>m(p),(g,E)=>{C(E(g,{get data(){return i()},get form(){return e.form},get params(){return e.page.params},children:(R,xe)=>{var I=A(),B=w(I);S(B,()=>m(_),(F,q)=>{C(q(F,{get data(){return n()},get form(){return e.form},get params(){return e.page.params}}),M=>s()[1]=M,()=>s()?.[1])}),b(R,I)},$$slots:{default:!0}}),R=>s()[0]=R,()=>s()?.[0])}),b(o,u)},v=o=>{var u=A();const p=O(()=>e.constructors[0]);var P=w(u);S(P,()=>m(p),(g,E)=>{C(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(()=>he(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),Se=[()=>y(()=>import("../nodes/0.BbGefPez.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),()=>y(()=>import("../nodes/1.C3jvF6zj.js"),__vite__mapDeps([4,1,2,5,3,6,7]),import.meta.url),()=>y(()=>import("../nodes/2._Jmh03he.js"),__vite__mapDeps([8,1,2]),import.meta.url),()=>y(()=>import("../nodes/3.C1G23fTe.js"),__vite__mapDeps([9,1,2,5,3,10,11,7,6,12,13,14,15]),import.meta.url),()=>y(()=>import("../nodes/4.TQjMBeyV.js"),__vite__mapDeps([16,1,2,5,3,10,11,7,6,12,15]),import.meta.url),()=>y(()=>import("../nodes/5.SHyxFZfo.js"),__vite__mapDeps([17,1,13,2,5,3,10,7,11,6,12]),import.meta.url),()=>y(()=>import("../nodes/6.ikul5Bcl.js"),__vite__mapDeps([18,1,2,5,3,10,11,7,6,12,15]),import.meta.url)],De=[],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,je=(l,e)=>we[l](e);export{je as decode,we as decoders,Ie as dictionary,Ve as hash,Re as hooks,Te as matchers,Se as nodes,Ce as root,De as server_loads};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as o,a as r}from"../chunks/BeFE4kE2.js";export{o as load_css,r as start};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../chunks/DsnmJJEf.js";import{p as n,b as u,f as v,t as c,a as l,d as _,e as s,r as e,s as d}from"../chunks/B3bf7yrh.js";import{s as p}from"../chunks/D5lcOOwR.js";import{p as o}from"../chunks/
|
|
1
|
+
import"../chunks/DsnmJJEf.js";import{p as n,b as u,f as v,t as c,a as l,d as _,e as s,r as e,s as d}from"../chunks/B3bf7yrh.js";import{s as p}from"../chunks/D5lcOOwR.js";import{p as o}from"../chunks/rXU5YtEm.js";var g=u("<h1> </h1> <p> </p>",1);function k(m,f){n(f,!0);var t=g(),r=v(t),i=s(r,!0);e(r);var a=d(r,2),h=s(a,!0);e(a),c(()=>{p(i,o.status),p(h,o.error?.message)}),l(m,t),_()}export{k as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../chunks/DsnmJJEf.js";import{g as Tt,h as H,i as $t,aA as ct,H as zt,x as Je,y as ke,z as de,U as ft,aB as xe,aC as Te,J as Ct,q as oe,a3 as dt,a2 as _t,aD as pt,aj as Ht,D as $e,m as _e,F as Ee,ao as Vt,u as Bt,I as Gt,N as n,W as At,w as Wt,a8 as Kt,ad as Yt,C as Jt,B as Zt,ah as jt,a6 as Qt,A as Xt,av as ea,aE as ta,aF as qe,o as It,aG as aa,aH as ra,aa as sa,aI as na,ag as ia,aJ as oa,R as Lt,E as la,aK as va,aL as ua,G as ca,K as fa,aM as da,Z as _a,n as le,p as Xe,aN as pa,e as E,r as g,t as q,ay as re,a as A,d as et,aO as ma,b as j,ax as te,Q as K,O as He,c as mt,f as ge,$ as ha,s as w,v as ga,aP as ya}from"../chunks/B3bf7yrh.js";import{b as ba,w as Nt,d as pe,h as wa,s as R}from"../chunks/D5lcOOwR.js";import{r as xa,p as Ea,i as ae}from"../chunks/ct9jA5hl.js";import{b as ka,s as fe,F as ee,c as Ve,d as Be,e as ht,f as Ta,g as $a,h as za,i as Ca,u as Aa,j as ja,k as Ia,m as La,n as Na,o as Pa,p as Sa,q as Da,t as Oa}from"../chunks/BPkdKBlw.js";import{g as ye}from"../chunks/DOU_MWYN.js";/* empty css */import{L as Ma}from"../chunks/Che41mwa.js";/* empty css */const Ge=0,be=1,We=2;function Fa(o,t,e,a,_){H&&$t();var h=o,c=Ht,p=ft,u,s,l,m=Te(void 0),f=Te(void 0),b=!1;function v(r,k){b=!0,k&&(dt(i),_t(i),pt(c));try{r===be&&a&&(s?$e(s):s=_e(()=>a(h,m))),r===We&&_&&(l?$e(l):l=_e(()=>_(h,f))),r!==Ge&&u&&Ee(u,()=>u=null),r!==be&&s&&Ee(s,()=>s=null),r!==We&&l&&Ee(l,()=>l=null)}finally{k&&(pt(null),_t(null),dt(null),Vt())}}var i=Tt(()=>{if(p===(p=t()))return;let r=H&&ct(p)===(h.data===zt);if(r&&(h=Je(),ke(h),de(!1),r=!0),ct(p)){var k=p;b=!1,k.then(x=>{k===p&&(xe(m,x),v(be,!0))},x=>{if(k===p&&(xe(f,x),v(We,!0),!_))throw f.v}),H||Ct(()=>{b||v(Ge,!0)})}else xe(m,p),v(be,!1);return r&&de(!0),()=>p=ft});H&&(h=oe)}function ce(o,t){H&&ke(Bt(o)),Gt(()=>{var e=t();for(var a in e){var _=e[a];_?o.style.setProperty(a,_):o.style.removeProperty(a)}})}function gt(o,t){return t}function Ua(o,t,e){for(var a=o.items,_=[],h=t.length,c=0;c<h;c++)na(t[c].e,_,!0);var p=h>0&&_.length===0&&e!==null;if(p){var u=e.parentNode;ia(u),u.append(e),a.clear(),V(o,t[0].prev,t[h-1].next)}oa(_,()=>{for(var s=0;s<h;s++){var l=t[s];p||(a.delete(l.k),V(o,l.prev,l.next)),It(l.e,!p)}})}function yt(o,t,e,a,_,h=null){var c=o,p={flags:t,items:new Map,first:null};H&&$t();var u=null,s=!1,l=new Map,m=At(()=>{var i=e();return Qt(i)?i:i==null?[]:jt(i)}),f,b;function v(){Ra(b,f,p,l,c,_,t,a,e),h!==null&&(f.length===0?u?$e(u):u=_e(()=>h(c)):u!==null&&Ee(u,()=>{u=null}))}Tt(()=>{b??=Lt,f=n(m);var i=f.length;if(s&&i===0)return;s=i===0;let r=!1;if(H){var k=Wt(c)===zt;k!==(i===0)&&(c=Je(),ke(c),de(!1),r=!0)}if(H){for(var x=null,d,$=0;$<i;$++){if(oe.nodeType===Kt&&oe.data===Yt){c=oe,r=!0,de(!1);break}var C=f[$],I=a(C,$);d=Ze(oe,p,x,null,C,I,$,_,t,e),p.items.set(I,d),x=d}i>0&&ke(Je())}if(H)i===0&&h&&(u=_e(()=>h(c)));else if(Jt()){var B=new Set,D=Zt;for($=0;$<i;$+=1){C=f[$],I=a(C,$);var L=p.items.get(I)??l.get(I);L?Pt(L,C,$):(d=Ze(null,p,null,null,C,I,$,_,t,e,!0),l.set(I,d)),B.add(I)}for(const[J,G]of p.items)B.has(J)||D.skipped_effects.add(G.e);D.add_callback(v)}else v();r&&de(!0),n(m)}),H&&(c=oe)}function Ra(o,t,e,a,_,h,c,p,u){var s=t.length,l=e.items,m=e.first,f=m,b,v=null,i=[],r=[],k,x,d,$;for($=0;$<s;$+=1){if(k=t[$],x=p(k,$),d=l.get(x),d===void 0){var C=a.get(x);if(C!==void 0){a.delete(x),l.set(x,C);var I=v?v.next:f;V(e,v,C),V(e,C,I),Ke(C,I,_),v=C}else{var B=f?f.e.nodes_start:_;v=Ze(B,e,v,v===null?e.first:v.next,k,x,$,h,c,u)}l.set(x,v),i=[],r=[],f=v.next;continue}if(Pt(d,k,$),(d.e.f&qe)!==0&&$e(d.e),d!==f){if(b!==void 0&&b.has(d)){if(i.length<r.length){var D=r[0],L;v=D.prev;var J=i[0],G=i[i.length-1];for(L=0;L<i.length;L+=1)Ke(i[L],D,_);for(L=0;L<r.length;L+=1)b.delete(r[L]);V(e,J.prev,G.next),V(e,v,J),V(e,G,D),f=D,v=G,$-=1,i=[],r=[]}else b.delete(d),Ke(d,f,_),V(e,d.prev,d.next),V(e,d,v===null?e.first:v.next),V(e,v,d),v=d;continue}for(i=[],r=[];f!==null&&f.k!==x;)(f.e.f&qe)===0&&(b??=new Set).add(f),r.push(f),f=f.next;if(f===null)continue;d=f}i.push(d),v=d,f=d.next}if(f!==null||b!==void 0){for(var se=b===void 0?[]:jt(b);f!==null;)(f.e.f&qe)===0&&se.push(f),f=f.next;var ze=se.length;if(ze>0){var Ce=null;Ua(e,se,Ce)}}o.first=e.first&&e.first.e,o.last=v&&v.e;for(var Ae of a.values())It(Ae.e);a.clear()}function Pt(o,t,e,a){xe(o.v,t),o.i=e}function Ze(o,t,e,a,_,h,c,p,u,s,l){var m=(u&aa)!==0,f=(u&ra)===0,b=m?f?ea(_,!1,!1):Te(_):_,v=(u&ta)===0?c:Te(c),i={i:v,v:b,k:h,a:null,e:null,prev:e,next:a};try{if(o===null){var r=document.createDocumentFragment();r.append(o=Xt())}return i.e=_e(()=>p(o,b,v,s),H),i.e.prev=e&&e.e,i.e.next=a&&a.e,e===null?l||(t.first=i):(e.next=i,e.e.next=i.e),a!==null&&(a.prev=i,a.e.prev=i.e),i}finally{}}function Ke(o,t,e){for(var a=o.next?o.next.e.nodes_start:e,_=t?t.e.nodes_start:e,h=o.e.nodes_start;h!==null&&h!==a;){var c=sa(h);_.before(h),h=c}}function V(o,t,e){t===null?o.first=e:(t.next=e,t.e.next=e&&e.e),e!==null&&(e.prev=t,e.e.prev=t&&t.e)}const qa=()=>performance.now(),Y={tick:o=>requestAnimationFrame(o),now:()=>qa(),tasks:new Set};function St(){const o=Y.now();Y.tasks.forEach(t=>{t.c(o)||(Y.tasks.delete(t),t.f())}),Y.tasks.size!==0&&Y.tick(St)}function Ha(o){let t;return Y.tasks.size===0&&Y.tick(St),{promise:new Promise(e=>{Y.tasks.add(t={c:o,f:e})}),abort(){Y.tasks.delete(t)}}}function we(o,t){Nt(()=>{o.dispatchEvent(new CustomEvent(t))})}function Va(o){if(o==="float")return"cssFloat";if(o==="offset")return"cssOffset";if(o.startsWith("--"))return o;const t=o.split("-");return t.length===1?t[0]:t[0]+t.slice(1).map(e=>e[0].toUpperCase()+e.slice(1)).join("")}function bt(o){const t={},e=o.split(";");for(const a of e){const[_,h]=a.split(":");if(!_||h===void 0)break;const c=Va(_.trim());t[c]=h.trim()}return t}const Ba=o=>o;function wt(o,t,e,a){var _=(o&da)!==0,h="both",c,p=t.inert,u=t.style.overflow,s,l;function m(){return Nt(()=>c??=e()(t,a?.()??{},{direction:h}))}var f={is_global:_,in(){t.inert=p,we(t,"introstart"),s=Qe(t,m(),l,1,()=>{we(t,"introend"),s?.abort(),s=c=void 0,t.style.overflow=u})},out(r){t.inert=!0,we(t,"outrostart"),l=Qe(t,m(),s,0,()=>{we(t,"outroend"),r?.()})},stop:()=>{s?.abort(),l?.abort()}},b=Lt;if((b.transitions??=[]).push(f),ba){var v=_;if(!v){for(var i=b.parent;i&&(i.f&la)!==0;)for(;(i=i.parent)&&(i.f&va)===0;);v=!i||(i.f&ua)!==0}v&&ca(()=>{fa(()=>f.in())})}}function Qe(o,t,e,a,_){var h=a===1;if(_a(t)){var c,p=!1;return Ct(()=>{if(!p){var r=t({direction:h?"in":"out"});c=Qe(o,r,e,a,_)}}),{abort:()=>{p=!0,c?.abort()},deactivate:()=>c.deactivate(),reset:()=>c.reset(),t:()=>c.t()}}if(e?.deactivate(),!t?.duration)return _(),{abort:le,deactivate:le,reset:le,t:()=>a};const{delay:u=0,css:s,tick:l,easing:m=Ba}=t;var f=[];if(h&&e===void 0&&(l&&l(0,1),s)){var b=bt(s(0,1));f.push(b,b)}var v=()=>1-a,i=o.animate(f,{duration:u,fill:"forwards"});return i.onfinish=()=>{i.cancel();var r=e?.t()??1-a;e?.abort();var k=a-r,x=t.duration*Math.abs(k),d=[];if(x>0){var $=!1;if(s)for(var C=Math.ceil(x/16.666666666666668),I=0;I<=C;I+=1){var B=r+k*m(I/C),D=bt(s(B,1-B));d.push(D),$||=D.overflow==="hidden"}$&&(o.style.overflow="hidden"),v=()=>{var L=i.currentTime;return r+k*m(L/x)},l&&Ha(()=>{if(i.playState!=="running")return!1;var L=v();return l(L,1-L),!0})}i=o.animate(d,{duration:x,fill:"forwards"}),i.onfinish=()=>{v=()=>a,l?.(a,1-a),_()}},{abort:()=>{i&&(i.cancel(),i.effect=null,i.onfinish=le)},deactivate:()=>{_=le},reset:()=>{a===0&&l?.(1,0)},t:()=>v()}}const Ga=o=>o;function xt(o,{delay:t=0,duration:e=400,easing:a=Ga}={}){const _=+getComputedStyle(o).opacity;return{delay:t,duration:e,easing:a,css:h=>`opacity: ${h*_}`}}var Ye={exports:{}},Et;function Wa(){return Et||(Et=1,function(o){var t=Object.prototype.hasOwnProperty,e="~";function a(){}Object.create&&(a.prototype=Object.create(null),new a().__proto__||(e=!1));function _(u,s,l){this.fn=u,this.context=s,this.once=l||!1}function h(u,s,l,m,f){if(typeof l!="function")throw new TypeError("The listener must be a function");var b=new _(l,m||u,f),v=e?e+s:s;return u._events[v]?u._events[v].fn?u._events[v]=[u._events[v],b]:u._events[v].push(b):(u._events[v]=b,u._eventsCount++),u}function c(u,s){--u._eventsCount===0?u._events=new a:delete u._events[s]}function p(){this._events=new a,this._eventsCount=0}p.prototype.eventNames=function(){var s=[],l,m;if(this._eventsCount===0)return s;for(m in l=this._events)t.call(l,m)&&s.push(e?m.slice(1):m);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(l)):s},p.prototype.listeners=function(s){var l=e?e+s:s,m=this._events[l];if(!m)return[];if(m.fn)return[m.fn];for(var f=0,b=m.length,v=new Array(b);f<b;f++)v[f]=m[f].fn;return v},p.prototype.listenerCount=function(s){var l=e?e+s:s,m=this._events[l];return m?m.fn?1:m.length:0},p.prototype.emit=function(s,l,m,f,b,v){var i=e?e+s:s;if(!this._events[i])return!1;var r=this._events[i],k=arguments.length,x,d;if(r.fn){switch(r.once&&this.removeListener(s,r.fn,void 0,!0),k){case 1:return r.fn.call(r.context),!0;case 2:return r.fn.call(r.context,l),!0;case 3:return r.fn.call(r.context,l,m),!0;case 4:return r.fn.call(r.context,l,m,f),!0;case 5:return r.fn.call(r.context,l,m,f,b),!0;case 6:return r.fn.call(r.context,l,m,f,b,v),!0}for(d=1,x=new Array(k-1);d<k;d++)x[d-1]=arguments[d];r.fn.apply(r.context,x)}else{var $=r.length,C;for(d=0;d<$;d++)switch(r[d].once&&this.removeListener(s,r[d].fn,void 0,!0),k){case 1:r[d].fn.call(r[d].context);break;case 2:r[d].fn.call(r[d].context,l);break;case 3:r[d].fn.call(r[d].context,l,m);break;case 4:r[d].fn.call(r[d].context,l,m,f);break;default:if(!x)for(C=1,x=new Array(k-1);C<k;C++)x[C-1]=arguments[C];r[d].fn.apply(r[d].context,x)}}return!0},p.prototype.on=function(s,l,m){return h(this,s,l,m,!1)},p.prototype.once=function(s,l,m){return h(this,s,l,m,!0)},p.prototype.removeListener=function(s,l,m,f){var b=e?e+s:s;if(!this._events[b])return this;if(!l)return c(this,b),this;var v=this._events[b];if(v.fn)v.fn===l&&(!f||v.once)&&(!m||v.context===m)&&c(this,b);else{for(var i=0,r=[],k=v.length;i<k;i++)(v[i].fn!==l||f&&!v[i].once||m&&v[i].context!==m)&&r.push(v[i]);r.length?this._events[b]=r.length===1?r[0]:r:c(this,b)}return this},p.prototype.removeAllListeners=function(s){var l;return s?(l=e?e+s:s,this._events[l]&&c(this,l)):(this._events=new a,this._eventsCount=0),this},p.prototype.off=p.prototype.removeListener,p.prototype.addListener=p.prototype.on,p.prefixed=e,p.EventEmitter=p,o.exports=p}(Ye)),Ye.exports}Wa();function Ka(o){return new Promise(t=>setTimeout(t,o))}const kt=Intl.NumberFormat("en",{notation:"compact"});kt.format.bind(kt);new TextEncoder;new TextDecoder;var Ya=pa("<svg><use></use></svg>");function W(o,t){Xe(t,!0);const e=xa(t,["$$slots","$$events","$$legacy","i"]),a=re(()=>t.i.includes("/")?t.i.split("/"):["solid",t.i]),_=re(()=>ma(n(a),2)),h=re(()=>n(_)[0]),c=re(()=>n(_)[1]),p=re(()=>`/icons/${n(h)}.svg#${n(c)}`);var u=Ya();ka(u,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:"1em",height:"1em",...e}),void 0,void 0,"svelte-ylmrta");var s=E(u);g(u),q(()=>fe(s,"href",n(p))),A(o,u),et()}async function Ja(o,t,e,a){const _=new Blob([t.value],{type:e()}),h=new ClipboardItem({[e()]:_});await navigator.clipboard.write([h]),K(a,!0),await Ka(3e3),K(a,!1)}var Za=j('<span class="svelte-g409dh"><!></span>'),Qa=j('<span class="svelte-g409dh"><!></span>'),Xa=j('<button class="svelte-g409dh"><!></button>');function er(o,t){Xe(t,!0);const e=Ea(t,"type",3,"text/plain");let a=te(!1);var _=Xa();_.__click=[Ja,t,e,a];var h=E(_);{var c=u=>{var s=Za(),l=E(s);W(l,{i:"check"}),g(s),wt(3,s,()=>xt),A(u,s)},p=u=>{var s=Qa(),l=E(s);W(l,{i:"copy"}),g(s),wt(3,s,()=>xt),A(u,s)};ae(h,u=>{n(a)?u(c):u(p,!1)})}g(_),A(o,_),et()}pe(["click"]);pe(["click"]);pe(["click"]);pe(["contextmenu"]);var tr=(o,t,e)=>t[e()].showModal(),ar=j('<button class="svelte-11mz0yj"><svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper></button>'),rr=j('<div class="svelte-11mz0yj"><label for="name">What do you want to be called?</label> <input name="name" type="text" required/></div>'),sr=j("<dfn><!></dfn>"),nr=(o,t,e)=>Pa(n(t).id).then(()=>K(e,!0)),ir=j("<button> </button>"),or=j('<div class="svelte-11mz0yj"><label for="email">Email Address</label> <input name="email" type="email" required/></div>'),lr=(o,t)=>t.logout.showModal(),vr=(o,t)=>t.delete.showModal(),ur=j("<p>Are you sure you want to delete your account?<br/>This action can't be undone.</p>"),cr=j("<p> </p>"),fr=j('<p class="subtle"><i>Unnamed</i></p>'),dr=j('<dfn title="You must have at least one passkey" class="disabled svelte-11mz0yj"><svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper></dfn>'),_r=j('<div class="svelte-11mz0yj"><label for="name">Passkey Name</label> <input name="name" type="text"/></div>'),pr=j(`<p class="svelte-11mz0yj">Are you sure you want to delete this passkey?<br/>This action can't be undone.</p>`),mr=j('<div class="item passkey svelte-11mz0yj"><dfn class="svelte-11mz0yj"><svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper></dfn> <dfn class="svelte-11mz0yj"><svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper></dfn> <!> <p> </p> <!> <!></div> <!> <!>',1),hr=(o,t,e)=>$a(n(t).id).then(n(e).push.bind(n(e))),gr=j('<span class="current svelte-11mz0yj">Current</span>'),yr=j('<span class="elevated svelte-11mz0yj">Elevated</span>'),br=j('<p class="svelte-11mz0yj">Are you sure you want to log out this session?</p>'),wr=j('<div class="item session svelte-11mz0yj"><p> <!> <!></p> <p> </p> <p> </p> <!></div> <!>',1),xr=(o,t)=>t.logout_all.showModal(),Er=j("<p>Are you sure you want to log out all sessions?</p>"),kr=j(`<div class="Account flex-content"><div id="pfp-container" class="svelte-11mz0yj"><img id="pfp" alt="User profile" width="100px" height="100px" class="svelte-11mz0yj"/></div> <p class="greeting svelte-11mz0yj"> </p> <div class="section main svelte-11mz0yj"><h3 class="svelte-11mz0yj">Personal Information</h3> <div class="item info svelte-11mz0yj"><p class="subtle svelte-11mz0yj">Name</p> <p class="svelte-11mz0yj"> </p> <!></div> <!> <div class="item info svelte-11mz0yj"><p class="subtle svelte-11mz0yj">Email</p> <p class="svelte-11mz0yj"> <!></p> <!></div> <!> <div class="item info svelte-11mz0yj"><p class="subtle svelte-11mz0yj">User ID <dfn title="This is your UUID. It can't be changed."><!></dfn></p> <p class="svelte-11mz0yj"> </p> <svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper></div> <span><button class="signout svelte-11mz0yj">Sign Out</button> <button class="danger">Delete Account</button> <!> <!></span></div> <div class="section main svelte-11mz0yj"><h3 class="svelte-11mz0yj">Passkeys</h3> <!> <span><button><!> Create</button></span></div> <div class="section main svelte-11mz0yj"><h3 class="svelte-11mz0yj">Sessions</h3> <!> <span><button class="danger">Logout All</button></span> <!></div></div>`),Tr=j('<div class="error"><h3>Failed to load account</h3> <p> </p></div>');function Sr(o,t){Xe(t,!0);const e=(v,i=le,r)=>{let k=At(()=>ya(r?.(),"pen"));var x=ar();x.__click=[tr,a,i],ht(x,"",{},{display:"contents"});var d=E(x);ce(d,()=>({"--size":"16px"})),W(d.lastChild,{get i(){return n(k)}}),g(d),g(x),A(v,x)},a=He({});let _=te(!1),h=te(void 0),c=te(void 0),p=te(!1),u=te(He([])),s=te(He([]));async function l(){K(h,await ja().catch(()=>(ye("/login?after=/account"),null)),!0),K(c,n(h).user,!0),K(u,await Ia(n(c).id),!0),K(s,await La(n(c).id),!0),K(p,await Na(n(c).id),!0)}async function m(v){const i=await Aa(n(c).id,v);K(c,i,!0)}var f=mt();wa(v=>{ha.title="Account"});var b=ge(f);Fa(b,l,null,v=>{var i=kr(),r=E(i),k=E(r);g(r);var x=w(r,2),d=E(x);g(x);var $=w(x,2),C=w(E($),2),I=w(E(C),2),B=E(I,!0);g(I);var D=w(I,2);e(D,()=>"edit_name"),g(C);var L=w(C,2);ee(L,{submit:m,submitText:"Change",get dialog(){return a.edit_name},set dialog(z){a.edit_name=z},children:(z,y)=>{var N=rr(),P=w(E(N),2);Ve(P),g(N),q(()=>Be(P,n(c).name||"")),A(z,N)},$$slots:{default:!0}});var J=w(L,2),G=w(E(J),2),se=E(G),ze=w(se);{var Ce=z=>{var y=sr(),N=E(y);W(N,{i:"regular/circle-check"}),g(y),q(P=>fe(y,"title",`Email verified on ${P??""}`),[()=>n(c).emailVerified.toLocaleDateString()]),A(z,y)},Ae=z=>{var y=mt(),N=ge(y);{var P=M=>{var O=ir();O.__click=[nr,c,_];var Z=E(O,!0);g(O),q(()=>R(Z,n(_)?"Verification email sent":"Verify")),A(M,O)};ae(N,M=>{n(p)&&M(P)},!0)}A(z,y)};ae(ze,z=>{n(c).emailVerified?z(Ce):z(Ae,!1)})}g(G);var Dt=w(G,2);e(Dt,()=>"edit_email"),g(J);var tt=w(J,2);ee(tt,{submit:m,submitText:"Change",get dialog(){return a.edit_email},set dialog(z){a.edit_email=z},children:(z,y)=>{var N=or(),P=w(E(N),2);Ve(P),g(N),q(()=>Be(P,n(c).email||"")),A(z,N)},$$slots:{default:!0}});var je=w(tt,2),Ie=E(je),at=w(E(Ie)),Ot=E(at);W(Ot,{i:"regular/circle-info"}),g(at),g(Ie);var Le=w(Ie,2),Mt=E(Le,!0);g(Le);var Ne=w(Le,2);ce(Ne,()=>({"--size":"16px"})),er(Ne.lastChild,{get value(){return n(c).id}}),g(Ne),g(je);var rt=w(je,2),st=E(rt);st.__click=[lr,a];var Pe=w(st,2);Pe.__click=[vr,a],ht(Pe,"",{},{cursor:"pointer"});var nt=w(Pe,2);Ma(nt,{get dialog(){return a.logout},set dialog(z){a.logout=z}});var Ft=w(nt,2);ee(Ft,{submit:()=>Ta(n(c).id).then(()=>ye("/")),submitText:"Delete Account",submitDanger:!0,get dialog(){return a.delete},set dialog(z){a.delete=z},children:(z,y)=>{var N=ur();A(z,N)},$$slots:{default:!0}}),g(rt),g($);var Se=w($,2),it=w(E(Se),2);yt(it,17,()=>n(u),gt,(z,y,N)=>{var P=mr(),M=ge(P),O=E(M),Z=E(O);{let T=re(()=>n(y).deviceType=="multiDevice"?"laptop-mobile":"mobile");ce(Z,()=>({"--size":"16px"})),W(Z.lastChild,{get i(){return n(T)}}),g(Z)}g(O);var ne=w(O,2),ve=E(ne);{let T=re(()=>n(y).backedUp?"circle-check":"circle-xmark");ce(ve,()=>({"--size":"16px"})),W(ve.lastChild,{get i(){return n(T)}}),g(ve)}g(ne);var me=w(ne,2);{var ue=T=>{var F=cr(),U=E(F,!0);g(F),q(()=>R(U,n(y).name)),A(T,F)},Me=T=>{var F=fr();A(T,F)};ae(me,T=>{n(y).name?T(ue):T(Me,!1)})}var X=w(me,2),Fe=E(X);g(X);var he=w(X,2);e(he,()=>"edit_passkey#"+n(y).id);var Ue=w(he,2);{var S=T=>{e(T,()=>"delete_passkey#"+n(y).id,()=>"trash")},Q=T=>{var F=dr(),U=E(F);ce(U,()=>({"--fill":"#888","--size":"16px"})),W(U.lastChild,{i:"trash-slash"}),g(U),g(F),A(T,F)};ae(Ue,T=>{n(u).length>1?T(S):T(Q,!1)})}g(M);var ie=w(M,2);ee(ie,{submit:T=>{if(typeof T.name!="string")throw"Passkey name must be a string";return n(y).name=T.name,Sa(n(y).id,T)},submitText:"Change",get dialog(){return a["edit_passkey#"+n(y).id]},set dialog(T){a["edit_passkey#"+n(y).id]=T},children:(T,F)=>{var U=_r(),ut=w(E(U),2);Ve(ut),g(U),q(()=>Be(ut,n(y).name||"")),A(T,U)},$$slots:{default:!0}});var Re=w(ie,2);ee(Re,{submit:()=>Da(n(y).id).then(()=>n(u).splice(n(u).indexOf(n(y)),1)),submitText:"Delete",submitDanger:!0,get dialog(){return a["delete_passkey#"+n(y).id]},set dialog(T){a["delete_passkey#"+n(y).id]=T},children:(T,F)=>{var U=pr();A(T,U)},$$slots:{default:!0}}),q(T=>{fe(O,"title",n(y).deviceType=="multiDevice"?"Multiple devices":"Single device"),fe(ne,"title",`This passkey is ${n(y).backedUp?"":"not "}backed up`),R(Fe,`Created ${T??""}`)},[()=>n(y).createdAt.toLocaleString()]),A(z,P)});var ot=w(it,2),De=E(ot);De.__click=[hr,c,u];var Ut=E(De);W(Ut,{i:"plus"}),ga(),g(De),g(ot),g(Se);var lt=w(Se,2),vt=w(E(lt),2);yt(vt,17,()=>n(s),gt,(z,y)=>{var N=wr(),P=ge(N),M=E(P),O=E(M),Z=w(O);{var ne=S=>{var Q=gr();A(S,Q)};ae(Z,S=>{n(y).id==n(h).id&&S(ne)})}var ve=w(Z,2);{var me=S=>{var Q=yr();A(S,Q)};ae(ve,S=>{n(y).elevated&&S(me)})}g(M);var ue=w(M,2),Me=E(ue);g(ue);var X=w(ue,2),Fe=E(X);g(X);var he=w(X,2);e(he,()=>"logout#"+n(y).id,()=>"right-from-bracket"),g(P);var Ue=w(P,2);ee(Ue,{submit:async()=>{await Oa(n(c).id,n(y).id),a["logout#"+n(y).id].remove(),n(s).splice(n(s).indexOf(n(y)),1),n(y).id==n(h).id&&ye("/")},submitText:"Logout",get dialog(){return a["logout#"+n(y).id]},set dialog(S){a["logout#"+n(y).id]=S},children:(S,Q)=>{var ie=br();A(S,ie)},$$slots:{default:!0}}),q((S,Q,ie,Re)=>{R(O,`${S??""}...${Q??""} `),R(Me,`Created ${ie??""}`),R(Fe,`Expires ${Re??""}`)},[()=>n(y).id.slice(0,4),()=>n(y).id.slice(-4),()=>n(y).created.toLocaleString(),()=>n(y).expires.toLocaleString()]),A(z,N)});var Oe=w(vt,2),Rt=E(Oe);Rt.__click=[xr,a],g(Oe);var qt=w(Oe,2);ee(qt,{submit:()=>za(n(c).id).then(()=>ye("/")),submitText:"Logout All Sessions",submitDanger:!0,get dialog(){return a.logout_all},set dialog(z){a.logout_all=z},children:(z,y)=>{var N=Er();A(z,N)},$$slots:{default:!0}}),g(lt),g(i),q(z=>{fe(k,"src",z),R(d,`Welcome, ${n(c).name??""}`),R(B,n(c).name),R(se,`${n(c).email??""} `),R(Mt,n(c).id)},[()=>Ca(n(c))]),A(v,i)},(v,i)=>{var r=Tr(),k=w(E(r),2),x=E(k,!0);g(k),g(r),q(()=>R(x,"message"in n(i)?n(i).message:n(i))),A(v,r)}),A(o,f),et()}pe(["click"]);export{Sr as component};
|
|
1
|
+
import"../chunks/DsnmJJEf.js";import{g as Tt,h as H,i as $t,aA as ct,H as zt,x as Je,y as ke,z as de,U as ft,aB as xe,aC as Te,J as Ct,q as oe,a3 as dt,a2 as _t,aD as pt,aj as Ht,D as $e,m as _e,F as Ee,ao as Vt,u as Bt,I as Gt,N as n,W as At,w as Wt,a8 as Kt,ad as Yt,C as Jt,B as Zt,ah as jt,a6 as Qt,A as Xt,av as ea,aE as ta,aF as qe,o as It,aG as aa,aH as ra,aa as sa,aI as na,ag as ia,aJ as oa,R as Lt,E as la,aK as va,aL as ua,G as ca,K as fa,aM as da,Z as _a,n as le,p as Xe,aN as pa,e as E,r as g,t as q,ay as re,a as A,d as et,aO as ma,b as j,ax as te,Q as K,O as He,c as mt,f as ge,$ as ha,s as w,v as ga,aP as ya}from"../chunks/B3bf7yrh.js";import{b as ba,w as Nt,d as pe,h as wa,s as R}from"../chunks/D5lcOOwR.js";import{r as xa,p as Ea,i as ae}from"../chunks/ct9jA5hl.js";import{b as ka,s as fe,F as ee,c as Ve,d as Be,e as ht,f as Ta,g as $a,h as za,i as Ca,u as Aa,j as ja,k as Ia,m as La,n as Na,o as Pa,p as Sa,q as Da,t as Oa}from"../chunks/B4IjTTLF.js";import{g as ye}from"../chunks/BeFE4kE2.js";/* empty css */import{L as Ma}from"../chunks/CtT1TXOG.js";/* empty css */const Ge=0,be=1,We=2;function Fa(o,t,e,a,_){H&&$t();var h=o,c=Ht,p=ft,u,s,l,m=Te(void 0),f=Te(void 0),b=!1;function v(r,k){b=!0,k&&(dt(i),_t(i),pt(c));try{r===be&&a&&(s?$e(s):s=_e(()=>a(h,m))),r===We&&_&&(l?$e(l):l=_e(()=>_(h,f))),r!==Ge&&u&&Ee(u,()=>u=null),r!==be&&s&&Ee(s,()=>s=null),r!==We&&l&&Ee(l,()=>l=null)}finally{k&&(pt(null),_t(null),dt(null),Vt())}}var i=Tt(()=>{if(p===(p=t()))return;let r=H&&ct(p)===(h.data===zt);if(r&&(h=Je(),ke(h),de(!1),r=!0),ct(p)){var k=p;b=!1,k.then(x=>{k===p&&(xe(m,x),v(be,!0))},x=>{if(k===p&&(xe(f,x),v(We,!0),!_))throw f.v}),H||Ct(()=>{b||v(Ge,!0)})}else xe(m,p),v(be,!1);return r&&de(!0),()=>p=ft});H&&(h=oe)}function ce(o,t){H&&ke(Bt(o)),Gt(()=>{var e=t();for(var a in e){var _=e[a];_?o.style.setProperty(a,_):o.style.removeProperty(a)}})}function gt(o,t){return t}function Ua(o,t,e){for(var a=o.items,_=[],h=t.length,c=0;c<h;c++)na(t[c].e,_,!0);var p=h>0&&_.length===0&&e!==null;if(p){var u=e.parentNode;ia(u),u.append(e),a.clear(),V(o,t[0].prev,t[h-1].next)}oa(_,()=>{for(var s=0;s<h;s++){var l=t[s];p||(a.delete(l.k),V(o,l.prev,l.next)),It(l.e,!p)}})}function yt(o,t,e,a,_,h=null){var c=o,p={flags:t,items:new Map,first:null};H&&$t();var u=null,s=!1,l=new Map,m=At(()=>{var i=e();return Qt(i)?i:i==null?[]:jt(i)}),f,b;function v(){Ra(b,f,p,l,c,_,t,a,e),h!==null&&(f.length===0?u?$e(u):u=_e(()=>h(c)):u!==null&&Ee(u,()=>{u=null}))}Tt(()=>{b??=Lt,f=n(m);var i=f.length;if(s&&i===0)return;s=i===0;let r=!1;if(H){var k=Wt(c)===zt;k!==(i===0)&&(c=Je(),ke(c),de(!1),r=!0)}if(H){for(var x=null,d,$=0;$<i;$++){if(oe.nodeType===Kt&&oe.data===Yt){c=oe,r=!0,de(!1);break}var C=f[$],I=a(C,$);d=Ze(oe,p,x,null,C,I,$,_,t,e),p.items.set(I,d),x=d}i>0&&ke(Je())}if(H)i===0&&h&&(u=_e(()=>h(c)));else if(Jt()){var B=new Set,D=Zt;for($=0;$<i;$+=1){C=f[$],I=a(C,$);var L=p.items.get(I)??l.get(I);L?Pt(L,C,$):(d=Ze(null,p,null,null,C,I,$,_,t,e,!0),l.set(I,d)),B.add(I)}for(const[J,G]of p.items)B.has(J)||D.skipped_effects.add(G.e);D.add_callback(v)}else v();r&&de(!0),n(m)}),H&&(c=oe)}function Ra(o,t,e,a,_,h,c,p,u){var s=t.length,l=e.items,m=e.first,f=m,b,v=null,i=[],r=[],k,x,d,$;for($=0;$<s;$+=1){if(k=t[$],x=p(k,$),d=l.get(x),d===void 0){var C=a.get(x);if(C!==void 0){a.delete(x),l.set(x,C);var I=v?v.next:f;V(e,v,C),V(e,C,I),Ke(C,I,_),v=C}else{var B=f?f.e.nodes_start:_;v=Ze(B,e,v,v===null?e.first:v.next,k,x,$,h,c,u)}l.set(x,v),i=[],r=[],f=v.next;continue}if(Pt(d,k,$),(d.e.f&qe)!==0&&$e(d.e),d!==f){if(b!==void 0&&b.has(d)){if(i.length<r.length){var D=r[0],L;v=D.prev;var J=i[0],G=i[i.length-1];for(L=0;L<i.length;L+=1)Ke(i[L],D,_);for(L=0;L<r.length;L+=1)b.delete(r[L]);V(e,J.prev,G.next),V(e,v,J),V(e,G,D),f=D,v=G,$-=1,i=[],r=[]}else b.delete(d),Ke(d,f,_),V(e,d.prev,d.next),V(e,d,v===null?e.first:v.next),V(e,v,d),v=d;continue}for(i=[],r=[];f!==null&&f.k!==x;)(f.e.f&qe)===0&&(b??=new Set).add(f),r.push(f),f=f.next;if(f===null)continue;d=f}i.push(d),v=d,f=d.next}if(f!==null||b!==void 0){for(var se=b===void 0?[]:jt(b);f!==null;)(f.e.f&qe)===0&&se.push(f),f=f.next;var ze=se.length;if(ze>0){var Ce=null;Ua(e,se,Ce)}}o.first=e.first&&e.first.e,o.last=v&&v.e;for(var Ae of a.values())It(Ae.e);a.clear()}function Pt(o,t,e,a){xe(o.v,t),o.i=e}function Ze(o,t,e,a,_,h,c,p,u,s,l){var m=(u&aa)!==0,f=(u&ra)===0,b=m?f?ea(_,!1,!1):Te(_):_,v=(u&ta)===0?c:Te(c),i={i:v,v:b,k:h,a:null,e:null,prev:e,next:a};try{if(o===null){var r=document.createDocumentFragment();r.append(o=Xt())}return i.e=_e(()=>p(o,b,v,s),H),i.e.prev=e&&e.e,i.e.next=a&&a.e,e===null?l||(t.first=i):(e.next=i,e.e.next=i.e),a!==null&&(a.prev=i,a.e.prev=i.e),i}finally{}}function Ke(o,t,e){for(var a=o.next?o.next.e.nodes_start:e,_=t?t.e.nodes_start:e,h=o.e.nodes_start;h!==null&&h!==a;){var c=sa(h);_.before(h),h=c}}function V(o,t,e){t===null?o.first=e:(t.next=e,t.e.next=e&&e.e),e!==null&&(e.prev=t,e.e.prev=t&&t.e)}const qa=()=>performance.now(),Y={tick:o=>requestAnimationFrame(o),now:()=>qa(),tasks:new Set};function St(){const o=Y.now();Y.tasks.forEach(t=>{t.c(o)||(Y.tasks.delete(t),t.f())}),Y.tasks.size!==0&&Y.tick(St)}function Ha(o){let t;return Y.tasks.size===0&&Y.tick(St),{promise:new Promise(e=>{Y.tasks.add(t={c:o,f:e})}),abort(){Y.tasks.delete(t)}}}function we(o,t){Nt(()=>{o.dispatchEvent(new CustomEvent(t))})}function Va(o){if(o==="float")return"cssFloat";if(o==="offset")return"cssOffset";if(o.startsWith("--"))return o;const t=o.split("-");return t.length===1?t[0]:t[0]+t.slice(1).map(e=>e[0].toUpperCase()+e.slice(1)).join("")}function bt(o){const t={},e=o.split(";");for(const a of e){const[_,h]=a.split(":");if(!_||h===void 0)break;const c=Va(_.trim());t[c]=h.trim()}return t}const Ba=o=>o;function wt(o,t,e,a){var _=(o&da)!==0,h="both",c,p=t.inert,u=t.style.overflow,s,l;function m(){return Nt(()=>c??=e()(t,a?.()??{},{direction:h}))}var f={is_global:_,in(){t.inert=p,we(t,"introstart"),s=Qe(t,m(),l,1,()=>{we(t,"introend"),s?.abort(),s=c=void 0,t.style.overflow=u})},out(r){t.inert=!0,we(t,"outrostart"),l=Qe(t,m(),s,0,()=>{we(t,"outroend"),r?.()})},stop:()=>{s?.abort(),l?.abort()}},b=Lt;if((b.transitions??=[]).push(f),ba){var v=_;if(!v){for(var i=b.parent;i&&(i.f&la)!==0;)for(;(i=i.parent)&&(i.f&va)===0;);v=!i||(i.f&ua)!==0}v&&ca(()=>{fa(()=>f.in())})}}function Qe(o,t,e,a,_){var h=a===1;if(_a(t)){var c,p=!1;return Ct(()=>{if(!p){var r=t({direction:h?"in":"out"});c=Qe(o,r,e,a,_)}}),{abort:()=>{p=!0,c?.abort()},deactivate:()=>c.deactivate(),reset:()=>c.reset(),t:()=>c.t()}}if(e?.deactivate(),!t?.duration)return _(),{abort:le,deactivate:le,reset:le,t:()=>a};const{delay:u=0,css:s,tick:l,easing:m=Ba}=t;var f=[];if(h&&e===void 0&&(l&&l(0,1),s)){var b=bt(s(0,1));f.push(b,b)}var v=()=>1-a,i=o.animate(f,{duration:u,fill:"forwards"});return i.onfinish=()=>{i.cancel();var r=e?.t()??1-a;e?.abort();var k=a-r,x=t.duration*Math.abs(k),d=[];if(x>0){var $=!1;if(s)for(var C=Math.ceil(x/16.666666666666668),I=0;I<=C;I+=1){var B=r+k*m(I/C),D=bt(s(B,1-B));d.push(D),$||=D.overflow==="hidden"}$&&(o.style.overflow="hidden"),v=()=>{var L=i.currentTime;return r+k*m(L/x)},l&&Ha(()=>{if(i.playState!=="running")return!1;var L=v();return l(L,1-L),!0})}i=o.animate(d,{duration:x,fill:"forwards"}),i.onfinish=()=>{v=()=>a,l?.(a,1-a),_()}},{abort:()=>{i&&(i.cancel(),i.effect=null,i.onfinish=le)},deactivate:()=>{_=le},reset:()=>{a===0&&l?.(1,0)},t:()=>v()}}const Ga=o=>o;function xt(o,{delay:t=0,duration:e=400,easing:a=Ga}={}){const _=+getComputedStyle(o).opacity;return{delay:t,duration:e,easing:a,css:h=>`opacity: ${h*_}`}}var Ye={exports:{}},Et;function Wa(){return Et||(Et=1,function(o){var t=Object.prototype.hasOwnProperty,e="~";function a(){}Object.create&&(a.prototype=Object.create(null),new a().__proto__||(e=!1));function _(u,s,l){this.fn=u,this.context=s,this.once=l||!1}function h(u,s,l,m,f){if(typeof l!="function")throw new TypeError("The listener must be a function");var b=new _(l,m||u,f),v=e?e+s:s;return u._events[v]?u._events[v].fn?u._events[v]=[u._events[v],b]:u._events[v].push(b):(u._events[v]=b,u._eventsCount++),u}function c(u,s){--u._eventsCount===0?u._events=new a:delete u._events[s]}function p(){this._events=new a,this._eventsCount=0}p.prototype.eventNames=function(){var s=[],l,m;if(this._eventsCount===0)return s;for(m in l=this._events)t.call(l,m)&&s.push(e?m.slice(1):m);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(l)):s},p.prototype.listeners=function(s){var l=e?e+s:s,m=this._events[l];if(!m)return[];if(m.fn)return[m.fn];for(var f=0,b=m.length,v=new Array(b);f<b;f++)v[f]=m[f].fn;return v},p.prototype.listenerCount=function(s){var l=e?e+s:s,m=this._events[l];return m?m.fn?1:m.length:0},p.prototype.emit=function(s,l,m,f,b,v){var i=e?e+s:s;if(!this._events[i])return!1;var r=this._events[i],k=arguments.length,x,d;if(r.fn){switch(r.once&&this.removeListener(s,r.fn,void 0,!0),k){case 1:return r.fn.call(r.context),!0;case 2:return r.fn.call(r.context,l),!0;case 3:return r.fn.call(r.context,l,m),!0;case 4:return r.fn.call(r.context,l,m,f),!0;case 5:return r.fn.call(r.context,l,m,f,b),!0;case 6:return r.fn.call(r.context,l,m,f,b,v),!0}for(d=1,x=new Array(k-1);d<k;d++)x[d-1]=arguments[d];r.fn.apply(r.context,x)}else{var $=r.length,C;for(d=0;d<$;d++)switch(r[d].once&&this.removeListener(s,r[d].fn,void 0,!0),k){case 1:r[d].fn.call(r[d].context);break;case 2:r[d].fn.call(r[d].context,l);break;case 3:r[d].fn.call(r[d].context,l,m);break;case 4:r[d].fn.call(r[d].context,l,m,f);break;default:if(!x)for(C=1,x=new Array(k-1);C<k;C++)x[C-1]=arguments[C];r[d].fn.apply(r[d].context,x)}}return!0},p.prototype.on=function(s,l,m){return h(this,s,l,m,!1)},p.prototype.once=function(s,l,m){return h(this,s,l,m,!0)},p.prototype.removeListener=function(s,l,m,f){var b=e?e+s:s;if(!this._events[b])return this;if(!l)return c(this,b),this;var v=this._events[b];if(v.fn)v.fn===l&&(!f||v.once)&&(!m||v.context===m)&&c(this,b);else{for(var i=0,r=[],k=v.length;i<k;i++)(v[i].fn!==l||f&&!v[i].once||m&&v[i].context!==m)&&r.push(v[i]);r.length?this._events[b]=r.length===1?r[0]:r:c(this,b)}return this},p.prototype.removeAllListeners=function(s){var l;return s?(l=e?e+s:s,this._events[l]&&c(this,l)):(this._events=new a,this._eventsCount=0),this},p.prototype.off=p.prototype.removeListener,p.prototype.addListener=p.prototype.on,p.prefixed=e,p.EventEmitter=p,o.exports=p}(Ye)),Ye.exports}Wa();function Ka(o){return new Promise(t=>setTimeout(t,o))}const kt=Intl.NumberFormat("en",{notation:"compact"});kt.format.bind(kt);new TextEncoder;new TextDecoder;var Ya=pa("<svg><use></use></svg>");function W(o,t){Xe(t,!0);const e=xa(t,["$$slots","$$events","$$legacy","i"]),a=re(()=>t.i.includes("/")?t.i.split("/"):["solid",t.i]),_=re(()=>ma(n(a),2)),h=re(()=>n(_)[0]),c=re(()=>n(_)[1]),p=re(()=>`/icons/${n(h)}.svg#${n(c)}`);var u=Ya();ka(u,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:"1em",height:"1em",...e}),void 0,void 0,"svelte-ylmrta");var s=E(u);g(u),q(()=>fe(s,"href",n(p))),A(o,u),et()}async function Ja(o,t,e,a){const _=new Blob([t.value],{type:e()}),h=new ClipboardItem({[e()]:_});await navigator.clipboard.write([h]),K(a,!0),await Ka(3e3),K(a,!1)}var Za=j('<span class="svelte-g409dh"><!></span>'),Qa=j('<span class="svelte-g409dh"><!></span>'),Xa=j('<button class="svelte-g409dh"><!></button>');function er(o,t){Xe(t,!0);const e=Ea(t,"type",3,"text/plain");let a=te(!1);var _=Xa();_.__click=[Ja,t,e,a];var h=E(_);{var c=u=>{var s=Za(),l=E(s);W(l,{i:"check"}),g(s),wt(3,s,()=>xt),A(u,s)},p=u=>{var s=Qa(),l=E(s);W(l,{i:"copy"}),g(s),wt(3,s,()=>xt),A(u,s)};ae(h,u=>{n(a)?u(c):u(p,!1)})}g(_),A(o,_),et()}pe(["click"]);pe(["click"]);pe(["click"]);pe(["contextmenu"]);var tr=(o,t,e)=>t[e()].showModal(),ar=j('<button class="svelte-11mz0yj"><svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper></button>'),rr=j('<div class="svelte-11mz0yj"><label for="name">What do you want to be called?</label> <input name="name" type="text" required/></div>'),sr=j("<dfn><!></dfn>"),nr=(o,t,e)=>Pa(n(t).id).then(()=>K(e,!0)),ir=j("<button> </button>"),or=j('<div class="svelte-11mz0yj"><label for="email">Email Address</label> <input name="email" type="email" required/></div>'),lr=(o,t)=>t.logout.showModal(),vr=(o,t)=>t.delete.showModal(),ur=j("<p>Are you sure you want to delete your account?<br/>This action can't be undone.</p>"),cr=j("<p> </p>"),fr=j('<p class="subtle"><i>Unnamed</i></p>'),dr=j('<dfn title="You must have at least one passkey" class="disabled svelte-11mz0yj"><svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper></dfn>'),_r=j('<div class="svelte-11mz0yj"><label for="name">Passkey Name</label> <input name="name" type="text"/></div>'),pr=j(`<p class="svelte-11mz0yj">Are you sure you want to delete this passkey?<br/>This action can't be undone.</p>`),mr=j('<div class="item passkey svelte-11mz0yj"><dfn class="svelte-11mz0yj"><svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper></dfn> <dfn class="svelte-11mz0yj"><svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper></dfn> <!> <p> </p> <!> <!></div> <!> <!>',1),hr=(o,t,e)=>$a(n(t).id).then(n(e).push.bind(n(e))),gr=j('<span class="current svelte-11mz0yj">Current</span>'),yr=j('<span class="elevated svelte-11mz0yj">Elevated</span>'),br=j('<p class="svelte-11mz0yj">Are you sure you want to log out this session?</p>'),wr=j('<div class="item session svelte-11mz0yj"><p> <!> <!></p> <p> </p> <p> </p> <!></div> <!>',1),xr=(o,t)=>t.logout_all.showModal(),Er=j("<p>Are you sure you want to log out all sessions?</p>"),kr=j(`<div class="Account flex-content"><div id="pfp-container" class="svelte-11mz0yj"><img id="pfp" alt="User profile" width="100px" height="100px" class="svelte-11mz0yj"/></div> <p class="greeting svelte-11mz0yj"> </p> <div class="section main svelte-11mz0yj"><h3 class="svelte-11mz0yj">Personal Information</h3> <div class="item info svelte-11mz0yj"><p class="subtle svelte-11mz0yj">Name</p> <p class="svelte-11mz0yj"> </p> <!></div> <!> <div class="item info svelte-11mz0yj"><p class="subtle svelte-11mz0yj">Email</p> <p class="svelte-11mz0yj"> <!></p> <!></div> <!> <div class="item info svelte-11mz0yj"><p class="subtle svelte-11mz0yj">User ID <dfn title="This is your UUID. It can't be changed."><!></dfn></p> <p class="svelte-11mz0yj"> </p> <svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper></div> <span><button class="signout svelte-11mz0yj">Sign Out</button> <button class="danger">Delete Account</button> <!> <!></span></div> <div class="section main svelte-11mz0yj"><h3 class="svelte-11mz0yj">Passkeys</h3> <!> <span><button><!> Create</button></span></div> <div class="section main svelte-11mz0yj"><h3 class="svelte-11mz0yj">Sessions</h3> <!> <span><button class="danger">Logout All</button></span> <!></div></div>`),Tr=j('<div class="error"><h3>Failed to load account</h3> <p> </p></div>');function Sr(o,t){Xe(t,!0);const e=(v,i=le,r)=>{let k=At(()=>ya(r?.(),"pen"));var x=ar();x.__click=[tr,a,i],ht(x,"",{},{display:"contents"});var d=E(x);ce(d,()=>({"--size":"16px"})),W(d.lastChild,{get i(){return n(k)}}),g(d),g(x),A(v,x)},a=He({});let _=te(!1),h=te(void 0),c=te(void 0),p=te(!1),u=te(He([])),s=te(He([]));async function l(){K(h,await ja().catch(()=>(ye("/login?after=/account"),null)),!0),K(c,n(h).user,!0),K(u,await Ia(n(c).id),!0),K(s,await La(n(c).id),!0),K(p,await Na(n(c).id),!0)}async function m(v){const i=await Aa(n(c).id,v);K(c,i,!0)}var f=mt();wa(v=>{ha.title="Account"});var b=ge(f);Fa(b,l,null,v=>{var i=kr(),r=E(i),k=E(r);g(r);var x=w(r,2),d=E(x);g(x);var $=w(x,2),C=w(E($),2),I=w(E(C),2),B=E(I,!0);g(I);var D=w(I,2);e(D,()=>"edit_name"),g(C);var L=w(C,2);ee(L,{submit:m,submitText:"Change",get dialog(){return a.edit_name},set dialog(z){a.edit_name=z},children:(z,y)=>{var N=rr(),P=w(E(N),2);Ve(P),g(N),q(()=>Be(P,n(c).name||"")),A(z,N)},$$slots:{default:!0}});var J=w(L,2),G=w(E(J),2),se=E(G),ze=w(se);{var Ce=z=>{var y=sr(),N=E(y);W(N,{i:"regular/circle-check"}),g(y),q(P=>fe(y,"title",`Email verified on ${P??""}`),[()=>n(c).emailVerified.toLocaleDateString()]),A(z,y)},Ae=z=>{var y=mt(),N=ge(y);{var P=M=>{var O=ir();O.__click=[nr,c,_];var Z=E(O,!0);g(O),q(()=>R(Z,n(_)?"Verification email sent":"Verify")),A(M,O)};ae(N,M=>{n(p)&&M(P)},!0)}A(z,y)};ae(ze,z=>{n(c).emailVerified?z(Ce):z(Ae,!1)})}g(G);var Dt=w(G,2);e(Dt,()=>"edit_email"),g(J);var tt=w(J,2);ee(tt,{submit:m,submitText:"Change",get dialog(){return a.edit_email},set dialog(z){a.edit_email=z},children:(z,y)=>{var N=or(),P=w(E(N),2);Ve(P),g(N),q(()=>Be(P,n(c).email||"")),A(z,N)},$$slots:{default:!0}});var je=w(tt,2),Ie=E(je),at=w(E(Ie)),Ot=E(at);W(Ot,{i:"regular/circle-info"}),g(at),g(Ie);var Le=w(Ie,2),Mt=E(Le,!0);g(Le);var Ne=w(Le,2);ce(Ne,()=>({"--size":"16px"})),er(Ne.lastChild,{get value(){return n(c).id}}),g(Ne),g(je);var rt=w(je,2),st=E(rt);st.__click=[lr,a];var Pe=w(st,2);Pe.__click=[vr,a],ht(Pe,"",{},{cursor:"pointer"});var nt=w(Pe,2);Ma(nt,{get dialog(){return a.logout},set dialog(z){a.logout=z}});var Ft=w(nt,2);ee(Ft,{submit:()=>Ta(n(c).id).then(()=>ye("/")),submitText:"Delete Account",submitDanger:!0,get dialog(){return a.delete},set dialog(z){a.delete=z},children:(z,y)=>{var N=ur();A(z,N)},$$slots:{default:!0}}),g(rt),g($);var Se=w($,2),it=w(E(Se),2);yt(it,17,()=>n(u),gt,(z,y,N)=>{var P=mr(),M=ge(P),O=E(M),Z=E(O);{let T=re(()=>n(y).deviceType=="multiDevice"?"laptop-mobile":"mobile");ce(Z,()=>({"--size":"16px"})),W(Z.lastChild,{get i(){return n(T)}}),g(Z)}g(O);var ne=w(O,2),ve=E(ne);{let T=re(()=>n(y).backedUp?"circle-check":"circle-xmark");ce(ve,()=>({"--size":"16px"})),W(ve.lastChild,{get i(){return n(T)}}),g(ve)}g(ne);var me=w(ne,2);{var ue=T=>{var F=cr(),U=E(F,!0);g(F),q(()=>R(U,n(y).name)),A(T,F)},Me=T=>{var F=fr();A(T,F)};ae(me,T=>{n(y).name?T(ue):T(Me,!1)})}var X=w(me,2),Fe=E(X);g(X);var he=w(X,2);e(he,()=>"edit_passkey#"+n(y).id);var Ue=w(he,2);{var S=T=>{e(T,()=>"delete_passkey#"+n(y).id,()=>"trash")},Q=T=>{var F=dr(),U=E(F);ce(U,()=>({"--fill":"#888","--size":"16px"})),W(U.lastChild,{i:"trash-slash"}),g(U),g(F),A(T,F)};ae(Ue,T=>{n(u).length>1?T(S):T(Q,!1)})}g(M);var ie=w(M,2);ee(ie,{submit:T=>{if(typeof T.name!="string")throw"Passkey name must be a string";return n(y).name=T.name,Sa(n(y).id,T)},submitText:"Change",get dialog(){return a["edit_passkey#"+n(y).id]},set dialog(T){a["edit_passkey#"+n(y).id]=T},children:(T,F)=>{var U=_r(),ut=w(E(U),2);Ve(ut),g(U),q(()=>Be(ut,n(y).name||"")),A(T,U)},$$slots:{default:!0}});var Re=w(ie,2);ee(Re,{submit:()=>Da(n(y).id).then(()=>n(u).splice(n(u).indexOf(n(y)),1)),submitText:"Delete",submitDanger:!0,get dialog(){return a["delete_passkey#"+n(y).id]},set dialog(T){a["delete_passkey#"+n(y).id]=T},children:(T,F)=>{var U=pr();A(T,U)},$$slots:{default:!0}}),q(T=>{fe(O,"title",n(y).deviceType=="multiDevice"?"Multiple devices":"Single device"),fe(ne,"title",`This passkey is ${n(y).backedUp?"":"not "}backed up`),R(Fe,`Created ${T??""}`)},[()=>n(y).createdAt.toLocaleString()]),A(z,P)});var ot=w(it,2),De=E(ot);De.__click=[hr,c,u];var Ut=E(De);W(Ut,{i:"plus"}),ga(),g(De),g(ot),g(Se);var lt=w(Se,2),vt=w(E(lt),2);yt(vt,17,()=>n(s),gt,(z,y)=>{var N=wr(),P=ge(N),M=E(P),O=E(M),Z=w(O);{var ne=S=>{var Q=gr();A(S,Q)};ae(Z,S=>{n(y).id==n(h).id&&S(ne)})}var ve=w(Z,2);{var me=S=>{var Q=yr();A(S,Q)};ae(ve,S=>{n(y).elevated&&S(me)})}g(M);var ue=w(M,2),Me=E(ue);g(ue);var X=w(ue,2),Fe=E(X);g(X);var he=w(X,2);e(he,()=>"logout#"+n(y).id,()=>"right-from-bracket"),g(P);var Ue=w(P,2);ee(Ue,{submit:async()=>{await Oa(n(c).id,n(y).id),a["logout#"+n(y).id].remove(),n(s).splice(n(s).indexOf(n(y)),1),n(y).id==n(h).id&&ye("/")},submitText:"Logout",get dialog(){return a["logout#"+n(y).id]},set dialog(S){a["logout#"+n(y).id]=S},children:(S,Q)=>{var ie=br();A(S,ie)},$$slots:{default:!0}}),q((S,Q,ie,Re)=>{R(O,`${S??""}...${Q??""} `),R(Me,`Created ${ie??""}`),R(Fe,`Expires ${Re??""}`)},[()=>n(y).id.slice(0,4),()=>n(y).id.slice(-4),()=>n(y).created.toLocaleString(),()=>n(y).expires.toLocaleString()]),A(z,N)});var Oe=w(vt,2),Rt=E(Oe);Rt.__click=[xr,a],g(Oe);var qt=w(Oe,2);ee(qt,{submit:()=>za(n(c).id).then(()=>ye("/")),submitText:"Logout All Sessions",submitDanger:!0,get dialog(){return a.logout_all},set dialog(z){a.logout_all=z},children:(z,y)=>{var N=Er();A(z,N)},$$slots:{default:!0}}),g(lt),g(i),q(z=>{fe(k,"src",z),R(d,`Welcome, ${n(c).name??""}`),R(B,n(c).name),R(se,`${n(c).email??""} `),R(Mt,n(c).id)},[()=>Ca(n(c))]),A(v,i)},(v,i)=>{var r=Tr(),k=w(E(r),2),x=E(k,!0);g(k),g(r),q(()=>R(x,"message"in n(i)?n(i).message:n(i))),A(v,r)}),A(o,f),et()}pe(["click"]);export{Sr as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../chunks/DsnmJJEf.js";import{p as c,d as v,b as d,a as m,c as h,f as _,$ as b}from"../chunks/B3bf7yrh.js";import{h as P}from"../chunks/D5lcOOwR.js";import{p as n,i as $}from"../chunks/ct9jA5hl.js";import{F as y,a as L}from"../chunks/
|
|
1
|
+
import"../chunks/DsnmJJEf.js";import{p as c,d as v,b as d,a as m,c as h,f as _,$ as b}from"../chunks/B3bf7yrh.js";import{h as P}from"../chunks/D5lcOOwR.js";import{p as n,i as $}from"../chunks/ct9jA5hl.js";import{F as y,a as L}from"../chunks/B4IjTTLF.js";/* empty css */var q=d('<div class="footer svelte-16cw95q"><a href="/register">Register instead</a></div>'),w=d('<div><label for="email">Email</label> <input name="email" type="email" required/></div>');function x(a,o){c(o,!0);let s=n(o,"dialog",15),f=n(o,"fullPage",3,!1);function u(r){if(typeof r.email!="string")throw"Tried to upload a file for an email. Huh?!";return L(r.email)}y(a,{submitText:"Login",submit:u,get pageMode(){return f()},get dialog(){return s()},set dialog(e){s(e)},footer:e=>{var t=h(),i=_(t);{var g=l=>{var p=q();m(l,p)};$(i,l=>{f()&&l(g)})}m(e,t)},children:(e,t)=>{var i=w();m(e,i)},$$slots:{footer:!0,default:!0}}),v()}function H(a){P(o=>{b.title="Login"}),x(a,{fullPage:!0})}export{H as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../chunks/DsnmJJEf.js";import{L as t}from"../chunks/CtT1TXOG.js";function r(o){t(o,{fullPage:!0})}export{r as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../chunks/DsnmJJEf.js";import{p as g,d as u,b as f,a as l,c as v,f as c,v as b,$ as h}from"../chunks/B3bf7yrh.js";import{h as _}from"../chunks/D5lcOOwR.js";import{p as n,i as x}from"../chunks/ct9jA5hl.js";import{F as P,r as $}from"../chunks/
|
|
1
|
+
import"../chunks/DsnmJJEf.js";import{p as g,d as u,b as f,a as l,c as v,f as c,v as b,$ as h}from"../chunks/B3bf7yrh.js";import{h as _}from"../chunks/D5lcOOwR.js";import{p as n,i as x}from"../chunks/ct9jA5hl.js";import{F as P,r as $}from"../chunks/B4IjTTLF.js";/* empty css */var q=f('<div class="footer svelte-16cw95q"><a href="/login">Login instead</a></div>'),y=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);function D(t,a){g(a,!0);let s=n(a,"dialog",15),m=n(a,"fullPage",3,!1);P(t,{submitText:"Register",get submit(){return $},get pageMode(){return m()},get dialog(){return s()},set dialog(e){s(e)},footer:e=>{var r=v(),o=c(r);{var d=i=>{var p=q();l(i,p)};x(o,i=>{m()&&i(d)})}l(e,r)},children:(e,r)=>{var o=y();b(2),l(e,o)},$$slots:{footer:!0,default:!0}}),u()}function N(t){_(a=>{h.title="Sign Up"}),D(t,{fullPage:!0})}export{N as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"1753739247777"}
|
|
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-Crm_85Km.js')).default;
|
|
4
|
-
const imports = ["_app/immutable/nodes/1.
|
|
4
|
+
const imports = ["_app/immutable/nodes/1.C3jvF6zj.js","_app/immutable/chunks/DsnmJJEf.js","_app/immutable/chunks/B3bf7yrh.js","_app/immutable/chunks/D5lcOOwR.js","_app/immutable/chunks/DCs3KlJy.js","_app/immutable/chunks/rXU5YtEm.js","_app/immutable/chunks/BeFE4kE2.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-DffE3_iJ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1-
|
|
1
|
+
{"version":3,"file":"1-DffE3_iJ.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.C3jvF6zj.js\",\"_app/immutable/chunks/DsnmJJEf.js\",\"_app/immutable/chunks/B3bf7yrh.js\",\"_app/immutable/chunks/D5lcOOwR.js\",\"_app/immutable/chunks/DCs3KlJy.js\",\"_app/immutable/chunks/rXU5YtEm.js\",\"_app/immutable/chunks/BeFE4kE2.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,9 +1,9 @@
|
|
|
1
1
|
const index = 3;
|
|
2
2
|
let component_cache;
|
|
3
3
|
const component = async () => component_cache ??= (await import('./_page.svelte-whmO3TtB.js')).default;
|
|
4
|
-
const imports = ["_app/immutable/nodes/3.
|
|
4
|
+
const imports = ["_app/immutable/nodes/3.C1G23fTe.js","_app/immutable/chunks/DsnmJJEf.js","_app/immutable/chunks/B3bf7yrh.js","_app/immutable/chunks/D5lcOOwR.js","_app/immutable/chunks/DCs3KlJy.js","_app/immutable/chunks/ct9jA5hl.js","_app/immutable/chunks/B4IjTTLF.js","_app/immutable/chunks/BeFE4kE2.js","_app/immutable/chunks/rXU5YtEm.js","_app/immutable/chunks/CtT1TXOG.js"];
|
|
5
5
|
const stylesheets = ["_app/immutable/assets/user.Cbakz6hh.css","_app/immutable/assets/3.C2J9FN5q.css","_app/immutable/assets/Login.C58W2qGZ.css"];
|
|
6
6
|
const fonts = [];
|
|
7
7
|
|
|
8
8
|
export { component, fonts, imports, index, stylesheets };
|
|
9
|
-
//# sourceMappingURL=3-
|
|
9
|
+
//# sourceMappingURL=3-D6wMMS06.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"3-
|
|
1
|
+
{"version":3,"file":"3-D6wMMS06.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 imports = [\"_app/immutable/nodes/3.C1G23fTe.js\",\"_app/immutable/chunks/DsnmJJEf.js\",\"_app/immutable/chunks/B3bf7yrh.js\",\"_app/immutable/chunks/D5lcOOwR.js\",\"_app/immutable/chunks/DCs3KlJy.js\",\"_app/immutable/chunks/ct9jA5hl.js\",\"_app/immutable/chunks/B4IjTTLF.js\",\"_app/immutable/chunks/BeFE4kE2.js\",\"_app/immutable/chunks/rXU5YtEm.js\",\"_app/immutable/chunks/CtT1TXOG.js\"];\nexport const stylesheets = [\"_app/immutable/assets/user.Cbakz6hh.css\",\"_app/immutable/assets/3.C2J9FN5q.css\",\"_app/immutable/assets/Login.C58W2qGZ.css\"];\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,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AACpX,MAAC,WAAW,GAAG,CAAC,yCAAyC,CAAC,sCAAsC,CAAC,0CAA0C;AAC3I,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-CVJoQAAB.js')).default;
|
|
4
|
-
const imports = ["_app/immutable/nodes/4.
|
|
4
|
+
const imports = ["_app/immutable/nodes/4.TQjMBeyV.js","_app/immutable/chunks/DsnmJJEf.js","_app/immutable/chunks/B3bf7yrh.js","_app/immutable/chunks/D5lcOOwR.js","_app/immutable/chunks/DCs3KlJy.js","_app/immutable/chunks/ct9jA5hl.js","_app/immutable/chunks/B4IjTTLF.js","_app/immutable/chunks/BeFE4kE2.js","_app/immutable/chunks/rXU5YtEm.js"];
|
|
5
5
|
const stylesheets = ["_app/immutable/assets/user.Cbakz6hh.css","_app/immutable/assets/Login.C58W2qGZ.css"];
|
|
6
6
|
const fonts = [];
|
|
7
7
|
|
|
8
8
|
export { component, fonts, imports, index, stylesheets };
|
|
9
|
-
//# sourceMappingURL=4-
|
|
9
|
+
//# sourceMappingURL=4-BIBXJVxM.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"4-
|
|
1
|
+
{"version":3,"file":"4-BIBXJVxM.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.TQjMBeyV.js\",\"_app/immutable/chunks/DsnmJJEf.js\",\"_app/immutable/chunks/B3bf7yrh.js\",\"_app/immutable/chunks/D5lcOOwR.js\",\"_app/immutable/chunks/DCs3KlJy.js\",\"_app/immutable/chunks/ct9jA5hl.js\",\"_app/immutable/chunks/B4IjTTLF.js\",\"_app/immutable/chunks/BeFE4kE2.js\",\"_app/immutable/chunks/rXU5YtEm.js\"];\nexport const stylesheets = [\"_app/immutable/assets/user.Cbakz6hh.css\",\"_app/immutable/assets/Login.C58W2qGZ.css\"];\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,CAAC,mCAAmC,CAAC,mCAAmC;AAChV,MAAC,WAAW,GAAG,CAAC,yCAAyC,CAAC,0CAA0C;AACpG,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-DPdvFuWg.js')).default;
|
|
4
|
-
const imports = ["_app/immutable/nodes/5.
|
|
4
|
+
const imports = ["_app/immutable/nodes/5.SHyxFZfo.js","_app/immutable/chunks/DsnmJJEf.js","_app/immutable/chunks/CtT1TXOG.js","_app/immutable/chunks/B3bf7yrh.js","_app/immutable/chunks/D5lcOOwR.js","_app/immutable/chunks/DCs3KlJy.js","_app/immutable/chunks/ct9jA5hl.js","_app/immutable/chunks/BeFE4kE2.js","_app/immutable/chunks/B4IjTTLF.js","_app/immutable/chunks/rXU5YtEm.js"];
|
|
5
5
|
const stylesheets = ["_app/immutable/assets/user.Cbakz6hh.css"];
|
|
6
6
|
const fonts = [];
|
|
7
7
|
|
|
8
8
|
export { component, fonts, imports, index, stylesheets };
|
|
9
|
-
//# sourceMappingURL=5-
|
|
9
|
+
//# sourceMappingURL=5-DnTszr4V.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"5-
|
|
1
|
+
{"version":3,"file":"5-DnTszr4V.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.SHyxFZfo.js\",\"_app/immutable/chunks/DsnmJJEf.js\",\"_app/immutable/chunks/CtT1TXOG.js\",\"_app/immutable/chunks/B3bf7yrh.js\",\"_app/immutable/chunks/D5lcOOwR.js\",\"_app/immutable/chunks/DCs3KlJy.js\",\"_app/immutable/chunks/ct9jA5hl.js\",\"_app/immutable/chunks/BeFE4kE2.js\",\"_app/immutable/chunks/B4IjTTLF.js\",\"_app/immutable/chunks/rXU5YtEm.js\"];\nexport const stylesheets = [\"_app/immutable/assets/user.Cbakz6hh.css\"];\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,CAAC,mCAAmC,CAAC,mCAAmC;AACpX,MAAC,WAAW,GAAG,CAAC,yCAAyC;AACzD,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-D3kXcWlK.js')).default;
|
|
4
|
-
const imports = ["_app/immutable/nodes/6.
|
|
4
|
+
const imports = ["_app/immutable/nodes/6.ikul5Bcl.js","_app/immutable/chunks/DsnmJJEf.js","_app/immutable/chunks/B3bf7yrh.js","_app/immutable/chunks/D5lcOOwR.js","_app/immutable/chunks/DCs3KlJy.js","_app/immutable/chunks/ct9jA5hl.js","_app/immutable/chunks/B4IjTTLF.js","_app/immutable/chunks/BeFE4kE2.js","_app/immutable/chunks/rXU5YtEm.js"];
|
|
5
5
|
const stylesheets = ["_app/immutable/assets/user.Cbakz6hh.css","_app/immutable/assets/Login.C58W2qGZ.css"];
|
|
6
6
|
const fonts = [];
|
|
7
7
|
|
|
8
8
|
export { component, fonts, imports, index, stylesheets };
|
|
9
|
-
//# sourceMappingURL=6-
|
|
9
|
+
//# sourceMappingURL=6-Ls1UJLAz.js.map
|