@toa.io/extensions.introspection 1.0.0-alpha.293 → 1.0.0-alpha.294

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/package.json +3 -3
  2. package/ui/dist/_app/immutable/chunks/{Qo6KLWZ1.js → B96dqKj5.js} +1 -1
  3. package/ui/dist/_app/immutable/chunks/{CMT3qkok.js → BT5Ivpyh.js} +1 -1
  4. package/ui/dist/_app/immutable/chunks/BUu1bTY0.js +1 -0
  5. package/ui/dist/_app/immutable/chunks/BrKAv3Ku.js +1 -0
  6. package/ui/dist/_app/immutable/chunks/C_9U3amZ.js +6 -0
  7. package/ui/dist/_app/immutable/chunks/DFc4ST-K.js +1 -0
  8. package/ui/dist/_app/immutable/chunks/{B6dxxHIS.js → DIuPrs6y.js} +1 -1
  9. package/ui/dist/_app/immutable/chunks/{CRq6qlvN.js → FJXxR1hy.js} +1 -1
  10. package/ui/dist/_app/immutable/chunks/{Cdb6j7Bw.js → bVdyvKuK.js} +1 -1
  11. package/ui/dist/_app/immutable/entry/{app.MKQlb7LU.js → app.CDRHLCe_.js} +2 -2
  12. package/ui/dist/_app/immutable/entry/start.UevPJt7y.js +1 -0
  13. package/ui/dist/_app/immutable/nodes/{0.Gc5w_8Fb.js → 0.CpsL4iSg.js} +1 -1
  14. package/ui/dist/_app/immutable/nodes/{1.CZzwHnag.js → 1.Bvg7VXbs.js} +1 -1
  15. package/ui/dist/_app/immutable/nodes/{2.DRxH9AhI.js → 2.BO9FxsOu.js} +1 -1
  16. package/ui/dist/_app/immutable/nodes/3.DXetBVyM.js +1 -0
  17. package/ui/dist/_app/immutable/nodes/4.DeWdWjia.js +1 -0
  18. package/ui/dist/_app/immutable/nodes/{5.BlPcxfID.js → 5.0dXeLKhi.js} +1 -1
  19. package/ui/dist/_app/version.json +1 -1
  20. package/ui/dist/index.html +12 -12
  21. package/ui/dist/_app/immutable/chunks/B2kPZfJh.js +0 -1
  22. package/ui/dist/_app/immutable/chunks/BQGufqas.js +0 -6
  23. package/ui/dist/_app/immutable/chunks/DFP66uri.js +0 -1
  24. package/ui/dist/_app/immutable/chunks/jxky52kD.js +0 -1
  25. package/ui/dist/_app/immutable/entry/start.RcPu9STL.js +0 -1
  26. package/ui/dist/_app/immutable/nodes/3.DXaS4-Wc.js +0 -1
  27. package/ui/dist/_app/immutable/nodes/4.C424lXpX.js +0 -1
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/.introspection/_app/immutable/nodes/0.Gc5w_8Fb.js","/.introspection/_app/immutable/chunks/PUjOYRcs.js","/.introspection/_app/immutable/chunks/B2kPZfJh.js","/.introspection/_app/immutable/chunks/DFP66uri.js","/.introspection/_app/immutable/chunks/xihTtKlq.js","/.introspection/_app/immutable/chunks/BQGufqas.js","/.introspection/_app/immutable/chunks/CMT3qkok.js","/.introspection/_app/immutable/chunks/jxky52kD.js","/.introspection/_app/immutable/assets/0.CWRy6hIz.css","/.introspection/_app/immutable/nodes/1.CZzwHnag.js","/.introspection/_app/immutable/nodes/2.DRxH9AhI.js","/.introspection/_app/immutable/chunks/CRq6qlvN.js","/.introspection/_app/immutable/chunks/Cdb6j7Bw.js","/.introspection/_app/immutable/chunks/DINmginf.js","/.introspection/_app/immutable/chunks/B6dxxHIS.js","/.introspection/_app/immutable/assets/2.BghF56l_.css","/.introspection/_app/immutable/nodes/3.DXaS4-Wc.js","/.introspection/_app/immutable/chunks/Qo6KLWZ1.js","/.introspection/_app/immutable/nodes/4.C424lXpX.js","/.introspection/_app/immutable/nodes/5.BlPcxfID.js"])))=>i.map(i=>d[i]);
2
- import{$ as e,A as t,D as n,E as r,J as i,N as a,O as o,Q as s,V as c,Y as l,_t as u,at as d,b as f,et as p,i as m,k as h,n as g,ot as _,q as v,r as y,rt as b,s as x,vt as S,wt as C,z as w}from"../chunks/PUjOYRcs.js";import"../chunks/xihTtKlq.js";var T=`modulepreload`,E=function(e,t){return new URL(e,t).href},D={},O=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=E(t,n),t=s(t),t in D)return;D[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:T,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};function k(e){return e.match(/^[0-9a-f]{32}$/)}var A={id:k},j=t(`<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>`),M=t(`<!> <!>`,1);function N(t,y){S(y,!0);let T=m(y,`components`,23,()=>[]),E=m(y,`data_0`,3,null),D=m(y,`data_1`,3,null),O=m(y,`data_2`,3,null);l(()=>y.stores.page.set(y.page)),i(()=>{y.stores,y.page,y.constructors,T(),y.form,E(),D(),O(),y.stores.page.notify()});let k=d(!1),A=d(!1),N=d(null);g(()=>{let e=y.stores.page.subscribe(()=>{w(k)&&(b(A,!0),c().then(()=>{b(N,document.title||`untitled page`,!0)}))});return b(k,!0),e});let P=_(()=>y.constructors[2]);var F=M(),I=e(F),L=t=>{let n=_(()=>y.constructors[0]);var i=h(),a=e(i);f(a,()=>w(n),(t,n)=>{x(n(t,{get data(){return E()},get form(){return y.form},get params(){return y.page.params},children:(t,n)=>{var i=h(),a=e(i),s=t=>{let n=_(()=>y.constructors[1]);var r=h(),i=e(r);f(i,()=>w(n),(t,n)=>{x(n(t,{get data(){return D()},get form(){return y.form},get params(){return y.page.params},children:(t,n)=>{var r=h(),i=e(r);f(i,()=>w(P),(e,t)=>{x(t(e,{get data(){return O()},get form(){return y.form},get params(){return y.page.params}}),e=>T()[2]=e,()=>T()?.[2])}),o(t,r)},$$slots:{default:!0}}),e=>T()[1]=e,()=>T()?.[1])}),o(t,r)},c=t=>{let n=_(()=>y.constructors[1]);var r=h(),i=e(r);f(i,()=>w(n),(e,t)=>{x(t(e,{get data(){return D()},get form(){return y.form},get params(){return y.page.params}}),e=>T()[1]=e,()=>T()?.[1])}),o(t,r)};r(a,e=>{y.constructors[2]?e(s):e(c,-1)}),o(t,i)},$$slots:{default:!0}}),e=>T()[0]=e,()=>T()?.[0])}),o(t,i)},R=t=>{let n=_(()=>y.constructors[0]);var r=h(),i=e(r);f(i,()=>w(n),(e,t)=>{x(t(e,{get data(){return E()},get form(){return y.form},get params(){return y.page.params}}),e=>T()[0]=e,()=>T()?.[0])}),o(t,r)};r(I,e=>{y.constructors[1]?e(L):e(R,-1)});var z=p(I,2),B=e=>{var t=j(),i=s(t),c=e=>{var t=a();v(()=>n(t,w(N))),o(e,t)};r(i,e=>{w(A)&&e(c)}),C(t),o(e,t)};r(z,e=>{w(k)&&e(B)}),o(t,F),u()}var P=y(N),F=[()=>O(()=>import(`../nodes/0.Gc5w_8Fb.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url),()=>O(()=>import(`../nodes/1.CZzwHnag.js`),__vite__mapDeps([9,1,4,6,2,3]),import.meta.url),()=>O(()=>import(`../nodes/2.DRxH9AhI.js`),__vite__mapDeps([10,1,2,3,4,5,11,12,6,7,13,14,15]),import.meta.url),()=>O(()=>import(`../nodes/3.DXaS4-Wc.js`),__vite__mapDeps([16,1,4,13,17,2,3,5,7,12,14]),import.meta.url),()=>O(()=>import(`../nodes/4.C424lXpX.js`),__vite__mapDeps([18,1,4,6,2,3,17,5,7,12,14]),import.meta.url),()=>O(()=>import(`../nodes/5.BlPcxfID.js`),__vite__mapDeps([19,1,4,11,5,3,12,13]),import.meta.url)],I=[],L={"/(private)":[3,[2]],"/(private)/list":[5,[2]],"/(private)/[id]":[4,[2]]},R={handleError:(({error:e})=>{console.error(e)}),reroute:(()=>{}),transport:{}},z=Object.fromEntries(Object.entries(R.transport).map(([e,t])=>[e,t.decode])),B=Object.fromEntries(Object.entries(R.transport).map(([e,t])=>[e,t.encode])),V=!1,H=(e,t)=>z[e](t),U=()=>O(()=>import(`../chunks/Bjy-W4x2.js`).then(e=>e.default),[],import.meta.url);export{H as decode,z as decoders,L as dictionary,B as encoders,U as get_error_template,V as hash,R as hooks,A as matchers,F as nodes,P as root,I as server_loads};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/.introspection/_app/immutable/nodes/0.CpsL4iSg.js","/.introspection/_app/immutable/chunks/PUjOYRcs.js","/.introspection/_app/immutable/chunks/BUu1bTY0.js","/.introspection/_app/immutable/chunks/BrKAv3Ku.js","/.introspection/_app/immutable/chunks/xihTtKlq.js","/.introspection/_app/immutable/chunks/C_9U3amZ.js","/.introspection/_app/immutable/chunks/BT5Ivpyh.js","/.introspection/_app/immutable/chunks/DFc4ST-K.js","/.introspection/_app/immutable/assets/0.CWRy6hIz.css","/.introspection/_app/immutable/nodes/1.Bvg7VXbs.js","/.introspection/_app/immutable/nodes/2.BO9FxsOu.js","/.introspection/_app/immutable/chunks/FJXxR1hy.js","/.introspection/_app/immutable/chunks/bVdyvKuK.js","/.introspection/_app/immutable/chunks/DINmginf.js","/.introspection/_app/immutable/chunks/DIuPrs6y.js","/.introspection/_app/immutable/assets/2.BghF56l_.css","/.introspection/_app/immutable/nodes/3.DXetBVyM.js","/.introspection/_app/immutable/chunks/B96dqKj5.js","/.introspection/_app/immutable/nodes/4.DeWdWjia.js","/.introspection/_app/immutable/nodes/5.0dXeLKhi.js"])))=>i.map(i=>d[i]);
2
+ import{$ as e,A as t,D as n,E as r,J as i,N as a,O as o,Q as s,V as c,Y as l,_t as u,at as d,b as f,et as p,i as m,k as h,n as g,ot as _,q as v,r as y,rt as b,s as x,vt as S,wt as C,z as w}from"../chunks/PUjOYRcs.js";import"../chunks/xihTtKlq.js";var T=`modulepreload`,E=function(e,t){return new URL(e,t).href},D={},O=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=E(t,n),t=s(t),t in D)return;D[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:T,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};function k(e){return e.match(/^[0-9a-f]{32}$/)}var A={id:k},j=t(`<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>`),M=t(`<!> <!>`,1);function N(t,y){S(y,!0);let T=m(y,`components`,23,()=>[]),E=m(y,`data_0`,3,null),D=m(y,`data_1`,3,null),O=m(y,`data_2`,3,null);l(()=>y.stores.page.set(y.page)),i(()=>{y.stores,y.page,y.constructors,T(),y.form,E(),D(),O(),y.stores.page.notify()});let k=d(!1),A=d(!1),N=d(null);g(()=>{let e=y.stores.page.subscribe(()=>{w(k)&&(b(A,!0),c().then(()=>{b(N,document.title||`untitled page`,!0)}))});return b(k,!0),e});let P=_(()=>y.constructors[2]);var F=M(),I=e(F),L=t=>{let n=_(()=>y.constructors[0]);var i=h(),a=e(i);f(a,()=>w(n),(t,n)=>{x(n(t,{get data(){return E()},get form(){return y.form},get params(){return y.page.params},children:(t,n)=>{var i=h(),a=e(i),s=t=>{let n=_(()=>y.constructors[1]);var r=h(),i=e(r);f(i,()=>w(n),(t,n)=>{x(n(t,{get data(){return D()},get form(){return y.form},get params(){return y.page.params},children:(t,n)=>{var r=h(),i=e(r);f(i,()=>w(P),(e,t)=>{x(t(e,{get data(){return O()},get form(){return y.form},get params(){return y.page.params}}),e=>T()[2]=e,()=>T()?.[2])}),o(t,r)},$$slots:{default:!0}}),e=>T()[1]=e,()=>T()?.[1])}),o(t,r)},c=t=>{let n=_(()=>y.constructors[1]);var r=h(),i=e(r);f(i,()=>w(n),(e,t)=>{x(t(e,{get data(){return D()},get form(){return y.form},get params(){return y.page.params}}),e=>T()[1]=e,()=>T()?.[1])}),o(t,r)};r(a,e=>{y.constructors[2]?e(s):e(c,-1)}),o(t,i)},$$slots:{default:!0}}),e=>T()[0]=e,()=>T()?.[0])}),o(t,i)},R=t=>{let n=_(()=>y.constructors[0]);var r=h(),i=e(r);f(i,()=>w(n),(e,t)=>{x(t(e,{get data(){return E()},get form(){return y.form},get params(){return y.page.params}}),e=>T()[0]=e,()=>T()?.[0])}),o(t,r)};r(I,e=>{y.constructors[1]?e(L):e(R,-1)});var z=p(I,2),B=e=>{var t=j(),i=s(t),c=e=>{var t=a();v(()=>n(t,w(N))),o(e,t)};r(i,e=>{w(A)&&e(c)}),C(t),o(e,t)};r(z,e=>{w(k)&&e(B)}),o(t,F),u()}var P=y(N),F=[()=>O(()=>import(`../nodes/0.CpsL4iSg.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url),()=>O(()=>import(`../nodes/1.Bvg7VXbs.js`),__vite__mapDeps([9,1,4,6,2,3]),import.meta.url),()=>O(()=>import(`../nodes/2.BO9FxsOu.js`),__vite__mapDeps([10,1,2,3,4,5,11,12,6,7,13,14,15]),import.meta.url),()=>O(()=>import(`../nodes/3.DXetBVyM.js`),__vite__mapDeps([16,1,4,13,17,2,3,5,7,12,14]),import.meta.url),()=>O(()=>import(`../nodes/4.DeWdWjia.js`),__vite__mapDeps([18,1,4,6,2,3,17,5,7,12,14]),import.meta.url),()=>O(()=>import(`../nodes/5.0dXeLKhi.js`),__vite__mapDeps([19,1,4,11,5,3,12,13]),import.meta.url)],I=[],L={"/(private)":[3,[2]],"/(private)/list":[5,[2]],"/(private)/[id]":[4,[2]]},R={handleError:(({error:e})=>{console.error(e)}),reroute:(()=>{}),transport:{}},z=Object.fromEntries(Object.entries(R.transport).map(([e,t])=>[e,t.decode])),B=Object.fromEntries(Object.entries(R.transport).map(([e,t])=>[e,t.encode])),V=!1,H=(e,t)=>z[e](t),U=()=>O(()=>import(`../chunks/Bjy-W4x2.js`).then(e=>e.default),[],import.meta.url);export{H as decode,z as decoders,L as dictionary,B as encoders,U as get_error_template,V as hash,R as hooks,A as matchers,F as nodes,P as root,I as server_loads};
@@ -0,0 +1 @@
1
+ import{o as e,r as t}from"../chunks/BUu1bTY0.js";export{e as load_css,t as start};
@@ -1 +1 @@
1
- import{$ as e,A as t,J as n,O as r,Ot as i,W as a,X as o,_t as s,f as c,k as l,lt as u,mt as d,ot as f,q as p,ut as m,v as h,vt as g,x as _,z as v}from"../chunks/PUjOYRcs.js";import{n as y}from"../chunks/B2kPZfJh.js";import"../chunks/DFP66uri.js";import"../chunks/xihTtKlq.js";import{C as b,D as x,E as S,O as C,T as w,b as T,o as E,r as D,t as O,x as k}from"../chunks/BQGufqas.js";import{t as A}from"../chunks/CMT3qkok.js";import"../chunks/jxky52kD.js";var j=w();j.on(`*`,(e,t)=>{t===void 0?console.debug(e):console.debug(e,t)});var M=d({status:`disconnected`,events:[]});j.on(`*`,(e,t)=>{M.update(n=>(n.events.push({label:e,payload:t}),n.events=n.events.slice(-128),n))});function N(e){M.update(t=>(t.status=e,(e===`connected`||e===`disconnected`)&&t.events.push({label:e}),t))}function P(){M.update(()=>({status:`disconnected`,events:[]}))}var F=k.resource(`/presence/`);async function I(e,t){return await F.multipart(e,{credentials:`include`,...t})}var L=null,R=null;async function z(e){if(L!==null&&L!==e&&V(),L!==e)for(L=e;L===e;){N(`connecting`);let t=await B(e).catch(e=>e);t!==void 0&&(t.name===`AbortError`?console.debug(`Realtime connection aborted`):(console.warn(`Realtime connection exception`,t),await new Promise(e=>setTimeout(e,3e3))))}}async function B(e){R=new AbortController;let t=R.signal,n=Intl.DateTimeFormat().resolvedOptions().timeZone,r=await I(e,{signal:t,body:{timezone:n}});if(r instanceof Error)throw N(`disconnected`),r;console.debug(`Realtime connected`,e),N(`connected`);for await(let e of r)H(e);console.debug(`Realtime connection lost`,e)}function V(){if(L!==null){if(L=null,R===null)throw Error(`Realtime controller is NULL`);R.abort(),P()}}function H(e){typeof e==`string`?j.emit(`heartbeat`):j.emit(e.event,e.data)}function U(){x.subscribe(e=>{let t=S.extract();e?z(t.id):V()})}function W(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`);return atob(t.padEnd(t.length+(4-t.length%4)%4,`=`))}function G(){let e=D(`challenge`);return e===null?null:W(e)}function K(){k.events.on(`challenge`,e=>C.set(e)),k.events.on(`error`,e=>{e.code===401&&C.set(null)}),C.subscribe(e=>k.authenticate(e));let e=G();e!==null&&C.set(e),T()}var q=i({prerender:()=>!1,ssr:()=>!1,trailingSlash:()=>J});K(),U();var J=`always`,Y=t(`<meta name="description"/>`);function X(t,i){g(i,!0);let d=()=>m(O,`$dict`,x),[x,S]=u(),C=f(()=>A.data.meta?.title??b.title),w=f(()=>A.data.meta?.description??b.description);y(E),n(()=>{document.dir=d().dir});var T=l();h(`12qhfyh`,e=>{var t=Y();p(()=>c(t,`content`,v(w))),a(()=>{o.title=v(C)??``}),r(e,t)});var D=e(T);_(D,()=>i.children),r(t,T),s(),S()}export{X as component,q as universal};
1
+ import{$ as e,A as t,J as n,O as r,Ot as i,W as a,X as o,_t as s,f as c,k as l,lt as u,mt as d,ot as f,q as p,ut as m,v as h,vt as g,x as _,z as v}from"../chunks/PUjOYRcs.js";import{n as y}from"../chunks/BUu1bTY0.js";import"../chunks/BrKAv3Ku.js";import"../chunks/xihTtKlq.js";import{C as b,D as x,E as S,O as C,T as w,b as T,o as E,r as D,t as O,x as k}from"../chunks/C_9U3amZ.js";import{t as A}from"../chunks/BT5Ivpyh.js";import"../chunks/DFc4ST-K.js";var j=w();j.on(`*`,(e,t)=>{t===void 0?console.debug(e):console.debug(e,t)});var M=d({status:`disconnected`,events:[]});j.on(`*`,(e,t)=>{M.update(n=>(n.events.push({label:e,payload:t}),n.events=n.events.slice(-128),n))});function N(e){M.update(t=>(t.status=e,(e===`connected`||e===`disconnected`)&&t.events.push({label:e}),t))}function P(){M.update(()=>({status:`disconnected`,events:[]}))}var F=k.resource(`/presence/`);async function I(e,t){return await F.multipart(e,{credentials:`include`,...t})}var L=null,R=null;async function z(e){if(L!==null&&L!==e&&V(),L!==e)for(L=e;L===e;){N(`connecting`);let t=await B(e).catch(e=>e);t!==void 0&&(t.name===`AbortError`?console.debug(`Realtime connection aborted`):(console.warn(`Realtime connection exception`,t),await new Promise(e=>setTimeout(e,3e3))))}}async function B(e){R=new AbortController;let t=R.signal,n=Intl.DateTimeFormat().resolvedOptions().timeZone,r=await I(e,{signal:t,body:{timezone:n}});if(r instanceof Error)throw N(`disconnected`),r;console.debug(`Realtime connected`,e),N(`connected`);for await(let e of r)H(e);console.debug(`Realtime connection lost`,e)}function V(){if(L!==null){if(L=null,R===null)throw Error(`Realtime controller is NULL`);R.abort(),P()}}function H(e){typeof e==`string`?j.emit(`heartbeat`):j.emit(e.event,e.data)}function U(){x.subscribe(e=>{let t=S.extract();e?z(t.id):V()})}function W(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`);return atob(t.padEnd(t.length+(4-t.length%4)%4,`=`))}function G(){let e=D(`challenge`);return e===null?null:W(e)}function K(){k.events.on(`challenge`,e=>C.set(e)),k.events.on(`error`,e=>{e.code===401&&C.set(null)}),C.subscribe(e=>k.authenticate(e));let e=G();e!==null&&C.set(e),T()}var q=i({prerender:()=>!1,ssr:()=>!1,trailingSlash:()=>J});K(),U();var J=`always`,Y=t(`<meta name="description"/>`);function X(t,i){g(i,!0);let d=()=>m(O,`$dict`,x),[x,S]=u(),C=f(()=>A.data.meta?.title??b.title),w=f(()=>A.data.meta?.description??b.description);y(E),n(()=>{document.dir=d().dir});var T=l();h(`12qhfyh`,e=>{var t=Y();p(()=>c(t,`content`,v(w))),a(()=>{o.title=v(C)??``}),r(e,t)});var D=e(T);_(D,()=>i.children),r(t,T),s(),S()}export{X as component,q as universal};
@@ -1 +1 @@
1
- import{$ as e,A as t,D as n,O as r,Q as i,_t as a,et as o,q as s,vt as c,wt as l}from"../chunks/PUjOYRcs.js";import"../chunks/xihTtKlq.js";import{t as u}from"../chunks/CMT3qkok.js";var d=t(`<h1> </h1> <p> </p>`,1);function f(t,f){c(f,!0);var p=d(),m=e(p),h=i(m,!0);l(m);var g=o(m,2),_=i(g,!0);l(g),s(()=>{n(h,u.status),n(_,u.error?.message)}),r(t,p),a()}export{f as component};
1
+ import{$ as e,A as t,D as n,O as r,Q as i,_t as a,et as o,q as s,vt as c,wt as l}from"../chunks/PUjOYRcs.js";import"../chunks/xihTtKlq.js";import{t as u}from"../chunks/BT5Ivpyh.js";var d=t(`<h1> </h1> <p> </p>`,1);function f(t,f){c(f,!0);var p=d(),m=e(p),h=i(m,!0);l(m);var g=o(m,2),_=i(g,!0);l(g),s(()=>{n(h,u.status),n(_,u.error?.message)}),r(t,p),a()}export{f as component};
@@ -1,4 +1,4 @@
1
- import{$ as e,A as t,C as n,Ct as r,D as i,Dt as a,E as o,I as s,J as c,L as l,M as u,N as d,O as f,Q as p,S as m,Tt as h,Z as g,_t as _,a as v,at as y,b,ct as x,d as S,dt as C,et as w,f as T,ft as E,h as ee,i as D,j as O,k,l as A,lt as j,m as M,n as N,o as P,ot as F,q as I,rt as L,s as R,tt as te,u as ne,ut as z,vt as B,w as re,wt as V,x as H,z as U}from"../chunks/PUjOYRcs.js";import{n as ie,s as ae}from"../chunks/B2kPZfJh.js";import"../chunks/DFP66uri.js";import"../chunks/xihTtKlq.js";import{A as oe,C as se,D as ce,E as le,P as W,_ as ue,a as de,d as fe,f as pe,g as me,h as he,i as ge,j as _e,k as ve,l as ye,m as be,n as xe,p as Se,t as Ce,u as we,v as Te,w as Ee,y as De}from"../chunks/BQGufqas.js";import"../chunks/CRq6qlvN.js";import{t as Oe}from"../chunks/CMT3qkok.js";import"../chunks/jxky52kD.js";import{$ as ke,A as Ae,B as je,D as G,E as K,F as Me,G as q,H as Ne,I as Pe,J as Fe,K as Ie,L as Le,M as Re,O as ze,P as Be,Q as Ve,R as He,U as Ue,V as J,W as We,X as Ge,Y,Z as Ke,a as X,et as qe,i as Je,it as Ye,j as Xe,k as Ze,m as Qe,o as $e,p as et,q as tt,r as nt,tt as rt,x as it,z as at}from"../chunks/Cdb6j7Bw.js";import"../chunks/DINmginf.js";import{t as ot}from"../chunks/B6dxxHIS.js";function st(e){return async t=>{t.preventDefault();let n=t.target.querySelectorAll(`fieldset`),r=[];for(let e of n)e.disabled=!0,r.push(e);await e(t);for(let e of r)e.disabled=!1}}var ct=new Set([`$$slots`,`$$events`,`$$legacy`]);function lt(e,t){let n=v(t,ct),r=[[`path`,{d:`M3 5h.01`}],[`path`,{d:`M3 12h.01`}],[`path`,{d:`M3 19h.01`}],[`path`,{d:`M8 5h13`}],[`path`,{d:`M8 12h13`}],[`path`,{d:`M8 19h13`}]];W(e,P({name:`list`},()=>n,{get iconNode(){return r}}))}var ut=new Set([`$$slots`,`$$events`,`$$legacy`]);function dt(e,t){let n=v(t,ut),r=[[`path`,{d:`m16 17 5-5-5-5`}],[`path`,{d:`M21 12H9`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`}]];W(e,P({name:`log-out`},()=>n,{get iconNode(){return r}}))}var ft=new Set([`$$slots`,`$$events`,`$$legacy`]);function pt(e,t){let n=v(t,ft),r=[[`path`,{d:`m21 21-4.34-4.34`}],[`circle`,{cx:`11`,cy:`11`,r:`8`}]];W(e,P({name:`search`},()=>n,{get iconNode(){return r}}))}var mt=new Set([`$$slots`,`$$events`,`$$legacy`]);function ht(e,t){let n=v(t,mt),r=[[`path`,{d:`m10.586 5.414-5.172 5.172`}],[`path`,{d:`m18.586 13.414-5.172 5.172`}],[`path`,{d:`M6 12h12`}],[`circle`,{cx:`12`,cy:`20`,r:`2`}],[`circle`,{cx:`12`,cy:`4`,r:`2`}],[`circle`,{cx:`20`,cy:`12`,r:`2`}],[`circle`,{cx:`4`,cy:`12`,r:`2`}]];W(e,P({name:`waypoints`},()=>n,{get iconNode(){return r}}))}function Z(e){let t=y(te(e));return{[Ie]:!0,[Ve]:!0,get current(){return U(t)},set current(e){L(t,e,!0)}}}Z.from=Fe,Z.with=Y,Z.flatten=tt,Z.readonly=qe,Z.isBox=Ge,Z.isWritableBox=Ke;var gt=1,_t=9,vt=11;function yt(e){return rt(e)&&e.nodeType===gt&&typeof e.nodeName==`string`}function bt(e){return rt(e)&&e.nodeType===_t}function xt(e){return rt(e)&&e.constructor?.name===`VisualViewport`}function St(e){return rt(e)&&e.nodeType!==void 0}function Ct(e){return St(e)&&e.nodeType===vt&&`host`in e}function wt(e){return bt(e)?e:xt(e)?e.document:e?.ownerDocument??document}function Tt(e){return Ct(e)?Tt(e.host):bt(e)?e.defaultView??window:yt(e)?e.ownerDocument?.defaultView??window:window}function Et(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var Dt=class{element;#e=F(()=>this.element.current?this.element.current.getRootNode()??document:document);get root(){return U(this.#e)}set root(e){L(this.#e,e)}constructor(e){this.element=typeof e==`function`?Y(e):e}getDocument=()=>wt(this.root);getWindow=()=>this.getDocument().defaultView??window;getActiveElement=()=>Et(this.root);isActiveElement=e=>e===this.getActiveElement();getElementById(e){return this.root.getElementById(e)}querySelector=e=>this.root?this.root.querySelector(e):null;querySelectorAll=e=>this.root?this.root.querySelectorAll(e):[];setTimeout=(e,t)=>this.getWindow().setTimeout(e,t);clearTimeout=e=>this.getWindow().clearTimeout(e)};function Ot(e){return window.getComputedStyle(e).getPropertyValue(`direction`)}var kt=[Ze,Pe,Be],At=[Re,Me,`End`];[...kt,...At];function jt(e=`ltr`,t=`horizontal`){return{horizontal:e===`rtl`?Ae:Xe,vertical:Ze}[t]}function Mt(e=`ltr`,t=`horizontal`){return{horizontal:e===`rtl`?Xe:Ae,vertical:Re}[t]}function Nt(e=`ltr`,t=`horizontal`){return[`ltr`,`rtl`].includes(e)||(e=`ltr`),[`horizontal`,`vertical`].includes(t)||(t=`horizontal`),{nextKey:jt(e,t),prevKey:Mt(e,t)}}var Pt=typeof document<`u`;Ft();function Ft(){return Pt&&window?.navigator?.userAgent&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function It(e){return e instanceof HTMLElement}var Lt=class{#e;#t=Z(null);constructor(e){this.#e=e}getCandidateNodes(){return this.#e.rootNode.current?this.#e.candidateSelector?Array.from(this.#e.rootNode.current.querySelectorAll(this.#e.candidateSelector)):this.#e.candidateAttr?Array.from(this.#e.rootNode.current.querySelectorAll(`[${this.#e.candidateAttr}]:not([data-disabled])`)):[]:[]}focusFirstCandidate(){let e=this.getCandidateNodes();e.length&&e[0]?.focus()}handleKeydown(e,t,n=!1){let r=this.#e.rootNode.current;if(!r||!e)return;let i=this.getCandidateNodes();if(!i.length)return;let a=i.indexOf(e),{nextKey:o,prevKey:s}=Nt(Ot(r),this.#e.orientation.current),c=this.#e.loop.current,l={[o]:a+1,[s]:a-1,[Be]:0,End:i.length-1};if(n){let e=o===`ArrowDown`?Xe:Ze,t=s===`ArrowUp`?Ae:Re;l[e]=a+1,l[t]=a-1}let u=l[t.key];if(u===void 0)return;t.preventDefault(),u<0&&c?u=i.length-1:u===i.length&&c&&(u=0);let d=i[u];if(d)return d.focus(),this.#t.current=d.id,this.#e.onCandidateFocus?.(d),d}getTabIndex(e){let t=this.getCandidateNodes(),n=this.#t.current!==null;return e&&!n&&t[0]===e?(this.#t.current=e.id,0):e?.id===this.#t.current?0:-1}setCurrentTabStopId(e){this.#t.current=e}focusCurrentTabStop(){let e=this.#t.current;if(!e)return;let t=this.#e.rootNode.current?.querySelector(`#${e}`);!t||!It(t)||t.focus()}},Rt=18,zt=40,Bt=`${zt}px`,Vt=[`[data-lastpass-icon-root]`,`com-1password-button`,`[data-dashlanecreated]`,`[style$="2147483647 !important;"]`].join(`,`);function Ht({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r,domContext:i}){let a=y(!1),o=y(!1),s=y(!1);function l(){let e=n.current;return e!==`none`&&e===`increase-width`&&U(a)&&U(o)}function u(){let r=e.current,o=t.current;if(!r||!o||U(s)||n.current===`none`)return;let c=r,l=c.getBoundingClientRect().left+c.offsetWidth,u=c.getBoundingClientRect().top+c.offsetHeight/2,d=l-Rt,f=u;(i.querySelectorAll(Vt).length!==0||i.getDocument().elementFromPoint(d,f)!==r)&&(L(a,!0),L(s,!0))}return c(()=>{let t=e.current;if(!t||n.current===`none`)return;function r(){let e=Tt(t).innerWidth-t.getBoundingClientRect().right;L(o,e>=zt)}r();let i=setInterval(r,1e3);return()=>{clearInterval(i)}}),c(()=>{let e=r.current||i.getActiveElement()===t.current;if(n.current===`none`||!e)return;let a=setTimeout(u,0),o=setTimeout(u,2e3),c=setTimeout(u,5e3),l=setTimeout(()=>{L(s,!0)},6e3);return()=>{clearTimeout(a),clearTimeout(o),clearTimeout(c),clearTimeout(l)}}),{get hasPwmBadge(){return U(a)},get willPushPwmBadge(){return l()},PWM_BADGE_SPACE_WIDTH:Bt}}var Ut=`^\\d+$`,Wt=je({component:`pin-input`,parts:[`root`,`cell`]}),Gt=[`Backspace`,`Delete`,`ArrowLeft`,`ArrowRight`,`ArrowUp`,`ArrowDown`,`Home`,`End`,`Escape`,`Enter`,`Tab`,`Shift`,`Control`,`Meta`],Kt=class e{static create(t){return new e(t)}opts;attachment;inputAttachment;#e=y(!1);#t=ke(!1);#n=y(null);#r=y(null);#i=new Ne(()=>this.opts.value.current??``);#a=F(()=>typeof this.opts.pattern.current==`string`?new RegExp(this.opts.pattern.current):this.opts.pattern.current);#o=y(te({prev:[null,null,`none`],willSyntheticBlur:!1}));#s;#c;domContext;constructor(e){this.opts=e,this.attachment=J(this.opts.ref),this.inputAttachment=J(this.opts.inputRef),this.domContext=new Dt(e.ref),this.#c={value:this.opts.value,isIOS:typeof window<`u`&&window?.CSS?.supports(`-webkit-touch-callout`,`none`)},this.#s=Ht({containerRef:this.opts.ref,inputRef:this.opts.inputRef,isFocused:this.#t,pushPasswordManagerStrategy:this.opts.pushPasswordManagerStrategy,domContext:this.domContext}),N(()=>{let e=this.opts.inputRef.current,t=this.opts.ref.current;if(!e||!t)return;this.#c.value.current!==e.value&&(this.opts.value.current=e.value),U(this.#o).prev=[e.selectionStart,e.selectionEnd,e.selectionDirection??`none`];let n=l(this.domContext.getDocument(),`selectionchange`,this.#m,{capture:!0});this.#m(),this.domContext.getActiveElement()===e&&(this.#t.current=!0),this.domContext.getElementById(`pin-input-style`)||this.#p();let r=()=>{t&&t.style.setProperty(`--bits-pin-input-root-height`,`${e.clientHeight}px`)};r();let i=new ResizeObserver(r);return i.observe(e),()=>{n(),i.disconnect()}}),Ue([()=>this.opts.value.current,()=>this.opts.inputRef.current],()=>{Jt(()=>{let e=this.opts.inputRef.current;if(!e)return;e.dispatchEvent(new Event(`input`));let t=e.selectionStart,n=e.selectionEnd,r=e.selectionDirection??`none`;t!==null&&n!==null&&(L(this.#n,t,!0),L(this.#r,n,!0),U(this.#o).prev=[t,n,r])},this.domContext)}),c(()=>{let e=this.opts.value.current,t=this.#i.current,n=this.opts.maxLength.current,r=this.opts.onComplete.current;t!==void 0&&e!==t&&t.length<n&&e.length===n&&r(e)})}onkeydown=e=>{let t=e.key;Gt.includes(t)||e.ctrlKey||e.metaKey||t&&U(this.#a)&&!U(this.#a).test(t)&&e.preventDefault()};#l=F(()=>({position:`relative`,cursor:this.opts.disabled.current?`default`:`text`,userSelect:`none`,WebkitUserSelect:`none`,pointerEvents:`none`}));#u=F(()=>({id:this.opts.id.current,[Wt.root]:``,style:U(this.#l),...this.attachment}));get rootProps(){return U(this.#u)}set rootProps(e){L(this.#u,e)}#d=F(()=>({style:{position:`absolute`,inset:0,pointerEvents:`none`}}));get inputWrapperProps(){return U(this.#d)}set inputWrapperProps(e){L(this.#d,e)}#f=F(()=>({position:`absolute`,inset:0,width:this.#s.willPushPwmBadge?`calc(100% + ${this.#s.PWM_BADGE_SPACE_WIDTH})`:`100%`,clipPath:this.#s.willPushPwmBadge?`inset(0 ${this.#s.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:`100%`,display:`flex`,textAlign:this.opts.textAlign.current,opacity:`1`,color:`transparent`,pointerEvents:`all`,background:`transparent`,caretColor:`transparent`,border:`0 solid transparent`,outline:`0 solid transparent`,boxShadow:`none`,lineHeight:`1`,letterSpacing:`-.5em`,fontSize:`var(--bits-pin-input-root-height)`,fontFamily:`monospace`,fontVariantNumeric:`tabular-nums`}));#p(){let e=this.domContext.getDocument(),t=e.createElement(`style`);if(t.id=`pin-input-style`,e.head.appendChild(t),t.sheet){let e=`background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;`;Yt(t.sheet,`[data-pin-input-input]::selection { background: transparent !important; color: transparent !important; }`),Yt(t.sheet,`[data-pin-input-input]:autofill { ${e} }`),Yt(t.sheet,`[data-pin-input-input]:-webkit-autofill { ${e} }`),Yt(t.sheet,`@supports (-webkit-touch-callout: none) { [data-pin-input-input] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }`),Yt(t.sheet,`[data-pin-input-input] + * { pointer-events: all !important; }`)}}#m=()=>{let e=this.opts.inputRef.current,t=this.opts.ref.current;if(!e||!t)return;if(this.domContext.getActiveElement()!==e){L(this.#n,null),L(this.#r,null);return}let n=e.selectionStart,r=e.selectionEnd,i=e.selectionDirection??`none`,a=e.maxLength,o=e.value,s=U(this.#o).prev,c=-1,l=-1,u;if(o.length!==0&&n!==null&&r!==null){let e=n===r,t=n===o.length&&o.length<a;if(e&&!t){let e=n;if(e===0)c=0,l=1,u=`forward`;else if(e===a)c=e-1,l=e,u=`backward`;else if(a>1&&o.length>1){let t=0;if(s[0]!==null&&s[1]!==null){u=e<s[1]?`backward`:`forward`;let n=s[0]===s[1]&&s[0]<a;u===`backward`&&!n&&(t=-1)}c=t+e,l=t+e+1}}c!==-1&&l!==-1&&c!==l&&this.opts.inputRef.current?.setSelectionRange(c,l,u)}let d=c===-1?n:c,f=l===-1?r:l,p=u??i;L(this.#n,d,!0),L(this.#r,f,!0),U(this.#o).prev=[d,f,p]};oninput=e=>{let t=e.currentTarget.value.slice(0,this.opts.maxLength.current);if(t.length>0&&U(this.#a)&&!U(this.#a).test(t)){e.preventDefault();return}typeof this.#i.current==`string`&&t.length<this.#i.current.length&&this.domContext.getDocument().dispatchEvent(new Event(`selectionchange`)),this.opts.value.current=t};onfocus=e=>{let t=this.opts.inputRef.current;if(t){let e=Math.min(t.value.length,this.opts.maxLength.current-1),n=t.value.length;t.setSelectionRange(e,n),L(this.#n,e,!0),L(this.#r,n,!0)}this.#t.current=!0};onpaste=e=>{let t=this.opts.inputRef.current;if(!t)return;let n=e=>{let n=t.selectionStart===null?void 0:t.selectionStart,r=t.selectionEnd===null?void 0:t.selectionEnd,i=n!==r,a=this.opts.value.current;return(i?a.slice(0,n)+e+a.slice(r):a.slice(0,n)+e+a.slice(n)).slice(0,this.opts.maxLength.current)},r=e=>e.length>0&&U(this.#a)&&!U(this.#a).test(e);if(!this.opts.pasteTransformer?.current&&(!this.#c.isIOS||!e.clipboardData||!t)){r(n(e.clipboardData?.getData(`text/plain`)))&&e.preventDefault();return}let i=e.clipboardData?.getData(`text/plain`)??``,a=this.opts.pasteTransformer?.current?this.opts.pasteTransformer.current(i):i;e.preventDefault();let o=n(a);if(r(o))return;t.value=o,this.opts.value.current=o;let s=Math.min(o.length,this.opts.maxLength.current-1),c=o.length;t.setSelectionRange(s,c),L(this.#n,s,!0),L(this.#r,c,!0)};onmouseover=e=>{L(this.#e,!0)};onmouseleave=e=>{L(this.#e,!1)};onblur=e=>{if(U(this.#o).willSyntheticBlur){U(this.#o).willSyntheticBlur=!1;return}this.#t.current=!1};#h=F(()=>({id:this.opts.inputId.current,style:U(this.#f),autocomplete:this.opts.autocomplete.current||`one-time-code`,"data-pin-input-input":``,"data-pin-input-input-mss":U(this.#n),"data-pin-input-input-mse":U(this.#r),inputmode:this.opts.inputmode.current,pattern:U(this.#a)?.source,maxlength:this.opts.maxLength.current,value:this.opts.value.current,disabled:at(this.opts.disabled.current),onpaste:this.onpaste,oninput:this.oninput,onkeydown:this.onkeydown,onmouseover:this.onmouseover,onmouseleave:this.onmouseleave,onfocus:this.onfocus,onblur:this.onblur,...this.inputAttachment}));get inputProps(){return U(this.#h)}set inputProps(e){L(this.#h,e)}#g=F(()=>Array.from({length:this.opts.maxLength.current}).map((e,t)=>{let n=this.#t.current&&U(this.#n)!==null&&U(this.#r)!==null&&(U(this.#n)===U(this.#r)&&t===U(this.#n)||t>=U(this.#n)&&t<U(this.#r)),r=this.opts.value.current[t]===void 0?null:this.opts.value.current[t];return{char:r,isActive:n,hasFakeCaret:n&&r===null}}));#_=F(()=>({cells:U(this.#g),isFocused:this.#t.current,isHovering:U(this.#e)}));get snippetProps(){return U(this.#_)}set snippetProps(e){L(this.#_,e)}},qt=class e{static create(t){return new e(t)}opts;attachment;constructor(e){this.opts=e,this.attachment=J(this.opts.ref)}#e=F(()=>({id:this.opts.id.current,[Wt.cell]:``,"data-active":this.opts.cell.current.isActive?``:void 0,"data-inactive":this.opts.cell.current.isActive?void 0:``,...this.attachment}));get props(){return U(this.#e)}set props(e){L(this.#e,e)}};function Jt(e,t){return[t.setTimeout(e,0),t.setTimeout(e,10),t.setTimeout(e,50)]}function Yt(e,t){try{e.insertRule(t)}catch{console.error(`pin input could not insert CSS rule:`,t)}}var Xt=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`inputId`,`ref`,`inputRef`,`maxlength`,`textalign`,`pattern`,`inputmode`,`onComplete`,`pushPasswordManagerStrategy`,`class`,`children`,`autocomplete`,`disabled`,`value`,`onValueChange`,`pasteTransformer`]),Zt=t(`<div><!> <div><input/></div></div>`);function Qt(e,t){let n=u();B(t,!0);let r=D(t,`id`,19,()=>G(n)),i=D(t,`inputId`,19,()=>`${G(n)}-input`),a=D(t,`ref`,15,null),o=D(t,`inputRef`,15,null),s=D(t,`maxlength`,3,6),c=D(t,`textalign`,3,`left`),l=D(t,`inputmode`,3,`numeric`),d=D(t,`onComplete`,3,ze),m=D(t,`pushPasswordManagerStrategy`,3,`increase-width`),g=D(t,`class`,3,``),y=D(t,`autocomplete`,3,`one-time-code`),b=D(t,`disabled`,3,!1),x=D(t,`value`,15,``),C=D(t,`onValueChange`,3,ze),T=v(t,Xt),E=Kt.create({id:Y(()=>r()),ref:Y(()=>a(),e=>a(e)),inputRef:Y(()=>o(),e=>o(e)),inputId:Y(()=>i()),autocomplete:Y(()=>y()),maxLength:Y(()=>s()),textAlign:Y(()=>c()),disabled:Y(()=>b()),inputmode:Y(()=>l()),pattern:Y(()=>t.pattern),onComplete:Y(()=>d()),value:Y(()=>x(),e=>{x(e),C()(e)}),pushPasswordManagerStrategy:Y(()=>m()),pasteTransformer:Y(()=>t.pasteTransformer)}),ee=F(()=>q(T,E.inputProps)),O=F(()=>q(E.rootProps,{class:g()})),k=F(()=>q(E.inputWrapperProps,{}));var A=Zt();S(A,()=>({...U(O)}));var j=p(A);H(j,()=>t.children??h,()=>E.snippetProps);var M=w(j,2);S(M,()=>({...U(k)}));var N=p(M);S(N,()=>({...U(ee)}),void 0,void 0,void 0,void 0,!0),V(M),V(A),f(e,A),_()}var $t=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`cell`,`child`,`children`]),en=t(`<div><!></div>`);function tn(t,n){let r=u();B(n,!0);let i=D(n,`id`,19,()=>G(r)),a=D(n,`ref`,15,null),s=v(n,$t),c=qt.create({id:Y(()=>i()),ref:Y(()=>a(),e=>a(e)),cell:Y(()=>n.cell)}),l=F(()=>q(s,c.props));var d=k(),m=e(d),g=t=>{var r=k(),i=e(r);H(i,()=>n.child,()=>({props:U(l)})),f(t,r)},y=e=>{var t=en();S(t,()=>({...U(l)}));var r=p(t);H(r,()=>n.children??h),V(t),f(e,t)};o(m,e=>{n.child?e(g):e(y,-1)}),f(t,d),_()}var nn=je({component:`tabs`,parts:[`root`,`list`,`trigger`,`content`]}),rn=new We(`Tabs.Root`),an=class e{static create(t){return rn.set(new e(t))}opts;attachment;rovingFocusGroup;#e=y(te([]));get triggerIds(){return U(this.#e)}set triggerIds(e){L(this.#e,e,!0)}valueToTriggerId=new Ye;valueToContentId=new Ye;constructor(e){this.opts=e,this.attachment=J(e.ref),this.rovingFocusGroup=new Lt({candidateAttr:nn.trigger,rootNode:this.opts.ref,loop:this.opts.loop,orientation:this.opts.orientation})}registerTrigger(e,t){return this.triggerIds.push(e),this.valueToTriggerId.set(t,e),()=>{this.triggerIds=this.triggerIds.filter(t=>t!==e),this.valueToTriggerId.delete(t)}}registerContent(e,t){return this.valueToContentId.set(t,e),()=>{this.valueToContentId.delete(t)}}setValue(e){this.opts.value.current=e}#t=F(()=>({id:this.opts.id.current,"data-orientation":this.opts.orientation.current,[nn.root]:``,...this.attachment}));get props(){return U(this.#t)}set props(e){L(this.#t,e)}},on=class e{static create(t){return new e(t,rn.get())}opts;root;attachment;#e=F(()=>this.root.opts.disabled.current);constructor(e,t){this.opts=e,this.root=t,this.attachment=J(e.ref)}#t=F(()=>({id:this.opts.id.current,role:`tablist`,"aria-orientation":this.root.opts.orientation.current,"data-orientation":this.root.opts.orientation.current,[nn.list]:``,"data-disabled":Le(U(this.#e)),...this.attachment}));get props(){return U(this.#t)}set props(e){L(this.#t,e)}},sn=class e{static create(t){return new e(t,rn.get())}opts;root;attachment;#e=y(0);#t=F(()=>this.root.opts.value.current===this.opts.value.current);#n=F(()=>this.opts.disabled.current||this.root.opts.disabled.current);#r=F(()=>this.root.valueToContentId.get(this.opts.value.current));constructor(e,t){this.opts=e,this.root=t,this.attachment=J(e.ref),Ue([()=>this.opts.id.current,()=>this.opts.value.current],([e,t])=>this.root.registerTrigger(e,t)),c(()=>{this.root.triggerIds.length,U(this.#t)||!this.root.opts.value.current?L(this.#e,0):L(this.#e,-1)}),this.onfocus=this.onfocus.bind(this),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}#i(){this.root.opts.value.current!==this.opts.value.current&&this.root.setValue(this.opts.value.current)}onfocus(e){this.root.opts.activationMode.current!==`automatic`||U(this.#n)||this.#i()}onclick(e){U(this.#n)||this.#i()}onkeydown(e){if(!U(this.#n)){if(e.key===` `||e.key===`Enter`){e.preventDefault(),this.#i();return}this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current,e)}}#a=F(()=>({id:this.opts.id.current,role:`tab`,"data-state":ln(U(this.#t)),"data-value":this.opts.value.current,"data-orientation":this.root.opts.orientation.current,"data-disabled":Le(U(this.#n)),"aria-selected":He(U(this.#t)),"aria-controls":U(this.#r),[nn.trigger]:``,disabled:at(U(this.#n)),tabindex:U(this.#e),onclick:this.onclick,onfocus:this.onfocus,onkeydown:this.onkeydown,...this.attachment}));get props(){return U(this.#a)}set props(e){L(this.#a,e)}},cn=class e{static create(t){return new e(t,rn.get())}opts;root;attachment;#e=F(()=>this.root.opts.value.current===this.opts.value.current);#t=F(()=>this.root.valueToTriggerId.get(this.opts.value.current));constructor(e,t){this.opts=e,this.root=t,this.attachment=J(e.ref),Ue([()=>this.opts.id.current,()=>this.opts.value.current],([e,t])=>this.root.registerContent(e,t))}#n=F(()=>({id:this.opts.id.current,role:`tabpanel`,hidden:at(!U(this.#e)),tabindex:0,"data-value":this.opts.value.current,"data-state":ln(U(this.#e)),"aria-labelledby":U(this.#t),"data-orientation":this.root.opts.orientation.current,[nn.content]:``,...this.attachment}));get props(){return U(this.#n)}set props(e){L(this.#n,e)}};function ln(e){return e?`active`:`inactive`}var un=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`value`,`onValueChange`,`orientation`,`loop`,`activationMode`,`disabled`,`children`,`child`]),dn=t(`<div><!></div>`);function fn(t,n){let r=u();B(n,!0);let i=D(n,`id`,19,()=>G(r)),a=D(n,`ref`,15,null),s=D(n,`value`,15,``),c=D(n,`onValueChange`,3,ze),l=D(n,`orientation`,3,`horizontal`),d=D(n,`loop`,3,!0),m=D(n,`activationMode`,3,`automatic`),g=D(n,`disabled`,3,!1),y=v(n,un),b=an.create({id:Y(()=>i()),value:Y(()=>s(),e=>{s(e),c()(e)}),orientation:Y(()=>l()),loop:Y(()=>d()),activationMode:Y(()=>m()),disabled:Y(()=>g()),ref:Y(()=>a(),e=>a(e))}),x=F(()=>q(y,b.props));var C=k(),w=e(C),T=t=>{var r=k(),i=e(r);H(i,()=>n.child,()=>({props:U(x)})),f(t,r)},E=e=>{var t=dn();S(t,()=>({...U(x)}));var r=p(t);H(r,()=>n.children??h),V(t),f(e,t)};o(w,e=>{n.child?e(T):e(E,-1)}),f(t,C),_()}var pn=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`id`,`ref`,`value`]),mn=t(`<div><!></div>`);function hn(t,n){let r=u();B(n,!0);let i=D(n,`id`,19,()=>G(r)),a=D(n,`ref`,15,null),s=v(n,pn),c=cn.create({value:Y(()=>n.value),id:Y(()=>i()),ref:Y(()=>a(),e=>a(e))}),l=F(()=>q(s,c.props));var d=k(),m=e(d),g=t=>{var r=k(),i=e(r);H(i,()=>n.child,()=>({props:U(l)})),f(t,r)},y=e=>{var t=mn();S(t,()=>({...U(l)}));var r=p(t);H(r,()=>n.children??h),V(t),f(e,t)};o(m,e=>{n.child?e(g):e(y,-1)}),f(t,d),_()}var gn=new Set([`$$slots`,`$$events`,`$$legacy`,`child`,`children`,`id`,`ref`]),_n=t(`<div><!></div>`);function vn(t,n){let r=u();B(n,!0);let i=D(n,`id`,19,()=>G(r)),a=D(n,`ref`,15,null),s=v(n,gn),c=on.create({id:Y(()=>i()),ref:Y(()=>a(),e=>a(e))}),l=F(()=>q(s,c.props));var d=k(),m=e(d),g=t=>{var r=k(),i=e(r);H(i,()=>n.child,()=>({props:U(l)})),f(t,r)},y=e=>{var t=_n();S(t,()=>({...U(l)}));var r=p(t);H(r,()=>n.children??h),V(t),f(e,t)};o(m,e=>{n.child?e(g):e(y,-1)}),f(t,d),_()}var yn=new Set([`$$slots`,`$$events`,`$$legacy`,`child`,`children`,`disabled`,`id`,`type`,`value`,`ref`]),bn=t(`<button><!></button>`);function xn(t,n){let r=u();B(n,!0);let i=D(n,`disabled`,3,!1),a=D(n,`id`,19,()=>G(r)),s=D(n,`type`,3,`button`),c=D(n,`ref`,15,null),l=v(n,yn),d=sn.create({id:Y(()=>a()),disabled:Y(()=>i()??!1),value:Y(()=>n.value),ref:Y(()=>c(),e=>c(e))}),m=F(()=>q(l,d.props,{type:s()}));var g=k(),y=e(g),b=t=>{var r=k(),i=e(r);H(i,()=>n.child,()=>({props:U(m)})),f(t,r)},x=e=>{var t=bn();S(t,()=>({...U(m)}));var r=p(t);H(r,()=>n.children??h),V(t),f(e,t)};o(y,e=>{n.child?e(b):e(x,-1)}),f(t,g),_()}var Sn={"en-US":{auth:{signupTitle:`One-tap sign-up`,passwordTitle:`Hop in with password`,passwordDescription:`Create an account or sign in`,passkey:`Passkeys`,email:`Email`,alreadyHaveAccount:`Already have an account?`,betterSecurity:`Better security`,passkeysNotSupported:`Passkeys not supported`,passkeysWarning:`Your browser does not respect your privacy and security.`,learnMore:`Learn more`,passwordBlank:`Leave password blank <nobr>to receive</nobr> <nobr>a one-time</nobr> passcode.`,otpInstructions:`Enter the code sent to your email. It expires in 5 minutes.`,continueWith:e=>`Continue with ${e}`,passkeysDescription:`Passkeys are safer than passwords, easier to use, and can’t be stolen.`,yourName:`Your name`,password:`Password`,refresh:{description:e=>`${e?e+`, for`:`For`} security reasons, your credentials have expired. Please log in again to continue.`,title:`Welcome back`,continue:`Continue`},signout:`Sign out`,login:`Log In`,signin:`Sign In`,copyId:`Copy account ID`},credentials:{connect:`Connect`,email:{title:`Email`,description:`Connect your email address`},google:{title:`Google`,description:`Connect your Google account`},apple:{title:`Apple`,description:`Connect your Apple ID`},passkeys:{title:`Passkeys`,tagline:`Sign in faster with a passkey`,create:`Create`,manage:`Manage`,collapse:`Collapse`,add:`Enter passkey name`,delete:`Hold to delete`,unknown:`Unknown`,count:e=>{let t={one:`{n} passkey`,other:`{n} passkeys`},n=`en-US`,r=new Intl.PluralRules(n).select(e),i=t;return(i[r]??i.other).replace(/{n}/g,new Intl.NumberFormat(n).format(e))},meta:(e,t)=>`Added ${e} · Used ${t}`,duplicate:`This device already has a passkey for your account`,failed:`Could not create the passkey. Please try again.`},transfer:{action:`Sign in on another device`,title:`Scan to sign in`,description:`Use your other device to scan this code and sign in.`,done:`Done`}}}},Q=E(xe,e=>Sn[e]),Cn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),wn=t(`<div><!></div>`);function Tn(e,t){B(t,!0);let n=D(t,`ref`,15,null),r=v(t,Cn);var i=wn();S(i,e=>({"data-slot":`card-content`,class:e,...r}),[()=>K(`px-(--card-spacing)`,t.class)]);var a=p(i);H(a,()=>t.children??h),V(i),R(i,e=>n(e),()=>n()),f(e,i),_()}var En=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Dn=t(`<p><!></p>`);function On(e,t){B(t,!0);let n=D(t,`ref`,15,null),r=v(t,En);var i=Dn();S(i,e=>({"data-slot":`card-description`,class:e,...r}),[()=>K(`text-sm text-muted-foreground`,t.class)]);var a=p(i);H(a,()=>t.children??h),V(i),R(i,e=>n(e),()=>n()),f(e,i),_()}var kn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),An=t(`<div><!></div>`);function jn(e,t){B(t,!0);let n=D(t,`ref`,15,null),r=v(t,kn);var i=An();S(i,e=>({"data-slot":`card-footer`,class:e,...r}),[()=>K(`rounded-b-xl border-t bg-muted/50 p-(--card-spacing) flex items-center`,t.class)]);var a=p(i);H(a,()=>t.children??h),V(i),R(i,e=>n(e),()=>n()),f(e,i),_()}var Mn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Nn=t(`<div><!></div>`);function Pn(e,t){B(t,!0);let n=D(t,`ref`,15,null),r=v(t,Mn);var i=Nn();S(i,e=>({"data-slot":`card-header`,class:e,...r}),[()=>K(`gap-1 rounded-t-xl px-(--card-spacing) [.border-b]:pb-(--card-spacing) group/card-header @container/card-header grid auto-rows-min items-start has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]`,t.class)]);var a=p(i);H(a,()=>t.children??h),V(i),R(i,e=>n(e),()=>n()),f(e,i),_()}var Fn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),In=t(`<div><!></div>`);function Ln(e,t){B(t,!0);let n=D(t,`ref`,15,null),r=v(t,Fn);var i=In();S(i,e=>({"data-slot":`card-title`,class:e,...r}),[()=>K(`text-base leading-snug font-medium group-data-[size=sm]/card:text-sm`,t.class)]);var a=p(i);H(a,()=>t.children??h),V(i),R(i,e=>n(e),()=>n()),f(e,i),_()}var Rn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`,`size`]),zn=t(`<div><!></div>`);function Bn(e,t){B(t,!0);let n=D(t,`ref`,15,null),r=D(t,`size`,3,`default`),i=v(t,Rn);var a=zn();S(a,e=>({"data-slot":`card`,"data-size":r(),class:e,...i}),[()=>K(`gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl group/card flex flex-col`,t.class)]);var o=p(a);H(o,()=>t.children??h),V(a),R(a,e=>n(e),()=>n()),f(e,a),_()}var Vn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`value`,`type`,`files`,`class`,`data-slot`]),Hn=t(`<input/>`);function Un(t,n){B(n,!0);let r=D(n,`ref`,15,null),i=D(n,`value`,15),a=D(n,`files`,15),s=D(n,`data-slot`,3,`input`),c=v(n,Vn);var l=k(),u=e(l),d=e=>{var t=Hn();S(t,e=>({"data-slot":s(),class:e,type:`file`,...c}),[()=>K(`h-8 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,n.class)],void 0,void 0,void 0,!0),R(t,e=>r(e),()=>r()),A(t,a),ne(t,i),f(e,t)},p=e=>{var t=Hn();S(t,e=>({"data-slot":s(),class:e,type:n.type,...c}),[()=>K(`h-8 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,n.class)],void 0,void 0,void 0,!0),R(t,e=>r(e),()=>r()),ne(t,i),f(e,t)};o(u,e=>{n.type===`file`?e(d):e(p,-1)}),f(t,l),_()}var Wn=t(`<div><!></div>`);function Gn(e,t){B(t,!0);let n=y(!1);async function r(){L(n,!0),await new Promise(e=>setTimeout(e,500)),L(n,!1)}var i={shake:r},a=Wn(),o=p(a);return H(o,()=>t.children),V(a),I(()=>M(a,1,ee([t.class,U(n)&&`shake`]),`svelte-alh7mr`)),f(e,a),_(i)}var Kn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),qn=t(`<div><!></div>`);function Jn(e,t){B(t,!0);let n=D(t,`ref`,15,null),r=v(t,Kn);var i=qn();S(i,e=>({"data-slot":`input-otp-group`,class:e,...r}),[()=>K(`rounded-lg has-aria-invalid:border-destructive has-aria-invalid:ring-3 has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40 flex items-center`,t.class)]);var a=p(i);H(a,()=>t.children??h),V(i),R(i,e=>n(e),()=>n()),f(e,i),_()}var Yn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`cell`,`class`]),Xn=t(`<div class="cn-input-otp-caret pointer-events-none absolute inset-0 flex items-center justify-center"><div class="h-4 w-px animate-caret-blink bg-foreground duration-1000 h-4 w-px bg-foreground"></div></div>`),Zn=t(` <!>`,1);function Qn(t,n){B(n,!0);let a=D(n,`ref`,15,null),s=v(n,Yn);var c=k(),l=e(c);{let t=F(()=>K(`size-8 border-y border-r border-input text-sm transition-all outline-none first:rounded-l-lg first:border-l last:rounded-r-lg aria-invalid:border-destructive data-[active=true]:border-ring data-[active=true]:ring-3 data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:border-destructive data-[active=true]:aria-invalid:ring-destructive/20 dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-destructive/40 relative flex items-center justify-center data-[active=true]:z-10`,n.class));b(l,()=>tn,(c,l)=>{l(c,P({get cell(){return n.cell},"data-slot":`input-otp-slot`,get class(){return U(t)}},()=>s,{get ref(){return a()},set ref(e){a(e)},children:(t,a)=>{r();var s=Zn(),c=e(s),l=w(c),u=e=>{var t=Xn();f(e,t)};o(l,e=>{n.cell.hasFakeCaret&&e(u)}),I(()=>i(c,`${n.cell.char??``} `)),f(t,s)},$$slots:{default:!0}}))})}f(t,c),_()}var $n=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`value`]);function er(t,n){B(n,!0);let r=D(n,`ref`,15,null),i=D(n,`value`,15,``),a=v(n,$n);var o=k(),s=e(o);{let e=F(()=>K(`cn-input-otp-input gap-2 flex items-center disabled:cursor-not-allowed has-disabled:opacity-50`,n.class));b(s,()=>Qt,(t,n)=>{n(t,P({"data-slot":`input-otp`,spellcheck:!1,get class(){return U(e)}},()=>a,{get ref(){return r()},set ref(e){r(e)},get value(){return i()},set value(e){i(e)}}))})}f(t,o),_()}var tr=t(`<div class="w-full flex items-center"><!></div>`);function nr(t,r){B(r,!0);let i=()=>z(Q,`$dict`,a),[a,s]=j(),c=D(r,`ref`,15,null),l=D(r,`mode`,11,`password`),u=D(r,`password`,15,``),d=D(r,`otp`,15,``);var m=tr(),h=p(m),g=e=>{Un(e,{id:`iam-password-input`,name:`password`,type:`password`,minlength:6,autocomplete:`current-password`,get placeholder(){return i().auth.password},class:`placeholder:text-sm`,get value(){return u()},set value(e){u(e)}})},v=t=>{var r=k(),i=e(r);{let t=(t,r)=>{let i=()=>(r?.()).cells;var a=k(),o=e(a);b(o,()=>Jn,(t,r)=>{r(t,{children:(t,r)=>{var a=k(),o=e(a);n(o,17,()=>i().slice(0,6),re,(t,n)=>{var r=k(),i=e(r);b(i,()=>Qn,(e,t)=>{t(e,{get cell(){return U(n)},class:`size-[40px] bg-background`})}),f(t,r)}),f(t,a)},$$slots:{default:!0}})}),f(t,a)};b(i,()=>er,(e,n)=>{n(e,{maxlength:6,get pattern(){return Ut},required:!0,get value(){return d()},set value(e){d(e)},children:t,$$slots:{default:!0}})})}f(t,r)};o(h,e=>{l()===`password`?e(g):e(v,-1)}),V(m),R(m,e=>c(e),()=>c()),f(t,m),_(),s()}var rr=t(`<!> <span class="sr-only"> </span>`,1),ir=t(`<form><fieldset class="space-y-2"><!> <div class="space-y-2"><div class="flex items-center gap-2"><!> <!></div> <div class="text-sm text-muted-foreground px-1"><!></div></div></fieldset></form>`);function ar(t,n){B(n,!0);let r=()=>z(Q,`$dict`,a),[a,c]=j(),l=y(!1),u=y(``),h=y(``),g=y(``),v=y(null),b=y(`password`),x=y(void 0);async function S(){U(h).length===0?U(b)===`password`?await E():await ee():await C()}async function C(){L(l,!0);let e=n.account===void 0?await T():await he(n.account.id,{username:U(u),password:U(h)});L(l,!1),e instanceof Error&&await D()}async function T(){let e=await me(U(u),U(h));return e instanceof Error||Ee(e)?.status===201&&n.oncreate?.(e),e}async function E(){L(l,!0);let e=n.account===void 0?await Se(U(u)):await pe(n.account.id,U(u));L(l,!1),!(e instanceof Error)&&(L(b,`otp`),requestAnimationFrame(()=>O()))}async function ee(){if(U(u).length===0){console.error(`username is required`);return}if(U(g).length!==6){await D();return}L(l,!0);let e=await be(U(u),U(g));if(L(l,!1),e instanceof Error){L(g,``),await D();return}return Ee(e)?.status===201&&n.oncreate?.(e),e}async function D(){await U(x)?.shake(),O()}function O(){de&&U(v)?.querySelector(`input`)?.focus()}var A=ir(),M=F(()=>st(S)),N=p(A),P=p(N);{let e=F(()=>U(b)===`otp`||void 0);Un(P,{id:`iam-username-input`,name:`username`,type:`email`,autocomplete:`username`,required:!0,get disabled(){return U(e)},get autofocus(){return de},get placeholder(){return r().auth.email},get value(){return U(u)},set value(e){L(u,e,!0)}})}var te=w(P,2),ne=p(te),re=p(ne);R(Gn(re,{class:`w-full`,children:(e,t)=>{nr(e,{get mode(){return U(b)},get ref(){return U(v)},set ref(e){L(v,e,!0)},get password(){return U(h)},set password(e){L(h,e,!0)},get otp(){return U(g)},set otp(e){L(g,e,!0)}})},$$slots:{default:!0}}),e=>L(x,e,!0),()=>U(x));var H=w(re,2);X(H,{size:`icon-lg`,type:`submit`,children:(t,n)=>{var a=rr(),s=e(a),c=e=>{$e(e,{})},u=e=>{nt(e,{})};o(s,e=>{U(l)?e(c):e(u,-1)});var d=w(s,2),m=p(d,!0);V(d),I(()=>i(m,r().auth.login)),f(t,a)},$$slots:{default:!0}}),V(ne);var ie=w(ne,2),ae=p(ie),oe=t=>{var n=k(),i=e(n);m(i,()=>r().auth.passwordBlank),f(t,n)},se=e=>{var t=d();I(()=>i(t,r().auth.otpInstructions)),f(e,t)};o(ae,e=>{U(b)===`password`?e(oe):e(se,-1)}),V(ie),V(te),V(N),V(A),s(`submit`,A,function(...e){U(M)?.apply(this,e)}),f(t,A),_(),c()}var or=t(`<h2> </h2>`),sr=t(`<!> <!>`,1);function cr(t,n){B(n,!0);let a=()=>z(Q,`$dict`,o),[o,s]=j();var c=k(),l=e(c);{let t=F(()=>K(`pt-4 gap-4 bg-background/75`,n.class));b(l,()=>Bn,(o,s)=>{s(o,{get class(){return U(t)},children:(t,o)=>{var s=sr(),c=e(s);b(c,()=>Pn,(t,n)=>{n(t,{class:`gap-0`,children:(t,n)=>{var o=sr(),s=e(o);b(s,()=>Ln,(e,t)=>{t(e,{children:(e,t)=>{var n=or(),r=p(n,!0);V(n),I(()=>i(r,a().auth.passwordTitle)),f(e,n)},$$slots:{default:!0}})});var c=w(s,2);b(c,()=>On,(e,t)=>{t(e,{children:(e,t)=>{r();var n=d();I(()=>i(n,a().auth.passwordDescription)),f(e,n)},$$slots:{default:!0}})}),f(t,o)},$$slots:{default:!0}})});var l=w(c,2);b(l,()=>Tn,(e,t)=>{t(e,{children:(e,t)=>{ar(e,{get account(){return n.account},get oncreate(){return n.oncreate}})},$$slots:{default:!0}})}),f(t,s)},$$slots:{default:!0}})})}f(t,c),_(),s()}function lr(e){ar(e,{})}var ur=new Set([`$$slots`,`$$events`,`$$legacy`]);function dr(e,t){let n=v(t,ur),r=[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`}],[`path`,{d:`m9 12 2 2 4-4`}]];W(e,P({name:`shield-check`},()=>n,{get iconNode(){return r}}))}var fr=new Set([`$$slots`,`$$events`,`$$legacy`]);function pr(e,t){let n=v(t,fr),r=[[`path`,{d:`m2 2 20 20`}],[`path`,{d:`M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71`}],[`path`,{d:`M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264`}]];W(e,P({name:`shield-off`},()=>n,{get iconNode(){return r}}))}var mr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),hr=t(`<div><!></div>`);function gr(e,t){B(t,!0);let n=D(t,`ref`,15,null),r=v(t,mr);var i=hr();S(i,e=>({"data-slot":`alert-description`,class:e,...r}),[()=>K(`text-sm text-balance text-muted-foreground md:text-pretty [&_p:not(:last-child)]:mb-4 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground`,t.class)]);var a=p(i);H(a,()=>t.children??h),V(i),R(i,e=>n(e),()=>n()),f(e,i),_()}var _r=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),vr=t(`<div><!></div>`);function yr(e,t){B(t,!0);let n=D(t,`ref`,15,null),r=v(t,_r);var i=vr();S(i,e=>({"data-slot":`alert-title`,class:e,...r}),[()=>K(`font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground`,t.class)]);var a=p(i);H(a,()=>t.children??h),V(i),R(i,e=>n(e),()=>n()),f(e,i),_()}var br=it({base:`grid gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4 group/alert relative w-full`,variants:{variant:{default:`bg-card text-card-foreground`,destructive:`bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current`}},defaultVariants:{variant:`default`}}),xr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`variant`,`children`]),Sr=t(`<div><!></div>`);function Cr(e,t){B(t,!0);let n=D(t,`ref`,15,null),r=D(t,`variant`,3,`default`),i=v(t,xr);var a=Sr();S(a,e=>({"data-slot":`alert`,role:`alert`,class:e,...i}),[()=>K(br({variant:r()}),t.class)]);var o=p(a);H(o,()=>t.children??h),V(a),R(a,e=>n(e),()=>n()),f(e,a),_()}var wr=new Set([`$$slots`,`$$events`,`$$legacy`]);function Tr(e,t){let n=v(t,wr),r=[[`path`,{d:`M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4`}],[`path`,{d:`M14 13.12c0 2.38 0 6.38-1 8.88`}],[`path`,{d:`M17.29 21.02c.12-.6.43-2.3.5-3.02`}],[`path`,{d:`M2 12a10 10 0 0 1 18-6`}],[`path`,{d:`M2 16h.01`}],[`path`,{d:`M21.8 16c.2-2 .131-5.354 0-6`}],[`path`,{d:`M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2`}],[`path`,{d:`M8.65 22c.21-.66.45-1.32.57-2`}],[`path`,{d:`M9 6.8a6 6 0 0 1 9 5.2v2`}]];W(e,P({name:`fingerprint-pattern`},()=>n,{get iconNode(){return r}}))}var Er=t(`<!> `,1),Dr=t(`<div class="flex flex-col items-center justify-center gap-2"><p> </p> <!></div>`);function Or(t,n){B(n,!0);let r=()=>z(Q,`$dict`,a),[a,s]=j(),c=y(!1);async function l(){L(c,!0),await ye(),L(c,!1)}var u=Dr(),d=p(u),m=p(d,!0);V(d);var h=w(d,2);X(h,{id:`iam-passkey-login-button`,variant:`secondary`,onclick:l,children:(t,n)=>{var a=Er(),s=e(a),l=e=>{$e(e,{})},u=e=>{Tr(e,{})};o(s,e=>{U(c)?e(l):e(u,-1)});var d=w(s);I(()=>i(d,` ${r().auth.signin??``}`)),f(t,a)},$$slots:{default:!0}}),V(u),I(()=>i(m,r().auth.alreadyHaveAccount)),f(t,u),_(),s()}var kr=t(`<form><fieldset class="space-y-1"><div class="flex items-center gap-2"><!> <!></div></fieldset></form>`);function Ar(t,n){B(n,!0);let r=()=>z(Q,`$dict`,i),[i,a]=j(),c=F(()=>n.account?.name??``),l=y(!1);async function u(){let e=U(c).trim();if(e.length===0)return;L(l,!0);let t=await we(e,n.account?.id);L(l,!1),!(t instanceof Error)&&n.oncreate?.(t)}var d=kr(),m=F(()=>st(u)),h=p(d),g=p(h),v=p(g);Un(v,{id:`name`,type:`text`,get placeholder(){return r().auth.yourName},autocomplete:`given-name`,required:!0,get autofocus(){return de},get value(){return U(c)},set value(e){L(c,e)}});var b=w(v,2);X(b,{id:`iam-passkey-create-button`,size:`icon-lg`,type:`submit`,children:(t,n)=>{var r=k(),i=e(r),a=e=>{$e(e,{})},s=e=>{nt(e,{})};o(i,e=>{U(l)?e(a):e(s,-1)}),f(t,r)},$$slots:{default:!0}}),V(g),V(h),V(d),I(()=>h.disabled=n.disabled),s(`submit`,d,function(...e){U(m)?.apply(this,e)}),f(t,d),_(),a()}var jr=t(`<p> <a target="_blank" class="text-nowrap"> </a></p>`),Mr=t(`<h2> </h2>`),Nr=t(`<!> <!>`,1),Pr=t(`<!> <!> <!>`,1),Fr=t(`<p> </p> <!>`,1),Ir=t(`<div class="space-y-4"><!> <!></div>`);function Lr(t,n){B(n,!0);let a=()=>z(Q,`$dict`,s),[s,c]=j(),l=e=>{var t=jr(),n=p(t),r=w(n),o=p(r,!0);V(r),V(t),I(()=>{i(n,`${a().auth.passkeysDescription??``} `),T(r,`href`,u),i(o,a().auth.learnMore)}),f(e,t)},u=ge?`https://support.apple.com/en-us/102195`:`https://support.google.com/accounts/answer/13548313`;var m=Ir(),h=p(m);{let t=F(()=>K(`gap-4 bg-background/75`,fe&&`pt-4`,n.class));b(h,()=>Bn,(s,c)=>{c(s,{get class(){return U(t)},children:(t,s)=>{var c=Nr(),u=e(c),m=t=>{var r=Nr(),o=e(r);b(o,()=>Pn,(t,n)=>{n(t,{class:`gap-0`,children:(t,n)=>{var r=k(),o=e(r);b(o,()=>Ln,(e,t)=>{t(e,{children:(e,t)=>{var n=Mr(),r=p(n,!0);V(n),I(()=>i(r,a().auth.signupTitle)),f(e,n)},$$slots:{default:!0}})}),f(t,r)},$$slots:{default:!0}})});var s=w(o,2);b(s,()=>Tn,(e,t)=>{t(e,{children:(e,t)=>{Ar(e,{get account(){return n.account},get oncreate(){return n.oncreate}})},$$slots:{default:!0}})}),f(t,r)};o(u,e=>{fe&&e(m)});var h=w(u,2);b(h,()=>jn,(t,n)=>{n(t,{children:(t,n)=>{var s=k(),c=e(s),u=t=>{var n=k(),o=e(n);b(o,()=>Cr,(t,n)=>{n(t,{children:(t,n)=>{var o=Pr(),s=e(o);dr(s,{color:`green`});var c=w(s,2);b(c,()=>yr,(e,t)=>{t(e,{children:(e,t)=>{r();var n=d();I(()=>i(n,a().auth.betterSecurity)),f(e,n)},$$slots:{default:!0}})});var u=w(c,2);b(u,()=>gr,(e,t)=>{t(e,{children:(e,t)=>{l(e)},$$slots:{default:!0}})}),f(t,o)},$$slots:{default:!0}})}),f(t,n)},m=t=>{var n=k(),o=e(n);b(o,()=>Cr,(t,n)=>{n(t,{children:(t,n)=>{var o=Pr(),s=e(o);pr(s,{color:`red`,class:`animate-pulse`});var c=w(s,2);b(c,()=>yr,(e,t)=>{t(e,{children:(e,t)=>{r();var n=d();I(()=>i(n,a().auth.passkeysNotSupported)),f(e,n)},$$slots:{default:!0}})});var u=w(c,2);b(u,()=>gr,(t,n)=>{n(t,{children:(t,n)=>{var r=Fr(),o=e(r),s=p(o,!0);V(o);var c=w(o,2);l(c),I(()=>i(s,a().auth.passkeysWarning)),f(t,r)},$$slots:{default:!0}})}),f(t,o)},$$slots:{default:!0}})}),f(t,n)};o(c,e=>{fe?e(u):e(m,-1)}),f(t,s)},$$slots:{default:!0}})}),f(t,c)},$$slots:{default:!0}})})}var g=w(h,2),v=e=>{Or(e,{})};o(g,e=>{fe&&!n.account&&e(v)}),V(m),f(t,m),_(),c()}var Rr=t(`<!> <!> `,1);function zr(t,n){B(n,!0);let r=()=>z(Q,`$dict`,a),[a,o]=j();async function s(e){let t=e.currentTarget;t.disabled=!0,await ye(n.account.id),t.disabled=!1}X(t,{class:`w-full disabled:[&>.x-icon]:hidden [&>.x-spinner]:hidden disabled:[&>.x-spinner]:block`,onclick:s,children:(t,n)=>{var a=Rr(),o=e(a);Tr(o,{class:`size-5 x-icon`});var s=w(o,2);$e(s,{class:`x-spinner`});var c=w(s);I(()=>i(c,` ${r().auth.refresh.continue??``}`)),f(t,a)},$$slots:{default:!0}}),_(),o()}var Br=O(`<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path d="M19.84 10.2273C19.84 9.5182 19.7764 8.8364 19.6582 8.1818H10.24V12.05H15.6218C15.39 13.3 14.6855 14.3591 13.6264 15.0682V17.5773H16.8582C18.7491 15.8364 19.84 13.2727 19.84 10.2273Z" fill="#4285F4"></path><path d="M10.24 20C12.94 20 15.2036 19.1045 16.8581 17.5773L13.6263 15.0682C12.7309 15.6682 11.5854 16.0227 10.24 16.0227C7.6354 16.0227 5.4309 14.2636 4.6445 11.9H1.3036V14.4909C2.9491 17.7591 6.3309 20 10.24 20Z" fill="#34A853"></path><path d="M4.6445 11.9C4.4445 11.3 4.3309 10.6591 4.3309 10C4.3309 9.3409 4.4445 8.7 4.6445 8.1V5.5091H1.3036C0.6264 6.8591 0.24 8.3864 0.24 10C0.24 11.6136 0.6264 13.1409 1.3036 14.4909L4.6445 11.9Z" fill="#FBBC04"></path><path d="M10.24 3.9773C11.7081 3.9773 13.0263 4.4818 14.0627 5.4727L16.9309 2.6045C15.1991 0.9909 12.9354 0 10.24 0C6.3309 0 2.9491 2.2409 1.3036 5.5091L4.6445 8.1C5.4309 5.7364 7.6354 3.9773 10.24 3.9773Z" fill="#E94235"></path></svg>`);function Vr(e,t){var n=Br();I(()=>M(n,0,ee(t.class))),f(e,n)}var Hr=O(`<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" fill="currentColor" viewBox="0 0 814 1000"><path d="M788.1 340.9c-5.8 4.5-108.2 62.2-108.2 190.5 0 148.4 130.3 200.9 134.2 202.2-.6 3.2-20.7 71.9-68.7 141.9-42.8 61.6-87.5 123.1-155.5 123.1s-85.5-39.5-164-39.5c-76.5 0-103.7 40.8-165.9 40.8s-105.6-57-155.5-127C46.7 790.7 0 663 0 541.8c0-194.4 126.4-297.5 250.8-297.5 66.1 0 121.2 43.4 162.7 43.4 39.5 0 101.1-46 176.3-46 28.5 0 130.9 2.6 198.3 99.2zm-234-181.5c31.1-36.9 53.1-88.1 53.1-139.3 0-7.1-.6-14.3-1.9-20.1-50.6 1.9-110.8 33.7-147.1 75.8-28.5 32.4-55.1 83.6-55.1 135.5 0 7.8 1.3 15.6 1.9 18.1 3.2.6 8.4 1.3 13.6 1.3 45.4 0 102.5-30.4 135.5-71.3z"></path></svg>`);function Ur(e,t){B(t,!0);var n=Hr(),r=p(n);V(n),I(e=>{M(n,0,e),T(r,`fill`,t.fill)},[()=>ee(K(`size-5 -mt-[3px]`,t.class))]),f(e,n),_()}var Wr={google:Vr,apple:Ur},Gr=t(`<!> <!> <!>`,1);function Kr(t,n){B(n,!0);let r=F(()=>Wr[n.idp]);async function i(e){let t=e.currentTarget;t.disabled=!0,await Te(n.idp,n.account?.id),t.disabled=!1}{let a=F(()=>n.children?`default`:`icon`),o=F(()=>K(`disabled:[&_.x-icon]:hidden [&_.x-spinner]:hidden disabled:[&_.x-spinner]:block`,n.class));X(t,{variant:`outline`,get size(){return U(a)},onclick:i,get class(){return U(o)},children:(t,i)=>{var a=Gr(),o=e(a);b(o,()=>U(r),(e,t)=>{t(e,{class:`x-icon`})});var s=w(o,2);$e(s,{class:`x-spinner`});var c=w(s,2);H(c,()=>n.children??h),f(t,a)},$$slots:{default:!0}})}_()}var qr=t(`<div class="flex gap-2"><!> <!></div>`);function Jr(e,t){B(t,!0);var n=qr(),r=p(n),i=e=>{Kr(e,{idp:`google`,get account(){return t.account}})};o(r,e=>{De.google.client&&e(i)});var a=w(r,2),s=e=>{Kr(e,{idp:`apple`,get account(){return t.account}})};o(a,e=>{De.apple.client&&e(s)}),V(n),f(e,n),_()}function Yr(e,t){B(t,!0);let n=()=>z(Q,`$dict`,a),[a,o]=j(),s={google:`Google`,apple:`Apple`};Kr(e,{get idp(){return t.idp},class:`w-full`,children:(e,a)=>{r();var o=d();I(e=>i(o,e),[()=>n().auth.continueWith(s[t.idp])]),f(e,o)},$$slots:{default:!0}}),_(),o()}var Xr=t(`<!> <!>`,1);function Zr(t,n){var a=k(),o=e(a);b(o,()=>Bn,(t,a)=>{a(t,{class:`w-full`,children:(t,a)=>{var o=Xr(),s=e(o);b(s,()=>Pn,(t,a)=>{a(t,{children:(t,a)=>{var o=Xr(),s=e(o);b(s,()=>Ln,(e,t)=>{t(e,{children:(e,t)=>{r();var a=d();I(()=>i(a,n.title)),f(e,a)},$$slots:{default:!0}})});var c=w(s,2);b(c,()=>On,(e,t)=>{t(e,{children:(e,t)=>{r();var a=d();I(()=>i(a,n.description)),f(e,a)},$$slots:{default:!0}})}),f(t,o)},$$slots:{default:!0}})});var c=w(s,2);b(c,()=>Tn,(t,r)=>{r(t,{class:`flex flex-col`,children:(t,r)=>{var i=k(),a=e(i);H(a,()=>n.action),f(t,i)},$$slots:{default:!0}})}),f(t,o)},$$slots:{default:!0}})}),f(t,a)}var Qr=t(`<!> `,1),$r=t(`<div class="flex flex-col items-center gap-4 w-full"><!> <!></div>`);function ei(t,n){B(n,!0);let r=()=>z(Q,`$dict`,a),[a,s]=j();N(()=>{n.method===null&&ue()});var c=$r(),l=p(c);{let t=t=>{var r=k(),i=e(r),a=e=>{zr(e,{get account(){return n.account}})},s=e=>{lr(e,{})},c=e=>{Yr(e,{idp:`apple`})},l=e=>{Yr(e,{idp:`google`})};o(i,e=>{n.method===`passkey`?e(a):n.method===`password`?e(s,1):n.method===`apple`?e(c,2):n.method===`google`&&e(l,3)}),f(t,r)},i=F(()=>r().auth.refresh.description(n.account.name));Zr(l,{get title(){return r().auth.refresh.title},get description(){return U(i)},action:t,$$slots:{action:!0}})}var u=w(l,2);X(u,{variant:`outline`,get onclick(){return ue},children:(t,n)=>{var a=Qr(),o=e(a);dt(o,{});var s=w(o);I(()=>i(s,` ${r().auth.signout??``}`)),f(t,a)},$$slots:{default:!0}}),V(c),f(t,c),_(),s()}var ti=new Set([`$$slots`,`$$events`,`$$legacy`]);function ni(e,t){let n=v(t,ti),r=[[`circle`,{cx:`12`,cy:`12`,r:`4`}],[`path`,{d:`M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8`}]];W(e,P({name:`at-sign`},()=>n,{get iconNode(){return r}}))}var ri=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function ii(t,n){B(n,!0);let r=D(n,`ref`,15,null),i=v(n,ri);var a=k(),o=e(a);{let e=F(()=>K(`text-sm flex-1 outline-none`,n.class));b(o,()=>hn,(t,n)=>{n(t,P({"data-slot":`tabs-content`,get class(){return U(e)}},()=>i,{get ref(){return r()},set ref(e){r(e)}}))})}f(t,a),_()}var ai=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function oi(t,n){B(n,!0);let r=D(n,`ref`,15,null),i=v(n,ai);var a=k(),o=e(a);{let e=F(()=>K(`gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg:not([class*='size-'])]:size-4 relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center whitespace-nowrap text-foreground/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0`,`group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent`,`data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground`,`after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100`,n.class));b(o,()=>xn,(t,n)=>{n(t,P({"data-slot":`tabs-trigger`,get class(){return U(e)}},()=>i,{get ref(){return r()},set ref(e){r(e)}}))})}f(t,a),_()}var si=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`value`,`class`]);function ci(t,n){B(n,!0);let r=D(n,`ref`,15,null),i=D(n,`value`,15,``),a=v(n,si);var o=k(),s=e(o);{let e=F(()=>K(`gap-2 group/tabs flex data-[orientation=horizontal]:flex-col`,n.class));b(s,()=>fn,(t,n)=>{n(t,P({"data-slot":`tabs`,get class(){return U(e)}},()=>a,{get ref(){return r()},set ref(e){r(e)},get value(){return i()},set value(e){i(e)}}))})}f(t,o),_()}var li=it({base:`rounded-lg p-[3px] group-data-horizontal/tabs:h-8 data-[variant=line]:rounded-none group/tabs-list inline-flex w-fit items-center justify-center text-muted-foreground group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col`,variants:{variant:{default:`cn-tabs-list-variant-default bg-muted`,line:`cn-tabs-list-variant-line gap-1 bg-transparent`}},defaultVariants:{variant:`default`}}),ui=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`variant`,`class`]);function di(t,n){B(n,!0);let r=D(n,`ref`,15,null),i=D(n,`variant`,3,`default`),a=v(n,ui);var o=k(),s=e(o);{let e=F(()=>K(li({variant:i()}),n.class));b(s,()=>vn,(t,n)=>{n(t,P({"data-slot":`tabs-list`,get"data-variant"(){return i()},get class(){return U(e)}},()=>a,{get ref(){return r()},set ref(e){r(e)}}))})}f(t,o),_()}var fi=t(`<!> `,1),pi=t(`<!> <!>`,1),mi=t(`<div class="flex justify-between gap-2"><!> <!></div> <!> <!>`,1);function hi(t,n){B(n,!0);let r=()=>z(Q,`$dict`,a),[a,o]=j(),s=y(null);function c(e){requestAnimationFrame(()=>{U(s)?.querySelector(`[data-value="${e}"] input[autofocus]`)?.focus()})}let l=y(`passkey`);N(()=>{L(l,fe?`passkey`:`password`,!0)});var u=k(),d=e(u);{let t=F(()=>K(`w-full`,n.class));b(d,()=>ci,(a,o)=>{o(a,{get class(){return U(t)},onValueChange:c,get value(){return U(l)},set value(e){L(l,e,!0)},get ref(){return U(s)},set ref(e){L(s,e,!0)},children:(t,a)=>{var o=mi(),s=e(o),c=p(s);b(c,()=>di,(t,n)=>{n(t,{children:(t,n)=>{var a=pi(),o=e(a);b(o,()=>oi,(t,n)=>{n(t,{value:`passkey`,"data-marker":`passkey-tab`,children:(t,n)=>{var a=fi(),o=e(a);Tr(o,{color:`var(--muted-foreground)`});var s=w(o);I(()=>i(s,` ${r().auth.passkey??``}`)),f(t,a)},$$slots:{default:!0}})});var s=w(o,2);b(s,()=>oi,(t,n)=>{n(t,{value:`password`,id:`iam-email-tab`,children:(t,n)=>{var a=fi(),o=e(a);ni(o,{color:`var(--muted-foreground)`});var s=w(o);I(()=>i(s,` ${r().auth.email??``}`)),f(t,a)},$$slots:{default:!0}})}),f(t,a)},$$slots:{default:!0}})}),Jr(w(c,2),{get account(){return n.account}}),V(s);var l=w(s,2);b(l,()=>ii,(e,t)=>{t(e,{value:`passkey`,children:(e,t)=>{Lr(e,{get account(){return n.account},oncreate:e=>n.oncreate?.(e,`passkey`)})},$$slots:{default:!0}})});var u=w(l,2);b(u,()=>ii,(e,t)=>{t(e,{value:`password`,children:(e,t)=>{cr(e,{get account(){return n.account},oncreate:e=>n.oncreate?.(e,`password`)})},$$slots:{default:!0}})}),f(t,o)},$$slots:{default:!0}})})}f(t,u),_(),o()}var gi=t(`<div class="flex items-center justify-center h-screen"><!></div>`),_i=t(`<div class="flex w-full max-w-sm items-center justify-center pt-[14vh] px-4 mx-auto"><!></div>`);function vi(t,n){B(n,!0);let r=()=>z(le,`$iam`,l),i=()=>z(oe,`$method`,l),a=()=>z(ce,`$authenticated`,l),s=()=>z(ve,`$greeting`,l),c=()=>z(_e,`$processing`,l),[l,u]=j(),d=t=>{var a=k(),s=e(a),c=e=>{ei(e,{get account(){return r()},get method(){return i()}})},l=e=>{{let t=F(()=>K(`scale-0 transition-transform`,`scale-100`));hi(e,{get class(){return U(t)},get account(){return n.account},get oncreate(){return n.oncreate}})}};o(s,e=>{r()?e(c):e(l,-1)}),f(t,a)};var m=k(),h=e(m),g=t=>{var r=k(),i=e(r);H(i,()=>n.children),f(t,r)},v=e=>{var t=gi(),n=p(t);$e(n,{}),V(t),f(e,t)},y=t=>{var r=k(),i=e(r);H(i,()=>n.screen,()=>({authentication:d})),f(t,r)},b=e=>{var t=_i(),n=p(t);d(n),V(t),f(e,t)};o(h,e=>{a()?e(g):s()||c()?e(v,1):n.screen?e(y,2):e(b,-1)}),f(t,m),_(),u()}function yi(e,t){return!!(e.dev!==void 0&&e.dev===!1||e.beta!==void 0&&e.beta===bi()||e.debug!==void 0&&e.debug===xi()||e.role!==void 0&&t?.roles!==void 0&&Si(t.roles,e.role))}function bi(){return typeof window<`u`&&window.location.hostname.startsWith(`beta.`)}function xi(){return bi()}function Si(e,t){for(let n of e)if(n===t||t.startsWith(n+`:`))return!0;return!1}var Ci=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`denied`]),wi=t(`<div class="flex justify-center pt-[14vh]"><!></div>`);function Ti(t,n){B(n,!0);let r=()=>z(le,`$account`,a),i=()=>z(Q,`$dict`,a),[a,s]=j(),c=v(n,Ci),l=F(()=>yi(c,r())),u=F(()=>r()?.id??``);var d=k(),m=e(d),h=t=>{var r=k(),i=e(r);H(i,()=>n.children),f(t,r)},g=t=>{var r=k(),i=e(r);H(i,()=>n.denied),f(t,r)},y=e=>{var t=wi(),n=p(t);{let e=F(()=>U(u).slice(0,8));Je(n,{get text(){return U(u)},get label(){return U(e)},get"aria-label"(){return i().auth.copyId},variant:`outline`,class:`font-mono`})}V(t),f(e,t)};o(m,e=>{U(l)?e(h):n.denied===void 0?U(u)!==``&&e(y,2):e(g,1)}),f(t,d),_(),s()}var Ei=a(((e,t)=>{t.exports=function(){return typeof Promise==`function`&&Promise.prototype&&Promise.prototype.then}})),$=a((e=>{var t,n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(e){if(!e)throw Error(`"version" cannot be null or undefined`);if(e<1||e>40)throw Error(`"version" should be in range from 1 to 40`);return e*4+17},e.getSymbolTotalCodewords=function(e){return n[e]},e.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t},e.setToSJISFunction=function(e){if(typeof e!=`function`)throw Error(`"toSJISFunc" is not a valid function.`);t=e},e.isKanjiModeEnabled=function(){return t!==void 0},e.toSJIS=function(e){return t(e)}})),Di=a((e=>{e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(t){if(typeof t!=`string`)throw Error(`Param is not a string`);switch(t.toLowerCase()){case`l`:case`low`:return e.L;case`m`:case`medium`:return e.M;case`q`:case`quartile`:return e.Q;case`h`:case`high`:return e.H;default:throw Error(`Unknown EC Level: `+t)}}e.isValid=function(e){return e&&e.bit!==void 0&&e.bit>=0&&e.bit<4},e.from=function(n,r){if(e.isValid(n))return n;try{return t(n)}catch{return r}}})),Oi=a(((e,t)=>{function n(){this.buffer=[],this.length=0}n.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},t.exports=n})),ki=a(((e,t)=>{function n(e){if(!e||e<1)throw Error(`BitMatrix size must be defined and greater than 0`);this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}n.prototype.set=function(e,t,n,r){let i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)},n.prototype.get=function(e,t){return this.data[e*this.size+t]},n.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},n.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},t.exports=n})),Ai=a((e=>{var t=$().getSymbolSize;e.getRowColCoords=function(e){if(e===1)return[];let n=Math.floor(e/7)+2,r=t(e),i=r===145?26:Math.ceil((r-13)/(2*n-2))*2,a=[r-7];for(let e=1;e<n-1;e++)a[e]=a[e-1]-i;return a.push(6),a.reverse()},e.getPositions=function(t){let n=[],r=e.getRowColCoords(t),i=r.length;for(let e=0;e<i;e++)for(let t=0;t<i;t++)e===0&&t===0||e===0&&t===i-1||e===i-1&&t===0||n.push([r[e],r[t]]);return n}})),ji=a((e=>{var t=$().getSymbolSize,n=7;e.getPositions=function(e){let r=t(e);return[[0,0],[r-n,0],[0,r-n]]}})),Mi=a((e=>{e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(e){return e!=null&&e!==``&&!isNaN(e)&&e>=0&&e<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(e){let n=e.size,r=0,i=0,a=0,o=null,s=null;for(let c=0;c<n;c++){i=a=0,o=s=null;for(let l=0;l<n;l++){let n=e.get(c,l);n===o?i++:(i>=5&&(r+=t.N1+(i-5)),o=n,i=1),n=e.get(l,c),n===s?a++:(a>=5&&(r+=t.N1+(a-5)),s=n,a=1)}i>=5&&(r+=t.N1+(i-5)),a>=5&&(r+=t.N1+(a-5))}return r},e.getPenaltyN2=function(e){let n=e.size,r=0;for(let t=0;t<n-1;t++)for(let i=0;i<n-1;i++){let n=e.get(t,i)+e.get(t,i+1)+e.get(t+1,i)+e.get(t+1,i+1);(n===4||n===0)&&r++}return r*t.N2},e.getPenaltyN3=function(e){let n=e.size,r=0,i=0,a=0;for(let t=0;t<n;t++){i=a=0;for(let o=0;o<n;o++)i=i<<1&2047|e.get(t,o),o>=10&&(i===1488||i===93)&&r++,a=a<<1&2047|e.get(o,t),o>=10&&(a===1488||a===93)&&r++}return r*t.N3},e.getPenaltyN4=function(e){let n=0,r=e.data.length;for(let t=0;t<r;t++)n+=e.data[t];return Math.abs(Math.ceil(n*100/r/5)-10)*t.N4};function n(t,n,r){switch(t){case e.Patterns.PATTERN000:return(n+r)%2==0;case e.Patterns.PATTERN001:return n%2==0;case e.Patterns.PATTERN010:return r%3==0;case e.Patterns.PATTERN011:return(n+r)%3==0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case e.Patterns.PATTERN101:return n*r%2+n*r%3==0;case e.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case e.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw Error(`bad maskPattern:`+t)}}e.applyMask=function(e,t){let r=t.size;for(let i=0;i<r;i++)for(let a=0;a<r;a++)t.isReserved(a,i)||t.xor(a,i,n(e,a,i))},e.getBestMask=function(t,n){let r=Object.keys(e.Patterns).length,i=0,a=1/0;for(let o=0;o<r;o++){n(o),e.applyMask(o,t);let r=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(o,t),r<a&&(a=r,i=o)}return i}})),Ni=a((e=>{var t=Di(),n=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],r=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(e,r){switch(r){case t.L:return n[(e-1)*4+0];case t.M:return n[(e-1)*4+1];case t.Q:return n[(e-1)*4+2];case t.H:return n[(e-1)*4+3];default:return}},e.getTotalCodewordsCount=function(e,n){switch(n){case t.L:return r[(e-1)*4+0];case t.M:return r[(e-1)*4+1];case t.Q:return r[(e-1)*4+2];case t.H:return r[(e-1)*4+3];default:return}}})),Pi=a((e=>{var t=new Uint8Array(512),n=new Uint8Array(256);(function(){let e=1;for(let r=0;r<255;r++)t[r]=e,n[e]=r,e<<=1,e&256&&(e^=285);for(let e=255;e<512;e++)t[e]=t[e-255]})(),e.log=function(e){if(e<1)throw Error(`log(`+e+`)`);return n[e]},e.exp=function(e){return t[e]},e.mul=function(e,r){return e===0||r===0?0:t[n[e]+n[r]]}})),Fi=a((e=>{var t=Pi();e.mul=function(e,n){let r=new Uint8Array(e.length+n.length-1);for(let i=0;i<e.length;i++)for(let a=0;a<n.length;a++)r[i+a]^=t.mul(e[i],n[a]);return r},e.mod=function(e,n){let r=new Uint8Array(e);for(;r.length-n.length>=0;){let e=r[0];for(let i=0;i<n.length;i++)r[i]^=t.mul(n[i],e);let i=0;for(;i<r.length&&r[i]===0;)i++;r=r.slice(i)}return r},e.generateECPolynomial=function(n){let r=new Uint8Array([1]);for(let i=0;i<n;i++)r=e.mul(r,new Uint8Array([1,t.exp(i)]));return r}})),Ii=a(((e,t)=>{var n=Fi();function r(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}r.prototype.initialize=function(e){this.degree=e,this.genPoly=n.generateECPolynomial(this.degree)},r.prototype.encode=function(e){if(!this.genPoly)throw Error(`Encoder not initialized`);let t=new Uint8Array(e.length+this.degree);t.set(e);let r=n.mod(t,this.genPoly),i=this.degree-r.length;if(i>0){let e=new Uint8Array(this.degree);return e.set(r,i),e}return r},t.exports=r})),Li=a((e=>{e.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}})),Ri=a((e=>{var t=`[0-9]+`,n=`[A-Z $%*+\\-./:]+`,r=`(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+`;r=r.replace(/u/g,`\\u`);var i=`(?:(?![A-Z0-9 $%*+\\-./:]|`+r+`)(?:.|[\r
1
+ import{$ as e,A as t,C as n,Ct as r,D as i,Dt as a,E as o,I as s,J as c,L as l,M as u,N as d,O as f,Q as p,S as m,Tt as h,Z as g,_t as _,a as v,at as y,b,ct as x,d as S,dt as C,et as w,f as T,ft as E,h as ee,i as D,j as O,k,l as A,lt as j,m as M,n as N,o as P,ot as F,q as I,rt as L,s as R,tt as te,u as ne,ut as z,vt as B,w as re,wt as V,x as H,z as U}from"../chunks/PUjOYRcs.js";import{n as ie,s as ae}from"../chunks/BUu1bTY0.js";import"../chunks/BrKAv3Ku.js";import"../chunks/xihTtKlq.js";import{A as oe,C as se,D as ce,E as le,P as W,_ as ue,a as de,d as fe,f as pe,g as me,h as he,i as ge,j as _e,k as ve,l as ye,m as be,n as xe,p as Se,t as Ce,u as we,v as Te,w as Ee,y as De}from"../chunks/C_9U3amZ.js";import"../chunks/FJXxR1hy.js";import{t as Oe}from"../chunks/BT5Ivpyh.js";import"../chunks/DFc4ST-K.js";import{$ as ke,A as Ae,B as je,D as G,E as K,F as Me,G as q,H as Ne,I as Pe,J as Fe,K as Ie,L as Le,M as Re,O as ze,P as Be,Q as Ve,R as He,U as Ue,V as J,W as We,X as Ge,Y,Z as Ke,a as X,et as qe,i as Je,it as Ye,j as Xe,k as Ze,m as Qe,o as $e,p as et,q as tt,r as nt,tt as rt,x as it,z as at}from"../chunks/bVdyvKuK.js";import"../chunks/DINmginf.js";import{t as ot}from"../chunks/DIuPrs6y.js";function st(e){return async t=>{t.preventDefault();let n=t.target.querySelectorAll(`fieldset`),r=[];for(let e of n)e.disabled=!0,r.push(e);await e(t);for(let e of r)e.disabled=!1}}var ct=new Set([`$$slots`,`$$events`,`$$legacy`]);function lt(e,t){let n=v(t,ct),r=[[`path`,{d:`M3 5h.01`}],[`path`,{d:`M3 12h.01`}],[`path`,{d:`M3 19h.01`}],[`path`,{d:`M8 5h13`}],[`path`,{d:`M8 12h13`}],[`path`,{d:`M8 19h13`}]];W(e,P({name:`list`},()=>n,{get iconNode(){return r}}))}var ut=new Set([`$$slots`,`$$events`,`$$legacy`]);function dt(e,t){let n=v(t,ut),r=[[`path`,{d:`m16 17 5-5-5-5`}],[`path`,{d:`M21 12H9`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`}]];W(e,P({name:`log-out`},()=>n,{get iconNode(){return r}}))}var ft=new Set([`$$slots`,`$$events`,`$$legacy`]);function pt(e,t){let n=v(t,ft),r=[[`path`,{d:`m21 21-4.34-4.34`}],[`circle`,{cx:`11`,cy:`11`,r:`8`}]];W(e,P({name:`search`},()=>n,{get iconNode(){return r}}))}var mt=new Set([`$$slots`,`$$events`,`$$legacy`]);function ht(e,t){let n=v(t,mt),r=[[`path`,{d:`m10.586 5.414-5.172 5.172`}],[`path`,{d:`m18.586 13.414-5.172 5.172`}],[`path`,{d:`M6 12h12`}],[`circle`,{cx:`12`,cy:`20`,r:`2`}],[`circle`,{cx:`12`,cy:`4`,r:`2`}],[`circle`,{cx:`20`,cy:`12`,r:`2`}],[`circle`,{cx:`4`,cy:`12`,r:`2`}]];W(e,P({name:`waypoints`},()=>n,{get iconNode(){return r}}))}function Z(e){let t=y(te(e));return{[Ie]:!0,[Ve]:!0,get current(){return U(t)},set current(e){L(t,e,!0)}}}Z.from=Fe,Z.with=Y,Z.flatten=tt,Z.readonly=qe,Z.isBox=Ge,Z.isWritableBox=Ke;var gt=1,_t=9,vt=11;function yt(e){return rt(e)&&e.nodeType===gt&&typeof e.nodeName==`string`}function bt(e){return rt(e)&&e.nodeType===_t}function xt(e){return rt(e)&&e.constructor?.name===`VisualViewport`}function St(e){return rt(e)&&e.nodeType!==void 0}function Ct(e){return St(e)&&e.nodeType===vt&&`host`in e}function wt(e){return bt(e)?e:xt(e)?e.document:e?.ownerDocument??document}function Tt(e){return Ct(e)?Tt(e.host):bt(e)?e.defaultView??window:yt(e)?e.ownerDocument?.defaultView??window:window}function Et(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var Dt=class{element;#e=F(()=>this.element.current?this.element.current.getRootNode()??document:document);get root(){return U(this.#e)}set root(e){L(this.#e,e)}constructor(e){this.element=typeof e==`function`?Y(e):e}getDocument=()=>wt(this.root);getWindow=()=>this.getDocument().defaultView??window;getActiveElement=()=>Et(this.root);isActiveElement=e=>e===this.getActiveElement();getElementById(e){return this.root.getElementById(e)}querySelector=e=>this.root?this.root.querySelector(e):null;querySelectorAll=e=>this.root?this.root.querySelectorAll(e):[];setTimeout=(e,t)=>this.getWindow().setTimeout(e,t);clearTimeout=e=>this.getWindow().clearTimeout(e)};function Ot(e){return window.getComputedStyle(e).getPropertyValue(`direction`)}var kt=[Ze,Pe,Be],At=[Re,Me,`End`];[...kt,...At];function jt(e=`ltr`,t=`horizontal`){return{horizontal:e===`rtl`?Ae:Xe,vertical:Ze}[t]}function Mt(e=`ltr`,t=`horizontal`){return{horizontal:e===`rtl`?Xe:Ae,vertical:Re}[t]}function Nt(e=`ltr`,t=`horizontal`){return[`ltr`,`rtl`].includes(e)||(e=`ltr`),[`horizontal`,`vertical`].includes(t)||(t=`horizontal`),{nextKey:jt(e,t),prevKey:Mt(e,t)}}var Pt=typeof document<`u`;Ft();function Ft(){return Pt&&window?.navigator?.userAgent&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function It(e){return e instanceof HTMLElement}var Lt=class{#e;#t=Z(null);constructor(e){this.#e=e}getCandidateNodes(){return this.#e.rootNode.current?this.#e.candidateSelector?Array.from(this.#e.rootNode.current.querySelectorAll(this.#e.candidateSelector)):this.#e.candidateAttr?Array.from(this.#e.rootNode.current.querySelectorAll(`[${this.#e.candidateAttr}]:not([data-disabled])`)):[]:[]}focusFirstCandidate(){let e=this.getCandidateNodes();e.length&&e[0]?.focus()}handleKeydown(e,t,n=!1){let r=this.#e.rootNode.current;if(!r||!e)return;let i=this.getCandidateNodes();if(!i.length)return;let a=i.indexOf(e),{nextKey:o,prevKey:s}=Nt(Ot(r),this.#e.orientation.current),c=this.#e.loop.current,l={[o]:a+1,[s]:a-1,[Be]:0,End:i.length-1};if(n){let e=o===`ArrowDown`?Xe:Ze,t=s===`ArrowUp`?Ae:Re;l[e]=a+1,l[t]=a-1}let u=l[t.key];if(u===void 0)return;t.preventDefault(),u<0&&c?u=i.length-1:u===i.length&&c&&(u=0);let d=i[u];if(d)return d.focus(),this.#t.current=d.id,this.#e.onCandidateFocus?.(d),d}getTabIndex(e){let t=this.getCandidateNodes(),n=this.#t.current!==null;return e&&!n&&t[0]===e?(this.#t.current=e.id,0):e?.id===this.#t.current?0:-1}setCurrentTabStopId(e){this.#t.current=e}focusCurrentTabStop(){let e=this.#t.current;if(!e)return;let t=this.#e.rootNode.current?.querySelector(`#${e}`);!t||!It(t)||t.focus()}},Rt=18,zt=40,Bt=`${zt}px`,Vt=[`[data-lastpass-icon-root]`,`com-1password-button`,`[data-dashlanecreated]`,`[style$="2147483647 !important;"]`].join(`,`);function Ht({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r,domContext:i}){let a=y(!1),o=y(!1),s=y(!1);function l(){let e=n.current;return e!==`none`&&e===`increase-width`&&U(a)&&U(o)}function u(){let r=e.current,o=t.current;if(!r||!o||U(s)||n.current===`none`)return;let c=r,l=c.getBoundingClientRect().left+c.offsetWidth,u=c.getBoundingClientRect().top+c.offsetHeight/2,d=l-Rt,f=u;(i.querySelectorAll(Vt).length!==0||i.getDocument().elementFromPoint(d,f)!==r)&&(L(a,!0),L(s,!0))}return c(()=>{let t=e.current;if(!t||n.current===`none`)return;function r(){let e=Tt(t).innerWidth-t.getBoundingClientRect().right;L(o,e>=zt)}r();let i=setInterval(r,1e3);return()=>{clearInterval(i)}}),c(()=>{let e=r.current||i.getActiveElement()===t.current;if(n.current===`none`||!e)return;let a=setTimeout(u,0),o=setTimeout(u,2e3),c=setTimeout(u,5e3),l=setTimeout(()=>{L(s,!0)},6e3);return()=>{clearTimeout(a),clearTimeout(o),clearTimeout(c),clearTimeout(l)}}),{get hasPwmBadge(){return U(a)},get willPushPwmBadge(){return l()},PWM_BADGE_SPACE_WIDTH:Bt}}var Ut=`^\\d+$`,Wt=je({component:`pin-input`,parts:[`root`,`cell`]}),Gt=[`Backspace`,`Delete`,`ArrowLeft`,`ArrowRight`,`ArrowUp`,`ArrowDown`,`Home`,`End`,`Escape`,`Enter`,`Tab`,`Shift`,`Control`,`Meta`],Kt=class e{static create(t){return new e(t)}opts;attachment;inputAttachment;#e=y(!1);#t=ke(!1);#n=y(null);#r=y(null);#i=new Ne(()=>this.opts.value.current??``);#a=F(()=>typeof this.opts.pattern.current==`string`?new RegExp(this.opts.pattern.current):this.opts.pattern.current);#o=y(te({prev:[null,null,`none`],willSyntheticBlur:!1}));#s;#c;domContext;constructor(e){this.opts=e,this.attachment=J(this.opts.ref),this.inputAttachment=J(this.opts.inputRef),this.domContext=new Dt(e.ref),this.#c={value:this.opts.value,isIOS:typeof window<`u`&&window?.CSS?.supports(`-webkit-touch-callout`,`none`)},this.#s=Ht({containerRef:this.opts.ref,inputRef:this.opts.inputRef,isFocused:this.#t,pushPasswordManagerStrategy:this.opts.pushPasswordManagerStrategy,domContext:this.domContext}),N(()=>{let e=this.opts.inputRef.current,t=this.opts.ref.current;if(!e||!t)return;this.#c.value.current!==e.value&&(this.opts.value.current=e.value),U(this.#o).prev=[e.selectionStart,e.selectionEnd,e.selectionDirection??`none`];let n=l(this.domContext.getDocument(),`selectionchange`,this.#m,{capture:!0});this.#m(),this.domContext.getActiveElement()===e&&(this.#t.current=!0),this.domContext.getElementById(`pin-input-style`)||this.#p();let r=()=>{t&&t.style.setProperty(`--bits-pin-input-root-height`,`${e.clientHeight}px`)};r();let i=new ResizeObserver(r);return i.observe(e),()=>{n(),i.disconnect()}}),Ue([()=>this.opts.value.current,()=>this.opts.inputRef.current],()=>{Jt(()=>{let e=this.opts.inputRef.current;if(!e)return;e.dispatchEvent(new Event(`input`));let t=e.selectionStart,n=e.selectionEnd,r=e.selectionDirection??`none`;t!==null&&n!==null&&(L(this.#n,t,!0),L(this.#r,n,!0),U(this.#o).prev=[t,n,r])},this.domContext)}),c(()=>{let e=this.opts.value.current,t=this.#i.current,n=this.opts.maxLength.current,r=this.opts.onComplete.current;t!==void 0&&e!==t&&t.length<n&&e.length===n&&r(e)})}onkeydown=e=>{let t=e.key;Gt.includes(t)||e.ctrlKey||e.metaKey||t&&U(this.#a)&&!U(this.#a).test(t)&&e.preventDefault()};#l=F(()=>({position:`relative`,cursor:this.opts.disabled.current?`default`:`text`,userSelect:`none`,WebkitUserSelect:`none`,pointerEvents:`none`}));#u=F(()=>({id:this.opts.id.current,[Wt.root]:``,style:U(this.#l),...this.attachment}));get rootProps(){return U(this.#u)}set rootProps(e){L(this.#u,e)}#d=F(()=>({style:{position:`absolute`,inset:0,pointerEvents:`none`}}));get inputWrapperProps(){return U(this.#d)}set inputWrapperProps(e){L(this.#d,e)}#f=F(()=>({position:`absolute`,inset:0,width:this.#s.willPushPwmBadge?`calc(100% + ${this.#s.PWM_BADGE_SPACE_WIDTH})`:`100%`,clipPath:this.#s.willPushPwmBadge?`inset(0 ${this.#s.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:`100%`,display:`flex`,textAlign:this.opts.textAlign.current,opacity:`1`,color:`transparent`,pointerEvents:`all`,background:`transparent`,caretColor:`transparent`,border:`0 solid transparent`,outline:`0 solid transparent`,boxShadow:`none`,lineHeight:`1`,letterSpacing:`-.5em`,fontSize:`var(--bits-pin-input-root-height)`,fontFamily:`monospace`,fontVariantNumeric:`tabular-nums`}));#p(){let e=this.domContext.getDocument(),t=e.createElement(`style`);if(t.id=`pin-input-style`,e.head.appendChild(t),t.sheet){let e=`background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;`;Yt(t.sheet,`[data-pin-input-input]::selection { background: transparent !important; color: transparent !important; }`),Yt(t.sheet,`[data-pin-input-input]:autofill { ${e} }`),Yt(t.sheet,`[data-pin-input-input]:-webkit-autofill { ${e} }`),Yt(t.sheet,`@supports (-webkit-touch-callout: none) { [data-pin-input-input] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }`),Yt(t.sheet,`[data-pin-input-input] + * { pointer-events: all !important; }`)}}#m=()=>{let e=this.opts.inputRef.current,t=this.opts.ref.current;if(!e||!t)return;if(this.domContext.getActiveElement()!==e){L(this.#n,null),L(this.#r,null);return}let n=e.selectionStart,r=e.selectionEnd,i=e.selectionDirection??`none`,a=e.maxLength,o=e.value,s=U(this.#o).prev,c=-1,l=-1,u;if(o.length!==0&&n!==null&&r!==null){let e=n===r,t=n===o.length&&o.length<a;if(e&&!t){let e=n;if(e===0)c=0,l=1,u=`forward`;else if(e===a)c=e-1,l=e,u=`backward`;else if(a>1&&o.length>1){let t=0;if(s[0]!==null&&s[1]!==null){u=e<s[1]?`backward`:`forward`;let n=s[0]===s[1]&&s[0]<a;u===`backward`&&!n&&(t=-1)}c=t+e,l=t+e+1}}c!==-1&&l!==-1&&c!==l&&this.opts.inputRef.current?.setSelectionRange(c,l,u)}let d=c===-1?n:c,f=l===-1?r:l,p=u??i;L(this.#n,d,!0),L(this.#r,f,!0),U(this.#o).prev=[d,f,p]};oninput=e=>{let t=e.currentTarget.value.slice(0,this.opts.maxLength.current);if(t.length>0&&U(this.#a)&&!U(this.#a).test(t)){e.preventDefault();return}typeof this.#i.current==`string`&&t.length<this.#i.current.length&&this.domContext.getDocument().dispatchEvent(new Event(`selectionchange`)),this.opts.value.current=t};onfocus=e=>{let t=this.opts.inputRef.current;if(t){let e=Math.min(t.value.length,this.opts.maxLength.current-1),n=t.value.length;t.setSelectionRange(e,n),L(this.#n,e,!0),L(this.#r,n,!0)}this.#t.current=!0};onpaste=e=>{let t=this.opts.inputRef.current;if(!t)return;let n=e=>{let n=t.selectionStart===null?void 0:t.selectionStart,r=t.selectionEnd===null?void 0:t.selectionEnd,i=n!==r,a=this.opts.value.current;return(i?a.slice(0,n)+e+a.slice(r):a.slice(0,n)+e+a.slice(n)).slice(0,this.opts.maxLength.current)},r=e=>e.length>0&&U(this.#a)&&!U(this.#a).test(e);if(!this.opts.pasteTransformer?.current&&(!this.#c.isIOS||!e.clipboardData||!t)){r(n(e.clipboardData?.getData(`text/plain`)))&&e.preventDefault();return}let i=e.clipboardData?.getData(`text/plain`)??``,a=this.opts.pasteTransformer?.current?this.opts.pasteTransformer.current(i):i;e.preventDefault();let o=n(a);if(r(o))return;t.value=o,this.opts.value.current=o;let s=Math.min(o.length,this.opts.maxLength.current-1),c=o.length;t.setSelectionRange(s,c),L(this.#n,s,!0),L(this.#r,c,!0)};onmouseover=e=>{L(this.#e,!0)};onmouseleave=e=>{L(this.#e,!1)};onblur=e=>{if(U(this.#o).willSyntheticBlur){U(this.#o).willSyntheticBlur=!1;return}this.#t.current=!1};#h=F(()=>({id:this.opts.inputId.current,style:U(this.#f),autocomplete:this.opts.autocomplete.current||`one-time-code`,"data-pin-input-input":``,"data-pin-input-input-mss":U(this.#n),"data-pin-input-input-mse":U(this.#r),inputmode:this.opts.inputmode.current,pattern:U(this.#a)?.source,maxlength:this.opts.maxLength.current,value:this.opts.value.current,disabled:at(this.opts.disabled.current),onpaste:this.onpaste,oninput:this.oninput,onkeydown:this.onkeydown,onmouseover:this.onmouseover,onmouseleave:this.onmouseleave,onfocus:this.onfocus,onblur:this.onblur,...this.inputAttachment}));get inputProps(){return U(this.#h)}set inputProps(e){L(this.#h,e)}#g=F(()=>Array.from({length:this.opts.maxLength.current}).map((e,t)=>{let n=this.#t.current&&U(this.#n)!==null&&U(this.#r)!==null&&(U(this.#n)===U(this.#r)&&t===U(this.#n)||t>=U(this.#n)&&t<U(this.#r)),r=this.opts.value.current[t]===void 0?null:this.opts.value.current[t];return{char:r,isActive:n,hasFakeCaret:n&&r===null}}));#_=F(()=>({cells:U(this.#g),isFocused:this.#t.current,isHovering:U(this.#e)}));get snippetProps(){return U(this.#_)}set snippetProps(e){L(this.#_,e)}},qt=class e{static create(t){return new e(t)}opts;attachment;constructor(e){this.opts=e,this.attachment=J(this.opts.ref)}#e=F(()=>({id:this.opts.id.current,[Wt.cell]:``,"data-active":this.opts.cell.current.isActive?``:void 0,"data-inactive":this.opts.cell.current.isActive?void 0:``,...this.attachment}));get props(){return U(this.#e)}set props(e){L(this.#e,e)}};function Jt(e,t){return[t.setTimeout(e,0),t.setTimeout(e,10),t.setTimeout(e,50)]}function Yt(e,t){try{e.insertRule(t)}catch{console.error(`pin input could not insert CSS rule:`,t)}}var Xt=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`inputId`,`ref`,`inputRef`,`maxlength`,`textalign`,`pattern`,`inputmode`,`onComplete`,`pushPasswordManagerStrategy`,`class`,`children`,`autocomplete`,`disabled`,`value`,`onValueChange`,`pasteTransformer`]),Zt=t(`<div><!> <div><input/></div></div>`);function Qt(e,t){let n=u();B(t,!0);let r=D(t,`id`,19,()=>G(n)),i=D(t,`inputId`,19,()=>`${G(n)}-input`),a=D(t,`ref`,15,null),o=D(t,`inputRef`,15,null),s=D(t,`maxlength`,3,6),c=D(t,`textalign`,3,`left`),l=D(t,`inputmode`,3,`numeric`),d=D(t,`onComplete`,3,ze),m=D(t,`pushPasswordManagerStrategy`,3,`increase-width`),g=D(t,`class`,3,``),y=D(t,`autocomplete`,3,`one-time-code`),b=D(t,`disabled`,3,!1),x=D(t,`value`,15,``),C=D(t,`onValueChange`,3,ze),T=v(t,Xt),E=Kt.create({id:Y(()=>r()),ref:Y(()=>a(),e=>a(e)),inputRef:Y(()=>o(),e=>o(e)),inputId:Y(()=>i()),autocomplete:Y(()=>y()),maxLength:Y(()=>s()),textAlign:Y(()=>c()),disabled:Y(()=>b()),inputmode:Y(()=>l()),pattern:Y(()=>t.pattern),onComplete:Y(()=>d()),value:Y(()=>x(),e=>{x(e),C()(e)}),pushPasswordManagerStrategy:Y(()=>m()),pasteTransformer:Y(()=>t.pasteTransformer)}),ee=F(()=>q(T,E.inputProps)),O=F(()=>q(E.rootProps,{class:g()})),k=F(()=>q(E.inputWrapperProps,{}));var A=Zt();S(A,()=>({...U(O)}));var j=p(A);H(j,()=>t.children??h,()=>E.snippetProps);var M=w(j,2);S(M,()=>({...U(k)}));var N=p(M);S(N,()=>({...U(ee)}),void 0,void 0,void 0,void 0,!0),V(M),V(A),f(e,A),_()}var $t=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`cell`,`child`,`children`]),en=t(`<div><!></div>`);function tn(t,n){let r=u();B(n,!0);let i=D(n,`id`,19,()=>G(r)),a=D(n,`ref`,15,null),s=v(n,$t),c=qt.create({id:Y(()=>i()),ref:Y(()=>a(),e=>a(e)),cell:Y(()=>n.cell)}),l=F(()=>q(s,c.props));var d=k(),m=e(d),g=t=>{var r=k(),i=e(r);H(i,()=>n.child,()=>({props:U(l)})),f(t,r)},y=e=>{var t=en();S(t,()=>({...U(l)}));var r=p(t);H(r,()=>n.children??h),V(t),f(e,t)};o(m,e=>{n.child?e(g):e(y,-1)}),f(t,d),_()}var nn=je({component:`tabs`,parts:[`root`,`list`,`trigger`,`content`]}),rn=new We(`Tabs.Root`),an=class e{static create(t){return rn.set(new e(t))}opts;attachment;rovingFocusGroup;#e=y(te([]));get triggerIds(){return U(this.#e)}set triggerIds(e){L(this.#e,e,!0)}valueToTriggerId=new Ye;valueToContentId=new Ye;constructor(e){this.opts=e,this.attachment=J(e.ref),this.rovingFocusGroup=new Lt({candidateAttr:nn.trigger,rootNode:this.opts.ref,loop:this.opts.loop,orientation:this.opts.orientation})}registerTrigger(e,t){return this.triggerIds.push(e),this.valueToTriggerId.set(t,e),()=>{this.triggerIds=this.triggerIds.filter(t=>t!==e),this.valueToTriggerId.delete(t)}}registerContent(e,t){return this.valueToContentId.set(t,e),()=>{this.valueToContentId.delete(t)}}setValue(e){this.opts.value.current=e}#t=F(()=>({id:this.opts.id.current,"data-orientation":this.opts.orientation.current,[nn.root]:``,...this.attachment}));get props(){return U(this.#t)}set props(e){L(this.#t,e)}},on=class e{static create(t){return new e(t,rn.get())}opts;root;attachment;#e=F(()=>this.root.opts.disabled.current);constructor(e,t){this.opts=e,this.root=t,this.attachment=J(e.ref)}#t=F(()=>({id:this.opts.id.current,role:`tablist`,"aria-orientation":this.root.opts.orientation.current,"data-orientation":this.root.opts.orientation.current,[nn.list]:``,"data-disabled":Le(U(this.#e)),...this.attachment}));get props(){return U(this.#t)}set props(e){L(this.#t,e)}},sn=class e{static create(t){return new e(t,rn.get())}opts;root;attachment;#e=y(0);#t=F(()=>this.root.opts.value.current===this.opts.value.current);#n=F(()=>this.opts.disabled.current||this.root.opts.disabled.current);#r=F(()=>this.root.valueToContentId.get(this.opts.value.current));constructor(e,t){this.opts=e,this.root=t,this.attachment=J(e.ref),Ue([()=>this.opts.id.current,()=>this.opts.value.current],([e,t])=>this.root.registerTrigger(e,t)),c(()=>{this.root.triggerIds.length,U(this.#t)||!this.root.opts.value.current?L(this.#e,0):L(this.#e,-1)}),this.onfocus=this.onfocus.bind(this),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}#i(){this.root.opts.value.current!==this.opts.value.current&&this.root.setValue(this.opts.value.current)}onfocus(e){this.root.opts.activationMode.current!==`automatic`||U(this.#n)||this.#i()}onclick(e){U(this.#n)||this.#i()}onkeydown(e){if(!U(this.#n)){if(e.key===` `||e.key===`Enter`){e.preventDefault(),this.#i();return}this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current,e)}}#a=F(()=>({id:this.opts.id.current,role:`tab`,"data-state":ln(U(this.#t)),"data-value":this.opts.value.current,"data-orientation":this.root.opts.orientation.current,"data-disabled":Le(U(this.#n)),"aria-selected":He(U(this.#t)),"aria-controls":U(this.#r),[nn.trigger]:``,disabled:at(U(this.#n)),tabindex:U(this.#e),onclick:this.onclick,onfocus:this.onfocus,onkeydown:this.onkeydown,...this.attachment}));get props(){return U(this.#a)}set props(e){L(this.#a,e)}},cn=class e{static create(t){return new e(t,rn.get())}opts;root;attachment;#e=F(()=>this.root.opts.value.current===this.opts.value.current);#t=F(()=>this.root.valueToTriggerId.get(this.opts.value.current));constructor(e,t){this.opts=e,this.root=t,this.attachment=J(e.ref),Ue([()=>this.opts.id.current,()=>this.opts.value.current],([e,t])=>this.root.registerContent(e,t))}#n=F(()=>({id:this.opts.id.current,role:`tabpanel`,hidden:at(!U(this.#e)),tabindex:0,"data-value":this.opts.value.current,"data-state":ln(U(this.#e)),"aria-labelledby":U(this.#t),"data-orientation":this.root.opts.orientation.current,[nn.content]:``,...this.attachment}));get props(){return U(this.#n)}set props(e){L(this.#n,e)}};function ln(e){return e?`active`:`inactive`}var un=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`value`,`onValueChange`,`orientation`,`loop`,`activationMode`,`disabled`,`children`,`child`]),dn=t(`<div><!></div>`);function fn(t,n){let r=u();B(n,!0);let i=D(n,`id`,19,()=>G(r)),a=D(n,`ref`,15,null),s=D(n,`value`,15,``),c=D(n,`onValueChange`,3,ze),l=D(n,`orientation`,3,`horizontal`),d=D(n,`loop`,3,!0),m=D(n,`activationMode`,3,`automatic`),g=D(n,`disabled`,3,!1),y=v(n,un),b=an.create({id:Y(()=>i()),value:Y(()=>s(),e=>{s(e),c()(e)}),orientation:Y(()=>l()),loop:Y(()=>d()),activationMode:Y(()=>m()),disabled:Y(()=>g()),ref:Y(()=>a(),e=>a(e))}),x=F(()=>q(y,b.props));var C=k(),w=e(C),T=t=>{var r=k(),i=e(r);H(i,()=>n.child,()=>({props:U(x)})),f(t,r)},E=e=>{var t=dn();S(t,()=>({...U(x)}));var r=p(t);H(r,()=>n.children??h),V(t),f(e,t)};o(w,e=>{n.child?e(T):e(E,-1)}),f(t,C),_()}var pn=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`id`,`ref`,`value`]),mn=t(`<div><!></div>`);function hn(t,n){let r=u();B(n,!0);let i=D(n,`id`,19,()=>G(r)),a=D(n,`ref`,15,null),s=v(n,pn),c=cn.create({value:Y(()=>n.value),id:Y(()=>i()),ref:Y(()=>a(),e=>a(e))}),l=F(()=>q(s,c.props));var d=k(),m=e(d),g=t=>{var r=k(),i=e(r);H(i,()=>n.child,()=>({props:U(l)})),f(t,r)},y=e=>{var t=mn();S(t,()=>({...U(l)}));var r=p(t);H(r,()=>n.children??h),V(t),f(e,t)};o(m,e=>{n.child?e(g):e(y,-1)}),f(t,d),_()}var gn=new Set([`$$slots`,`$$events`,`$$legacy`,`child`,`children`,`id`,`ref`]),_n=t(`<div><!></div>`);function vn(t,n){let r=u();B(n,!0);let i=D(n,`id`,19,()=>G(r)),a=D(n,`ref`,15,null),s=v(n,gn),c=on.create({id:Y(()=>i()),ref:Y(()=>a(),e=>a(e))}),l=F(()=>q(s,c.props));var d=k(),m=e(d),g=t=>{var r=k(),i=e(r);H(i,()=>n.child,()=>({props:U(l)})),f(t,r)},y=e=>{var t=_n();S(t,()=>({...U(l)}));var r=p(t);H(r,()=>n.children??h),V(t),f(e,t)};o(m,e=>{n.child?e(g):e(y,-1)}),f(t,d),_()}var yn=new Set([`$$slots`,`$$events`,`$$legacy`,`child`,`children`,`disabled`,`id`,`type`,`value`,`ref`]),bn=t(`<button><!></button>`);function xn(t,n){let r=u();B(n,!0);let i=D(n,`disabled`,3,!1),a=D(n,`id`,19,()=>G(r)),s=D(n,`type`,3,`button`),c=D(n,`ref`,15,null),l=v(n,yn),d=sn.create({id:Y(()=>a()),disabled:Y(()=>i()??!1),value:Y(()=>n.value),ref:Y(()=>c(),e=>c(e))}),m=F(()=>q(l,d.props,{type:s()}));var g=k(),y=e(g),b=t=>{var r=k(),i=e(r);H(i,()=>n.child,()=>({props:U(m)})),f(t,r)},x=e=>{var t=bn();S(t,()=>({...U(m)}));var r=p(t);H(r,()=>n.children??h),V(t),f(e,t)};o(y,e=>{n.child?e(b):e(x,-1)}),f(t,g),_()}var Sn={"en-US":{auth:{signupTitle:`One-tap sign-up`,passwordTitle:`Hop in with password`,passwordDescription:`Create an account or sign in`,passkey:`Passkeys`,email:`Email`,alreadyHaveAccount:`Already have an account?`,betterSecurity:`Better security`,passkeysNotSupported:`Passkeys not supported`,passkeysWarning:`Your browser does not respect your privacy and security.`,learnMore:`Learn more`,passwordBlank:`Leave password blank <nobr>to receive</nobr> <nobr>a one-time</nobr> passcode.`,otpInstructions:`Enter the code sent to your email. It expires in 5 minutes.`,continueWith:e=>`Continue with ${e}`,passkeysDescription:`Passkeys are safer than passwords, easier to use, and can’t be stolen.`,yourName:`Your name`,password:`Password`,refresh:{description:e=>`${e?e+`, for`:`For`} security reasons, your credentials have expired. Please log in again to continue.`,title:`Welcome back`,continue:`Continue`},signout:`Sign out`,login:`Log In`,signin:`Sign In`,copyId:`Copy account ID`},credentials:{connect:`Connect`,email:{title:`Email`,description:`Connect your email address`},google:{title:`Google`,description:`Connect your Google account`},apple:{title:`Apple`,description:`Connect your Apple ID`},passkeys:{title:`Passkeys`,tagline:`Sign in faster with a passkey`,create:`Create`,manage:`Manage`,collapse:`Collapse`,add:`Enter passkey name`,delete:`Hold to delete`,unknown:`Unknown`,count:e=>{let t={one:`{n} passkey`,other:`{n} passkeys`},n=`en-US`,r=new Intl.PluralRules(n).select(e),i=t;return(i[r]??i.other).replace(/{n}/g,new Intl.NumberFormat(n).format(e))},meta:(e,t)=>`Added ${e} · Used ${t}`,duplicate:`This device already has a passkey for your account`,failed:`Could not create the passkey. Please try again.`},transfer:{action:`Sign in on another device`,title:`Scan to sign in`,description:`Use your other device to scan this code and sign in.`,done:`Done`}}}},Q=E(xe,e=>Sn[e]),Cn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),wn=t(`<div><!></div>`);function Tn(e,t){B(t,!0);let n=D(t,`ref`,15,null),r=v(t,Cn);var i=wn();S(i,e=>({"data-slot":`card-content`,class:e,...r}),[()=>K(`px-(--card-spacing)`,t.class)]);var a=p(i);H(a,()=>t.children??h),V(i),R(i,e=>n(e),()=>n()),f(e,i),_()}var En=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Dn=t(`<p><!></p>`);function On(e,t){B(t,!0);let n=D(t,`ref`,15,null),r=v(t,En);var i=Dn();S(i,e=>({"data-slot":`card-description`,class:e,...r}),[()=>K(`text-sm text-muted-foreground`,t.class)]);var a=p(i);H(a,()=>t.children??h),V(i),R(i,e=>n(e),()=>n()),f(e,i),_()}var kn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),An=t(`<div><!></div>`);function jn(e,t){B(t,!0);let n=D(t,`ref`,15,null),r=v(t,kn);var i=An();S(i,e=>({"data-slot":`card-footer`,class:e,...r}),[()=>K(`rounded-b-xl border-t bg-muted/50 p-(--card-spacing) flex items-center`,t.class)]);var a=p(i);H(a,()=>t.children??h),V(i),R(i,e=>n(e),()=>n()),f(e,i),_()}var Mn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Nn=t(`<div><!></div>`);function Pn(e,t){B(t,!0);let n=D(t,`ref`,15,null),r=v(t,Mn);var i=Nn();S(i,e=>({"data-slot":`card-header`,class:e,...r}),[()=>K(`gap-1 rounded-t-xl px-(--card-spacing) [.border-b]:pb-(--card-spacing) group/card-header @container/card-header grid auto-rows-min items-start has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]`,t.class)]);var a=p(i);H(a,()=>t.children??h),V(i),R(i,e=>n(e),()=>n()),f(e,i),_()}var Fn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),In=t(`<div><!></div>`);function Ln(e,t){B(t,!0);let n=D(t,`ref`,15,null),r=v(t,Fn);var i=In();S(i,e=>({"data-slot":`card-title`,class:e,...r}),[()=>K(`text-base leading-snug font-medium group-data-[size=sm]/card:text-sm`,t.class)]);var a=p(i);H(a,()=>t.children??h),V(i),R(i,e=>n(e),()=>n()),f(e,i),_()}var Rn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`,`size`]),zn=t(`<div><!></div>`);function Bn(e,t){B(t,!0);let n=D(t,`ref`,15,null),r=D(t,`size`,3,`default`),i=v(t,Rn);var a=zn();S(a,e=>({"data-slot":`card`,"data-size":r(),class:e,...i}),[()=>K(`gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl group/card flex flex-col`,t.class)]);var o=p(a);H(o,()=>t.children??h),V(a),R(a,e=>n(e),()=>n()),f(e,a),_()}var Vn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`value`,`type`,`files`,`class`,`data-slot`]),Hn=t(`<input/>`);function Un(t,n){B(n,!0);let r=D(n,`ref`,15,null),i=D(n,`value`,15),a=D(n,`files`,15),s=D(n,`data-slot`,3,`input`),c=v(n,Vn);var l=k(),u=e(l),d=e=>{var t=Hn();S(t,e=>({"data-slot":s(),class:e,type:`file`,...c}),[()=>K(`h-8 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,n.class)],void 0,void 0,void 0,!0),R(t,e=>r(e),()=>r()),A(t,a),ne(t,i),f(e,t)},p=e=>{var t=Hn();S(t,e=>({"data-slot":s(),class:e,type:n.type,...c}),[()=>K(`h-8 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,n.class)],void 0,void 0,void 0,!0),R(t,e=>r(e),()=>r()),ne(t,i),f(e,t)};o(u,e=>{n.type===`file`?e(d):e(p,-1)}),f(t,l),_()}var Wn=t(`<div><!></div>`);function Gn(e,t){B(t,!0);let n=y(!1);async function r(){L(n,!0),await new Promise(e=>setTimeout(e,500)),L(n,!1)}var i={shake:r},a=Wn(),o=p(a);return H(o,()=>t.children),V(a),I(()=>M(a,1,ee([t.class,U(n)&&`shake`]),`svelte-alh7mr`)),f(e,a),_(i)}var Kn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),qn=t(`<div><!></div>`);function Jn(e,t){B(t,!0);let n=D(t,`ref`,15,null),r=v(t,Kn);var i=qn();S(i,e=>({"data-slot":`input-otp-group`,class:e,...r}),[()=>K(`rounded-lg has-aria-invalid:border-destructive has-aria-invalid:ring-3 has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40 flex items-center`,t.class)]);var a=p(i);H(a,()=>t.children??h),V(i),R(i,e=>n(e),()=>n()),f(e,i),_()}var Yn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`cell`,`class`]),Xn=t(`<div class="cn-input-otp-caret pointer-events-none absolute inset-0 flex items-center justify-center"><div class="h-4 w-px animate-caret-blink bg-foreground duration-1000 h-4 w-px bg-foreground"></div></div>`),Zn=t(` <!>`,1);function Qn(t,n){B(n,!0);let a=D(n,`ref`,15,null),s=v(n,Yn);var c=k(),l=e(c);{let t=F(()=>K(`size-8 border-y border-r border-input text-sm transition-all outline-none first:rounded-l-lg first:border-l last:rounded-r-lg aria-invalid:border-destructive data-[active=true]:border-ring data-[active=true]:ring-3 data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:border-destructive data-[active=true]:aria-invalid:ring-destructive/20 dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-destructive/40 relative flex items-center justify-center data-[active=true]:z-10`,n.class));b(l,()=>tn,(c,l)=>{l(c,P({get cell(){return n.cell},"data-slot":`input-otp-slot`,get class(){return U(t)}},()=>s,{get ref(){return a()},set ref(e){a(e)},children:(t,a)=>{r();var s=Zn(),c=e(s),l=w(c),u=e=>{var t=Xn();f(e,t)};o(l,e=>{n.cell.hasFakeCaret&&e(u)}),I(()=>i(c,`${n.cell.char??``} `)),f(t,s)},$$slots:{default:!0}}))})}f(t,c),_()}var $n=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`value`]);function er(t,n){B(n,!0);let r=D(n,`ref`,15,null),i=D(n,`value`,15,``),a=v(n,$n);var o=k(),s=e(o);{let e=F(()=>K(`cn-input-otp-input gap-2 flex items-center disabled:cursor-not-allowed has-disabled:opacity-50`,n.class));b(s,()=>Qt,(t,n)=>{n(t,P({"data-slot":`input-otp`,spellcheck:!1,get class(){return U(e)}},()=>a,{get ref(){return r()},set ref(e){r(e)},get value(){return i()},set value(e){i(e)}}))})}f(t,o),_()}var tr=t(`<div class="w-full flex items-center"><!></div>`);function nr(t,r){B(r,!0);let i=()=>z(Q,`$dict`,a),[a,s]=j(),c=D(r,`ref`,15,null),l=D(r,`mode`,11,`password`),u=D(r,`password`,15,``),d=D(r,`otp`,15,``);var m=tr(),h=p(m),g=e=>{Un(e,{id:`iam-password-input`,name:`password`,type:`password`,minlength:6,autocomplete:`current-password`,get placeholder(){return i().auth.password},class:`placeholder:text-sm`,get value(){return u()},set value(e){u(e)}})},v=t=>{var r=k(),i=e(r);{let t=(t,r)=>{let i=()=>(r?.()).cells;var a=k(),o=e(a);b(o,()=>Jn,(t,r)=>{r(t,{children:(t,r)=>{var a=k(),o=e(a);n(o,17,()=>i().slice(0,6),re,(t,n)=>{var r=k(),i=e(r);b(i,()=>Qn,(e,t)=>{t(e,{get cell(){return U(n)},class:`size-[40px] bg-background`})}),f(t,r)}),f(t,a)},$$slots:{default:!0}})}),f(t,a)};b(i,()=>er,(e,n)=>{n(e,{maxlength:6,get pattern(){return Ut},required:!0,get value(){return d()},set value(e){d(e)},children:t,$$slots:{default:!0}})})}f(t,r)};o(h,e=>{l()===`password`?e(g):e(v,-1)}),V(m),R(m,e=>c(e),()=>c()),f(t,m),_(),s()}var rr=t(`<!> <span class="sr-only"> </span>`,1),ir=t(`<form><fieldset class="space-y-2"><!> <div class="space-y-2"><div class="flex items-center gap-2"><!> <!></div> <div class="text-sm text-muted-foreground px-1"><!></div></div></fieldset></form>`);function ar(t,n){B(n,!0);let r=()=>z(Q,`$dict`,a),[a,c]=j(),l=y(!1),u=y(``),h=y(``),g=y(``),v=y(null),b=y(`password`),x=y(void 0);async function S(){U(h).length===0?U(b)===`password`?await E():await ee():await C()}async function C(){L(l,!0);let e=n.account===void 0?await T():await he(n.account.id,{username:U(u),password:U(h)});L(l,!1),e instanceof Error&&await D()}async function T(){let e=await me(U(u),U(h));return e instanceof Error||Ee(e)?.status===201&&n.oncreate?.(e),e}async function E(){L(l,!0);let e=n.account===void 0?await Se(U(u)):await pe(n.account.id,U(u));L(l,!1),!(e instanceof Error)&&(L(b,`otp`),requestAnimationFrame(()=>O()))}async function ee(){if(U(u).length===0){console.error(`username is required`);return}if(U(g).length!==6){await D();return}L(l,!0);let e=await be(U(u),U(g));if(L(l,!1),e instanceof Error){L(g,``),await D();return}return Ee(e)?.status===201&&n.oncreate?.(e),e}async function D(){await U(x)?.shake(),O()}function O(){de&&U(v)?.querySelector(`input`)?.focus()}var A=ir(),M=F(()=>st(S)),N=p(A),P=p(N);{let e=F(()=>U(b)===`otp`||void 0);Un(P,{id:`iam-username-input`,name:`username`,type:`email`,autocomplete:`username`,required:!0,get disabled(){return U(e)},get autofocus(){return de},get placeholder(){return r().auth.email},get value(){return U(u)},set value(e){L(u,e,!0)}})}var te=w(P,2),ne=p(te),re=p(ne);R(Gn(re,{class:`w-full`,children:(e,t)=>{nr(e,{get mode(){return U(b)},get ref(){return U(v)},set ref(e){L(v,e,!0)},get password(){return U(h)},set password(e){L(h,e,!0)},get otp(){return U(g)},set otp(e){L(g,e,!0)}})},$$slots:{default:!0}}),e=>L(x,e,!0),()=>U(x));var H=w(re,2);X(H,{size:`icon-lg`,type:`submit`,children:(t,n)=>{var a=rr(),s=e(a),c=e=>{$e(e,{})},u=e=>{nt(e,{})};o(s,e=>{U(l)?e(c):e(u,-1)});var d=w(s,2),m=p(d,!0);V(d),I(()=>i(m,r().auth.login)),f(t,a)},$$slots:{default:!0}}),V(ne);var ie=w(ne,2),ae=p(ie),oe=t=>{var n=k(),i=e(n);m(i,()=>r().auth.passwordBlank),f(t,n)},se=e=>{var t=d();I(()=>i(t,r().auth.otpInstructions)),f(e,t)};o(ae,e=>{U(b)===`password`?e(oe):e(se,-1)}),V(ie),V(te),V(N),V(A),s(`submit`,A,function(...e){U(M)?.apply(this,e)}),f(t,A),_(),c()}var or=t(`<h2> </h2>`),sr=t(`<!> <!>`,1);function cr(t,n){B(n,!0);let a=()=>z(Q,`$dict`,o),[o,s]=j();var c=k(),l=e(c);{let t=F(()=>K(`pt-4 gap-4 bg-background/75`,n.class));b(l,()=>Bn,(o,s)=>{s(o,{get class(){return U(t)},children:(t,o)=>{var s=sr(),c=e(s);b(c,()=>Pn,(t,n)=>{n(t,{class:`gap-0`,children:(t,n)=>{var o=sr(),s=e(o);b(s,()=>Ln,(e,t)=>{t(e,{children:(e,t)=>{var n=or(),r=p(n,!0);V(n),I(()=>i(r,a().auth.passwordTitle)),f(e,n)},$$slots:{default:!0}})});var c=w(s,2);b(c,()=>On,(e,t)=>{t(e,{children:(e,t)=>{r();var n=d();I(()=>i(n,a().auth.passwordDescription)),f(e,n)},$$slots:{default:!0}})}),f(t,o)},$$slots:{default:!0}})});var l=w(c,2);b(l,()=>Tn,(e,t)=>{t(e,{children:(e,t)=>{ar(e,{get account(){return n.account},get oncreate(){return n.oncreate}})},$$slots:{default:!0}})}),f(t,s)},$$slots:{default:!0}})})}f(t,c),_(),s()}function lr(e){ar(e,{})}var ur=new Set([`$$slots`,`$$events`,`$$legacy`]);function dr(e,t){let n=v(t,ur),r=[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`}],[`path`,{d:`m9 12 2 2 4-4`}]];W(e,P({name:`shield-check`},()=>n,{get iconNode(){return r}}))}var fr=new Set([`$$slots`,`$$events`,`$$legacy`]);function pr(e,t){let n=v(t,fr),r=[[`path`,{d:`m2 2 20 20`}],[`path`,{d:`M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71`}],[`path`,{d:`M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264`}]];W(e,P({name:`shield-off`},()=>n,{get iconNode(){return r}}))}var mr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),hr=t(`<div><!></div>`);function gr(e,t){B(t,!0);let n=D(t,`ref`,15,null),r=v(t,mr);var i=hr();S(i,e=>({"data-slot":`alert-description`,class:e,...r}),[()=>K(`text-sm text-balance text-muted-foreground md:text-pretty [&_p:not(:last-child)]:mb-4 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground`,t.class)]);var a=p(i);H(a,()=>t.children??h),V(i),R(i,e=>n(e),()=>n()),f(e,i),_()}var _r=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),vr=t(`<div><!></div>`);function yr(e,t){B(t,!0);let n=D(t,`ref`,15,null),r=v(t,_r);var i=vr();S(i,e=>({"data-slot":`alert-title`,class:e,...r}),[()=>K(`font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground`,t.class)]);var a=p(i);H(a,()=>t.children??h),V(i),R(i,e=>n(e),()=>n()),f(e,i),_()}var br=it({base:`grid gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4 group/alert relative w-full`,variants:{variant:{default:`bg-card text-card-foreground`,destructive:`bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current`}},defaultVariants:{variant:`default`}}),xr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`variant`,`children`]),Sr=t(`<div><!></div>`);function Cr(e,t){B(t,!0);let n=D(t,`ref`,15,null),r=D(t,`variant`,3,`default`),i=v(t,xr);var a=Sr();S(a,e=>({"data-slot":`alert`,role:`alert`,class:e,...i}),[()=>K(br({variant:r()}),t.class)]);var o=p(a);H(o,()=>t.children??h),V(a),R(a,e=>n(e),()=>n()),f(e,a),_()}var wr=new Set([`$$slots`,`$$events`,`$$legacy`]);function Tr(e,t){let n=v(t,wr),r=[[`path`,{d:`M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4`}],[`path`,{d:`M14 13.12c0 2.38 0 6.38-1 8.88`}],[`path`,{d:`M17.29 21.02c.12-.6.43-2.3.5-3.02`}],[`path`,{d:`M2 12a10 10 0 0 1 18-6`}],[`path`,{d:`M2 16h.01`}],[`path`,{d:`M21.8 16c.2-2 .131-5.354 0-6`}],[`path`,{d:`M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2`}],[`path`,{d:`M8.65 22c.21-.66.45-1.32.57-2`}],[`path`,{d:`M9 6.8a6 6 0 0 1 9 5.2v2`}]];W(e,P({name:`fingerprint-pattern`},()=>n,{get iconNode(){return r}}))}var Er=t(`<!> `,1),Dr=t(`<div class="flex flex-col items-center justify-center gap-2"><p> </p> <!></div>`);function Or(t,n){B(n,!0);let r=()=>z(Q,`$dict`,a),[a,s]=j(),c=y(!1);async function l(){L(c,!0),await ye(),L(c,!1)}var u=Dr(),d=p(u),m=p(d,!0);V(d);var h=w(d,2);X(h,{id:`iam-passkey-login-button`,variant:`secondary`,onclick:l,children:(t,n)=>{var a=Er(),s=e(a),l=e=>{$e(e,{})},u=e=>{Tr(e,{})};o(s,e=>{U(c)?e(l):e(u,-1)});var d=w(s);I(()=>i(d,` ${r().auth.signin??``}`)),f(t,a)},$$slots:{default:!0}}),V(u),I(()=>i(m,r().auth.alreadyHaveAccount)),f(t,u),_(),s()}var kr=t(`<form><fieldset class="space-y-1"><div class="flex items-center gap-2"><!> <!></div></fieldset></form>`);function Ar(t,n){B(n,!0);let r=()=>z(Q,`$dict`,i),[i,a]=j(),c=F(()=>n.account?.name??``),l=y(!1);async function u(){let e=U(c).trim();if(e.length===0)return;L(l,!0);let t=await we(e,n.account?.id);L(l,!1),!(t instanceof Error)&&n.oncreate?.(t)}var d=kr(),m=F(()=>st(u)),h=p(d),g=p(h),v=p(g);Un(v,{id:`name`,type:`text`,get placeholder(){return r().auth.yourName},autocomplete:`given-name`,required:!0,get autofocus(){return de},get value(){return U(c)},set value(e){L(c,e)}});var b=w(v,2);X(b,{id:`iam-passkey-create-button`,size:`icon-lg`,type:`submit`,children:(t,n)=>{var r=k(),i=e(r),a=e=>{$e(e,{})},s=e=>{nt(e,{})};o(i,e=>{U(l)?e(a):e(s,-1)}),f(t,r)},$$slots:{default:!0}}),V(g),V(h),V(d),I(()=>h.disabled=n.disabled),s(`submit`,d,function(...e){U(m)?.apply(this,e)}),f(t,d),_(),a()}var jr=t(`<p> <a target="_blank" class="text-nowrap"> </a></p>`),Mr=t(`<h2> </h2>`),Nr=t(`<!> <!>`,1),Pr=t(`<!> <!> <!>`,1),Fr=t(`<p> </p> <!>`,1),Ir=t(`<div class="space-y-4"><!> <!></div>`);function Lr(t,n){B(n,!0);let a=()=>z(Q,`$dict`,s),[s,c]=j(),l=e=>{var t=jr(),n=p(t),r=w(n),o=p(r,!0);V(r),V(t),I(()=>{i(n,`${a().auth.passkeysDescription??``} `),T(r,`href`,u),i(o,a().auth.learnMore)}),f(e,t)},u=ge?`https://support.apple.com/en-us/102195`:`https://support.google.com/accounts/answer/13548313`;var m=Ir(),h=p(m);{let t=F(()=>K(`gap-4 bg-background/75`,fe&&`pt-4`,n.class));b(h,()=>Bn,(s,c)=>{c(s,{get class(){return U(t)},children:(t,s)=>{var c=Nr(),u=e(c),m=t=>{var r=Nr(),o=e(r);b(o,()=>Pn,(t,n)=>{n(t,{class:`gap-0`,children:(t,n)=>{var r=k(),o=e(r);b(o,()=>Ln,(e,t)=>{t(e,{children:(e,t)=>{var n=Mr(),r=p(n,!0);V(n),I(()=>i(r,a().auth.signupTitle)),f(e,n)},$$slots:{default:!0}})}),f(t,r)},$$slots:{default:!0}})});var s=w(o,2);b(s,()=>Tn,(e,t)=>{t(e,{children:(e,t)=>{Ar(e,{get account(){return n.account},get oncreate(){return n.oncreate}})},$$slots:{default:!0}})}),f(t,r)};o(u,e=>{fe&&e(m)});var h=w(u,2);b(h,()=>jn,(t,n)=>{n(t,{children:(t,n)=>{var s=k(),c=e(s),u=t=>{var n=k(),o=e(n);b(o,()=>Cr,(t,n)=>{n(t,{children:(t,n)=>{var o=Pr(),s=e(o);dr(s,{color:`green`});var c=w(s,2);b(c,()=>yr,(e,t)=>{t(e,{children:(e,t)=>{r();var n=d();I(()=>i(n,a().auth.betterSecurity)),f(e,n)},$$slots:{default:!0}})});var u=w(c,2);b(u,()=>gr,(e,t)=>{t(e,{children:(e,t)=>{l(e)},$$slots:{default:!0}})}),f(t,o)},$$slots:{default:!0}})}),f(t,n)},m=t=>{var n=k(),o=e(n);b(o,()=>Cr,(t,n)=>{n(t,{children:(t,n)=>{var o=Pr(),s=e(o);pr(s,{color:`red`,class:`animate-pulse`});var c=w(s,2);b(c,()=>yr,(e,t)=>{t(e,{children:(e,t)=>{r();var n=d();I(()=>i(n,a().auth.passkeysNotSupported)),f(e,n)},$$slots:{default:!0}})});var u=w(c,2);b(u,()=>gr,(t,n)=>{n(t,{children:(t,n)=>{var r=Fr(),o=e(r),s=p(o,!0);V(o);var c=w(o,2);l(c),I(()=>i(s,a().auth.passkeysWarning)),f(t,r)},$$slots:{default:!0}})}),f(t,o)},$$slots:{default:!0}})}),f(t,n)};o(c,e=>{fe?e(u):e(m,-1)}),f(t,s)},$$slots:{default:!0}})}),f(t,c)},$$slots:{default:!0}})})}var g=w(h,2),v=e=>{Or(e,{})};o(g,e=>{fe&&!n.account&&e(v)}),V(m),f(t,m),_(),c()}var Rr=t(`<!> <!> `,1);function zr(t,n){B(n,!0);let r=()=>z(Q,`$dict`,a),[a,o]=j();async function s(e){let t=e.currentTarget;t.disabled=!0,await ye(n.account.id),t.disabled=!1}X(t,{class:`w-full disabled:[&>.x-icon]:hidden [&>.x-spinner]:hidden disabled:[&>.x-spinner]:block`,onclick:s,children:(t,n)=>{var a=Rr(),o=e(a);Tr(o,{class:`size-5 x-icon`});var s=w(o,2);$e(s,{class:`x-spinner`});var c=w(s);I(()=>i(c,` ${r().auth.refresh.continue??``}`)),f(t,a)},$$slots:{default:!0}}),_(),o()}var Br=O(`<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path d="M19.84 10.2273C19.84 9.5182 19.7764 8.8364 19.6582 8.1818H10.24V12.05H15.6218C15.39 13.3 14.6855 14.3591 13.6264 15.0682V17.5773H16.8582C18.7491 15.8364 19.84 13.2727 19.84 10.2273Z" fill="#4285F4"></path><path d="M10.24 20C12.94 20 15.2036 19.1045 16.8581 17.5773L13.6263 15.0682C12.7309 15.6682 11.5854 16.0227 10.24 16.0227C7.6354 16.0227 5.4309 14.2636 4.6445 11.9H1.3036V14.4909C2.9491 17.7591 6.3309 20 10.24 20Z" fill="#34A853"></path><path d="M4.6445 11.9C4.4445 11.3 4.3309 10.6591 4.3309 10C4.3309 9.3409 4.4445 8.7 4.6445 8.1V5.5091H1.3036C0.6264 6.8591 0.24 8.3864 0.24 10C0.24 11.6136 0.6264 13.1409 1.3036 14.4909L4.6445 11.9Z" fill="#FBBC04"></path><path d="M10.24 3.9773C11.7081 3.9773 13.0263 4.4818 14.0627 5.4727L16.9309 2.6045C15.1991 0.9909 12.9354 0 10.24 0C6.3309 0 2.9491 2.2409 1.3036 5.5091L4.6445 8.1C5.4309 5.7364 7.6354 3.9773 10.24 3.9773Z" fill="#E94235"></path></svg>`);function Vr(e,t){var n=Br();I(()=>M(n,0,ee(t.class))),f(e,n)}var Hr=O(`<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" fill="currentColor" viewBox="0 0 814 1000"><path d="M788.1 340.9c-5.8 4.5-108.2 62.2-108.2 190.5 0 148.4 130.3 200.9 134.2 202.2-.6 3.2-20.7 71.9-68.7 141.9-42.8 61.6-87.5 123.1-155.5 123.1s-85.5-39.5-164-39.5c-76.5 0-103.7 40.8-165.9 40.8s-105.6-57-155.5-127C46.7 790.7 0 663 0 541.8c0-194.4 126.4-297.5 250.8-297.5 66.1 0 121.2 43.4 162.7 43.4 39.5 0 101.1-46 176.3-46 28.5 0 130.9 2.6 198.3 99.2zm-234-181.5c31.1-36.9 53.1-88.1 53.1-139.3 0-7.1-.6-14.3-1.9-20.1-50.6 1.9-110.8 33.7-147.1 75.8-28.5 32.4-55.1 83.6-55.1 135.5 0 7.8 1.3 15.6 1.9 18.1 3.2.6 8.4 1.3 13.6 1.3 45.4 0 102.5-30.4 135.5-71.3z"></path></svg>`);function Ur(e,t){B(t,!0);var n=Hr(),r=p(n);V(n),I(e=>{M(n,0,e),T(r,`fill`,t.fill)},[()=>ee(K(`size-5 -mt-[3px]`,t.class))]),f(e,n),_()}var Wr={google:Vr,apple:Ur},Gr=t(`<!> <!> <!>`,1);function Kr(t,n){B(n,!0);let r=F(()=>Wr[n.idp]);async function i(e){let t=e.currentTarget;t.disabled=!0,await Te(n.idp,n.account?.id),t.disabled=!1}{let a=F(()=>n.children?`default`:`icon`),o=F(()=>K(`disabled:[&_.x-icon]:hidden [&_.x-spinner]:hidden disabled:[&_.x-spinner]:block`,n.class));X(t,{variant:`outline`,get size(){return U(a)},onclick:i,get class(){return U(o)},children:(t,i)=>{var a=Gr(),o=e(a);b(o,()=>U(r),(e,t)=>{t(e,{class:`x-icon`})});var s=w(o,2);$e(s,{class:`x-spinner`});var c=w(s,2);H(c,()=>n.children??h),f(t,a)},$$slots:{default:!0}})}_()}var qr=t(`<div class="flex gap-2"><!> <!></div>`);function Jr(e,t){B(t,!0);var n=qr(),r=p(n),i=e=>{Kr(e,{idp:`google`,get account(){return t.account}})};o(r,e=>{De.google.client&&e(i)});var a=w(r,2),s=e=>{Kr(e,{idp:`apple`,get account(){return t.account}})};o(a,e=>{De.apple.client&&e(s)}),V(n),f(e,n),_()}function Yr(e,t){B(t,!0);let n=()=>z(Q,`$dict`,a),[a,o]=j(),s={google:`Google`,apple:`Apple`};Kr(e,{get idp(){return t.idp},class:`w-full`,children:(e,a)=>{r();var o=d();I(e=>i(o,e),[()=>n().auth.continueWith(s[t.idp])]),f(e,o)},$$slots:{default:!0}}),_(),o()}var Xr=t(`<!> <!>`,1);function Zr(t,n){var a=k(),o=e(a);b(o,()=>Bn,(t,a)=>{a(t,{class:`w-full`,children:(t,a)=>{var o=Xr(),s=e(o);b(s,()=>Pn,(t,a)=>{a(t,{children:(t,a)=>{var o=Xr(),s=e(o);b(s,()=>Ln,(e,t)=>{t(e,{children:(e,t)=>{r();var a=d();I(()=>i(a,n.title)),f(e,a)},$$slots:{default:!0}})});var c=w(s,2);b(c,()=>On,(e,t)=>{t(e,{children:(e,t)=>{r();var a=d();I(()=>i(a,n.description)),f(e,a)},$$slots:{default:!0}})}),f(t,o)},$$slots:{default:!0}})});var c=w(s,2);b(c,()=>Tn,(t,r)=>{r(t,{class:`flex flex-col`,children:(t,r)=>{var i=k(),a=e(i);H(a,()=>n.action),f(t,i)},$$slots:{default:!0}})}),f(t,o)},$$slots:{default:!0}})}),f(t,a)}var Qr=t(`<!> `,1),$r=t(`<div class="flex flex-col items-center gap-4 w-full"><!> <!></div>`);function ei(t,n){B(n,!0);let r=()=>z(Q,`$dict`,a),[a,s]=j();N(()=>{n.method===null&&ue()});var c=$r(),l=p(c);{let t=t=>{var r=k(),i=e(r),a=e=>{zr(e,{get account(){return n.account}})},s=e=>{lr(e,{})},c=e=>{Yr(e,{idp:`apple`})},l=e=>{Yr(e,{idp:`google`})};o(i,e=>{n.method===`passkey`?e(a):n.method===`password`?e(s,1):n.method===`apple`?e(c,2):n.method===`google`&&e(l,3)}),f(t,r)},i=F(()=>r().auth.refresh.description(n.account.name));Zr(l,{get title(){return r().auth.refresh.title},get description(){return U(i)},action:t,$$slots:{action:!0}})}var u=w(l,2);X(u,{variant:`outline`,get onclick(){return ue},children:(t,n)=>{var a=Qr(),o=e(a);dt(o,{});var s=w(o);I(()=>i(s,` ${r().auth.signout??``}`)),f(t,a)},$$slots:{default:!0}}),V(c),f(t,c),_(),s()}var ti=new Set([`$$slots`,`$$events`,`$$legacy`]);function ni(e,t){let n=v(t,ti),r=[[`circle`,{cx:`12`,cy:`12`,r:`4`}],[`path`,{d:`M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8`}]];W(e,P({name:`at-sign`},()=>n,{get iconNode(){return r}}))}var ri=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function ii(t,n){B(n,!0);let r=D(n,`ref`,15,null),i=v(n,ri);var a=k(),o=e(a);{let e=F(()=>K(`text-sm flex-1 outline-none`,n.class));b(o,()=>hn,(t,n)=>{n(t,P({"data-slot":`tabs-content`,get class(){return U(e)}},()=>i,{get ref(){return r()},set ref(e){r(e)}}))})}f(t,a),_()}var ai=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function oi(t,n){B(n,!0);let r=D(n,`ref`,15,null),i=v(n,ai);var a=k(),o=e(a);{let e=F(()=>K(`gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg:not([class*='size-'])]:size-4 relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center whitespace-nowrap text-foreground/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0`,`group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent`,`data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground`,`after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100`,n.class));b(o,()=>xn,(t,n)=>{n(t,P({"data-slot":`tabs-trigger`,get class(){return U(e)}},()=>i,{get ref(){return r()},set ref(e){r(e)}}))})}f(t,a),_()}var si=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`value`,`class`]);function ci(t,n){B(n,!0);let r=D(n,`ref`,15,null),i=D(n,`value`,15,``),a=v(n,si);var o=k(),s=e(o);{let e=F(()=>K(`gap-2 group/tabs flex data-[orientation=horizontal]:flex-col`,n.class));b(s,()=>fn,(t,n)=>{n(t,P({"data-slot":`tabs`,get class(){return U(e)}},()=>a,{get ref(){return r()},set ref(e){r(e)},get value(){return i()},set value(e){i(e)}}))})}f(t,o),_()}var li=it({base:`rounded-lg p-[3px] group-data-horizontal/tabs:h-8 data-[variant=line]:rounded-none group/tabs-list inline-flex w-fit items-center justify-center text-muted-foreground group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col`,variants:{variant:{default:`cn-tabs-list-variant-default bg-muted`,line:`cn-tabs-list-variant-line gap-1 bg-transparent`}},defaultVariants:{variant:`default`}}),ui=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`variant`,`class`]);function di(t,n){B(n,!0);let r=D(n,`ref`,15,null),i=D(n,`variant`,3,`default`),a=v(n,ui);var o=k(),s=e(o);{let e=F(()=>K(li({variant:i()}),n.class));b(s,()=>vn,(t,n)=>{n(t,P({"data-slot":`tabs-list`,get"data-variant"(){return i()},get class(){return U(e)}},()=>a,{get ref(){return r()},set ref(e){r(e)}}))})}f(t,o),_()}var fi=t(`<!> `,1),pi=t(`<!> <!>`,1),mi=t(`<div class="flex justify-between gap-2"><!> <!></div> <!> <!>`,1);function hi(t,n){B(n,!0);let r=()=>z(Q,`$dict`,a),[a,o]=j(),s=y(null);function c(e){requestAnimationFrame(()=>{U(s)?.querySelector(`[data-value="${e}"] input[autofocus]`)?.focus()})}let l=y(`passkey`);N(()=>{L(l,fe?`passkey`:`password`,!0)});var u=k(),d=e(u);{let t=F(()=>K(`w-full`,n.class));b(d,()=>ci,(a,o)=>{o(a,{get class(){return U(t)},onValueChange:c,get value(){return U(l)},set value(e){L(l,e,!0)},get ref(){return U(s)},set ref(e){L(s,e,!0)},children:(t,a)=>{var o=mi(),s=e(o),c=p(s);b(c,()=>di,(t,n)=>{n(t,{children:(t,n)=>{var a=pi(),o=e(a);b(o,()=>oi,(t,n)=>{n(t,{value:`passkey`,"data-marker":`passkey-tab`,children:(t,n)=>{var a=fi(),o=e(a);Tr(o,{color:`var(--muted-foreground)`});var s=w(o);I(()=>i(s,` ${r().auth.passkey??``}`)),f(t,a)},$$slots:{default:!0}})});var s=w(o,2);b(s,()=>oi,(t,n)=>{n(t,{value:`password`,id:`iam-email-tab`,children:(t,n)=>{var a=fi(),o=e(a);ni(o,{color:`var(--muted-foreground)`});var s=w(o);I(()=>i(s,` ${r().auth.email??``}`)),f(t,a)},$$slots:{default:!0}})}),f(t,a)},$$slots:{default:!0}})}),Jr(w(c,2),{get account(){return n.account}}),V(s);var l=w(s,2);b(l,()=>ii,(e,t)=>{t(e,{value:`passkey`,children:(e,t)=>{Lr(e,{get account(){return n.account},oncreate:e=>n.oncreate?.(e,`passkey`)})},$$slots:{default:!0}})});var u=w(l,2);b(u,()=>ii,(e,t)=>{t(e,{value:`password`,children:(e,t)=>{cr(e,{get account(){return n.account},oncreate:e=>n.oncreate?.(e,`password`)})},$$slots:{default:!0}})}),f(t,o)},$$slots:{default:!0}})})}f(t,u),_(),o()}var gi=t(`<div class="flex items-center justify-center h-screen"><!></div>`),_i=t(`<div class="flex w-full max-w-sm items-center justify-center pt-[14vh] px-4 mx-auto"><!></div>`);function vi(t,n){B(n,!0);let r=()=>z(le,`$iam`,l),i=()=>z(oe,`$method`,l),a=()=>z(ce,`$authenticated`,l),s=()=>z(ve,`$greeting`,l),c=()=>z(_e,`$processing`,l),[l,u]=j(),d=t=>{var a=k(),s=e(a),c=e=>{ei(e,{get account(){return r()},get method(){return i()}})},l=e=>{{let t=F(()=>K(`scale-0 transition-transform`,`scale-100`));hi(e,{get class(){return U(t)},get account(){return n.account},get oncreate(){return n.oncreate}})}};o(s,e=>{r()?e(c):e(l,-1)}),f(t,a)};var m=k(),h=e(m),g=t=>{var r=k(),i=e(r);H(i,()=>n.children),f(t,r)},v=e=>{var t=gi(),n=p(t);$e(n,{}),V(t),f(e,t)},y=t=>{var r=k(),i=e(r);H(i,()=>n.screen,()=>({authentication:d})),f(t,r)},b=e=>{var t=_i(),n=p(t);d(n),V(t),f(e,t)};o(h,e=>{a()?e(g):s()||c()?e(v,1):n.screen?e(y,2):e(b,-1)}),f(t,m),_(),u()}function yi(e,t){return!!(e.dev!==void 0&&e.dev===!1||e.beta!==void 0&&e.beta===bi()||e.debug!==void 0&&e.debug===xi()||e.role!==void 0&&t?.roles!==void 0&&Si(t.roles,e.role))}function bi(){return typeof window<`u`&&window.location.hostname.startsWith(`beta.`)}function xi(){return bi()}function Si(e,t){for(let n of e)if(n===t||t.startsWith(n+`:`))return!0;return!1}var Ci=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`denied`]),wi=t(`<div class="flex justify-center pt-[14vh]"><!></div>`);function Ti(t,n){B(n,!0);let r=()=>z(le,`$account`,a),i=()=>z(Q,`$dict`,a),[a,s]=j(),c=v(n,Ci),l=F(()=>yi(c,r())),u=F(()=>r()?.id??``);var d=k(),m=e(d),h=t=>{var r=k(),i=e(r);H(i,()=>n.children),f(t,r)},g=t=>{var r=k(),i=e(r);H(i,()=>n.denied),f(t,r)},y=e=>{var t=wi(),n=p(t);{let e=F(()=>U(u).slice(0,8));Je(n,{get text(){return U(u)},get label(){return U(e)},get"aria-label"(){return i().auth.copyId},variant:`outline`,class:`font-mono`})}V(t),f(e,t)};o(m,e=>{U(l)?e(h):n.denied===void 0?U(u)!==``&&e(y,2):e(g,1)}),f(t,d),_(),s()}var Ei=a(((e,t)=>{t.exports=function(){return typeof Promise==`function`&&Promise.prototype&&Promise.prototype.then}})),$=a((e=>{var t,n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(e){if(!e)throw Error(`"version" cannot be null or undefined`);if(e<1||e>40)throw Error(`"version" should be in range from 1 to 40`);return e*4+17},e.getSymbolTotalCodewords=function(e){return n[e]},e.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t},e.setToSJISFunction=function(e){if(typeof e!=`function`)throw Error(`"toSJISFunc" is not a valid function.`);t=e},e.isKanjiModeEnabled=function(){return t!==void 0},e.toSJIS=function(e){return t(e)}})),Di=a((e=>{e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(t){if(typeof t!=`string`)throw Error(`Param is not a string`);switch(t.toLowerCase()){case`l`:case`low`:return e.L;case`m`:case`medium`:return e.M;case`q`:case`quartile`:return e.Q;case`h`:case`high`:return e.H;default:throw Error(`Unknown EC Level: `+t)}}e.isValid=function(e){return e&&e.bit!==void 0&&e.bit>=0&&e.bit<4},e.from=function(n,r){if(e.isValid(n))return n;try{return t(n)}catch{return r}}})),Oi=a(((e,t)=>{function n(){this.buffer=[],this.length=0}n.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},t.exports=n})),ki=a(((e,t)=>{function n(e){if(!e||e<1)throw Error(`BitMatrix size must be defined and greater than 0`);this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}n.prototype.set=function(e,t,n,r){let i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)},n.prototype.get=function(e,t){return this.data[e*this.size+t]},n.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},n.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},t.exports=n})),Ai=a((e=>{var t=$().getSymbolSize;e.getRowColCoords=function(e){if(e===1)return[];let n=Math.floor(e/7)+2,r=t(e),i=r===145?26:Math.ceil((r-13)/(2*n-2))*2,a=[r-7];for(let e=1;e<n-1;e++)a[e]=a[e-1]-i;return a.push(6),a.reverse()},e.getPositions=function(t){let n=[],r=e.getRowColCoords(t),i=r.length;for(let e=0;e<i;e++)for(let t=0;t<i;t++)e===0&&t===0||e===0&&t===i-1||e===i-1&&t===0||n.push([r[e],r[t]]);return n}})),ji=a((e=>{var t=$().getSymbolSize,n=7;e.getPositions=function(e){let r=t(e);return[[0,0],[r-n,0],[0,r-n]]}})),Mi=a((e=>{e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(e){return e!=null&&e!==``&&!isNaN(e)&&e>=0&&e<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(e){let n=e.size,r=0,i=0,a=0,o=null,s=null;for(let c=0;c<n;c++){i=a=0,o=s=null;for(let l=0;l<n;l++){let n=e.get(c,l);n===o?i++:(i>=5&&(r+=t.N1+(i-5)),o=n,i=1),n=e.get(l,c),n===s?a++:(a>=5&&(r+=t.N1+(a-5)),s=n,a=1)}i>=5&&(r+=t.N1+(i-5)),a>=5&&(r+=t.N1+(a-5))}return r},e.getPenaltyN2=function(e){let n=e.size,r=0;for(let t=0;t<n-1;t++)for(let i=0;i<n-1;i++){let n=e.get(t,i)+e.get(t,i+1)+e.get(t+1,i)+e.get(t+1,i+1);(n===4||n===0)&&r++}return r*t.N2},e.getPenaltyN3=function(e){let n=e.size,r=0,i=0,a=0;for(let t=0;t<n;t++){i=a=0;for(let o=0;o<n;o++)i=i<<1&2047|e.get(t,o),o>=10&&(i===1488||i===93)&&r++,a=a<<1&2047|e.get(o,t),o>=10&&(a===1488||a===93)&&r++}return r*t.N3},e.getPenaltyN4=function(e){let n=0,r=e.data.length;for(let t=0;t<r;t++)n+=e.data[t];return Math.abs(Math.ceil(n*100/r/5)-10)*t.N4};function n(t,n,r){switch(t){case e.Patterns.PATTERN000:return(n+r)%2==0;case e.Patterns.PATTERN001:return n%2==0;case e.Patterns.PATTERN010:return r%3==0;case e.Patterns.PATTERN011:return(n+r)%3==0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case e.Patterns.PATTERN101:return n*r%2+n*r%3==0;case e.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case e.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw Error(`bad maskPattern:`+t)}}e.applyMask=function(e,t){let r=t.size;for(let i=0;i<r;i++)for(let a=0;a<r;a++)t.isReserved(a,i)||t.xor(a,i,n(e,a,i))},e.getBestMask=function(t,n){let r=Object.keys(e.Patterns).length,i=0,a=1/0;for(let o=0;o<r;o++){n(o),e.applyMask(o,t);let r=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(o,t),r<a&&(a=r,i=o)}return i}})),Ni=a((e=>{var t=Di(),n=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],r=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(e,r){switch(r){case t.L:return n[(e-1)*4+0];case t.M:return n[(e-1)*4+1];case t.Q:return n[(e-1)*4+2];case t.H:return n[(e-1)*4+3];default:return}},e.getTotalCodewordsCount=function(e,n){switch(n){case t.L:return r[(e-1)*4+0];case t.M:return r[(e-1)*4+1];case t.Q:return r[(e-1)*4+2];case t.H:return r[(e-1)*4+3];default:return}}})),Pi=a((e=>{var t=new Uint8Array(512),n=new Uint8Array(256);(function(){let e=1;for(let r=0;r<255;r++)t[r]=e,n[e]=r,e<<=1,e&256&&(e^=285);for(let e=255;e<512;e++)t[e]=t[e-255]})(),e.log=function(e){if(e<1)throw Error(`log(`+e+`)`);return n[e]},e.exp=function(e){return t[e]},e.mul=function(e,r){return e===0||r===0?0:t[n[e]+n[r]]}})),Fi=a((e=>{var t=Pi();e.mul=function(e,n){let r=new Uint8Array(e.length+n.length-1);for(let i=0;i<e.length;i++)for(let a=0;a<n.length;a++)r[i+a]^=t.mul(e[i],n[a]);return r},e.mod=function(e,n){let r=new Uint8Array(e);for(;r.length-n.length>=0;){let e=r[0];for(let i=0;i<n.length;i++)r[i]^=t.mul(n[i],e);let i=0;for(;i<r.length&&r[i]===0;)i++;r=r.slice(i)}return r},e.generateECPolynomial=function(n){let r=new Uint8Array([1]);for(let i=0;i<n;i++)r=e.mul(r,new Uint8Array([1,t.exp(i)]));return r}})),Ii=a(((e,t)=>{var n=Fi();function r(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}r.prototype.initialize=function(e){this.degree=e,this.genPoly=n.generateECPolynomial(this.degree)},r.prototype.encode=function(e){if(!this.genPoly)throw Error(`Encoder not initialized`);let t=new Uint8Array(e.length+this.degree);t.set(e);let r=n.mod(t,this.genPoly),i=this.degree-r.length;if(i>0){let e=new Uint8Array(this.degree);return e.set(r,i),e}return r},t.exports=r})),Li=a((e=>{e.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}})),Ri=a((e=>{var t=`[0-9]+`,n=`[A-Z $%*+\\-./:]+`,r=`(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+`;r=r.replace(/u/g,`\\u`);var i=`(?:(?![A-Z0-9 $%*+\\-./:]|`+r+`)(?:.|[\r
2
2
  ]))+`;e.KANJI=new RegExp(r,`g`),e.BYTE_KANJI=RegExp(`[^A-Z0-9 $%*+\\-./:]+`,`g`),e.BYTE=new RegExp(i,`g`),e.NUMERIC=new RegExp(t,`g`),e.ALPHANUMERIC=new RegExp(n,`g`);var a=RegExp(`^`+r+`$`),o=RegExp(`^[0-9]+$`),s=RegExp(`^[A-Z0-9 $%*+\\-./:]+$`);e.testKanji=function(e){return a.test(e)},e.testNumeric=function(e){return o.test(e)},e.testAlphanumeric=function(e){return s.test(e)}})),zi=a((e=>{var t=Li(),n=Ri();e.NUMERIC={id:`Numeric`,bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:`Alphanumeric`,bit:2,ccBits:[9,11,13]},e.BYTE={id:`Byte`,bit:4,ccBits:[8,16,16]},e.KANJI={id:`Kanji`,bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(e,n){if(!e.ccBits)throw Error(`Invalid mode: `+e);if(!t.isValid(n))throw Error(`Invalid version: `+n);return n>=1&&n<10?e.ccBits[0]:n<27?e.ccBits[1]:e.ccBits[2]},e.getBestModeForData=function(t){return n.testNumeric(t)?e.NUMERIC:n.testAlphanumeric(t)?e.ALPHANUMERIC:n.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(e){if(e&&e.id)return e.id;throw Error(`Invalid mode`)},e.isValid=function(e){return e&&e.bit&&e.ccBits};function r(t){if(typeof t!=`string`)throw Error(`Param is not a string`);switch(t.toLowerCase()){case`numeric`:return e.NUMERIC;case`alphanumeric`:return e.ALPHANUMERIC;case`kanji`:return e.KANJI;case`byte`:return e.BYTE;default:throw Error(`Unknown mode: `+t)}}e.from=function(t,n){if(e.isValid(t))return t;try{return r(t)}catch{return n}}})),Bi=a((e=>{var t=$(),n=Ni(),r=Di(),i=zi(),a=Li(),o=7973,s=t.getBCHDigit(o);function c(t,n,r){for(let i=1;i<=40;i++)if(n<=e.getCapacity(i,r,t))return i}function l(e,t){return i.getCharCountIndicator(e,t)+4}function u(e,t){let n=0;return e.forEach(function(e){let r=l(e.mode,t);n+=r+e.getBitsLength()}),n}function d(t,n){for(let r=1;r<=40;r++)if(u(t,r)<=e.getCapacity(r,n,i.MIXED))return r}e.from=function(e,t){return a.isValid(e)?parseInt(e,10):t},e.getCapacity=function(e,r,o){if(!a.isValid(e))throw Error(`Invalid QR Code version`);o===void 0&&(o=i.BYTE);let s=(t.getSymbolTotalCodewords(e)-n.getTotalCodewordsCount(e,r))*8;if(o===i.MIXED)return s;let c=s-l(o,e);switch(o){case i.NUMERIC:return Math.floor(c/10*3);case i.ALPHANUMERIC:return Math.floor(c/11*2);case i.KANJI:return Math.floor(c/13);case i.BYTE:default:return Math.floor(c/8)}},e.getBestVersionForData=function(e,t){let n,i=r.from(t,r.M);if(Array.isArray(e)){if(e.length>1)return d(e,i);if(e.length===0)return 1;n=e[0]}else n=e;return c(n.mode,n.getLength(),i)},e.getEncodedBits=function(e){if(!a.isValid(e)||e<7)throw Error(`Invalid QR Code version`);let n=e<<12;for(;t.getBCHDigit(n)-s>=0;)n^=o<<t.getBCHDigit(n)-s;return e<<12|n}})),Vi=a((e=>{var t=$(),n=1335,r=21522,i=t.getBCHDigit(n);e.getEncodedBits=function(e,a){let o=e.bit<<3|a,s=o<<10;for(;t.getBCHDigit(s)-i>=0;)s^=n<<t.getBCHDigit(s)-i;return(o<<10|s)^r}})),Hi=a(((e,t)=>{var n=zi();function r(e){this.mode=n.NUMERIC,this.data=e.toString()}r.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){let t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);let i=this.data.length-t;i>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,i*3+1))},t.exports=r})),Ui=a(((e,t)=>{var n=zi(),r=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`.split(``);function i(e){this.mode=n.ALPHANUMERIC,this.data=e}i.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=r.indexOf(this.data[t])*45;n+=r.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(r.indexOf(this.data[t]),6)},t.exports=i})),Wi=a(((e,t)=>{var n=zi();function r(e){this.mode=n.BYTE,this.data=typeof e==`string`?new TextEncoder().encode(e):new Uint8Array(e)}r.getBitsLength=function(e){return e*8},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},t.exports=r})),Gi=a(((e,t)=>{var n=zi(),r=$();function i(e){this.mode=n.KANJI,this.data=e}i.getBitsLength=function(e){return e*13},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=r.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw Error(`Invalid SJIS character: `+this.data[t]+`
3
3
  Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}},t.exports=i})),Ki=a(((e,t)=>{var n={single_source_shortest_paths:function(e,t,r){var i={},a={};a[t]=0;var o=n.PriorityQueue.make();o.push(t,0);for(var s,c,l,u,d,f,p,m,h;!o.empty();)for(l in s=o.pop(),c=s.value,u=s.cost,d=e[c]||{},d)d.hasOwnProperty(l)&&(f=d[l],p=u+f,m=a[l],h=a[l]===void 0,(h||m>p)&&(a[l]=p,o.push(l,p),i[l]=c));if(r!==void 0&&a[r]===void 0){var g=[`Could not find a path from `,t,` to `,r,`.`].join(``);throw Error(g)}return i},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,t,r){var i=n.single_source_shortest_paths(e,t,r);return n.extract_shortest_path_from_predecessor_list(i,r)},PriorityQueue:{make:function(e){var t=n.PriorityQueue,r={},i;for(i in e||={},t)t.hasOwnProperty(i)&&(r[i]=t[i]);return r.queue=[],r.sorter=e.sorter||t.default_sorter,r},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};t!==void 0&&(t.exports=n)})),qi=a((e=>{var t=zi(),n=Hi(),r=Ui(),i=Wi(),a=Gi(),o=Ri(),s=$(),c=Ki();function l(e){return unescape(encodeURIComponent(e)).length}function u(e,t,n){let r=[],i;for(;(i=e.exec(n))!==null;)r.push({data:i[0],index:i.index,mode:t,length:i[0].length});return r}function d(e){let n=u(o.NUMERIC,t.NUMERIC,e),r=u(o.ALPHANUMERIC,t.ALPHANUMERIC,e),i,a;return s.isKanjiModeEnabled()?(i=u(o.BYTE,t.BYTE,e),a=u(o.KANJI,t.KANJI,e)):(i=u(o.BYTE_KANJI,t.BYTE,e),a=[]),n.concat(r,i,a).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function f(e,o){switch(o){case t.NUMERIC:return n.getBitsLength(e);case t.ALPHANUMERIC:return r.getBitsLength(e);case t.KANJI:return a.getBitsLength(e);case t.BYTE:return i.getBitsLength(e)}}function p(e){return e.reduce(function(e,t){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}function m(e){let n=[];for(let r=0;r<e.length;r++){let i=e[r];switch(i.mode){case t.NUMERIC:n.push([i,{data:i.data,mode:t.ALPHANUMERIC,length:i.length},{data:i.data,mode:t.BYTE,length:i.length}]);break;case t.ALPHANUMERIC:n.push([i,{data:i.data,mode:t.BYTE,length:i.length}]);break;case t.KANJI:n.push([i,{data:i.data,mode:t.BYTE,length:l(i.data)}]);break;case t.BYTE:n.push([{data:i.data,mode:t.BYTE,length:l(i.data)}])}}return n}function h(e,n){let r={},i={start:{}},a=[`start`];for(let o=0;o<e.length;o++){let s=e[o],c=[];for(let e=0;e<s.length;e++){let l=s[e],u=``+o+e;c.push(u),r[u]={node:l,lastCount:0},i[u]={};for(let e=0;e<a.length;e++){let o=a[e];r[o]&&r[o].node.mode===l.mode?(i[o][u]=f(r[o].lastCount+l.length,l.mode)-f(r[o].lastCount,l.mode),r[o].lastCount+=l.length):(r[o]&&(r[o].lastCount=l.length),i[o][u]=f(l.length,l.mode)+4+t.getCharCountIndicator(l.mode,n))}}a=c}for(let e=0;e<a.length;e++)i[a[e]].end=0;return{map:i,table:r}}function g(e,o){let c,l=t.getBestModeForData(e);if(c=t.from(o,l),c!==t.BYTE&&c.bit<l.bit)throw Error(`"`+e+`" cannot be encoded with mode `+t.toString(c)+`.
4
4
  Suggested mode is: `+t.toString(l));switch(c===t.KANJI&&!s.isKanjiModeEnabled()&&(c=t.BYTE),c){case t.NUMERIC:return new n(e);case t.ALPHANUMERIC:return new r(e);case t.KANJI:return new a(e);case t.BYTE:return new i(e)}}e.fromArray=function(e){return e.reduce(function(e,t){return typeof t==`string`?e.push(g(t,null)):t.data&&e.push(g(t.data,t.mode)),e},[])},e.fromString=function(t,n){let r=h(m(d(t,s.isKanjiModeEnabled())),n),i=c.find_path(r.map,`start`,`end`),a=[];for(let e=1;e<i.length-1;e++)a.push(r.table[i[e]].node);return e.fromArray(p(a))},e.rawSplit=function(t){return e.fromArray(d(t,s.isKanjiModeEnabled()))}})),Ji=a((e=>{var t=$(),n=Di(),r=Oi(),i=ki(),a=Ai(),o=ji(),s=Mi(),c=Ni(),l=Ii(),u=Bi(),d=Vi(),f=zi(),p=qi();function m(e,t){let n=e.size,r=o.getPositions(t);for(let t=0;t<r.length;t++){let i=r[t][0],a=r[t][1];for(let t=-1;t<=7;t++)if(!(i+t<=-1||n<=i+t))for(let r=-1;r<=7;r++)a+r<=-1||n<=a+r||(t>=0&&t<=6&&(r===0||r===6)||r>=0&&r<=6&&(t===0||t===6)||t>=2&&t<=4&&r>=2&&r<=4?e.set(i+t,a+r,!0,!0):e.set(i+t,a+r,!1,!0))}}function h(e){let t=e.size;for(let n=8;n<t-8;n++){let t=n%2==0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}function g(e,t){let n=a.getPositions(t);for(let t=0;t<n.length;t++){let r=n[t][0],i=n[t][1];for(let t=-2;t<=2;t++)for(let n=-2;n<=2;n++)t===-2||t===2||n===-2||n===2||t===0&&n===0?e.set(r+t,i+n,!0,!0):e.set(r+t,i+n,!1,!0)}}function _(e,t){let n=e.size,r=u.getEncodedBits(t),i,a,o;for(let t=0;t<18;t++)i=Math.floor(t/3),a=t%3+n-8-3,o=(r>>t&1)==1,e.set(i,a,o,!0),e.set(a,i,o,!0)}function v(e,t,n){let r=e.size,i=d.getEncodedBits(t,n),a,o;for(a=0;a<15;a++)o=(i>>a&1)==1,a<6?e.set(a,8,o,!0):a<8?e.set(a+1,8,o,!0):e.set(r-15+a,8,o,!0),a<8?e.set(8,r-a-1,o,!0):a<9?e.set(8,15-a-1+1,o,!0):e.set(8,15-a-1,o,!0);e.set(r-8,8,1,!0)}function y(e,t){let n=e.size,r=-1,i=n-1,a=7,o=0;for(let s=n-1;s>0;s-=2)for(s===6&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(i,s-n)){let r=!1;o<t.length&&(r=(t[o]>>>a&1)==1),e.set(i,s-n,r),a--,a===-1&&(o++,a=7)}if(i+=r,i<0||n<=i){i-=r,r=-r;break}}}function b(e,n,i){let a=new r;i.forEach(function(t){a.put(t.mode.bit,4),a.put(t.getLength(),f.getCharCountIndicator(t.mode,e)),t.write(a)});let o=(t.getSymbolTotalCodewords(e)-c.getTotalCodewordsCount(e,n))*8;for(a.getLengthInBits()+4<=o&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(0);let s=(o-a.getLengthInBits())/8;for(let e=0;e<s;e++)a.put(e%2?17:236,8);return x(a,e,n)}function x(e,n,r){let i=t.getSymbolTotalCodewords(n),a=i-c.getTotalCodewordsCount(n,r),o=c.getBlocksCount(n,r),s=o-i%o,u=Math.floor(i/o),d=Math.floor(a/o),f=d+1,p=u-d,m=new l(p),h=0,g=Array(o),_=Array(o),v=0,y=new Uint8Array(e.buffer);for(let e=0;e<o;e++){let t=e<s?d:f;g[e]=y.slice(h,h+t),_[e]=m.encode(g[e]),h+=t,v=Math.max(v,t)}let b=new Uint8Array(i),x=0,S,C;for(S=0;S<v;S++)for(C=0;C<o;C++)S<g[C].length&&(b[x++]=g[C][S]);for(S=0;S<p;S++)for(C=0;C<o;C++)b[x++]=_[C][S];return b}function S(e,n,r,a){let o;if(Array.isArray(e))o=p.fromArray(e);else if(typeof e==`string`){let t=n;if(!t){let n=p.rawSplit(e);t=u.getBestVersionForData(n,r)}o=p.fromString(e,t||40)}else throw Error(`Invalid data`);let c=u.getBestVersionForData(o,r);if(!c)throw Error(`The amount of data is too big to be stored in a QR Code`);if(!n)n=c;else if(n<c)throw Error(`
@@ -0,0 +1 @@
1
+ import"../chunks/PUjOYRcs.js";import"../chunks/xihTtKlq.js";import"../chunks/DINmginf.js";import{t as e}from"../chunks/B96dqKj5.js";function t(t){e(t,{class:`h-full`})}export{t as component};
@@ -0,0 +1 @@
1
+ import{_t as e,ot as t,vt as n,z as r}from"../chunks/PUjOYRcs.js";import"../chunks/xihTtKlq.js";import{t as i}from"../chunks/BT5Ivpyh.js";import{n as a,t as o}from"../chunks/B96dqKj5.js";function s(s,c){n(c,!0);let l=t(()=>a(i.params.id??``));o(s,{class:`h-full`,get focus(){return r(l)}}),e()}export{s as component};
@@ -1 +1 @@
1
- import{A as e,O as t,Q as n,wt as r}from"../chunks/PUjOYRcs.js";import"../chunks/xihTtKlq.js";import{t as i}from"../chunks/CRq6qlvN.js";import"../chunks/DINmginf.js";var a=e(`<div class="mx-auto h-full max-w-3xl overflow-auto px-4 pb-12"><!></div>`);function o(e){var o=a(),s=n(o);i(s,{}),r(o),t(e,o)}export{o as component};
1
+ import{A as e,O as t,Q as n,wt as r}from"../chunks/PUjOYRcs.js";import"../chunks/xihTtKlq.js";import{t as i}from"../chunks/FJXxR1hy.js";import"../chunks/DINmginf.js";var a=e(`<div class="mx-auto h-full max-w-3xl overflow-auto px-4 pb-12"><!></div>`);function o(e){var o=a(),s=n(o);i(s,{}),r(o),t(e,o)}export{o as component};
@@ -1 +1 @@
1
- {"version":"1788818942988"}
1
+ {"version":"1788820815884"}
@@ -16,16 +16,16 @@
16
16
  />
17
17
  <link rel="apple-touch-icon" href="/.introspection/apple-touch-icon.png" />
18
18
 
19
- <link href="/.introspection/_app/immutable/entry/start.RcPu9STL.js" rel="modulepreload">
20
- <link href="/.introspection/_app/immutable/chunks/B2kPZfJh.js" rel="modulepreload">
19
+ <link href="/.introspection/_app/immutable/entry/start.UevPJt7y.js" rel="modulepreload">
20
+ <link href="/.introspection/_app/immutable/chunks/BUu1bTY0.js" rel="modulepreload">
21
21
  <link href="/.introspection/_app/immutable/chunks/PUjOYRcs.js" rel="modulepreload">
22
- <link href="/.introspection/_app/immutable/chunks/DFP66uri.js" rel="modulepreload">
23
- <link href="/.introspection/_app/immutable/entry/app.MKQlb7LU.js" rel="modulepreload">
22
+ <link href="/.introspection/_app/immutable/chunks/BrKAv3Ku.js" rel="modulepreload">
23
+ <link href="/.introspection/_app/immutable/entry/app.CDRHLCe_.js" rel="modulepreload">
24
24
  <link href="/.introspection/_app/immutable/chunks/xihTtKlq.js" rel="modulepreload">
25
- <link href="/.introspection/_app/immutable/nodes/0.Gc5w_8Fb.js" rel="modulepreload">
26
- <link href="/.introspection/_app/immutable/chunks/BQGufqas.js" rel="modulepreload">
27
- <link href="/.introspection/_app/immutable/chunks/CMT3qkok.js" rel="modulepreload">
28
- <link href="/.introspection/_app/immutable/chunks/jxky52kD.js" rel="modulepreload">
25
+ <link href="/.introspection/_app/immutable/nodes/0.CpsL4iSg.js" rel="modulepreload">
26
+ <link href="/.introspection/_app/immutable/chunks/C_9U3amZ.js" rel="modulepreload">
27
+ <link href="/.introspection/_app/immutable/chunks/BT5Ivpyh.js" rel="modulepreload">
28
+ <link href="/.introspection/_app/immutable/chunks/DFc4ST-K.js" rel="modulepreload">
29
29
  <link href="/.introspection/_app/env.js" rel="modulepreload">
30
30
 
31
31
  <link href="/.introspection/_app/immutable/assets/0.CWRy6hIz.css" rel="stylesheet">
@@ -34,7 +34,7 @@
34
34
  <div style="display: contents">
35
35
  <script>
36
36
  {
37
- __sveltekit_jbnck = {
37
+ __sveltekit_tmeus1 = {
38
38
  base: "/.introspection",
39
39
  assets: "/.introspection",
40
40
  env: null
@@ -43,11 +43,11 @@
43
43
  const element = document.currentScript.parentElement;
44
44
 
45
45
  import("/.introspection/_app/env.js").then(({ env }) => {
46
- __sveltekit_jbnck.env = env;
46
+ __sveltekit_tmeus1.env = env;
47
47
 
48
48
  Promise.all([
49
- import("/.introspection/_app/immutable/entry/start.RcPu9STL.js"),
50
- import("/.introspection/_app/immutable/entry/app.MKQlb7LU.js")
49
+ import("/.introspection/_app/immutable/entry/start.UevPJt7y.js"),
50
+ import("/.introspection/_app/immutable/entry/app.CDRHLCe_.js")
51
51
  ]).then(([kit, app]) => {
52
52
  kit.start(app, element);
53
53
  });
@@ -1 +0,0 @@
1
- import{B as e,V as t,at as n,mt as r,n as i,rt as a,t as o,z as s}from"./PUjOYRcs.js";import{t as c}from"./DFP66uri.js";var l=class{constructor(e,t){this.status=e,this.body=typeof t==`string`?{message:t}:t||{message:`Error: ${e}`}}toString(){return JSON.stringify(this.body)}},u=class{constructor(e,t){try{new Headers({location:t})}catch{throw Error(`Invalid redirect location ${JSON.stringify(t)}: this string contains characters that cannot be used in HTTP headers`)}this.status=e,this.location=t}},d=class extends Error{constructor(e,t,n){super(n),this.status=e,this.text=t}};new URL(`sveltekit-internal://`);function f(e,t){return e===`/`||t===`ignore`?e:t===`never`?e.endsWith(`/`)?e.slice(0,-1):e:t===`always`&&!e.endsWith(`/`)?e+`/`:e}function p(e){return e.split(`%25`).map(decodeURI).join(`%25`)}function ee(e){for(let t in e)e[t]=decodeURIComponent(e[t]);return e}function m({href:e}){return e.split(`#`)[0]}function h(){}function g(...e){let t=5381;for(let n of e)if(typeof n==`string`){let e=n.length;for(;e;)t=t*33^n.charCodeAt(--e)}else if(ArrayBuffer.isView(n)){let e=new Uint8Array(n.buffer,n.byteOffset,n.byteLength),r=e.length;for(;r;)t=t*33^e[--r]}else throw TypeError(`value must be a string or TypedArray`);return(t>>>0).toString(36)}new TextEncoder;function _(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}var te=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||`GET`)!==`GET`&&v.delete(b(e)),te(e,t));var v=new Map;function y(e,t){let n=b(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:e,...t}=JSON.parse(r.textContent);r.getAttribute(`data-b64`)!==null&&(e=_(e));let i=r.getAttribute(`data-ttl`);return i&&v.set(n,{body:e,init:t,ttl:1e3*Number(i)}),Promise.resolve(new Response(e,t))}return window.fetch(e,t)}function ne(e,t,n){if(v.size>0){let t=b(e,n),r=v.get(t);if(r){if(performance.now()<r.ttl&&[`default`,`force-cache`,`only-if-cached`,void 0].includes(n?.cache))return new Response(r.body,r.init);v.delete(t)}}return window.fetch(t,n)}function b(e,t){let n=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){let e=[];t.headers&&e.push([...new Headers(t.headers)].join(`,`)),t.body&&(typeof t.body==`string`||ArrayBuffer.isView(t.body))&&e.push(t.body),n+=`[data-hash="${g(...e)}"]`}return n}var re=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/,ie=/^\/\((?:[^)]+)\)$/;function ae(e){let t=[];return{pattern:e===`/`||ie.test(e)?/^\/$/:RegExp(`^${se(e).map(e=>{let n=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(e);if(n)return t.push({name:n[1],matcher:n[2],optional:!1,rest:!0,chained:!0}),`(?:/([^]*))?`;let r=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(e);if(r)return t.push({name:r[1],matcher:r[2],optional:!0,rest:!1,chained:!0}),`(?:/([^/]+))?`;if(!e)return;let i=e.split(/\[(.+?)\](?!\])/);return`/`+i.map((e,n)=>{if(n%2){if(e.startsWith(`x+`))return le(String.fromCharCode(parseInt(e.slice(2),16)));if(e.startsWith(`u+`))return le(String.fromCharCode(...e.slice(2).split(`-`).map(e=>parseInt(e,16))));let[,r,a,o,s]=re.exec(e);return t.push({name:o,matcher:s,optional:!!r,rest:!!a,chained:a?n===1&&i[0]===``:!1}),a?`([^]*?)`:r?`([^/]*)?`:`([^/]+?)`}return le(e)}).join(``)}).join(``)}/?$`),params:t}}function oe(e){return e!==``&&!/^\([^)]+\)$/.test(e)}function se(e){return e.slice(1).split(`/`).filter(oe)}function ce(e,t,n){let r={},i=e.slice(1),a=i.filter(e=>e!==void 0),o=0;for(let e=0;e<t.length;e+=1){let s=t[e],c=i[e-o];if(s.chained&&s.rest&&o&&(c=i.slice(e-o,e+1).filter(e=>e).join(`/`),o=0),c===void 0){if(s.rest)c=``;else continue}if(!s.matcher||n[s.matcher](c)){r[s.name]=c;let n=t[e+1],l=i[e+1];n&&!n.rest&&n.optional&&l&&s.chained&&(o=0),!n&&!l&&Object.keys(r).length===a.length&&(o=0);continue}if(s.optional&&s.chained){o++;continue}return}if(!o)return r}function le(e){return e.normalize().replace(/[[\]]/g,`\\$&`).replace(/%/g,`%25`).replace(/\//g,`%2[Ff]`).replace(/\?/g,`%3[Ff]`).replace(/#/g,`%23`).replace(/[.*+?^${}()|\\]/g,`\\$&`)}function ue({nodes:e,server_loads:t,dictionary:n,matchers:r}){let i=new Set(t);return Object.entries(n).map(([t,[n,i,s]])=>{let{pattern:c,params:l}=ae(t),u={id:t,exec:e=>{let t=c.exec(e);if(t)return ce(t,l,r)},errors:[1,...s||[]].map(t=>e[t]),layouts:[0,...i||[]].map(o),leaf:a(n)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function a(t){let n=t<0;return n&&(t=~t),[n,e[t]]}function o(t){return t===void 0?t:[i.has(t),e[t]]}}function de(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function fe(e,t,n=JSON.stringify){let r=n(t);try{sessionStorage[e]=r}catch{}}var x=globalThis.__sveltekit_jbnck?.base??`/.introspection`,pe=globalThis.__sveltekit_jbnck?.assets??x??``,me=`sveltekit:snapshot`,he=`sveltekit:scroll`,ge=`sveltekit:states`,S=`sveltekit:history`,C=`sveltekit:navigation`,w={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},_e=location.origin;function ve(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){let e=document.getElementsByTagName(`base`);t=e.length?e[0].href:document.URL}return new URL(e,t)}function T(){return{x:pageXOffset,y:pageYOffset}}function E(e,t){return e.getAttribute(`data-sveltekit-${t}`)}var ye={...w,"":w.hover};function be(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function xe(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()===`A`&&e.hasAttribute(`href`))return e;e=be(e)}}function Se(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){let e=location.hash.split(`#`)[1]||`/`;r.hash=`#${e}${r.hash}`}}catch{}let i=e instanceof SVGAElement?e.target.baseVal:e.target,a=!r||!!i||O(r,t,n)||(e.getAttribute(`rel`)||``).split(/\s+/).includes(`external`),o=r?.origin===_e&&e.hasAttribute(`download`);return{url:r,external:a,target:i,download:o}}function D(e){let t=null,n=null,r=null,i=null,a=null,o=null,s=e;for(;s&&s!==document.documentElement;)r===null&&(r=E(s,`preload-code`)),i===null&&(i=E(s,`preload-data`)),t===null&&(t=E(s,`keepfocus`)),n===null&&(n=E(s,`noscroll`)),a===null&&(a=E(s,`reload`)),o===null&&(o=E(s,`replacestate`)),s=be(s);function c(e){switch(e){case``:case`true`:return!0;case`off`:case`false`:return!1;default:return}}return{preload_code:ye[r??`off`],preload_data:ye[i??`off`],keepfocus:c(t),noscroll:c(n),reload:c(a),replace_state:c(o)}}function Ce(e){let t=r(e),n=!0;function i(){n=!0,t.update(e=>e)}function a(e){n=!1,t.set(e)}function o(e){let r;return t.subscribe(t=>{(r===void 0||n&&t!==r)&&e(r=t)})}return{notify:i,set:a,subscribe:o}}var we={v:h};function Te(){let{set:e,subscribe:t}=r(!1),n;async function i(){clearTimeout(n);try{let t=await fetch(`${pe}/_app/version.json`,{headers:{pragma:`no-cache`,"cache-control":`no-cache`}});if(!t.ok)return!1;let r=(await t.json()).version!==c;return r&&(e(!0),we.v(),clearTimeout(n)),r}catch{return!1}}return{subscribe:t,check:i}}function O(e,t,n){return e.origin!==_e||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function Ee(e){}var De=new Set([`load`,`prerender`,`csr`,`ssr`,`trailingSlash`,`config`]);[...De],[...new Set([...De])];function Oe(e){return e.filter(e=>e!=null)}function k(e,t){return e+`/`+t}function ke(e){return e instanceof l||e instanceof d?e.status:500}function Ae(e){return e instanceof d?e.text:`Internal Error`}var A,j,je,Me=i.toString().includes(`$$`)||/function \w+\(\) \{\}/.test(i.toString()),Ne=`a:`;Me?(A={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(Ne)},j={current:null},je={current:!1}):(A=new class{#e=n({});get data(){return s(this.#e)}set data(e){a(this.#e,e)}#t=n(null);get form(){return s(this.#t)}set form(e){a(this.#t,e)}#n=n(null);get error(){return s(this.#n)}set error(e){a(this.#n,e)}#r=n({});get params(){return s(this.#r)}set params(e){a(this.#r,e)}#i=n({id:null});get route(){return s(this.#i)}set route(e){a(this.#i,e)}#a=n({});get state(){return s(this.#a)}set state(e){a(this.#a,e)}#o=n(-1);get status(){return s(this.#o)}set status(e){a(this.#o,e)}#s=n(new URL(Ne));get url(){return s(this.#s)}set url(e){a(this.#s,e)}},j=new class{#e=n(null);get current(){return s(this.#e)}set current(e){a(this.#e,e)}},je=new class{#e=n(!1);get current(){return s(this.#e)}set current(e){a(this.#e,e)}},we.v=()=>je.current=!0);function Pe(e){Object.assign(A,e)}var{onMount:Fe,tick:Ie}=o,Le=new Set([`icon`,`shortcut icon`,`apple-touch-icon`]),M=null,N=de(`sveltekit:scroll`)??{},P=de(`sveltekit:snapshot`)??{},F={url:Ce({}),page:Ce({}),navigating:r(null),updated:Te()};function Re(e){N[e]=T()}function ze(e,t){let n=e+1;for(;N[n];)delete N[n],n+=1;for(n=t+1;P[n];)delete P[n],n+=1}function I(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(h)}async function Be(){if(`serviceWorker`in navigator){let e=await navigator.serviceWorker.getRegistration(x||`/`);e&&await e.update()}}var Ve,He,L,R,Ue,z,We={},Ge={},B=[],V=[],H=null;function U(){H?.fork?.then(e=>e?.discard()),H=null,Q={element:void 0,href:void 0}}var Ke=new Map,qe=new Set,Je=new Set,W=new Set,G={branch:[],error:null,url:null,nav:null},Ye=!1,Xe=!1,Ze=!0,K=!1,q=!1,Qe=!1,$e=!1,et,J,Y,X,tt=new Set,nt=new Map,rt=new Map;async function it(e,t,n){if(globalThis.__sveltekit_jbnck.data){let{q:e={},p:t={},l:n={},f:r={}}=globalThis.__sveltekit_jbnck.data;for(let t in e)We[t]=e[t];for(let e in n)We[e]=n[e];for(let e in r)We[e]=r[e];for(let e in t)Ge[e]=t[e]}document.URL!==location.href&&(location.href=location.href),z=e,await e.hooks.init?.(),Ve=ue(e),R=document.documentElement,Ue=t,He=e.nodes[0],L=e.nodes[1],He(),L(),J=history.state?.[S],Y=history.state?.[C],J||(J=Y=Date.now(),history.replaceState({...history.state,[S]:J,[C]:Y},``));let r=N[J];function i(){r&&(history.scrollRestoration=`manual`,scrollTo(r.x,r.y))}n?(i(),await Ft(Ue,n)):(await Z({type:`enter`,url:ve(z.hash?Vt(new URL(location.href)):location.href),replace_state:!0}),i()),Pt()}function at(){B.length=0,$e=!1}function ot(e){V.some(e=>e?.snapshot)&&(P[e]=V.map(e=>e?.snapshot?.capture()))}function st(e){P[e]?.forEach((e,t)=>{V[t]?.snapshot?.restore(e)})}function ct(){Re(J),fe(he,N),ot(Y),fe(me,P)}async function lt(e,n,r,i){let a,o;n.invalidateAll&&U(),await Z({type:`goto`,url:ve(e),keepfocus:n.keepFocus,noscroll:n.noScroll,replace_state:n.replaceState,state:n.state,redirect_count:r,nav_token:i,accept:()=>{if(n.invalidateAll){$e=!0,a=new Set;for(let[e,t]of nt)for(let[n,r]of t)r.resource?.reset(),a.add(k(e,n));o=new Set;for(let[e,t]of rt)for(let n of t.keys())o.add(k(e,n))}n.invalidate&&n.invalidate.forEach(Nt)}}),n.invalidateAll&&t().then(t).then(()=>{for(let[e,t]of nt)for(let[n,{resource:r}]of t)a?.has(k(e,n))&&r.start();for(let[e,t]of rt)for(let[n,{resource:r}]of t)o?.has(k(e,n))&&r.reconnect()})}async function ut(e){if(e.id!==H?.id){U();let t={};tt.add(t),H={id:e.id,token:t,promise:bt({...e,preload:t}).then(e=>(tt.delete(t),e.type===`loaded`&&e.state.error&&U(),e)),fork:null}}return H.promise}async function dt(e){let t=(await wt(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(e=>e[1]()))}async function ft(e,t,n){let r={params:G.params,route:{id:G.route?.id??null},url:new URL(location.href)};if(G={...e.state,nav:r},Pe(e.props.page),et=new z.root({target:t,props:{...e.props,stores:F,components:V},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),n){let e={from:null,to:{...r,scroll:N[J]??T()},willUnload:!1,type:`enter`,complete:Promise.resolve()};W.forEach(t=>t(e))}st(Y),Xe=!0}async function pt({url:e,params:t,branch:n,errors:r,status:i,error:a,route:o,form:s}){let c=`never`;if(x&&(e.pathname===x||e.pathname===x+`/`))c=`always`;else for(let e of n)e?.slash!==void 0&&(c=e.slash);e.pathname=f(e.pathname,c),e.search=e.search;let l={type:`loaded`,state:{url:e,params:t,branch:n,error:a,route:o},props:{constructors:Oe(n).map(e=>e.node.component),page:Bt(A)}};s!==void 0&&(l.props.form=s);let u={},d=!A,p=0;for(let e=0;e<Math.max(n.length,G.branch.length);e+=1){let t=n[e],r=G.branch[e];t?.data!==r?.data&&(d=!0),t&&(u={...u,...t.data},d&&(l.props[`data_${p}`]=u),p+=1)}return(!G.url||e.href!==G.url.href||G.error!==a||s!==void 0&&s!==A.form||d)&&(l.props.page={error:a,params:t,route:{id:o?.id??null},state:{},status:i,url:new URL(e),form:s??null,data:d?u:A.data}),l}async function mt({loader:e,parent:t,url:n,params:r,route:i,server_data_node:a}){let o={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},s=await e();return{node:s,loader:e,server:a,universal:s.universal?.load?{type:`data`,data:null,uses:o}:null,data:a?.data??null,slash:s.universal?.trailingSlash??a?.slash}}function ht(e,t,n){let r=e instanceof Request?e.url:e,i=new URL(r,n);return i.origin===n.origin&&(r=i.href.slice(n.origin.length)),{resolved:i,promise:Xe?ne(r,i.href,t):y(r,t)}}function gt(e,t,n,r,i,a){if($e)return!0;if(!i)return!1;if(i.parent&&e||i.route&&t||i.url&&n)return!0;for(let e of i.search_params)if(r.has(e))return!0;for(let e of i.params)if(a[e]!==G.params[e])return!0;for(let e of i.dependencies)if(B.some(t=>t(new URL(e))))return!0;return!1}function _t(e,t){return e?.type===`data`?e:e?.type===`skip`?t??null:null}function vt(e,t){if(!e)return new Set(t.searchParams.keys());let n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(let r of n){let i=e.searchParams.getAll(r),a=t.searchParams.getAll(r);i.every(e=>a.includes(e))&&a.every(e=>i.includes(e))&&n.delete(r)}return n}function yt({error:e,url:t,route:n,params:r}){return{type:`loaded`,state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:Bt(A),constructors:[]}}}async function bt({id:e,invalidating:t,url:n,params:r,route:i,preload:a}){if(H?.id===e)return tt.delete(H.token),H.promise;let{errors:o,layouts:s,leaf:c}=i,d=[...s,c];o.forEach(e=>e?.().catch(h)),d.forEach(e=>e?.[1]().catch(h));let f=G.url?e!==Et(G.url):!1,p=G.route?i.id!==G.route.id:!1,ee=vt(G.url,n),m=!1,g=d.map(async(e,t)=>{if(!e)return;let a=G.branch[t];return e[1]===a?.loader&&!gt(m,p,f,ee,a.universal?.uses,r)?a:(m=!0,mt({loader:e[1],url:n,params:r,route:i,parent:async()=>{let e={};for(let n=0;n<t;n+=1)Object.assign(e,(await g[n])?.data);return e},server_data_node:_t(e[0]?{type:`skip`}:null,e[0]?a?.server:void 0)}))});for(let e of g)e.catch(h);let _=[];for(let e=0;e<d.length;e+=1)if(d[e])try{_.push(await g[e])}catch(t){if(t instanceof u)return{type:`redirect`,location:t.location};if(a&&tt.has(a))return yt({error:await $(t,{params:r,url:n,route:{id:i.id}}),url:n,params:r,route:i});let s=ke(t),c;if(t instanceof l)c=t.body;else{if(await F.updated.check())return await Be(),await I(n);c=await $(t,{params:r,url:n,route:{id:i.id}})}let d=await xt(e,_,o);return d?pt({url:n,params:r,branch:_.slice(0,d.idx).concat(d.node),errors:o,status:s,error:c,route:i}):await Ot(n,{id:i.id},c,s)}else _.push(void 0);return pt({url:n,params:r,branch:_,errors:o,status:200,error:null,route:i,form:t?void 0:null})}async function xt(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)--r;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function St({status:e,error:t,url:n,route:r}){let i={};try{return pt({url:n,params:i,branch:[await mt({loader:He,url:n,params:i,route:r,parent:()=>Promise.resolve({}),server_data_node:_t(null)}),{node:await L(),loader:L,universal:null,server:null,data:null}],status:e,error:t,errors:[],route:null})}catch(t){if(t instanceof u){await lt(new URL(t.location,location.href),{},0);return}let a=await z.get_error_template(),o=await $(t,{url:n,params:i,route:r}),s=a({status:e,message:String(o?.message??``).replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}),c=new DOMParser().parseFromString(s,`text/html`);throw document.documentElement.replaceChild(document.adoptNode(c.head),document.head),document.documentElement.replaceChild(document.adoptNode(c.body),document.body),t}}async function Ct(e){let t=e.href;if(Ke.has(t))return Ke.get(t);let n;try{let r=(async()=>{let t=await z.hooks.reroute({url:new URL(e),fetch:async(t,n)=>ht(t,n,e).promise})??e;if(typeof t==`string`){let n=new URL(e);z.hash?n.hash=t:n.pathname=t,t=n}return t})();Ke.set(t,r),n=await r}catch{Ke.delete(t);return}return n}async function wt(e,t){if(e&&!O(e,x,z.hash)){let n=await Ct(e);if(!n)return;let r=Tt(n);for(let n of Ve){let i=n.exec(r);if(i)return{id:Et(e),invalidating:t,route:n,params:ee(i),url:e}}}}function Tt(e){return p(z.hash?e.hash.replace(/^#/,``).replace(/[?#].+/,``):e.pathname.slice(x.length))||`/`}function Et(e){return(z.hash?e.hash.replace(/^#/,``):e.pathname)+e.search}function Dt({url:e,type:t,intent:n,delta:r,event:i,scroll:a}){let o=!1,s=zt(G,n,e,t,a??null);r!==void 0&&(s.navigation.delta=r),i!==void 0&&(s.navigation.event=i);let c={...s.navigation,cancel:()=>{o=!0,s.reject(Error(`navigation cancelled`))}};return K||qe.forEach(e=>e(c)),o?null:s}async function Z({type:n,url:r,popped:i,keepfocus:a,noscroll:o,replace_state:s,state:c={},redirect_count:l=0,nav_token:u={},accept:f=h,block:p=h,event:ee}){let m=X;X=u;let g=await wt(r,!1),_=n===`enter`?zt(G,g,r,n):Dt({url:r,type:n,delta:i?.delta,intent:g,scroll:i?.scroll,event:ee});if(!_){p(),X===u&&(X=m);return}let te=J,v=Y;f(),K=!0,Xe&&_.navigation.type!==`enter`&&F.navigating.set(j.current=_.navigation);let y=g&&await bt(g);if(!y){if(O(r,x,z.hash))return await I(r,s);y=await Ot(r,{id:null},await $(new d(404,`Not Found`,`Not found: ${r.pathname}`),{url:r,params:{},route:{id:null}}),404,s)}if(r=g?.url||r,X!==u){_.reject(Error(`navigation aborted`));return}if(!y)return;if(y.type===`redirect`){if(l<20){await Z({type:n,url:new URL(y.location,r),popped:i,keepfocus:a,noscroll:o,replace_state:s,state:c,redirect_count:l+1,nav_token:u}),_.fulfil(void 0);return}if(y=await St({status:500,error:await $(Error(`Redirect loop`),{url:r,params:{},route:{id:null}}),url:r,route:{id:null}}),!y)return}else if(y.props.page.status>=400&&await F.updated.check())return await Be(),await I(r,s);if(at(),Re(te),ot(v),y.props.page.url.pathname!==r.pathname&&(r.pathname=y.props.page.url.pathname),c=i?i.state:c,!i){let e=+!s,t={[S]:J+=e,[C]:Y+=e,[ge]:c};(s?history.replaceState:history.pushState).call(history,t,``,r),s||ze(J,Y)}let ne=g&&H?.id===g.id?H.fork:null;H?.fork&&!ne?U():(H=null,Q={element:void 0,href:void 0}),y.props.page.state=c;let b;if(Xe){let t=(await Promise.all(Array.from(Je,e=>e(_.navigation)))).filter(e=>typeof e==`function`);if(t.length>0){function e(){t.forEach(e=>{W.delete(e)})}t.push(e),t.forEach(e=>{W.add(e)})}let n=_.navigation.to;G={...y.state,nav:{params:n.params,route:n.route,url:n.url}},y.props.page&&(y.props.page.url=r),!a&&document.activeElement instanceof HTMLElement&&document.activeElement!==document.body&&document.activeElement.blur();let i=ne&&await ne;i?b=i.commit():(M=null,et.$set(y.props),M&&Object.assign(y.props.page,M),Pe(y.props.page),b=e?.()),Qe=!0}else await ft(y,Ue,!1);let{activeElement:re}=document;if(await b,await t(),await t(),X!==u){_.reject(Error(`navigation aborted`));return}y.props.page&&M&&Object.assign(y.props.page,M);let ie=null;if(Ze){let e=i?i.scroll:o?T():null;e?scrollTo(e.x,e.y):(ie=r.hash&&document.getElementById(Ht(r)))?ie.scrollIntoView():scrollTo(0,0)}let ae=document.activeElement!==re&&document.activeElement!==document.body;!a&&!ae&&Rt(r,!ie),Ze=!0,K=!1,_.fulfil(void 0),_.navigation.to&&(_.navigation.to.scroll=T()),W.forEach(e=>e(_.navigation)),n===`popstate`&&st(Y),F.navigating.set(j.current=null)}async function Ot(e,t,n,r,i){return e.origin===_e&&e.pathname===location.pathname&&!Ye?await St({status:r,error:n,url:e,route:t}):await I(e,i)}var Q={element:void 0,href:void 0};function kt(){let e,t;R.addEventListener(`mousemove`,t=>{let n=t.target;clearTimeout(e),e=setTimeout(()=>{i(n,w.hover)},20)});function n(e){e.defaultPrevented||i(e.composedPath()[0],w.tap)}R.addEventListener(`mousedown`,n),R.addEventListener(`touchstart`,n,{passive:!0});let r=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&(dt(new URL(t.target.href)),r.unobserve(t.target))},{threshold:0});async function i(e,n){let r=xe(e,R),i=r===Q.element&&r?.href===Q.href&&n>=t;if(!r||i)return;let{url:a,external:o,download:s}=Se(r,x,z.hash);if(o||s)return;let c=D(r),l=a&&Et(G.url)===Et(a);if(!(c.reload||l)){if(n<=c.preload_data){Q={element:r,href:r.href},t=w.tap;let e=await wt(a,!1);if(!e)return;ut(e)}else n<=c.preload_code&&(Q={element:r,href:r.href},t=n,dt(a))}}function a(){r.disconnect();for(let e of R.querySelectorAll(`a`)){let{url:t,external:n,download:i}=Se(e,x,z.hash);if(n||i)continue;let a=D(e);a.reload||(a.preload_code===w.viewport&&r.observe(e),a.preload_code===w.eager&&dt(t))}}W.add(a),a()}function $(e,t){if(e instanceof l)return e.body;let n=ke(e),r=Ae(e);return z.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function At(e,t){Fe(()=>(e.add(t),()=>{e.delete(t)}))}function jt(e){At(Je,e)}function Mt(e,t={}){return e=new URL(ve(e)),e.origin===_e?lt(e,t,0):Promise.reject(Error(`goto: invalid URL`))}function Nt(e){if(typeof e==`function`)B.push(e);else{let{href:t}=new URL(e,location.href);B.push(e=>e.href===t)}}function Pt(){history.scrollRestoration=`manual`,addEventListener(`beforeunload`,e=>{let t=!1;if(ct(),!K){let e=zt(G,void 0,null,`leave`),n={...e.navigation,cancel:()=>{t=!0,e.reject(Error(`navigation cancelled`))}};qe.forEach(e=>e(n))}t?(e.preventDefault(),e.returnValue=``):history.scrollRestoration=`auto`}),addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`&&ct()}),navigator.connection?.saveData||kt(),R.addEventListener(`click`,async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;let n=xe(t.composedPath()[0],R);if(!n)return;let{url:r,external:i,target:a,download:o}=Se(n,x,z.hash);if(!r)return;if(a===`_parent`||a===`_top`){if(window.parent!==window)return}else if(a&&a!==`_self`)return;let s=D(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&r.protocol!==`https:`&&r.protocol!==`http:`||o)return;let[c,l]=(z.hash?r.hash.replace(/^#/,``):r.href).split(`#`),u=c===m(location);if(i||s.reload&&(!u||!l)){Dt({url:r,type:`link`,event:t})?K=!0:t.preventDefault();return}if(l!==void 0&&u){let[,i]=G.url.href.split(`#`);if(i===l){if(t.preventDefault(),l===``||l===`top`&&n.ownerDocument.getElementById(`top`)===null)scrollTo({top:0});else{let e=n.ownerDocument.getElementById(decodeURIComponent(l));e&&(e.scrollIntoView(),e.focus())}return}if(q=!0,Re(J),e(r),!s.replace_state)return;q=!1}t.preventDefault(),await new Promise(e=>{requestAnimationFrame(()=>{setTimeout(e,0)}),setTimeout(e,100)}),await Z({type:`link`,url:r,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??r.href===location.href,event:t})}),R.addEventListener(`submit`,e=>{if(e.defaultPrevented)return;let t=HTMLFormElement.prototype.cloneNode.call(e.target),n=e.submitter;if((n?.formTarget||t.target)===`_blank`||(n?.formMethod||t.method)!==`get`)return;let r=new URL(n?.hasAttribute(`formaction`)&&n?.formAction||t.action);if(O(r,x,!1))return;let i=e.target,a=D(i);if(a.reload)return;e.preventDefault(),e.stopPropagation();let o=new FormData(i,n);r.search=new URLSearchParams(o).toString(),Z({type:`form`,url:r,keepfocus:a.keepfocus,noscroll:a.noscroll,replace_state:a.replace_state??r.href===location.href,event:e})}),addEventListener(`popstate`,async t=>{if(!Lt){if(t.state?.[`sveltekit:history`]){let n=t.state[S];if(X={},n===J)return;let r=N[n],i=t.state[`sveltekit:states`]??{},a=new URL(t.state[`sveltekit:pageurl`]??location.href),o=t.state[C],s=G.url?m(location)===m(G.url):!1;if(o===Y&&(Qe||s)){i!==A.state&&(A.state=i),e(a),N[J]=T(),r&&scrollTo(r.x,r.y),J=n;return}let c=n-J;await Z({type:`popstate`,url:a,popped:{state:i,scroll:r,delta:c},accept:()=>{J=n,Y=o},block:()=>{history.go(-c)},nav_token:X,event:t})}else q||(e(new URL(location.href)),z.hash&&location.reload())}}),addEventListener(`hashchange`,()=>{q&&(q=!1,history.replaceState({...history.state,[S]:++J,[C]:Y},``,location.href))});for(let e of document.querySelectorAll(`link`))Le.has(e.rel)&&(e.href=e.href);addEventListener(`pageshow`,e=>{e.persisted&&F.navigating.set(j.current=null)});function e(e){G.url=A.url=e,F.page.set(Bt(A)),F.page.notify()}}async function Ft(e,{status:t=200,error:n,node_ids:r,params:i,route:a,server_route:o,data:s,form:c}){Ye=!0;let l=new URL(location.href),d;({params:i={},route:a={id:null}}=await wt(l,!1)||{}),d=Ve.find(({id:e})=>e===a.id);let f,p=!0;try{let e=r.map(async(t,n)=>{let r=s[n];return r?.uses&&(r.uses=It(r.uses)),mt({loader:z.nodes[t],url:l,params:i,route:a,parent:async()=>{let t={};for(let r=0;r<n;r+=1)Object.assign(t,(await e[r]).data);return t},server_data_node:_t(r)})}),o=await Promise.all(e);if(d){let e=d.layouts;for(let t=0;t<e.length;t++)e[t]||o.splice(t,0,void 0)}f=await pt({url:l,params:i,branch:o,status:t,error:n,errors:d?.errors,form:c,route:d??null})}catch(t){if(t instanceof u)return await I(new URL(t.location,location.href));f=await St({status:ke(t),error:await $(t,{url:l,params:i,route:a}),url:l,route:a}),e.textContent=``,p=!1}f&&(f.props.page&&(f.props.page.state={}),await ft(f,e,p))}function It(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??[])}}var Lt=!1;function Rt(e,t=!0){let n=document.querySelector(`[autofocus]`);if(n)n.focus();else{let n=Ht(e);if(n&&document.getElementById(n)){let{x:r,y:i}=T();setTimeout(()=>{let a=history.state;Lt=!0,location.replace(new URL(`#${n}`,location.href)),history.replaceState(a,``,e),t&&scrollTo(r,i),Lt=!1})}else{let e=document.body,t=e.getAttribute(`tabindex`);e.tabIndex=-1,e.focus({preventScroll:!0,focusVisible:!1}),t===null?e.removeAttribute(`tabindex`):e.setAttribute(`tabindex`,t)}let r=getSelection();if(r&&r.type!==`None`){let e=[];for(let t=0;t<r.rangeCount;t+=1)e.push(r.getRangeAt(t));setTimeout(()=>{if(r.rangeCount===e.length){for(let t=0;t<r.rangeCount;t+=1){let n=e[t],i=r.getRangeAt(t);if(n.commonAncestorContainer!==i.commonAncestorContainer||n.startContainer!==i.startContainer||n.endContainer!==i.endContainer||n.startOffset!==i.startOffset||n.endOffset!==i.endOffset)return}r.removeAllRanges()}})}}}function zt(e,t,n,r,i=null){let a,o,s=new Promise((e,t)=>{a=e,o=t});return s.catch(h),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:T()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:i},willUnload:!t,type:r,complete:s},fulfil:a,reject:o}}function Bt(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 Vt(e){let t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function Ht(e){let t;if(z.hash){let[,,n]=e.hash.split(`#`,3);t=n??``}else t=e.hash.slice(1);return decodeURIComponent(t)}export{A as a,j as i,jt as n,Ee as o,it as r,x as s,Mt as t};