@toa.io/extensions.exposition 1.0.0-alpha.309 → 1.0.0-alpha.310

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 (30) hide show
  1. package/components/exposition.octets/package.json +2 -2
  2. package/package.json +10 -10
  3. package/transpiled/Announcements.d.ts +26 -0
  4. package/transpiled/Announcements.js +34 -0
  5. package/transpiled/Announcements.js.map +1 -0
  6. package/transpiled/Factory.d.ts +9 -0
  7. package/transpiled/Factory.js +23 -2
  8. package/transpiled/Factory.js.map +1 -1
  9. package/transpiled/HTTP/messages.js +18 -11
  10. package/transpiled/HTTP/messages.js.map +1 -1
  11. package/transpiled/Tenant.d.ts +4 -6
  12. package/transpiled/Tenant.js +10 -6
  13. package/transpiled/Tenant.js.map +1 -1
  14. package/ui/dist/_app/immutable/chunks/{rVcvrprD.js → BCJPed3-.js} +2 -2
  15. package/ui/dist/_app/immutable/chunks/BDuDJR9X.js +1 -0
  16. package/ui/dist/_app/immutable/chunks/{C5Gh4akx.js → BFtcFZWO.js} +1 -1
  17. package/ui/dist/_app/immutable/chunks/{56yC_-AY.js → ck6CK-dV.js} +1 -1
  18. package/ui/dist/_app/immutable/entry/{app.D8C20MS-.js → app.CwA5shUx.js} +2 -2
  19. package/ui/dist/_app/immutable/entry/start.BxffyCG_.js +1 -0
  20. package/ui/dist/_app/immutable/nodes/{0.B6c2uOkR.js → 0.BFAzzuc1.js} +1 -1
  21. package/ui/dist/_app/immutable/nodes/{1.BVPsxlaQ.js → 1.3yaVV_1F.js} +1 -1
  22. package/ui/dist/_app/immutable/nodes/{2.BAtWW734.js → 2.B023p_6N.js} +1 -1
  23. package/ui/dist/_app/immutable/nodes/{3.CsLFX9dt.js → 3.DqbaMF3I.js} +1 -1
  24. package/ui/dist/_app/immutable/nodes/{4.sX-4H5Mv.js → 4.CoCUKIsu.js} +1 -1
  25. package/ui/dist/_app/immutable/nodes/{5.Bm-aLOX9.js → 5.CTjWt55g.js} +1 -1
  26. package/ui/dist/_app/immutable/nodes/{6.BgLVDdlM.js → 6.DArHyhJL.js} +1 -1
  27. package/ui/dist/_app/version.json +1 -1
  28. package/ui/dist/index.html +10 -10
  29. package/ui/dist/_app/immutable/chunks/Bv_eEfLr.js +0 -1
  30. package/ui/dist/_app/immutable/entry/start.C1-9hOoO.js +0 -1
