@deslop/portfolio 0.1.1266 → 0.1.1268
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/(home)-B06cCdA_.js +1 -0
- package/dist/client/assets/{cv-XME03RIX.js → cv-F6MzL2_w.js} +1 -1
- package/dist/client/assets/{effect-5w28W-zd.js → effect-BqXG7N6F.js} +4 -4
- package/dist/client/assets/index-D0lILez5.css +2 -0
- package/dist/client/assets/index-U4VNnQ2b.js +3 -0
- package/dist/client/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2 +0 -0
- package/dist/client/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2 +0 -0
- package/dist/client/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
- package/dist/client/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
- package/dist/client/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2 +0 -0
- package/dist/client/assets/profile-DUgVqViT.js +1 -0
- package/dist/client/index.html +4 -4
- package/dist/server.js +16 -6
- package/package.json +2 -2
- package/dist/client/assets/(home)-CnFXo4wj.js +0 -1
- package/dist/client/assets/index-D8o9ef4o.js +0 -3
- package/dist/client/assets/index-ixzZqEfy.css +0 -2
- package/dist/client/assets/profile-CAmdNQBr.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-WkwZ5CU-.js";import{a as t,i as n,n as r,o as i,t as a}from"./react-COyt-gOi.js";import{$ as o,$t as s,An as c,At as l,B as u,C as d,Dn as f,E as p,En as m,Et as h,G as g,I as _,Jt as v,M as y,Mn as b,Mt as x,Ot as S,P as C,Pt as w,Q as T,R as E,T as D,V as ee,Wt as O,Xt as k,Zt as A,_n as j,a as M,at as N,cn as P,dn as F,en as I,et as L,f as te,ht as ne,in as re,it as ie,jn as ae,jt as oe,k as R,kt as z,l as B,ln as V,n as se,nn as ce,nt as le,on as H,p as ue,q as de,rn as fe,rt as pe,sn as me,t as he,tt as ge,u as _e,un as ve,vn as ye,vt as be,w as xe,wt as Se,xn as Ce,z as we}from"./effect-5w28W-zd.js";import{A as Te,C as U,D as W,E as Ee,M as De,O as Oe,P as ke,S as Ae,T as je,_ as Me,a as Ne,b as Pe,c as Fe,d as Ie,f as Le,g as Re,h as ze,i as Be,j as Ve,k as He,l as Ue,m as We,n as Ge,o as Ke,p as qe,r as Je,s as Ye,t as Xe,u as Ze,v as G,w as Qe,x as $e,y as K}from"./profile-CAmdNQBr.js";import{i as et,n as tt,r as nt,t as rt}from"./index-D8o9ef4o.js";var q=e(i(),1),it=new Map([[`bold`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M204,64V168a12,12,0,0,1-24,0V93L72.49,200.49a12,12,0,0,1-17-17L163,76H88a12,12,0,0,1,0-24H192A12,12,0,0,1,204,64Z`}))],[`duotone`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M192,64V168L88,64Z`,opacity:`0.2`}),q.createElement(`path`,{d:`M192,56H88a8,8,0,0,0-5.66,13.66L128.69,116,58.34,186.34a8,8,0,0,0,11.32,11.32L140,127.31l46.34,46.35A8,8,0,0,0,200,168V64A8,8,0,0,0,192,56Zm-8,92.69-38.34-38.34h0L107.31,72H184Z`}))],[`fill`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M200,64V168a8,8,0,0,1-13.66,5.66L140,127.31,69.66,197.66a8,8,0,0,1-11.32-11.32L128.69,116,82.34,69.66A8,8,0,0,1,88,56H192A8,8,0,0,1,200,64Z`}))],[`light`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M198,64V168a6,6,0,0,1-12,0V78.48L68.24,196.24a6,6,0,0,1-8.48-8.48L177.52,70H88a6,6,0,0,1,0-12H192A6,6,0,0,1,198,64Z`}))],[`regular`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M200,64V168a8,8,0,0,1-16,0V83.31L69.66,197.66a8,8,0,0,1-11.32-11.32L172.69,72H88a8,8,0,0,1,0-16H192A8,8,0,0,1,200,64Z`}))],[`thin`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M196,64V168a4,4,0,0,1-8,0V73.66L66.83,194.83a4,4,0,0,1-5.66-5.66L182.34,68H88a4,4,0,0,1,0-8H192A4,4,0,0,1,196,64Z`}))]]),at=q.forwardRef((e,t)=>q.createElement(ke,{ref:t,...e,weights:it}));at.displayName=`ArrowUpRightIcon`;var ot=new Map([[`bold`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M224.15,179.17l-46.83-46.82,37.93-13.51.76-.3a20,20,0,0,0-1.76-37.27L54.16,29A20,20,0,0,0,29,54.16L81.27,214.24A20,20,0,0,0,118.54,216c.11-.25.21-.5.3-.76l13.51-37.92,46.83,46.82a20,20,0,0,0,28.28,0l16.69-16.68A20,20,0,0,0,224.15,179.17Zm-30.83,25.17-48.48-48.48A20,20,0,0,0,130.7,150a20.66,20.66,0,0,0-3.74.35A20,20,0,0,0,112.35,162c-.11.25-.21.5-.3.76L100.4,195.5,54.29,54.29l141.21,46.1-32.71,11.66c-.26.09-.51.19-.76.3a20,20,0,0,0-6.17,32.48h0l48.49,48.48Z`}))],[`duotone`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M213.66,201,201,213.66a8,8,0,0,1-11.31,0l-51.31-51.31a8,8,0,0,0-13,2.46l-17.82,46.41a8,8,0,0,1-14.85-.71L40.41,50.44a8,8,0,0,1,10-10L210.51,92.68a8,8,0,0,1,.71,14.85l-46.41,17.82a8,8,0,0,0-2.46,13l51.31,51.31A8,8,0,0,1,213.66,201Z`,opacity:`0.2`}),q.createElement(`path`,{d:`M168,132.69,214.08,115l.33-.13A16,16,0,0,0,213,85.07L52.92,32.8A15.95,15.95,0,0,0,32.8,52.92L85.07,213a15.82,15.82,0,0,0,14.41,11l.78,0a15.84,15.84,0,0,0,14.61-9.59l.13-.33L132.69,168,184,219.31a16,16,0,0,0,22.63,0l12.68-12.68a16,16,0,0,0,0-22.63ZM195.31,208,144,156.69a16,16,0,0,0-26,4.93c0,.11-.09.22-.13.32l-17.65,46L48,48l159.85,52.2-45.95,17.64-.32.13a16,16,0,0,0-4.93,26h0L208,195.31Z`}))],[`fill`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M220.49,207.8,207.8,220.49a12,12,0,0,1-17,0l-56.57-56.57L115,214.08l-.13.33A15.84,15.84,0,0,1,100.26,224l-.78,0a15.82,15.82,0,0,1-14.41-11L32.8,52.92A15.95,15.95,0,0,1,52.92,32.8L213,85.07a16,16,0,0,1,1.41,29.8l-.33.13-50.16,19.27,56.57,56.56A12,12,0,0,1,220.49,207.8Z`}))],[`light`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M166.59,134.1a1.91,1.91,0,0,1-.55-1.79,2,2,0,0,1,1.08-1.42l46.25-17.76.24-.1A14,14,0,0,0,212.38,87L52.29,34.7A13.95,13.95,0,0,0,34.7,52.29L87,212.38a13.82,13.82,0,0,0,12.6,9.6c.23,0,.46,0,.69,0A13.84,13.84,0,0,0,113,213.61a2.44,2.44,0,0,0,.1-.24l17.76-46.25a2,2,0,0,1,3.21-.53l51.31,51.31a14,14,0,0,0,19.8,0l12.69-12.69a14,14,0,0,0,0-19.8Zm42.82,62.63-12.68,12.68a2,2,0,0,1-2.83,0L142.59,158.1a14,14,0,0,0-22.74,4.32,2.44,2.44,0,0,0-.1.24L102,208.91a2,2,0,0,1-3.61-.26L46.11,48.57a1.87,1.87,0,0,1,.47-2A1.92,1.92,0,0,1,47.93,46a2.22,2.22,0,0,1,.64.1L208.65,98.38a2,2,0,0,1,.26,3.61l-46.25,17.76-.24.1a14,14,0,0,0-4.32,22.74h0l51.31,51.31A2,2,0,0,1,209.41,196.73Z`}))],[`regular`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M168,132.69,214.08,115l.33-.13A16,16,0,0,0,213,85.07L52.92,32.8A15.95,15.95,0,0,0,32.8,52.92L85.07,213a15.82,15.82,0,0,0,14.41,11l.78,0a15.84,15.84,0,0,0,14.61-9.59l.13-.33L132.69,168,184,219.31a16,16,0,0,0,22.63,0l12.68-12.68a16,16,0,0,0,0-22.63ZM195.31,208,144,156.69a16,16,0,0,0-26,4.93c0,.11-.09.22-.13.32l-17.65,46L48,48l159.85,52.2-45.95,17.64-.32.13a16,16,0,0,0-4.93,26h0L208,195.31Z`}))],[`thin`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M165.17,135.51a4,4,0,0,1,1.17-6.46l46.31-17.79.16-.06a12,12,0,0,0-1.05-22.33L51.67,36.6A12,12,0,0,0,36.6,51.67L88.87,211.76A11.86,11.86,0,0,0,99.67,220h.58a11.86,11.86,0,0,0,11-7.19l.06-.16,17.79-46.31a4,4,0,0,1,6.47-1.17l51.31,51.32a12,12,0,0,0,17,0l12.69-12.69a12,12,0,0,0,0-17Zm45.66,62.63-12.69,12.69a4,4,0,0,1-5.66,0l-51.31-51.31a12,12,0,0,0-8.48-3.52,12.13,12.13,0,0,0-2.24.21,12,12,0,0,0-8.77,7l-.06.16-17.79,46.31a4,4,0,0,1-7.36-.42L44.2,49.19a4,4,0,0,1,5-5L209.27,96.47a4,4,0,0,1,.42,7.36l-46.31,17.78-.16.07a12,12,0,0,0-3.71,19.49l51.32,51.31A4,4,0,0,1,210.83,198.14Z`}))]]),st=q.forwardRef((e,t)=>q.createElement(ke,{ref:t,...e,weights:ot}));st.displayName=`CursorIcon`;var ct=new Map([[`bold`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z`}))],[`duotone`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z`,opacity:`0.2`}),q.createElement(`path`,{d:`M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`fill`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`light`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z`}))],[`regular`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`thin`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z`}))]]),lt=q.forwardRef((e,t)=>q.createElement(ke,{ref:t,...e,weights:ct}));lt.displayName=`XIcon`;function J(e){return e?.ownerDocument||document}var ut=e(a(),1);function dt(e){let t=ut.unstable_scheduleCallback(4,e);return()=>ut.unstable_cancelCallback(t)}var ft=q.createContext(ue({scheduleTask:dt,defaultIdleTTL:400})),pt=new WeakMap,mt=0,ht=new Set;function gt(e){mt++;try{return e()}finally{mt--}}function _t(e){if(mt===0)return e();ht.size===0&&queueMicrotask(vt),ht.add(e)}function vt(){for(let e of ht)ht.delete(e),e()}function yt(e,t){let n=pt.get(e);n===void 0&&(n=new WeakMap,pt.set(e,n));let r=n.get(t);if(r!==void 0)return r;let i=0,a,o={subscribe(n){i++;let r=e.subscribe(t,()=>_t(n));return()=>{i--,ht.delete(n),r()}},snapshot(){return gt(()=>e.get(t))},getServerSnapshot(){return(i===0||a===void 0)&&(a={value:gt(()=>B(t,e))}),a.value}};return n.set(t,o),o}function bt(e,t){let n=yt(e,t);return q.useEffect(vt),q.useSyncExternalStore(n.subscribe,n.snapshot,n.getServerSnapshot)}function xt(e,t){q.useEffect(()=>e.mount(t),[t,e])}function St(e,t,n){return n?.mode===`promise`||n?.mode===`promiseExit`?q.useCallback(r=>{e.set(t,r);let i=be(te(e,t,{suspendOnWaiting:!0}));return n.mode===`promise`?i.then(Ct):i},[e,t,n.mode]):q.useCallback(n=>{e.set(t,typeof n==`function`?n(e.get(t)):n)},[e,t])}var Ct=e=>{if(O(e))return e.value;throw v(e.cause)},wt=(e,t)=>{let n=q.useContext(ft);return xt(n,e),St(n,e,t)},Tt={suspendOnWaiting:new WeakMap,default:new WeakMap};function Et(e,t,n){let r=n?Tt.suspendOnWaiting:Tt.default,i=r.get(e);i===void 0&&(i=new WeakMap,r.set(e,i));let a=i.get(t);return a===void 0&&(a=new Promise(r=>{let a=e.subscribe(t,e=>{e._tag===`Initial`||n&&e.waiting||(setTimeout(a,1e3),r(),i.delete(t))})}),i.set(t,a)),a}function Dt(e,t,n){let r=bt(e,t);if(r._tag===`Initial`||n&&r.waiting)throw Et(e,t,n);return r}var Ot=(e,t)=>{let n=Dt(q.useContext(ft),e,t?.suspendOnWaiting??!1);if(n._tag===`Failure`&&!t?.includeFailure)throw v(n.cause);return n},kt=/^(?:Node\.js\/|Deno\/|Bun\/|Cloudflare-Workers)/;function At(){return typeof navigator>`u`||kt.test(String(navigator.userAgent))}function jt(e){let t=``,n=e;if(n==null){if(At())return`linux`;t=navigator.platform?.toLowerCase()??``,n=navigator.userAgent??``}return n=n.toLowerCase(),t.includes(`mac`)||n.includes(`mac`)?`mac`:t.includes(`win`)||n.includes(`win`)?`windows`:`linux`}function Mt(e,t=jt()){return e===`Mod`?t===`mac`?`Meta`:`Control`:e}var Nt=[`Control`,`Alt`,`Shift`,`Meta`],Pt={Control:`Control`,Ctrl:`Control`,control:`Control`,ctrl:`Control`,Shift:`Shift`,shift:`Shift`,Alt:`Alt`,Option:`Alt`,alt:`Alt`,option:`Alt`,Command:`Meta`,Cmd:`Meta`,Meta:`Meta`,command:`Meta`,cmd:`Meta`,meta:`Meta`,OS:`Meta`,os:`Meta`,Win:`Meta`,win:`Meta`,CommandOrControl:`Mod`,Mod:`Mod`,commandorcontrol:`Mod`,mod:`Mod`};Array.from({length:24},(e,t)=>`F${t+1}`);var Ft={Backquote:"`",Backslash:`\\`,BracketLeft:`[`,BracketRight:`]`,Comma:`,`,Equal:`=`,Minus:`-`,Period:`.`,Quote:`'`,Semicolon:`;`,Slash:`/`};function It(e){return/^\p{Letter}$/u.test(e)}function Lt(e){if(!e)return``;if(It(e)){let t=e.toUpperCase();return t.length===1?t:e}return e===` `?`Space`:e}function Rt(e,t){let n=!1;try{n=t!==`mac`&&typeof e.getModifierState==`function`&&e.getModifierState(`AltGraph`)}catch{}let r=(e.key||``).normalize(`NFC`),i=Lt(r),a=t===`windows`&&n&&!Bt({key:i,altGraph:n});return{key:i,code:e.code||``,ctrl:a||!!e.ctrlKey,shift:!!e.shiftKey,alt:a||!!e.altKey,meta:!!e.metaKey,altGraph:n&&!a,location:e.location,isComposing:!!e.isComposing||e.keyCode===229||r===`Process`||r===`Unidentified`&&(!e.code||e.code===`Unidentified`||Gt(e.code))}}function zt(e){if(/^Key[A-Z]$/i.test(e))return e.slice(3).toUpperCase();if(/^Digit[0-9]$/i.test(e))return e.slice(5);if(/^Numpad[0-9]$/i.test(e))return e.slice(6);if(Object.hasOwn(Ft,e))return Ft[e];let t={NumpadAdd:`+`,NumpadSubtract:`-`,NumpadMultiply:`*`,NumpadDivide:`/`,NumpadDecimal:`.`,NumpadEnter:`Enter`,Space:`Space`};return Object.hasOwn(t,e)?t[e]:void 0}function Bt(e){return e.altGraph?e.key===`Dead`||Vt(e.key)&&!/^[A-Za-z0-9]$/.test(e.key):!1}function Vt(e){return e!==``&&Array.from(e).length===1}function Ht(e){let t=e.toLowerCase();return Object.hasOwn(Pt,t)?Pt[t]:void 0}function Ut(e){return/^[A-Za-z][A-Za-z0-9]*$/.test(e)}function Wt(e){return e.startsWith(`[`)&&e.endsWith(`]`)&&Ut(e.slice(1,-1))?e.slice(1,-1):void 0}function Gt(e){return/^(Control|Shift|Alt|Meta)(Left|Right)$/.test(e)}function Kt(e){if(!e.endsWith(`+`))return e.split(`+`);let t=e.slice(0,-1).split(`+`);return t.at(-1)===``&&t.pop(),t.push(`+`),t}function qt(e){return/^[A-Za-z]$/.test(e)}function Jt(e){return/^\p{Script_Extensions=Latin}$/u.test(e)}var Yt;function Xt(e,t){return e===t?!0:/^\p{Letter}$/u.test(e)&&/^\p{Letter}$/u.test(t)?(Yt??=new Intl.Collator(void 0,{sensitivity:`accent`}),Yt.compare(e,t)===0):!1}function Zt(e){if(/^\[.*\]$/s.test(e.trim()))throw Error(`[hotkeys] Put '${e}' in the code field, not key`)}var Qt=`global`,$t={capture:!1,preventDefault:!0,stopPropagation:!0,eventType:`keydown`,enabled:!0,ignoreInputs:`auto`,conflictBehavior:`warn`,scope:Qt};function en(...e){let t={};for(let n of e)if(n)for(let e of Object.keys(n)){let r=n[e];r!==void 0&&(t[e]=r)}return t}function tn(e){return e.code===void 0?!!e.key&&!Ht(e.key):!!e.code&&!Gt(e.code)}function nn(e){return!(e.ctrl||e.meta||e.key===`Escape`||e.code===`Escape`)}function rn(e,t,n,r){if(n!==`allow`&&n!==`warn`){if(n===`error`)throw Error(`[hotkeys] '${t}' is already registered`);r(e)}}function an(e,t){let n=e,r=t,i=Object.keys(n);return i.length===Object.keys(r).length&&i.every(e=>e===`meta`&&n[e]&&r[e]?an(n[e],r[e]):Object.is(n[e],r[e]))}function on(e,t,n,r,i){let a={Control:t,Alt:r,Shift:n,Meta:i};return{...e,ctrl:t,shift:n,alt:r,meta:i,modifiers:Nt.filter(e=>a[e])}}function sn(e){return Array.isArray(e)}function cn(e){return sn(e)&&e.length===1?e[0]:e}function ln(e,t){let n=Kt(e).map(e=>e.trim()),r=Lt(n.pop()),i=new Set;for(let e of n){let n=Ht(e);if(!n)return on({key:``},!1,!1,!1,!1);i.add(Mt(n,t))}let a=Wt(r);return on(a===void 0?{key:r}:{code:a},i.has(`Control`),i.has(`Shift`),i.has(`Alt`),i.has(`Meta`))}function un(e,t){e.code===void 0&&Zt(e.key);let n=e.ctrl??!1,r=e.shift??!1,i=e.alt??!1,a=e.meta??!1;return e.mod&&(Mt(`Mod`,t)===`Control`?n=!0:a=!0),on(e.code===void 0?{key:Lt(e.key)}:{code:e.code},n,r,i,a)}function dn(e,t){return typeof e==`string`?ln(e,t):un(e,t)}function fn(e,t){e.code===void 0&&Zt(e.key);let n=t===`mac`?e.meta&&!e.ctrl:e.ctrl&&!e.meta,r=[];if(n)r.push(`Mod`),e.alt&&r.push(`Alt`),e.shift&&r.push(`Shift`);else for(let t of Nt)e.modifiers.includes(t)&&r.push(t);return r.push(e.code===void 0?Lt(e.key):`[${e.code}]`),r.join(`+`)}function pn(e,t=jt()){return Array.isArray(e)?e.map(e=>dn(e,t)):dn(e,t)}function mn(e,t=jt()){if(Array.isArray(e)){let n=e.map(e=>fn(dn(e,t),t));return n.length===1?n[0]:n}return fn(dn(e,t),t)}function hn(e){return Ht(e)!==void 0}function gn(e){return e?.nodeType===1}function _n(e){return`document`in e||e.nodeType===9}function vn(e){return`document`in e?e.document:e.ownerDocument??e}function yn(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t}function bn(e){return e.assignedSlot??e.parentNode??(e.host||null)}function xn(e){if(_n(e))return!0;for(let t=yn(e.ownerDocument);t;t=bn(t))if(t===e)return!0;return!1}var Sn=[`ArrowUp`,`ArrowDown`],Cn=[`ArrowLeft`,`ArrowRight`],wn=[`Enter`],Tn=[`Space`],En=[`Enter`,`Space`],Dn=`typeahead`,On=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Home`,`End`,`Enter`,`Space`,Dn],kn=[`ArrowUp`,`ArrowDown`,`Home`,`End`,`Enter`,`Space`,Dn],An=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Home`,`End`,`PageUp`,`PageDown`,`Enter`,`Space`],jn=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Space`],Mn=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Home`,`End`,`PageUp`,`PageDown`],Nn=[`ArrowUp`,`ArrowDown`,`Home`,`End`,`PageUp`,`PageDown`],Pn=[`ArrowLeft`,`ArrowRight`,`Home`,`End`],Fn={button:En,submit:En,reset:En,image:En,color:En,file:En,checkbox:Tn,radio:jn,range:Mn};function In(e){return e.getAttribute(`role`)?.trim().split(/\s+/)[0]}function Ln(e){if(!gn(e))return!1;switch(e.localName){case`input`:{let t=e;return!Fn[t.type]&&!t.readOnly}case`textarea`:return!e.readOnly;case`select`:return!0}let t=In(e);return t===`textbox`||t===`searchbox`||e.isContentEditable}function Rn(e){return e.localName.includes(`-`)?e.constructor.formAssociated===!0?!e.hasAttribute(`role`):!e.hasAttribute(`tabindex`):!1}function zn(e){let t=e.getAttribute(`aria-orientation`);switch(In(e)){case`button`:case`tab`:case`option`:case`treeitem`:case`menuitem`:case`menuitemcheckbox`:case`menuitemradio`:return En;case`link`:return wn;case`checkbox`:case`switch`:case`radio`:return Tn;case`menu`:case`menubar`:case`tree`:return On;case`listbox`:return[...t===`horizontal`?Cn:Sn,`Home`,`End`,`Enter`,`Space`,Dn];case`combobox`:return kn;case`tablist`:return[...t===`vertical`?Sn:Cn,`Home`,`End`,`Enter`,`Space`];case`toolbar`:return[...t===`vertical`?Sn:Cn,`Home`,`End`];case`grid`:case`treegrid`:return An;case`radiogroup`:return jn;case`slider`:return Mn;case`spinbutton`:return Nn}switch(e.localName){case`button`:case`summary`:return En;case`input`:return Fn[e.type]??Pn;case`textarea`:return Mn;case`a`:case`area`:return e.hasAttribute(`href`)?wn:[]}return[]}function Bn(e,t,n,r){if(t.ctrlKey||t.metaKey||t.altKey)return!1;let i=zn(e);return n===`Enter`||n===`Space`?!t.shiftKey&&i.includes(n):i.includes(n)||i.includes(Dn)&&/^.$/u.test(r)}function Vn(e,t,n){let r=yn(t),i=[];for(let e=r;e;e=bn(e))gn(e)&&i.push(e);let a=e.composedPath()[0];gn(a)&&!i.includes(a)&&(i=e.composedPath().filter(gn));let o=i.findIndex(e=>n(e)||e===r&&Rn(e));return{elements:i,index:o}}function Hn({elements:e,index:t},n){return t>=0&&(_n(n)||t<e.indexOf(n))}var Un=new WeakMap;function Wn(e,t){for(;e;e=bn(e))if(e===t)return!0;return!1}function Gn(e,t){if(e.type!==`keydown`||e.key!==`Escape`)return!1;let n=Un.get(e);if(!n){let r=vn(t),i=yn(r),a=e=>{try{return[...r.querySelectorAll(e)]}catch{return[]}},o=a(`dialog:modal`),s=o.filter(e=>Wn(i,e));n=[...s.length?s:o,...a(`:popover-open`).filter(e=>e.popover!==`manual`)],Un.set(e,n)}return n.some(e=>_n(t)||!Wn(t,e))}var Kn=new WeakMap;function qn(e,t){let n=Kn.get(e);if(!n){let r=e.key===`Unidentified`?zt(e.code)??e.code:e.key,i=Lt(r);n=Vn(e,vn(t),t=>Ln(t)||Bn(t,e,i,r)),Kn.set(e,n)}return Hn(n,t)}var Jn={current:null};function Yn(e,t,n=jt()){let r=typeof t==`string`?pn(t,n):t,i=Rt(e,n),a={matched:!1,score:0};if(i.isComposing||i.altGraph&&(r.ctrl||r.alt)||i.altGraph&&!Bt(i))return a;if(r.code!==void 0)return i.altGraph||!Zn(i,r,!1)?a:i.code===r.code?l(`code`,3):a;let o=Xt(i.key,r.key),s=o&&Vt(i.key)&&!/^\p{Letter}$/u.test(i.key)&&!r.shift;if(o&&Zn(i,r,s))return l(`key`,s?2:3);if(!Xn(i,n)||i.altGraph||!Zn(i,r,!1))return a;let c=zt(i.code);return c!==void 0&&Xt(c,r.key)?l(`fallback`,1):a;function l(e,t){return{matched:!0,score:t,source:e,identity:{key:i.key,code:i.code}}}}function Xn({key:e,code:t,ctrl:n,meta:r,shift:i,alt:a},o){if(e===`Unidentified`)return!t.startsWith(`Key`);if(e!==`Dead`&&!Vt(e))return!1;if(t.startsWith(`Digit`))return!0;if(qt(e))return!1;if(/^[!-~]$/.test(e))return i;if(!Jt(e))return!0;let s=t.startsWith(`Key`);return a&&!(s&&n&&o===`windows`)?!0:(n||r)&&!s}function Zn(e,t,n){let r=!e.altGraph&&e.ctrl,i=!e.altGraph&&e.alt;return r!==t.ctrl||i!==t.alt||e.meta!==t.meta?!1:e.shift===t.shift||n&&e.shift}function Qn(e,t){return e.ctrl===t.ctrl&&e.alt===t.alt&&e.shift===t.shift&&e.meta===t.meta&&(e.code!==void 0||t.code!==void 0?e.code===t.code:Xt(e.key,t.key))}var $n=new Set,er=new WeakSet,tr=new Map,nr=e=>e.code||`key:${e.key}`;function rr(e){return $n.size>0||er.has(e)||tr.has(nr(e))}var ir=new Set;function ar(e){for(let t of e)ir.add(t);for(let e of ir)ir.delete(e),e()}function or(e){let t=e,n=new Set;return{get state(){return t},get:()=>t,setState(e){let r=e(t);Object.is(t,r)||(t=r,ar(n))},subscribe(e){let r=()=>{typeof e==`function`?e(t):e.next?.(t)};return n.add(r),{unsubscribe(){n.delete(r),ir.delete(r)}}}}}var sr=class{dispatch;#e=new Map;#t=new WeakMap;constructor(e){this.dispatch=e}add(e,t,n,r=!1){if(typeof document>`u`)return;let i=this.#e.get(e)??new Map,a=i.get(t);if(a&&r)for(let n of[`keydown`,`keyup`])e.removeEventListener(n,a[n],t),e.addEventListener(n,a[n],t);if(!a){let n=new Set,r=r=>i=>{let a=i,o=this.#t.get(a),s=!o||o.groups.has(n);(!o||s)&&(o={ids:new Set,groups:new Set},this.#t.set(a,o)),o.groups.add(n);let c=new Set;for(let e of n)o.ids.has(e)||(o.ids.add(e),c.add(e));this.dispatch(a,e,r,t,c,s)};a={ids:n,keydown:r(`keydown`),keyup:r(`keyup`)},e.addEventListener(`keydown`,a.keydown,t),e.addEventListener(`keyup`,a.keyup,t),i.set(t,a),this.#e.set(e,i)}a.ids.add(n)}remove(e,t,n){let r=this.#e.get(e),i=r?.get(t);i&&(i.ids.delete(n),i.ids.size===0&&(e.removeEventListener(`keydown`,i.keydown,t),e.removeEventListener(`keyup`,i.keyup,t),r.delete(t),r.size===0&&this.#e.delete(e)))}destroy(){for(let[e,t]of this.#e)for(let[n,r]of t)e.removeEventListener(`keydown`,r.keydown,n),e.removeEventListener(`keyup`,r.keyup,n);this.#e.clear(),this.#t=new WeakMap}};function cr(e){return Array.isArray(e)?e.map(e=>lr(e)):lr(e)}function lr(e){e.code===void 0&&Zt(e.key);let t=[];for(let n of Nt)e.modifiers.includes(n)&&t.push(n);return t.push(e.code===void 0?e.key:`[${e.code}]`),t.join(`+`)}function ur(e,t,n=jt()){let r=sn(e)?e:[e],i=sn(t)?t:[t];return r.length===i.length&&r.every((e,t)=>Qn(pn(e,n),pn(i[t],n)))}var dr=1e3;function fr(e,t){return e.enabled===!1?`disabled`:t?.isScopeActive(e.scope)===!1?`suspended`:`active`}var pr=0;function mr(e,t){return typeof e==`string`?e:cr(t)}function hr(){return`hotkey_${++pr}`}function gr(e){let t=e;return{id:hr(),unregister:()=>{},get callback(){return t},set callback(e){t=e},setOptions:()=>{},get isActive(){return!1}}}function _r(e){return{...$t,...e===`sequence`?{timeout:dr}:{requireReset:!1}}}function vr(e,t){if(e===`chord`){let{timeout:e,...n}=t;return n}let{requireReset:n,...r}=t;return r}function yr({target:e,options:t}){if(!t.afterDelegatedHandlers||t.capture||_n(e))return e;let n=e.getRootNode();for(;`host`in n&&n.mode===`open`;)n=n.host.getRootNode();return n}function br(e){return!!e.afterDelegatedHandlers&&!e.capture}function xr(e){return e.kind===`chord`?[e.parsedChord]:e.parsedSequence}function Sr(e){let{ignoreInputs:t=`auto`}=e.options;return t===`auto`?nn(xr(e)[0]):t}function Cr(e,t){return e.length===t.length&&e.every((e,n)=>Qn(e,t[n]))}function wr(e){return sn(e)?e.join(` `):e}var Tr=class e{registrations=or(new Map);appHotkeys=or(null);scopes=or({active:[],exclusive:null,allowed:[],suspended:[]});#e;#t=new Set;#n=0;#r=[];#i=null;#a=new sr((...e)=>this.#S(...e));#o=new Map;#s=new WeakMap;#c=new Map;#l=new WeakSet;#u=new Set;#d=new Map;constructor(){this.#e=jt()}static getInstance(){return Jn.current??=new e}static resetInstance(){Jn.current?.destroy(),Jn.current=null}activateScope(e,t={}){if(e===`global`)return()=>{};let{exclusive:n}=t,r=n?n===!0?[]:n.allow:null,i={scope:e,parent:t.parent??`global`,allow:r,order:++this.#n};return this.#t.add(i),this.#p(),()=>{this.#t.delete(i)&&this.#p()}}isScopeActive(e=Qt){return this.#i?this.#i.has(e):e===`global`||this.#r.includes(e)}#f(e=Qt){return this.#r.indexOf(e)+1}#p(){let e=new Map,t=new Map;for(let n of this.#t)n.parent!==n.scope&&e.set(n.scope,n.parent),t.set(n.scope,Math.max(t.get(n.scope)??0,n.order));let n=t=>{let n=0,r=new Set;for(let i=e.get(t);i!==void 0&&!r.has(i);i=e.get(i))r.add(i),n++;return n},r=new Map;for(let[n,i]of t){let a=new Set;for(let o=n;o!==void 0&&!a.has(o);o=e.get(o)){a.add(o);let e=t.get(o);e!==void 0&&r.set(o,Math.min(r.get(o)??e,i))}}let i=(e,i)=>r.get(e)-r.get(i)||n(e)-n(i)||t.get(e)-t.get(i);this.#r=[...t.keys()].sort(i);let a=[...this.#t].filter(e=>e.allow).sort((e,t)=>i(e.scope,t.scope)||e.order-t.order).pop(),o=[Qt,...this.#r],s=[];if(this.#i=null,a?.allow){let{allow:t}=a,n=t=>{let n=new Set;for(let r=t;r!==void 0&&!n.has(r);r=e.get(r)){if(r===a.scope)return!0;n.add(r)}return!1};s=o.filter(e=>!n(e)&&t.includes(e)),this.#i=new Set([...o.filter(n),...s])}let c=this.#i;this.scopes.setState(()=>({active:this.#r,exclusive:a?.scope??null,allowed:s,suspended:c?o.filter(e=>!c.has(e)):[]})),this.#g()}#m(e){return fr(e.options,this)===`active`}#h(e,t){let n=e.composedPath();for(let r of this.registrations.state.values())if(!(!this.#m(r)||r.options.eventType!==t||this.#k(r,e)||!n.includes(r.target)||Sr(r)&&qn(e,r.target))&&(r.kind===`chord`?[r.parsedChord]:[r.parsedSequence[r.currentIndex],r.parsedSequence[0]]).some(t=>Yn(e,t,r.options.platform).matched))return!0;return!1}#g(){this.registrations.setState(e=>new Map(e))}register(e,t,n={}){let r=cn(e);if(r==null||sn(r)&&r.length===0||typeof document>`u`&&!n.target)return gr(t);let i=hr(),a=n.platform??this.#e,o=n.target??document,s=sn(r),c=s?`sequence`:`chord`,l={id:i,callback:t,options:{..._r(c),...vr(c,en(n)),platform:a},target:o,triggerCount:0,hasFired:!1},u;if(s){let e=pn(r,a);u={...l,kind:`sequence`,hotkey:r.map((t,n)=>mr(t,e[n])),parsedSequence:e,currentIndex:0,lastKeyTime:0}}else{let e=pn(r,a);u={...l,kind:`chord`,hotkey:mr(r,e),parsedChord:e}}if(!(u.kind===`sequence`?u.parsedSequence:[u.parsedChord]).every(tn))return gr(t);let d=this.#N(u);d&&rn(d.id,wr(u.hotkey),n.conflictBehavior??`warn`,e=>this.#_(e));let f=yr(u);this.#a.add(f,!!u.options.capture,i,br(u.options)),this.#o.set(i,f),this.registrations.setState(e=>new Map(e).set(i,u));let p=this;return{get id(){return i},unregister:()=>{p.#_(i)},get callback(){return p.registrations.state.get(i)?.callback??t},set callback(e){let t=p.registrations.state.get(i);t&&(t.callback=e)},setOptions:e=>{p.registrations.setState(t=>{let n=t.get(i);if(!n)return t;let r={..._r(n.kind),platform:n.options.platform},a={...n.options},o=Object.entries(vr(n.kind,e));for(let[e,t]of o)t===void 0?e in r?a[e]=r[e]:delete a[e]:a[e]=t;if(an(n.options,a))return t;let s=!!n.options.capture,c=p.#o.get(i)??n.target,l=yr({target:n.target,options:a});return s!==!!a.capture||c!==l?(p.#a.remove(c,s,i),p.#a.add(l,!!a.capture,i,br(a)),p.#o.set(i,l)):br(a)&&!br(n.options)&&p.#a.add(l,s,i,!0),new Map(t).set(i,{...n,options:a})})},get isActive(){return p.registrations.state.has(i)}}}#_(e){let t=this.registrations.state.get(e);t&&(this.registrations.setState(t=>{let n=new Map(t);return n.delete(e),n}),this.#a.remove(this.#o.get(e)??t.target,!!t.options.capture,e),this.#o.delete(e),this.#c.delete(e),this.#y(e))}#v(e,t){this.#y(e),this.#d.set(e,setTimeout(()=>{this.#d.delete(e);let t=this.registrations.state.get(e);if(t?.kind!==`sequence`||t.currentIndex===0)return;let n=t.options.timeout??1e3,r=t.lastKeyTime+n-Date.now();r>=0?this.#v(e,r+1):(t.currentIndex=0,t.lastKeyTime=0,this.#g())},t))}#y(e){let t=this.#d.get(e);t!==void 0&&(clearTimeout(t),this.#d.delete(e))}#b(e,t,n){let r=[];for(let i of e){let e=this.registrations.state.get(i);e?.kind===n&&!!e.options.capture===t&&r.push(e)}return r}#x(e,t){let n=this.registrations.state.get(e.id);return n&&!!n.options.capture===t?n:void 0}#S(e,t,n,r,i,a){if(a&&this.#s.set(e,this.#T(e,n)),r){this.#C(e,t,n,r,i);return}let o=new Map;for(let e of i){let t=this.registrations.state.get(e);if(!t)continue;let n=o.get(t.target)??new Set;o.set(t.target,n.add(e))}let s=o.size>1||!o.has(t)?e.composedPath():[],c=[...o.keys()].filter(e=>e===t||s.includes(e)).sort((e,n)=>e===t?1:n===t?-1:s.indexOf(e)-s.indexOf(n)),l=e.cancelBubble;for(let t of c){let i=new Set;for(let n of o.get(t)){let t=this.registrations.state.get(n)?.options.afterDelegatedHandlers;(!e.cancelBubble||!t&&l)&&i.add(n)}this.#C(e,t,n,r,i)}}#C(e,t,n,r,i){this.#w(e,t,n,r,this.#b(i,r,`chord`)),this.#D(e,t,n,r,this.#b(i,r,`sequence`))}#w(e,t,n,r,i){if(n===`keyup`)for(let t of i)t.hasFired&&this.#P(t,e)&&(t.hasFired=!1,t.activeMatch=void 0);if(n===`keydown`&&!e.repeat)for(let{id:e}of i)this.#c.get(e)&&this.#c.set(e,null);if(rr(e)||this.#s.get(e))return;let a=new Map,o=0,s=!1,c=Lt(e.key);for(let r of i){let i=this.#m(r),{eventType:l,preventDefault:u}=r.options,d=n===`keydown`&&l===`keyup`,f=this.#k(r,e),{parsedChord:p,id:m}=r,{platform:h}=r.options,g,_;if(n===`keyup`&&l===`keyup`&&this.#c.has(m)&&(g=Yn(e,p,h),(g.matched||p.modifiers.includes(c)&&!e.getModifierState(c))&&(_=this.#c.get(m),this.#c.delete(m))),!(!i&&u!==`always`||l!==n&&!d||Sr(r)&&qn(e,t))){if(g??=Yn(e,p,h),d)g.matched&&(f?this.#c.set(m,null):(u&&this.#O(e),i&&this.#c.set(m,g)));else{if(_!==void 0){if(!_||f)continue;g.matched||(g=_)}!f&&g.matched&&(i?(a.set(r.id,g),o=Math.max(o,g.score)):s=!0)}}}s&&a.size===0&&!this.#h(e,n)&&this.#O(e);let l=-1;for(let e of i)a.get(e.id)?.score===o&&(l=Math.max(l,this.#f(e.options.scope)));for(let t of i){let i=a.get(t.id);if(!i?.matched||i.score!==o||this.#f(t.options.scope)!==l)continue;let s=this.#x(t,r);s&&(this.#A(s,e),n===`keyup`?this.#j(s,e):s.options.requireReset&&s.hasFired&&e.repeat||(s.options.requireReset&&(s.hasFired=!0,s.activeMatch=i.identity),this.#j(s,e)))}}#T(e,t){let n=e.code||Lt(e.key);if(t===`keyup`){let r=this.#u.delete(n);return this.#E(e,t)||r}if(e.repeat)return this.#u.has(n);let r=this.#E(e,t);return r?this.#u.add(n):this.#u.delete(n),r}#E(e,t){if(rr(e)||Rt(e).isComposing||hn(Lt(e.key)))return!1;let n=e.composedPath(),r=Date.now();for(let i of this.registrations.state.values()){if(i.kind!==`sequence`||i.currentIndex===0||!this.#m(i)||i.options.eventType!==t||this.#k(i,e)||r-i.lastKeyTime>(i.options.timeout??1e3))continue;let a=i.target;if(n.includes(_n(a)?vn(a):a)&&!(Sr(i)&&qn(e,a))&&Yn(e,i.parsedSequence[i.currentIndex],i.options.platform).matched)return!0}return!1}#D(e,t,n,r,i){if(i.length===0)return;if(rr(e)){let e=!1;for(let t of i)t.currentIndex>0&&(t.currentIndex=0,this.#y(t.id),e=!0);e&&this.#g();return}if(e.type===`keydown`&&e.repeat||Rt(e).isComposing||hn(Lt(e.key)))return;let a=Date.now(),o=!1,s=new Map,c=0;for(let r of i){if(!this.#m(r)||Sr(r)&&qn(e,t)||r.options.eventType!==n||this.#k(r,e))continue;let i=r.options.timeout??1e3;r.currentIndex>0&&a-r.lastKeyTime>i&&(r.currentIndex=0,o=!0);let l=r.parsedSequence[r.currentIndex];if(!l)continue;let u=Yn(e,l,r.options.platform),d=r.currentIndex+1;!u.matched&&r.currentIndex>0&&(u=Yn(e,r.parsedSequence[0],r.options.platform),d=1),s.set(r.id,{score:u.score,nextIndex:d}),c=Math.max(c,u.score)}let l=[];for(let t of i){let n=s.get(t.id);n&&(n.score>0&&n.score===c?(t.lastKeyTime=a,t.currentIndex=n.nextIndex,o=!0,t.currentIndex>=t.parsedSequence.length?(this.#A(t,e),t.currentIndex=0,l.push(t)):t.options.preventDefault&&this.#O(e)):t.currentIndex>0&&(t.currentIndex=0,o=!0))}for(let e of i)if(s.has(e.id)){if(e.currentIndex>0){let t=e.options.timeout??1e3;this.#v(e.id,t+1)}else this.#y(e.id)}o&&l.length===0&&this.#g();for(let t of l){let n=this.#x(t,r);n&&this.#j(n,e)}}#O(e){e.defaultPrevented||this.#l.add(e),e.preventDefault()}#k(e,t){return Gn(t,e.target)||!!e.options.ignoreDefaultPrevented&&t.defaultPrevented&&!this.#l.has(t)}#A(e,t){e.options.preventDefault&&this.#O(t),e.options.stopPropagation&&t.stopPropagation()}#j(e,t,n=this.#M(e)){e.triggerCount++,e.kind===`sequence`&&(e.hasFired=!0),this.#g();let r=t.defaultPrevented;e.callback(t,n),!r&&t.defaultPrevented&&this.#l.add(t)}#M(e){return e.kind===`chord`?{kind:`chord`,hotkey:e.hotkey,parsedChord:e.parsedChord}:{kind:`sequence`,hotkey:e.hotkey,parsedSequence:e.parsedSequence}}#N(e){let t=xr(e);for(let n of this.registrations.state.values())if(n.target===e.target&&n.options.scope===e.options.scope&&n.options.eventType===e.options.eventType&&Cr(xr(n),t))return n;return null}#P(e,t){let n=e.parsedChord,r=Lt(t.key);return e.activeMatch?.code&&t.code===e.activeMatch.code?!0:(n.code===void 0?Xt(r,n.key):t.code===n.code)||n.modifiers.includes(r)}resetSequenceProgress(){for(let e of this.registrations.state.values())e.kind===`sequence`&&(e.currentIndex=0,e.lastKeyTime=0);for(let e of this.#d.values())clearTimeout(e);this.#d.clear(),this.#g()}getRegistrationCount(){return this.registrations.state.size}isRegistered(e,t){for(let n of this.registrations.state.values())if(ur(n.hotkey,e,n.options.platform)&&(t===void 0||n.target===t))return!0;return!1}hasActiveRegistration(e){if(!e)return!1;let t=typeof e==`object`&&`~appHotkey`in e?e.id:void 0;for(let n of this.registrations.state.values())if(this.#m(n)&&xn(n.target)&&(t===void 0?ur(n.hotkey,e,n.options.platform):n.options.appHotkeyId===t))return!0;return!1}destroy(){for(let e of this.#d.values())clearTimeout(e);this.#d.clear(),this.#a.destroy(),this.#o.clear(),this.registrations.setState(()=>new Map),this.appHotkeys.setState(()=>null)}};function Er(){return Tr.getInstance()}function Dr(e){return typeof e==`object`&&!!e&&e[`~appHotkey`]===!0}function Or(e,t){return t?.get(e.id)??e}function kr(e){return{...e.options,...e.scope!==void 0&&{scope:e.scope},meta:e.meta,appHotkeyId:e.id}}function Ar(e={}){let t=new Map;return{update(n,r={}){let i=[];n.forEach((t,n)=>{let a=en(r,t.options),o={...$t,...a,...e,target:`target`in a?a.target??null:typeof document>`u`?null:document,platform:a.platform??jt()};if(!o.target||!t.hotkey||sn(t.hotkey)&&t.hotkey.length===0)return;let s=pn(t.hotkey,o.platform);if(!(Array.isArray(s)?s:[s]).every(tn))return;let c=mn(s,o.platform);sn(c)?delete o.requireReset:delete o.timeout,i.push({key:`${n}:${sn(c)?c.join(` `):c}`,callback:t.callback,options:o,register:()=>Er().register(c,t.callback,o)})});let a=new Set(i.map(e=>e.key));for(let[e,n]of t)a.has(e)||(n.handle.unregister(),t.delete(e));for(let e of i){let n=t.get(e.key),{target:r,platform:i}=e.options;if(n?.handle.isActive&&n.target===r&&n.platform===i){n.handle.callback=e.callback;let t=Object.fromEntries(Object.keys(n.options).map(e=>[e,void 0]));n.handle.setOptions({...t,...e.options}),n.options=e.options}else n?.handle.unregister(),t.set(e.key,{handle:e.register(),target:r,platform:i,options:e.options})}},destroy(){for(let{handle:e}of t.values())e.unregister();t.clear()}}}function jr(e,t={}){return e.map(e=>{let n=e.hotkey,r={};if(Dr(n)){let e=Or(n,t.appHotkeysStore);r=kr(e),n=e.hotkey??[]}let i=[t.defaults,r,t.commonOptions,e.options],{target:a,...o}=en(...i),s=a===void 0?null:t.resolveTarget?t.resolveTarget(a):a;return{hotkey:n,callback:e.callback,options:i.some(e=>e&&Object.hasOwn(e,`target`))?{...o,target:s??null}:o}})}var Mr=(0,q.createContext)(null);function Nr(){return(0,q.useContext)(Mr)}function Pr(e,t){let n=(0,q.useCallback)(t=>e.subscribe(t).unsubscribe,[e]),r=(0,q.useRef)(null),i=()=>{let n=e.get(),i=r.current;return i&&i.selector===t&&Object.is(i.state,n)?i.selected:(r.current={state:n,selector:t,selected:t(n)},r.current.selected)};return(0,q.useSyncExternalStore)(n,i,i)}var Fr=or(null);function Ir(){let e=Nr()?.appHotkeysStore??null;return Pr(e?.store??Fr,e=>e),e}function Lr(e){return typeof e==`object`&&!!e&&`current`in e}function Rr(e){return Lr(e)?e.current:e}function zr(e,t={}){let n=Nr()?.defaultOptions.hotkey,r=Ir(),i=(0,q.useRef)({hotkeys:e,commonOptions:t,defaults:n,appHotkeysStore:r});i.current={hotkeys:e,commonOptions:t,defaults:n,appHotkeysStore:r};let a=(0,q.useRef)(null);(0,q.useEffect)(()=>{a.current??=Ar({afterDelegatedHandlers:!0});let{hotkeys:e,...t}=i.current;a.current.update(jr(e,{...t,resolveTarget:Rr}))}),(0,q.useEffect)(()=>()=>{a.current?.destroy(),a.current=null},[])}var Br=q.createContext(void 0);function Vr(e){let t=q.useContext(Br);if(!e&&t===void 0)throw Error(Me(27));return t}var Hr=`data-starting-style`,Ur=`data-ending-style`,Wr={[Hr]:``},Gr={[Ur]:``},Kr={transitionStatus(e){return e===`starting`?Wr:e===`ending`?Gr:null}},qr=`data-open`,Jr=`data-closed`,Yr=`data-anchor-hidden`,Xr={[qr]:``},Zr={[Jr]:``},Qr={[Yr]:``},$r={open(e){return e?Xr:Zr},anchorHidden(e){return e?Qr:null}},ei={...$r,...Kr},ti=q.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,s=Vr(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`),d={open:c,transitionStatus:s.useState(`transitionStatus`)};return Ze(`div`,e,{state:d,ref:[s.context.backdropRef,t],stateAttributesMapping:ei,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})});function ni(e,t,n,r){let i=!1,a=!1,o=r??Le;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}var ri=`none`,ii=`trigger-press`,ai=`outside-press`,oi=`close-press`,si=`focus-out`,ci=`escape-key`,li=`imperative-action`,ui=q.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,...s}=e,c=Vr(),l=c.useState(`open`),{getButtonProps:u,buttonRef:d}=Re({disabled:a,native:o}),f={disabled:a};function p(e){l&&c.setOpen(!1,ni(oi,e.nativeEvent))}return Ze(`button`,e,{state:f,ref:[t,d],props:[{onClick:p},s,u]})});function di(){let[,e]=q.useState({});return q.useCallback(()=>{e({})},[])}var fi=0;function pi(e,t=`mui`){let n=q.useRef(void 0),r=di(),i=e??n.current;return q.useEffect(()=>{n.current??(fi+=1,n.current=`${t}-${fi}`,e??r())},[e,t,r]),i}var mi=$e.useId;function hi(e,t){if(mi!==void 0){let n=mi();return e??(t?`${t}-${n}`:n)}return pi(e,t)}function gi(e){return hi(e,`base-ui`)}var _i=q.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=Vr(),c=gi(a);return s.useSyncedValueWithCleanup(`descriptionElementId`,c),Ze(`p`,e,{ref:t,props:[{id:c},o]})});function Y(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function vi(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}function yi(e){let t=Pe(bi,e).current;return t.next=e,G(t.effect),t}function bi(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function xi(e){q.useEffect(e,Ie)}var Si=0,Ci=class e{static create(){return new e}currentId=Si;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Si,t()},e)}isStarted(){return this.currentId!==Si}clear=()=>{this.currentId!==Si&&(clearTimeout(this.currentId),this.currentId=Si)};disposeEffect=()=>this.clear};function wi(){let e=Pe(Ci.create).current;return xi(e.disposeEffect),e}function Ti(){return typeof navigator>`u`?{userAgent:``,platform:``,maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:Ei,platform:Di,maxTouchPoints:Oi}=Ti(),ki=Ei.toLowerCase(),Ai=Di.toLowerCase(),ji=/^i(os$|p)/.test(Ai)||Ai===`macintel`&&Oi>1,Mi=`android`,Ni=Ai===Mi||ki.includes(Mi),Pi=!ji&&Ai.startsWith(`mac`);Ai.startsWith(`win`),!Ni&&/^(linux|chrome os)/.test(Ai);var Fi=Pi||ji,Ii=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`);!Ii&&ki.includes(`firefox`),!Ii&&ki.includes(`chrom`);var Li=Fi,Ri=/jsdom|happydom/.test(ki),zi=null;globalThis.requestAnimationFrame;var Bi=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||=(requestAnimationFrame(this.tick),!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||this.callbacks[t]!==null&&(this.callbacks[t]=null,--this.callbacksCount)}},Vi=class e{static create(){return new e}static request(e){return Bi.request(e)}static cancel(e){return Bi.cancel(e)}currentId=zi;request(e){this.cancel(),this.currentId=Bi.request(()=>{this.currentId=zi,e()})}cancel=()=>{this.currentId!==zi&&(Bi.cancel(this.currentId),this.currentId=zi)};disposeEffect=()=>this.cancel};function Hi(){let e=Pe(Vi.create).current;return xi(e.disposeEffect),e}var Ui={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},Wi={...Ui,position:`fixed`,margin:0,top:0,left:0};({...Ui});var X=t(),Gi=q.forwardRef(function(e,t){let[n,r]=q.useState();G(()=>{Li&&Ii&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,X.jsx)(`span`,{...e,ref:t,style:Wi,"aria-hidden":!n||void 0,...i,"data-base-ui-focus-guard":``})});function Ki(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function Z(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&Ve(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function qi(e,t){let n=e;for(;n;){if(Ee(n)&&n.matches(t))return n;n=n.assignedSlot??n.parentNode??(Ve(n)?n.host:null)}return null}function Ji(e){return`composedPath`in e?e.composedPath()[0]??e.target:e.target}var Yi=`data-base-ui-focusable`;function Xi(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Zi(e){return e.matches(`html,body`)}function Qi(e){return W(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function $i(e){return e?e.getAttribute(`role`)===`combobox`&&Qi(e):!1}function ea(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function ta(e){e.preventDefault(),e.stopPropagation()}function na(e){return`nativeEvent`in e}function ra(e){return e.pointerType===``&&e.isTrusted?!0:Ni&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function ia(e){return Ri?!1:!Ni&&e.width===0&&e.height===0||e.type===`pointerdown`&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`&&(Ni||e.buttons===0)||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function aa(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}function oa(e){return e.visibility===`hidden`||e.visibility===`collapse`}function sa(e,t=e?Ae(e):null){return!e||!e.isConnected||!t||oa(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var ca=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function la(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return Ve(n)?n.host:null}function ua(e){for(let t of Array.from(e.children))if(U(t)===`summary`)return t;return null}function da(e,t){let n=ua(t);return!!n&&(e===n||Z(n,e))}function fa(e){let t=e?U(e):``;return e!=null&&e.matches(ca)&&(t!==`summary`||e.parentElement!=null&&U(e.parentElement)===`details`&&ua(e.parentElement)===e)&&(t!==`details`||ua(e)==null)&&(t!==`input`||e.type!==`hidden`)}function pa(e){if(!fa(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=la(t)){let n=t!==e,r=U(t)===`slot`;if(t.hasAttribute(`inert`)||n&&U(t)===`details`&&!t.open&&!da(e,t)||t.hasAttribute(`hidden`)||!r&&!ma(t,n))return!1}return!0}function ma(e,t){let n=Ae(e);return t?n.display!==`none`:sa(e,n)}function ha(e){let t=e.tabIndex;if(t<0){let t=U(e);if(t===`details`||t===`audio`||t===`video`||W(e)&&e.isContentEditable)return 0}return t}function ga(e){if(U(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function _a(e,t){let n=ga(e);if(!n)return!0;let r=t.find(e=>{let t=ga(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=ga(e);return t?.name===n.name&&t.form===n.form})===n}function va(e){if(W(e)&&U(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return W(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function ya(e,t){va(e).forEach(e=>{fa(e)&&t.push(e),ya(e,t)})}function ba(e,t,n){va(e).forEach(e=>{W(e)&&e.matches(t)&&n.push(e),ba(e,t,n)})}function xa(e){return pa(e)&&ha(e)>=0}function Sa(e){let t=[];return ya(e,t),t.filter(pa)}function Ca(e){let t=Sa(e);return t.filter(e=>ha(e)>=0&&_a(e,t))}function wa(e,t){let n=Ca(e),r=n.length;if(r===0)return;let i=Ki(J(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function Ta(e){return wa(J(e).body,1)||e}function Ea(e){return wa(J(e).body,-1)||e}function Da(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!Z(n,r)}function Oa(e){Ca(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function ka(e){let t=[];ba(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}function Aa(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...Aa(e,t.id,n)])}function ja(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function Ma(e){return`data-base-ui-${e}`}var Na=0;function Pa(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(Na);function a(){(!i||i())&&e?.focus({preventScroll:n})}if(r)return a(),qe;let o=requestAnimationFrame(a);return Na=o,()=>{Na===o&&(cancelAnimationFrame(o),Na=0)}}var Fa=`data-base-ui-inert`,Ia=new WeakMap,La=new WeakSet,Ra=new WeakMap,za=0;function Ba(e){return e?Ve(e)?e.host:Ba(e.parentNode):null}var Va=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=Ba(t);return e.contains(n)?n:null}).filter(e=>e!=null),Ha=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},Ua=(e,t,n)=>{let r=[],i=e=>{e&&!n.has(e)&&Array.from(e.children).forEach(e=>{U(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function Wa(e,t,n,{mark:r=!0}){let i=Va(t,e),a=r?Ua(t,Ha(i),new Set(i)):[],o=[],s=[];if(n){let e=Va(t,Array.from(t.querySelectorAll(`[aria-live]`))),n=i.concat(e);Ua(t,Ha(n),new Set(n)).forEach(e=>{let t=e.getAttribute(`aria-hidden`),n=t!==null&&t!==`false`,r=(Ia.get(e)||0)+1;Ia.set(e,r),o.push(e),r===1&&n&&La.add(e),n||e.setAttribute(`aria-hidden`,`true`)})}return r&&a.forEach(e=>{let t=(Ra.get(e)||0)+1;Ra.set(e,t),s.push(e),t===1&&e.setAttribute(Fa,``)}),za+=1,()=>{o.forEach(e=>{let t=(Ia.get(e)||0)-1;Ia.set(e,t),t||(La.has(e)||e.removeAttribute(`aria-hidden`),La.delete(e))}),r&&s.forEach(e=>{let t=(Ra.get(e)||0)-1;Ra.set(e,t),t||e.removeAttribute(Fa)}),--za,za||(Ia=new WeakMap,La=new WeakSet,Ra=new WeakMap)}}function Ga(e,t={}){let{ariaHidden:n=!1,mark:r=!0}=t,i=J(e[0]).body;return Wa(e,i,n,{mark:r})}var Ka={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},qa=e(n(),1),Ja=q.createContext(null),Ya=()=>q.useContext(Ja),Xa=Ma(`portal`);function Za(e={}){let{ref:t,container:n,componentProps:r=Le,elementProps:i}=e,a=hi(),o=Ya()?.portalNode,[s,c]=q.useState(null),[l,u]=q.useState(null),d=K(e=>{e!==null&&u(e)}),f=q.useRef(null);G(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}let e=(n&&(He(n)?n:n.current))??o??document.body;e==null?f.current&&(f.current=null,u(null),c(null)):f.current!==e&&(f.current=e,u(null),c(e))},[n,o]);let p=Ze(`div`,r,{ref:[t,d],props:[{id:a,[Xa]:``},i]}),m=s&&p?qa.createPortal(p,s):null;return{node:l,nodeId:q.isValidElement(p)?p.props.id:void 0,subtree:m}}var Qa=q.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:o,portalOwnerRole:s,...c}=e,{node:l,nodeId:u,subtree:d}=Za({container:o,ref:t,componentProps:e,elementProps:c}),f=q.useRef(null),p=q.useRef(null),m=q.useRef(null),h=q.useRef(null),[g,_]=q.useState(null),v=q.useRef(!1),y=g?.modal,b=g?.open,x=!!g&&!g.modal&&g.open&&!!l;q.useEffect(()=>{if(!l||y)return;function e(e){l&&e.relatedTarget&&Da(e)&&(e.type===`focusin`?v.current&&=(ka(l),!1):(Oa(l),v.current=!0))}return vi(Y(l,`focusin`,e,!0),Y(l,`focusout`,e,!0))},[l,y]),G(()=>{l&&b===!0&&v.current&&(ka(l),v.current=!1)},[b,l]);let S=q.useMemo(()=>({beforeOutsideRef:f,afterOutsideRef:p,beforeInsideRef:m,afterInsideRef:h,portalNode:l,setFocusManagerState:_}),[l]);return(0,X.jsxs)(q.Fragment,{children:[d,(0,X.jsxs)(Ja.Provider,{value:S,children:[x&&l&&(0,X.jsx)(Gi,{"data-type":`outside`,ref:f,onFocus:e=>{Da(e,l)?m.current?.focus():Ea(g?g.domReference:null)?.focus()}}),x&&l&&(0,X.jsx)(`span`,{role:s,"aria-owns":u,style:Ka}),l&&qa.createPortal(a,l),x&&l&&(0,X.jsx)(Gi,{"data-type":`outside`,ref:p,onFocus:e=>{Da(e,l)?h.current?.focus():(Ta(g?g.domReference:null)?.focus(),g?.closeOnFocusOut&&g?.onOpenChange(!1,ni(`focus-out`,e.nativeEvent)))}})]})]})});function $a(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var eo=q.createContext(null),to=q.createContext(null),no=()=>q.useContext(eo)?.id||null,ro=e=>{let t=q.useContext(to);return e??t};function io(e){return e==null?e:`current`in e?e.current:e}function ao(e,t){let n=je(Ji(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||(ra(e)?`keyboard`:t||`mouse`):`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var oo=20,so=[];function co(){so=so.filter(e=>e.deref()?.isConnected)}function lo(e){co(),e&&U(e)!==`body`&&(so.push(new WeakRef(e)),so.length>oo&&(so=so.slice(-20)))}function uo(){return co(),so[so.length-1]?.deref()}function fo(e){return e?xa(e)?e:Ca(e)[0]||e:null}function po(e){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!e.getAttribute(`role`)?.includes(`dialog`))return;let t=Sa(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return xa(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),n=e.getAttribute(`tabindex`);t.length===0?n!==`0`&&(e.setAttribute(`tabindex`,`0`),e.setAttribute(`data-tabindex`,`0`)):(n!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function mo(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:a=!0,explicitReturnFocus:o,restoreFocus:s=!1,modal:c=!0,closeOnFocusOut:l=!0,openInteractionType:u=``,nextFocusableElement:d,previousFocusableElement:f,beforeContentFocusGuardRef:p,externalTree:m,getInsideElements:h}=e,g=t.useState(`open`),_=t.useState(`domReferenceElement`),v=t.useState(`floatingElement`),{events:y,dataRef:b}=t.context,x=K(()=>b.current.floatingContext?.nodeId),S=i===!1,C=$i(_)&&S,w=yi(i),T=yi(a),E=yi(o),D=yi(u),ee=yi(g),O=ro(m),k=Ya(),A=q.useRef(!1),j=q.useRef(!1),M=q.useRef(!1),N=q.useRef(null),P=q.useRef(``),F=q.useRef(``),I=q.useRef(null),L=q.useRef(null),te=ze(I,p,k?.beforeInsideRef),ne=ze(L,k?.afterInsideRef),re=wi(),ie=wi(),ae=Hi(),oe=k!=null,R=ea(v),z=K((e=R)=>e?Ca(e):[]),B=K(()=>h?.().filter(e=>e!=null)??[]);q.useEffect(()=>{if(r||!c)return;function e(e){e.key===`Tab`&&Z(R,Ki(J(R)))&&z().length===0&&!C&&ta(e)}return Y(J(R),`keydown`,e)},[r,R,c,C,z]),q.useEffect(()=>{if(r||!g)return;let e=J(R);function t(){M.current=!1}function n(e){let t=Ji(e),n=B(),r=Z(v,t)||Z(_,t)||Z(k?.portalNode,t)||n.some(e=>e===t||Z(e,t));M.current=!r,F.current=e.pointerType||`keyboard`,qi(t,`[data-base-ui-click-trigger]`)&&(j.current=!0,ie.start(0,()=>{j.current=!1}))}function i(){F.current=`keyboard`}return vi(Y(e,`pointerdown`,n,!0),Y(e,`pointerup`,t,!0),Y(e,`pointercancel`,t,!0),Y(e,`keydown`,i,!0),t)},[r,v,_,R,g,k,ie,B]),q.useEffect(()=>{if(r||!l)return;let e=J(R);function n(){j.current=!0,ie.start(0,()=>{j.current=!1})}function i(e){let t=Ji(e);xa(t)&&(N.current=t)}function a(n){let r=n.relatedTarget,i=n.currentTarget,a=Ji(n);c&&r==null&&a!=null&&Z(v,a)&&lo(a),queueMicrotask(()=>{let o=x(),l=t.context.triggerElements,u=B(),p=r?.hasAttribute(Ma(`focus-guard`))&&[I.current,L.current,k?.beforeInsideRef.current,k?.afterInsideRef.current,k?.beforeOutsideRef.current,k?.afterOutsideRef.current,io(f),io(d)].includes(r),m=!(Z(_,r)||Z(v,r)||Z(r,v)||Z(k?.portalNode,r)||u.some(e=>e===r||Z(e,r))||l.hasMatchingElement(e=>Z(e,r))||p||O&&(Aa(O.nodesRef.current,o).find(e=>Z(e.context?.elements.floating,r)||Z(e.context?.elements.domReference,r))||ja(O.nodesRef.current,o).find(e=>[e.context?.elements.floating,ea(e.context?.elements.floating)].includes(r)||e.context?.elements.domReference===r)));if(i===_&&R&&po(R),s&&i!==_&&!sa(a)&&Ki(e)===e.body){if(W(R)&&(R.focus(),s===`popup`)){ae.request(()=>{R.focus()});return}let e=z(),t=N.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||R;W(n)&&n.focus()}b.current.insideReactTree?b.current.insideReactTree=!1:(C||!c)&&r&&m&&!j.current&&(C||r!==uo())&&(A.current=!0,t.setOpen(!1,ni(si,n)))})}function o(){M.current||(b.current.insideReactTree=!0,re.start(0,()=>{b.current.insideReactTree=!1}))}let u=W(_)?_:null;if(v||u)return vi(u&&Y(u,`focusout`,a),u&&Y(u,`pointerdown`,n),v&&Y(v,`focusin`,i),v&&Y(v,`focusout`,a),v&&k&&Y(v,`focusout`,o,!0))},[r,_,v,R,c,O,k,t,l,s,z,C,x,b,re,ie,ae,d,f,B]),q.useEffect(()=>{if(r||!v||!g)return;let e=Array.from(k?.portalNode?.querySelectorAll(`[${Ma(`portal`)}]`)||[]),t=(O?ja(O.nodesRef.current,x()):[]).find(e=>$i(e.context?.elements.domReference||null))?.context?.elements.domReference,n=Ga([v,...e,I.current,L.current,k?.beforeOutsideRef.current,k?.afterOutsideRef.current,...B(),t,io(f),io(d),C?_:null].filter(e=>e!=null),{ariaHidden:c||C,mark:!1}),i=Ga([v,...e].filter(e=>e!=null));return()=>{i(),n()}},[g,r,_,v,c,k,C,O,x,d,f,B]),G(()=>{if(!g||r||!W(R))return;P.current=``,F.current=``;let e=J(R),t=Ki(e);queueMicrotask(()=>{let n=w.current,r=typeof n==`function`?n(D.current||``):n;if(r===void 0||r===!1||Z(R,t))return;let i=null,a=()=>(i??=z(R),i[0]||R),o;o=r===!0||r===null?a():io(r),o||=a();let s=Z(R,Ki(e)),c=b.current.openEvent,l=c?.type===`mousedown`&&ra(c);Pa(o,{sync:l,preventScroll:o===R,shouldFocus(){if(!ee.current)return!1;if(s)return!0;let t=Ki(e);return!(t!==o&&Z(R,t))}})})},[r,g,R,z,w,D,ee,b]);let V=q.useRef(null);G(()=>{if(r||!R){V.current=null;return}V.current&&=(V.current.cancelled=!0,null);let e=J(R),t=Ki(e),n=D.current==null;lo(t);function i(e){if(e.open||(P.current=ao(e.nativeEvent,F.current)),(e.reason===`focus-out`&&e.triggerElement?.hasAttribute(Ma(`focus-guard`))||e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`)&&(A.current=!0),e.reason===`outside-press`){if(e.nested)A.current=!1;else if(ra(e.nativeEvent)||ia(e.nativeEvent))A.current=!1;else{let e=!1;J(R).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?A.current=!1:A.current=!0}}}y.on(`openchange`,i);function a(e){let r=T.current,i=typeof r==`function`?r(e):r;if(i===void 0||i===!1)return null;i===null&&(i=!0);let a=_?.isConnected?_:null,o=t?.isConnected&&U(t)!==`body`?t:null,s=n?o||a:a||o;return s||=uo()||null,typeof i==`boolean`?s:io(i)||s||null}return()=>{y.off(`openchange`,i);let t=Ki(e),n=B(),r=Z(v,t)||n.some(e=>e===t||Z(e,t))||O&&Aa(O.nodesRef.current,x(),!1).some(e=>Z(e.context?.elements.floating,t)),o=T.current,s=P.current,c=a(s),l={cancelled:!1};V.current=l,queueMicrotask(()=>{V.current===l&&(V.current=null);let n=fo(c),i=E.current??typeof o!=`boolean`;if(!l.cancelled&&o&&!A.current&&W(n)&&(i||n===t||t===e.body||r)){let e={preventScroll:!0};s===`keyboard`&&(e.focusVisible=!0),n.focus(e)}A.current=!1})}},[r,v,R,T,E,D,y,O,_,x,B]),G(()=>{if(!Ii||g||!v)return;let e=Ki(J(v));W(e)&&Qi(e)&&Z(v,e)&&e.blur()},[g,v]),G(()=>{if(!r&&k)return k.setFocusManagerState({modal:c,closeOnFocusOut:l,open:g,onOpenChange:t.setOpen,domReference:_}),()=>{k.setFocusManagerState(null)}},[r,k,c,g,t,l,_]),G(()=>{if(!r&&R)return po(R),()=>{queueMicrotask(co)}},[r,R]);let se=!r&&(!c||!C)&&(oe||c);return(0,X.jsxs)(q.Fragment,{children:[se&&(0,X.jsx)(Gi,{"data-type":`inside`,ref:te,onFocus:e=>{if(c){let e=z();Pa(e[e.length-1])}else k?.portalNode&&(A.current=!1,Da(e,k.portalNode)?Ta(_)?.focus():io(f??k.beforeOutsideRef)?.focus())}}),n,se&&(0,X.jsx)(Gi,{"data-type":`inside`,ref:ne,onFocus:e=>{c?Pa(z()[0]):k?.portalNode&&(l&&(A.current=!0),Da(e,k.portalNode)?Ea(_)?.focus():io(d??k.afterOutsideRef)?.focus())}})]})}function ho(){return!1}function go(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function _o(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:a=`sloppy`,referencePress:o=ho,bubbles:s,externalTree:c}=t,l=e.useState(`open`),u=e.useState(`floatingElement`),{dataRef:d,events:f}=e.context,p=ro(c),m=K(typeof i==`function`?i:()=>!1),h=typeof i==`function`?m:i,g=h!==!1,_=K(()=>a),{escapeKey:v,outsidePress:y}=go(s),b=q.useRef(!1),x=q.useRef(!1),S=q.useRef(!1),C=q.useRef(!1),w=q.useRef(!1),T=q.useRef(``),E=q.useRef(null),D=wi(),ee=wi(),O=wi(),k=K(()=>{ee.clear(),d.current.insideReactTree=!1}),A=K(e=>{let t=d.current.floatingContext?.nodeId;return(p?Aa(p.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),j=K(t=>Xi(t,e.select(`floatingElement`))||Xi(t,e.select(`domReferenceElement`))),M=K(t=>{o()&&e.setOpen(!1,ni(ii,t.nativeEvent))}),N=K(t=>{if(!l||!n||!r||t.key!==`Escape`)return;let i=na(t)?t.nativeEvent:t;if(w.current||i.isComposing||!v&&A(`__escapeKeyBubbles`))return;let a=ni(ci,i);e.setOpen(!1,a),a.isCanceled||t.preventDefault(),!v&&!a.isPropagationAllowed&&t.stopPropagation()}),P=K(()=>{d.current.insideReactTree=!0,ee.start(0,k)}),F=K(t=>{if(!l||!n||t.button!==0)return;let r=Ji(t.nativeEvent);Z(e.select(`floatingElement`),r)&&(b.current||(b.current=!0,x.current=!1))}),I=K(e=>{l&&n&&(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&b.current&&(x.current=!0)});q.useEffect(()=>{function e(e){e.open||(C.current=!1)}return f.on(`openchange`,e),()=>{f.off(`openchange`,e)}},[f]),q.useEffect(()=>k,[k]),q.useEffect(()=>{if(!l||!n)return l||(C.current=!1,w.current=!1,T.current=``,E.current=null),k;d.current.__escapeKeyBubbles=v,d.current.__outsidePressBubbles=y;let t=new Ci,i=J(u);function a(){O.clear(),w.current=!0}function o(){w.current=!0,O.start(Ii?5:0,()=>{w.current=!1})}function s(){S.current=!0,t.start(0,()=>{S.current=!1})}function c(){b.current=!1,x.current=!1}function f(){let e=T.current,t=e===`pen`||!e?`mouse`:e,n=_(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function m(e){let t=f();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function ee(e){let t=d.current.floatingContext?.nodeId,n=p&&Aa(p.nodesRef.current,t).some(t=>Xi(e,t.context?.elements.floating));return j(e)||n}function M(n){if(m(n)){n.type!==`click`&&!j(n)&&(t.clear(),S.current=!1),k();return}if(d.current.insideReactTree){k();return}let r=Ji(n),i=`[${Ma(`inert`)}]`,a=Ee(r)?r.getRootNode():null,o=Array.from((Ve(a)?a:J(e.select(`floatingElement`))).querySelectorAll(i)),s=e.context.triggerElements;if(r&&(s.hasElement(r)||s.hasMatchingElement(e=>Z(e,r))))return;let c=Ee(r)?r:null;for(;c&&!Oe(c);){let e=Qe(c);if(Oe(e)||!Ee(e))break;c=e}if(!(o.length&&Ee(r)&&!Zi(r)&&!Z(r,e.select(`floatingElement`))&&o.every(e=>!Z(c,e)))){if(W(r)&&!(`touches`in n)){let e=Oe(r),t=Ae(r),i=/auto|scroll/,a=e||i.test(t.overflowX),o=e||i.test(t.overflowY),s=a&&r.clientWidth>0&&r.scrollWidth>r.clientWidth,c=o&&r.clientHeight>0&&r.scrollHeight>r.clientHeight,l=t.direction===`rtl`,u=c&&(l?n.offsetX<=r.offsetWidth-r.clientWidth:n.offsetX>r.clientWidth),d=s&&n.offsetY>r.clientHeight;if(u||d)return}if(!ee(n)){if(f()===`intentional`){if(n.detail!==0&&!ra(n)&&!C.current)return;if(S.current){t.clear(),S.current=!1;return}}typeof h==`function`&&!h(n)||A(`__outsidePressBubbles`)||(e.setOpen(!1,ni(ai,n)),k())}}}function P(t){f()===`sloppy`&&t.pointerType!==`touch`&&e.select(`open`)&&n&&!j(t)&&M(t)}function F(t){if(f()!==`sloppy`||!e.select(`open`)||!n||j(t))return;let r=t.touches[0];r&&(E.current={startTime:Date.now(),startX:r.clientX,startY:r.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},D.start(1e3,()=>{E.current&&(E.current.dismissOnTouchEnd=!1,E.current.dismissOnMouseDown=!1)}))}function I(e,t){let n=Ji(e);if(!n)return;let r=Y(n,e.type,()=>{t(e),r()})}function L(e){T.current=`touch`,I(e,F)}function te(e){D.clear(),e.type===`pointerdown`&&(e.button===0&&(C.current=!0),T.current=e.pointerType),(e.type!==`mousedown`||!E.current||E.current.dismissOnMouseDown)&&I(e,e=>{e.type===`pointerdown`?P(e):M(e)})}function ne(e){if(e.type===`pointercancel`&&(C.current=!1),!b.current)return;let n=x.current;c(),f()===`intentional`&&(e.type===`pointercancel`?n&&s():ee(e)||(n?s():(typeof h!=`function`||h(e))&&(t.clear(),S.current=!0,k())))}function re(e){if(f()!==`sloppy`||!E.current||j(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-E.current.startX),r=Math.abs(t.clientY-E.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(E.current.dismissOnTouchEnd=!0),i>10&&(M(e),D.clear(),E.current=null)}function ie(e){I(e,re)}function ae(e){f()===`sloppy`&&E.current&&!j(e)&&(E.current.dismissOnTouchEnd&&M(e),D.clear(),E.current=null)}function oe(e){I(e,ae)}let R=vi(r&&vi(Y(i,`keydown`,N),Y(i,`compositionstart`,a),Y(i,`compositionend`,o)),g&&vi(Y(i,`click`,te,!0),Y(i,`pointerdown`,te,!0),Y(i,`pointerup`,ne,!0),Y(i,`pointercancel`,ne,!0),Y(i,`mousedown`,te,!0),Y(i,`mouseup`,ne,!0),Y(i,`touchstart`,L,{capture:!0,passive:!0}),Y(i,`touchmove`,ie,{capture:!0,passive:!0}),Y(i,`touchend`,oe,{capture:!0,passive:!0})));return()=>{R(),t.clear(),c(),S.current=!1}},[d,u,r,g,h,l,n,v,y,N,k,_,A,j,p,e,D,O]);let L=q.useMemo(()=>({onKeyDown:N,onPointerDown:M,onClick:M}),[N,M]),te=q.useMemo(()=>({onKeyDown:N,onPointerDown:I,onMouseDown:I,onClickCapture:P,onMouseDownCapture(e){P(),F(e)},onPointerDownCapture(e){P(),F(e)},onMouseUpCapture:P,onTouchEndCapture:P,onTouchMoveCapture:P}),[N,P,F,I]);return q.useMemo(()=>n?{reference:L,floating:te,trigger:L}:{},[n,L,te])}var vo=q.createContext(void 0);function yo(){let e=q.useContext(vo);if(e===void 0)throw Error(Me(26));return e}function bo(e,t){return e.getAnimations(t).filter(e=>{let t=e.effect?.getTiming();return t?.duration!==1/0&&t?.iterations!==1/0})}var xo=null;function So(e){if(!xo){let e=[];xo=e,queueMicrotask(()=>{xo=null,qa.flushSync(()=>{for(let t of e)t()})})}xo.push(e)}function Co(e,t=!1,n=!1){let r=Hi();return K((i,a=null)=>{r.cancel();let o=io(e);if(o==null)return;let s=o,c=()=>{n?So(()=>{a?.aborted||i()}):qa.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(bo(s).map(e=>e.finished.then(qe))).then(()=>{a?.aborted||c()},()=>{a?.aborted||(bo(s).some(e=>e.pending||e.playState!==`finished`)?l():c())})}if(t){let e=Hr;if(!s.hasAttribute(e)){r.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0})}else r.request(l)})}function wo(e){let{enabled:t=!0,open:n,ref:r,batch:i=!1,onComplete:a}=e,o=K(a),s=Co(r,n,i);q.useEffect(()=>{if(!t)return;let e=new AbortController;return s(o,e.signal),()=>{e.abort()}},[t,n,o,s])}var To=new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Home`,`End`]);function Eo(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:i,nested:a,onOpenChange:o}=e,s=t.useState(`open`),c=t.useState(`activeTriggerElement`),l=t.useState(n?`popupElement`:`positionerElement`),u=o;return t.useSyncedValue(`floatingId`,i),G(()=>{let e={open:s,floatingId:i,referenceElement:c,floatingElement:l};Ee(c)&&(e.domReferenceElement=c),r.state.positionReference===r.state.referenceElement&&(e.positionReference=c),r.update(e)},[s,i,c,l,r]),r.context.onOpenChange=u,r.context.nested=a,r}function Do(e,t=!1,n=!1,r=!1){let[i,a]=q.useState(e&&t?`idle`:void 0),[o,s]=q.useState(e&&!r);return e&&!o&&(s(!0),a(`starting`)),!e&&o&&i!==`ending`&&!n&&a(`ending`),!e&&!o&&i===`ending`&&a(void 0),G(()=>{if(!e&&o&&i!==`ending`&&n){let e=Vi.request(()=>{a(`ending`)});return()=>{Vi.cancel(e)}}},[e,o,i,n]),G(()=>{if(!e||t||i===void 0)return;let n=Vi.request(()=>{a(void 0)});return()=>{Vi.cancel(n)}},[t,e,i]),G(()=>{if(!e||!t)return;e&&o&&i!==`idle`&&a(`starting`);let n=Vi.request(()=>{a(`idle`)});return()=>{Vi.cancel(n)}},[t,e,o,i]),{mounted:o,setMounted:s,transitionStatus:i}}function Oo(e){let{open:t,ref:n,preventUnmountOnClose:r,setPreventUnmountOnClose:i,onUnmount:a,animateInitialOpen:o}=e,s=K(i),{mounted:c,setMounted:l,transitionStatus:u}=Do(t,!1,!1,o),d=!t&&r;G(()=>{t&&s(!1)},[t,s]);let f=q.useRef(c),p=q.useRef(!1),m=di(),h=()=>{f.current=!1,l(!1),a()};G(()=>{f.current=c,p.current&&(p.current=!1,!t&&c&&h())});let g=K(()=>{f.current&&(t?(p.current=!0,m()):h())});return wo({enabled:c&&!t&&!d,open:t,ref:n,onComplete(){t||g()}}),{mounted:c,transitionStatus:u,preventUnmountingOnClose:d,forceUnmount:g}}var ko={tabIndex:-1,[Yi]:``};function Ao(e){return t=>t!==`touch`||e.current}function jo(e,t=!1){let n=hi(),r=no()!=null,i=Pe(()=>e(n,r)).current;return Eo({popupStore:i,treatPopupAsFloatingElement:t,floatingRootContext:i.state.floatingRootContext,floatingId:n,nested:r,onOpenChange:i.setOpen}),i}function Mo({handle:e,store:t}){return G(()=>e.attachStore(t),[e,t]),null}function No(e,t,n,r=!1){let i=e.preventUnmountingOnClose;t?i=!1:r&&(i=!0);let a=n?.id??null,o=e.activeTriggerId,s=e.activeTriggerElement;return(a||t)&&(o=a,s=n??null),{open:t,preventUnmountingOnClose:i,activeTriggerId:o,activeTriggerElement:s,openedWithoutTrigger:t?n==null:e.openedWithoutTrigger}}function Po(e,t={}){let{closeOnActiveTriggerUnmount:n=!1}=t,r=q.useRef(null),i=e.useState(`open`),a=e.useState(`triggerCount`),o=e.useState(`activeTriggerId`),s=e.useState(`activeTriggerElement`);G(()=>{if(!i){r.current=null,e.state.triggerCount!==0&&e.set(`triggerCount`,0),e.state.openedWithoutTrigger&&e.set(`openedWithoutTrigger`,!1);return}let t=e.context.triggerElements.size,a={};e.state.triggerCount!==t&&(a.triggerCount=t);let o=e.select(`activeTriggerId`),s=null;if(o){let t=e.context.triggerElements.getById(o);if(t)r.current=o,t!==e.state.activeTriggerElement&&(a.activeTriggerElement=t);else{for(let[t,n]of e.context.triggerElements.entries())if(n===e.state.activeTriggerElement){a.activeTriggerId=t,a.activeTriggerElement=n,r.current=t;break}a.activeTriggerId===void 0&&(r.current===o?s=o:r.current=null)}}else r.current=null;if(!s&&!o&&!e.state.openedWithoutTrigger&&t===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;a.activeTriggerId=e,a.activeTriggerElement=n,r.current=e}}(a.triggerCount!==void 0||a.activeTriggerId!==void 0||a.activeTriggerElement!==void 0)&&e.update(a),s&&n&&queueMicrotask(()=>{if(e.select(`open`)&&e.select(`activeTriggerId`)===s&&!e.context.triggerElements.getById(s)){let t=ni(ri);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[i,e,a,o,s,n])}function Fo(e,t,n,r){let{mounted:i,transitionStatus:a,forceUnmount:o}=Oo({open:e,ref:t.context.popupRef,preventUnmountOnClose:t.useState(`preventUnmountingOnClose`),setPreventUnmountOnClose:e=>t.set(`preventUnmountingOnClose`,e),animateInitialOpen:r,onUnmount(){t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)}});return Pe(()=>(t.set(`mounted`,i),null)),t.useSyncedValues({mounted:i,transitionStatus:a}),{forceUnmount:o,transitionStatus:a}}function Io(e,t){e.useSyncedValues(t),G(()=>()=>{e.update({activeTriggerProps:Le,inactiveTriggerProps:Le,popupProps:Le})},[e])}function Lo(e,t){G(()=>{!t&&e.state.openMethod!==null&&e.set(`openMethod`,null)},[t,e]),G(()=>()=>{e.state.openMethod!==null&&e.set(`openMethod`,null)},[e])}var Ro=class{idMap=new Map;add(e,t){this.idMap.set(e,t)}delete(e){this.idMap.delete(e)}hasElement(e){for(let t of this.idMap.values())if(t===e)return!0;return!1}hasMatchingElement(e){for(let t of this.idMap.values())if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}},zo=[],Bo=void 0;function Vo(){return Bo}function Ho(e){zo.push(e)}function Uo(e){let t=(t,n)=>{let r=Pe(Wo).current,i;try{Bo=r;for(let e of zo)e.before(r);i=e(t,n);for(let e of zo)e.after(r);r.didInitialize=!0}finally{Bo=void 0}return i};return t.displayName=e.displayName||e.name,t}function Wo(){return{didInitialize:!1}}var Go=nt(),Ko=tt(),qo=We(19)?Xo:Zo;function Jo(e,t,n,r,i){return qo(e,t,n,r,i)}function Yo(e,t,n,r,i){let a=q.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,Go.useSyncExternalStore)(e.subscribe,a,a)}Ho({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,i)||(t=!0,r.value=i)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,Go.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Xo(e,t,n,r,i){let a=Vo();if(!a)return Yo(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],s.store===e&&s.selector===t&&Object.is(s.a1,n)&&Object.is(s.a2,r)&&Object.is(s.a3,i)||(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.value=t(e.getSnapshot(),n,r,i))):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i)},a.syncHooks.push(s)),s.value}function Zo(e,t,n,r,i){return(0,Ko.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var Qo=class{static create(e){return new this(e)}constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return Jo(this,e,t,n,r)}},$o=class extends Qo{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){q.useDebugValue(e);let n=this;G(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;G(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this,n=Object.values(e);G(()=>{t.update(e)},[t,...n])}useControlledProp(e,t){q.useDebugValue(e);let n=this,r=t!==void 0;G(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return q.useDebugValue(e),Jo(this,this.selectors[e],t,n,r)}useContextCallback(e,t){q.useDebugValue(e);let n=K(t??qe);this.context[e]=n}useStateSetter(e){let t=q.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},es={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId},ts=class extends $o{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:$a(),nested:n,triggerElements:i},es),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&aa(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{this.syncOnly||this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}};function ns(e,t,n=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new ts({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0}),floatingId:t,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,openedWithoutTrigger:!1,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:Le,inactiveTriggerProps:Le,popupProps:Le}}var rs=e=>e.triggerIdProp??e.activeTriggerId,is=e=>e.openProp??e.open,as=e=>(e.popupElement?.id??e.floatingId)||void 0;function os(e,t){return t!==void 0&&is(e)&&rs(e)===t}function ss(e,t){return os(e,t)?!0:t!==void 0&&is(e)&&rs(e)==null&&!e.openedWithoutTrigger&&e.triggerCount===1}var cs={open:is,mounted:e=>e.mounted,transitionStatus:e=>is(e)&&!e.mounted?`starting`:e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:rs,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:as,isTriggerActive:(e,t)=>t!==void 0&&rs(e)===t,isOpenedByTrigger:(e,t)=>os(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&rs(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>ss(e,t)?as(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement},ls=`--nested-dialogs`,us=`data-nested-dialog-open`,ds={...$r,...Kr,nestedDialogOpen(e){return e?{[us]:``}:null}},fs=q.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,initialFocus:o,...s}=e,c=Vr(),l=c.useState(`descriptionElementId`),u=c.useState(`disablePointerDismissal`),d=c.useState(`floatingRootContext`),f=c.useState(`popupProps`),p=c.useState(`modal`),m=c.useState(`mounted`),h=c.useState(`nested`),g=c.useState(`nestedOpenDialogCount`),_=c.useState(`open`),v=c.useState(`openMethod`),y=c.useState(`titleElementId`),b=c.useState(`transitionStatus`),x=c.useState(`role`),S=d.useState(`floatingId`);yo(),wo({open:_,ref:c.context.popupRef,onComplete(){_&&c.context.onOpenChangeComplete?.(!0)}});let C=o===void 0?Ao(c.context.popupRef):o,w=g>0,T=c.useStateSetter(`popupElement`),E=Ze(`div`,e,{state:{open:_,nested:h,transitionStatus:b,nestedDialogOpen:w},props:[f,{id:S,"aria-labelledby":y,"aria-describedby":l,role:x,...ko,hidden:!m,onKeyDown(e){To.has(e.key)&&e.stopPropagation()},style:{[ls]:g}},s],ref:[t,c.context.popupRef,T],stateAttributesMapping:ds});return(0,X.jsx)(mo,{context:d,openInteractionType:v,disabled:!m,closeOnFocusOut:!u,initialFocus:C,returnFocus:a,modal:p!==!1,restoreFocus:`popup`,children:E})});function ps(e){return We(19)?e:e?`true`:void 0}var ms=q.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,X.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})}),hs=q.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=Vr(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,X.jsx)(vo.Provider,{value:n,children:(0,X.jsxs)(Qa,{ref:t,...r,children:[a&&o===!0&&(0,X.jsx)(ms,{ref:i.context.internalBackdropRef,inert:ps(!s)}),e.children]})}):null}),gs={},_s={},vs=``;function ys(e,t){return Te(e)?e:t}function bs(e,t,n){return/hidden|clip/.test(e.getComputedStyle(ys(t,n)).overflowY)}function xs(e){if(typeof document>`u`)return!1;let t=J(e);return je(t).innerWidth-t.documentElement.clientWidth>0}function Ss(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=J(e),n=t.documentElement,r=t.body,i=ys(n,r),a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function Cs(e){let t=J(e),n=t.documentElement,r=t.body,i=ys(n,r),a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function ws(e){let t=J(e),n=t.documentElement,r=t.body,i=je(n),a=0,o=0,s=!1,c=Vi.create();if(Ii&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,gs={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},vs=n.style.scrollBehavior,_s={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=ys(n,r);s=Ss(e),s?(n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`):(Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflowY:`hidden`,overflowX:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`)}function u(){Object.assign(n.style,gs),Object.assign(r.style,_s),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=vs)}function d(){u(),c.request(l)}l();let f=Y(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var Ts=new class{lockCount=0;restore=null;timeoutLock=Ci.create();timeoutUnlock=Ci.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=J(e),n=t.documentElement,r=t.body,i=je(n);if(bs(i,n,r)){let t=new i.MutationObserver(()=>{bs(i,n,r)||(t.disconnect(),this.restore=null,this.lock(e))}),a={attributes:!0};t.observe(n,a),t.observe(r,a),this.restore=()=>t.disconnect();return}let a=ji||!xs(e);this.restore=a?Cs(e):ws(e)}};function Es(e=!0,t=null){G(()=>{if(e)return Ts.acquire(t)},[e,t])}function Ds({store:e,parentContext:t,isDrawer:n}){let r=e.useState(`open`),i=e.useState(`mounted`),a=e.useState(`disablePointerDismissal`),o=e.useState(`modal`),s=e.useState(`popupElement`),c=e.useState(`floatingRootContext`),[l,u]=q.useState(0),[d,f]=q.useState(0),p=l===0,m=_o(c,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?`intentional`:{mouse:o===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||`button`in t&&t.button!==0)return!1;if(`touches`in t){if(t.type===`touchend`){if(t.changedTouches.length!==1||t.touches.length!==0)return!1}else if(t.touches.length!==1)return!1}let n=Ji(t);if(p&&!a){if(o){let t=e.context.internalBackdropRef.current,r=e.context.backdropRef.current;return t||r?t===n||r===n||Z(n,s)&&!n?.hasAttribute(`data-base-ui-portal`):!0}return!0}return!1},escapeKey:p});return Es(r&&o===!0,s),e.useContextCallback(`onNestedDialogOpen`,(t,n)=>{(e.select(`open`)||e.select(`mounted`))&&(u(t),f(n))}),G(()=>{!r&&!i&&(u(0),f(0))},[r,i]),G(()=>(t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(l+1,d+ +!!n),()=>{t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(0,0)}),[n,r,l,d,t]),Io(e,{activeTriggerProps:m.reference,inactiveTriggerProps:m.trigger,popupProps:m.floating,nestedOpenDialogCount:l,nestedOpenDrawerCount:d}),null}var Os={...cs,modal:e=>e.modal,nested:e=>e.nested,nestedOpenDialogCount:e=>e.nestedOpenDialogCount,nestedOpenDrawerCount:e=>e.nestedOpenDrawerCount,disablePointerDismissal:e=>e.disablePointerDismissal,openMethod:e=>e.openMethod,descriptionElementId:e=>e.descriptionElementId,titleElementId:e=>e.titleElementId,viewportElement:e=>e.viewportElement,role:e=>e.role},ks=class extends $o{constructor(e,t,n){let r=new Ro,i=As(e,r,t,n);super(i,js(r),Os)}setOpen=(e,t)=>{t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled||(this.state.floatingRootContext.dispatchOpenChange(e,t),this.update(No(this.state,e,t.trigger)))}};function As(e,t,n,r=!1){return{...ns(t,n,r),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:`dialog`,...e}}function js(e){return{popupRef:q.createRef(),backdropRef:q.createRef(),internalBackdropRef:q.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0}}function Ms(e,t){let{children:n,open:r,defaultOpen:i=!1,onOpenChange:a,onOpenChangeComplete:o,disablePointerDismissal:s=!1,modal:c=!0,actionsRef:l,handle:u,triggerId:d,defaultTriggerId:f=null}=t,p=e===`drawer`,m=e===`alert-dialog`,h=m?!0:c,g=m||s,_=m?`alertdialog`:`dialog`,v=Vr(!0),y={modal:h,disablePointerDismissal:g,nested:v!=null,role:_},b=jo((e,t)=>new ks({open:i,openProp:r,activeTriggerId:f,triggerIdProp:d,...y},e,t),!0);b.useControlledProp(`openProp`,r),b.useControlledProp(`triggerIdProp`,d),b.useSyncedValues(y),b.useContextCallback(`onOpenChange`,a),b.useContextCallback(`onOpenChangeComplete`,o);let x=b.useState(`open`),S=b.useState(`mounted`),C=b.useState(`payload`);Lo(b,x),Po(b);let{forceUnmount:w}=Fo(x,b);q.useImperativeHandle(l,()=>({unmount:w,close:()=>b.setOpen(!1,ni(li))}),[w,b]);let T=x||S||u!=null;return(0,X.jsxs)(Br.Provider,{value:b,children:[u&&(0,X.jsx)(Mo,{handle:u,store:b}),T&&(0,X.jsx)(Ds,{store:b,parentContext:v?.context,isDrawer:p}),typeof n==`function`?n({payload:C}):n]})}var Ns=Uo(function(e){return Ms(`dialog`,e)}),Ps=q.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=Vr(),c=gi(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),Ze(`h2`,e,{ref:t,props:[{id:c},o]})}),Q=r();function Fs(e){let t=(0,Q.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,X.jsx)(Ns,{"data-slot":`dialog`,...n}),t[2]=n,t[3]=r),r}function Is(e){let t=(0,Q.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,X.jsx)(hs,{"data-slot":`dialog-portal`,...n}),t[2]=n,t[3]=r),r}function Ls(e){let t=(0,Q.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=De(`fixed inset-0 isolate z-50 bg-black/20 duration-100 supports-backdrop-filter:backdrop-blur-sm data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(ti,{"data-slot":`dialog-overlay`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Rs(e){let t=(0,Q.c)(15),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,children:n,showCloseButton:a,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a===void 0||a,s;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,X.jsx)(Ls,{}),t[5]=s):s=t[5];let c;t[6]===r?c=t[7]:(c=De(`fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-6 rounded-none bg-popover p-6 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-md data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,r),t[6]=r,t[7]=c);let l;t[8]===o?l=t[9]:(l=o&&(0,X.jsxs)(ui,{"data-slot":`dialog-close`,render:(0,X.jsx)(Ue,{variant:`ghost`,className:`absolute top-5 right-5 bg-secondary`,size:`icon-sm`}),children:[(0,X.jsx)(lt,{}),(0,X.jsx)(`span`,{className:`sr-only`,children:`Close`})]}),t[8]=o,t[9]=l);let u;return t[10]!==n||t[11]!==i||t[12]!==c||t[13]!==l?(u=(0,X.jsxs)(Is,{children:[s,(0,X.jsxs)(fs,{"data-slot":`dialog-content`,className:c,...i,children:[n,l]})]}),t[10]=n,t[11]=i,t[12]=c,t[13]=l,t[14]=u):u=t[14],u}function zs(e){let t=(0,Q.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=De(`flex flex-col gap-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(`div`,{"data-slot":`dialog-header`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Bs(e){let t=(0,Q.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=De(`text-lg leading-none font-semibold tracking-wider uppercase`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(Ps,{"data-slot":`dialog-title`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Vs(e){let t=(0,Q.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=De(`mt-0.5 text-sm leading-relaxed text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(_i,{"data-slot":`dialog-description`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Hs(e){let t=(0,Q.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=De(`pointer-events-none inline-flex h-5.5 w-fit min-w-5.5 items-center justify-center gap-1 rounded-none bg-muted px-1.5 font-sans text-xs font-medium text-muted-foreground select-none in-data-[slot=input-group]:bg-input in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 [&_svg:not([class*='size-'])]:size-3`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(`kbd`,{"data-slot":`kbd`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Us(e){let t=(0,Q.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=De(`inline-flex items-center gap-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(`kbd`,{"data-slot":`kbd-group`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ws(e,t){let n=t.x-e.x,r=t.y-e.y;return n*n+r*r>=625e-8}var Gs=y([`#da702c`,`#d0a215`,`#3aa99f`,`#4385be`,`#8b7ec8`,`#ce5d97`]),Ks=_({color:Gs,id:b(C,E(u(32))),name:b(C,E(u(32))),x:b(R,E(we({maximum:1,minimum:0}))),y:b(R,E(we({maximum:1,minimum:0})))}),qs=p(Ks),Js=Ks.mapFields(e=>({...e,id:e.id.check(ee(/^(?!server-)/u))})),Ys=class extends he(M(`portfolio.join`,{payload:_(b(Js.fields,g([`color`,`id`,`name`]))),stream:!0,success:qs}),M(`portfolio.move`,{payload:_(b(Js.fields,g([`color`,`id`,`x`,`y`])))})){},Xs=class extends se()(`@deslop/portfolio/lib/utils/RpcClient`,{group:Ys,protocol:rt(`@deslop/portfolio`)}){},Zs=`/assets/icon-yosI2-iT.svg`,Qs=[`1`,`2`,`3`,`4`,`5`,`6`],$s=[`profile`,`expertise`,`experience`,`projects`,`education`,`contact`],ec={lastFrameAt:0,targetX:0,targetY:0,viewportHeight:0,viewportWidth:0,x:0,y:0};function tc(e){return Math.floor(de.defaultValue().nextDoubleUnsafe()*e)}function nc(){let e=`0123456789abcdef`;return b(me(6,()=>e[tc(h(e))]??`0`),re(``))}function rc(e){let t=s(Gs.literals,t=>t!==e);return t[tc(H(t))]??Gs.literals[0]}function ic(){let e=sessionStorage.getItem(`portfolio.id`),t=sessionStorage.getItem(`portfolio.name`),n=Gs.literals[tc(H(Gs.literals))]??Gs.literals[0];if(m(e)&&m(t))return{color:n,id:e,name:t};let r=nc(),i={color:n,id:`v-${r}`,name:`Guest-${b(r,S(0,3))}`};return sessionStorage.setItem(`portfolio.id`,i.id),sessionStorage.setItem(`portfolio.name`,i.name),i}var $=ic(),ac=_e(Xs.runtime.atom(b(Xs,ne(e=>e(`portfolio.join`,$)),D,xe(Se(`2 seconds`)),d(()=>({trails:[],visitors:[]}),(e,t)=>{let n=ge(P(e.visitors,e=>F(e.id,e.color,e.x,e.y))),r={trails:ve(A(e.trails,s(t,e=>!le(n,F(e.id,e.color,e.x,e.y)))),180),visitors:t};return F(r,[r])}))));function oc(e,t,n){e.style.setProperty(`--cursor-transform`,`translate3d(${t}px, ${n}px, 0)`)}function sc(e,t){return{lastFrameAt:0,targetX:e.x,targetY:e.y,viewportHeight:t.height,viewportWidth:t.width,x:e.x,y:e.y}}function cc(e){return Math.abs(e.target-e.position)<.3?e.target:l({maximum:e.maximum,minimum:0})(e.position+(e.target-e.position)*e.catchUp)}function lc(e,t){let n=k(e.lastFrameAt>0,{onFalse:()=>16,onTrue:()=>l({maximum:64,minimum:8})(t-e.lastFrameAt)}),r=e.targetX-e.x,i=e.targetY-e.y,a=x(1,(1-Math.exp(-n/130))*(1+Math.hypot(r,i)/220)),o=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches;return{...e,lastFrameAt:t,x:k(o,{onFalse:()=>cc({catchUp:a,maximum:e.viewportWidth,position:e.x,target:e.targetX}),onTrue:()=>e.targetX}),y:k(o,{onFalse:()=>cc({catchUp:a,maximum:e.viewportHeight,position:e.y,target:e.targetY}),onTrue:()=>e.targetY})}}function uc(e,t,n){let r={x:t.x*n.width,y:t.y*n.height};return e.viewportWidth!==n.width||e.viewportHeight!==n.height?sc(r,n):e.targetX===r.x&&e.targetY===r.y?e:{...e,targetX:r.x,targetY:r.y}}function dc(e,t){t(requestAnimationFrame(()=>{e()?dc(e,t):t(0)}))}function fc(e){return addEventListener(`resize`,e),()=>{removeEventListener(`resize`,e)}}function pc(e){let t=(0,Q.c)(13),n;t[0]===e.number?n=t[1]:(n=(0,X.jsx)(`span`,{"aria-hidden":!0,className:`text-muted-foreground font-mono text-xs tabular-nums`,children:e.number}),t[0]=e.number,t[1]=n);let r;t[2]!==e.id||t[3]!==e.label?(r=(0,X.jsx)(`h2`,{id:e.id,className:`tracking-label text-xs font-semibold uppercase`,children:e.label}),t[2]=e.id,t[3]=e.label,t[4]=r):r=t[4];let i;t[5]!==n||t[6]!==r?(i=(0,X.jsxs)(`div`,{className:`flex items-baseline gap-3`,children:[n,r]}),t[5]=n,t[6]=r,t[7]=i):i=t[7];let a;t[8]===e.meta?a=t[9]:(a=f(e.meta)&&(0,X.jsx)(`span`,{className:`text-muted-foreground text-right font-mono text-xs tabular-nums`,children:e.meta}),t[8]=e.meta,t[9]=a);let o;return t[10]!==i||t[11]!==a?(o=(0,X.jsxs)(`div`,{className:`border-border flex items-center justify-between gap-4 border-t pt-3 pb-5`,children:[i,a]}),t[10]=i,t[11]=a,t[12]=o):o=t[12],o}function mc(e){let t=(0,Q.c)(14),n=e.id,r;t[0]===e.className?r=t[1]:(r=De(`relative z-10 mx-auto w-full max-w-3xl px-6 select-text sm:px-8`,e.className),t[0]=e.className,t[1]=r);let i;t[2]!==e.id||t[3]!==e.label||t[4]!==e.meta||t[5]!==e.number?(i=(0,X.jsx)(pc,{id:e.id,label:e.label,meta:e.meta,number:e.number}),t[2]=e.id,t[3]=e.label,t[4]=e.meta,t[5]=e.number,t[6]=i):i=t[6];let a;t[7]!==e.children||t[8]!==i?(a=(0,X.jsxs)(`div`,{className:`bg-background`,children:[i,e.children]}),t[7]=e.children,t[8]=i,t[9]=a):a=t[9];let o;return t[10]!==e.id||t[11]!==r||t[12]!==a?(o=(0,X.jsx)(`section`,{"aria-labelledby":n,className:r,children:a}),t[10]=e.id,t[11]=r,t[12]=a,t[13]=o):o=t[13],o}function hc(e){let t=(0,Q.c)(11),n,r,i,a;if(t[0]!==e.trails||t[1]!==e.viewport){let s=o();V(e.trails,pe(),(t,n)=>{let r={col:Math.floor(n.x*e.viewport.width/26),row:Math.floor(n.y*e.viewport.height/26),trail:n},i=b(t,ie(n.id),ye);if(c(i))return T(s,{color:r.trail.color,x:r.col*26+1,y:r.row*26+1}),N(t,n.id,r);let a=oe(Math.abs(r.col-i.col),Math.abs(r.row-i.row));for(let e of me(a+1,ae)){let t=k(a===0,{onFalse:()=>e/a,onTrue:_c}),n=w(i.col+(r.col-i.col)*t,0),o=w(i.row+(r.row-i.row)*t,0),c=k(t<1,{onFalse:()=>r.trail.color,onTrue:()=>i.trail.color});T(s,{color:c,x:n*26+1,y:o*26+1})}return N(t,n.id,r)}),n=!0,r=`pointer-events-none fixed inset-0 z-1 size-full print:hidden`,i=`crispEdges`,a=P(L(s),gc),t[0]=e.trails,t[1]=e.viewport,t[2]=n,t[3]=r,t[4]=i,t[5]=a}else n=t[2],r=t[3],i=t[4],a=t[5];let s;return t[6]!==n||t[7]!==r||t[8]!==i||t[9]!==a?(s=(0,X.jsx)(`svg`,{"aria-hidden":n,className:r,shapeRendering:i,children:a}),t[6]=n,t[7]=r,t[8]=i,t[9]=a,t[10]=s):s=t[10],s}function gc(e,t){return(0,X.jsx)(`rect`,{x:e.x,y:e.y,width:24,height:24,fill:e.color,fillOpacity:.22},t)}function _c(){return 1}function vc(e){let t=(0,Q.c)(11),n=e.flip===!0&&`-translate-x-full flex-row-reverse`,r;t[0]===n?r=t[1]:(r=De(`flex items-center gap-1`,n),t[0]=n,t[1]=r);let i;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,X.jsx)(st,{className:`size-4 text-(--cursor-color)`}),t[2]=i):i=t[2];let a;if(t[3]!==e.label||t[4]!==e.show){let n;t[6]===e.label?n=t[7]:(n=()=>(0,X.jsx)(`span`,{className:`bg-background text-foreground rounded-none border border-(--cursor-color) px-1.5 py-0.5 font-mono text-xs leading-none whitespace-nowrap`,children:e.label}),t[6]=e.label,t[7]=n),a=k(e.show===!1,{onFalse:n,onTrue:yc}),t[3]=e.label,t[4]=e.show,t[5]=a}else a=t[5];let o;return t[8]!==r||t[9]!==a?(o=(0,X.jsxs)(`div`,{className:r,children:[i,a]}),t[8]=r,t[9]=a,t[10]=o):o=t[10],o}function yc(){return null}function bc(e){return e.length*8+28}function xc(e,t,n){let r=e*t.width,i=bc(n),a=(t.width-768)/2,o=(t.width+768)/2;return r<a?r+i>a:r<=o||r-i<o}function Sc(e){let t=(0,Q.c)(17),n=(0,q.useRef)(null),r=(0,q.useRef)(ec),i=(0,q.useRef)(0),a,o;t[0]!==e.cursor||t[1]!==e.viewport?(a=()=>{r.current=uc(r.current,e.cursor,e.viewport),n.current!==null&&oc(n.current,r.current.x,r.current.y);function t(e){n.current!==null&&(r.current=lc(r.current,e),oc(n.current,r.current.x,r.current.y),(r.current.x!==r.current.targetX||r.current.y!==r.current.targetY)&&(i.current=requestAnimationFrame(t)))}return i.current=requestAnimationFrame(t),()=>{cancelAnimationFrame(i.current)}},o=[e.cursor,e.viewport],t[0]=e.cursor,t[1]=e.viewport,t[2]=a,t[3]=o):(a=t[2],o=t[3]),(0,q.useLayoutEffect)(a,o);let s;t[4]===e.cursor.color?s=t[5]:(s={"--cursor-color":e.cursor.color},t[4]=e.cursor.color,t[5]=s);let c=e.cursor.x*e.viewport.width+bc(e.cursor.name)>e.viewport.width-8,l=e.cursor.name,u;t[6]!==e.cursor.name||t[7]!==e.cursor.x||t[8]!==e.viewport?(u=xc(e.cursor.x,e.viewport,e.cursor.name),t[6]=e.cursor.name,t[7]=e.cursor.x,t[8]=e.viewport,t[9]=u):u=t[9];let d=!u,f;t[10]!==e.cursor.name||t[11]!==c||t[12]!==d?(f=(0,X.jsx)(vc,{flip:c,label:l,show:d}),t[10]=e.cursor.name,t[11]=c,t[12]=d,t[13]=f):f=t[13];let p;return t[14]!==s||t[15]!==f?(p=(0,X.jsx)(`div`,{ref:n,"aria-hidden":!0,className:`pointer-events-none fixed top-0 left-0 z-5 transform-(--cursor-transform) will-change-transform`,style:s,children:f}),t[14]=s,t[15]=f,t[16]=p):p=t[16],p}function Cc(e){let t=(0,Q.c)(12),n=`translate3d(var(--pointer-x, ${e.cursor.x*e.viewport.width}px), var(--pointer-y, ${e.cursor.y*e.viewport.height}px), 0)`,r;t[0]!==e.cursor.color||t[1]!==n?(r={"--cursor-color":e.cursor.color,"--cursor-transform":n},t[0]=e.cursor.color,t[1]=n,t[2]=r):r=t[2];let i=e.cursor.x*e.viewport.width+bc(`You`)>e.viewport.width-8,a;t[3]!==e.cursor.x||t[4]!==e.viewport?(a=xc(e.cursor.x,e.viewport,`You`),t[3]=e.cursor.x,t[4]=e.viewport,t[5]=a):a=t[5];let o=!a,s;t[6]!==i||t[7]!==o?(s=(0,X.jsx)(vc,{flip:i,label:`You`,show:o}),t[6]=i,t[7]=o,t[8]=s):s=t[8];let c;return t[9]!==r||t[10]!==s?(c=(0,X.jsx)(`div`,{"aria-hidden":!0,className:`pointer-events-none fixed top-0 left-0 z-20 transform-(--cursor-transform)`,style:r,children:s}),t[9]=r,t[10]=s,t[11]=c):c=t[11],c}function wc(e){let t=(0,Q.c)(12),n=e.external===!0,r=e.href,i;t[0]===n?i=t[1]:(i=k(n,{onFalse:Oc,onTrue:Dc}),t[0]=n,t[1]=i);let a;t[2]===n?a=t[3]:(a=k(n,{onFalse:Ec,onTrue:Tc}),t[2]=n,t[3]=a);let o;t[4]===n?o=t[5]:(o=n&&(0,X.jsx)(at,{className:`size-3.5`}),t[4]=n,t[5]=o);let s;return t[6]!==e.children||t[7]!==e.href||t[8]!==i||t[9]!==a||t[10]!==o?(s=(0,X.jsxs)(`a`,{href:r,target:i,rel:a,className:`text-foreground decoration-border hover:text-primary hover:decoration-primary inline-flex h-11 min-w-11 items-center gap-1.5 text-sm underline underline-offset-4 transition-colors sm:h-auto sm:pb-0.5`,children:[e.children,o]}),t[6]=e.children,t[7]=e.href,t[8]=i,t[9]=a,t[10]=o,t[11]=s):s=t[11],s}function Tc(){return`noopener noreferrer`}function Ec(){}function Dc(){return`_blank`}function Oc(){}function kc(){let e=(0,Q.c)(5),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,X.jsxs)(`div`,{className:`border-border flex items-center justify-between gap-4 border-t pt-3 pb-10 sm:pb-14`,children:[(0,X.jsxs)(`div`,{className:`flex items-baseline gap-3`,children:[(0,X.jsx)(`span`,{"aria-hidden":!0,className:`text-muted-foreground font-mono text-xs tabular-nums`,children:`01`}),(0,X.jsx)(`p`,{className:`tracking-label text-xs font-semibold uppercase`,children:`Profile`})]}),(0,X.jsx)(`img`,{alt:``,className:`pixelated size-6 shrink-0 opacity-90 sm:size-7`,src:Zs})]}),e[0]=t):t=e[0];let n,r,i;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,X.jsxs)(`div`,{className:`flex flex-wrap items-baseline gap-x-4 gap-y-1`,children:[(0,X.jsx)(`p`,{className:`text-sm font-medium`,children:Ne.title}),(0,X.jsx)(`p`,{className:`text-muted-foreground font-mono text-xs`,children:Ne.location})]}),r=(0,X.jsxs)(`h1`,{id:`profile-title`,className:`font-heading mt-4 text-5xl leading-none tracking-tight text-balance sm:text-7xl`,children:[Ne.firstName,` `,Ne.lastName]}),i=(0,X.jsx)(`p`,{className:`text-muted-foreground mt-6 max-w-xl text-base leading-relaxed text-pretty sm:text-lg`,children:Fe}),e[1]=n,e[2]=r,e[3]=i):(n=e[1],r=e[2],i=e[3]);let a;return e[4]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,X.jsx)(`section`,{"aria-labelledby":`profile-title`,className:`relative z-10 mx-auto w-full max-w-3xl px-6 pt-10 pb-12 select-text sm:px-8 sm:pt-16 sm:pb-16`,children:(0,X.jsxs)(`div`,{className:`bg-background`,children:[t,n,r,i,(0,X.jsxs)(`div`,{className:`mt-8 flex flex-col items-start sm:flex-row sm:flex-wrap sm:items-center sm:gap-x-7`,children:[(0,X.jsx)(wc,{href:`#section-projects`,children:`Selected work`}),(0,X.jsx)(wc,{href:Xe.email.href,children:Xe.email.value}),(0,X.jsx)(wc,{external:!0,href:Xe.github.href,children:Xe.github.value}),(0,X.jsx)(wc,{href:`/cv`,children:`CV`})]})]})}),e[4]=a):a=e[4],a}function Ac(){let e=(0,Q.c)(4),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=H(Ye),e[0]=t):t=e[0];let n;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=P(Ye,Mc),e[1]=n):n=e[1];let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,X.jsx)(`dt`,{className:`tracking-label text-muted-foreground w-36 shrink-0 text-xs font-semibold uppercase`,children:`Languages`}),e[2]=r):r=e[2];let i;return e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,X.jsx)(mc,{className:`pb-12 sm:pb-14`,id:`section-skills`,label:`Expertise`,meta:`${t} disciplines`,number:`04`,children:(0,X.jsxs)(`dl`,{className:`divide-border flex flex-col divide-y`,children:[n,(0,X.jsxs)(`div`,{className:`flex flex-col gap-1 py-3.5 sm:flex-row sm:gap-8`,children:[r,(0,X.jsx)(`dd`,{className:`text-foreground/90 text-sm leading-relaxed`,children:b(Be,P(jc),re(` · `))})]})]})}),e[3]=i):i=e[3],i}function jc(e){return`${e.language} (${e.level})`}function Mc(e){return(0,X.jsxs)(`div`,{className:`flex flex-col gap-1 py-3.5 sm:flex-row sm:gap-8`,children:[(0,X.jsx)(`dt`,{className:`tracking-label text-muted-foreground w-36 shrink-0 text-xs font-semibold uppercase`,children:e.area}),(0,X.jsx)(`dd`,{className:`text-foreground/90 text-sm leading-relaxed`,children:e.items})]},e.area)}function Nc(){let e=(0,Q.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=H(Ke),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,X.jsx)(mc,{className:`pb-12 sm:pb-14`,id:`section-projects`,label:`Selected work`,meta:`${t} selected`,number:`02`,children:(0,X.jsx)(`ol`,{className:`divide-border flex flex-col divide-y`,children:P(Ke,Pc)})}),e[1]=n):n=e[1],n}function Pc(e){return(0,X.jsxs)(`li`,{className:`py-5`,children:[(0,X.jsxs)(`div`,{className:`flex items-baseline justify-between gap-4`,children:[(0,X.jsx)(`h3`,{className:`text-base font-semibold tracking-tight`,children:e.name}),(0,X.jsxs)(`a`,{href:e.href,target:`_blank`,rel:`noopener noreferrer`,"aria-label":`View ${e.name} on GitHub`,className:`text-muted-foreground hover:text-primary tracking-label -mr-2 inline-flex h-11 items-center gap-1 px-2 text-xs font-semibold uppercase transition-colors sm:h-auto sm:py-0`,children:[`GitHub`,(0,X.jsx)(at,{className:`size-3.5`})]})]}),(0,X.jsx)(`p`,{className:`text-muted-foreground mt-0.5 text-sm`,children:e.role}),(0,X.jsx)(`p`,{className:`text-foreground/90 mt-2 text-sm leading-relaxed`,children:e.description}),(0,X.jsx)(`p`,{className:`text-muted-foreground mt-2 font-mono text-xs`,children:e.stack})]},e.name)}function Fc(){let e=(0,Q.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=H(Je),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,X.jsx)(mc,{className:`pb-12 sm:pb-14`,id:`section-experience`,label:`Experience`,meta:`${t} roles`,number:`03`,children:(0,X.jsx)(`ol`,{className:`divide-border flex flex-col divide-y`,children:P(Je,Ic)})}),e[1]=n):n=e[1],n}function Ic(e){return(0,X.jsxs)(`li`,{className:`flex flex-col gap-2 py-5 sm:flex-row sm:gap-8`,children:[(0,X.jsxs)(`div`,{className:`text-muted-foreground flex flex-row flex-wrap items-baseline gap-x-2 font-mono text-xs sm:w-40 sm:shrink-0 sm:flex-col sm:items-start sm:gap-1`,children:[(0,X.jsx)(`p`,{className:`whitespace-nowrap tabular-nums`,children:e.period}),f(e.location)&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(`span`,{"aria-hidden":!0,className:`sm:hidden`,children:`·`}),(0,X.jsx)(`p`,{className:`whitespace-nowrap`,children:e.location})]})]}),(0,X.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-2`,children:[(0,X.jsxs)(`div`,{children:[(0,X.jsx)(`h3`,{className:`text-sm font-semibold tracking-tight`,children:e.company}),(0,X.jsxs)(`p`,{className:`text-muted-foreground text-sm`,children:[e.role,f(e.note)&&(0,X.jsxs)(`span`,{className:`italic`,children:[` · `,e.note]})]})]}),(0,X.jsx)(`ul`,{className:`flex flex-col gap-1.5`,children:P(e.highlights,Lc)})]})]},e.company)}function Lc(e){return(0,X.jsxs)(`li`,{className:`text-foreground/90 flex gap-3 text-sm leading-relaxed`,children:[(0,X.jsx)(`span`,{"aria-hidden":!0,className:`bg-muted-foreground/60 mt-2.5 h-px w-3 shrink-0`}),(0,X.jsx)(`span`,{children:e})]},e)}function Rc(){let e=(0,Q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,X.jsx)(mc,{className:`pb-12 sm:pb-14`,id:`section-education`,label:`Education`,number:`05`,children:(0,X.jsx)(`ol`,{className:`divide-border flex flex-col divide-y`,children:P(Ge,zc)})}),e[0]=t):t=e[0],t}function zc(e){return(0,X.jsxs)(`li`,{className:`flex flex-col gap-1.5 py-5 sm:flex-row sm:gap-8`,children:[(0,X.jsx)(`p`,{className:`text-muted-foreground font-mono text-xs whitespace-nowrap tabular-nums sm:w-40 sm:shrink-0`,children:e.period}),(0,X.jsxs)(`div`,{children:[(0,X.jsx)(`h3`,{className:`text-sm font-semibold tracking-tight`,children:e.degree}),(0,X.jsxs)(`p`,{className:`text-muted-foreground mt-0.5 text-sm`,children:[e.school,f(e.grade)&&(0,X.jsxs)(X.Fragment,{children:[` · `,(0,X.jsx)(`span`,{className:`font-mono text-xs tabular-nums`,children:e.grade})]})]})]})]},e.school)}function Bc(){let e=(0,Q.c)(1),t;if(e[0]===Symbol.for(`react.memo_cache_sentinel`)){let n=[Xe.email,Xe.pec,Xe.phone,Xe.github,{href:`/cv`,label:`CV`,value:`${Ne.portfolio}/cv`}];t=(0,X.jsxs)(mc,{className:`pb-24 sm:pb-28`,id:`section-contact`,label:`Contact`,meta:`${H(n)} ways`,number:`06`,children:[(0,X.jsx)(`div`,{className:`flex flex-col`,children:P(n,Vc)}),(0,X.jsxs)(`p`,{className:`text-muted-foreground mt-10 font-mono text-xs`,children:[`© 2026 `,Ne.firstName,` `,Ne.lastName,` · VAT `,Ne.vat]})]}),e[0]=t}else t=e[0];return t}function Vc(e){let t=z(`http`)(e.href);return(0,X.jsxs)(`a`,{href:e.href,className:`group border-border hover:text-primary flex min-h-11 items-center justify-between gap-6 border-b py-2.5 text-sm transition-colors last:border-b-0`,target:k(t,{onFalse:Gc,onTrue:Wc}),rel:k(t,{onFalse:Uc,onTrue:Hc}),children:[(0,X.jsx)(`span`,{className:`tracking-label text-muted-foreground group-hover:text-primary text-xs font-semibold uppercase`,children:e.label}),(0,X.jsx)(`span`,{className:`group-hover:text-primary text-right font-mono text-xs break-all`,children:e.value})]},e.label)}function Hc(){return`noopener noreferrer`}function Uc(){}function Wc(){return`_blank`}function Gc(){}function Kc(e){let t=(0,Q.c)(5),n;t[0]===e.label?n=t[1]:(n=(0,X.jsx)(`span`,{className:`text-sm`,children:e.label}),t[0]=e.label,t[1]=n);let r;return t[2]!==e.keys||t[3]!==n?(r=(0,X.jsxs)(`div`,{className:`flex items-center justify-between gap-6 py-3`,children:[n,e.keys]}),t[2]=e.keys,t[3]=n,t[4]=r):r=t[4],r}function qc(e){let t=(0,Q.c)(11),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,X.jsxs)(zs,{children:[(0,X.jsx)(Bs,{children:`Keyboard`}),(0,X.jsx)(Vs,{children:`The page moves without a mouse.`})]}),t[0]=n):n=t[0];let r;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,X.jsx)(Kc,{keys:(0,X.jsxs)(Us,{children:[(0,X.jsx)(Hs,{children:`j`}),(0,X.jsx)(Hs,{children:`k`})]}),label:`Next / previous section`}),t[1]=r):r=t[1];let i;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,X.jsx)(Hs,{children:`1`}),t[2]=i):i=t[2];let a;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,X.jsxs)(Us,{children:[i,`–`,(0,X.jsx)(Hs,{children:`6`})]}),t[3]=a):a=t[3];let o;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,X.jsx)(Kc,{keys:a,label:(0,X.jsxs)(`span`,{className:`flex flex-col gap-1`,children:[`Jump to a section`,(0,X.jsx)(`span`,{className:`text-muted-foreground font-mono text-xs`,children:b(P($s,Jc),re(` · `))})]})}),t[4]=o):o=t[4];let s;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,X.jsx)(Kc,{keys:(0,X.jsx)(Hs,{children:`r`}),label:`Change cursor color`}),t[5]=s):s=t[5];let c;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,X.jsx)(Kc,{keys:(0,X.jsx)(Hs,{children:`?`}),label:`Toggle this panel`}),t[6]=c):c=t[6];let l;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,X.jsxs)(Rs,{className:`sm:max-w-sm`,children:[n,(0,X.jsxs)(`div`,{className:`divide-border flex flex-col divide-y`,children:[r,o,s,c,(0,X.jsx)(Kc,{keys:(0,X.jsx)(Hs,{children:`Esc`}),label:`Close this panel`})]})]}),t[7]=l):l=t[7];let u;return t[8]!==e.onOpenChange||t[9]!==e.open?(u=(0,X.jsx)(Fs,{open:e.open,onOpenChange:e.onOpenChange,children:l}),t[8]=e.onOpenChange,t[9]=e.open,t[10]=u):u=t[10],u}function Jc(e,t){return`${t+1} ${e}`}function Yc(e){let t=(0,Q.c)(16),n;t[0]===e.visitors?n=t[1]:(n=b(I(e.visitors,el),Ce({onNone:$c,onSome:Qc})),t[0]=e.visitors,t[1]=n);let r;t[2]===n?r=t[3]:(r=(0,X.jsx)(`span`,{className:`size-1.5 rounded-full bg-(--identity-color)`,style:{"--identity-color":n}}),t[2]=n,t[3]=r);let i;t[4]===e.visitors?i=t[5]:(i=H(e.visitors),t[4]=e.visitors,t[5]=i);let a;t[6]===i?a=t[7]:(a=(0,X.jsx)(`span`,{className:`text-foreground tabular-nums`,children:i}),t[6]=i,t[7]=a);let o;t[8]===e.visitors?o=t[9]:(o=k(H(e.visitors)===1,{onFalse:Zc,onTrue:Xc}),t[8]=e.visitors,t[9]=o);let s;t[10]===o?s=t[11]:(s=(0,X.jsx)(`span`,{className:`text-muted-foreground`,children:o}),t[10]=o,t[11]=s);let c;return t[12]!==r||t[13]!==a||t[14]!==s?(c=(0,X.jsxs)(X.Fragment,{children:[r,a,s]}),t[12]=r,t[13]=a,t[14]=s,t[15]=c):c=t[15],c}function Xc(){return`visitor`}function Zc(){return`visitors`}function Qc(e){return e.color}function $c(){return $.color}function el(e){return e.id===$.id}function tl(e){let t=(0,Q.c)(12),n;if(t[0]!==e.state||t[1]!==e.visitors){let r;t[3]===e.state?r=t[4]:(r=()=>(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(`span`,{className:`bg-muted-foreground/50 size-1.5 rounded-full`}),(0,X.jsx)(`span`,{className:`text-muted-foreground`,children:k(e.state===`offline`,{onFalse:rl,onTrue:nl})})]}),t[3]=e.state,t[4]=r);let i;t[5]===e.visitors?i=t[6]:(i=()=>(0,X.jsx)(Yc,{visitors:e.visitors??[]}),t[5]=e.visitors,t[6]=i),n=k(e.state===`live`&&f(e.visitors),{onFalse:r,onTrue:i}),t[0]=e.state,t[1]=e.visitors,t[2]=n}else n=t[2];let r;t[7]===n?r=t[8]:(r=(0,X.jsx)(`span`,{className:`flex items-center gap-2`,children:n}),t[7]=n,t[8]=r);let i;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,X.jsx)(`span`,{className:`text-muted-foreground max-sm:hidden`,children:`j/k · ?`}),t[9]=i):i=t[9];let a;return t[10]===r?a=t[11]:(a=(0,X.jsxs)(`div`,{className:`border-border bg-background/95 pr-safe-right pb-safe-bottom pl-safe-left pointer-events-none fixed inset-x-0 bottom-0 z-50 flex min-h-10 items-center justify-between border-t px-3 font-mono text-xs backdrop-blur sm:px-4 print:hidden`,children:[r,i]}),t[10]=r,t[11]=a),a}function nl(){return`presence unavailable`}function rl(){return`presence connecting`}function il(e){let t=(0,Q.c)(23),n=Ot(ac),r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,X.jsx)(`div`,{className:`trail-grid pointer-events-none fixed inset-0 z-1 print:hidden`}),t[0]=r):r=t[0];let i;t[1]!==e.viewport||t[2]!==n.value.trails?(i=(0,X.jsx)(hc,{trails:n.value.trails,viewport:e.viewport}),t[1]=e.viewport,t[2]=n.value.trails,t[3]=i):i=t[3];let a;t[4]===n.value.visitors?a=t[5]:(a=j(I(n.value.visitors,sl),ol),t[4]=n.value.visitors,t[5]=a);let o;t[6]!==e.viewport||t[7]!==a?(o=(0,X.jsx)(`div`,{className:`hidden print:hidden [@media(hover:hover)_and_(pointer:fine)]:contents`,children:(0,X.jsx)(Cc,{cursor:a,viewport:e.viewport})}),t[6]=e.viewport,t[7]=a,t[8]=o):o=t[8];let s;if(t[9]!==e.viewport||t[10]!==n.value.visitors){let r;t[12]===e.viewport?r=t[13]:(r=t=>k(t.id===$.id,{onFalse:()=>(0,X.jsx)(Sc,{cursor:t,viewport:e.viewport},t.id),onTrue:al}),t[12]=e.viewport,t[13]=r),s=P(n.value.visitors,r),t[9]=e.viewport,t[10]=n.value.visitors,t[11]=s}else s=t[11];let c;t[14]===s?c=t[15]:(c=(0,X.jsx)(`div`,{className:`max-sm:hidden print:hidden`,children:(0,X.jsx)(`div`,{className:`hidden [@media(hover:hover)_and_(pointer:fine)]:contents`,children:s})}),t[14]=s,t[15]=c);let l;t[16]===n.value.visitors?l=t[17]:(l=(0,X.jsx)(tl,{state:`live`,visitors:n.value.visitors}),t[16]=n.value.visitors,t[17]=l);let u;return t[18]!==i||t[19]!==o||t[20]!==c||t[21]!==l?(u=(0,X.jsxs)(X.Fragment,{children:[r,i,o,c,l]}),t[18]=i,t[19]=o,t[20]=c,t[21]=l,t[22]=u):u=t[22],u}function al(){return null}function ol(){return{color:$.color,id:$.id,name:$.name,x:.5,y:.5}}function sl(e){return e.id===$.id}function cl(){let e=(0,Q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,X.jsx)(tl,{state:`offline`}),e[0]=t):t=e[0],t}function ll(){let e=(0,Q.c)(57),t=(0,q.useSyncExternalStore)(fc,yl,vl),n=(0,q.useSyncExternalStore)(fc,_l,gl),r;e[0]!==t||e[1]!==n?(r={height:t,width:n},e[0]=t,e[1]=n,e[2]=r):r=e[2];let i=r,a=(0,q.useRef)(null),o=(0,q.useRef)(0),s;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(s=Xs.mutation(`portfolio.move`),e[3]=s):s=e[3];let u=wt(s),d=(0,q.useRef)(0),f=(0,q.useRef)(null),p=(0,q.useRef)(null),m=(0,q.useRef)($.color),[h,g]=(0,q.useState)(!1),_,v;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(_=()=>()=>{cancelAnimationFrame(d.current)},v=[],e[4]=_,e[5]=v):(_=e[4],v=e[5]),(0,q.useEffect)(_,v);let y=function(){return fe(a.current?.querySelectorAll(`:scope > section`)??[])},S=function(e){let t=y()[e];c(t)||(t.scrollIntoView({behavior:`auto`,block:`start`}),o.current=e)},C;e[6]===u?C=e[7]:(C=function(e){p.current={sentAt:performance.now(),x:e.x,y:e.y},u({payload:{color:m.current,id:$.id,x:e.x,y:e.y}})},e[6]=u,e[7]=C);let w=C,T;e[8]===w?T=e[9]:(T=function(){m.current=rc(m.current),w(f.current??p.current??{x:.5,y:.5})},e[8]=w,e[9]=T);let E=T,D;e[10]===w?D=e[11]:(D=function(){if(f.current!==null&&p.current!==null){if(!Ws(p.current,f.current))return!1;if(performance.now()-p.current.sentAt<50)return!0}return f.current!==null&&w(f.current),!1},e[10]=w,e[11]=D);let ee=D,O;e[12]!==ee||e[13]!==i?(O=function(e){e.pointerType!==`touch`&&(e.currentTarget.style.setProperty(`--pointer-x`,`${e.clientX}px`),e.currentTarget.style.setProperty(`--pointer-y`,`${e.clientY}px`),i.width!==0&&i.height!==0&&(f.current={x:l({maximum:.999999,minimum:0})(e.clientX/i.width),y:l({maximum:.999999,minimum:0})(e.clientY/i.height)},d.current===0&&dc(ee,e=>{d.current=e})))},e[12]=ee,e[13]=i,e[14]=O):O=e[14];let A=O,M;e[15]===E?M=e[16]:(M={callback:E,hotkey:`R`},e[15]=E,e[16]=M);let N;e[17]===g?N=e[18]:(N=()=>{g(hl)},e[17]=g,e[18]=N);let F;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(F={key:`?`,shift:!0},e[19]=F):F=e[19];let I;e[20]===N?I=e[21]:(I={callback:N,hotkey:F},e[20]=N,e[21]=I),zr([{callback:()=>{S(x(o.current+1,Qs.length-1))},hotkey:`J`},{callback:()=>{S(oe(o.current-1,0))},hotkey:`K`},...P(Qs,(e,t)=>({callback:()=>{S(t)},hotkey:e})),M,I]);let L;e[22]!==o||e[23]!==y?(L=e=>{o.current=k(e.currentTarget.scrollTop+e.currentTarget.clientHeight>=e.currentTarget.scrollHeight-2,{onFalse:()=>b(y(),ce(t=>t.offsetTop<=e.currentTarget.scrollTop+2),j(fl)),onTrue:()=>oe(0,y().length-1)})},e[22]=o,e[23]=y,e[24]=L):L=e[24];let te,ne,re,ie,ae,R;e[25]===Symbol.for(`react.memo_cache_sentinel`)?(te=(0,X.jsx)(`div`,{className:`pt-safe-top`,children:(0,X.jsx)(kc,{})}),ne=(0,X.jsx)(Nc,{}),re=(0,X.jsx)(Fc,{}),ie=(0,X.jsx)(Ac,{}),ae=(0,X.jsx)(Rc,{}),R=(0,X.jsx)(Bc,{}),e[25]=te,e[26]=ne,e[27]=re,e[28]=ie,e[29]=ae,e[30]=R):(te=e[25],ne=e[26],re=e[27],ie=e[28],ae=e[29],R=e[30]);let z;e[31]===Symbol.for(`react.memo_cache_sentinel`)?(z={color:$.color,id:$.id,name:$.name,x:.5,y:.5},e[31]=z):z=e[31];let B;e[32]===i?B=e[33]:(B=(0,X.jsx)(`div`,{className:`hidden print:hidden [@media(hover:hover)_and_(pointer:fine)]:contents`,children:(0,X.jsx)(Cc,{cursor:z,viewport:i})}),e[32]=i,e[33]=B);let V;e[34]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,X.jsx)(tl,{state:`connecting`}),e[34]=V):V=e[34];let se;e[35]===B?se=e[36]:(se=(0,X.jsxs)(X.Fragment,{children:[B,V]}),e[35]=B,e[36]=se);let le;e[37]===i?le=e[38]:(le=(0,X.jsx)(il,{viewport:i}),e[37]=i,e[38]=le);let H;e[39]!==se||e[40]!==le?(H=(0,X.jsx)(et,{getResetKey:dl,errorComponent:cl,children:(0,X.jsx)(q.Suspense,{fallback:se,children:le})}),e[39]=se,e[40]=le,e[41]=H):H=e[41];let ue;e[42]===g?ue=e[43]:(ue=()=>{g(ul)},e[42]=g,e[43]=ue);let de;e[44]!==h||e[45]!==ue?(de=(0,X.jsx)(Ue,{variant:`outline`,size:`icon`,"aria-expanded":h,"aria-haspopup":`dialog`,"aria-label":`Toggle keyboard shortcuts`,onClick:ue,className:`mb-safe-bottom mr-safe-right fixed right-3 bottom-14 z-50 max-sm:hidden sm:right-4 print:hidden`,children:`?`}),e[44]=h,e[45]=ue,e[46]=de):de=e[46];let pe;e[47]!==g||e[48]!==h?(pe=(0,X.jsx)(qc,{open:h,onOpenChange:g}),e[47]=g,e[48]=h,e[49]=pe):pe=e[49];let me;return e[50]!==a||e[51]!==L||e[52]!==H||e[53]!==de||e[54]!==pe||e[55]!==A?(me=(0,X.jsxs)(`div`,{ref:a,"aria-label":`Portfolio`,role:`region`,className:`focus-visible:ring-border relative min-h-0 flex-1 overflow-x-hidden overflow-y-scroll overscroll-contain focus-visible:ring-1 focus-visible:ring-inset print:h-auto print:overflow-visible [@media(hover:hover)_and_(pointer:fine)]:cursor-none`,onKeyDown:pl,onPointerMove:A,onScroll:L,tabIndex:0,children:[te,ne,re,ie,ae,R,H,de,pe]}),e[50]=a,e[51]=L,e[52]=H,e[53]=de,e[54]=pe,e[55]=A,e[56]=me):me=e[56],me}function ul(e){return!e}function dl(){return`presence`}function fl(){return 0}function pl(e){if(e.target!==e.currentTarget)return;let t=e.currentTarget.clientHeight*.9;if(e.key===`Home`||e.key===`End`){e.preventDefault(),e.currentTarget.scrollTo({top:k(e.key===`Home`,{onFalse:()=>e.currentTarget.scrollHeight,onTrue:ml})});return}if(e.key===` `){e.preventDefault(),e.currentTarget.scrollBy({top:k(e.shiftKey,{onFalse:()=>t,onTrue:()=>-t})});return}let n={ArrowDown:80,ArrowUp:-80,PageDown:t,PageUp:-t}[e.key];n!==void 0&&(e.preventDefault(),e.currentTarget.scrollBy({top:n}))}function ml(){return 0}function hl(e){return!e}function gl(){return 0}function _l(){return window.innerWidth}function vl(){return 0}function yl(){return window.innerHeight}export{ll as component};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/cv-XME03RIX.js","assets/rolldown-runtime-WkwZ5CU-.js","assets/react-COyt-gOi.js","assets/effect-5w28W-zd.js","assets/profile-CAmdNQBr.js","assets/(home)-CnFXo4wj.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{n as e,t}from"./rolldown-runtime-WkwZ5CU-.js";import{A as n,B as r,Bt as i,Cn as a,Ct as o,D as s,F as c,Ft as l,Gt as u,H as d,Ht as f,I as p,It as m,J as h,K as g,Kt as _,L as v,Lt as y,M as b,Mn as x,N as S,Nt as C,O as w,On as T,P as E,Qt as ee,Rt as te,S as ne,Sn as re,St as D,Tn as ie,Tt as ae,U as O,Ut as oe,V as se,Vt as ce,W as le,X as ue,Y as de,Yt as fe,Z as pe,_ as me,_n as he,_t as ge,an as _e,b as ve,bn as ye,bt as be,c as xe,ct as Se,d as Ce,dt as we,fn as Te,ft as Ee,g as De,gn as Oe,gt as ke,h as Ae,hn as je,i as Me,j as Ne,k as Pe,kn as Fe,lt as Ie,m as Le,mn as Re,mt as ze,o as Be,ot as Ve,p as He,pn as Ue,pt as We,qt as Ge,r as Ke,s as qe,st as Je,tn as Ye,ut as Xe,v as Ze,vn as Qe,wn as $e,x as et,xn as tt,xt as nt,y as rt,yn as it,yt as at,zt as ot}from"./effect-5w28W-zd.js";import{a as st,n as ct,o as lt,r as ut}from"./react-COyt-gOi.js";import{M as k,N as dt,P as ft,a as A,c as pt,l as mt}from"./profile-CAmdNQBr.js";var j=e(lt(),1),M=st(),ht=class extends j.Component{constructor(...e){super(...e),this.state={error:0},this.reset=()=>{this.setState({error:0})}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:0}:{resetKey:n}}static getDerivedStateFromError(e){return{error:[e]}}componentDidCatch(e,t){this.props.onCatch?.(e,t)}render(){let e=this.state.error;return e?j.createElement(this.props.errorComponent??gt,{error:e[0],reset:this.reset}):this.props.children}};function gt({error:e}){let[t,n]=j.useState(!1);return(0,M.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,M.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,M.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,M.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,M.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,M.jsx)(`div`,{children:(0,M.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e?.message?(0,M.jsx)(`code`,{children:e.message}):null})}):null]})}var _t=j.createContext(null);function N(e){return j.useContext(_t)}function P(e){return e[e.length-1]}function vt(e,t){return typeof e==`function`?e(t):e}var yt=Object.prototype.hasOwnProperty;function bt(e){for(let t in e)if(yt.call(e,t))return!0;return!1}var xt=()=>Object.create(null),St=(e,t)=>F(e,t,!0);function F(e,t,n,r=0){if(e===t)return e;if(r++>500)return t;let i=Array.isArray(e)&&Array.isArray(t);if(!i&&!(Ct(e)&&Ct(t)))return t;let a=Object.keys(e),o=a.length,s=Object.keys(t),c=s.length;if(i?o!==e.length||c!==t.length||o&&P(a)!==`${o-1}`||c&&P(s)!==`${c-1}`:o!==Object.getOwnPropertyNames(e).length||c!==Object.getOwnPropertyNames(t).length||Object.getOwnPropertySymbols(t).length)return t;let l=0,u,d,f;if(i){for(;l<c&&(f=l,d=e[f],u=t[f],u=d===u?d:typeof d==`object`?F(d,u,n,r):u,u===d);l++);if(l===c&&o===c)return e}else{let i=o===c,p=!0;for(;l<c;l++){f=s[l],d=e[f];let o=t[f];u=d===o?d:typeof d==`object`?F(d,o,n,r):o,i&&=u===d&&(a[l]===f||yt.call(e,f)),p&&=Object.is(u,o),a[l]=u}if(i)return Object.getOwnPropertySymbols(e).length?t:e;if(p)return t}let p=i?s.fill(0):n?xt():{};for(let o=0;o<c;o++)f=i?o:s[o],i?(d=e[f],o>l&&(u=t[f],u=d===u?d:typeof d==`object`?F(d,u,n,r):u),p[f]=o<l?d:u):p[f]=a[o];return p}function Ct(e){return!e||typeof e!=`object`?!1:(Object.getPrototypeOf(e)?.constructor??Object)===Object}function I(e,t,n,r){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let i=0,a=e.length;i<a;i++){let a=e[i],o=t[i];if(a!==o&&!I(a,o,n,r))return!1}return!0}if(Ct(e)&&Ct(t)){if(n){for(let i in t)if((r||t[i]!==void 0)&&!I(e[i],t[i],n,r))return!1;return!0}let i=0;if(r)i=Object.keys(e).length;else for(let t in e)e[t]!==void 0&&i++;for(let a in t)if((r||t[a]!==void 0)&&(i--===0||!I(e[a],t[a],n,r)))return!1;return i===0}return!1}function wt(e){return typeof e?.message==`string`?e.message.startsWith(`Failed to fetch dynamically imported module`)||e.message.startsWith(`error loading dynamically imported module`)||e.message.startsWith(`Importing a module script failed`):!1}var Tt=/[\x00-\x1f\x7f"<>`{}]/g;function Et(e){return e.replace(Tt,e=>`%`+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,`0`))}function Dt(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}return Et(t)}var Ot=[`http:`,`https:`,`mailto:`,`tel:`];function kt(e){if(e[0]!==`/`&&e.includes(`:`))return/^[\x00-\x20]*([a-z][a-z\d+.\t\n\r-]*:)/i.exec(e)?.[1]?.replace(/[\t\n\r]/g,``).toLowerCase()}var At=/^[\x00-\x20]*[\\/][\t\n\r]*[\\/]/;function jt(e,t){if(!e)return!1;if(At.test(e))return!0;let n=kt(e);return n?!t.has(n):!1}var Mt={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},Nt=/[&><\u2028\u2029]/g;function Pt(e){return e.replace(Nt,e=>Mt[e])}function Ft(e){if(!e)return e;let t=e;if(/[%\\\x00-\x1f\x7f]/.test(e)){let n=/%25|%5C/gi,r=0,i;for(t=``;(i=n.exec(e))!==null;)t+=Dt(e.slice(r,i.index))+i[0],r=n.lastIndex;t+=Dt(r?e.slice(r):e)}return t}function It(e){return/[\s\u0080-\uFFFF]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function Lt(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Rt(){throw Error(`Invariant failed`)}function zt(e){return e.replace(/\/{2,}/g,`/`)}function Bt(e){return e===`/`?e:e.replace(/^\/+/,``)}function L(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/+$/,``):e}function Vt(e){return L(Bt(e))}function Ht(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function Ut(e,t,n=`never`,r){if(t.includes(`//`)&&(t=zt(t)),t.startsWith(`/`))return t.length===1||n===`preserve`?t:n===`always`?t.endsWith(`/`)?t:`${t}/`:t.endsWith(`/`)?t.slice(0,-1):t;let i=t===`.`,a;if(r){a=i?e:e+`\0`+t;let n=r.get(a);if(n)return n}let o;if(i)o=e.split(`/`);else{for(e.includes(`//`)&&(e=zt(e)),o=e.split(`/`);o.length>1&&P(o)===``;)o.pop();let n=t.split(`/`);for(let e=0,t=n.length;e<t;e++){let r=n[e];r===``?e?e===t-1&&o.push(r):o=[r]:r===`..`?o.length>1?o.pop():o=[``]:r===`.`||o.push(r)}}o.length>1&&(P(o)===``?n===`never`&&o.pop():n===`always`&&o.push(``));let s=o.join(`/`),c=(i?zt(s):s)||`/`;return a&&r&&r.set(a,c),c}function Wt(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=new RegExp([...t.keys()].join(`|`).replace(/[.*()]/g,`\\$&`),`g`);return e=>e.replace(n,e=>t.get(e)??e)}function Gt(e){return e==null||e===``}function Kt(e,t,n){if(typeof t!=`string`)return``+(t??void 0);let r=e===`_splat`;if(r&&(!t||/^[a-zA-Z0-9\-._~!/]*$/.test(t)))return t;let i=encodeURIComponent(t);return r&&(i=i.replaceAll(`%2F`,`/`)),n?n(i):i}function qt(e,t,n,r,i){let a=e.endsWith(`/`)?`/`:``,o=``;for(let e of t){if(typeof e==`string`){o+=e;continue}let[t,s,c,l]=e,u=t===2,d=u&&l!==void 0?l+a:l,f=n[s];if(t!==3||f!=null){if(i&&(i[s]=f,u&&(i[`*`]=f)),u&&Gt(f)){if(c===`/`&&!d)continue;f=``}o+=c+Kt(s,f,r)+(d||``)}}return o+a||`/`}function Jt(e){return e?.isNotFound===!0}var Yt=`__root__`;function Xt(e){e.statusCode=e.statusCode||e.code||307;let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function Zt(e){return e instanceof Response&&!!e.options}function Qt(e){let t=new Map,n,r;return{get(e){let n=t.get(e);if(n)return n.visited=!0,n.value},set(i,a){let o=t.get(i);if(o){o.value=a;return}if(t.size>=e){let e=n?.next().value;for(;!e||e.visited;)e?e.visited=!1:n=t.values(),e=n.next().value;e===r&&(n=void 0),t.delete(e.key)}let s={key:i,value:a,visited:!1};r=s,t.set(i,s)},clear(){t.clear(),n=void 0,r=void 0}}}var R=4,$t=5;function en(e){let t=e.names;if(t)return t;let n=[];for(let t of e)typeof t!=`string`&&n.push(t[1]);return e.names=n}function tn(e,t,n){let r=e.slice(t,n);if(r.charCodeAt(0)===36)return r.length===1?[2,`_splat`,``,void 0]:[1,r.slice(1),``,``];let i=r.indexOf(`{`);if(i>=0){let a=r.indexOf(`}`,i),o=r.charCodeAt(i+1)===45,s=i+(o?3:2);if(a>=0&&r.charCodeAt(s-1)===36&&(!o||s<a)){let c=r.slice(s,a);return[o?3:c?1:2,c||`_splat`,r.slice(0,i),e.slice(t+a+1,c?n:e.length)]}}return r}function nn(e,t,n,r,i,a){let o=n,s=t.fullPath??t.from,c=t.options,l=s.length,u=s.endsWith(`/`)?l-1:l,d=c?.caseSensitive??e,f=c?.params?.parse??c?.parseParams,p,m=a?n-1:0;if(!r||s.includes(`$`)){p=a?.slice()??[];let e=P(p);e&&typeof e!=`string`&&e[0]===2&&(p[p.length-1]=[e[0],e[1],e[2],e[3]===void 0?void 0:e[3]+s.substring(n-(s[n-2]===`/`?2:1),u)],m=l)}for(;o<l;){let e=o,t=s.indexOf(`/`,e),n=t===-1?l:t,a=tn(s,e,n);o=n+1;let c;if(typeof a==`string`){if(!r)continue;let e=a,t;d?t=r.static??=new Map:(e=a.toLowerCase(),t=r.staticInsensitive??=new Map);let n=t.get(e);if(n)c=n;else{let n=z(r);c=n,t.set(e,n)}}else{let t=a[0],h=a[2],g=a[3]??``;if(t===2&&(n=l,o=n+1),p&&m<n&&(m<e-1&&p.push(s.slice(m,e-1)),a[2]=`/`+h,t===2&&a[3]!==void 0&&u<l&&(a[3]=g.slice(0,-1)),p.push(a),m=n),!r)continue;let _=d&&!!(h||g);d||(h=h.toLowerCase(),g=g.toLowerCase());let v=t===1?r.dynamic??=[]:t===3?r.optional??=[]:r.wildcard??=[],y=t!==2&&!f&&v.find(e=>!e.parse&&e.caseSensitive===_&&e.prefix===h&&e.suffix===g);if(y)c=y;else{let e=z(r,t,_,h,g);c=e,v.push(e),v.length===2&&i?.push(v)}}r=c}p&&m<u&&p.push(s.slice(m,u));let h=p?.slice();if(!r)return h;if(f&&t.children&&!t.isRoot&&t.id&&t.id.charCodeAt(t.id.lastIndexOf(`/`)+1)===95){let e=z(r,$t);(r.pathless??=[]).push(e),r=e}let g=(t.path||!t.children)&&!t.isRoot;if(g&&u<l){let e=z(r,R);r.index=e,r=e}return r.parse=f??null,r.priority=c?.params?.priority??0,r.route||(r.data=h,g&&(r.route=t)),[r,o,h]}function rn(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function z(e,t=0,n,r,i){return{kind:t,depth:e?e.depth+1:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,data:void 0,parent:e,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:i}}function an(e,t){let n=z(),r=[];function i(e,t,n,a){let[o,s,c]=nn(!1,e,t,n,r,a);if(e.children)for(let t of e.children)i(t,s,o,c)}for(let t of e)i(t,1,n);for(let e of r)e.sort(rn);t.masksTree=n,t.flatCache=Qt(1e3)}function on(e,t){e||=`/`;let n=t.flatCache.get(e);if(n!==void 0)return n;let r=un(e,t.masksTree);return t.flatCache.set(e,r),r}function sn(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=z(),nn(t,{from:e},1,o),i.singleCache.set(a,o)),un(r,o,n)}function cn(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=un(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=fn(a.route)),t.matchCache.set(r,a),a}function ln(e,t=!1){let n=z(),r=[],i={},a={},o=0;function s(e,n,c,l){if(e.init(o),e.id in i&&Rt(),i[e.id]=e,o!==0&&e.path){let t=L(e.fullPath);(!a[t]||e.fullPath.endsWith(`/`))&&(a[t]=e)}o++;let[u,d,f]=nn(t,e,n,c,r,l);if(e._interpolation=f,e.children)for(let t of e.children)s(t,d,u,f)}s(e,1,n);for(let e of r)e.sort(rn);return{processedTree:{segmentTree:n,singleCache:Qt(1e3),matchCache:Qt(1e3),flatCache:null,masksTree:null},routesById:i,routesByPath:a}}function un(e,t,n=!1){let r=e.split(`/`),i=mn(e,r,t,n);if(!i)return null;let[a]=dn(e,r,i);return{route:i.node.route,rawParams:a}}function dn(e,t,n){let r=pn(n.node),i=n.node.data&&en(n.node.data),a=Object.create(null),o=n.extract?.part??0,s=n.extract?.node??0,c=n.extract?.path??0,l=n.extract?.param??0;for(;s<r.length;o++,s++,c++){let u=r[s];if(u.kind===R)break;if(u.kind===$t){o--,c--;continue}let d=t[o],f=c;if(d&&(c+=d.length),u.kind===1||u.kind===3){let e=i[l++];if(u.kind===3&&n.skipped&1<<s){o--,c=f-1;continue}let t=u.suffix||u.prefix?d.substring(u.prefix.length,d.length-u.suffix.length):d;(t||u.kind===1)&&(a[e]=decodeURIComponent(t))}else if(u.kind===2){let t=u,n=e.substring(f+t.prefix.length,e.length-t.suffix.length),r=decodeURIComponent(n);a[`*`]=r,a._splat=r;break}}return n.rawParams&&Object.assign(a,n.rawParams),[a,{part:o,node:s,path:c,param:l}]}function fn(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function pn(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function mn(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!P(t),a=i&&e!==`/`,o=t.length-+!!i,s=[{node:n,index:1,skipped:0,statics:0,dynamics:0,optionals:0}],c=null,l=null;for(;s.length;){let n=s.pop(),{node:i,index:u,skipped:d,statics:f,dynamics:p,optionals:m}=n,{extract:h,rawParams:g}=n;if(i.kind===2&&i.route&&!vn(l,n))continue;if(i.parse){if(!_n(e,t,n))continue;g=n.rawParams,h=n.extract}r&&i.route&&i.kind!==R&&vn(c,n)&&(c=n);let _=u===o;if(_&&(i.route&&(!a||i.kind===R||i.kind===2)&&vn(l,n)&&(l=n),!i.optional&&!i.wildcard&&!i.index&&!i.pathless))continue;let v=_?void 0:t[u],y;if(_&&i.index){let n={node:i.index,index:u,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g},r=!0;if(i.index.parse&&(_n(e,t,n)||(r=!1)),r){if(!p&&!m&&!d&&gn(f,o))return n;vn(l,n)&&(l=n)}}if(i.wildcard)for(let e=i.wildcard.length-1;e>=0;e--){let n=i.wildcard[e],{prefix:r,suffix:a}=n;if(!r||!_&&(n.caseSensitive?v:y??=v.toLowerCase()).startsWith(r)){if(a){if(_)continue;let e=t.slice(u).join(`/`),i=e.slice(-a.length);if((n.caseSensitive?i:i.toLowerCase())!==a||e.length-a.length<r.length)continue}s.push({node:n,index:o,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(i.optional){let e=d|1<<i.depth+1;for(let t=i.optional.length-1;t>=0;t--){let n=i.optional[t];s.push({node:n,index:u,skipped:e,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_)for(let e=i.optional.length-1;e>=0;e--){let t=i.optional[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&e.indexOf(r,e.length-r.length)<n.length)continue}s.push({node:t,index:u+1,skipped:d,statics:f,dynamics:p,optionals:m+hn(o,u),extract:h,rawParams:g})}}if(!_&&i.dynamic&&v)for(let e=i.dynamic.length-1;e>=0;e--){let t=i.dynamic[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&e.indexOf(r,e.length-r.length)<n.length)continue}s.push({node:t,index:u+1,skipped:d,statics:f,dynamics:p+hn(o,u),optionals:m,extract:h,rawParams:g})}if(!_&&i.staticInsensitive){let e=i.staticInsensitive.get(y??=v.toLowerCase());e&&s.push({node:e,index:u+1,skipped:d,statics:f+hn(o,u),dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_&&i.static){let e=i.static.get(v);e&&s.push({node:e,index:u+1,skipped:d,statics:f+hn(o,u),dynamics:p,optionals:m,extract:h,rawParams:g})}if(i.pathless)for(let e=i.pathless.length-1;e>=0;e--){let t=i.pathless[e];s.push({node:t,index:u,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(l)return l;if(r&&c){let n=c.index;for(let e=0;e<c.index;e++)n+=t[e].length;let r=n===e.length?`/`:e.slice(n);return c.rawParams??=Object.create(null),c.rawParams[`**`]=decodeURIComponent(r),c}return null}function hn(e,t){return 2**(e-t-1)}function gn(e,t){return e===2**(t-1)-1}function _n(e,t,n){let r,i;try{[r,i]=dn(e,t,n)}catch{return null}if(n.rawParams=r,n.extract=i,!n.node.parse)return!0;try{if(n.node.parse(r)===!1)return null}catch{}return!0}function vn(e,t){return!e||t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===R)>(e.node.kind===R)||t.node.kind===R==(e.node.kind===R)&&t.node.depth>e.node.depth)))}function yn(){try{return sessionStorage}catch{return}}var bn=`tsr-scroll-restoration-v1_3`,xn=yn();function Sn(){try{return JSON.parse(xn?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}var Cn=Sn(),wn=`data-scroll-restoration-id`,Tn=e=>e.state.__TSR_key||e.href;function En(e){let t=e.getAttribute(wn);if(t)return`[${wn}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var Dn=!1,On=`window`;function kn(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function An(e){let t=new Set;for(let n of e){if(n===On)continue;let e=kn(n);e&&t.add(e)}return t}function jn(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.e=!0);let i=e.options.getScrollRestorationKey||Tn,a=new Set,o=e=>{let t=Cn[e]||={};for(let e of a)e===document?t[On]={scrollX,scrollY}:e.isConnected&&(t[En(e)]={scrollX:e.scrollLeft,scrollY:e.scrollTop})};n&&!r.s&&(r.s=!0,Dn=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,e=>{Dn||a.add(e.target)},!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&o(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{history.scrollRestoration=`auto`,o(i(e.stores.resolvedLocation.get()??e.stores.location.get()));try{xn?.setItem(bn,JSON.stringify(Cn))}catch{}}),addEventListener(`pageshow`,e=>{e.persisted&&(history.scrollRestoration=`manual`)})),r.r||(r.r=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.n,c=r.h,l;if(a.clear(),r.n=!0,r.h=!1,typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let u=i(t.toLocation),d=t.fromLocation&&i(t.fromLocation);if(r.e&&d&&d!==u){let e=Cn[d];if(e){let t=Cn[u];for(let n in e){if(n===On){if(s)continue}else{let e=kn(n);if(!e||s&&o&&(l??=An(o),l.has(e)))continue}t||=Cn[u]={},t[n]??=e[n]}}}Dn=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){!e&&o&&(l??=An(o));let t=e&&i&&c,s=r.e?Cn[u]:void 0;if(s)for(let e in s){let{scrollX:r,scrollY:i}=s[e];if(e===On){if(t)continue;scrollTo({top:i,left:r,behavior:n}),a=!0}else{let t=kn(e);t&&(t.scrollLeft=r,t.scrollTop=i,l?.delete(t))}}if(!e){let e={top:0,left:0,behavior:n};if(a||scrollTo(e),l)for(let t of l)t.scrollTo(e)}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{Dn=!1}}))}function Mn(e,t=String){let n;for(let r in e){let i=e[r];i!==void 0&&(n||=new URLSearchParams).set(r,t(i))}return n?n.toString():``}function Nn(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function Pn(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=Nn(r):Array.isArray(t)?t.push(Nn(r)):n[e]=[t,Nn(r)]}return n}var Fn=/^(?:\s|["[{\d-]|fa|nu|tr)/,In=Rn(JSON.parse),Ln=zn(JSON.stringify,JSON.parse);function Rn(e){let t=e===JSON.parse;return n=>{n[0]===`?`&&(n=n.slice(1));let r=Pn(n);for(let n in r){let i=r[n];if(typeof i==`string`){if(t&&!Fn.test(i))continue;try{r[n]=e(i)}catch{}}}return r}}function zn(e,t){let n=t===JSON.parse;function r(r){if(r&&typeof r==`object`)try{return e(r)}catch{}else if(t&&typeof r==`string`){if(n&&!Fn.test(r))return r;try{return t(r),e(r)}catch{}}return r}return e=>{let t=Mn(e,r);return t?`?${t}`:``}}function Bn(e,t,n){let r=Vt(e),i=`/${r}`,a=t?i:i.toLowerCase(),o=`${a}/`,s={input:({url:e})=>{let n=t?e.pathname:e.pathname.toLowerCase();return n===a?e.pathname=`/`:n.startsWith(o)&&(e.pathname=e.pathname.slice(i.length)),e},output:({url:e})=>(e.pathname=zt(`/${r}${e.pathname}`),e)};return n?{input:({url:e})=>Vn(n,s.input({url:e})),output:({url:e})=>s.output({url:Hn(n,e)})}:s}function Vn(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Hn(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Un(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i}=t,a=new Map,o=n(`idle`),s=n(e),c=n(void 0),l=n([]),u=r(()=>l.get().map(e=>a.get(e).get())),d=r(()=>({status:o.get(),isLoading:o.get()===`pending`,matches:u.get(),location:s.get(),resolvedLocation:c.get()}));function f(e){let t=a.get(e);return t||(t=n(void 0),a.set(e,t)),t}let p={status:o,location:s,resolvedLocation:c,ids:l,matches:u,byRoute:a,__store:d,getMatchStore:f,setMatches:m};function m(e){let t=l.get(),n=e.map(e=>e.routeId);i(()=>{Lt(t,n)||l.set(n);for(let e of t)n.includes(e)||a.get(e).set(()=>void 0);for(let t of e){let e=f(t.routeId);e.get()!==t&&e.set(t)}})}return p}var B=`__TSR_index`,Wn=`popstate`,Gn=`beforeunload`,Kn=/^[\x00-\x20]*(?:[\\/][\t\n\r]*){2,}/;function qn(e){let t=Kn.exec(e);return t?`/`+e.slice(t[0].length):e}function Jn(e){return/[\x00-\x1f\x7f]/.test(e)&&(e=e.replace(/[\x00-\x1f\x7f]/g,e=>`
|
|
3
|
-
\r`.includes(e)?``:encodeURIComponent(e))),qn(e)}function Yn(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async n=>{let r=n.navigateOpts?.ignoreBlocker?void 0:e.getBlockers?.();if(typeof document<`u`&&r?.length&&(n.type===`PUSH`||n.type===`REPLACE`))for(let i of r){let r=Qn(n.path,n.state);if(await i.blockerFn({currentLocation:t,nextLocation:r,action:n.type})){e.onBlocked?.();return}}n.task()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[B];i=Xn(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[B];i=Xn(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t,n?.ignoreBlocker??!1),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[B]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r,_getBlockers:()=>e.getBlockers?.()??[]}}function Xn(e,t){let n=$n();return{...t,key:n,__TSR_key:n,[B]:e}}function Zn(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=t=>Jn(e?.createHref?e.createHref(t):t),c=e?.parseLocation??(()=>Qn(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=$n();t.history.replaceState({[B]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_=()=>{g&&(S._ignoreSubscribers=!0,(g[2]?t.history.pushState:t.history.replaceState)(g[1],``,g[0]),S._ignoreSubscribers=!1,g=void 0,u=void 0)},v=(t,n,r)=>{let i=e?.createHref?s(n):void 0,a=!!g;a||(u=l),l=Qn(n,r),g=[i??l.href,r,g?.[2]||t],a||queueMicrotask(()=>_())},y=e=>{l=c(),S.notify({type:e})},b=async()=>{if(m=!1,f){f=!1;return}let e=c(),n=e.state[B]-l.state[B],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let r=a();if(typeof document<`u`&&r.length){for(let i of r)if(await i.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(-n),S.notify(u);return}}}l=c(),S.notify(u)},x=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0||typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},S=Yn({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>v(!0,e,t),replaceState:(e,t)=>v(!1,e,t),back:e=>(e&&(p=!0,m=!0),t.history.back()),forward:e=>{e&&(p=!0,m=!0),t.history.forward()},go:(e,n)=>{d=!0,n&&(p=!0,m=!0),t.history.go(e)},createHref:s,flush:_,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(Gn,x,{capture:!0}),t.removeEventListener(Wn,b)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return S._ignoreNextBeforeUnload=e=>{m=!1;try{e=new URL(e,t.document.baseURI).href,m=/^https?:/.test(e)&&(!e.includes(`#`)||e.split(`#`)[0]!==t.location.href.split(`#`)[0])}catch{}},t.addEventListener(Gn,x,{capture:!0}),t.addEventListener(Wn,b),t.history.pushState=function(...e){let r=n.apply(t.history,e);return S._ignoreSubscribers||y(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return S._ignoreSubscribers||y(`REPLACE`),n},S}function Qn(e,t){let n=Jn(e),r=n.indexOf(`#`),i=n.indexOf(`?`);if(!t){let e=$n();t={[B]:0,key:e,__TSR_key:e}}return{href:n,pathname:n.slice(0,r>-1?i>-1?Math.min(r,i):r:i>-1?i:n.length),hash:r>-1?n.slice(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t}}function $n(){return(Math.random()+1).toString(36).slice(7)}function er(e,t){return e.protocol!==`http:`&&e.protocol!==`https:`||e.origin!==t||!!e.username||!!e.password}function tr(e){return e.pathname+e.search+e.hash}function nr(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function rr(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function ir({key:e,__TSR_key:t,__TSR_index:n,__hashScrollIntoViewOptions:r,...i}){return i}function ar(e){return e.findIndex(e=>e.status===`error`||e.status===`notFound`||e._notFound)+1}function or(e,t,n,r,i,a){r&&(t=t.slice(0,r)),i&&(n=n.slice(0,i));for(let r of t){if(a&&e._tx!==a)return;n.some(e=>e.routeId===r.routeId)||e.routesById[r.routeId].options.onLeave?.(r)}for(let r of n){if(a&&e._tx!==a)return;e.routesById[r.routeId].options[t.some(e=>e.routeId===r.routeId)?`onStay`:`onEnter`]?.(r)}}var sr=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={n:!0},this.subscribers=new Set,this._cache=new Map,this._committed=[],this.startTransition=async e=>(e(),!1),this.update=e=>{let t=this.options;this.options={...t,...e},this.isServer=this.options.isServer??!1??typeof document>`u`,this.staticLocations=new WeakMap,this.protocolAllowlist=new Set(this.options.protocolAllowlist),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history?this.options.history:Zn()),this.origin=this.options.origin,this.origin||=window?.origin&&window.origin!==`null`?window.origin:`http://localhost`;let n=this.options.basepath??`/`,r=this.options.rewrite,i=this.basepath!==n||t?.rewrite!==r||t?.caseSensitive!==this.options.caseSensitive;if(i&&(this.basepath=n,this.rewrite=n!==`/`&&Vt(n)?Bn(n,this.options.caseSensitive,r):r),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;e=this.buildRouteTree(),this.setRoutes(e)}if(this.stores)i&&this.stores.location.set(this.latestLocation);else if(this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=Un(this.latestLocation,e),jn(this)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=ln(this.routeTree,this.options.caseSensitive);return this.options.routeMasks&&an(this.options.routeMasks,e.processedTree),{...e,resolvePathCache:Qt(1e3)}},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{for(let t of this.subscribers)if(t.eventType===e.type)try{t.fn(e)}catch(e){console.error(e)}},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i},a)=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:Ft(e),external:!1,searchStr:o,search:St(t?.search,i),hash:Ft(r.slice(1)),state:F(t?.state,a)}}let o=Vn(this.rewrite,new URL(i,this.origin)),s=this.options.parseSearch(o.search),c=this.options.stringifySearch(s);return o.search=c,{href:o.href.replace(o.origin,``),publicHref:i,pathname:Ft(qn(o.pathname)),external:!!this.rewrite&&er(o,this.origin),searchStr:c,search:St(t?.search,s),hash:Ft(o.hash.slice(1)),state:F(t?.state,a)}},r=n(e,e.state),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i,{...i.state,__tempLocation:void 0,key:r.state.key,__TSR_key:r.state.__TSR_key});return e.maskedLocation=r,e}return r},this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>{let t=Object.create(null),n=cn(L(e),this.processedTree,!0);return n&&Object.assign(t,n.rawParams),[n?.branch||[this.routesById.__root__],t,n?.route]},this.buildLocation=e=>{{let t=this.staticLocations.get(e);if(t)return t}let t=!1,n=(n={})=>{if(n.href){let e=Qn(n.href,{});n={...n,to:Vn(this.rewrite,new URL(e.pathname,this.origin)).pathname,search:this.options.parseSearch(e.search),hash:e.hash.slice(1)}}let r=e._fromLocation||this._pendingLocation||this.latestLocation,i,a=()=>(t=!0,r),o=()=>i??=this.matchRoutesLightweight(a()),s=n.to?`${n.to}`:`.`,c=Ut(s[0]===`/`?``:n.unsafeRelative===`path`?a().pathname:n.from??o()[1],s,this.options.trailingSlash,this.resolvePathCache),l=this.routesByPath[L(c)],u=c.includes(`$`),d;if(l)d=l._branch??=fn(l);else if(u)d=[];else{let[e,t,n]=this.getMatchedRoutes(c);d=e,this.options.notFoundRoute&&(!n||n.path!==`/`&&t[`**`])&&(d=[...d,this.options.notFoundRoute])}let f=u?l?._interpolation??nn(!1,{fullPath:c},0):void 0,p;for(let e of d){let t=e.options.params?.stringify??e.options.stringifyParams;if(t){let e=o()[3];if(p??=fr(n.params,e),!bt(p))break;p===e&&(p=Object.assign(xt(),p));try{Object.assign(p,t(p))}catch{}}}p??=fr(n.params,pr(n.params,f)?o()[3]:mr);let m=e.leaveParams?c:qn(Ft(f?qt(c,f,p,this.pathParamsDecoder):c)),h=hr(d,e._includeValidateSearch),g=()=>{let t=o()[2];if(e._includeValidateSearch&&this.options.search?.strict){let e={};d.forEach(n=>{if(n.options.validateSearch)try{Object.assign(e,dr(n.options.validateSearch,{...e,...t}))}catch{}}),t=e}return t},_=h.length?gr(h,g(),n):n.search===!0?g():typeof n.search==`function`?n.search(g()):n.search||mr,v=this.options.stringifySearch(_),y=n.hash===!0?a().hash:typeof n.hash==`function`?n.hash(a().hash):n.hash||void 0,b=y?`#${y}`:``,x=n.state?n.state===!0?a().state:typeof n.state==`function`?n.state(a().state):n.state:mr,S=`${m}${v}${b}`,C,w,T=!1;if(this.rewrite){let e=new URL(S,this.origin),t=e.origin,n=Hn(this.rewrite,e);C=tr(e),er(n,t)?(w=n.href,T=!0):w=qn(tr(n))}else C=It(S),w=C;return{publicHref:w,href:C,pathname:m,search:_,searchStr:v,state:x,hash:y??``,external:T,unmaskOnReload:n.unmaskOnReload}},r=n(e);if(e.mask)r.maskedLocation=n({from:e.from,...e.mask});else if(this.options.routeMasks){let t=on(r.pathname,this.processedTree);if(t){let i=Object.assign(xt(),t.rawParams),{from:a,params:o,...s}=t.route,c=fr(o,i);r.maskedLocation=n({from:e.from,...s,params:c})}}return!t&&e._fromLocation&&this.staticLocations.set(e,r),r},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r=n.maskedLocation??n;if(r.external)return cr(this,r.publicHref,{replace:n.replace,ignoreBlocker:t});let i,a=L(this.latestLocation.href)===L(n.href)&&I(ir(n.state),ir(this.latestLocation.state)),o=this._commitPromise,s,c=new Promise(e=>{s=e});if(c.resolve=()=>{s(),o?.resolve()},this._commitPromise=c,a)this.load();else{let{maskedLocation:r,hashScrollIntoView:a,...o}=n;r&&(o={...r,state:{...r.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state={...o.state,__hashScrollIntoViewOptions:a??this.options.defaultHashScrollIntoView??!0},this.shouldViewTransition=e,i=n.replace?`REPLACE`:`PUSH`,this.history[i===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t}),this.history.subscribers.size||this.load({action:{type:i}})}return this._scroll.n=n.resetScroll??!0,this._commitPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,...a}={})=>{let o=this.buildLocation({...a,_includeValidateSearch:!0});this._pendingLocation=o;let s=this.commitLocation({...o,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return queueMicrotask(()=>{this._pendingLocation===o&&(this._pendingLocation=void 0)}),s},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=n?kt(n):void 0;if(a||t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i}),a=t.maskedLocation??t;n??=a.publicHref,r??=a.publicHref}let t=!a&&r?r:n;return cr(this,t,i)}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.load=async e=>{this.updateLatestLocation(),e?.action&&(this._scroll.h=e.action.type===`PUSH`||e.action.type===`REPLACE`),await ti(this,e)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&window.CSS?.supports?.(`selector(:active-view-transition-type(a))`)){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(rr(r,i)):t.types;if(a===!1)return e();n={update:e,types:a}}else n=e;return document.startViewTransition(n).updateCallbackDone}return e()},this.invalidate=e=>{let t=this._committed,n=e?.filter,r=this._preloads,i=new Set,a=e=>{(!n||n(e))&&i.add(e.id)};t.forEach(a),this._cache.forEach(a),r?.forEach(e=>e.forEach(a)),this._tx?.[3].forEach(a);let o=[];for(let[e,t]of r??[])t.some(e=>i.has(e.id))&&(r.delete(e),o.push(e));let s=t=>{if(i.has(t.id)){let n=this.routesById[t.routeId],r={...t,invalid:!0,...(e?.forcePending||t.status===`error`||t.status===`notFound`)&&nr(n)?{status:`pending`,error:void 0}:void 0};return t._flight=void 0,r}return t};this._committed=t.map(s);for(let[t,n]of this._cache)i.has(t)&&(n.invalid=!0,e?.forcePending&&(n.status=`pending`));for(let e of i){let t=this._flights?.get(e);this._flights?.delete(e),t&&!t[2]&&o.push(t[1])}for(let e of o)e.abort();return this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.resolveRedirect=e=>{let t=e.options,n=e.headers.get(`Location`)||t.href;if(!n){let e=this.buildLocation(t);n=(e.maskedLocation??e).publicHref||`/`}let r;if(At.test(n)||(r=kt(n))&&!this.protocolAllowlist.has(r))throw Error(`Redirect blocked: unsafe protocol`);if(r===`http:`||r===`https:`){let e=new URL(n);e.pathname.startsWith(`//`)?n=e.href:er(e,this.origin)||(n=tr(e),r=void 0)}return r&&(t.reloadDocument=!0),t.href=n,e.headers.set(`Location`,n),e},this.clearCache=e=>{let t=this._cache,n=this._preloads,r=e?.filter,i=[],a=[];for(let[e,n]of t)(!r||r(n))&&(a.push(e),i.push(n));let o=[];for(let[e,t]of n??[])(!r||t.some(r))&&(o.push(e),i.push(...t));for(let e of a)t.delete(e);for(let e of o)n.delete(e);for(let e of i){let t=e._flight;e._flight=void 0,t&&!--t[2]&&(this._flights?.get(e.id)===t&&this._flights.delete(e.id),o.push(t[1]))}for(let e of o)e.abort()},this.loadRouteChunk=xr,this.preloadRoute=e=>ni(this,e),this.matchRoute=(e,t)=>{let n={...e,to:e.to?Ut(e.from||``,e.to,this.options.trailingSlash,this.resolvePathCache):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n),i=this.stores.status.get()===`pending`;if(t?.pending&&!i)return!1;let a=t?.pending??!i?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),o=sn(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,a.pathname,this.processedTree);return!o||e.params&&!I(o.rawParams,e.params,!0)?!1:t?.includeSearch??!0?I(a.search,r.search,!0)?o.rawParams:!1:o.rawParams},this.getStoreConfig=t,e.pathParamsAllowedCharacters?.length&&(this.pathParamsDecoder=Wt(e.pathParamsAllowedCharacters)),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??Ln,parseSearch:e.parseSearch??In,protocolAllowlist:e.protocolAllowlist??Ot}),self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}get state(){return this.stores.__store.get()}setRoutes(e){Object.assign(this,e),this.lightweightCache=new WeakMap,this.staticLocations=new WeakMap;let t=this.options.notFoundRoute;t&&(t.init(99999999999),this.routesById[t.id]!==t&&(t._interpolation=nn(!1,t,0)),this.routesById[t.id]=t)}matchRoutesInternal(e,t){let[n,r,i]=this.getMatchedRoutes(e.pathname),a=n,o=!1;(i?i.path!==`/`&&r[`**`]:L(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?_r(this.options.notFoundMode,a):void 0,c=Array(a.length),l=this._committed,u=(e,t)=>{let n=l[t];return n?.routeId===e.id?n:e===this.options.notFoundRoute?l.find(t=>t.routeId===e.id):void 0},d;for(let n=0;n<a.length;n++){let i=a[n],o=c[n-1],l,f,p;{let n=o?.search??e.search,r=o?._strictSearch??void 0;try{let e=dr(i.options.validateSearch,{...n})??void 0;l={...n,...e},f={...r,...e}}catch(e){let r=e;if(e instanceof lr||(r=new lr(e.message,{cause:e})),t?.throwOnError)throw r;l=n,f={},p=r}}let m=``,h=``;try{m=i.options.loaderDeps?.({search:l})??``,h=m&&JSON.stringify(m)||``}catch(e){if(t?.throwOnError)throw e;p??=e}let g=xt(),_=i._interpolation?qt(i.fullPath,i._interpolation,r,this.pathParamsDecoder,g):i.fullPath,v=i.id+_+h,y=u(i,n),b=this._cache.get(v)??(y?.id===v?y:void 0);d=b?._strictParams??Object.assign(g,d);let x;if(!b)try{vr(i,d)}catch(e){if(x=Jt(e)||Zt(e)?e:new ur(e.message,{cause:e}),t?.throwOnError)throw x}let S=y?`stay`:`enter`,C;if(b)C={...b,cause:S,search:St(y?y.search:b.search,l),_strictSearch:f,searchError:p};else{let e=nr(i)?`pending`:`success`;C={id:v,ssr:i.options.ssr,index:n,routeId:i.id,params:y?.params??d,_strictParams:d,pathname:_,updatedAt:Date.now(),search:y?St(y.search,l):l,_strictSearch:f,searchError:p,status:e,isFetching:!1,error:void 0,paramsError:x,context:{},abortController:t?._controller??new AbortController,cause:S,loaderDeps:y?F(y.loaderDeps,m):m,invalid:!1,preload:!1,staticData:i.options.staticData||{},fullPath:i.fullPath}}let w=s===i.id;C._notFound&&!w&&(C.error=void 0),C._notFound=w,c[n]=C}for(let e=0;e<c.length;e++){let n=c[e];n.params=n.cause===`stay`?St(n.params,d):d,t?._controller&&(n.context={})}return c}matchRoutesLightweight(e){let t=P(this.stores.ids.get()),n=t?this.stores.byRoute.get(t).get():void 0,r=n?.id,i=this.lightweightCache.get(e);if(i&&i[0]===r)return i[1];let[a,o]=this.getMatchedRoutes(e.pathname),s=P(a),c={...e.search};for(let e of a)try{Object.assign(c,dr(e.options.validateSearch,c))}catch{}let l=n&&n.routeId===s.id&&n.pathname===e.pathname,u;if(l)u=n.params;else{let e=o;for(let t of a)try{vr(t,e)}catch{}u=e}let d=[a,s.fullPath,c,u];return this.lightweightCache.set(e,[r,d]),d}};async function cr(e,t,{replace:n,ignoreBlocker:r}){if(!jt(t,e.protocolAllowlist)){if(!r){let t=e.history._getBlockers();for(let r of t)if(r?.blockerFn&&await r.blockerFn({currentLocation:e.history.location,nextLocation:e.history.location,action:n?`REPLACE`:`PUSH`}))return}e.history._ignoreNextBeforeUnload?.(t),n?window.location.replace(t):window.location.href=t}}var lr=class extends Error{},ur=class extends Error{};function dr(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new lr(`Async validation not supported`);if(n.issues)throw new lr(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function fr(e,t){if(e===void 0||e===!0)return t;let n=Object.create(null);return e===!1||e===null?n:typeof e==`function`?(Object.assign(n,t),Object.assign(n,e(n))):Object.assign(n,t,e)}function pr(e,t){return typeof e==`function`?!0:!t||e===!1||e===null?!1:e===void 0||e===!0||t.some(t=>typeof t!=`string`&&!yt.call(e,t[1]))}var mr=Object.freeze({});function hr(e,t){let n=[];for(let r=0;r<e.length;r++){let i=e[r].options;`search`in i?i.search?.middlewares&&n.push(...i.search.middlewares):(i.preSearchFilters||i.postSearchFilters)&&n.push(({search:e,next:t})=>{let n=t(i.preSearchFilters?i.preSearchFilters.reduce((e,t)=>t(e),e):e);return i.postSearchFilters?i.postSearchFilters.reduce((e,t)=>t(e),n):n});let a=i.validateSearch;t&&a&&n.push(({search:e,next:t,meta:n})=>{let r=t(e);try{let e=dr(a,r);if(n&&e)for(let t in e)t in r||(n.defaulted||=new Map).set(t,e[t]);return{...r,...e}}catch{}return r})}return n}function gr(e,t,n){let r=(t,i,a)=>{if(t>=e.length){if(!n.search)return{};if(n.search===!0)return i;let e=vt(n.search,i);return a&&(a.explicit=e),e}return e[t]({search:i,next:(e,n)=>{if(n){let n=a||{};return{search:r(t+1,e,n),meta:n}}return r(t+1,e,a)},meta:a})};return r(0,t)}function _r(e,t){if(e!==`root`){let e;for(let n=t.length-1;n>=0;n--){let r=t[n];if(r.options.notFoundComponent)return r.id;e||=r.children&&r.id}if(e)return e}return Yt}function vr(e,t){let n=e.options.params?.parse??e.options.parseParams;n&&Object.assign(t,n(t))}function yr(e,t){return e.options[t]?.preload?.()}function br(e,t){let n=yr(e,`component`),r=yr(e,`pendingComponent`);return t&&(r?r=r.then(t):t()),n&&r?Promise.all([n,r]).then(()=>{}):n??r}function xr(e,t,n){let r=()=>t===!1?void 0:t?yr(e,t):br(e,n),i=e._lazy;if(i)return i===!0?r():i.then(r);if(!e.lazyFn)return r();let a=e.lazyFn().then(t=>{{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazy=!0}},t=>{throw e._lazy=void 0,t});return e._lazy=a,a.then(r)}function Sr(e){let t=e.findIndex(e=>e.status!==`success`||e._notFound)+1;return t&&t<e.length?e.slice(0,t):e}function Cr(e,t,n){let r=e._tx;return t&&r?.[2]===n&&!r[3].some(e=>e.routeId===t)}function wr(e){let t=e.length;for(let n=0;n<t;n++){let r=e[n];if(r._assetEnd!==void 0)t=Math.min(t,Math.max(n+1,r._assetEnd));else if(r.status!==`success`||r._notFound){t=n+1;break}}return t<e.length?e.slice(0,t):e}var V=0,H=1,Tr=2,U=3,W=[4];function Er(e){return typeof e[0]==`number`}function G(e,t){return t.aborted?Promise.race([Promise.reject(t),e]):new Promise((n,r)=>{let i=()=>r(t);t.addEventListener(`abort`,i,{once:!0}),Promise.resolve(e).then(n,r).then(()=>t.removeEventListener(`abort`,i))})}function K(e,t){return e.routesById[t.routeId]}function Dr(e,t,n){return Zt(e)?[U,e]:Jt(e)?(e.routeId||=n,[Tr,e]):t?(typeof e?.then==`function`&&(e=Error(`A Promise was thrown`,{cause:e})),[H,e]):[V,e]}function Or(e,t){let n=Dr(t,!0,e.id);if(n[0]!==H)return n;try{e.options.onError?.(n[1])}catch(t){n=Dr(t,!0,e.id)}return n}function kr(e,t,n,r,i){return i[0].signal.aborted?W:Hr(e,t,n,Or(n,r),i)}async function Ar(e,t,n,r,i,a){let[o,s]=t,c=n[0].signal,l=!!n[3];for(let i=n[6]??0;i<r;i++){let r=s[i],u=K(e,r);r.abortController=n[0];let d=s[i-1]?.context??e.options.context??{},f={params:r.params,location:o,navigate:t=>e.navigate({...t,_fromLocation:o}),buildLocation:e.buildLocation,cause:l?`preload`:r.cause,abortController:n[0],preload:l,matches:s,routeId:u.id};try{let e=r._ctx||=u.options.context?u.options.context({...f,deps:r.loaderDeps,context:d})||{}:void 0;r.context={...d,...e}}catch(a){return q(e,r),[i,kr(e,t,u,a,n)]}if(c.aborted)return[i,W];let p=r.paramsError??r.searchError;if(p!==void 0)return q(e,r),[i,kr(e,t,u,p,n)];let m=u.options.beforeLoad;if(!m)continue;let h=r.status;i>=a&&(r.status=`pending`,n[7]?.());try{Nr(e,r,`beforeLoad`,n[0]);let a=m({...f,search:r.search,context:r.context,...e.options.additionalContext}),o=await(typeof a?.then==`function`?G(a,c):a);if(c.aborted)return[i,W];let s=Hr(e,t,u,Dr(o,!1,u.id),n);if(s[0]!==V)return q(e,r),[i,s];r.context={...r.context,...o}}catch(a){return q(e,r),[i,kr(e,t,u,a,n)]}finally{r.status=h,Nr(e,r,!1,n[0])}}i()}function jr(e,t,n){if(!(!n||--n[2])){if(e._flights?.get(t.id)===n){let n=e._tx;if(n&&!n[0].signal.aborted&&!n[3].includes(t)&&n[3].some(e=>e.id===t.id)&&n[3].some(e=>e.isFetching===`beforeLoad`))return;e._flights.delete(t.id)}return n[1]}}function q(e,t){let n=t._flight;t._flight=void 0,jr(e,t,n)?.abort()}function J(e,t,n,r){let i=[];for(let a of t)if(!n?.includes(a)){let t=a._flight;if(a._flight=void 0,r&&t?.[2]===1&&e._flights?.get(a.id)===t&&n?.some(e=>e.id===a.id))t[2]=0;else{let n=jr(e,a,t);n&&i.push(n)}}for(let e of i)e.abort()}function Mr(e){for(let t of e){let e=t._flight;e&&e[2]++}}function Nr(e,t,n,r){if(t.isFetching=n,r&&e._tx?.[0]!==r)return;let i=e.stores.byRoute.get(t.routeId),a=i?.get();a?.id===t.id&&i.set({...a,isFetching:n})}function Pr(e,t,n,r,i,a,o){let s=t[0];return{params:n.params,location:s,navigate:t=>e.navigate({...t,_fromLocation:s}),cause:o?`preload`:n.cause,abortController:i,preload:o,deps:n.loaderDeps,parentMatchPromise:a,context:n.context,route:r,...e.options.additionalContext}}async function Fr(e,t,n,r,i,a,o){let s=o[0],c=s.signal;if(c.aborted)return W;if(!i)return[V,void 0];let l=n._flight;Nr(e,n,`loader`,s);try{if(!l){let s=new AbortController;l=[Promise.resolve().then(()=>i(Pr(e,t,n,r,s,a,!!o[3]))).then(e=>Dr(e,!1,r.id),e=>Dr(e,!0,r.id)).then(t=>(t[0]!==V&&e._flights?.get(n.id)===l&&(e._flights.delete(n.id),l[2]||s.abort()),t[0]===H&&l[2]?Or(r,t[1]):t)),s,1],(e._flights??=new Map).set(n.id,l)}return n._flight=l,n.abortController=l[1],Hr(e,t,r,await G(l[0],c),o)}catch(t){if(t!==c||!c.aborted)throw t;return q(e,n),W}finally{Nr(e,n,!1,s)}}function Ir(e,t,n){t[0]!==U&&(e.status=`success`,e.error=void 0,t[0]===V?(e.loaderData=t[1],e.invalid=!1,e.updatedAt=Date.now(),e.preload=n):e.invalid=!0)}function Lr(e,t,n){let r=e._cache.get(t.id);if(r!==n||e._committed.some(e=>e.id===t.id&&e._flight===t._flight))return;let i={...t,_notFound:void 0,context:{}};i._flight&&i._flight[2]++,e._cache.set(t.id,i),r&&q(e,r)}function Rr(e,t){return t[0]===H||t[0]===Tr?{...e,status:t[0]===H?`error`:`notFound`,error:t[1],_flight:void 0}:e}function zr(e,t,n,r,i,a,o){let s=t[1][n],c=K(e,s),l=!!a[3],u=e._cache.get(s.id),d,f=!1,p;try{if(s.status===`success`&&(d=c.options.shouldReload,typeof d==`function`&&(d=d(Pr(e,t,s,c,a[0],i,l))),a[0].signal.aborted&&(p=W)),!p){if(s.status!==`success`)f=!0;else{let t=l||s.preload?c.options.preloadStaleTime??e.options.defaultPreloadStaleTime??3e4:c.options.staleTime??e.options.defaultStaleTime??0;f=!!(s.invalid||d||d===void 0&&Date.now()-s.updatedAt>=t&&(a[5]||s.cause===`enter`||a[2].some(e=>e.routeId===s.routeId&&e.id!==s.id)))}}}catch(n){s.invalid=!0,q(e,s),p=kr(e,t,c,n,a)}let m=c.options.loader,h=typeof m==`function`,g=h?m:m?.handler,_=!l||c.options.preload!==!1,v=_&&m?e._flights?.get(s.id):void 0;v===s._flight||p?v=void 0:v&&!f&&!l&&d===void 0?f=!0:f||(v=void 0);let y=!(!m||!f||s.status!==`success`||l||a[4]||((h?void 0:m.staleReloadMode)??e.options.defaultStaleReloadMode)===`blocking`),b=f&&_,x=b&&!y&&(s.status!==`success`||!!m),S=n>=o?a[7]:void 0,C=c.lazyFn&&c._lazy!==!0?S:void 0;if(b&&!m&&(s.invalid=!1,s.updatedAt=Date.now()),v&&v[2]++,x){let t=s._flight;s._flight=v,jr(e,s,t)?.abort(),n>=o&&(s.status=`pending`),S?.()}b||(s.isFetching=!1);let w=!p&&x?Fr(e,t,s,c,g,i,a).then(t=>(Ir(s,t,l),t[0]===V&&(m&&!a[0].signal.aborted&&Lr(e,s,u),n>=o&&(s.status=`pending`)),t)):Promise.resolve(p??[V,s.loaderData]),T=(async()=>{try{let e=xr(c,void 0,C);e&&await G(e,a[0].signal)}catch(r){if(!t[1].some((e,t)=>t<=n&&(e.status===`error`||e.status===`notFound`||e._notFound)))return[n,kr(e,t,c,r,a)]}let r=await w;x&&r[0]===V&&s.status===`pending`&&!a[0].signal.aborted&&(s.status=`success`,S?.())})();if(r.push([n,w,T]),!y)return w.then(e=>Rr(s,e));let E={...s,status:`pending`,preload:!1,_flight:v};s.invalid=!1,s.isFetching=`loader`;let ee=Fr(e,t,E,c,g,i,a).then(e=>(s.isFetching=!1,Ir(E,e,!1),e));return(t[2]??=[]).push([n,ee,T,E]),ee.then(e=>Rr(E,e))}async function Br(e,t,n,r,i=0){let a=n?.[1][1],o=a?.routeId?t.findIndex(e=>e.routeId===a.routeId):n?.[0]??t.length-1;o<0&&(o=0);for(let n=o;n>=0;n--){let i=K(e,t[n]);try{let e=xr(i,!1);e&&await G(e,r)}catch(e){if(e===r&&r.aborted)throw e}if(i.options.notFoundComponent)return n}return a?.routeId?o:i}function Y(e,t){t[2]&&=(J(e,t[2].map(e=>e[3])),void 0)}async function Vr(e,t,n,r){let i;try{await Promise.all(e.map(e=>e[1].then(async t=>{let a=e[0];if(!(r&&a>=await r)){if(t[0]>=U)throw[a,t];!i&&t[0]!==V&&(i=[a,t],await Promise.all((n??[]).map(e=>{if(!(e[0]<=a))return e[1].then(t=>{if(t[0]===U)throw[e[0],t]})})))}})))}catch(e){return e}return t??i}function Hr(e,t,n,r,i,a){for(;r[0]===U;){let o=r[1],s=o.options;try{if((s.href||o.headers.has(`Location`))&&(e.resolveRedirect(o),s.reloadDocument)||(s.reloadDocument?i[3]:i[1]>=20))return r;let n=e.buildLocation({...s,_fromLocation:t[0],_includeValidateSearch:!0}),a=n.maskedLocation??n;if(a.external){let t=o.clone();return t.options={...s},t.headers.set(`Location`,a.publicHref),e.resolveRedirect(t),i[3]?[U,t]:[U,t,a]}return[U,o,n]}catch(e){r=a?[H,e]:Or(n,e),a=!0}}return r}async function Ur(e,t,n,r,i,a){let o=t[1],s=await i,c=!1,l=o.findIndex(e=>e._notFound),u=t=>t[1][0]===Tr?Br(e,o,t,r.signal):t[0],d=l<0?o.length:l;if((s?.[1][0]??0)>=U)d=0;else if(s){d=s[2]??=await u(s);for(let e of n){if(e[0]>=d)break;let t=await e[1];if(t[0]!==V&&t[0]<U&&!(`loaderData`in o[e[0]])){s=[e[0],t],d=s[2]=await u(s);break}}}for(let e of n){if(e[0]>=d)break;let t=await e[2];if(t){s=t;break}}if((s?.[1][0]??0)>=U){let n=s[1];if(n[0]!==U||n[1].options.reloadDocument||n[2])return Y(e,t),n;c=!0,s=[0,[H,Error(`Too many redirects`)]]}let f=s?s[2]??await u(s):l;if(f>=0){let i=s?.[1],l=i?.[0],u=o[f],d=i?.[1],p=()=>{i&&(u._notFound=void 0,l===H?u.status=`error`:(d.routeId=u.routeId,u.routeId===e.routeTree.id?(u.status=`success`,u._notFound=!0):u.status=`notFound`),u.error=d,u.isFetching=!1)};p(),i||a?.();let m=K(e,u);try{await G(i?Promise.resolve().then(()=>xr(m,l===H?`errorComponent`:`notFoundComponent`)):Promise.all([xr(m),xr(m,`notFoundComponent`)]),r.signal)}catch(n){if(n===r.signal&&r.signal.aborted)return Y(e,t),W}i?c&&(r.abort(),await Promise.all([...n.map(e=>e[1]),...n.map(e=>e[2]),...(t[2]??[]).map(e=>e[1])]),Y(e,t),J(e,o),p()):u.status=`success`}return t}async function Wr(e,t,n,r=0,i=t[1].length){let a=t[1];for(let t=r;t<i;t++){let r=a[t],i=K(e,r).options;if(i.head||i.scripts)try{let t={ssr:e.options.ssr,matches:a,match:r,params:r.params,loaderData:r.loaderData},[o,s]=await G(Promise.all([i.head?.(t),i.scripts?.(t)]),n);r.meta=o?.meta,r.links=o?.links,r.headScripts=o?.scripts,r.styles=o?.styles,r.scripts=s}catch(e){if(e===n&&n.aborted)break;console.error(e)}if(r.status!==`success`||r._notFound)break}return t}async function Gr(e,t,n,r){let i=[t,n],a=r[0].signal,o;try{let t=e.stores.matches.get(),s=n.findIndex(e=>e._notFound);if(e.options.notFoundMode!==`root`&&s>=0){let t=await Br(e,n,void 0,a,s);n[s]._notFound=void 0,n[t]._notFound=!0,s=t}let c=s<0?n.length:s+1,l=0;for(;l<c&&l!==s;){let e=n[l],i=r[2][l],a=t[l];if(i?.id!==e.id||i.status!==`success`||e.preload||a?.id!==e.id||a.status!==`success`||(l++,i._notFound||a._notFound))break}let u=[],d=r[6]??0,f=d?Promise.resolve(n[d-1]):void 0,p=()=>{for(let t=d;t<c&&!a.aborted;t++)f=zr(e,i,t,u,f,r,l)},m=await Ar(e,i,r,c,p,l);if(m){if(r[4]=!0,c=m[0],m[1][0]===Tr){let t=await Br(e,n,m,a);m[2]=t,c=Math.min(c,t+1)}else m[1][0]>=U&&(c=0);p()}if(!a.aborted&&!r[3]){let t=[];for(let[n,r]of e._flights??[])r[2]||(e._flights.delete(n),t.push(r[1]));for(let e of t)e.abort()}let h=Ur(e,i,u,r[0],Vr(u,m,i[2]),r[7]);i[2]?.length&&(i[3]=Vr(i[2],void 0,void 0,h.then(e=>Er(e)?0:Sr(n).length,()=>0))),o=await h}catch(t){if(Y(e,i),t===a&&a.aborted)return W;throw t}return Er(o)?o:Wr(e,o,a,r[6]===n.length?r[6]:0)}function Kr(e,t){if(e._tx!==t)return;let n=t[3],r=e.stores.matches.get(),i=e._pending;for(let a=0;a<n.length;a++){let o=n[a],s=o.status===`success`&&!o._notFound,c=r[a]?.id===o.id&&r[a]?.status===`pending`;if(s&&!c)continue;let l=K(e,o),u=s||o.invalid?0:l.options.pendingMs??e.options.defaultPendingMs,d=l.options.pendingComponent??e.options.defaultPendingComponent;if(!d||typeof u!=`number`||u===1/0){i&&(i[0]=t,i[2]=0,i[4]=!0);return}let f=l.options.pendingMinMs??e.options.defaultPendingMinMs??0,p=!1;if(i?.[1]===o.id?(p=i[0]!==t,i[0]=t):(clearTimeout(i?.[3]),e._pending=i=void 0),i||(e._pending=i=[t,o.id,c?Date.now()+f:t[4]+u,void 0,c||void 0,d]),i[4]&&!p&&i[5]===d)return;if(i[5]=d,!i[4]){clearTimeout(i[3]);let n=i[2]-Date.now();if(n>0){i[3]=setTimeout(()=>Kr(e,t),n);return}i[2]=0}let m=n.map(e=>({...e,_flight:void 0}));m[a].status=`pending`;let h=i[4]=e.startTransition(()=>e.stores.setMatches(m),m).then(t=>(t&&e._pending===i&&i[4]===h&&!i[2]&&(i[2]=Date.now()+f),t));return}}function qr(e,t){let n=e._pending;e._tx!==t&&e._tx?.[3].some(e=>e.id===n?.[1])||(clearTimeout(n?.[3]),e._pending=void 0)}async function Jr(e,t){let n=e._pending;if(!n)return;clearTimeout(n[3]);let r=n[2]-Date.now();if(!n[4]||r<=0||!Sr(t[3]).some(e=>e.id===n[1]))return;let i;try{await G(new Promise(e=>{i=setTimeout(e,r)}),t[0].signal)}catch{}clearTimeout(i)}function Yr(e,t){e._committed=t,e.stores.setMatches(t)}function Xr(e,t,n,r){let i=e._committed,a=e._lifecycleEnd,o=e._cache;for(let e of n)e.preload=!1,r&&(e._assetEnd=void 0);let s=Sr(n).length,c=new Map;{let t=Date.now(),r=new Set;for(let e=0;e<n.length;e++){let t=n[e];(e<s||t.status===`success`)&&r.add(t.id)}for(let n of[...i,...o.values()]){if(n.status!==`success`||r.has(n.id))continue;let i=K(e,n);!i.options.loader||t-n.updatedAt>=(n.preload?i.options.preloadGcTime??e.options.defaultPreloadGcTime??3e5:i.options.gcTime??e.options.defaultGcTime??3e5)||c.set(n.id,o.get(n.id)===n?n:{...n,_flight:void 0,isFetching:!1,context:{}})}}t[3]=[],e._cache=c;let l=e._lifecycleEnd=ar(n);Yr(e,n),J(e,[...o.values(),...i].filter(e=>e._flight&&c.get(e.id)!==e),n),or(e,i,n,a,l,t)}async function Zr(e,t){let n=e._tx;for(;n&&n!==t;)t=n,await n[5],n=e._tx}function Qr(e,t,n){let r=n[1].options,i=n[2];if(!i)return e.navigate({...r,replace:!0,ignoreBlocker:!0});if(r.reloadDocument)return e.navigate({href:(i.maskedLocation??i).publicHref,reloadDocument:!0,replace:!0,ignoreBlocker:!0});i._redirects=t[1]+1,e._pendingLocation=i;let a=e.commitLocation({...i,viewTransition:r.viewTransition,replace:!0,resetScroll:r.resetScroll,hashScrollIntoView:r.hashScrollIntoView,ignoreBlocker:!0});return queueMicrotask(()=>{e._pendingLocation===i&&(e._pendingLocation=void 0)}),a}async function $r(e,t,n,r,i){let a=n.map(e=>({...e}));Mr(a);for(let t of r)q(e,a[t[0]]),a[t[0]]=t[3];let o=[t[2],a],s;try{s=await Ur(e,o,r,t[0],i)}catch(t){throw J(e,a),t}if(Er(s))J(e,a),s[0]===U&&e._tx===t&&e._committed===n&&await Qr(e,t,s);else if(await Wr(e,s,t[0].signal),e._tx!==t||e._committed!==n)J(e,a);else{for(let t of a){let n=e._cache.get(t.id);n?._flight&&n._flight===t._flight&&(e._cache.delete(t.id),q(e,n))}Yr(e,a),J(e,n,a)}}async function ei(e,t,n,r,i,a){let o=await Gr(e,t[2],t[3],[t[0],t[1],e._committed,void 0,i,n,a,r]);if(Er(o)){let n=o[0]===U&&e._tx===t;if((!n||o[1].options.reloadDocument)&&qr(e,t),J(e,t[3]),t[3]=[],!n)return;if(e._tx!==t){qr(e,t);return}await Qr(e,t,o);return}let s=o[1];if(e._tx===t&&await Jr(e,t),e._tx!==t){qr(e,t),J(e,s),Y(e,o);return}let c=t[2],l=rr(c,e.stores.resolvedLocation.get()),u=o[2];await e.startViewTransition(async()=>{if(e._tx===t&&await Jr(e,t),e._tx!==t){qr(e,t),J(e,s),Y(e,o);return}let n=await e.startTransition(()=>{qr(e,t),Xr(e,t,s,a),e._tx===t&&(e.emit({type:`onLoad`,...l}),e._tx===t&&e.emit({type:`onBeforeRouteMount`,...l}))},s);e._tx===t?(u?.length&&$r(e,t,s,u,o[3]).catch(console.error),e.batch(()=>{e.stores.resolvedLocation.set(c),e.stores.status.set(`idle`),e._tx===t&&e.emit({type:`onResolved`,...l}),n&&e._tx===t&&e.emit({type:`onRendered`,...l})}),e._tx===t&&(e._commitPromise?.resolve(),e._commitPromise=void 0)):Y(e,o)})}async function ti(e,t){let n=e._tx,r=e.stores.resolvedLocation.get(),i=r??e.stores.location.get(),a=e.latestLocation,o=e._pendingLocation,s=o?.href===a.href?o._redirects??0:0,c=e._handoff,l=c?.[0](),u=new AbortController,d=e._preflight;if(e._preflight=u,l||c?.[1](),d?.abort(),!u.signal.aborted){let t=rr(a,r);e.emit({type:`onBeforeNavigate`,...t}),u.signal.aborted||e.emit({type:`onBeforeLoad`,...t})}if(u.signal.aborted){await Zr(e,n);return}let f=i.href===a.href,p=u,m=e.matchRoutes(a,{_controller:u});Mr(m);let h=l?c[1](m):void 0;if(h?p=l:l?.abort(),u.signal.aborted){J(e,m),await Zr(e,n);return}e._preflight=void 0;let g,_=()=>ei(e,y,f,()=>Kr(e,y),t?.sync,h),v=t?.sync?new Promise(e=>g=e):Promise.resolve().then(_),y=[p,s,a,m,Date.now(),v.then(()=>Zr(e,y))];if(e._tx=y,n){for(let t of e.stores.matches.get()){if(e._tx!==y)break;t.isFetching&&Nr(e,t,!1)}n[0].abort(),J(e,n[3],y[3],!0)}e._tx===y?(e.batch(()=>{e.stores.status.set(`pending`),e.stores.location.set(a)}),(h||!e._committed.length&&m[0]?.status!==`success`&&!m.some(e=>e._notFound))&&Kr(e,y),g?.(_()),await y[5]):(J(e,y[3]),y[3]=[],g?.(),await Zr(e,y))}async function ni(e,t){let n=e.buildLocation(t);for(let t=0;;t++){let r=e._committed,i=new AbortController,a,o,s;try{try{a=e.matchRoutes(n,{_controller:i}),Mr(a),o=(e._preloads??=new Map).set(i,a),s=await Gr(e,n,a,[i,t,r,!0])}finally{o&&(o=o.delete(i),J(e,a)),i.abort()}if(!Er(s))return s[1];if(!o||s.length<3)return;n=s[2]}catch(e){Jt(e)||console.error(e);return}}}var ri=`Error preloading route! ☝️`;function ii(e,t){if(e)return typeof e==`string`?e:e[t]}function ai(e){return e?.scriptFormat??`module`}function oi(e,t,n){let r=si(t),i=ii(n,`script`)??r.crossOrigin;return{...ai(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,fetchPriority:`low`,...i?{crossOrigin:i}:{}}}function si(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function ci(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}let n=new Set;for(let r of t){let t=JSON.stringify(r);n.has(t)||(n.add(t),e.push(r))}}function li(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function ui(e,t,n,r){let i=wr(e),a=[],o=[];for(let e of i)for(let t of Array.isArray(e.scripts)?e.scripts:[]){if(!t)continue;let{children:e,...i}=t;a.push({tag:`script`,attrs:{...i,...r,nonce:n},children:e})}if(t)for(let e of i)for(let r of t.routes[e.routeId]?.scripts??[])o.push({tag:`script`,attrs:{...r.attrs,nonce:n},children:r.children});return[a,o]}function di([e,t],n){return n?[...n.before,...e,...t,n.boundary]:[...e,...t]}var fi=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e,this._branch=void 0;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=Yt:this.parentRoute||Rt();let r=n?Yt:t?.path;r&&r!==`/`&&(r=Bt(r));let i=t?.id||r,a=n?Yt:zt((this.parentRoute.id===`__root__`?``:this.parentRoute.id)+`/`+(i??``));r===`__root__`&&(r=`/`);let o=a===`__root__`?`/`:r===void 0?this.parentRoute.fullPath:zt(this.parentRoute.fullPath+`/`+r);this._path=r,this._id=a,this._fullPath=o,this._to=L(o)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>Xt({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},pi=class extends fi{constructor(e){super(e)}};function mi(e,t){let n=e.stores.location,r=new Set,i,a,o=n=>{Cr(e,t,n)||(i=n,r.forEach(e=>e()))};return[()=>i??n.get(),e=>(r.size||(i=n.get(),a=n.subscribe(o).unsubscribe),r.add(e),()=>{r.delete(e),r.size||(a(),i=void 0)})]}var hi=j.createContext(void 0),gi=j.createContext(void 0),_i=t((e=>{var t=lt();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),vi=t(((e,t)=>{t.exports=_i()})),yi=t((e=>{var t=lt(),n=vi();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),bi=t(((e,t)=>{t.exports=yi()})),xi=bi();function Si(e,t){return e===t}function X(e,t=e=>e,n){let r=n?.compare??Si,i=(0,j.useCallback)(t=>{let{unsubscribe:n}=e.subscribe(t);return n},[e]),a=(0,j.useCallback)(()=>e.get(),[e]);return(0,xi.useSyncExternalStoreWithSelector)(i,a,a,t,r)}function Ci({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0)n=e.nextSub;else{for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}}while(1)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(1)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function wi(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var Ti=[],Ei=0,{link:Di,unlink:Oi,propagate:ki,checkDirty:Ai,shallowPropagate:ji}=Ci({update(e){return e._update()},notify(e){Ti[Ni++]=e,e.flags&=-3},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,Ii(e))}}),Mi=0,Ni=0,Z,Pi=0;function Fi(e){try{++Pi,e()}finally{--Pi||Li()}}function Ii(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=Oi(n,e)}function Li(){if(!(Pi>0)){for(;Mi<Ni;){let e=Ti[Mi];Ti[Mi++]=void 0,e.notify()}Mi=0,Ni=0}}function Ri(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:+!n,get(){return Z!==void 0&&Di(i,Z,Ei),i._snapshot},subscribe(e){let t=wi(e),n={current:!1},r=zi(()=>{i.get(),n.current?(Z=void 0,t.next?.(i._snapshot)):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=Z,o=t?.compare??Object.is;if(n)Z=i,++Ei,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=5);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{Z=a,n&&(i.flags&=-5),Ii(i)}}};return n?(i.flags=17,i.get=function(){let e=i.flags;if(e&16||e&32&&Ai(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&ji(e)}}else e&32&&(i.flags=e&-33);return Z!==void 0&&Di(i,Z,Ei),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(ki(e),ji(e),Li())}},i}function zi(e){let t=()=>{let t=Z;Z=n,++Ei,n.depsTail=void 0,n.flags=6;try{return e()}finally{Z=t,n.flags&=-5,Ii(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:6,notify(){let e=this.flags;e&16||e&32&&Ai(this.deps,this)?t():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,Ii(this)}};return t(),n}var Bi={};function Vi(e,t){let n=j.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=F(n.current,i):i}}function Q(e){let t=N(),n=j.useContext(e.from?gi:hi),r=e.from??n,i=t.stores.getMatchStore(r),a=Vi(e,t),o=X(i,e=>e?a(e):Bi);if(o!==Bi)return o;(e.shouldThrow??!0)&&Rt()}function Hi(e){return Q({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Ui(e){let{select:t,...n}=e;return Q({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function Wi(e){return Q({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function Gi(e){return Q({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}var Ki=j.use,qi=j.useLayoutEffect;function Ji(e){let t=N();return j.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function Yi(e){return Q({...e,select:t=>e.select?e.select(t.context):t.context})}function Xi(...e){let t=j.useRef(e),n=t.current;return e.forEach((e,t)=>{I(n[t],e,!1,!0)||(n[t]=e)}),t.current}function Zi(e,t){e.preloadRoute(t).catch(e=>{console.warn(e),console.warn(ri)})}function Qi(e,t){let n=typeof e==`string`&&kt(e);if(n)return t.has(n)?e:null}function $i(e,t,n,r){let i=Ht(e.pathname,r),a=Ht(t.pathname,r);return(n?.exact?i!==a:!i.startsWith(a)||i.length!==a.length&&i[a.length]!==`/`)||(n?.includeSearch??!0)&&!I(e.search,t.search,!n?.exact,n?.explicitUndefined)?!1:!n?.includeHash||e.hash===t.hash}function ea(e,t,n){let r=N(),i=j.useRef(null),a=j.useCallback(e=>{if(i.current=e,typeof t==`function`)return t(e);t&&(t.current=e)},[t]),{activeOptions:o,to:s,preload:c,preloadDelay:l,disabled:u,target:d,onClick:f,onBlur:p,onFocus:m,onMouseEnter:h,onMouseLeave:g,onTouchStart:_}=e,[v,y,b]=Xi(e.search,e.params,o),x=j.useContext(hi),S=(r.stores._linkScopes??={})[x]??=mi(r,x),[C,w,T]=j.useMemo(()=>{let t=Qi(s,r.protocolAllowlist);if(t!==void 0){let n=[t??void 0];return[e,()=>n]}let n={...e},i,a,o,c=()=>{let e=S[0]();if(e!==i){n._fromLocation=e;let t=r.buildLocation(n),o=ca(t,r,u),s=u||o&&!kt(o)?$i(e,t,b,r.basepath):void 0;a&&a[0]===o&&a[1]===s||(a=[o,s]),i=e}return a};return[n,c,b?.includeHash&&(()=>{let e=c();return e[1]?o??=[e[0],!1]:e})]},[r,S,e.from,e.hash,e.href,s,v,y,e.state,e.mask,e.unsafeRelative,b,u]),[E,ee]=j.useSyncExternalStore(S[1],w,T||w),te=ee===void 0&&E,ne=u||E===void 0,re=j.useRef(!1),D=e.reloadDocument||te||ne?!1:c??r.options.defaultPreload,ie=l??r.options.defaultPreloadDelay??0,ae=j.useCallback(e=>{let t=e?.isIntersecting;t??D===`intent`?ie?i.t??=setTimeout(()=>{i.t=void 0,Zi(r,C)},ie):Zi(r,C):t===!1&&oa(i)},[r,C,i,D,ie]);j.useEffect(()=>{if(!D)return;D===`render`&&!re.current&&(re.current=!0,Zi(r,C));let e=!0,t;return D===`viewport`&&i.current&&typeof IntersectionObserver==`function`&&(t=new IntersectionObserver(t=>{e&&ae(t.pop())},{rootMargin:`100px`}),t.observe(i.current)),()=>{e=!1,t?.disconnect(),oa(i)}},[r,C,D,ae,i]);let O=ia(e,n);if(O.ref=t?a:i,te)return O.href=te,O;let oe=t=>{let n=d??t.currentTarget.getAttribute(`target`);ne||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||n&&n!==`_self`||t.button!==0||(t.preventDefault(),oa(i),r.navigate({...e,_fromLocation:C._fromLocation}))},se=()=>{D===`intent`&&Zi(r,C)},ce=()=>{D===`intent`&&oa(i)};return O.onClick=sa(f,oe),O.onBlur=sa(p,ce),O.onFocus=sa(m,ae),O.onMouseEnter=sa(h,ae),O.onMouseLeave=sa(g,ce),O.onTouchStart=sa(_,se),aa(O,e,ee,E,ne,n)}var ta={},na={className:`active`},ra=new Set([`to`,`params`,`search`,`hash`,`state`,`mask`,`from`,`unsafeRelative`,`reloadDocument`,`preload`,`preloadDelay`,`preloadIntentProximity`,`hashScrollIntoView`,`replace`,`startTransition`,`resetScroll`,`viewTransition`,`ignoreBlocker`,`activeProps`,`inactiveProps`,`activeOptions`,`_asChild`]);function ia(e,t){let n={};for(let r in e)ra.has(r)||r===`type`&&t!==void 0||r===`disabled`&&t===`a`||(n[r]=e[r]);return n}function aa(e,t,n,r,i,a){let{activeProps:o,inactiveProps:s,className:c,style:l,target:u}=t,d=vt(n?o:s,{})??(n?na:ta);Object.assign(e,d),e.href=r,a!==`a`&&(e.disabled=i),e.target=u;let f=d.style;(l||f)&&(e.style=l&&f?{...l,...f}:l||f);let p=d.className;return(c||p)&&(e.className=c?p?`${c} ${p}`:c:p),i&&(e.role=`link`,e[`aria-disabled`]=!0),n&&(e[`data-status`]=`active`,e[`aria-current`]=`page`),e}var oa=e=>{clearTimeout(e.t),e.t=void 0},sa=(e,t)=>e?n=>n.defaultPrevented||(e(n),n.defaultPrevented||t(n)):t;function ca(e,t,n){if(n)return;let r=e.maskedLocation??e,i=r.external?r.publicHref:t.history.createHref(r.publicHref)||`/`;if(!r.external&&i===r.publicHref||!jt(i,t.protocolAllowlist))return i}var la=j.memo(j.forwardRef((e,t)=>{let n=e._asChild||`a`,r=ea(e,t,n),i=typeof e.children==`function`?e.children({isActive:r[`data-status`]===`active`}):e.children;return j.createElement(n,r,i)}),ua);function ua(e,t){let n=0;for(let r in t)if(n++,e[r]!==t[r]&&(!ra.has(r)||!I(e[r],t[r],!1,!0)))return!1;for(let t in e)n--;return n===0}var da=class extends fi{constructor(e){super(e),this.useMatch=e=>Q({...e,from:this.id}),this.useRouteContext=e=>Yi({...e,from:this.id}),this.useSearch=e=>Gi({...e,from:this.id}),this.useParams=e=>Wi({...e,from:this.id}),this.useLoaderDeps=e=>Ui({...e,from:this.id}),this.useLoaderData=e=>Hi({...e,from:this.id}),this.useNavigate=()=>Ji({from:this.fullPath}),this.Link=j.forwardRef((e,t)=>(0,M.jsx)(la,{ref:t,from:this.fullPath,...e}))}};function fa(e){return new da(e)}var pa=class extends pi{constructor(e){super(e),this.useMatch=e=>Q({...e,from:this.id}),this.useRouteContext=e=>Yi({...e,from:this.id}),this.useSearch=e=>Gi({...e,from:this.id}),this.useParams=e=>Wi({...e,from:this.id}),this.useLoaderDeps=e=>Ui({...e,from:this.id}),this.useLoaderData=e=>Hi({...e,from:this.id}),this.useNavigate=()=>Ji({from:this.fullPath}),this.Link=j.forwardRef((e,t)=>(0,M.jsx)(la,{ref:t,from:this.fullPath,...e}))}};function ma(e){return new pa(e)}function ha(e){return e=>{let t=fa(e);return t.isRoot=!1,t}}function ga(e,t){let n,r,i,a=()=>(n||=(i=void 0,e().then(e=>{n=void 0,o.preload=void 0,r=e[t??`default`]}).catch(e=>{n=void 0,i=e})),n),o=function(e){if(i){if(wt(i)&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;if(!sessionStorage.getItem(e))throw sessionStorage.setItem(e,`1`),window.location.reload(),new Promise(()=>{})}throw i}if(!r){if(Ki)Ki(a());else throw a()}return j.createElement(r,e)};return o.preload=a,o}var _a=e=>({createMutableStore:Ri,createReadonlyStore:Ri,batch:Fi}),va=e=>new ya(e),ya=class extends sr{constructor(e){super(e,_a)}};function ba(e,t){let n=e[1];e.length=0,n?.(t)}function xa({t:e}){let t=N(),n=t._rendered??=[];return t.startTransition=(r,i)=>new Promise(a=>{ba(n,!1),n.push(i,a),e(t),j.startTransition(r)}),qi(()=>{let e=t.history.subscribe(t.load);t.updateLatestLocation();let r=t.latestLocation,i=t.buildLocation({to:r.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(L(r.publicHref)!==L(i.publicHref))return t.commitLocation({...i,replace:!0,ignoreBlocker:!0}),e;let a=t.stores.resolvedLocation.get();return a?.href===r.href&&a.state.__TSR_key===r.state.__TSR_key?n.push(t.stores.matches.get(),e=>{e&&t.emit({type:`onRendered`,...rr(a,a)})}):t._tx||t.load({sync:!0}).catch(console.error),e},[t,t.history]),null}var Sa=()=>!0,Ca=()=>!1;function wa({children:e,fallback:t=null}){return(0,M.jsx)(j.Fragment,{children:Ta()?e:t})}function Ta(e=!0){return j.useSyncExternalStore(Ea,Sa,e?Ca:Sa)}function Ea(){return()=>{}}function Da(e){let t=N(),n=`not-found-${X(t.stores.location,e=>e.pathname)}-${X(t.stores.status)}`;return(0,M.jsx)(ht,{getResetKey:()=>n,onCatch:(t,n)=>{if(Jt(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(Jt(t))return e.fallback?.(t);throw t},children:e.children})}function Oa(){return(0,M.jsx)(`p`,{children:`Not Found`})}function ka(e,t,n){return t.options.notFoundComponent?(0,M.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,M.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,M.jsx)(Oa,{})}function Aa(e,t){let n=t?.options.pendingComponent??e.options.defaultPendingComponent;return n?(0,M.jsx)(n,{}):null}var ja=(e,t)=>e[0]===t[0]&&e[1]===t[1],Ma=(e,t,n)=>!t.isRoot||t.options.shellComponent||t.options.wrapInSuspense||n===!1||n===`data-only`||!e.ssr,Na=j.memo(function({routeId:e}){let t=N();return Pa(t,X(t.stores.getMatchStore(e)))});function Pa(e,t){let n=e.routesById[t.routeId],r=Aa(e,n),i=n.options.errorComponent??e.options.defaultErrorComponent,a=n.options.onCatch??e.options.defaultOnCatch,o=n.isRoot?n.options.notFoundComponent??e.options.notFoundRoute?.options.component:n.options.notFoundComponent,s=t.ssr===!1||t.ssr===`data-only`,c=Ma(e,n,t.ssr)&&(n.options.wrapInSuspense??r??(n.options.errorComponent?.preload||s)),l=(0,M.jsx)(Fa,{match:t});s&&(l=(0,M.jsx)(wa,{fallback:r,children:l})),o&&(l=(0,M.jsx)(Da,{fallback:e=>{if(e.routeId??=t.routeId,e.routeId!==t.routeId)throw e;return j.createElement(o,e)},children:l})),i&&(l=(0,M.jsx)(ht,{getResetKey:()=>t,errorComponent:i,onCatch:(e,n)=>{if(Jt(e))throw e.routeId??=t.routeId,e;a?.(e,n)},children:l})),c&&(l=(0,M.jsx)(j.Suspense,{fallback:r,children:l}));let u=n.isRoot&&n.options.shellComponent;return u?(0,M.jsx)(hi.Provider,{value:t.routeId,children:(0,M.jsxs)(u,{children:[l,null]})}):(0,M.jsxs)(hi.Provider,{value:t.routeId,children:[l,null]})}var Fa=j.memo(function({match:e}){let t=N(),n=e.routeId,r=t.routesById[n],i=j.useMemo(()=>{let i=(r.options.remountDeps??t.options.defaultRemountDeps)?.({routeId:n,loaderDeps:e.loaderDeps,params:e._strictParams,search:e._strictSearch});return i?JSON.stringify(i):void 0},[n,e.loaderDeps,e._strictParams,e._strictSearch,r.options.remountDeps,t.options.defaultRemountDeps]),a=j.useMemo(()=>{let e=r.options.component??t.options.defaultComponent;return e?(0,M.jsx)(e,{},i):(0,M.jsx)(Ia,{})},[i,r.options.component,t.options.defaultComponent]);if(e.status===`pending`){if(t.ssr&&!Ma(t,r,e.ssr))return a;if(t._tx)throw t._tx[5];return Aa(t,r)}if(e.status===`notFound`)return ka(t,r,e.error);if(e.status===`error`)throw e.error;return a}),Ia=j.memo(function(){let e=N(),t=j.useContext(hi),n,r,i;{let a=e.stores.getMatchStore(t);[n,r]=X(a,e=>[!!e._notFound,e.error],{compare:ja}),i=X(e.stores.ids,e=>e[e.indexOf(t)+1])}if(n)return ka(e,e.routesById[t],r);if(!i)return null;let a=(0,M.jsx)(Na,{routeId:i});return t===`__root__`?(0,M.jsx)(j.Suspense,{fallback:Aa(e),children:a}):a});function La(){let e=N(),t=e.routesById[Yt],n=Aa(e,t),r=(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(xa,{t:j.useState()[1]}),e.ssr?(0,M.jsx)(Ra,{}):(0,M.jsx)(j.Suspense,{fallback:n,children:(0,M.jsx)(Ra,{})})]});return e.options.InnerWrap?(0,M.jsx)(e.options.InnerWrap,{children:r}):r}function Ra(){let e=N(),t=e._rendered,n=X(e.stores.matches,e=>t[0]??e),r=n[0],i=r?.routeId;qi(()=>{t[0]===n&&ba(t,!0)},[t,n]);let a=i?(0,M.jsx)(Na,{routeId:i}):null;return e.options.disableGlobalCatchBoundary?a:(0,M.jsx)(ht,{getResetKey:()=>r,onCatch:void 0,children:a})}function za({router:e,children:t,...n}){bt(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,M.jsx)(_t.Provider,{value:e,children:t});return e.options.Wrap?(0,M.jsx)(e.options.Wrap,{children:r}):r}function Ba({router:e,...t}){return(0,M.jsx)(za,{router:e,...t,children:(0,M.jsx)(La,{})})}function Va(e,t){if(t)for(let[n,r]of Object.entries(t))n!==`suppressHydrationWarning`&&r!==void 0&&r!==!1&&e.setAttribute(n,typeof r==`boolean`?``:String(r))}function Ha(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e,a=j.useMemo(()=>n===void 0?void 0:{__html:n},[n]);switch(e.tag){case`title`:return(0,M.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,M.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,M.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,M.jsx)(`style`,{...t,dangerouslySetInnerHTML:a,nonce:r});case`script`:return(0,M.jsx)(Ua,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function Ua({attrs:e,children:t,preventScriptHoist:n}){N();let r=Ta(),i=j.useMemo(()=>t===void 0?void 0:{__html:t},[t]),a=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(j.useEffect(()=>{if(!a){if(e?.src){let t=document.createElement(`a`);t.href=e.src;let n=t.href;for(let e of document.scripts)if(e.src===n)return;let r=document.createElement(`script`);return Va(r,e),document.head.appendChild(r),()=>r.remove()}if(typeof t==`string`){let n=typeof e?.type==`string`?e.type:`text/javascript`,r=typeof e?.nonce==`string`?e.nonce:void 0;for(let e of document.scripts){if(e.hasAttribute(`src`))continue;let i=e.getAttribute(`type`)??`text/javascript`,a=e.getAttribute(`nonce`)??void 0;if(e.textContent===t&&i===n&&a===r)return}let i=document.createElement(`script`);return i.textContent=t,Va(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,a]),a&&typeof t==`string`)return(0,M.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:i});if(!r){if(e?.src)return(0,M.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,M.jsx)(`script`,{...e,dangerouslySetInnerHTML:i,suppressHydrationWarning:!0})}return null}function Wa(e,t,n,r){n=wr(n);let i=n.map(e=>e.meta).filter(e=>e!==void 0),a=[],o={},s;for(let e=i.length-1;e>=0;e--){let n=i[e];for(let e=n.length-1;e>=0;e--){let r=n[e];if(r){if(r.title)s||={tag:`title`,children:r.title};else if(`script:ld+json`in r)try{let e=JSON.stringify(r[`script:ld+json`]);a.push({tag:`script`,attrs:{type:`application/ld+json`},children:Pt(e)})}catch{}else{let e=r.name??r.property;if(e){if(o[e])continue;o[e]=!0}a.push({tag:`meta`,attrs:{...r,nonce:t}})}}}}s&&a.push(s),t&&a.push({tag:`meta`,attrs:{property:`csp-nonce`,content:t}}),a.reverse();let c=n.flatMap(e=>e.links??[]).filter(e=>e!==void 0).map(e=>({tag:`link`,attrs:{...e,nonce:t}})),l=e.ssr?.manifest,u=[];l&&(n.forEach(e=>{(l.routes[e.routeId]?.css)?.forEach(e=>{let n=li(e);u.push({tag:`link`,attrs:{rel:`stylesheet`,...n,crossOrigin:ii(r,`stylesheet`)??n.crossOrigin,suppressHydrationWarning:!0,nonce:t}})})}),l.inlineStyle&&u.push({tag:`style`,attrs:{...l.inlineStyle.attrs,nonce:t},children:l.inlineStyle.children,inlineCss:!0}));let d=[];l&&n.forEach(e=>{l.routes[e.routeId]?.preloads?.forEach(e=>{d.push({tag:`link`,attrs:{...oi(l,e,r),nonce:t}})})});let f=n.flatMap(e=>e.styles??[]).filter(e=>e!==void 0).map(({children:e,...n})=>({tag:`style`,attrs:{...n,nonce:t},children:e})),p=n.flatMap(e=>e.headScripts??[]).filter(e=>e!==void 0).map(({children:e,...n})=>({tag:`script`,attrs:{...n,nonce:t},children:e})),m=[];return ci(m,a),m.push(...d),ci(m,c),m.push(...u),ci(m,f),ci(m,p),m}var Ga=e=>{let t=N(),n=t.options.ssr?.nonce,r=j.useCallback(r=>Wa(t,n,r,e),[e,n,t]);return X(t.stores.matches,r,{compare:I})};function Ka(e){let t=Ga(e.assetCrossOrigin),n=N().options.ssr?.nonce;return(0,M.jsx)(M.Fragment,{children:t.map(e=>(0,j.createElement)(Ha,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var qa={suppressHydrationWarning:!0},Ja=()=>{let e=N(),t=e.options.ssr?.nonce,n=n=>{let r=ui(n,e.ssr?.manifest,t,qa);for(let e of r[1])if(typeof e.attrs?.src==`string`){let t=e;t.preventScriptHoist=!0}return r};return Ya(X(e.stores.matches,e=>di(n(e)),{compare:I}))};function Ya(e){return(0,M.jsx)(M.Fragment,{children:e.map((e,t)=>(0,j.createElement)(Ha,{...e,key:`tsr-scripts-${e.tag}-${t}`}))})}var Xa=new Map([[`bold`,j.createElement(j.Fragment,null,j.createElement(`path`,{d:`M222.14,105.85l-80-80a20,20,0,0,0-28.28,0l-80,80A19.86,19.86,0,0,0,28,120v96a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V164h24v52a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V120A19.86,19.86,0,0,0,222.14,105.85ZM204,204H164V152a12,12,0,0,0-12-12H104a12,12,0,0,0-12,12v52H52V121.65l76-76,76,76Z`}))],[`duotone`,j.createElement(j.Fragment,null,j.createElement(`path`,{d:`M216,120v96H152V152H104v64H40V120a8,8,0,0,1,2.34-5.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,216,120Z`,opacity:`0.2`}),j.createElement(`path`,{d:`M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z`}))],[`fill`,j.createElement(j.Fragment,null,j.createElement(`path`,{d:`M224,120v96a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V164a4,4,0,0,0-4-4H108a4,4,0,0,0-4,4v52a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V120a16,16,0,0,1,4.69-11.31l80-80a16,16,0,0,1,22.62,0l80,80A16,16,0,0,1,224,120Z`}))],[`light`,j.createElement(j.Fragment,null,j.createElement(`path`,{d:`M217.9,110.1l-80-80a14,14,0,0,0-19.8,0l-80,80A13.92,13.92,0,0,0,34,120v96a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V158h36v58a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V120A13.92,13.92,0,0,0,217.9,110.1ZM210,210H158V152a6,6,0,0,0-6-6H104a6,6,0,0,0-6,6v58H46V120a2,2,0,0,1,.58-1.42l80-80a2,2,0,0,1,2.84,0l80,80A2,2,0,0,1,210,120Z`}))],[`regular`,j.createElement(j.Fragment,null,j.createElement(`path`,{d:`M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z`}))],[`thin`,j.createElement(j.Fragment,null,j.createElement(`path`,{d:`M216.49,111.51l-80-80a12,12,0,0,0-17,0l-80,80A12,12,0,0,0,36,120v96a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V156h40v60a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V120A12,12,0,0,0,216.49,111.51ZM212,212H156V152a4,4,0,0,0-4-4H104a4,4,0,0,0-4,4v60H44V120a4,4,0,0,1,1.17-2.83l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,212,120Z`}))]]),Za=j.forwardRef((e,t)=>j.createElement(ft,{ref:t,...e,weights:Xa}));Za.displayName=`HouseIcon`;var Qa=new Map([[`bold`,j.createElement(j.Fragment,null,j.createElement(`path`,{d:`M144,180a16,16,0,1,1-16-16A16,16,0,0,1,144,180Zm92-52A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128ZM128,64c-24.26,0-44,17.94-44,40v4a12,12,0,0,0,24,0v-4c0-8.82,9-16,20-16s20,7.18,20,16-9,16-20,16a12,12,0,0,0-12,12v8a12,12,0,0,0,23.73,2.56C158.31,137.88,172,122.37,172,104,172,81.94,152.26,64,128,64Z`}))],[`duotone`,j.createElement(j.Fragment,null,j.createElement(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`}),j.createElement(`path`,{d:`M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z`}))],[`fill`,j.createElement(j.Fragment,null,j.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,168a12,12,0,1,1,12-12A12,12,0,0,1,128,192Zm8-48.72V144a8,8,0,0,1-16,0v-8a8,8,0,0,1,8-8c13.23,0,24-9,24-20s-10.77-20-24-20-24,9-24,20v4a8,8,0,0,1-16,0v-4c0-19.85,17.94-36,40-36s40,16.15,40,36C168,125.38,154.24,139.93,136,143.28Z`}))],[`light`,j.createElement(j.Fragment,null,j.createElement(`path`,{d:`M138,180a10,10,0,1,1-10-10A10,10,0,0,1,138,180ZM128,74c-21,0-38,15.25-38,34v4a6,6,0,0,0,12,0v-4c0-12.13,11.66-22,26-22s26,9.87,26,22-11.66,22-26,22a6,6,0,0,0-6,6v8a6,6,0,0,0,12,0v-2.42c18.11-2.58,32-16.66,32-33.58C166,89.25,149,74,128,74Zm102,54A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z`}))],[`regular`,j.createElement(j.Fragment,null,j.createElement(`path`,{d:`M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z`}))],[`thin`,j.createElement(j.Fragment,null,j.createElement(`path`,{d:`M136,180a8,8,0,1,1-8-8A8,8,0,0,1,136,180ZM128,76c-19.85,0-36,14.36-36,32v4a4,4,0,0,0,8,0v-4c0-13.23,12.56-24,28-24s28,10.77,28,24-12.56,24-28,24a4,4,0,0,0-4,4v8a4,4,0,0,0,8,0v-4.2c18-1.77,32-15.36,32-31.8C164,90.36,147.85,76,128,76Zm100,52A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z`}))]]),$a=j.forwardRef((e,t)=>j.createElement(ft,{ref:t,...e,weights:Qa}));$a.displayName=`QuestionIcon`;var eo=new Map([[`bold`,j.createElement(j.Fragment,null,j.createElement(`path`,{d:`M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm-12-80V80a12,12,0,0,1,24,0v52a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,172Z`}))],[`duotone`,j.createElement(j.Fragment,null,j.createElement(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`}),j.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z`}))],[`fill`,j.createElement(j.Fragment,null,j.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-8,56a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z`}))],[`light`,j.createElement(j.Fragment,null,j.createElement(`path`,{d:`M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm-6-82V80a6,6,0,0,1,12,0v56a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,172Z`}))],[`regular`,j.createElement(j.Fragment,null,j.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z`}))],[`thin`,j.createElement(j.Fragment,null,j.createElement(`path`,{d:`M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm-4-84V80a4,4,0,0,1,8,0v56a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,172Z`}))]]),to=j.forwardRef((e,t)=>j.createElement(ft,{ref:t,...e,weights:eo}));to.displayName=`WarningCircleIcon`;var no=ut(),$=ct(),ro=dt(`group/alert relative grid w-full gap-1 border bg-background px-4 py-3 text-left text-sm after:absolute after:-inset-y-px after:-left-px after:w-0.5 has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2.5 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-card text-card-foreground after:bg-foreground`,destructive:`bg-card text-destructive after:bg-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current`}},defaultVariants:{variant:`default`}});function io(e){let t=(0,$.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,variant:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]!==n||t[5]!==i?(a=k(ro({variant:i}),n),t[4]=n,t[5]=i,t[6]=a):a=t[6];let o;return t[7]!==r||t[8]!==a?(o=(0,M.jsx)(`div`,{"data-slot":`alert`,role:`alert`,className:a,...r}),t[7]=r,t[8]=a,t[9]=o):o=t[9],o}function ao(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=k(`text-sm font-semibold group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,M.jsx)(`div`,{"data-slot":`alert-title`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function oo(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=k(`text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,M.jsx)(`div`,{"data-slot":`alert-description`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function so(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=k(`absolute top-2.5 right-3`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,M.jsx)(`div`,{"data-slot":`alert-action`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function co(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=k(`flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 border-dashed p-12 text-center text-balance`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,M.jsx)(`div`,{"data-slot":`empty`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function lo(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=k(`flex max-w-sm flex-col items-center gap-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,M.jsx)(`div`,{"data-slot":`empty-header`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var uo=dt(`mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0`,{variants:{variant:{default:`bg-transparent`,icon:`flex size-10 shrink-0 items-center justify-center rounded-none bg-muted text-foreground [&_svg:not([class*='size-'])]:size-5`}},defaultVariants:{variant:`default`}});function fo(e){let t=(0,$.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,variant:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`default`:i,o;t[4]!==n||t[5]!==a?(o=k(uo({variant:a,className:n})),t[4]=n,t[5]=a,t[6]=o):o=t[6];let s;return t[7]!==r||t[8]!==o||t[9]!==a?(s=(0,M.jsx)(`div`,{"data-slot":`empty-icon`,"data-variant":a,className:o,...r}),t[7]=r,t[8]=o,t[9]=a,t[10]=s):s=t[10],s}function po(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=k(`mt-0.5 text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,M.jsx)(`div`,{"data-slot":`empty-description`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function mo(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=k(`flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,M.jsx)(`div`,{"data-slot":`empty-content`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ho(){let e=(0,$.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,M.jsxs)(lo,{children:[(0,M.jsx)(fo,{variant:`icon`,children:(0,M.jsx)($a,{className:`size-5`,weight:`light`})}),(0,M.jsx)(`h2`,{className:`font-heading text-2xl leading-none tracking-tight`,children:`Page not found`}),(0,M.jsx)(po,{children:`The link is old, or it never existed.`})]}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,M.jsxs)(co,{"aria-label":`Page not found`,children:[t,(0,M.jsx)(mo,{children:(0,M.jsxs)(mt,{variant:`outline`,render:(0,M.jsx)(`a`,{href:`/`,"aria-label":`Go home`}),children:[(0,M.jsx)(Za,{}),`Go home`]})})]}),e[1]=n):n=e[1],n}function go(e){let t=(0,$.c)(10),n=e.label??`Unavailable`,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,M.jsx)(to,{}),t[0]=r):r=t[0];let i=e.label??`Can’t load this view`,a;t[1]===i?a=t[2]:(a=(0,M.jsx)(ao,{children:i}),t[1]=i,t[2]=a);let o;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,M.jsx)(oo,{children:`The server did not answer. Nothing was lost; try the same view again.`}),t[3]=o):o=t[3];let s;t[4]===e.reset?s=t[5]:(s=(0,M.jsx)(so,{children:(0,M.jsx)(mt,{variant:`destructive`,size:`sm`,className:`max-sm:h-11`,onClick:e.reset,children:`Retry`})}),t[4]=e.reset,t[5]=s);let c;return t[6]!==n||t[7]!==a||t[8]!==s?(c=(0,M.jsx)(`div`,{className:`flex min-h-0 flex-1 items-center justify-center p-6`,children:(0,M.jsxs)(io,{variant:`destructive`,role:`alert`,"aria-label":n,className:`max-w-md`,children:[r,a,o,s]})}),t[6]=n,t[7]=a,t[8]=s,t[9]=c):c=t[9],c}v()(`AuthError`,{cause:O(w()),error:le(b([`invalid_request`,`invalid_client`,`invalid_client_metadata`,`invalid_redirect_uri`,`invalid_grant`,`invalid_target`,`invalid_scope`,`unsupported_grant_type`,`unsupported_response_type`,`access_denied`,`authorization_pending`,`expired_token`,`temporarily_unavailable`])),message:c});var _o=p({id:E,name:E});p({aud:Ne(`deslop`),azp:E,exp:n,iat:n,iss:E,name:E,sid:E,sub:E}),p({name:c,redirects:S(E.check(r(200))).check(r(4))}),p({client_id:E,code:E,code_verifier:E,redirect_uri:E}),p({session:E}),p({access_token:E,expires_in:Pe,refresh_token:E});var vo=c.check(d(e=>Ue(Te(ne(e)),e=>ee([`http:`,`https:`],e.protocol)&&e.username===``&&e.password===``&&e.hash===``),{expected:`an HTTP(S) URL without credentials or a fragment`})).check(d(e=>Ue(Te(ne(e)),e=>e.pathname===`/`&&e.search===``),{expected:`an HTTP(S) origin without a path or query`}));vo.check(d(e=>Ue(Te(ne(e)),e=>e.protocol===`https:`||ee([`localhost`,`127.0.0.1`,`[::1]`],e.hostname)),{expected:`HTTPS outside loopback`})),c.check(se(/^\d{1,5}$/u),d(e=>Ue(C(e),e=>e>=1&&e<=65535),{expected:`a port between 1 and 65535`}));var yo=c.check(se(/^0\.1\.\d+$/u)),bo=`/api/runtime`,xo=p({auth:le(vo),name:c,traces:c,version:yo}),So=`/api/rpc`;p({..._o.fields,signOut:s}),p({config:p({port:n}),name:c,version:yo});function Co(e,t,n,r){return x(oe(we(function*(){let i=`${yield*u}`,a=yield*g,o={attributes:{"scope.run.started_unix_nano":i,"scope.runtime":n,"service.instance.id":i},serviceName:e,serviceVersion:Qe(ye(r,e=>e!==`0.1.0`))};return x(te(Le({resource:o,url:new URL(`/v1/traces`,t).href}),Ae({resource:o,url:new URL(`/v1/logs`,t).href}),ce(g)([...a,`code`,`state`,`request`,`access_token`,`refresh_token`,`id_token`,`client_secret`,`client_assertion`,`code_verifier`,`session`,`token`])),ot([De,Ze]))})),l(e=>Ge(e)?m(Ee):m(ze(`Telemetry is unavailable`))))}function wo(e){return oe(we(function*(){let t=yield*x((yield*rt).get(bo),Xe(ve),Xe(et(xo)),nt(`3 seconds`),be(e=>ze(`Telemetry is off: the runtime config did not load`,e)),ke);return tt(t,{onNone:()=>y,onSome:t=>t.traces===``?y:Co(`${e}-client`,t.traces,`web`,t.version)})}))}var To=de(re()),Eo=new WeakSet,Do=xe(e=>{let t=We(`Web error`,_(e.error),...ie(Oe(e.stack)));return tt(h(To),{onNone:()=>t,onSome:n=>ge(x(t,Je(Se(e.error)),o(`Web.error`,{attributes:{"web.error.source":e.source,"web.route.id":e.route},root:!0}),Ie),n)})});function Oo(e,t){let n=document.querySelector(`#root`);if(T(n))throw TypeError(`Missing application mount element with id "root"`);return{root:n,router:va({context:{},defaultErrorComponent:go,defaultNotFoundComponent:ho,defaultPreload:`intent`,getScrollRestorationKey:t,routeTree:e,scrollRestoration:!0})}}function ko(e){let t=He();function n(n,r,i){if(Fe(n)){if(Eo.has(n))return;Eo.add(n)}t.set(Do,{error:n,route:x(Ye(e.router.state.matches,e=>e.error===n),a(()=>_e(e.router.state.matches)),je(e=>ye(e.routeId,ae)),he(()=>`__root__`)),source:r,stack:i})}e.router.update({defaultOnCatch:(e,t)=>n(e,`route`,t.componentStack)}),(0,no.createRoot)(e.root,{onCaughtError:(e,t)=>n(e,`caught`,t.componentStack),onUncaughtError:(e,t)=>n(e,`uncaught`,t.componentStack)}).render((0,M.jsx)(j.StrictMode,{children:(0,M.jsx)(Ba,{router:e.router})}))}var Ao=x(Ke({pingTimeout:`15 seconds`,retryTransientErrors:!0}),ot(x(Be(at(()=>`${location.origin}${So}`)),ot(qe))),i(Me()));function jo(e){return Ce.addGlobalLayer(x(wo(e),ot(Ze),f(e=>it(fe(e,me))?D:Ve(at(()=>ue(To,$e(e))),()=>at(()=>pe(To,Re(t=>t!==e))))))),Ao}var Mo=ma({shellComponent:e=>(0,M.jsxs)(`div`,{className:`bg-background text-foreground pt-safe-top pr-safe-right pl-safe-left flex h-dvh w-dvw flex-col print:h-auto print:w-auto`,children:[(0,M.jsx)(Ka,{}),(0,M.jsx)(Ja,{}),e.children]})}),No=(function(){let e=typeof document<`u`&&document.createElement(`link`).relList;return e&&e.supports&&e.supports(`modulepreload`)?`modulepreload`:`preload`})(),Po=function(e){return`/`+e},Fo={},Io=function(e){return e.pathname.endsWith(`.css`)},Lo=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},Ro=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=Po(t,n);let r=s(t),i=Io(r);return Lo(Fo,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:No,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},zo=ha(`/cv`)({component:ga(()=>Ro(()=>import(`./cv-XME03RIX.js`),__vite__mapDeps([0,1,2,3,4])),`component`),head:()=>({meta:[{title:`${A.firstName} ${A.lastName} CV`},{content:`${A.firstName} ${A.lastName}`,name:`author`},{content:`${A.title}. ${pt}`,name:`description`}]})}),Bo=ha(`/(home)/`)({component:ga(()=>Ro(()=>import(`./(home)-CnFXo4wj.js`),__vite__mapDeps([5,1,2,3,4])),`component`),head:()=>({meta:[{title:`${A.firstName} ${A.lastName} – ${A.title}`},{content:`${A.firstName} ${A.lastName}`,name:`author`},{content:pt,name:`description`}]})}),Vo={CvRoute:zo.update({id:`/cv`,path:`/cv`,getParentRoute:()=>Mo}),homeIndexRoute:Bo.update({id:`/(home)/`,path:`/`,getParentRoute:()=>Mo})};ko(Oo(Mo._addFileChildren(Vo)._addFileTypes()));export{ht as i,bi as n,vi as r,jo as t};
|