@@ -1,4 +1,4 @@
1
- import{$ as e,A as t,At as n,C as r,Ct as i,E as a,F as o,J as s,M as c,Mt as l,N as u,O as d,Ot as f,P as p,Q as m,R as h,S as g,St as _,V as v,Y as y,a as b,b as x,c as S,d as C,dt as w,et as T,f as E,ft as D,h as O,ht as ee,i as k,it as A,j,kt as M,m as N,n as P,nt as F,o as I,ot as L,pt as te,st as R,tt as z,ut as ne,w as re,x as B,z as ie}from"../chunks/BVDJTrf4.js";import{n as ae}from"../chunks/Bv_eEfLr.js";import"../chunks/xihTtKlq.js";import{A as oe,B as se,C as ce,D as V,H as le,S as ue,U as de,V as fe,_ as pe,b as me,c as he,d as ge,f as _e,g as ve,h as ye,i as be,j as xe,l as Se,m as Ce,n as we,p as Te,s as Ee,t as De,u as Oe,w as ke,y as Ae,z as je}from"../chunks/rVcvrprD.js";import{$ as Me,A as Ne,B as Pe,C as Fe,D as Ie,F as Le,G as H,H as Re,I as ze,J as Be,K as Ve,L as He,M as Ue,N as We,O as Ge,P as U,Q as W,R as Ke,S as qe,T as Je,U as Ye,V as G,W as Xe,X as Ze,Y as Qe,Z as $e,_ as et,b as tt,c as nt,d as rt,et as K,g as it,h as at,j as ot,k as st,l as ct,m as lt,nt as ut,o as dt,p as ft,q as pt,t as mt,tt as q,u as ht,v as gt,w as _t,x as vt,y as J,z as yt}from"../chunks/56yC_-AY.js";function bt(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 xt=new Set([`$$slots`,`$$events`,`$$legacy`]);function St(e,t){let n=b(t,xt),r=[[`path`,{d:`M14 8a1 1 0 0 1 1 1v2a1 1 0 0 0 1 1h3.293a.707.707 0 0 1 .5 1.207l-6.939 6.939a1.207 1.207 0 0 1-1.708 0l-6.94-6.94a.707.707 0 0 1 .5-1.206H8a1 1 0 0 0 1-1V9a1 1 0 0 1 1-1z`}],[`path`,{d:`M9 4h6`}]];V(e,I({name:`arrow-big-down-dash`},()=>n,{get iconNode(){return r}}))}var Ct=new Set([`$$slots`,`$$events`,`$$legacy`]);function wt(e,t){let n=b(t,Ct),r=[[`path`,{d:`M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z`}],[`circle`,{cx:`12`,cy:`12`,r:`4`}]];V(e,I({name:`bolt`},()=>n,{get iconNode(){return r}}))}var Tt=new Set([`$$slots`,`$$events`,`$$legacy`]);function Et(e,t){let n=b(t,Tt),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`}]];V(e,I({name:`log-out`},()=>n,{get iconNode(){return r}}))}var Dt=new Set([`$$slots`,`$$events`,`$$legacy`]);function Ot(e,t){let n=b(t,Dt),r=[[`path`,{d:`m21 21-4.34-4.34`}],[`circle`,{cx:`11`,cy:`11`,r:`8`}]];V(e,I({name:`search`},()=>n,{get iconNode(){return r}}))}var kt=new Set([`$$slots`,`$$events`,`$$legacy`]);function At(e,t){let n=b(t,kt),r=[[`path`,{d:`M20 11v6`}],[`path`,{d:`M20 13h2`}],[`path`,{d:`M3 21v-2a4 4 0 0 1 4-4h6a4 4 0 0 1 2.072.578`}],[`circle`,{cx:`10`,cy:`7`,r:`4`}],[`circle`,{cx:`20`,cy:`19`,r:`2`}]];V(e,I({name:`user-key`},()=>n,{get iconNode(){return r}}))}var jt=new Set([`$$slots`,`$$events`,`$$legacy`]);function Mt(e,t){let n=b(t,jt),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`}]];V(e,I({name:`waypoints`},()=>n,{get iconNode(){return r}}))}var Nt={"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`}}}},Y=ee(we,e=>Nt[e]),Pt=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Ft=c(`<div><!></div>`);function It(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,Pt);var c=Ft();C(c,e=>({"data-slot":`card-content`,class:e,...s}),[()=>q(`px-(--card-spacing)`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var Lt=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Rt=c(`<p><!></p>`);function zt(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,Lt);var c=Rt();C(c,e=>({"data-slot":`card-description`,class:e,...s}),[()=>q(`text-sm text-muted-foreground`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var Bt=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Vt=c(`<div><!></div>`);function Ht(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,Bt);var c=Vt();C(c,e=>({"data-slot":`card-footer`,class:e,...s}),[()=>q(`rounded-b-xl border-t bg-muted/50 p-(--card-spacing) flex items-center`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var Ut=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Wt=c(`<div><!></div>`);function Gt(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,Ut);var c=Wt();C(c,e=>({"data-slot":`card-header`,class:e,...s}),[()=>q(`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]`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var Kt=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),qt=c(`<div><!></div>`);function Jt(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,Kt);var c=qt();C(c,e=>({"data-slot":`card-title`,class:e,...s}),[()=>q(`text-base leading-snug font-medium group-data-[size=sm]/card:text-sm`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var Yt=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`,`size`]),Xt=c(`<div><!></div>`);function Zt(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=k(a,`size`,3,`default`),c=b(a,Yt);var l=Xt();C(l,e=>({"data-slot":`card`,"data-size":s(),class:e,...c}),[()=>q(`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`,a.class)]);var u=e(l);B(u,()=>a.children??n),M(l),S(l,e=>o(e),()=>o()),t(r,l),_()}var Qt=new Set([`$$slots`,`$$events`,`$$legacy`]);function $t(e,t){let n=b(t,Qt),r=[[`path`,{d:`M5 12h14`}],[`path`,{d:`m12 5 7 7-7 7`}]];V(e,I({name:`arrow-right`},()=>n,{get iconNode(){return r}}))}var en=c(`<div><!></div>`);function tn(n,r){i(r,!0);let a=L(!1);async function o(){A(a,!0),await new Promise(e=>setTimeout(e,500)),A(a,!1)}var c={shake:o},l=en(),u=e(l);return B(u,()=>r.children),M(l),s(()=>N(l,1,O([r.class,v(a)&&`shake`]),`svelte-alh7mr`)),t(n,l),_(c)}function X(e){let t=L(F(e));return{[Re]:!0,[Be]:!0,get current(){return v(t)},set current(e){A(t,e,!0)}}}X.from=Xe,X.with=H,X.flatten=Ye,X.readonly=Ze,X.isBox=Ve,X.isWritableBox=pt;function nn(e){return window.getComputedStyle(e).getPropertyValue(`direction`)}var rn=[qe,st,Ie],an=[Je,Ge,`End`];[...rn,...an];function on(e=`ltr`,t=`horizontal`){return{horizontal:e===`rtl`?Fe:_t,vertical:qe}[t]}function sn(e=`ltr`,t=`horizontal`){return{horizontal:e===`rtl`?_t:Fe,vertical:Je}[t]}function cn(e=`ltr`,t=`horizontal`){return[`ltr`,`rtl`].includes(e)||(e=`ltr`),[`horizontal`,`vertical`].includes(t)||(t=`horizontal`),{nextKey:on(e,t),prevKey:sn(e,t)}}var ln=class{#e;#t=X(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}=cn(nn(r),this.#e.orientation.current),c=this.#e.loop.current,l={[o]:a+1,[s]:a-1,[Ie]:0,End:i.length-1};if(n){let e=o===`ArrowDown`?_t:qe,t=s===`ArrowUp`?Fe:Je;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||!vt(t)||t.focus()}},un=18,dn=40,fn=`${dn}px`,pn=[`[data-lastpass-icon-root]`,`com-1password-button`,`[data-dashlanecreated]`,`[style$="2147483647 !important;"]`].join(`,`);function mn({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r,domContext:i}){let a=L(!1),o=L(!1),s=L(!1);function c(){let e=n.current;return e!==`none`&&e===`increase-width`&&v(a)&&v(o)}function l(){let r=e.current,o=t.current;if(!r||!o||v(s)||n.current===`none`)return;let c=r,l=c.getBoundingClientRect().left+c.offsetWidth,u=c.getBoundingClientRect().top+c.offsetHeight/2,d=l-un,f=u;(i.querySelectorAll(pn).length!==0||i.getDocument().elementFromPoint(d,f)!==r)&&(A(a,!0),A(s,!0))}return y(()=>{let t=e.current;if(!t||n.current===`none`)return;function r(){let e=ze(t).innerWidth-t.getBoundingClientRect().right;A(o,e>=dn)}r();let i=setInterval(r,1e3);return()=>{clearInterval(i)}}),y(()=>{let e=r.current||i.getActiveElement()===t.current;if(n.current===`none`||!e)return;let a=setTimeout(l,0),o=setTimeout(l,2e3),c=setTimeout(l,5e3),u=setTimeout(()=>{A(s,!0)},6e3);return()=>{clearTimeout(a),clearTimeout(o),clearTimeout(c),clearTimeout(u)}}),{get hasPwmBadge(){return v(a)},get willPushPwmBadge(){return c()},PWM_BADGE_SPACE_WIDTH:fn}}var hn=`^\\d+$`,gn=We({component:`pin-input`,parts:[`root`,`cell`]}),_n=[`Backspace`,`Delete`,`ArrowLeft`,`ArrowRight`,`ArrowUp`,`ArrowDown`,`Home`,`End`,`Escape`,`Enter`,`Tab`,`Shift`,`Control`,`Meta`],vn=class e{static create(t){return new e(t)}opts;attachment;inputAttachment;#e=L(!1);#t=Qe(!1);#n=L(null);#r=L(null);#i=new He(()=>this.opts.value.current??``);#a=R(()=>typeof this.opts.pattern.current==`string`?new RegExp(this.opts.pattern.current):this.opts.pattern.current);#o=L(F({prev:[null,null,`none`],willSyntheticBlur:!1}));#s;#c;domContext;constructor(e){this.opts=e,this.attachment=U(this.opts.ref),this.inputAttachment=U(this.opts.inputRef),this.domContext=new Le(e.ref),this.#c={value:this.opts.value,isIOS:typeof window<`u`&&window?.CSS?.supports(`-webkit-touch-callout`,`none`)},this.#s=mn({containerRef:this.opts.ref,inputRef:this.opts.inputRef,isFocused:this.#t,pushPasswordManagerStrategy:this.opts.pushPasswordManagerStrategy,domContext:this.domContext}),P(()=>{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),v(this.#o).prev=[e.selectionStart,e.selectionEnd,e.selectionDirection??`none`];let n=ie(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()}}),Ke([()=>this.opts.value.current,()=>this.opts.inputRef.current],()=>{bn(()=>{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&&(A(this.#n,t,!0),A(this.#r,n,!0),v(this.#o).prev=[t,n,r])},this.domContext)}),y(()=>{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;_n.includes(t)||e.ctrlKey||e.metaKey||t&&v(this.#a)&&!v(this.#a).test(t)&&e.preventDefault()};#l=R(()=>({position:`relative`,cursor:this.opts.disabled.current?`default`:`text`,userSelect:`none`,WebkitUserSelect:`none`,pointerEvents:`none`}));#u=R(()=>({id:this.opts.id.current,[gn.root]:``,style:v(this.#l),...this.attachment}));get rootProps(){return v(this.#u)}set rootProps(e){A(this.#u,e)}#d=R(()=>({style:{position:`absolute`,inset:0,pointerEvents:`none`}}));get inputWrapperProps(){return v(this.#d)}set inputWrapperProps(e){A(this.#d,e)}#f=R(()=>({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;`;Z(t.sheet,`[data-pin-input-input]::selection { background: transparent !important; color: transparent !important; }`),Z(t.sheet,`[data-pin-input-input]:autofill { ${e} }`),Z(t.sheet,`[data-pin-input-input]:-webkit-autofill { ${e} }`),Z(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; } }`),Z(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){A(this.#n,null),A(this.#r,null);return}let n=e.selectionStart,r=e.selectionEnd,i=e.selectionDirection??`none`,a=e.maxLength,o=e.value,s=v(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;A(this.#n,d,!0),A(this.#r,f,!0),v(this.#o).prev=[d,f,p]};oninput=e=>{let t=e.currentTarget.value.slice(0,this.opts.maxLength.current);if(t.length>0&&v(this.#a)&&!v(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),A(this.#n,e,!0),A(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&&v(this.#a)&&!v(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),A(this.#n,s,!0),A(this.#r,c,!0)};onmouseover=e=>{A(this.#e,!0)};onmouseleave=e=>{A(this.#e,!1)};onblur=e=>{if(v(this.#o).willSyntheticBlur){v(this.#o).willSyntheticBlur=!1;return}this.#t.current=!1};#h=R(()=>({id:this.opts.inputId.current,style:v(this.#f),autocomplete:this.opts.autocomplete.current||`one-time-code`,"data-pin-input-input":``,"data-pin-input-input-mss":v(this.#n),"data-pin-input-input-mse":v(this.#r),inputmode:this.opts.inputmode.current,pattern:v(this.#a)?.source,maxlength:this.opts.maxLength.current,value:this.opts.value.current,disabled:Ue(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 v(this.#h)}set inputProps(e){A(this.#h,e)}#g=R(()=>Array.from({length:this.opts.maxLength.current}).map((e,t)=>{let n=this.#t.current&&v(this.#n)!==null&&v(this.#r)!==null&&(v(this.#n)===v(this.#r)&&t===v(this.#n)||t>=v(this.#n)&&t<v(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}}));#_=R(()=>({cells:v(this.#g),isFocused:this.#t.current,isHovering:v(this.#e)}));get snippetProps(){return v(this.#_)}set snippetProps(e){A(this.#_,e)}},yn=class e{static create(t){return new e(t)}opts;attachment;constructor(e){this.opts=e,this.attachment=U(this.opts.ref)}#e=R(()=>({id:this.opts.id.current,[gn.cell]:``,"data-active":this.opts.cell.current.isActive?``:void 0,"data-inactive":this.opts.cell.current.isActive?void 0:``,...this.attachment}));get props(){return v(this.#e)}set props(e){A(this.#e,e)}};function bn(e,t){return[t.setTimeout(e,0),t.setTimeout(e,10),t.setTimeout(e,50)]}function Z(e,t){try{e.insertRule(t)}catch{console.error(`pin input could not insert CSS rule:`,t)}}var xn=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`inputId`,`ref`,`inputRef`,`maxlength`,`textalign`,`pattern`,`inputmode`,`onComplete`,`pushPasswordManagerStrategy`,`class`,`children`,`autocomplete`,`disabled`,`value`,`onValueChange`,`pasteTransformer`]),Sn=c(`<div><!> <div><input/></div></div>`);function Cn(r,a){let o=p();i(a,!0);let s=k(a,`id`,19,()=>J(o)),c=k(a,`inputId`,19,()=>`${J(o)}-input`),l=k(a,`ref`,15,null),u=k(a,`inputRef`,15,null),d=k(a,`maxlength`,3,6),f=k(a,`textalign`,3,`left`),m=k(a,`inputmode`,3,`numeric`),h=k(a,`onComplete`,3,tt),g=k(a,`pushPasswordManagerStrategy`,3,`increase-width`),y=k(a,`class`,3,``),x=k(a,`autocomplete`,3,`one-time-code`),S=k(a,`disabled`,3,!1),w=k(a,`value`,15,``),T=k(a,`onValueChange`,3,tt),E=b(a,xn),D=vn.create({id:H(()=>s()),ref:H(()=>l(),e=>l(e)),inputRef:H(()=>u(),e=>u(e)),inputId:H(()=>c()),autocomplete:H(()=>x()),maxLength:H(()=>d()),textAlign:H(()=>f()),disabled:H(()=>S()),inputmode:H(()=>m()),pattern:H(()=>a.pattern),onComplete:H(()=>h()),value:H(()=>w(),e=>{w(e),T()(e)}),pushPasswordManagerStrategy:H(()=>g()),pasteTransformer:H(()=>a.pasteTransformer)}),O=R(()=>G(E,D.inputProps)),ee=R(()=>G(D.rootProps,{class:y()})),A=R(()=>G(D.inputWrapperProps,{}));var j=Sn();C(j,()=>({...v(ee)}));var N=e(j);B(N,()=>a.children??n,()=>D.snippetProps);var P=z(N,2);C(P,()=>({...v(A)}));var F=e(P);C(F,()=>({...v(O)}),void 0,void 0,void 0,void 0,!0),M(P),M(j),t(r,j),_()}var wn=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`cell`,`child`,`children`]),Tn=c(`<div><!></div>`);function En(r,o){let s=p();i(o,!0);let c=k(o,`id`,19,()=>J(s)),l=k(o,`ref`,15,null),u=b(o,wn),d=yn.create({id:H(()=>c()),ref:H(()=>l(),e=>l(e)),cell:H(()=>o.cell)}),f=R(()=>G(u,d.props));var m=j(),h=T(m),g=e=>{var n=j(),r=T(n);B(r,()=>o.child,()=>({props:v(f)})),t(e,n)},y=r=>{var i=Tn();C(i,()=>({...v(f)}));var a=e(i);B(a,()=>o.children??n),M(i),t(r,i)};a(h,e=>{o.child?e(g):e(y,-1)}),t(r,m),_()}var Dn=We({component:`tabs`,parts:[`root`,`list`,`trigger`,`content`]}),On=new yt(`Tabs.Root`),kn=class e{static create(t){return On.set(new e(t))}opts;attachment;rovingFocusGroup;#e=L(F([]));get triggerIds(){return v(this.#e)}set triggerIds(e){A(this.#e,e,!0)}valueToTriggerId=new Pe;valueToContentId=new Pe;constructor(e){this.opts=e,this.attachment=U(e.ref),this.rovingFocusGroup=new ln({candidateAttr:Dn.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=R(()=>({id:this.opts.id.current,"data-orientation":this.opts.orientation.current,[Dn.root]:``,...this.attachment}));get props(){return v(this.#t)}set props(e){A(this.#t,e)}},An=class e{static create(t){return new e(t,On.get())}opts;root;attachment;#e=R(()=>this.root.opts.disabled.current);constructor(e,t){this.opts=e,this.root=t,this.attachment=U(e.ref)}#t=R(()=>({id:this.opts.id.current,role:`tablist`,"aria-orientation":this.root.opts.orientation.current,"data-orientation":this.root.opts.orientation.current,[Dn.list]:``,"data-disabled":Ne(v(this.#e)),...this.attachment}));get props(){return v(this.#t)}set props(e){A(this.#t,e)}},jn=class e{static create(t){return new e(t,On.get())}opts;root;attachment;#e=L(0);#t=R(()=>this.root.opts.value.current===this.opts.value.current);#n=R(()=>this.opts.disabled.current||this.root.opts.disabled.current);#r=R(()=>this.root.valueToContentId.get(this.opts.value.current));constructor(e,t){this.opts=e,this.root=t,this.attachment=U(e.ref),Ke([()=>this.opts.id.current,()=>this.opts.value.current],([e,t])=>this.root.registerTrigger(e,t)),y(()=>{this.root.triggerIds.length,v(this.#t)||!this.root.opts.value.current?A(this.#e,0):A(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`||v(this.#n)||this.#i()}onclick(e){v(this.#n)||this.#i()}onkeydown(e){if(!v(this.#n)){if(e.key===` `||e.key===`Enter`){e.preventDefault(),this.#i();return}this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current,e)}}#a=R(()=>({id:this.opts.id.current,role:`tab`,"data-state":Nn(v(this.#t)),"data-value":this.opts.value.current,"data-orientation":this.root.opts.orientation.current,"data-disabled":Ne(v(this.#n)),"aria-selected":ot(v(this.#t)),"aria-controls":v(this.#r),[Dn.trigger]:``,disabled:Ue(v(this.#n)),tabindex:v(this.#e),onclick:this.onclick,onfocus:this.onfocus,onkeydown:this.onkeydown,...this.attachment}));get props(){return v(this.#a)}set props(e){A(this.#a,e)}},Mn=class e{static create(t){return new e(t,On.get())}opts;root;attachment;#e=R(()=>this.root.opts.value.current===this.opts.value.current);#t=R(()=>this.root.valueToTriggerId.get(this.opts.value.current));constructor(e,t){this.opts=e,this.root=t,this.attachment=U(e.ref),Ke([()=>this.opts.id.current,()=>this.opts.value.current],([e,t])=>this.root.registerContent(e,t))}#n=R(()=>({id:this.opts.id.current,role:`tabpanel`,hidden:Ue(!v(this.#e)),tabindex:0,"data-value":this.opts.value.current,"data-state":Nn(v(this.#e)),"aria-labelledby":v(this.#t),"data-orientation":this.root.opts.orientation.current,[Dn.content]:``,...this.attachment}));get props(){return v(this.#n)}set props(e){A(this.#n,e)}};function Nn(e){return e?`active`:`inactive`}var Pn=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`value`,`onValueChange`,`orientation`,`loop`,`activationMode`,`disabled`,`children`,`child`]),Fn=c(`<div><!></div>`);function In(r,o){let s=p();i(o,!0);let c=k(o,`id`,19,()=>J(s)),l=k(o,`ref`,15,null),u=k(o,`value`,15,``),d=k(o,`onValueChange`,3,tt),f=k(o,`orientation`,3,`horizontal`),m=k(o,`loop`,3,!0),h=k(o,`activationMode`,3,`automatic`),g=k(o,`disabled`,3,!1),y=b(o,Pn),x=kn.create({id:H(()=>c()),value:H(()=>u(),e=>{u(e),d()(e)}),orientation:H(()=>f()),loop:H(()=>m()),activationMode:H(()=>h()),disabled:H(()=>g()),ref:H(()=>l(),e=>l(e))}),S=R(()=>G(y,x.props));var w=j(),E=T(w),D=e=>{var n=j(),r=T(n);B(r,()=>o.child,()=>({props:v(S)})),t(e,n)},O=r=>{var i=Fn();C(i,()=>({...v(S)}));var a=e(i);B(a,()=>o.children??n),M(i),t(r,i)};a(E,e=>{o.child?e(D):e(O,-1)}),t(r,w),_()}var Ln=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`id`,`ref`,`value`]),Rn=c(`<div><!></div>`);function zn(r,o){let s=p();i(o,!0);let c=k(o,`id`,19,()=>J(s)),l=k(o,`ref`,15,null),u=b(o,Ln),d=Mn.create({value:H(()=>o.value),id:H(()=>c()),ref:H(()=>l(),e=>l(e))}),f=R(()=>G(u,d.props));var m=j(),h=T(m),g=e=>{var n=j(),r=T(n);B(r,()=>o.child,()=>({props:v(f)})),t(e,n)},y=r=>{var i=Rn();C(i,()=>({...v(f)}));var a=e(i);B(a,()=>o.children??n),M(i),t(r,i)};a(h,e=>{o.child?e(g):e(y,-1)}),t(r,m),_()}var Bn=new Set([`$$slots`,`$$events`,`$$legacy`,`child`,`children`,`id`,`ref`]),Vn=c(`<div><!></div>`);function Hn(r,o){let s=p();i(o,!0);let c=k(o,`id`,19,()=>J(s)),l=k(o,`ref`,15,null),u=b(o,Bn),d=An.create({id:H(()=>c()),ref:H(()=>l(),e=>l(e))}),f=R(()=>G(u,d.props));var m=j(),h=T(m),g=e=>{var n=j(),r=T(n);B(r,()=>o.child,()=>({props:v(f)})),t(e,n)},y=r=>{var i=Vn();C(i,()=>({...v(f)}));var a=e(i);B(a,()=>o.children??n),M(i),t(r,i)};a(h,e=>{o.child?e(g):e(y,-1)}),t(r,m),_()}var Un=new Set([`$$slots`,`$$events`,`$$legacy`,`child`,`children`,`disabled`,`id`,`type`,`value`,`ref`]),Wn=c(`<button><!></button>`);function Gn(r,o){let s=p();i(o,!0);let c=k(o,`disabled`,3,!1),l=k(o,`id`,19,()=>J(s)),u=k(o,`type`,3,`button`),d=k(o,`ref`,15,null),f=b(o,Un),m=jn.create({id:H(()=>l()),disabled:H(()=>c()??!1),value:H(()=>o.value),ref:H(()=>d(),e=>d(e))}),h=R(()=>G(f,m.props,{type:u()}));var g=j(),y=T(g),x=e=>{var n=j(),r=T(n);B(r,()=>o.child,()=>({props:v(h)})),t(e,n)},S=r=>{var i=Wn();C(i,()=>({...v(h)}));var a=e(i);B(a,()=>o.children??n),M(i),t(r,i)};a(y,e=>{o.child?e(x):e(S,-1)}),t(r,g),_()}var Kn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),qn=c(`<div><!></div>`);function Jn(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,Kn);var c=qn();C(c,e=>({"data-slot":`input-otp-group`,class:e,...s}),[()=>q(`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`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var Yn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`cell`,`class`]),Xn=c(`<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=c(` <!>`,1);function Qn(e,n){i(n,!0);let r=k(n,`ref`,15,null),o=b(n,Yn);var c=j(),l=T(c);{let e=R(()=>q(`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));x(l,()=>En,(i,c)=>{c(i,I({get cell(){return n.cell},"data-slot":`input-otp-slot`,get class(){return v(e)}},()=>o,{get ref(){return r()},set ref(e){r(e)},children:(e,r)=>{f();var i=Zn(),o=T(i),c=z(o),l=e=>{var n=Xn();t(e,n)};a(c,e=>{n.cell.hasFakeCaret&&e(l)}),s(()=>d(o,`${n.cell.char??``} `)),t(e,i)},$$slots:{default:!0}}))})}t(e,c),_()}var $n=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`value`]);function er(e,n){i(n,!0);let r=k(n,`ref`,15,null),a=k(n,`value`,15,``),o=b(n,$n);var s=j(),c=T(s);{let e=R(()=>q(`cn-input-otp-input gap-2 flex items-center disabled:cursor-not-allowed has-disabled:opacity-50`,n.class));x(c,()=>Cn,(t,n)=>{n(t,I({"data-slot":`input-otp`,spellcheck:!1,get class(){return v(e)}},()=>o,{get ref(){return r()},set ref(e){r(e)},get value(){return a()},set value(e){a(e)}}))})}t(e,s),_()}var tr=c(`<div class="w-full flex items-center"><!></div>`);function nr(n,o){i(o,!0);let s=()=>D(Y,`$dict`,c),[c,l]=w(),u=k(o,`ref`,15,null),d=k(o,`mode`,11,`password`),f=k(o,`password`,15,``),p=k(o,`otp`,15,``);var m=tr(),h=e(m),g=e=>{$e(e,{id:`iam-password-input`,name:`password`,type:`password`,minlength:6,autocomplete:`current-password`,get placeholder(){return s().auth.password},class:`placeholder:text-sm`,get value(){return f()},set value(e){f(e)}})},y=e=>{var n=j(),i=T(n);{let e=(e,n)=>{let i=()=>(n?.()).cells;var a=j(),o=T(a);x(o,()=>Jn,(e,n)=>{n(e,{children:(e,n)=>{var a=j(),o=T(a);r(o,17,()=>i().slice(0,6),re,(e,n)=>{var r=j(),i=T(r);x(i,()=>Qn,(e,t)=>{t(e,{get cell(){return v(n)},class:`size-[40px] bg-background`})}),t(e,r)}),t(e,a)},$$slots:{default:!0}})}),t(e,a)};x(i,()=>er,(t,n)=>{n(t,{maxlength:6,get pattern(){return hn},required:!0,get value(){return p()},set value(e){p(e)},children:e,$$slots:{default:!0}})})}t(e,n)};a(h,e=>{d()===`password`?e(g):e(y,-1)}),M(m),S(m,e=>u(e),()=>u()),t(n,m),_(),l()}var rr=c(`<!> <span class="sr-only"> </span>`,1),ir=c(`<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(n,r){i(r,!0);let c=()=>D(Y,`$dict`,l),[l,u]=w(),f=L(!1),p=L(``),m=L(``),y=L(``),b=L(null),x=L(`password`),C=L(void 0);async function E(){v(m).length===0?v(x)===`password`?await k():await N():await O()}async function O(){A(f,!0);let e=r.account===void 0?await ee():await Te(r.account.id,{username:v(p),password:v(m)});A(f,!1),e instanceof Error&&await P()}async function ee(){let e=await Ce(v(p),v(m));return e instanceof Error||de(e)?.status===201&&r.oncreate?.(e),e}async function k(){A(f,!0);let e=r.account===void 0?await ge(v(p)):await Oe(r.account.id,v(p));A(f,!1),!(e instanceof Error)&&(A(x,`otp`),requestAnimationFrame(()=>F()))}async function N(){if(v(p).length===0){console.error(`username is required`);return}if(v(y).length!==6){await P();return}A(f,!0);let e=await _e(v(p),v(y));if(A(f,!1),e instanceof Error){A(y,``),await P();return}return de(e)?.status===201&&r.oncreate?.(e),e}async function P(){await v(C)?.shake(),F()}function F(){xe&&v(b)?.querySelector(`input`)?.focus()}var I=ir(),te=R(()=>bt(E)),ne=e(I),re=e(ne);{let e=R(()=>v(x)===`otp`||void 0);$e(re,{id:`iam-username-input`,name:`username`,type:`email`,autocomplete:`username`,required:!0,get disabled(){return v(e)},get autofocus(){return xe},get placeholder(){return c().auth.email},get value(){return v(p)},set value(e){A(p,e,!0)}})}var B=z(re,2),ie=e(B),ae=e(ie);S(tn(ae,{class:`w-full`,children:(e,t)=>{nr(e,{get mode(){return v(x)},get ref(){return v(b)},set ref(e){A(b,e,!0)},get password(){return v(m)},set password(e){A(m,e,!0)},get otp(){return v(y)},set otp(e){A(y,e,!0)}})},$$slots:{default:!0}}),e=>A(C,e,!0),()=>v(C));var oe=z(ae,2);W(oe,{size:`icon-lg`,type:`submit`,children:(n,r)=>{var i=rr(),o=T(i),l=e=>{K(e,{})},u=e=>{$t(e,{})};a(o,e=>{v(f)?e(l):e(u,-1)});var p=z(o,2),m=e(p,!0);M(p),s(()=>d(m,c().auth.login)),t(n,i)},$$slots:{default:!0}}),M(ie);var se=z(ie,2),ce=e(se),V=e=>{var n=j(),r=T(n);g(r,()=>c().auth.passwordBlank),t(e,n)},le=e=>{var n=o();s(()=>d(n,c().auth.otpInstructions)),t(e,n)};a(ce,e=>{v(x)===`password`?e(V):e(le,-1)}),M(se),M(B),M(ne),M(I),h(`submit`,I,function(...e){v(te)?.apply(this,e)}),t(n,I),_(),u()}var or=c(`<h2> </h2>`),sr=c(`<!> <!>`,1);function cr(n,r){i(r,!0);let a=()=>D(Y,`$dict`,c),[c,l]=w();var u=j(),p=T(u);{let n=R(()=>q(`pt-4 gap-4 bg-background/75`,r.class));x(p,()=>Zt,(i,c)=>{c(i,{get class(){return v(n)},children:(n,i)=>{var c=sr(),l=T(c);x(l,()=>Gt,(n,r)=>{r(n,{class:`gap-0`,children:(n,r)=>{var i=sr(),c=T(i);x(c,()=>Jt,(n,r)=>{r(n,{children:(n,r)=>{var i=or(),o=e(i,!0);M(i),s(()=>d(o,a().auth.passwordTitle)),t(n,i)},$$slots:{default:!0}})});var l=z(c,2);x(l,()=>zt,(e,n)=>{n(e,{children:(e,n)=>{f();var r=o();s(()=>d(r,a().auth.passwordDescription)),t(e,r)},$$slots:{default:!0}})}),t(n,i)},$$slots:{default:!0}})});var u=z(l,2);x(u,()=>It,(e,t)=>{t(e,{children:(e,t)=>{ar(e,{get account(){return r.account},get oncreate(){return r.oncreate}})},$$slots:{default:!0}})}),t(n,c)},$$slots:{default:!0}})})}t(n,u),_(),l()}function lr(e){ar(e,{})}var ur=new Set([`$$slots`,`$$events`,`$$legacy`]);function dr(e,t){let n=b(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`}]];V(e,I({name:`shield-check`},()=>n,{get iconNode(){return r}}))}var fr=new Set([`$$slots`,`$$events`,`$$legacy`]);function pr(e,t){let n=b(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`}]];V(e,I({name:`shield-off`},()=>n,{get iconNode(){return r}}))}var mr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),hr=c(`<div><!></div>`);function gr(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,mr);var c=hr();C(c,e=>({"data-slot":`alert-description`,class:e,...s}),[()=>q(`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`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var _r=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),vr=c(`<div><!></div>`);function yr(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,_r);var c=vr();C(c,e=>({"data-slot":`alert-title`,class:e,...s}),[()=>q(`font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var br=Me({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=c(`<div><!></div>`);function Cr(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=k(a,`variant`,3,`default`),c=b(a,xr);var l=Sr();C(l,e=>({"data-slot":`alert`,role:`alert`,class:e,...c}),[()=>q(br({variant:s()}),a.class)]);var u=e(l);B(u,()=>a.children??n),M(l),S(l,e=>o(e),()=>o()),t(r,l),_()}var wr=new Set([`$$slots`,`$$events`,`$$legacy`]);function Tr(e,t){let n=b(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`}]];V(e,I({name:`fingerprint-pattern`},()=>n,{get iconNode(){return r}}))}var Er=c(`<!> `,1),Dr=c(`<div class="flex flex-col items-center justify-center gap-2"><p> </p> <!></div>`);function Or(n,r){i(r,!0);let o=()=>D(Y,`$dict`,c),[c,l]=w(),u=L(!1);async function f(){A(u,!0),await Ee(),A(u,!1)}var p=Dr(),m=e(p),h=e(m,!0);M(m);var g=z(m,2);W(g,{id:`iam-passkey-login-button`,variant:`secondary`,onclick:f,children:(e,n)=>{var r=Er(),i=T(r),c=e=>{K(e,{})},l=e=>{Tr(e,{})};a(i,e=>{v(u)?e(c):e(l,-1)});var f=z(i);s(()=>d(f,` ${o().auth.signin??``}`)),t(e,r)},$$slots:{default:!0}}),M(p),s(()=>d(h,o().auth.alreadyHaveAccount)),t(n,p),_(),l()}var kr=c(`<form><fieldset class="space-y-1"><div class="flex items-center gap-2"><!> <!></div></fieldset></form>`);function Ar(n,r){i(r,!0);let o=()=>D(Y,`$dict`,c),[c,l]=w(),u=R(()=>r.account?.name??``),d=L(!1);async function f(){let e=v(u).trim();if(e.length===0)return;A(d,!0);let t=await he(e,r.account?.id);A(d,!1),!(t instanceof Error)&&r.oncreate?.(t)}var p=kr(),m=R(()=>bt(f)),g=e(p),y=e(g),b=e(y);$e(b,{id:`name`,type:`text`,get placeholder(){return o().auth.yourName},autocomplete:`given-name`,required:!0,get autofocus(){return xe},get value(){return v(u)},set value(e){A(u,e)}});var x=z(b,2);W(x,{id:`iam-passkey-create-button`,size:`icon-lg`,type:`submit`,children:(e,n)=>{var r=j(),i=T(r),o=e=>{K(e,{})},s=e=>{$t(e,{})};a(i,e=>{v(d)?e(o):e(s,-1)}),t(e,r)},$$slots:{default:!0}}),M(y),M(g),M(p),s(()=>g.disabled=r.disabled),h(`submit`,p,function(...e){v(m)?.apply(this,e)}),t(n,p),_(),l()}var jr=c(`<p> <a target="_blank" class="text-nowrap"> </a></p>`),Mr=c(`<h2> </h2>`),Nr=c(`<!> <!>`,1),Pr=c(`<!> <!> <!>`,1),Fr=c(`<p> </p> <!>`,1),Ir=c(`<div class="space-y-4"><!> <!></div>`);function Lr(n,r){i(r,!0);let c=()=>D(Y,`$dict`,l),[l,u]=w(),p=n=>{var r=jr(),i=e(r),a=z(i),o=e(a,!0);M(a),M(r),s(()=>{d(i,`${c().auth.passkeysDescription??``} `),E(a,`href`,m),d(o,c().auth.learnMore)}),t(n,r)},m=oe?`https://support.apple.com/en-us/102195`:`https://support.google.com/accounts/answer/13548313`;var h=Ir(),g=e(h);{let n=R(()=>q(`gap-4 bg-background/75`,Se&&`pt-4`,r.class));x(g,()=>Zt,(i,l)=>{l(i,{get class(){return v(n)},children:(n,i)=>{var l=Nr(),u=T(l),m=n=>{var i=Nr(),a=T(i);x(a,()=>Gt,(n,r)=>{r(n,{class:`gap-0`,children:(n,r)=>{var i=j(),a=T(i);x(a,()=>Jt,(n,r)=>{r(n,{children:(n,r)=>{var i=Mr(),a=e(i,!0);M(i),s(()=>d(a,c().auth.signupTitle)),t(n,i)},$$slots:{default:!0}})}),t(n,i)},$$slots:{default:!0}})});var o=z(a,2);x(o,()=>It,(e,t)=>{t(e,{children:(e,t)=>{Ar(e,{get account(){return r.account},get oncreate(){return r.oncreate}})},$$slots:{default:!0}})}),t(n,i)};a(u,e=>{Se&&e(m)});var h=z(u,2);x(h,()=>Ht,(n,r)=>{r(n,{children:(n,r)=>{var i=j(),l=T(i),u=e=>{var n=j(),r=T(n);x(r,()=>Cr,(e,n)=>{n(e,{children:(e,n)=>{var r=Pr(),i=T(r);dr(i,{color:`green`});var a=z(i,2);x(a,()=>yr,(e,n)=>{n(e,{children:(e,n)=>{f();var r=o();s(()=>d(r,c().auth.betterSecurity)),t(e,r)},$$slots:{default:!0}})});var l=z(a,2);x(l,()=>gr,(e,t)=>{t(e,{children:(e,t)=>{p(e)},$$slots:{default:!0}})}),t(e,r)},$$slots:{default:!0}})}),t(e,n)},m=n=>{var r=j(),i=T(r);x(i,()=>Cr,(n,r)=>{r(n,{children:(n,r)=>{var i=Pr(),a=T(i);pr(a,{color:`red`,class:`animate-pulse`});var l=z(a,2);x(l,()=>yr,(e,n)=>{n(e,{children:(e,n)=>{f();var r=o();s(()=>d(r,c().auth.passkeysNotSupported)),t(e,r)},$$slots:{default:!0}})});var u=z(l,2);x(u,()=>gr,(n,r)=>{r(n,{children:(n,r)=>{var i=Fr(),a=T(i),o=e(a,!0);M(a);var l=z(a,2);p(l),s(()=>d(o,c().auth.passkeysWarning)),t(n,i)},$$slots:{default:!0}})}),t(n,i)},$$slots:{default:!0}})}),t(n,r)};a(l,e=>{Se?e(u):e(m,-1)}),t(n,i)},$$slots:{default:!0}})}),t(n,l)},$$slots:{default:!0}})})}var y=z(g,2),b=e=>{Or(e,{})};a(y,e=>{Se&&!r.account&&e(b)}),M(h),t(n,h),_(),u()}var Rr=c(`<!> <!> `,1);function zr(e,n){i(n,!0);let r=()=>D(Y,`$dict`,a),[a,o]=w();async function c(e){let t=e.currentTarget;t.disabled=!0,await Ee(n.account.id),t.disabled=!1}W(e,{class:`w-full disabled:[&>.x-icon]:hidden [&>.x-spinner]:hidden disabled:[&>.x-spinner]:block`,onclick:c,children:(e,n)=>{var i=Rr(),a=T(i);Tr(a,{class:`size-5 x-icon`});var o=z(a,2);K(o,{class:`x-spinner`});var c=z(o);s(()=>d(c,` ${r().auth.refresh.continue??``}`)),t(e,i)},$$slots:{default:!0}}),_(),o()}var Br=u(`<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,n){var r=Br();s(()=>N(r,0,O(n.class))),t(e,r)}var Hr=u(`<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(n,r){i(r,!0);var a=Hr(),o=e(a);M(a),s(e=>{N(a,0,e),E(o,`fill`,r.fill)},[()=>O(q(`size-5 -mt-[3px]`,r.class))]),t(n,a),_()}var Wr={google:Vr,apple:Ur},Gr=c(`<!> <!> <!>`,1);function Kr(e,r){i(r,!0);let a=R(()=>Wr[r.idp]);async function o(e){let t=e.currentTarget;t.disabled=!0,await ve(r.idp,r.account?.id),t.disabled=!1}{let i=R(()=>r.children?`default`:`icon`),s=R(()=>q(`disabled:[&_.x-icon]:hidden [&_.x-spinner]:hidden disabled:[&_.x-spinner]:block`,r.class));W(e,{variant:`outline`,get size(){return v(i)},onclick:o,get class(){return v(s)},children:(e,i)=>{var o=Gr(),s=T(o);x(s,()=>v(a),(e,t)=>{t(e,{class:`x-icon`})});var c=z(s,2);K(c,{class:`x-spinner`});var l=z(c,2);B(l,()=>r.children??n),t(e,o)},$$slots:{default:!0}})}_()}var qr=c(`<div class="flex gap-2"><!> <!></div>`);function Jr(n,r){i(r,!0);var o=qr(),s=e(o),c=e=>{Kr(e,{idp:`google`,get account(){return r.account}})};a(s,e=>{pe.google.client&&e(c)});var l=z(s,2),u=e=>{Kr(e,{idp:`apple`,get account(){return r.account}})};a(l,e=>{pe.apple.client&&e(u)}),M(o),t(n,o),_()}function Yr(e,n){i(n,!0);let r=()=>D(Y,`$dict`,a),[a,c]=w(),l={google:`Google`,apple:`Apple`};Kr(e,{get idp(){return n.idp},class:`w-full`,children:(e,i)=>{f();var a=o();s(e=>d(a,e),[()=>r().auth.continueWith(l[n.idp])]),t(e,a)},$$slots:{default:!0}}),_(),c()}var Xr=c(`<!> <!>`,1);function Zr(e,n){var r=j(),i=T(r);x(i,()=>Zt,(e,r)=>{r(e,{class:`w-full`,children:(e,r)=>{var i=Xr(),a=T(i);x(a,()=>Gt,(e,r)=>{r(e,{children:(e,r)=>{var i=Xr(),a=T(i);x(a,()=>Jt,(e,r)=>{r(e,{children:(e,r)=>{f();var i=o();s(()=>d(i,n.title)),t(e,i)},$$slots:{default:!0}})});var c=z(a,2);x(c,()=>zt,(e,r)=>{r(e,{children:(e,r)=>{f();var i=o();s(()=>d(i,n.description)),t(e,i)},$$slots:{default:!0}})}),t(e,i)},$$slots:{default:!0}})});var c=z(a,2);x(c,()=>It,(e,r)=>{r(e,{class:`flex flex-col`,children:(e,r)=>{var i=j(),a=T(i);B(a,()=>n.action),t(e,i)},$$slots:{default:!0}})}),t(e,i)},$$slots:{default:!0}})}),t(e,r)}var Qr=c(`<!> `,1),$r=c(`<div class="flex flex-col items-center gap-4 w-full"><!> <!></div>`);function ei(n,r){i(r,!0);let o=()=>D(Y,`$dict`,c),[c,l]=w();P(()=>{r.method===null&&ye()});var u=$r(),f=e(u);{let e=e=>{var n=j(),i=T(n),o=e=>{zr(e,{get account(){return r.account}})},s=e=>{lr(e,{})},c=e=>{Yr(e,{idp:`apple`})},l=e=>{Yr(e,{idp:`google`})};a(i,e=>{r.method===`passkey`?e(o):r.method===`password`?e(s,1):r.method===`apple`?e(c,2):r.method===`google`&&e(l,3)}),t(e,n)},n=R(()=>o().auth.refresh.description(r.account.name));Zr(f,{get title(){return o().auth.refresh.title},get description(){return v(n)},action:e,$$slots:{action:!0}})}var p=z(f,2);W(p,{variant:`outline`,get onclick(){return ye},children:(e,n)=>{var r=Qr(),i=T(r);Et(i,{});var a=z(i);s(()=>d(a,` ${o().auth.signout??``}`)),t(e,r)},$$slots:{default:!0}}),M(u),t(n,u),_(),l()}var ti=new Set([`$$slots`,`$$events`,`$$legacy`]);function ni(e,t){let n=b(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`}]];V(e,I({name:`at-sign`},()=>n,{get iconNode(){return r}}))}var ri=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function ii(e,n){i(n,!0);let r=k(n,`ref`,15,null),a=b(n,ri);var o=j(),s=T(o);{let e=R(()=>q(`text-sm flex-1 outline-none`,n.class));x(s,()=>zn,(t,n)=>{n(t,I({"data-slot":`tabs-content`,get class(){return v(e)}},()=>a,{get ref(){return r()},set ref(e){r(e)}}))})}t(e,o),_()}var ai=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function oi(e,n){i(n,!0);let r=k(n,`ref`,15,null),a=b(n,ai);var o=j(),s=T(o);{let e=R(()=>q(`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));x(s,()=>Gn,(t,n)=>{n(t,I({"data-slot":`tabs-trigger`,get class(){return v(e)}},()=>a,{get ref(){return r()},set ref(e){r(e)}}))})}t(e,o),_()}var si=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`value`,`class`]);function ci(e,n){i(n,!0);let r=k(n,`ref`,15,null),a=k(n,`value`,15,``),o=b(n,si);var s=j(),c=T(s);{let e=R(()=>q(`gap-2 group/tabs flex data-[orientation=horizontal]:flex-col`,n.class));x(c,()=>In,(t,n)=>{n(t,I({"data-slot":`tabs`,get class(){return v(e)}},()=>o,{get ref(){return r()},set ref(e){r(e)},get value(){return a()},set value(e){a(e)}}))})}t(e,s),_()}var li=Me({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(e,n){i(n,!0);let r=k(n,`ref`,15,null),a=k(n,`variant`,3,`default`),o=b(n,ui);var s=j(),c=T(s);{let e=R(()=>q(li({variant:a()}),n.class));x(c,()=>Hn,(t,n)=>{n(t,I({"data-slot":`tabs-list`,get"data-variant"(){return a()},get class(){return v(e)}},()=>o,{get ref(){return r()},set ref(e){r(e)}}))})}t(e,s),_()}var fi=c(`<!> `,1),pi=c(`<!> <!>`,1),mi=c(`<div class="flex justify-between gap-2"><!> <!></div> <!> <!>`,1);function hi(n,r){i(r,!0);let a=()=>D(Y,`$dict`,o),[o,c]=w(),l=L(null);function u(e){requestAnimationFrame(()=>{v(l)?.querySelector(`[data-value="${e}"] input[autofocus]`)?.focus()})}let f=L(`passkey`);P(()=>{A(f,Se?`passkey`:`password`,!0)});var p=j(),m=T(p);{let n=R(()=>q(`w-full`,r.class));x(m,()=>ci,(i,o)=>{o(i,{get class(){return v(n)},onValueChange:u,get value(){return v(f)},set value(e){A(f,e,!0)},get ref(){return v(l)},set ref(e){A(l,e,!0)},children:(n,i)=>{var o=mi(),c=T(o),l=e(c);x(l,()=>di,(e,n)=>{n(e,{children:(e,n)=>{var r=pi(),i=T(r);x(i,()=>oi,(e,n)=>{n(e,{value:`passkey`,"data-marker":`passkey-tab`,children:(e,n)=>{var r=fi(),i=T(r);Tr(i,{color:`var(--muted-foreground)`});var o=z(i);s(()=>d(o,` ${a().auth.passkey??``}`)),t(e,r)},$$slots:{default:!0}})});var o=z(i,2);x(o,()=>oi,(e,n)=>{n(e,{value:`password`,id:`iam-email-tab`,children:(e,n)=>{var r=fi(),i=T(r);ni(i,{color:`var(--muted-foreground)`});var o=z(i);s(()=>d(o,` ${a().auth.email??``}`)),t(e,r)},$$slots:{default:!0}})}),t(e,r)},$$slots:{default:!0}})}),Jr(z(l,2),{get account(){return r.account}}),M(c);var u=z(c,2);x(u,()=>ii,(e,t)=>{t(e,{value:`passkey`,children:(e,t)=>{Lr(e,{get account(){return r.account},oncreate:e=>r.oncreate?.(e,`passkey`)})},$$slots:{default:!0}})});var f=z(u,2);x(f,()=>ii,(e,t)=>{t(e,{value:`password`,children:(e,t)=>{cr(e,{get account(){return r.account},oncreate:e=>r.oncreate?.(e,`password`)})},$$slots:{default:!0}})}),t(n,o)},$$slots:{default:!0}})})}t(n,p),_(),c()}var gi=c(`<div class="flex items-center justify-center h-screen"><!></div>`),_i=c(`<div class="flex w-full max-w-sm items-center justify-center pt-[14vh] px-4 mx-auto"><!></div>`);function vi(n,r){i(r,!0);let o=()=>D(Ae,`$iam`,d),s=()=>D(ce,`$method`,d),c=()=>D(me,`$authenticated`,d),l=()=>D(ue,`$greeting`,d),u=()=>D(ke,`$processing`,d),[d,f]=w(),p=e=>{var n=j(),i=T(n),c=e=>{ei(e,{get account(){return o()},get method(){return s()}})},l=e=>{{let t=R(()=>q(`scale-0 transition-transform`,`scale-100`));hi(e,{get class(){return v(t)},get account(){return r.account},get oncreate(){return r.oncreate}})}};a(i,e=>{o()?e(c):e(l,-1)}),t(e,n)};var m=j(),h=T(m),g=e=>{var n=j(),i=T(n);B(i,()=>r.children),t(e,n)},y=n=>{var r=gi(),i=e(r);K(i,{}),M(r),t(n,r)},b=e=>{var n=j(),i=T(n);B(i,()=>r.screen,()=>({authentication:p})),t(e,n)},x=n=>{var r=_i(),i=e(r);p(i),M(r),t(n,r)};a(h,e=>{c()?e(g):l()||u()?e(y,1):r.screen?e(b,2):e(x,-1)}),t(n,m),_(),f()}var yi=l(((e,t)=>{t.exports=function(){return typeof Promise==`function`&&Promise.prototype&&Promise.prototype.then}})),Q=l((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)}})),bi=l((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}}})),xi=l(((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})),Si=l(((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})),Ci=l((e=>{var t=Q().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}})),wi=l((e=>{var t=Q().getSymbolSize,n=7;e.getPositions=function(e){let r=t(e);return[[0,0],[r-n,0],[0,r-n]]}})),Ti=l((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}})),Ei=l((e=>{var t=bi(),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}}})),Di=l((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]]}})),Oi=l((e=>{var t=Di();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}})),ki=l(((e,t)=>{var n=Oi();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})),Ai=l((e=>{e.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}})),ji=l((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,At as n,C as r,Ct as i,E as a,F as o,J as s,M as c,Mt as l,N as u,O as d,Ot as f,P as p,Q as m,R as h,S as g,St as _,V as v,Y as y,a as b,b as x,c as S,d as C,dt as w,et as T,f as E,ft as D,h as O,ht as ee,i as k,it as A,j,kt as M,m as N,n as P,nt as F,o as I,ot as L,pt as te,st as R,tt as z,ut as ne,w as re,x as B,z as ie}from"../chunks/BVDJTrf4.js";import{n as ae}from"../chunks/BDuDJR9X.js";import"../chunks/xihTtKlq.js";import{A as oe,B as se,C as ce,D as V,H as le,S as ue,U as de,V as fe,_ as pe,b as me,c as he,d as ge,f as _e,g as ve,h as ye,i as be,j as xe,l as Se,m as Ce,n as we,p as Te,s as Ee,t as De,u as Oe,w as ke,y as Ae,z as je}from"../chunks/BCJPed3-.js";import{$ as Me,A as Ne,B as Pe,C as Fe,D as Ie,F as Le,G as H,H as Re,I as ze,J as Be,K as Ve,L as He,M as Ue,N as We,O as Ge,P as U,Q as W,R as Ke,S as qe,T as Je,U as Ye,V as G,W as Xe,X as Ze,Y as Qe,Z as $e,_ as et,b as tt,c as nt,d as rt,et as K,g as it,h as at,j as ot,k as st,l as ct,m as lt,nt as ut,o as dt,p as ft,q as pt,t as mt,tt as q,u as ht,v as gt,w as _t,x as vt,y as J,z as yt}from"../chunks/ck6CK-dV.js";function bt(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 xt=new Set([`$$slots`,`$$events`,`$$legacy`]);function St(e,t){let n=b(t,xt),r=[[`path`,{d:`M14 8a1 1 0 0 1 1 1v2a1 1 0 0 0 1 1h3.293a.707.707 0 0 1 .5 1.207l-6.939 6.939a1.207 1.207 0 0 1-1.708 0l-6.94-6.94a.707.707 0 0 1 .5-1.206H8a1 1 0 0 0 1-1V9a1 1 0 0 1 1-1z`}],[`path`,{d:`M9 4h6`}]];V(e,I({name:`arrow-big-down-dash`},()=>n,{get iconNode(){return r}}))}var Ct=new Set([`$$slots`,`$$events`,`$$legacy`]);function wt(e,t){let n=b(t,Ct),r=[[`path`,{d:`M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z`}],[`circle`,{cx:`12`,cy:`12`,r:`4`}]];V(e,I({name:`bolt`},()=>n,{get iconNode(){return r}}))}var Tt=new Set([`$$slots`,`$$events`,`$$legacy`]);function Et(e,t){let n=b(t,Tt),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`}]];V(e,I({name:`log-out`},()=>n,{get iconNode(){return r}}))}var Dt=new Set([`$$slots`,`$$events`,`$$legacy`]);function Ot(e,t){let n=b(t,Dt),r=[[`path`,{d:`m21 21-4.34-4.34`}],[`circle`,{cx:`11`,cy:`11`,r:`8`}]];V(e,I({name:`search`},()=>n,{get iconNode(){return r}}))}var kt=new Set([`$$slots`,`$$events`,`$$legacy`]);function At(e,t){let n=b(t,kt),r=[[`path`,{d:`M20 11v6`}],[`path`,{d:`M20 13h2`}],[`path`,{d:`M3 21v-2a4 4 0 0 1 4-4h6a4 4 0 0 1 2.072.578`}],[`circle`,{cx:`10`,cy:`7`,r:`4`}],[`circle`,{cx:`20`,cy:`19`,r:`2`}]];V(e,I({name:`user-key`},()=>n,{get iconNode(){return r}}))}var jt=new Set([`$$slots`,`$$events`,`$$legacy`]);function Mt(e,t){let n=b(t,jt),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`}]];V(e,I({name:`waypoints`},()=>n,{get iconNode(){return r}}))}var Nt={"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`}}}},Y=ee(we,e=>Nt[e]),Pt=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Ft=c(`<div><!></div>`);function It(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,Pt);var c=Ft();C(c,e=>({"data-slot":`card-content`,class:e,...s}),[()=>q(`px-(--card-spacing)`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var Lt=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Rt=c(`<p><!></p>`);function zt(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,Lt);var c=Rt();C(c,e=>({"data-slot":`card-description`,class:e,...s}),[()=>q(`text-sm text-muted-foreground`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var Bt=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Vt=c(`<div><!></div>`);function Ht(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,Bt);var c=Vt();C(c,e=>({"data-slot":`card-footer`,class:e,...s}),[()=>q(`rounded-b-xl border-t bg-muted/50 p-(--card-spacing) flex items-center`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var Ut=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Wt=c(`<div><!></div>`);function Gt(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,Ut);var c=Wt();C(c,e=>({"data-slot":`card-header`,class:e,...s}),[()=>q(`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]`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var Kt=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),qt=c(`<div><!></div>`);function Jt(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,Kt);var c=qt();C(c,e=>({"data-slot":`card-title`,class:e,...s}),[()=>q(`text-base leading-snug font-medium group-data-[size=sm]/card:text-sm`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var Yt=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`,`size`]),Xt=c(`<div><!></div>`);function Zt(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=k(a,`size`,3,`default`),c=b(a,Yt);var l=Xt();C(l,e=>({"data-slot":`card`,"data-size":s(),class:e,...c}),[()=>q(`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`,a.class)]);var u=e(l);B(u,()=>a.children??n),M(l),S(l,e=>o(e),()=>o()),t(r,l),_()}var Qt=new Set([`$$slots`,`$$events`,`$$legacy`]);function $t(e,t){let n=b(t,Qt),r=[[`path`,{d:`M5 12h14`}],[`path`,{d:`m12 5 7 7-7 7`}]];V(e,I({name:`arrow-right`},()=>n,{get iconNode(){return r}}))}var en=c(`<div><!></div>`);function tn(n,r){i(r,!0);let a=L(!1);async function o(){A(a,!0),await new Promise(e=>setTimeout(e,500)),A(a,!1)}var c={shake:o},l=en(),u=e(l);return B(u,()=>r.children),M(l),s(()=>N(l,1,O([r.class,v(a)&&`shake`]),`svelte-alh7mr`)),t(n,l),_(c)}function X(e){let t=L(F(e));return{[Re]:!0,[Be]:!0,get current(){return v(t)},set current(e){A(t,e,!0)}}}X.from=Xe,X.with=H,X.flatten=Ye,X.readonly=Ze,X.isBox=Ve,X.isWritableBox=pt;function nn(e){return window.getComputedStyle(e).getPropertyValue(`direction`)}var rn=[qe,st,Ie],an=[Je,Ge,`End`];[...rn,...an];function on(e=`ltr`,t=`horizontal`){return{horizontal:e===`rtl`?Fe:_t,vertical:qe}[t]}function sn(e=`ltr`,t=`horizontal`){return{horizontal:e===`rtl`?_t:Fe,vertical:Je}[t]}function cn(e=`ltr`,t=`horizontal`){return[`ltr`,`rtl`].includes(e)||(e=`ltr`),[`horizontal`,`vertical`].includes(t)||(t=`horizontal`),{nextKey:on(e,t),prevKey:sn(e,t)}}var ln=class{#e;#t=X(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}=cn(nn(r),this.#e.orientation.current),c=this.#e.loop.current,l={[o]:a+1,[s]:a-1,[Ie]:0,End:i.length-1};if(n){let e=o===`ArrowDown`?_t:qe,t=s===`ArrowUp`?Fe:Je;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||!vt(t)||t.focus()}},un=18,dn=40,fn=`${dn}px`,pn=[`[data-lastpass-icon-root]`,`com-1password-button`,`[data-dashlanecreated]`,`[style$="2147483647 !important;"]`].join(`,`);function mn({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r,domContext:i}){let a=L(!1),o=L(!1),s=L(!1);function c(){let e=n.current;return e!==`none`&&e===`increase-width`&&v(a)&&v(o)}function l(){let r=e.current,o=t.current;if(!r||!o||v(s)||n.current===`none`)return;let c=r,l=c.getBoundingClientRect().left+c.offsetWidth,u=c.getBoundingClientRect().top+c.offsetHeight/2,d=l-un,f=u;(i.querySelectorAll(pn).length!==0||i.getDocument().elementFromPoint(d,f)!==r)&&(A(a,!0),A(s,!0))}return y(()=>{let t=e.current;if(!t||n.current===`none`)return;function r(){let e=ze(t).innerWidth-t.getBoundingClientRect().right;A(o,e>=dn)}r();let i=setInterval(r,1e3);return()=>{clearInterval(i)}}),y(()=>{let e=r.current||i.getActiveElement()===t.current;if(n.current===`none`||!e)return;let a=setTimeout(l,0),o=setTimeout(l,2e3),c=setTimeout(l,5e3),u=setTimeout(()=>{A(s,!0)},6e3);return()=>{clearTimeout(a),clearTimeout(o),clearTimeout(c),clearTimeout(u)}}),{get hasPwmBadge(){return v(a)},get willPushPwmBadge(){return c()},PWM_BADGE_SPACE_WIDTH:fn}}var hn=`^\\d+$`,gn=We({component:`pin-input`,parts:[`root`,`cell`]}),_n=[`Backspace`,`Delete`,`ArrowLeft`,`ArrowRight`,`ArrowUp`,`ArrowDown`,`Home`,`End`,`Escape`,`Enter`,`Tab`,`Shift`,`Control`,`Meta`],vn=class e{static create(t){return new e(t)}opts;attachment;inputAttachment;#e=L(!1);#t=Qe(!1);#n=L(null);#r=L(null);#i=new He(()=>this.opts.value.current??``);#a=R(()=>typeof this.opts.pattern.current==`string`?new RegExp(this.opts.pattern.current):this.opts.pattern.current);#o=L(F({prev:[null,null,`none`],willSyntheticBlur:!1}));#s;#c;domContext;constructor(e){this.opts=e,this.attachment=U(this.opts.ref),this.inputAttachment=U(this.opts.inputRef),this.domContext=new Le(e.ref),this.#c={value:this.opts.value,isIOS:typeof window<`u`&&window?.CSS?.supports(`-webkit-touch-callout`,`none`)},this.#s=mn({containerRef:this.opts.ref,inputRef:this.opts.inputRef,isFocused:this.#t,pushPasswordManagerStrategy:this.opts.pushPasswordManagerStrategy,domContext:this.domContext}),P(()=>{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),v(this.#o).prev=[e.selectionStart,e.selectionEnd,e.selectionDirection??`none`];let n=ie(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()}}),Ke([()=>this.opts.value.current,()=>this.opts.inputRef.current],()=>{bn(()=>{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&&(A(this.#n,t,!0),A(this.#r,n,!0),v(this.#o).prev=[t,n,r])},this.domContext)}),y(()=>{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;_n.includes(t)||e.ctrlKey||e.metaKey||t&&v(this.#a)&&!v(this.#a).test(t)&&e.preventDefault()};#l=R(()=>({position:`relative`,cursor:this.opts.disabled.current?`default`:`text`,userSelect:`none`,WebkitUserSelect:`none`,pointerEvents:`none`}));#u=R(()=>({id:this.opts.id.current,[gn.root]:``,style:v(this.#l),...this.attachment}));get rootProps(){return v(this.#u)}set rootProps(e){A(this.#u,e)}#d=R(()=>({style:{position:`absolute`,inset:0,pointerEvents:`none`}}));get inputWrapperProps(){return v(this.#d)}set inputWrapperProps(e){A(this.#d,e)}#f=R(()=>({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;`;Z(t.sheet,`[data-pin-input-input]::selection { background: transparent !important; color: transparent !important; }`),Z(t.sheet,`[data-pin-input-input]:autofill { ${e} }`),Z(t.sheet,`[data-pin-input-input]:-webkit-autofill { ${e} }`),Z(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; } }`),Z(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){A(this.#n,null),A(this.#r,null);return}let n=e.selectionStart,r=e.selectionEnd,i=e.selectionDirection??`none`,a=e.maxLength,o=e.value,s=v(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;A(this.#n,d,!0),A(this.#r,f,!0),v(this.#o).prev=[d,f,p]};oninput=e=>{let t=e.currentTarget.value.slice(0,this.opts.maxLength.current);if(t.length>0&&v(this.#a)&&!v(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),A(this.#n,e,!0),A(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&&v(this.#a)&&!v(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),A(this.#n,s,!0),A(this.#r,c,!0)};onmouseover=e=>{A(this.#e,!0)};onmouseleave=e=>{A(this.#e,!1)};onblur=e=>{if(v(this.#o).willSyntheticBlur){v(this.#o).willSyntheticBlur=!1;return}this.#t.current=!1};#h=R(()=>({id:this.opts.inputId.current,style:v(this.#f),autocomplete:this.opts.autocomplete.current||`one-time-code`,"data-pin-input-input":``,"data-pin-input-input-mss":v(this.#n),"data-pin-input-input-mse":v(this.#r),inputmode:this.opts.inputmode.current,pattern:v(this.#a)?.source,maxlength:this.opts.maxLength.current,value:this.opts.value.current,disabled:Ue(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 v(this.#h)}set inputProps(e){A(this.#h,e)}#g=R(()=>Array.from({length:this.opts.maxLength.current}).map((e,t)=>{let n=this.#t.current&&v(this.#n)!==null&&v(this.#r)!==null&&(v(this.#n)===v(this.#r)&&t===v(this.#n)||t>=v(this.#n)&&t<v(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}}));#_=R(()=>({cells:v(this.#g),isFocused:this.#t.current,isHovering:v(this.#e)}));get snippetProps(){return v(this.#_)}set snippetProps(e){A(this.#_,e)}},yn=class e{static create(t){return new e(t)}opts;attachment;constructor(e){this.opts=e,this.attachment=U(this.opts.ref)}#e=R(()=>({id:this.opts.id.current,[gn.cell]:``,"data-active":this.opts.cell.current.isActive?``:void 0,"data-inactive":this.opts.cell.current.isActive?void 0:``,...this.attachment}));get props(){return v(this.#e)}set props(e){A(this.#e,e)}};function bn(e,t){return[t.setTimeout(e,0),t.setTimeout(e,10),t.setTimeout(e,50)]}function Z(e,t){try{e.insertRule(t)}catch{console.error(`pin input could not insert CSS rule:`,t)}}var xn=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`inputId`,`ref`,`inputRef`,`maxlength`,`textalign`,`pattern`,`inputmode`,`onComplete`,`pushPasswordManagerStrategy`,`class`,`children`,`autocomplete`,`disabled`,`value`,`onValueChange`,`pasteTransformer`]),Sn=c(`<div><!> <div><input/></div></div>`);function Cn(r,a){let o=p();i(a,!0);let s=k(a,`id`,19,()=>J(o)),c=k(a,`inputId`,19,()=>`${J(o)}-input`),l=k(a,`ref`,15,null),u=k(a,`inputRef`,15,null),d=k(a,`maxlength`,3,6),f=k(a,`textalign`,3,`left`),m=k(a,`inputmode`,3,`numeric`),h=k(a,`onComplete`,3,tt),g=k(a,`pushPasswordManagerStrategy`,3,`increase-width`),y=k(a,`class`,3,``),x=k(a,`autocomplete`,3,`one-time-code`),S=k(a,`disabled`,3,!1),w=k(a,`value`,15,``),T=k(a,`onValueChange`,3,tt),E=b(a,xn),D=vn.create({id:H(()=>s()),ref:H(()=>l(),e=>l(e)),inputRef:H(()=>u(),e=>u(e)),inputId:H(()=>c()),autocomplete:H(()=>x()),maxLength:H(()=>d()),textAlign:H(()=>f()),disabled:H(()=>S()),inputmode:H(()=>m()),pattern:H(()=>a.pattern),onComplete:H(()=>h()),value:H(()=>w(),e=>{w(e),T()(e)}),pushPasswordManagerStrategy:H(()=>g()),pasteTransformer:H(()=>a.pasteTransformer)}),O=R(()=>G(E,D.inputProps)),ee=R(()=>G(D.rootProps,{class:y()})),A=R(()=>G(D.inputWrapperProps,{}));var j=Sn();C(j,()=>({...v(ee)}));var N=e(j);B(N,()=>a.children??n,()=>D.snippetProps);var P=z(N,2);C(P,()=>({...v(A)}));var F=e(P);C(F,()=>({...v(O)}),void 0,void 0,void 0,void 0,!0),M(P),M(j),t(r,j),_()}var wn=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`cell`,`child`,`children`]),Tn=c(`<div><!></div>`);function En(r,o){let s=p();i(o,!0);let c=k(o,`id`,19,()=>J(s)),l=k(o,`ref`,15,null),u=b(o,wn),d=yn.create({id:H(()=>c()),ref:H(()=>l(),e=>l(e)),cell:H(()=>o.cell)}),f=R(()=>G(u,d.props));var m=j(),h=T(m),g=e=>{var n=j(),r=T(n);B(r,()=>o.child,()=>({props:v(f)})),t(e,n)},y=r=>{var i=Tn();C(i,()=>({...v(f)}));var a=e(i);B(a,()=>o.children??n),M(i),t(r,i)};a(h,e=>{o.child?e(g):e(y,-1)}),t(r,m),_()}var Dn=We({component:`tabs`,parts:[`root`,`list`,`trigger`,`content`]}),On=new yt(`Tabs.Root`),kn=class e{static create(t){return On.set(new e(t))}opts;attachment;rovingFocusGroup;#e=L(F([]));get triggerIds(){return v(this.#e)}set triggerIds(e){A(this.#e,e,!0)}valueToTriggerId=new Pe;valueToContentId=new Pe;constructor(e){this.opts=e,this.attachment=U(e.ref),this.rovingFocusGroup=new ln({candidateAttr:Dn.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=R(()=>({id:this.opts.id.current,"data-orientation":this.opts.orientation.current,[Dn.root]:``,...this.attachment}));get props(){return v(this.#t)}set props(e){A(this.#t,e)}},An=class e{static create(t){return new e(t,On.get())}opts;root;attachment;#e=R(()=>this.root.opts.disabled.current);constructor(e,t){this.opts=e,this.root=t,this.attachment=U(e.ref)}#t=R(()=>({id:this.opts.id.current,role:`tablist`,"aria-orientation":this.root.opts.orientation.current,"data-orientation":this.root.opts.orientation.current,[Dn.list]:``,"data-disabled":Ne(v(this.#e)),...this.attachment}));get props(){return v(this.#t)}set props(e){A(this.#t,e)}},jn=class e{static create(t){return new e(t,On.get())}opts;root;attachment;#e=L(0);#t=R(()=>this.root.opts.value.current===this.opts.value.current);#n=R(()=>this.opts.disabled.current||this.root.opts.disabled.current);#r=R(()=>this.root.valueToContentId.get(this.opts.value.current));constructor(e,t){this.opts=e,this.root=t,this.attachment=U(e.ref),Ke([()=>this.opts.id.current,()=>this.opts.value.current],([e,t])=>this.root.registerTrigger(e,t)),y(()=>{this.root.triggerIds.length,v(this.#t)||!this.root.opts.value.current?A(this.#e,0):A(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`||v(this.#n)||this.#i()}onclick(e){v(this.#n)||this.#i()}onkeydown(e){if(!v(this.#n)){if(e.key===` `||e.key===`Enter`){e.preventDefault(),this.#i();return}this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current,e)}}#a=R(()=>({id:this.opts.id.current,role:`tab`,"data-state":Nn(v(this.#t)),"data-value":this.opts.value.current,"data-orientation":this.root.opts.orientation.current,"data-disabled":Ne(v(this.#n)),"aria-selected":ot(v(this.#t)),"aria-controls":v(this.#r),[Dn.trigger]:``,disabled:Ue(v(this.#n)),tabindex:v(this.#e),onclick:this.onclick,onfocus:this.onfocus,onkeydown:this.onkeydown,...this.attachment}));get props(){return v(this.#a)}set props(e){A(this.#a,e)}},Mn=class e{static create(t){return new e(t,On.get())}opts;root;attachment;#e=R(()=>this.root.opts.value.current===this.opts.value.current);#t=R(()=>this.root.valueToTriggerId.get(this.opts.value.current));constructor(e,t){this.opts=e,this.root=t,this.attachment=U(e.ref),Ke([()=>this.opts.id.current,()=>this.opts.value.current],([e,t])=>this.root.registerContent(e,t))}#n=R(()=>({id:this.opts.id.current,role:`tabpanel`,hidden:Ue(!v(this.#e)),tabindex:0,"data-value":this.opts.value.current,"data-state":Nn(v(this.#e)),"aria-labelledby":v(this.#t),"data-orientation":this.root.opts.orientation.current,[Dn.content]:``,...this.attachment}));get props(){return v(this.#n)}set props(e){A(this.#n,e)}};function Nn(e){return e?`active`:`inactive`}var Pn=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`value`,`onValueChange`,`orientation`,`loop`,`activationMode`,`disabled`,`children`,`child`]),Fn=c(`<div><!></div>`);function In(r,o){let s=p();i(o,!0);let c=k(o,`id`,19,()=>J(s)),l=k(o,`ref`,15,null),u=k(o,`value`,15,``),d=k(o,`onValueChange`,3,tt),f=k(o,`orientation`,3,`horizontal`),m=k(o,`loop`,3,!0),h=k(o,`activationMode`,3,`automatic`),g=k(o,`disabled`,3,!1),y=b(o,Pn),x=kn.create({id:H(()=>c()),value:H(()=>u(),e=>{u(e),d()(e)}),orientation:H(()=>f()),loop:H(()=>m()),activationMode:H(()=>h()),disabled:H(()=>g()),ref:H(()=>l(),e=>l(e))}),S=R(()=>G(y,x.props));var w=j(),E=T(w),D=e=>{var n=j(),r=T(n);B(r,()=>o.child,()=>({props:v(S)})),t(e,n)},O=r=>{var i=Fn();C(i,()=>({...v(S)}));var a=e(i);B(a,()=>o.children??n),M(i),t(r,i)};a(E,e=>{o.child?e(D):e(O,-1)}),t(r,w),_()}var Ln=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`id`,`ref`,`value`]),Rn=c(`<div><!></div>`);function zn(r,o){let s=p();i(o,!0);let c=k(o,`id`,19,()=>J(s)),l=k(o,`ref`,15,null),u=b(o,Ln),d=Mn.create({value:H(()=>o.value),id:H(()=>c()),ref:H(()=>l(),e=>l(e))}),f=R(()=>G(u,d.props));var m=j(),h=T(m),g=e=>{var n=j(),r=T(n);B(r,()=>o.child,()=>({props:v(f)})),t(e,n)},y=r=>{var i=Rn();C(i,()=>({...v(f)}));var a=e(i);B(a,()=>o.children??n),M(i),t(r,i)};a(h,e=>{o.child?e(g):e(y,-1)}),t(r,m),_()}var Bn=new Set([`$$slots`,`$$events`,`$$legacy`,`child`,`children`,`id`,`ref`]),Vn=c(`<div><!></div>`);function Hn(r,o){let s=p();i(o,!0);let c=k(o,`id`,19,()=>J(s)),l=k(o,`ref`,15,null),u=b(o,Bn),d=An.create({id:H(()=>c()),ref:H(()=>l(),e=>l(e))}),f=R(()=>G(u,d.props));var m=j(),h=T(m),g=e=>{var n=j(),r=T(n);B(r,()=>o.child,()=>({props:v(f)})),t(e,n)},y=r=>{var i=Vn();C(i,()=>({...v(f)}));var a=e(i);B(a,()=>o.children??n),M(i),t(r,i)};a(h,e=>{o.child?e(g):e(y,-1)}),t(r,m),_()}var Un=new Set([`$$slots`,`$$events`,`$$legacy`,`child`,`children`,`disabled`,`id`,`type`,`value`,`ref`]),Wn=c(`<button><!></button>`);function Gn(r,o){let s=p();i(o,!0);let c=k(o,`disabled`,3,!1),l=k(o,`id`,19,()=>J(s)),u=k(o,`type`,3,`button`),d=k(o,`ref`,15,null),f=b(o,Un),m=jn.create({id:H(()=>l()),disabled:H(()=>c()??!1),value:H(()=>o.value),ref:H(()=>d(),e=>d(e))}),h=R(()=>G(f,m.props,{type:u()}));var g=j(),y=T(g),x=e=>{var n=j(),r=T(n);B(r,()=>o.child,()=>({props:v(h)})),t(e,n)},S=r=>{var i=Wn();C(i,()=>({...v(h)}));var a=e(i);B(a,()=>o.children??n),M(i),t(r,i)};a(y,e=>{o.child?e(x):e(S,-1)}),t(r,g),_()}var Kn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),qn=c(`<div><!></div>`);function Jn(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,Kn);var c=qn();C(c,e=>({"data-slot":`input-otp-group`,class:e,...s}),[()=>q(`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`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var Yn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`cell`,`class`]),Xn=c(`<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=c(` <!>`,1);function Qn(e,n){i(n,!0);let r=k(n,`ref`,15,null),o=b(n,Yn);var c=j(),l=T(c);{let e=R(()=>q(`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));x(l,()=>En,(i,c)=>{c(i,I({get cell(){return n.cell},"data-slot":`input-otp-slot`,get class(){return v(e)}},()=>o,{get ref(){return r()},set ref(e){r(e)},children:(e,r)=>{f();var i=Zn(),o=T(i),c=z(o),l=e=>{var n=Xn();t(e,n)};a(c,e=>{n.cell.hasFakeCaret&&e(l)}),s(()=>d(o,`${n.cell.char??``} `)),t(e,i)},$$slots:{default:!0}}))})}t(e,c),_()}var $n=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`value`]);function er(e,n){i(n,!0);let r=k(n,`ref`,15,null),a=k(n,`value`,15,``),o=b(n,$n);var s=j(),c=T(s);{let e=R(()=>q(`cn-input-otp-input gap-2 flex items-center disabled:cursor-not-allowed has-disabled:opacity-50`,n.class));x(c,()=>Cn,(t,n)=>{n(t,I({"data-slot":`input-otp`,spellcheck:!1,get class(){return v(e)}},()=>o,{get ref(){return r()},set ref(e){r(e)},get value(){return a()},set value(e){a(e)}}))})}t(e,s),_()}var tr=c(`<div class="w-full flex items-center"><!></div>`);function nr(n,o){i(o,!0);let s=()=>D(Y,`$dict`,c),[c,l]=w(),u=k(o,`ref`,15,null),d=k(o,`mode`,11,`password`),f=k(o,`password`,15,``),p=k(o,`otp`,15,``);var m=tr(),h=e(m),g=e=>{$e(e,{id:`iam-password-input`,name:`password`,type:`password`,minlength:6,autocomplete:`current-password`,get placeholder(){return s().auth.password},class:`placeholder:text-sm`,get value(){return f()},set value(e){f(e)}})},y=e=>{var n=j(),i=T(n);{let e=(e,n)=>{let i=()=>(n?.()).cells;var a=j(),o=T(a);x(o,()=>Jn,(e,n)=>{n(e,{children:(e,n)=>{var a=j(),o=T(a);r(o,17,()=>i().slice(0,6),re,(e,n)=>{var r=j(),i=T(r);x(i,()=>Qn,(e,t)=>{t(e,{get cell(){return v(n)},class:`size-[40px] bg-background`})}),t(e,r)}),t(e,a)},$$slots:{default:!0}})}),t(e,a)};x(i,()=>er,(t,n)=>{n(t,{maxlength:6,get pattern(){return hn},required:!0,get value(){return p()},set value(e){p(e)},children:e,$$slots:{default:!0}})})}t(e,n)};a(h,e=>{d()===`password`?e(g):e(y,-1)}),M(m),S(m,e=>u(e),()=>u()),t(n,m),_(),l()}var rr=c(`<!> <span class="sr-only"> </span>`,1),ir=c(`<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(n,r){i(r,!0);let c=()=>D(Y,`$dict`,l),[l,u]=w(),f=L(!1),p=L(``),m=L(``),y=L(``),b=L(null),x=L(`password`),C=L(void 0);async function E(){v(m).length===0?v(x)===`password`?await k():await N():await O()}async function O(){A(f,!0);let e=r.account===void 0?await ee():await Te(r.account.id,{username:v(p),password:v(m)});A(f,!1),e instanceof Error&&await P()}async function ee(){let e=await Ce(v(p),v(m));return e instanceof Error||de(e)?.status===201&&r.oncreate?.(e),e}async function k(){A(f,!0);let e=r.account===void 0?await ge(v(p)):await Oe(r.account.id,v(p));A(f,!1),!(e instanceof Error)&&(A(x,`otp`),requestAnimationFrame(()=>F()))}async function N(){if(v(p).length===0){console.error(`username is required`);return}if(v(y).length!==6){await P();return}A(f,!0);let e=await _e(v(p),v(y));if(A(f,!1),e instanceof Error){A(y,``),await P();return}return de(e)?.status===201&&r.oncreate?.(e),e}async function P(){await v(C)?.shake(),F()}function F(){xe&&v(b)?.querySelector(`input`)?.focus()}var I=ir(),te=R(()=>bt(E)),ne=e(I),re=e(ne);{let e=R(()=>v(x)===`otp`||void 0);$e(re,{id:`iam-username-input`,name:`username`,type:`email`,autocomplete:`username`,required:!0,get disabled(){return v(e)},get autofocus(){return xe},get placeholder(){return c().auth.email},get value(){return v(p)},set value(e){A(p,e,!0)}})}var B=z(re,2),ie=e(B),ae=e(ie);S(tn(ae,{class:`w-full`,children:(e,t)=>{nr(e,{get mode(){return v(x)},get ref(){return v(b)},set ref(e){A(b,e,!0)},get password(){return v(m)},set password(e){A(m,e,!0)},get otp(){return v(y)},set otp(e){A(y,e,!0)}})},$$slots:{default:!0}}),e=>A(C,e,!0),()=>v(C));var oe=z(ae,2);W(oe,{size:`icon-lg`,type:`submit`,children:(n,r)=>{var i=rr(),o=T(i),l=e=>{K(e,{})},u=e=>{$t(e,{})};a(o,e=>{v(f)?e(l):e(u,-1)});var p=z(o,2),m=e(p,!0);M(p),s(()=>d(m,c().auth.login)),t(n,i)},$$slots:{default:!0}}),M(ie);var se=z(ie,2),ce=e(se),V=e=>{var n=j(),r=T(n);g(r,()=>c().auth.passwordBlank),t(e,n)},le=e=>{var n=o();s(()=>d(n,c().auth.otpInstructions)),t(e,n)};a(ce,e=>{v(x)===`password`?e(V):e(le,-1)}),M(se),M(B),M(ne),M(I),h(`submit`,I,function(...e){v(te)?.apply(this,e)}),t(n,I),_(),u()}var or=c(`<h2> </h2>`),sr=c(`<!> <!>`,1);function cr(n,r){i(r,!0);let a=()=>D(Y,`$dict`,c),[c,l]=w();var u=j(),p=T(u);{let n=R(()=>q(`pt-4 gap-4 bg-background/75`,r.class));x(p,()=>Zt,(i,c)=>{c(i,{get class(){return v(n)},children:(n,i)=>{var c=sr(),l=T(c);x(l,()=>Gt,(n,r)=>{r(n,{class:`gap-0`,children:(n,r)=>{var i=sr(),c=T(i);x(c,()=>Jt,(n,r)=>{r(n,{children:(n,r)=>{var i=or(),o=e(i,!0);M(i),s(()=>d(o,a().auth.passwordTitle)),t(n,i)},$$slots:{default:!0}})});var l=z(c,2);x(l,()=>zt,(e,n)=>{n(e,{children:(e,n)=>{f();var r=o();s(()=>d(r,a().auth.passwordDescription)),t(e,r)},$$slots:{default:!0}})}),t(n,i)},$$slots:{default:!0}})});var u=z(l,2);x(u,()=>It,(e,t)=>{t(e,{children:(e,t)=>{ar(e,{get account(){return r.account},get oncreate(){return r.oncreate}})},$$slots:{default:!0}})}),t(n,c)},$$slots:{default:!0}})})}t(n,u),_(),l()}function lr(e){ar(e,{})}var ur=new Set([`$$slots`,`$$events`,`$$legacy`]);function dr(e,t){let n=b(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`}]];V(e,I({name:`shield-check`},()=>n,{get iconNode(){return r}}))}var fr=new Set([`$$slots`,`$$events`,`$$legacy`]);function pr(e,t){let n=b(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`}]];V(e,I({name:`shield-off`},()=>n,{get iconNode(){return r}}))}var mr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),hr=c(`<div><!></div>`);function gr(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,mr);var c=hr();C(c,e=>({"data-slot":`alert-description`,class:e,...s}),[()=>q(`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`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var _r=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),vr=c(`<div><!></div>`);function yr(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,_r);var c=vr();C(c,e=>({"data-slot":`alert-title`,class:e,...s}),[()=>q(`font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var br=Me({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=c(`<div><!></div>`);function Cr(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=k(a,`variant`,3,`default`),c=b(a,xr);var l=Sr();C(l,e=>({"data-slot":`alert`,role:`alert`,class:e,...c}),[()=>q(br({variant:s()}),a.class)]);var u=e(l);B(u,()=>a.children??n),M(l),S(l,e=>o(e),()=>o()),t(r,l),_()}var wr=new Set([`$$slots`,`$$events`,`$$legacy`]);function Tr(e,t){let n=b(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`}]];V(e,I({name:`fingerprint-pattern`},()=>n,{get iconNode(){return r}}))}var Er=c(`<!> `,1),Dr=c(`<div class="flex flex-col items-center justify-center gap-2"><p> </p> <!></div>`);function Or(n,r){i(r,!0);let o=()=>D(Y,`$dict`,c),[c,l]=w(),u=L(!1);async function f(){A(u,!0),await Ee(),A(u,!1)}var p=Dr(),m=e(p),h=e(m,!0);M(m);var g=z(m,2);W(g,{id:`iam-passkey-login-button`,variant:`secondary`,onclick:f,children:(e,n)=>{var r=Er(),i=T(r),c=e=>{K(e,{})},l=e=>{Tr(e,{})};a(i,e=>{v(u)?e(c):e(l,-1)});var f=z(i);s(()=>d(f,` ${o().auth.signin??``}`)),t(e,r)},$$slots:{default:!0}}),M(p),s(()=>d(h,o().auth.alreadyHaveAccount)),t(n,p),_(),l()}var kr=c(`<form><fieldset class="space-y-1"><div class="flex items-center gap-2"><!> <!></div></fieldset></form>`);function Ar(n,r){i(r,!0);let o=()=>D(Y,`$dict`,c),[c,l]=w(),u=R(()=>r.account?.name??``),d=L(!1);async function f(){let e=v(u).trim();if(e.length===0)return;A(d,!0);let t=await he(e,r.account?.id);A(d,!1),!(t instanceof Error)&&r.oncreate?.(t)}var p=kr(),m=R(()=>bt(f)),g=e(p),y=e(g),b=e(y);$e(b,{id:`name`,type:`text`,get placeholder(){return o().auth.yourName},autocomplete:`given-name`,required:!0,get autofocus(){return xe},get value(){return v(u)},set value(e){A(u,e)}});var x=z(b,2);W(x,{id:`iam-passkey-create-button`,size:`icon-lg`,type:`submit`,children:(e,n)=>{var r=j(),i=T(r),o=e=>{K(e,{})},s=e=>{$t(e,{})};a(i,e=>{v(d)?e(o):e(s,-1)}),t(e,r)},$$slots:{default:!0}}),M(y),M(g),M(p),s(()=>g.disabled=r.disabled),h(`submit`,p,function(...e){v(m)?.apply(this,e)}),t(n,p),_(),l()}var jr=c(`<p> <a target="_blank" class="text-nowrap"> </a></p>`),Mr=c(`<h2> </h2>`),Nr=c(`<!> <!>`,1),Pr=c(`<!> <!> <!>`,1),Fr=c(`<p> </p> <!>`,1),Ir=c(`<div class="space-y-4"><!> <!></div>`);function Lr(n,r){i(r,!0);let c=()=>D(Y,`$dict`,l),[l,u]=w(),p=n=>{var r=jr(),i=e(r),a=z(i),o=e(a,!0);M(a),M(r),s(()=>{d(i,`${c().auth.passkeysDescription??``} `),E(a,`href`,m),d(o,c().auth.learnMore)}),t(n,r)},m=oe?`https://support.apple.com/en-us/102195`:`https://support.google.com/accounts/answer/13548313`;var h=Ir(),g=e(h);{let n=R(()=>q(`gap-4 bg-background/75`,Se&&`pt-4`,r.class));x(g,()=>Zt,(i,l)=>{l(i,{get class(){return v(n)},children:(n,i)=>{var l=Nr(),u=T(l),m=n=>{var i=Nr(),a=T(i);x(a,()=>Gt,(n,r)=>{r(n,{class:`gap-0`,children:(n,r)=>{var i=j(),a=T(i);x(a,()=>Jt,(n,r)=>{r(n,{children:(n,r)=>{var i=Mr(),a=e(i,!0);M(i),s(()=>d(a,c().auth.signupTitle)),t(n,i)},$$slots:{default:!0}})}),t(n,i)},$$slots:{default:!0}})});var o=z(a,2);x(o,()=>It,(e,t)=>{t(e,{children:(e,t)=>{Ar(e,{get account(){return r.account},get oncreate(){return r.oncreate}})},$$slots:{default:!0}})}),t(n,i)};a(u,e=>{Se&&e(m)});var h=z(u,2);x(h,()=>Ht,(n,r)=>{r(n,{children:(n,r)=>{var i=j(),l=T(i),u=e=>{var n=j(),r=T(n);x(r,()=>Cr,(e,n)=>{n(e,{children:(e,n)=>{var r=Pr(),i=T(r);dr(i,{color:`green`});var a=z(i,2);x(a,()=>yr,(e,n)=>{n(e,{children:(e,n)=>{f();var r=o();s(()=>d(r,c().auth.betterSecurity)),t(e,r)},$$slots:{default:!0}})});var l=z(a,2);x(l,()=>gr,(e,t)=>{t(e,{children:(e,t)=>{p(e)},$$slots:{default:!0}})}),t(e,r)},$$slots:{default:!0}})}),t(e,n)},m=n=>{var r=j(),i=T(r);x(i,()=>Cr,(n,r)=>{r(n,{children:(n,r)=>{var i=Pr(),a=T(i);pr(a,{color:`red`,class:`animate-pulse`});var l=z(a,2);x(l,()=>yr,(e,n)=>{n(e,{children:(e,n)=>{f();var r=o();s(()=>d(r,c().auth.passkeysNotSupported)),t(e,r)},$$slots:{default:!0}})});var u=z(l,2);x(u,()=>gr,(n,r)=>{r(n,{children:(n,r)=>{var i=Fr(),a=T(i),o=e(a,!0);M(a);var l=z(a,2);p(l),s(()=>d(o,c().auth.passkeysWarning)),t(n,i)},$$slots:{default:!0}})}),t(n,i)},$$slots:{default:!0}})}),t(n,r)};a(l,e=>{Se?e(u):e(m,-1)}),t(n,i)},$$slots:{default:!0}})}),t(n,l)},$$slots:{default:!0}})})}var y=z(g,2),b=e=>{Or(e,{})};a(y,e=>{Se&&!r.account&&e(b)}),M(h),t(n,h),_(),u()}var Rr=c(`<!> <!> `,1);function zr(e,n){i(n,!0);let r=()=>D(Y,`$dict`,a),[a,o]=w();async function c(e){let t=e.currentTarget;t.disabled=!0,await Ee(n.account.id),t.disabled=!1}W(e,{class:`w-full disabled:[&>.x-icon]:hidden [&>.x-spinner]:hidden disabled:[&>.x-spinner]:block`,onclick:c,children:(e,n)=>{var i=Rr(),a=T(i);Tr(a,{class:`size-5 x-icon`});var o=z(a,2);K(o,{class:`x-spinner`});var c=z(o);s(()=>d(c,` ${r().auth.refresh.continue??``}`)),t(e,i)},$$slots:{default:!0}}),_(),o()}var Br=u(`<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,n){var r=Br();s(()=>N(r,0,O(n.class))),t(e,r)}var Hr=u(`<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(n,r){i(r,!0);var a=Hr(),o=e(a);M(a),s(e=>{N(a,0,e),E(o,`fill`,r.fill)},[()=>O(q(`size-5 -mt-[3px]`,r.class))]),t(n,a),_()}var Wr={google:Vr,apple:Ur},Gr=c(`<!> <!> <!>`,1);function Kr(e,r){i(r,!0);let a=R(()=>Wr[r.idp]);async function o(e){let t=e.currentTarget;t.disabled=!0,await ve(r.idp,r.account?.id),t.disabled=!1}{let i=R(()=>r.children?`default`:`icon`),s=R(()=>q(`disabled:[&_.x-icon]:hidden [&_.x-spinner]:hidden disabled:[&_.x-spinner]:block`,r.class));W(e,{variant:`outline`,get size(){return v(i)},onclick:o,get class(){return v(s)},children:(e,i)=>{var o=Gr(),s=T(o);x(s,()=>v(a),(e,t)=>{t(e,{class:`x-icon`})});var c=z(s,2);K(c,{class:`x-spinner`});var l=z(c,2);B(l,()=>r.children??n),t(e,o)},$$slots:{default:!0}})}_()}var qr=c(`<div class="flex gap-2"><!> <!></div>`);function Jr(n,r){i(r,!0);var o=qr(),s=e(o),c=e=>{Kr(e,{idp:`google`,get account(){return r.account}})};a(s,e=>{pe.google.client&&e(c)});var l=z(s,2),u=e=>{Kr(e,{idp:`apple`,get account(){return r.account}})};a(l,e=>{pe.apple.client&&e(u)}),M(o),t(n,o),_()}function Yr(e,n){i(n,!0);let r=()=>D(Y,`$dict`,a),[a,c]=w(),l={google:`Google`,apple:`Apple`};Kr(e,{get idp(){return n.idp},class:`w-full`,children:(e,i)=>{f();var a=o();s(e=>d(a,e),[()=>r().auth.continueWith(l[n.idp])]),t(e,a)},$$slots:{default:!0}}),_(),c()}var Xr=c(`<!> <!>`,1);function Zr(e,n){var r=j(),i=T(r);x(i,()=>Zt,(e,r)=>{r(e,{class:`w-full`,children:(e,r)=>{var i=Xr(),a=T(i);x(a,()=>Gt,(e,r)=>{r(e,{children:(e,r)=>{var i=Xr(),a=T(i);x(a,()=>Jt,(e,r)=>{r(e,{children:(e,r)=>{f();var i=o();s(()=>d(i,n.title)),t(e,i)},$$slots:{default:!0}})});var c=z(a,2);x(c,()=>zt,(e,r)=>{r(e,{children:(e,r)=>{f();var i=o();s(()=>d(i,n.description)),t(e,i)},$$slots:{default:!0}})}),t(e,i)},$$slots:{default:!0}})});var c=z(a,2);x(c,()=>It,(e,r)=>{r(e,{class:`flex flex-col`,children:(e,r)=>{var i=j(),a=T(i);B(a,()=>n.action),t(e,i)},$$slots:{default:!0}})}),t(e,i)},$$slots:{default:!0}})}),t(e,r)}var Qr=c(`<!> `,1),$r=c(`<div class="flex flex-col items-center gap-4 w-full"><!> <!></div>`);function ei(n,r){i(r,!0);let o=()=>D(Y,`$dict`,c),[c,l]=w();P(()=>{r.method===null&&ye()});var u=$r(),f=e(u);{let e=e=>{var n=j(),i=T(n),o=e=>{zr(e,{get account(){return r.account}})},s=e=>{lr(e,{})},c=e=>{Yr(e,{idp:`apple`})},l=e=>{Yr(e,{idp:`google`})};a(i,e=>{r.method===`passkey`?e(o):r.method===`password`?e(s,1):r.method===`apple`?e(c,2):r.method===`google`&&e(l,3)}),t(e,n)},n=R(()=>o().auth.refresh.description(r.account.name));Zr(f,{get title(){return o().auth.refresh.title},get description(){return v(n)},action:e,$$slots:{action:!0}})}var p=z(f,2);W(p,{variant:`outline`,get onclick(){return ye},children:(e,n)=>{var r=Qr(),i=T(r);Et(i,{});var a=z(i);s(()=>d(a,` ${o().auth.signout??``}`)),t(e,r)},$$slots:{default:!0}}),M(u),t(n,u),_(),l()}var ti=new Set([`$$slots`,`$$events`,`$$legacy`]);function ni(e,t){let n=b(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`}]];V(e,I({name:`at-sign`},()=>n,{get iconNode(){return r}}))}var ri=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function ii(e,n){i(n,!0);let r=k(n,`ref`,15,null),a=b(n,ri);var o=j(),s=T(o);{let e=R(()=>q(`text-sm flex-1 outline-none`,n.class));x(s,()=>zn,(t,n)=>{n(t,I({"data-slot":`tabs-content`,get class(){return v(e)}},()=>a,{get ref(){return r()},set ref(e){r(e)}}))})}t(e,o),_()}var ai=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function oi(e,n){i(n,!0);let r=k(n,`ref`,15,null),a=b(n,ai);var o=j(),s=T(o);{let e=R(()=>q(`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));x(s,()=>Gn,(t,n)=>{n(t,I({"data-slot":`tabs-trigger`,get class(){return v(e)}},()=>a,{get ref(){return r()},set ref(e){r(e)}}))})}t(e,o),_()}var si=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`value`,`class`]);function ci(e,n){i(n,!0);let r=k(n,`ref`,15,null),a=k(n,`value`,15,``),o=b(n,si);var s=j(),c=T(s);{let e=R(()=>q(`gap-2 group/tabs flex data-[orientation=horizontal]:flex-col`,n.class));x(c,()=>In,(t,n)=>{n(t,I({"data-slot":`tabs`,get class(){return v(e)}},()=>o,{get ref(){return r()},set ref(e){r(e)},get value(){return a()},set value(e){a(e)}}))})}t(e,s),_()}var li=Me({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(e,n){i(n,!0);let r=k(n,`ref`,15,null),a=k(n,`variant`,3,`default`),o=b(n,ui);var s=j(),c=T(s);{let e=R(()=>q(li({variant:a()}),n.class));x(c,()=>Hn,(t,n)=>{n(t,I({"data-slot":`tabs-list`,get"data-variant"(){return a()},get class(){return v(e)}},()=>o,{get ref(){return r()},set ref(e){r(e)}}))})}t(e,s),_()}var fi=c(`<!> `,1),pi=c(`<!> <!>`,1),mi=c(`<div class="flex justify-between gap-2"><!> <!></div> <!> <!>`,1);function hi(n,r){i(r,!0);let a=()=>D(Y,`$dict`,o),[o,c]=w(),l=L(null);function u(e){requestAnimationFrame(()=>{v(l)?.querySelector(`[data-value="${e}"] input[autofocus]`)?.focus()})}let f=L(`passkey`);P(()=>{A(f,Se?`passkey`:`password`,!0)});var p=j(),m=T(p);{let n=R(()=>q(`w-full`,r.class));x(m,()=>ci,(i,o)=>{o(i,{get class(){return v(n)},onValueChange:u,get value(){return v(f)},set value(e){A(f,e,!0)},get ref(){return v(l)},set ref(e){A(l,e,!0)},children:(n,i)=>{var o=mi(),c=T(o),l=e(c);x(l,()=>di,(e,n)=>{n(e,{children:(e,n)=>{var r=pi(),i=T(r);x(i,()=>oi,(e,n)=>{n(e,{value:`passkey`,"data-marker":`passkey-tab`,children:(e,n)=>{var r=fi(),i=T(r);Tr(i,{color:`var(--muted-foreground)`});var o=z(i);s(()=>d(o,` ${a().auth.passkey??``}`)),t(e,r)},$$slots:{default:!0}})});var o=z(i,2);x(o,()=>oi,(e,n)=>{n(e,{value:`password`,id:`iam-email-tab`,children:(e,n)=>{var r=fi(),i=T(r);ni(i,{color:`var(--muted-foreground)`});var o=z(i);s(()=>d(o,` ${a().auth.email??``}`)),t(e,r)},$$slots:{default:!0}})}),t(e,r)},$$slots:{default:!0}})}),Jr(z(l,2),{get account(){return r.account}}),M(c);var u=z(c,2);x(u,()=>ii,(e,t)=>{t(e,{value:`passkey`,children:(e,t)=>{Lr(e,{get account(){return r.account},oncreate:e=>r.oncreate?.(e,`passkey`)})},$$slots:{default:!0}})});var f=z(u,2);x(f,()=>ii,(e,t)=>{t(e,{value:`password`,children:(e,t)=>{cr(e,{get account(){return r.account},oncreate:e=>r.oncreate?.(e,`password`)})},$$slots:{default:!0}})}),t(n,o)},$$slots:{default:!0}})})}t(n,p),_(),c()}var gi=c(`<div class="flex items-center justify-center h-screen"><!></div>`),_i=c(`<div class="flex w-full max-w-sm items-center justify-center pt-[14vh] px-4 mx-auto"><!></div>`);function vi(n,r){i(r,!0);let o=()=>D(Ae,`$iam`,d),s=()=>D(ce,`$method`,d),c=()=>D(me,`$authenticated`,d),l=()=>D(ue,`$greeting`,d),u=()=>D(ke,`$processing`,d),[d,f]=w(),p=e=>{var n=j(),i=T(n),c=e=>{ei(e,{get account(){return o()},get method(){return s()}})},l=e=>{{let t=R(()=>q(`scale-0 transition-transform`,`scale-100`));hi(e,{get class(){return v(t)},get account(){return r.account},get oncreate(){return r.oncreate}})}};a(i,e=>{o()?e(c):e(l,-1)}),t(e,n)};var m=j(),h=T(m),g=e=>{var n=j(),i=T(n);B(i,()=>r.children),t(e,n)},y=n=>{var r=gi(),i=e(r);K(i,{}),M(r),t(n,r)},b=e=>{var n=j(),i=T(n);B(i,()=>r.screen,()=>({authentication:p})),t(e,n)},x=n=>{var r=_i(),i=e(r);p(i),M(r),t(n,r)};a(h,e=>{c()?e(g):l()||u()?e(y,1):r.screen?e(b,2):e(x,-1)}),t(n,m),_(),f()}var yi=l(((e,t)=>{t.exports=function(){return typeof Promise==`function`&&Promise.prototype&&Promise.prototype.then}})),Q=l((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)}})),bi=l((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}}})),xi=l(((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})),Si=l(((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})),Ci=l((e=>{var t=Q().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}})),wi=l((e=>{var t=Q().getSymbolSize,n=7;e.getPositions=function(e){let r=t(e);return[[0,0],[r-n,0],[0,r-n]]}})),Ti=l((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}})),Ei=l((e=>{var t=bi(),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}}})),Di=l((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]]}})),Oi=l((e=>{var t=Di();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}})),ki=l(((e,t)=>{var n=Oi();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})),Ai=l((e=>{e.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}})),ji=l((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)}})),$=l((e=>{var t=Ai(),n=ji();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}}})),Mi=l((e=>{var t=Q(),n=Ei(),r=bi(),i=$(),a=Ai(),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}})),Ni=l((e=>{var t=Q(),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}})),Pi=l(((e,t)=>{var n=$();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})),Fi=l(((e,t)=>{var n=$(),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})),Ii=l(((e,t)=>{var n=$();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})),Li=l(((e,t)=>{var n=$(),r=Q();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})),Ri=l(((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)})),zi=l((e=>{var t=$(),n=Pi(),r=Fi(),i=Ii(),a=Li(),o=ji(),s=Q(),c=Ri();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()))}})),Bi=l((e=>{var t=Q(),n=bi(),r=xi(),i=Si(),a=Ci(),o=wi(),s=Ti(),c=Ei(),l=ki(),u=Mi(),d=Ni(),f=$(),p=zi();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(`
@@ -1 +1 @@
1
- import{Ct as e,Nt as t,St as n,dt as r,ft as i,s as a}from"../chunks/BVDJTrf4.js";import"../chunks/xihTtKlq.js";import{f as o,n as s,s as c}from"../chunks/56yC_-AY.js";var l=t({load:()=>u});function u(){return{meta:{title:`Authentication`,description:`Tokens, not passwords. Follow the authorization response.`}}}function d(t,l){e(l,!1);let u=()=>i(o,`$dict`,d),[d,f]=r();a(),c(t,{get source(){return s},get title(){return u().guide.authentication.title}}),n(),f()}export{d as component,l as universal};
1
+ import{Ct as e,Nt as t,St as n,dt as r,ft as i,s as a}from"../chunks/BVDJTrf4.js";import"../chunks/xihTtKlq.js";import{f as o,n as s,s as c}from"../chunks/ck6CK-dV.js";var l=t({load:()=>u});function u(){return{meta:{title:`Authentication`,description:`Tokens, not passwords. Follow the authorization response.`}}}function d(t,l){e(l,!1);let u=()=>i(o,`$dict`,d),[d,f]=r();a(),c(t,{get source(){return s},get title(){return u().guide.authentication.title}}),n(),f()}export{d as component,l as universal};
@@ -1 +1 @@
1
- import{Ct as e,Nt as t,St as n,dt as r,ft as i,s as a}from"../chunks/BVDJTrf4.js";import"../chunks/xihTtKlq.js";import{f as o,r as s,s as c}from"../chunks/56yC_-AY.js";var l=t({load:()=>u});function u(){return{meta:{title:`Multipart responses`,description:`How a streamed reply is framed.`}}}function d(t,l){e(l,!1);let u=()=>i(o,`$dict`,d),[d,f]=r();a(),c(t,{get source(){return s},get title(){return u().guide.multipart.title}}),n(),f()}export{d as component,l as universal};
1
+ import{Ct as e,Nt as t,St as n,dt as r,ft as i,s as a}from"../chunks/BVDJTrf4.js";import"../chunks/xihTtKlq.js";import{f as o,r as s,s as c}from"../chunks/ck6CK-dV.js";var l=t({load:()=>u});function u(){return{meta:{title:`Multipart responses`,description:`How a streamed reply is framed.`}}}function d(t,l){e(l,!1);let u=()=>i(o,`$dict`,d),[d,f]=r();a(),c(t,{get source(){return s},get title(){return u().guide.multipart.title}}),n(),f()}export{d as component,l as universal};
@@ -1 +1 @@
1
- import{Ct as e,Nt as t,St as n,dt as r,ft as i,s as a}from"../chunks/BVDJTrf4.js";import"../chunks/xihTtKlq.js";import{f as o,i as s,s as c}from"../chunks/56yC_-AY.js";var l=t({load:()=>u});function u(){return{meta:{title:`Collection queries`,description:`How a collection is selected.`}}}function d(t,l){e(l,!1);let u=()=>i(o,`$dict`,d),[d,f]=r();a(),c(t,{get source(){return s},get title(){return u().guide.queries.title}}),n(),f()}export{d as component,l as universal};
1
+ import{Ct as e,Nt as t,St as n,dt as r,ft as i,s as a}from"../chunks/BVDJTrf4.js";import"../chunks/xihTtKlq.js";import{f as o,i as s,s as c}from"../chunks/ck6CK-dV.js";var l=t({load:()=>u});function u(){return{meta:{title:`Collection queries`,description:`How a collection is selected.`}}}function d(t,l){e(l,!1);let u=()=>i(o,`$dict`,d),[d,f]=r();a(),c(t,{get source(){return s},get title(){return u().guide.queries.title}}),n(),f()}export{d as component,l as universal};
@@ -1 +1 @@
1
- import{Ct as e,Nt as t,St as n,dt as r,ft as i,s as a}from"../chunks/BVDJTrf4.js";import"../chunks/xihTtKlq.js";import{a as o,f as s,s as c}from"../chunks/56yC_-AY.js";var l=t({load:()=>u});function u(){return{meta:{title:`Status codes`,description:`HTTP status codes the gateway may return.`}}}function d(t,l){e(l,!1);let u=()=>i(s,`$dict`,d),[d,f]=r();a(),c(t,{get source(){return o},get title(){return u().guide.status.title}}),n(),f()}export{d as component,l as universal};
1
+ import{Ct as e,Nt as t,St as n,dt as r,ft as i,s as a}from"../chunks/BVDJTrf4.js";import"../chunks/xihTtKlq.js";import{a as o,f as s,s as c}from"../chunks/ck6CK-dV.js";var l=t({load:()=>u});function u(){return{meta:{title:`Status codes`,description:`HTTP status codes the gateway may return.`}}}function d(t,l){e(l,!1);let u=()=>i(s,`$dict`,d),[d,f]=r();a(),c(t,{get source(){return o},get title(){return u().guide.status.title}}),n(),f()}export{d as component,l as universal};
@@ -1 +1 @@
1
- {"version":"1789552351653"}
1
+ {"version":"1789573536365"}
@@ -25,14 +25,14 @@
25
25
  <meta property="og:description" content="Resource exploration and playground" />
26
26
  <meta name="twitter:card" content="summary" />
27
27
 
28
- <link href="/.discovery/_app/immutable/entry/start.C1-9hOoO.js" rel="modulepreload">
29
- <link href="/.discovery/_app/immutable/chunks/Bv_eEfLr.js" rel="modulepreload">
28
+ <link href="/.discovery/_app/immutable/entry/start.BxffyCG_.js" rel="modulepreload">
29
+ <link href="/.discovery/_app/immutable/chunks/BDuDJR9X.js" rel="modulepreload">
30
30
  <link href="/.discovery/_app/immutable/chunks/BVDJTrf4.js" rel="modulepreload">
31
- <link href="/.discovery/_app/immutable/entry/app.D8C20MS-.js" rel="modulepreload">
31
+ <link href="/.discovery/_app/immutable/entry/app.CwA5shUx.js" rel="modulepreload">
32
32
  <link href="/.discovery/_app/immutable/chunks/xihTtKlq.js" rel="modulepreload">
33
- <link href="/.discovery/_app/immutable/nodes/0.B6c2uOkR.js" rel="modulepreload">
34
- <link href="/.discovery/_app/immutable/chunks/rVcvrprD.js" rel="modulepreload">
35
- <link href="/.discovery/_app/immutable/chunks/C5Gh4akx.js" rel="modulepreload">
33
+ <link href="/.discovery/_app/immutable/nodes/0.BFAzzuc1.js" rel="modulepreload">
34
+ <link href="/.discovery/_app/immutable/chunks/BCJPed3-.js" rel="modulepreload">
35
+ <link href="/.discovery/_app/immutable/chunks/BFtcFZWO.js" rel="modulepreload">
36
36
  <link href="/.discovery/_app/env.js" rel="modulepreload">
37
37
 
38
38
  <link href="/.discovery/_app/immutable/assets/0.DKJjMwRs.css" rel="stylesheet">
@@ -41,7 +41,7 @@
41
41
  <div style="display: contents">
42
42
  <script>
43
43
  {
44
- __sveltekit_1w3b6zb = {
44
+ __sveltekit_wl5i37 = {
45
45
  base: "/.discovery",
46
46
  assets: "/.discovery",
47
47
  env: null
@@ -50,11 +50,11 @@
50
50
  const element = document.currentScript.parentElement;
51
51
 
52
52
  import("/.discovery/_app/env.js").then(({ env }) => {
53
- __sveltekit_1w3b6zb.env = env;
53
+ __sveltekit_wl5i37.env = env;
54
54
 
55
55
  Promise.all([
56
- import("/.discovery/_app/immutable/entry/start.C1-9hOoO.js"),
57
- import("/.discovery/_app/immutable/entry/app.D8C20MS-.js")
56
+ import("/.discovery/_app/immutable/entry/start.BxffyCG_.js"),
57
+ import("/.discovery/_app/immutable/entry/app.CwA5shUx.js")
58
58
  ]).then(([kit, app]) => {
59
59
  kit.start(app, element);
60
60
  });
@@ -1 +0,0 @@
1
- import{H as e,U as t,V as n,W as r,it as i,n as a,ot as o,t as s,vt as c}from"./BVDJTrf4.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(e,t,n,r=!1){let i=new URL(e);Object.defineProperty(i,"searchParams",{value:new Proxy(i.searchParams,{get(e,r){if(r===`get`||r===`getAll`||r===`has`)return(t,...i)=>(n(t),e[r](t,...i));t();let i=Reflect.get(e,r);return typeof i==`function`?i.bind(e):i}}),enumerable:!0,configurable:!0});let a=[`href`,`pathname`,`search`,`toString`,`toJSON`];r&&a.push(`hash`);for(let n of a)Object.defineProperty(i,n,{get(){return t(),e[n]},enumerable:!0,configurable:!0});return i}function g(){}function _(...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 te(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 ne=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||`GET`)!==`GET`&&v.delete(ie(e)),ne(e,t));var v=new Map;function y(e,t){let n=ie(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=te(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 re(e,t,n){if(v.size>0){let t=ie(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 ie(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="${_(...e)}"]`}return n}var ae=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/,oe=/^\/\((?:[^)]+)\)$/;function se(e){let t=[];return{pattern:e===`/`||oe.test(e)?/^\/$/:RegExp(`^${le(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 de(String.fromCharCode(parseInt(e.slice(2),16)));if(e.startsWith(`u+`))return de(String.fromCharCode(...e.slice(2).split(`-`).map(e=>parseInt(e,16))));let[,r,a,o,s]=ae.exec(e);return t.push({name:o,matcher:s,optional:!!r,rest:!!a,chained:a?n===1&&i[0]===``:!1}),a?`([^]*?)`:r?`([^/]*)?`:`([^/]+?)`}return de(e)}).join(``)}).join(``)}/?$`),params:t}}function ce(e){return e!==``&&!/^\([^)]+\)$/.test(e)}function le(e){return e.slice(1).split(`/`).filter(ce)}function ue(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 de(e){return e.normalize().replace(/[[\]]/g,`\\$&`).replace(/%/g,`%25`).replace(/\//g,`%2[Ff]`).replace(/\?/g,`%3[Ff]`).replace(/#/g,`%23`).replace(/[.*+?^${}()|\\]/g,`\\$&`)}var fe=/\[(\[)?(\.\.\.)?(\w+?)(?:=(\w+))?\]\]?/g;function pe(e,t){let n=le(e),r=e!=`/`&&e.endsWith(`/`);return`/`+n.map(n=>n.replace(fe,(n,r,i,a)=>{let o=t[a];if(!o){if(r||i&&o!==void 0)return``;throw Error(`Missing parameter '${a}' in route ${e}`)}if(o.startsWith(`/`)||o.endsWith(`/`))throw Error(`Parameter '${a}' in route ${e} cannot start or end with a slash -- this would cause an invalid route like foo//bar`);return o})).filter(Boolean).join(`/`)+(r?`/`:``)}function me({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}=se(t),u={id:t,exec:e=>{let t=c.exec(e);if(t)return ue(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 he(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function ge(e,t,n=JSON.stringify){let r=n(t);try{sessionStorage[e]=r}catch{}}var b=globalThis.__sveltekit_1w3b6zb?.base??`/.discovery`,_e=globalThis.__sveltekit_1w3b6zb?.assets??b??``,ve=``;function ye(...e){if(!e[0].startsWith(`/`))throw Error(`Cannot use \`resolve(...)\` with a non-absolute pathname or route ID (got "${e[0]}"). \`resolve\` is only for internal pathnames and route IDs; external URLs should be used directly.`);return b+ve+pe(e[0],e[1])}var be=`1789552351653`,xe=`sveltekit:snapshot`,Se=`sveltekit:scroll`,Ce=`sveltekit:states`,we=`sveltekit:pageurl`,x=`sveltekit:history`,S=`sveltekit:navigation`,C={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},Te=location.origin;function Ee(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 w(){return{x:pageXOffset,y:pageYOffset}}function T(e,t){return e.getAttribute(`data-sveltekit-${t}`)}var De={...C,"":C.hover};function Oe(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function ke(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()===`A`&&e.hasAttribute(`href`))return e;e=Oe(e)}}function Ae(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||D(r,t,n)||(e.getAttribute(`rel`)||``).split(/\s+/).includes(`external`),o=r?.origin===Te&&e.hasAttribute(`download`);return{url:r,external:a,target:i,download:o}}function E(e){let t=null,n=null,r=null,i=null,a=null,o=null,s=e;for(;s&&s!==document.documentElement;)r===null&&(r=T(s,`preload-code`)),i===null&&(i=T(s,`preload-data`)),t===null&&(t=T(s,`keepfocus`)),n===null&&(n=T(s,`noscroll`)),a===null&&(a=T(s,`reload`)),o===null&&(o=T(s,`replacestate`)),s=Oe(s);function c(e){switch(e){case``:case`true`:return!0;case`off`:case`false`:return!1;default:return}}return{preload_code:De[r??`off`],preload_data:De[i??`off`],keepfocus:c(t),noscroll:c(n),reload:c(a),replace_state:c(o)}}function je(e){let t=c(e),n=!0;function r(){n=!0,t.update(e=>e)}function i(e){n=!1,t.set(e)}function a(e){let r;return t.subscribe(t=>{(r===void 0||n&&t!==r)&&e(r=t)})}return{notify:r,set:i,subscribe:a}}var Me={v:g};function Ne(){let{set:e,subscribe:t}=c(!1),n;async function r(){clearTimeout(n);try{let t=await fetch(`${_e}/_app/version.json`,{headers:{pragma:`no-cache`,"cache-control":`no-cache`}});if(!t.ok)return!1;let r=(await t.json()).version!==be;return r&&(e(!0),Me.v(),clearTimeout(n)),r}catch{return!1}}return{subscribe:t,check:r}}function D(e,t,n){return e.origin!==Te||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function Pe(e){}var Fe=2**32-1-1,Ie=Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function Le(e){let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getPrototypeOf(t)===null||Object.getOwnPropertyNames(t).sort().join(`\0`)===Ie}function Re(e){return Object.prototype.toString.call(e).slice(8,-1)}function ze(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)}function Be(e){return!(!Number.isInteger(e)||e<0||e>Fe)}function Ve(e){if(e.length===0||e.length>1&&e.charCodeAt(0)===48)return!1;for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n<48||n>57)return!1}return Be(+e)}function He(e){for(var t=e.length-1;t>=0&&!Ve(e[t]);t--);return t+1}function Ue(e){let t=Object.keys(e);return t.length=He(t),t}Uint8Array.fromBase64,typeof process==`object`&&process.versions?.node;var We=Object.freeze({kind:`not-plain`}),Ge=Object.freeze({kind:`symbol-keys`});Object.freeze({identify:e=>e,typeOf:e=>e===null?`null`:typeof e,toPrimitive:e=>e,tagOf:e=>Re(e),isThenable:e=>typeof e.then==`function`,toPromise:e=>Promise.resolve(e),unbox:e=>e.valueOf(),toISOString:e=>isNaN(e.getDate())?``:e.toISOString(),toStringValue:e=>e.toString(),regExpInfo:e=>({source:e.source,flags:e.flags}),valuesOf:e=>e,entriesOf:e=>e,viewInfo:e=>({buffer:e.buffer,byteOffset:e.byteOffset,byteLength:e.byteLength,length:e.length,bufferByteLength:e.buffer.byteLength}),toArrayBuffer:e=>e,lengthOf:e=>e.length,hasOwn:(e,t)=>Object.hasOwn(e,t),indicesOf:e=>Ue(e),shapeOf:e=>Le(e)?ze(e).length>0?Ge:{kind:Object.getPrototypeOf(e)===null?`null-proto`:`plain`,keys:Object.keys(e)}:We,get:(e,t)=>e[t]}),Object.freeze({fromPrimitive:e=>e,fromISOString:e=>new Date(e),fromStringValue:(e,t)=>e===`URL`?new URL(t):e===`URLSearchParams`?new URLSearchParams(t):Temporal[e.slice(9)].from(t),fromArrayBuffer:e=>e,fromRegExpInfo:(e,t)=>new RegExp(e,t),fromViewInfo:(e,t,n,r)=>{let i=globalThis[e];return n===void 0?new i(t):new i(t,n,r)},box:e=>Object(e),createArray:e=>Array(e),createSparseArray:e=>{let t=[];return t[Fe]=void 0,delete t[Fe],t.length=e,t},createObject:()=>({}),createNullPrototypeObject:()=>Object.create(null),createSet:()=>new Set,createMap:()=>new Map,set:(e,t,n)=>{e[t]=n},addValue:(e,t)=>{e.add(t)},addEntry:(e,t,n)=>{e.set(t,n)}});var Ke=new Set([`load`,`prerender`,`csr`,`ssr`,`trailingSlash`,`config`]);[...Ke],[...new Set([...Ke])];function qe(e){return e.filter(e=>e!=null)}function O(e,t){return e+`/`+t}function Je(e){return e instanceof l||e instanceof d?e.status:500}function Ye(e){return e instanceof d?e.text:`Internal Error`}var k,A,Xe,Ze=a.toString().includes(`$$`)||/function \w+\(\) \{\}/.test(a.toString()),Qe=`a:`;Ze?(k={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(Qe)},A={current:null},Xe={current:!1}):(k=new class{#e=o({});get data(){return n(this.#e)}set data(e){i(this.#e,e)}#t=o(null);get form(){return n(this.#t)}set form(e){i(this.#t,e)}#n=o(null);get error(){return n(this.#n)}set error(e){i(this.#n,e)}#r=o({});get params(){return n(this.#r)}set params(e){i(this.#r,e)}#i=o({id:null});get route(){return n(this.#i)}set route(e){i(this.#i,e)}#a=o({});get state(){return n(this.#a)}set state(e){i(this.#a,e)}#o=o(-1);get status(){return n(this.#o)}set status(e){i(this.#o,e)}#s=o(new URL(Qe));get url(){return n(this.#s)}set url(e){i(this.#s,e)}},A=new class{#e=o(null);get current(){return n(this.#e)}set current(e){i(this.#e,e)}},Xe=new class{#e=o(!1);get current(){return n(this.#e)}set current(e){i(this.#e,e)}},Me.v=()=>Xe.current=!0);function $e(e){Object.assign(k,e)}var et={spanContext(){return tt},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},tt={traceId:``,spanId:``,traceFlags:0},{onMount:nt,tick:rt}=s,it=r??(e=>e()),at=new Set([`icon`,`shortcut icon`,`apple-touch-icon`]),j=null,M=he(`sveltekit:scroll`)??{},N=he(`sveltekit:snapshot`)??{},P={url:je({}),page:je({}),navigating:c(null),updated:Ne()};function ot(e){M[e]=w()}function st(e,t){let n=e+1;for(;M[n];)delete M[n],n+=1;for(n=t+1;N[n];)delete N[n],n+=1}function F(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(g)}async function ct(){if(`serviceWorker`in navigator){let e=await navigator.serviceWorker.getRegistration(b||`/`);e&&await e.update()}}var lt,ut,I,L,dt,R,ft={},pt={},mt=[],ht=[],z=null;function B(){z?.fork?.then(e=>e?.discard()),z=null,Q={element:void 0,href:void 0}}var V=new Map,gt=new Set,_t=new Set,H=new Set,U={branch:[],error:null,url:null,nav:null},vt=!1,W=!1,yt=!0,G=!1,K=!1,bt=!1,xt=!1,St,q,J,Y,X=new Set,Ct=new Map,wt=new Map;async function Tt(e,t,n){if(globalThis.__sveltekit_1w3b6zb.data){let{q:e={},p:t={},l:n={},f:r={}}=globalThis.__sveltekit_1w3b6zb.data;for(let t in e)ft[t]=e[t];for(let e in n)ft[e]=n[e];for(let e in r)ft[e]=r[e];for(let e in t)pt[e]=t[e]}document.URL!==location.href&&(location.href=location.href),R=e,await e.hooks.init?.(),lt=me(e),L=document.documentElement,dt=t,ut=e.nodes[0],I=e.nodes[1],ut(),I(),q=history.state?.[x],J=history.state?.[S],q||(q=J=Date.now(),history.replaceState({...history.state,[x]:q,[S]:J},``));let r=M[q];function i(){r&&(history.scrollRestoration=`manual`,scrollTo(r.x,r.y))}n?(i(),await nn(dt,n)):(await Z({type:`enter`,url:Ee(R.hash?ln(new URL(location.href)):location.href),replace_state:!0}),i()),tn()}function Et(){mt.length=0,xt=!1}function Dt(e){ht.some(e=>e?.snapshot)&&(N[e]=ht.map(e=>e?.snapshot?.capture()))}function Ot(e){N[e]?.forEach((e,t)=>{ht[t]?.snapshot?.restore(e)})}function kt(){ot(q),ge(Se,M),Dt(J),ge(xe,N)}async function At(e,n,r,i){let a,o;n.invalidateAll&&B(),await Z({type:`goto`,url:Ee(e),keepfocus:n.keepFocus,noscroll:n.noScroll,replace_state:n.replaceState,state:n.state,redirect_count:r,nav_token:i,accept:()=>{if(n.invalidateAll){xt=!0,a=new Set;for(let[e,t]of Ct)for(let[n,r]of t)r.resource?.reset(),a.add(O(e,n));o=new Set;for(let[e,t]of wt)for(let n of t.keys())o.add(O(e,n))}n.invalidate&&n.invalidate.forEach($t)}}),n.invalidateAll&&t().then(t).then(()=>{for(let[e,t]of Ct)for(let[n,{resource:r}]of t)a?.has(O(e,n))&&r.start();for(let[e,t]of wt)for(let[n,{resource:r}]of t)o?.has(O(e,n))&&r.reconnect()})}async function jt(e){if(e.id!==z?.id){B();let t={};X.add(t),z={id:e.id,token:t,promise:Vt({...e,preload:t}).then(e=>(X.delete(t),e.type===`loaded`&&e.state.error&&B(),e)),fork:null}}return z.promise}async function Mt(e){let t=(await Gt(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(e=>e[1]()))}async function Nt(e,t,n){let r={params:U.params,route:{id:U.route?.id??null},url:new URL(location.href)};if(U={...e.state,nav:r},$e(e.props.page),St=new R.root({target:t,props:{...e.props,stores:P,components:ht},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),n){let e={from:null,to:{...r,scroll:M[q]??w()},willUnload:!1,type:`enter`,complete:Promise.resolve()};H.forEach(t=>t(e))}Ot(J),W=!0}async function Pt({url:e,params:t,branch:n,errors:r,status:i,error:a,route:o,form:s}){let c=`never`;if(b&&(e.pathname===b||e.pathname===b+`/`))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:qe(n).map(e=>e.node.component),page:cn(k)}};s!==void 0&&(l.props.form=s);let u={},d=!k,p=0;for(let e=0;e<Math.max(n.length,U.branch.length);e+=1){let t=n[e],r=U.branch[e];t?.data!==r?.data&&(d=!0),t&&(u={...u,...t.data},d&&(l.props[`data_${p}`]=u),p+=1)}return(!U.url||e.href!==U.url.href||U.error!==a||s!==void 0&&s!==k.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:k.data}),l}async function Ft({loader:e,parent:t,url:n,params:r,route:i,server_data_node:a}){let o=null,s=!0,c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await e();if(l.universal?.load){function e(...e){for(let t of e){let{href:e}=new URL(t,n);c.dependencies.add(e)}}let u={tracing:{enabled:!1,root:et,current:et},route:new Proxy(i,{get:(e,t)=>(s&&(c.route=!0),e[t])}),params:new Proxy(r,{get:(e,t)=>(s&&c.params.add(t),e[t])}),data:a?.data??null,url:h(n,()=>{s&&(c.url=!0)},e=>{s&&c.search_params.add(e)},R.hash),async fetch(t,r){t instanceof Request&&(r={body:t.method===`GET`||t.method===`HEAD`?void 0:await t.blob(),cache:t.cache,credentials:t.credentials,headers:[...t.headers].length>0?t?.headers:void 0,integrity:t.integrity,keepalive:t.keepalive,method:t.method,mode:t.mode,redirect:t.redirect,referrer:t.referrer,referrerPolicy:t.referrerPolicy,signal:t.signal,...r});let{resolved:i,promise:a}=It(t,r,n);return s&&e(i.href),a},setHeaders:g,depends:e,parent(){return s&&(c.parent=!0),t()},untrack(e){s=!1;try{return e()}finally{s=!0}}};o=await l.universal.load.call(null,u)??null}return{node:l,loader:e,server:a,universal:l.universal?.load?{type:`data`,data:o,uses:c}:null,data:o??a?.data??null,slash:l.universal?.trailingSlash??a?.slash}}function It(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:W?re(r,i.href,t):y(r,t)}}function Lt(e,t,n,r,i,a){if(xt)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]!==U.params[e])return!0;for(let e of i.dependencies)if(mt.some(t=>t(new URL(e))))return!0;return!1}function Rt(e,t){return e?.type===`data`?e:e?.type===`skip`?t??null:null}function zt(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 Bt({error:e,url:t,route:n,params:r}){return{type:`loaded`,state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:cn(k),constructors:[]}}}async function Vt({id:e,invalidating:t,url:n,params:r,route:i,preload:a}){if(z?.id===e)return X.delete(z.token),z.promise;let{errors:o,layouts:s,leaf:c}=i,d=[...s,c];o.forEach(e=>e?.().catch(g)),d.forEach(e=>e?.[1]().catch(g));let f=U.url?e!==qt(U.url):!1,p=U.route?i.id!==U.route.id:!1,ee=zt(U.url,n),m=!1,h=d.map(async(e,t)=>{if(!e)return;let a=U.branch[t];return e[1]===a?.loader&&!Lt(m,p,f,ee,a.universal?.uses,r)?a:(m=!0,Ft({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 h[n])?.data);return e},server_data_node:Rt(e[0]?{type:`skip`}:null,e[0]?a?.server:void 0)}))});for(let e of h)e.catch(g);let _=[];for(let e=0;e<d.length;e+=1)if(d[e])try{_.push(await h[e])}catch(t){if(t instanceof u)return{type:`redirect`,location:t.location};if(a&&X.has(a))return Bt({error:await $(t,{params:r,url:n,route:{id:i.id}}),url:n,params:r,route:i});let s=Je(t),c;if(t instanceof l)c=t.body;else{if(await P.updated.check())return await ct(),await F(n);c=await $(t,{params:r,url:n,route:{id:i.id}})}let d=await Ht(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 Yt(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 Ht(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 Ut({status:e,error:t,url:n,route:r}){let i={};try{return Pt({url:n,params:i,branch:[await Ft({loader:ut,url:n,params:i,route:r,parent:()=>Promise.resolve({}),server_data_node:Rt(null)}),{node:await I(),loader:I,universal:null,server:null,data:null}],status:e,error:t,errors:[],route:null})}catch(t){if(t instanceof u){await At(new URL(t.location,location.href),{},0);return}let a=await R.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 Wt(e){let t=e.href;if(V.has(t))return V.get(t);let n;try{let r=(async()=>{let t=await R.hooks.reroute({url:new URL(e),fetch:async(t,n)=>It(t,n,e).promise})??e;if(typeof t==`string`){let n=new URL(e);R.hash?n.hash=t:n.pathname=t,t=n}return t})();V.set(t,r),n=await r}catch{V.delete(t);return}return n}async function Gt(e,t){if(e&&!D(e,b,R.hash)){let n=await Wt(e);if(!n)return;let r=Kt(n);for(let n of lt){let i=n.exec(r);if(i)return{id:qt(e),invalidating:t,route:n,params:ee(i),url:e}}}}function Kt(e){return p(R.hash?e.hash.replace(/^#/,``).replace(/[?#].+/,``):e.pathname.slice(b.length))||`/`}function qt(e){return(R.hash?e.hash.replace(/^#/,``):e.pathname)+e.search}function Jt({url:e,type:t,intent:n,delta:r,event:i,scroll:a}){let o=!1,s=sn(U,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 G||gt.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=g,block:p=g,event:ee}){let m=Y;Y=u;let h=await Gt(r,!1),_=n===`enter`?sn(U,h,r,n):Jt({url:r,type:n,delta:i?.delta,intent:h,scroll:i?.scroll,event:ee});if(!_){p(),Y===u&&(Y=m);return}let te=q,ne=J;f(),G=!0,W&&_.navigation.type!==`enter`&&P.navigating.set(A.current=_.navigation);let v=h&&await Vt(h);if(!v){if(D(r,b,R.hash))return await F(r,s);v=await Yt(r,{id:null},await $(new d(404,`Not Found`,`Not found: ${r.pathname}`),{url:r,params:{},route:{id:null}}),404,s)}if(r=h?.url||r,Y!==u){_.reject(Error(`navigation aborted`));return}if(!v)return;if(v.type===`redirect`){if(l<20){await Z({type:n,url:new URL(v.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(v=await Ut({status:500,error:await $(Error(`Redirect loop`),{url:r,params:{},route:{id:null}}),url:r,route:{id:null}}),!v)return}else if(v.props.page.status>=400&&await P.updated.check())return await ct(),await F(r,s);if(Et(),ot(te),Dt(ne),v.props.page.url.pathname!==r.pathname&&(r.pathname=v.props.page.url.pathname),c=i?i.state:c,!i){let e=+!s,t={[x]:q+=e,[S]:J+=e,[Ce]:c};(s?history.replaceState:history.pushState).call(history,t,``,r),s||st(q,J)}let y=h&&z?.id===h.id?z.fork:null;z?.fork&&!y?B():(z=null,Q={element:void 0,href:void 0}),v.props.page.state=c;let re;if(W){let t=(await Promise.all(Array.from(_t,e=>e(_.navigation)))).filter(e=>typeof e==`function`);if(t.length>0){function e(){t.forEach(e=>{H.delete(e)})}t.push(e),t.forEach(e=>{H.add(e)})}let n=_.navigation.to;U={...v.state,nav:{params:n.params,route:n.route,url:n.url}},v.props.page&&(v.props.page.url=r),!a&&document.activeElement instanceof HTMLElement&&document.activeElement!==document.body&&document.activeElement.blur();let i=y&&await y;i?re=i.commit():(j=null,St.$set(v.props),j&&Object.assign(v.props.page,j),$e(v.props.page),re=e?.()),bt=!0}else await Nt(v,dt,!1);let{activeElement:ie}=document;if(await re,await t(),await t(),Y!==u){_.reject(Error(`navigation aborted`));return}v.props.page&&j&&Object.assign(v.props.page,j);let ae=null;if(yt){let e=i?i.scroll:o?w():null;e?scrollTo(e.x,e.y):(ae=r.hash&&document.getElementById(un(r)))?ae.scrollIntoView():scrollTo(0,0)}let oe=document.activeElement!==ie&&document.activeElement!==document.body;!a&&!oe&&on(r,!ae),yt=!0,G=!1,_.fulfil(void 0),_.navigation.to&&(_.navigation.to.scroll=w()),H.forEach(e=>e(_.navigation)),n===`popstate`&&Ot(J),P.navigating.set(A.current=null)}async function Yt(e,t,n,r,i){return e.origin===Te&&e.pathname===location.pathname&&!vt?await Ut({status:r,error:n,url:e,route:t}):await F(e,i)}var Q={element:void 0,href:void 0};function Xt(){let e,t;L.addEventListener(`mousemove`,t=>{let n=t.target;clearTimeout(e),e=setTimeout(()=>{i(n,C.hover)},20)});function n(e){e.defaultPrevented||i(e.composedPath()[0],C.tap)}L.addEventListener(`mousedown`,n),L.addEventListener(`touchstart`,n,{passive:!0});let r=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&(Mt(new URL(t.target.href)),r.unobserve(t.target))},{threshold:0});async function i(e,n){let r=ke(e,L),i=r===Q.element&&r?.href===Q.href&&n>=t;if(!r||i)return;let{url:a,external:o,download:s}=Ae(r,b,R.hash);if(o||s)return;let c=E(r),l=a&&qt(U.url)===qt(a);if(!(c.reload||l)){if(n<=c.preload_data){Q={element:r,href:r.href},t=C.tap;let e=await Gt(a,!1);if(!e)return;jt(e)}else n<=c.preload_code&&(Q={element:r,href:r.href},t=n,Mt(a))}}function a(){r.disconnect();for(let e of L.querySelectorAll(`a`)){let{url:t,external:n,download:i}=Ae(e,b,R.hash);if(n||i)continue;let a=E(e);a.reload||(a.preload_code===C.viewport&&r.observe(e),a.preload_code===C.eager&&Mt(t))}}H.add(a),a()}function $(e,t){if(e instanceof l)return e.body;let n=Je(e),r=Ye(e);return R.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function Zt(e,t){nt(()=>(e.add(t),()=>{e.delete(t)}))}function Qt(e){Zt(_t,e)}function $t(e){if(typeof e==`function`)mt.push(e);else{let{href:t}=new URL(e,location.href);mt.push(e=>e.href===t)}}function en(e,t){let n={[x]:q,[S]:J,[we]:k.url.href,[Ce]:t};history.replaceState(n,``,Ee(e)),k.state=t,St.$set({page:it(()=>cn(k))})}function tn(){history.scrollRestoration=`manual`,addEventListener(`beforeunload`,e=>{let t=!1;if(kt(),!G){let e=sn(U,void 0,null,`leave`),n={...e.navigation,cancel:()=>{t=!0,e.reject(Error(`navigation cancelled`))}};gt.forEach(e=>e(n))}t?(e.preventDefault(),e.returnValue=``):history.scrollRestoration=`auto`}),addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`&&kt()}),navigator.connection?.saveData||Xt(),L.addEventListener(`click`,async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;let n=ke(t.composedPath()[0],L);if(!n)return;let{url:r,external:i,target:a,download:o}=Ae(n,b,R.hash);if(!r)return;if(a===`_parent`||a===`_top`){if(window.parent!==window)return}else if(a&&a!==`_self`)return;let s=E(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&r.protocol!==`https:`&&r.protocol!==`http:`||o)return;let[c,l]=(R.hash?r.hash.replace(/^#/,``):r.href).split(`#`),u=c===m(location);if(i||s.reload&&(!u||!l)){Jt({url:r,type:`link`,event:t})?G=!0:t.preventDefault();return}if(l!==void 0&&u){let[,i]=U.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(K=!0,ot(q),e(r),!s.replace_state)return;K=!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})}),L.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(D(r,b,!1))return;let i=e.target,a=E(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(!an){if(t.state?.[`sveltekit:history`]){let n=t.state[x];if(Y={},n===q)return;let r=M[n],i=t.state[`sveltekit:states`]??{},a=new URL(t.state[`sveltekit:pageurl`]??location.href),o=t.state[S],s=U.url?m(location)===m(U.url):!1;if(o===J&&(bt||s)){i!==k.state&&(k.state=i),e(a),M[q]=w(),r&&scrollTo(r.x,r.y),q=n;return}let c=n-q;await Z({type:`popstate`,url:a,popped:{state:i,scroll:r,delta:c},accept:()=>{q=n,J=o},block:()=>{history.go(-c)},nav_token:Y,event:t})}else K||(e(new URL(location.href)),R.hash&&location.reload())}}),addEventListener(`hashchange`,()=>{K&&(K=!1,history.replaceState({...history.state,[x]:++q,[S]:J},``,location.href))});for(let e of document.querySelectorAll(`link`))at.has(e.rel)&&(e.href=e.href);addEventListener(`pageshow`,e=>{e.persisted&&P.navigating.set(A.current=null)});function e(e){U.url=k.url=e,P.page.set(cn(k)),P.page.notify()}}async function nn(e,{status:t=200,error:n,node_ids:r,params:i,route:a,server_route:o,data:s,form:c}){vt=!0;let l=new URL(location.href),d;({params:i={},route:a={id:null}}=await Gt(l,!1)||{}),d=lt.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=rn(r.uses)),Ft({loader:R.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:Rt(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 F(new URL(t.location,location.href));f=await Ut({status:Je(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 Nt(f,e,p))}function rn(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 an=!1;function on(e,t=!0){let n=document.querySelector(`[autofocus]`);if(n)n.focus();else{let n=un(e);if(n&&document.getElementById(n)){let{x:r,y:i}=w();setTimeout(()=>{let a=history.state;an=!0,location.replace(new URL(`#${n}`,location.href)),history.replaceState(a,``,e),t&&scrollTo(r,i),an=!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 sn(e,t,n,r,i=null){let a,o,s=new Promise((e,t)=>{a=e,o=t});return s.catch(g),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:w()},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 cn(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 ln(e){let t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function un(e){let t;if(R.hash){let[,,n]=e.hash.split(`#`,3);t=n??``}else t=e.hash.slice(1);return decodeURIComponent(t)}export{k as a,ye as c,A as i,en as n,Pe as o,Tt as r,be as s,Qt as t};
@@ -1 +0,0 @@
1
- import{o as e,r as t}from"../chunks/Bv_eEfLr.js";export{e as load_css,t as start};