@deslop/portfolio 0.1.1248 → 0.1.1250

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deslop/portfolio",
3
- "version": "0.1.1248",
3
+ "version": "0.1.1250",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/MP281X/deslop.git",
@@ -17,6 +17,7 @@
17
17
  "sideEffects": false,
18
18
  "imports": {
19
19
  "#lib/*": "./src/lib/*",
20
+ "#routeTree.gen.ts": "./src/routeTree.gen.ts",
20
21
  "#routes/*": "./src/routes/*",
21
22
  "#rpcs/*": "./src/rpcs/*",
22
23
  "#services/*": "./src/services/*"
@@ -30,5 +31,5 @@
30
31
  "engines": {
31
32
  "node": ">=26"
32
33
  },
33
- "fingerprint": "6cc981e73bb889a2a3faefbd84c22a57a231fc93558eeae5db038d2aa01ba625"
34
+ "fingerprint": "fce687ac3afeed8c26ddbbcda4fde3eec03dab9946d5181db82f1af8da6cbf0f"
34
35
  }
@@ -1 +0,0 @@
1
- import{n as e}from"./rolldown-runtime-WkwZ5CU-.js";import{a as t,i as n,o as r,r as i,t as a}from"./react-CDnnZf73.js";import{$ as o,At as s,Bt as c,C as l,Dt as u,E as d,Et as f,Ft as p,G as m,Gt as h,It as g,K as _,L as v,Lt as y,Mt as b,Nt as x,O as S,Ot as C,P as w,Pt as T,Q as E,R as D,Rt as ee,S as O,St as k,U as A,Vt as j,W as M,Wt as te,Xt as N,Z as P,Zt as F,a as I,b as ne,c as re,ct as ie,d as ae,dt as oe,f as se,ft as L,gt as R,h as z,i as B,in as V,it as ce,j as le,jt as ue,k as de,m as fe,mt as pe,nn as me,nt as he,pt as ge,q as _e,qt as ve,rn as ye,tt as be,ut as xe,x as Se,zt as Ce}from"./effect-DvaDSoKJ.js";import{A as we,C as Te,D as Ee,E as De,I as Oe,M as ke,N as Ae,O as H,S as je,T as Me,_ as Ne,a as Pe,b as U,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,v as Ze,w as W,x as Qe,y as G}from"./profile-CuzQsOR6.js";import{n as $e,r as et,t as tt}from"./index-X1lFOw1z.js";var nt={name:`arrow-up-right`,size:24,node:[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]};nt.node;var rt=Oe(nt),it={name:`mouse-pointer-2`,size:24,node:[[`path`,{d:`M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z`,key:`edeuup`}]]};it.node;var at=Oe(it),ot={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};ot.node;var st=Oe(ot);function K(e){return e?.ownerDocument||document}var q=e(r(),1),ct=e(n(),1);function lt(e){let t=ct.unstable_scheduleCallback(4,e);return()=>ct.unstable_cancelCallback(t)}var ut=q.createContext(z({scheduleTask:lt,defaultIdleTTL:400})),dt=new WeakMap,ft=0,pt=new Set;function mt(e){ft++;try{return e()}finally{ft--}}function ht(e){if(ft===0)return e();pt.size===0&&queueMicrotask(gt),pt.add(e)}function gt(){for(let e of pt)pt.delete(e),e()}function _t(e,t){let n=dt.get(e);n===void 0&&(n=new WeakMap,dt.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,()=>ht(n));return()=>{i--,pt.delete(n),r()}},snapshot(){return mt(()=>e.get(t))},getServerSnapshot(){return(i===0||a===void 0)&&(a={value:mt(()=>ae(t,e))}),a.value}};return n.set(t,o),o}function vt(e,t){let n=_t(e,t);return q.useEffect(gt),q.useSyncExternalStore(n.subscribe,n.snapshot,n.getServerSnapshot)}function yt(e,t){q.useEffect(()=>e.mount(t),[t,e])}function bt(e,t,n){return n?.mode===`promise`||n?.mode===`promiseExit`?q.useCallback(r=>{e.set(t,r);let i=he(fe(e,t,{suspendOnWaiting:!0}));return n.mode===`promise`?i.then(xt):i},[e,t,n.mode]):q.useCallback(n=>{e.set(t,typeof n==`function`?n(e.get(t)):n)},[e,t])}var xt=e=>{if(k(e))return e.value;throw f(e.cause)},St=(e,t)=>{let n=q.useContext(ut);return yt(n,e),bt(n,e,t)},Ct={suspendOnWaiting:new WeakMap,default:new WeakMap};function wt(e,t,n){let r=n?Ct.suspendOnWaiting:Ct.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 Tt(e,t,n){let r=vt(e,t);if(r._tag===`Initial`||n&&r.waiting)throw wt(e,t,n);return r}var Et=(e,t)=>{let n=Tt(q.useContext(ut),e,t?.suspendOnWaiting??!1);if(n._tag===`Failure`&&!t?.includeFailure)throw f(n.cause);return n},Dt=/^(?:Node\.js\/|Deno\/|Bun\/|Cloudflare-Workers)/;function Ot(){return typeof navigator>`u`||Dt.test(String(navigator.userAgent))}function kt(e){let t=``,n=e;if(n==null){if(Ot())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 At(e,t=kt()){return e===`Mod`?t===`mac`?`Meta`:`Control`:e}var jt=[`Control`,`Alt`,`Shift`,`Meta`],Mt={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 Nt={Backquote:"`",Backslash:`\\`,BracketLeft:`[`,BracketRight:`]`,Comma:`,`,Equal:`=`,Minus:`-`,Period:`.`,Quote:`'`,Semicolon:`;`,Slash:`/`};function Pt(e){return/^\p{Letter}$/u.test(e)}function J(e){if(!e)return``;if(Pt(e)){let t=e.toUpperCase();return t.length===1?t:e}return e===` `?`Space`:e}function Ft(e,t){let n=!1;try{n=t!==`mac`&&typeof e.getModifierState==`function`&&e.getModifierState(`AltGraph`)}catch{}let r=(e.key||``).normalize(`NFC`),i=J(r),a=t===`windows`&&n&&!Lt({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`}}function It(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(Nt,e))return Nt[e];let t={NumpadAdd:`+`,NumpadSubtract:`-`,NumpadMultiply:`*`,NumpadDivide:`/`,NumpadDecimal:`.`,NumpadEnter:`Enter`,Space:`Space`};return Object.hasOwn(t,e)?t[e]:void 0}function Lt(e){return e.altGraph?e.key===`Dead`||Rt(e.key)&&!/^[A-Za-z0-9]$/.test(e.key):!1}function Rt(e){return e!==``&&Array.from(e).length===1}function zt(e){let t=e.toLowerCase();return Object.hasOwn(Mt,t)?Mt[t]:void 0}function Bt(e){return/^[A-Za-z][A-Za-z0-9]*$/.test(e)}function Vt(e){return e.startsWith(`[`)&&e.endsWith(`]`)&&Bt(e.slice(1,-1))?e.slice(1,-1):void 0}function Ht(e){if(!e.endsWith(`+`))return e.split(`+`);let t=e.slice(0,-1).split(`+`);return t.at(-1)===``&&t.pop(),t.push(`+`),t}function Ut(e){return/^[A-Za-z]$/.test(e)}function Wt(e){return/^\p{Script_Extensions=Latin}$/u.test(e)}var Gt;function Kt(e,t){return e===t?!0:/^\p{Letter}$/u.test(e)&&/^\p{Letter}$/u.test(t)?(Gt??=new Intl.Collator(void 0,{sensitivity:`accent`}),Gt.compare(e,t)===0):!1}function qt(e){if(/^\[.*\]$/s.test(e.trim()))throw Error(`Logical key must not contain a bracketed physical code. Use the code field instead.`)}function Jt(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:jt.filter(e=>a[e])}}function Yt(e){return Array.isArray(e)}function Xt(e){return Yt(e)&&e.length===1?e[0]:e}function Zt(e,t){let n=Ht(e),r=new Set,i=``;for(let e=0;e<n.length;e++){let a=n[e].trim();if(e===n.length-1)i=J(a);else{let e=zt(a);if(e){let n=At(e,t);r.add(n)}else n.length===1&&(i=J(a))}}!i&&n.length>0&&(i=J(n[n.length-1].trim()));let a=Vt(i);return Jt(a===void 0?{key:i}:{code:a},r.has(`Control`),r.has(`Shift`),r.has(`Alt`),r.has(`Meta`))}function Qt(e,t){e.code===void 0&&qt(e.key);let n=e.ctrl??!1,r=e.shift??!1,i=e.alt??!1,a=e.meta??!1;return e.mod&&(At(`Mod`,t)===`Control`?n=!0:a=!0),Jt(e.code===void 0?{key:J(e.key)}:{code:e.code},n,r,i,a)}function $t(e,t){return typeof e==`string`?Zt(e,t):Qt(e,t)}function en(e,t){e.code===void 0&&qt(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 jt)e.modifiers.includes(t)&&r.push(t);return r.push(e.code===void 0?J(e.key):`[${e.code}]`),r.join(`+`)}function tn(e,t=kt()){return Array.isArray(e)?e.map(e=>$t(e,t)):$t(e,t)}function nn(e,t=kt()){if(Array.isArray(e)){let n=e.map(e=>en($t(e,t),t));return n.length===1?n[0]:n}return en($t(e,t),t)}function rn(e){return zt(e)!==void 0}function an(e){return Array.isArray(e)?e.map(e=>on(e)):on(e)}function on(e){e.code===void 0&&qt(e.key);let t=[];for(let n of jt)e.modifiers.includes(n)&&t.push(n);return t.push(e.code===void 0?e.key:`[${e.code}]`),t.join(`+`)}function sn(e,t,n=kt()){let r=typeof t==`string`?tn(t,n):t,i=Ft(e,n),a={matched:!1,score:0};if(i.isComposing||i.altGraph&&(r.ctrl||r.alt)||i.altGraph&&!Lt(i))return a;if(r.code!==void 0)return i.altGraph||!ln(i,r,!1)?a:i.code===r.code?l(`code`,3):a;let o=Kt(i.key,r.key),s=o&&Rt(i.key)&&!/^\p{Letter}$/u.test(i.key)&&!r.shift;if(o&&ln(i,r,s))return l(`key`,s?2:3);if(!cn(i)||i.altGraph||!ln(i,r,!1))return a;let c=It(i.code);return c!==void 0&&Kt(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 cn({key:e,code:t,ctrl:n,meta:r,shift:i,alt:a}){return e!==`Dead`&&!Rt(e)?!1:t.startsWith(`Digit`)?!0:Ut(e)?!1:/^[!-~]$/.test(e)?i:!Wt(e)||a?!0:(n||r)&&!t.startsWith(`Key`)}function ln(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 un(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:Kt(e.key,t.key))}var dn=`global`,fn={capture:!1,preventDefault:!0,stopPropagation:!0,eventType:`keydown`,enabled:!0,ignoreInputs:`auto`,conflictBehavior:`warn`,scope:dn};function pn(...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 mn(e){return!!(e.code||e.key)}function hn(e){return!(e.ctrl||e.meta||e.key===`Escape`||e.code===`Escape`)}function gn(e,t,n,r){if(n!==`allow`&&n!==`warn`){if(n===`error`)throw Error(`'${t}' is already registered. Use conflictBehavior: 'replace' to replace the existing handler, or conflictBehavior: 'allow' to allow multiple registrations.`);r(e)}}function _n(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]?_n(n[e],r[e]):Object.is(n[e],r[e]))}function vn(e,t,n=kt()){let r=Yt(e)?e:[e],i=Yt(t)?t:[t];return r.length===i.length&&r.every((e,t)=>un(tn(e,n),tn(i[t],n)))}var yn=1e3;function bn(e){return e?.nodeType===1}function xn(e){return`document`in e||e.nodeType===9}function Sn(e){return`document`in e?e.document:e.ownerDocument??e}function Cn(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t}function wn(e){return e.assignedSlot??e.parentNode??(e.host||null)}function Tn(e){if(xn(e))return!0;for(let t=Cn(e.ownerDocument);t;t=wn(t))if(t===e)return!0;return!1}var En=[`ArrowUp`,`ArrowDown`],Dn=[`ArrowLeft`,`ArrowRight`],On=[`Enter`],kn=[`Space`],An=[`Enter`,`Space`],jn=`typeahead`,Mn=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Home`,`End`,`Enter`,`Space`,jn],Nn=[`ArrowUp`,`ArrowDown`,`Home`,`End`,`Enter`,`Space`,jn],Pn=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Home`,`End`,`PageUp`,`PageDown`,`Enter`,`Space`],Fn=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Space`],In=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Home`,`End`,`PageUp`,`PageDown`],Ln=[`ArrowUp`,`ArrowDown`,`Home`,`End`,`PageUp`,`PageDown`],Rn=[`ArrowLeft`,`ArrowRight`,`Home`,`End`],zn={button:An,submit:An,reset:An,image:An,color:An,file:An,checkbox:kn,radio:Fn,range:In};function Bn(e){return e.getAttribute(`role`)?.trim().split(/\s+/)[0]}function Vn(e){if(!bn(e))return!1;switch(e.localName){case`input`:{let t=e;return!zn[t.type]&&!t.readOnly}case`textarea`:return!e.readOnly;case`select`:return!0}let t=Bn(e);return t===`textbox`||t===`searchbox`||e.isContentEditable}function Hn(e){return e.localName.includes(`-`)?e.constructor.formAssociated===!0?!e.hasAttribute(`role`):!e.hasAttribute(`tabindex`):!1}function Un(e){let t=e.getAttribute(`aria-orientation`);switch(Bn(e)){case`button`:case`tab`:case`option`:case`treeitem`:case`menuitem`:case`menuitemcheckbox`:case`menuitemradio`:return An;case`link`:return On;case`checkbox`:case`switch`:case`radio`:return kn;case`menu`:case`menubar`:case`tree`:return Mn;case`listbox`:return[...t===`horizontal`?Dn:En,`Home`,`End`,`Enter`,`Space`,jn];case`combobox`:return Nn;case`tablist`:return[...t===`vertical`?En:Dn,`Home`,`End`,`Enter`,`Space`];case`toolbar`:return[...t===`vertical`?En:Dn,`Home`,`End`];case`grid`:case`treegrid`:return Pn;case`radiogroup`:return Fn;case`slider`:return In;case`spinbutton`:return Ln}switch(e.localName){case`button`:case`summary`:return An;case`input`:return zn[e.type]??Rn;case`textarea`:return In;case`a`:case`area`:return e.hasAttribute(`href`)?On:[]}return[]}function Wn(e,t,n){if(t.ctrlKey||t.metaKey||t.altKey)return!1;let r=Un(e);return n===`Enter`||n===`Space`?!t.shiftKey&&r.includes(n):r.includes(n)||r.includes(jn)&&/^.$/u.test(t.key)}function Gn(e,t,n){let r=Cn(t),i=[];for(let e=r;e;e=wn(e))bn(e)&&i.push(e);let a=e.composedPath()[0];bn(a)&&!i.includes(a)&&(i=e.composedPath().filter(bn));let o=i.findIndex(e=>n(e)||e===r&&Hn(e));return{elements:i,index:o}}function Kn({elements:e,index:t},n){return t>=0&&(xn(n)||t<e.indexOf(n))}var qn=new WeakMap;function Jn(e,t){if(e.type!==`keydown`||e.key!==`Escape`)return!1;let n=qn.get(e);if(!n){let r=[];for(let e of[`dialog:modal`,`:popover-open`])try{r.push(...Sn(t).querySelectorAll(e))}catch{}n=r.filter(e=>e.popover!==`manual`),qn.set(e,n)}return n.some(e=>{for(let n=xn(t)?null:t;n;n=wn(n))if(n===e)return!1;return!0})}var Yn=new WeakMap;function Xn(e,t){let n=Yn.get(e);if(!n){let r=J(e.key);n=Gn(e,Sn(t),t=>Vn(t)||Wn(t,e,r)),Yn.set(e,n)}return Kn(n,t)}var Zn=new Set;function Qn(e){for(let t of e)Zn.add(t);for(let e of Zn)Zn.delete(e),e()}function $n(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,Qn(n))},subscribe(e){let r=()=>{typeof e==`function`?e(t):e.next?.(t)};return n.add(r),{unsubscribe(){n.delete(r),Zn.delete(r)}}}}}var er=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}},tr={current:null},nr=new Set,rr=new WeakSet,ir=new Map,ar=e=>e.code||`key:${e.key}`;function or(e){return nr.size>0||rr.has(e)||ir.has(ar(e))}function sr(e,t){return e.enabled===!1?`disabled`:t?.isScopeActive(e.scope)===!1?`suspended`:`active`}var cr=0;function lr(e,t){return typeof e==`string`?e:an(t)}function ur(){return`hotkey_${++cr}`}function dr(e){let t=e;return{id:ur(),unregister:()=>{},get callback(){return t},set callback(e){t=e},setOptions:()=>{},get isActive(){return!1}}}function fr(e){return{...fn,...e===`sequence`?{timeout:yn}:{requireReset:!1}}}function pr(e,t){if(e===`chord`){let{timeout:e,...n}=t;return n}let{requireReset:n,...r}=t;return r}function mr({target:e,options:t}){if(!t.afterDelegatedHandlers||t.capture||xn(e))return e;let n=e.getRootNode();for(;`host`in n&&n.mode===`open`;)n=n.host.getRootNode();return n}function hr(e){return!!e.afterDelegatedHandlers&&!e.capture}function gr(e){return e.kind===`chord`?[e.parsedChord]:e.parsedSequence}function _r(e){let{ignoreInputs:t=`auto`}=e.options;return t===`auto`?hn(gr(e)[0]):t}function vr(e,t){return e.length===t.length&&e.every((e,n)=>un(e,t[n]))}function yr(e){return Yt(e)?e.join(` `):e}var br=class e{registrations=$n(new Map);appHotkeys=$n(null);scopes=$n({active:[],exclusive:null,allowed:[],suspended:[]});#e;#t=new Set;#n=0;#r=[];#i=null;#a=new er((...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=kt()}static getInstance(){return tr.current??=new e}static resetInstance(){tr.current?.destroy(),tr.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=dn){return this.#i?this.#i.has(e):e===`global`||this.#r.includes(e)}#f(e=dn){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=[dn,...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 sr(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)||_r(r)&&Xn(e,r.target))&&(r.kind===`chord`?[r.parsedChord]:[r.parsedSequence[r.currentIndex],r.parsedSequence[0]]).some(t=>sn(e,t,r.options.platform).matched))return!0;return!1}#g(){this.registrations.setState(e=>new Map(e))}register(e,t,n={}){let r=Xt(e);if(r==null||Yt(r)&&r.length===0||typeof document>`u`&&!n.target)return dr(t);let i=ur(),a=n.platform??this.#e,o=n.target??document,s=Yt(r),c=s?`sequence`:`chord`,l={id:i,callback:t,options:{...fr(c),...pr(c,pn(n)),platform:a},target:o,triggerCount:0,hasFired:!1},u;if(s){let e=tn(r,a);u={...l,kind:`sequence`,hotkey:r.map((t,n)=>lr(t,e[n])),parsedSequence:e,currentIndex:0,lastKeyTime:0}}else{let e=tn(r,a);u={...l,kind:`chord`,hotkey:lr(r,e),parsedChord:e}}if(!(u.kind===`sequence`?u.parsedSequence:[u.parsedChord]).every(mn))return dr(t);let d=this.#N(u);d&&gn(d.id,yr(u.hotkey),n.conflictBehavior??`warn`,e=>this.#_(e));let f=mr(u);this.#a.add(f,!!u.options.capture,i,hr(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={...fr(n.kind),platform:n.options.platform},a={...n.options},o=Object.entries(pr(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(_n(n.options,a))return t;let s=!!n.options.capture,c=p.#o.get(i)??n.target,l=mr({target:n.target,options:a});return s!==!!a.capture||c!==l?(p.#a.remove(c,s,i),p.#a.add(l,!!a.capture,i,hr(a)),p.#o.set(i,l)):hr(a)&&!hr(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(or(e)||this.#s.get(e))return;let a=new Map,o=0,s=!1,c=J(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=sn(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||_r(r)&&Xn(e,t))){if(g??=sn(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||J(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(or(e)||Ft(e).isComposing||rn(J(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(xn(a)?Sn(a):a)&&!(_r(i)&&Xn(e,a))&&sn(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(or(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||Ft(e).isComposing||rn(J(e.key)))return;let a=Date.now(),o=!1,s=new Map,c=0;for(let r of i){if(!this.#m(r)||_r(r)&&Xn(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=sn(e,l,r.options.platform),d=r.currentIndex+1;!u.matched&&r.currentIndex>0&&(u=sn(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 Jn(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=gr(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&&vr(gr(n),t))return n;return null}#P(e,t){let n=e.parsedChord,r=J(t.key);return e.activeMatch?.code&&t.code===e.activeMatch.code?!0:(n.code===void 0?Kt(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(vn(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)&&Tn(n.target)&&(t===void 0?vn(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 xr(){return br.getInstance()}function Sr(e){return typeof e==`object`&&!!e&&e[`~appHotkey`]===!0}function Cr(e,t){return t?.get(e.id)??e}function wr(e){return{...e.options,...e.scope!==void 0&&{scope:e.scope},meta:e.meta,appHotkeyId:e.id}}function Tr(e={}){let t=new Map;return{update(n,r={}){let i=[];n.forEach((t,n)=>{let a=pn(r,t.options),o={...fn,...a,...e,target:`target`in a?a.target??null:typeof document>`u`?null:document,platform:a.platform??kt()};if(!o.target||!t.hotkey||Yt(t.hotkey)&&t.hotkey.length===0)return;let s=tn(t.hotkey,o.platform);if(!(Array.isArray(s)?s:[s]).every(mn))return;let c=nn(s,o.platform);Yt(c)?delete o.requireReset:delete o.timeout,i.push({key:`${n}:${Yt(c)?c.join(` `):c}`,callback:t.callback,options:o,register:()=>xr().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 Er(e,t={}){return e.map(e=>{let n=e.hotkey,r={};if(Sr(n)){let e=Cr(n,t.appHotkeysStore);r=wr(e),n=e.hotkey??[]}let{target:i,...a}=pn(t.defaults,r,t.commonOptions,e.options),o=i===void 0?void 0:t.resolveTarget?t.resolveTarget(i):i;return{hotkey:n,callback:e.callback,options:o===void 0?a:{...a,target:o}}})}var Dr=(0,q.createContext)(null);function Or(){return(0,q.useContext)(Dr)}function kr(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 Ar=$n(null);function jr(){let e=Or()?.appHotkeysStore??null;return kr(e?.store??Ar,e=>e),e}function Mr(e){return typeof e==`object`&&!!e&&`current`in e}function Nr(e){return Mr(e)?e.current:e}function Pr(e,t={}){let n=Or()?.defaultOptions.hotkey,r=jr(),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??=Tr({afterDelegatedHandlers:!0});let{hotkeys:e,...t}=i.current;a.current.update(Er(e,{...t,resolveTarget:Nr}))}),(0,q.useEffect)(()=>()=>{a.current?.destroy(),a.current=null},[])}var Fr=q.createContext(void 0);function Ir(e){let t=q.useContext(Fr);if(!e&&t===void 0)throw Error(Ze(27));return t}var Lr=`data-starting-style`,Rr=`data-ending-style`,zr={[Lr]:``},Br={[Rr]:``},Vr={transitionStatus(e){return e===`starting`?zr:e===`ending`?Br:null}},Hr=`data-open`,Ur=`data-closed`,Wr=`data-anchor-hidden`,Gr={[Hr]:``},Kr={[Ur]:``},qr={[Wr]:``},Jr={open(e){return e?Gr:Kr},anchorHidden(e){return e?qr:null}},Yr={...Jr,...Vr},Xr=q.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,s=Ir(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`),d={open:c,transitionStatus:s.useState(`transitionStatus`)};return Ie(`div`,e,{state:d,ref:[s.context.backdropRef,t],stateAttributesMapping:Yr,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})});function Zr(e,t,n,r){let i=!1,a=!1,o=r??qe;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 Qr=`none`,$r=`trigger-press`,ei=`outside-press`,ti=`close-press`,ni=`focus-out`,ri=`escape-key`,ii=`imperative-action`,ai=q.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,...s}=e,c=Ir(),l=c.useState(`open`),{getButtonProps:u,buttonRef:d}=Ne({disabled:a,native:o}),f={disabled:a};function p(e){l&&c.setOpen(!1,Zr(ti,e.nativeEvent))}return Ie(`button`,e,{state:f,ref:[t,d],props:[{onClick:p},s,u]})});function oi(){let[,e]=q.useState({});return q.useCallback(()=>{e({})},[])}var si=0;function ci(e,t=`mui`){let n=q.useRef(void 0),r=oi(),i=e??n.current;return q.useEffect(()=>{n.current??(si+=1,n.current=`${t}-${si}`,e??r())},[e,t,r]),i}var li=je.useId;function ui(e,t){if(li!==void 0){let n=li();return e??(t?`${t}-${n}`:n)}return ci(e,t)}function di(e){return ui(e,`base-ui`)}function Y(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function fi(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}function pi(e){let t=Qe(mi,e).current;return t.next=e,G(t.effect),t}function mi(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function hi(e){q.useEffect(e,Le)}var gi=0,_i=class e{static create(){return new e}currentId=gi;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=gi,t()},e)}isStarted(){return this.currentId!==gi}clear=()=>{this.currentId!==gi&&(clearTimeout(this.currentId),this.currentId=gi)};disposeEffect=()=>this.clear};function vi(){let e=Qe(_i.create).current;return hi(e.disposeEffect),e}function yi(){return typeof navigator>`u`?{userAgent:``,platform:``,maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:bi,platform:xi,maxTouchPoints:Si}=yi(),Ci=bi.toLowerCase(),wi=xi.toLowerCase(),Ti=/^i(os$|p)/.test(wi)||wi===`macintel`&&Si>1,Ei=`android`,Di=wi===Ei||Ci.includes(Ei),Oi=!Ti&&wi.startsWith(`mac`);wi.startsWith(`win`),!Di&&/^(linux|chrome os)/.test(wi);var ki=Oi||Ti,Ai=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`);!Ai&&Ci.includes(`firefox`),!Ai&&Ci.includes(`chrom`);var ji=ki,Mi=/jsdom|happydom/.test(Ci),Ni=null;globalThis.requestAnimationFrame;var Pi=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)}},Fi=class e{static create(){return new e}static request(e){return Pi.request(e)}static cancel(e){return Pi.cancel(e)}currentId=Ni;request(e){this.cancel(),this.currentId=Pi.request(()=>{this.currentId=Ni,e()})}cancel=()=>{this.currentId!==Ni&&(Pi.cancel(this.currentId),this.currentId=Ni)};disposeEffect=()=>this.cancel};function Ii(){let e=Qe(Fi.create).current;return hi(e.disposeEffect),e}var Li={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},Ri={...Li,position:`fixed`,margin:0,top:0,left:0};({...Li});var X=t(),zi=q.forwardRef(function(e,t){let[n,r]=q.useState();G(()=>{ji&&Ai&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,X.jsx)(`span`,{...e,ref:t,style:Ri,"aria-hidden":!n||void 0,...i,"data-base-ui-focus-guard":``})});function Bi(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&&ke(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Vi(e,t){let n=e;for(;n;){if(Ee(n)&&n.matches(t))return n;n=n.assignedSlot??n.parentNode??(ke(n)?n.host:null)}return null}function Hi(e){return`composedPath`in e?e.composedPath()[0]??e.target:e.target}var Ui=`data-base-ui-focusable`;function Wi(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 Gi(e){return e.matches(`html,body`)}function Ki(e){return H(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function qi(e){return e?e.getAttribute(`role`)===`combobox`&&Ki(e):!1}function Ji(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function Yi(e){e.preventDefault(),e.stopPropagation()}function Xi(e){return`nativeEvent`in e}function Zi(e){return e.pointerType===``&&e.isTrusted?!0:Di&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function Qi(e){return Mi?!1:!Di&&e.width===0&&e.height===0||e.type===`pointerdown`&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`&&(Di||e.buttons===0)||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function $i(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}function ea(e){return e.visibility===`hidden`||e.visibility===`collapse`}function ta(e,t=e?Te(e):null){return!e||!e.isConnected||!t||ea(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var na=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function ra(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return ke(n)?n.host:null}function ia(e){for(let t of Array.from(e.children))if(W(t)===`summary`)return t;return null}function aa(e,t){let n=ia(t);return!!n&&(e===n||Z(n,e))}function oa(e){let t=e?W(e):``;return e!=null&&e.matches(na)&&(t!==`summary`||e.parentElement!=null&&W(e.parentElement)===`details`&&ia(e.parentElement)===e)&&(t!==`details`||ia(e)==null)&&(t!==`input`||e.type!==`hidden`)}function sa(e){if(!oa(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=ra(t)){let n=t!==e,r=W(t)===`slot`;if(t.hasAttribute(`inert`)||n&&W(t)===`details`&&!t.open&&!aa(e,t)||t.hasAttribute(`hidden`)||!r&&!ca(t,n))return!1}return!0}function ca(e,t){let n=Te(e);return t?n.display!==`none`:ta(e,n)}function la(e){let t=e.tabIndex;if(t<0){let t=W(e);if(t===`details`||t===`audio`||t===`video`||H(e)&&e.isContentEditable)return 0}return t}function ua(e){if(W(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function da(e,t){let n=ua(e);if(!n)return!0;let r=t.find(e=>{let t=ua(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=ua(e);return t?.name===n.name&&t.form===n.form})===n}function fa(e){if(H(e)&&W(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return H(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function pa(e,t){fa(e).forEach(e=>{oa(e)&&t.push(e),pa(e,t)})}function ma(e,t,n){fa(e).forEach(e=>{H(e)&&e.matches(t)&&n.push(e),ma(e,t,n)})}function ha(e){return sa(e)&&la(e)>=0}function ga(e){let t=[];return pa(e,t),t.filter(sa)}function _a(e){let t=ga(e);return t.filter(e=>la(e)>=0&&da(e,t))}function va(e,t){let n=_a(e),r=n.length;if(r===0)return;let i=Bi(K(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function ya(e){return va(K(e).body,1)||e}function ba(e){return va(K(e).body,-1)||e}function xa(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!Z(n,r)}function Sa(e){_a(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function Ca(e){let t=[];ma(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 wa(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...wa(e,t.id,n)])}function Ta(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 Ea(e){return`data-base-ui-${e}`}var Da=0;function Oa(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(Da);function a(){(!i||i())&&e?.focus({preventScroll:n})}if(r)return a(),We;let o=requestAnimationFrame(a);return Da=o,()=>{Da===o&&(cancelAnimationFrame(o),Da=0)}}var ka=`data-base-ui-inert`,Aa=new WeakMap,ja=new WeakSet,Ma=new WeakMap,Na=0;function Pa(e){return e?ke(e)?e.host:Pa(e.parentNode):null}var Fa=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=Pa(t);return e.contains(n)?n:null}).filter(e=>e!=null),Ia=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},La=(e,t,n)=>{let r=[],i=e=>{e&&!n.has(e)&&Array.from(e.children).forEach(e=>{W(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function Ra(e,t,n,{mark:r=!0}){let i=Fa(t,e),a=r?La(t,Ia(i),new Set(i)):[],o=[],s=[];if(n){let e=Fa(t,Array.from(t.querySelectorAll(`[aria-live]`))),n=i.concat(e);La(t,Ia(n),new Set(n)).forEach(e=>{let t=e.getAttribute(`aria-hidden`),n=t!==null&&t!==`false`,r=(Aa.get(e)||0)+1;Aa.set(e,r),o.push(e),r===1&&n&&ja.add(e),n||e.setAttribute(`aria-hidden`,`true`)})}return r&&a.forEach(e=>{let t=(Ma.get(e)||0)+1;Ma.set(e,t),s.push(e),t===1&&e.setAttribute(ka,``)}),Na+=1,()=>{o.forEach(e=>{let t=(Aa.get(e)||0)-1;Aa.set(e,t),t||(ja.has(e)||e.removeAttribute(`aria-hidden`),ja.delete(e))}),r&&s.forEach(e=>{let t=(Ma.get(e)||0)-1;Ma.set(e,t),t||e.removeAttribute(ka)}),--Na,Na||(Aa=new WeakMap,ja=new WeakSet,Ma=new WeakMap)}}function za(e,t={}){let{ariaHidden:n=!1,mark:r=!0}=t,i=K(e[0]).body;return Ra(e,i,n,{mark:r})}var Ba={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},Va=e(i(),1),Ha=q.createContext(null),Ua=()=>q.useContext(Ha),Wa=Ea(`portal`);function Ga(e={}){let{ref:t,container:n,componentProps:r=qe,elementProps:i}=e,a=ui(),o=Ua()?.portalNode,[s,c]=q.useState(null),[l,u]=q.useState(null),d=U(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&&(we(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=Ie(`div`,r,{ref:[t,d],props:[{id:a,[Wa]:``},i]}),m=s&&p?Va.createPortal(p,s):null;return{node:l,nodeId:q.isValidElement(p)?p.props.id:void 0,subtree:m}}var Ka=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}=Ga({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&&xa(e)&&(e.type===`focusin`?v.current&&=(Ca(l),!1):(Sa(l),v.current=!0))}return fi(Y(l,`focusin`,e,!0),Y(l,`focusout`,e,!0))},[l,y]),G(()=>{l&&b===!0&&v.current&&(Ca(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)(Ha.Provider,{value:S,children:[x&&l&&(0,X.jsx)(zi,{"data-type":`outside`,ref:f,onFocus:e=>{xa(e,l)?m.current?.focus():ba(g?g.domReference:null)?.focus()}}),x&&l&&(0,X.jsx)(`span`,{role:s,"aria-owns":u,style:Ba}),l&&Va.createPortal(a,l),x&&l&&(0,X.jsx)(zi,{"data-type":`outside`,ref:p,onFocus:e=>{xa(e,l)?h.current?.focus():(ya(g?g.domReference:null)?.focus(),g?.closeOnFocusOut&&g?.onOpenChange(!1,Zr(`focus-out`,e.nativeEvent)))}})]})]})});function qa(){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 Ja=q.createContext(null),Ya=q.createContext(null),Xa=()=>q.useContext(Ja)?.id||null,Za=e=>{let t=q.useContext(Ya);return e??t};function Qa(e){return e==null?e:`current`in e?e.current:e}function $a(e,t){let n=De(Hi(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||(Zi(e)?`keyboard`:t||`mouse`):`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var eo=20,to=[];function no(){to=to.filter(e=>e.deref()?.isConnected)}function ro(e){no(),e&&W(e)!==`body`&&(to.push(new WeakRef(e)),to.length>eo&&(to=to.slice(-20)))}function io(){return no(),to[to.length-1]?.deref()}function ao(e){return e?ha(e)?e:_a(e)[0]||e:null}function oo(e){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!e.getAttribute(`role`)?.includes(`dialog`))return;let t=ga(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return ha(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 so(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=U(()=>b.current.floatingContext?.nodeId),S=i===!1,C=qi(_)&&S,w=pi(i),T=pi(a),E=pi(o),D=pi(u),ee=pi(g),O=Za(m),k=Ua(),A=q.useRef(!1),j=q.useRef(!1),M=q.useRef(!1),te=q.useRef(null),N=q.useRef(``),P=q.useRef(``),F=q.useRef(null),I=q.useRef(null),ne=Re(F,p,k?.beforeInsideRef),re=Re(I,k?.afterInsideRef),ie=vi(),ae=vi(),oe=Ii(),se=k!=null,L=Ji(v),R=U((e=L)=>e?_a(e):[]),z=U(()=>h?.().filter(e=>e!=null)??[]);q.useEffect(()=>{if(r||!c)return;function e(e){e.key===`Tab`&&Z(L,Bi(K(L)))&&R().length===0&&!C&&Yi(e)}return Y(K(L),`keydown`,e)},[r,L,c,C,R]),q.useEffect(()=>{if(r||!g)return;let e=K(L);function t(){M.current=!1}function n(e){let t=Hi(e),n=z(),r=Z(v,t)||Z(_,t)||Z(k?.portalNode,t)||n.some(e=>e===t||Z(e,t));M.current=!r,P.current=e.pointerType||`keyboard`,Vi(t,`[data-base-ui-click-trigger]`)&&(j.current=!0,ae.start(0,()=>{j.current=!1}))}function i(){P.current=`keyboard`}return fi(Y(e,`pointerdown`,n,!0),Y(e,`pointerup`,t,!0),Y(e,`pointercancel`,t,!0),Y(e,`keydown`,i,!0),t)},[r,v,_,L,g,k,ae,z]),q.useEffect(()=>{if(r||!l)return;let e=K(L);function n(){j.current=!0,ae.start(0,()=>{j.current=!1})}function i(e){let t=Hi(e);ha(t)&&(te.current=t)}function a(n){let r=n.relatedTarget,i=n.currentTarget,a=Hi(n);c&&r==null&&a!=null&&Z(v,a)&&ro(a),queueMicrotask(()=>{let o=x(),l=t.context.triggerElements,u=z(),p=r?.hasAttribute(Ea(`focus-guard`))&&[F.current,I.current,k?.beforeInsideRef.current,k?.afterInsideRef.current,k?.beforeOutsideRef.current,k?.afterOutsideRef.current,Qa(f),Qa(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&&(wa(O.nodesRef.current,o).find(e=>Z(e.context?.elements.floating,r)||Z(e.context?.elements.domReference,r))||Ta(O.nodesRef.current,o).find(e=>[e.context?.elements.floating,Ji(e.context?.elements.floating)].includes(r)||e.context?.elements.domReference===r)));if(i===_&&L&&oo(L),s&&i!==_&&!ta(a)&&Bi(e)===e.body){if(H(L)&&(L.focus(),s===`popup`)){oe.request(()=>{L.focus()});return}let e=R(),t=te.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||L;H(n)&&n.focus()}b.current.insideReactTree?b.current.insideReactTree=!1:(C||!c)&&r&&m&&!j.current&&(C||r!==io())&&(A.current=!0,t.setOpen(!1,Zr(ni,n)))})}function o(){M.current||(b.current.insideReactTree=!0,ie.start(0,()=>{b.current.insideReactTree=!1}))}let u=H(_)?_:null;if(v||u)return fi(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,L,c,O,k,t,l,s,R,C,x,b,ie,ae,oe,d,f,z]),q.useEffect(()=>{if(r||!v||!g)return;let e=Array.from(k?.portalNode?.querySelectorAll(`[${Ea(`portal`)}]`)||[]),t=(O?Ta(O.nodesRef.current,x()):[]).find(e=>qi(e.context?.elements.domReference||null))?.context?.elements.domReference,n=za([v,...e,F.current,I.current,k?.beforeOutsideRef.current,k?.afterOutsideRef.current,...z(),t,Qa(f),Qa(d),C?_:null].filter(e=>e!=null),{ariaHidden:c||C,mark:!1}),i=za([v,...e].filter(e=>e!=null));return()=>{i(),n()}},[g,r,_,v,c,k,C,O,x,d,f,z]),G(()=>{if(!g||r||!H(L))return;N.current=``,P.current=``;let e=K(L),t=Bi(e);queueMicrotask(()=>{let n=w.current,r=typeof n==`function`?n(D.current||``):n;if(r===void 0||r===!1||Z(L,t))return;let i=null,a=()=>(i??=R(L),i[0]||L),o;o=r===!0||r===null?a():Qa(r),o||=a();let s=Z(L,Bi(e)),c=b.current.openEvent,l=c?.type===`mousedown`&&Zi(c);Oa(o,{sync:l,preventScroll:o===L,shouldFocus(){if(!ee.current)return!1;if(s)return!0;let t=Bi(e);return!(t!==o&&Z(L,t))}})})},[r,g,L,R,w,D,ee,b]);let B=q.useRef(null);G(()=>{if(r||!L){B.current=null;return}B.current&&=(B.current.cancelled=!0,null);let e=K(L),t=Bi(e),n=D.current==null;ro(t);function i(e){if(e.open||(N.current=$a(e.nativeEvent,P.current)),(e.reason===`focus-out`&&e.triggerElement?.hasAttribute(Ea(`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(Zi(e.nativeEvent)||Qi(e.nativeEvent))A.current=!1;else{let e=!1;K(L).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&&W(t)!==`body`?t:null,s=n?o||a:a||o;return s||=io()||null,typeof i==`boolean`?s:Qa(i)||s||null}return()=>{y.off(`openchange`,i);let t=Bi(e),n=z(),r=Z(v,t)||n.some(e=>e===t||Z(e,t))||O&&wa(O.nodesRef.current,x(),!1).some(e=>Z(e.context?.elements.floating,t)),o=T.current,s=N.current,c=a(s),l={cancelled:!1};B.current=l,queueMicrotask(()=>{B.current===l&&(B.current=null);let n=ao(c),i=E.current??typeof o!=`boolean`;if(!l.cancelled&&o&&!A.current&&H(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,L,T,E,D,y,O,_,x,z]),G(()=>{if(!Ai||g||!v)return;let e=Bi(K(v));H(e)&&Ki(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&&L)return oo(L),()=>{queueMicrotask(no)}},[r,L]);let V=!r&&(!c||!C)&&(se||c);return(0,X.jsxs)(q.Fragment,{children:[V&&(0,X.jsx)(zi,{"data-type":`inside`,ref:ne,onFocus:e=>{if(c){let e=R();Oa(e[e.length-1])}else k?.portalNode&&(A.current=!1,xa(e,k.portalNode)?ya(_)?.focus():Qa(f??k.beforeOutsideRef)?.focus())}}),n,V&&(0,X.jsx)(zi,{"data-type":`inside`,ref:re,onFocus:e=>{c?Oa(R()[0]):k?.portalNode&&(l&&(A.current=!0),xa(e,k.portalNode)?ba(_)?.focus():Qa(d??k.afterOutsideRef)?.focus())}})]})}function co(){return!1}function lo(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function uo(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:a=`sloppy`,referencePress:o=co,bubbles:s,externalTree:c}=t,l=e.useState(`open`),u=e.useState(`floatingElement`),{dataRef:d,events:f}=e.context,p=Za(c),m=U(typeof i==`function`?i:()=>!1),h=typeof i==`function`?m:i,g=h!==!1,_=U(()=>a),{escapeKey:v,outsidePress:y}=lo(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=vi(),ee=vi(),O=vi(),k=U(()=>{ee.clear(),d.current.insideReactTree=!1}),A=U(e=>{let t=d.current.floatingContext?.nodeId;return(p?wa(p.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),j=U(t=>Wi(t,e.select(`floatingElement`))||Wi(t,e.select(`domReferenceElement`))),M=U(t=>{o()&&e.setOpen(!1,Zr($r,t.nativeEvent))}),te=U(t=>{if(!l||!n||!r||t.key!==`Escape`)return;let i=Xi(t)?t.nativeEvent:t;if(w.current||i.isComposing||!v&&A(`__escapeKeyBubbles`))return;let a=Zr(ri,i);e.setOpen(!1,a),a.isCanceled||t.preventDefault(),!v&&!a.isPropagationAllowed&&t.stopPropagation()}),N=U(()=>{d.current.insideReactTree=!0,ee.start(0,k)}),P=U(t=>{if(!l||!n||t.button!==0)return;let r=Hi(t.nativeEvent);Z(e.select(`floatingElement`),r)&&(b.current||(b.current=!0,x.current=!1))}),F=U(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 _i,i=K(u);function a(){O.clear(),w.current=!0}function o(){w.current=!0,O.start(Ai?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&&wa(p.nodesRef.current,t).some(t=>Wi(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=Hi(n),i=`[${Ea(`inert`)}]`,a=Ee(r)?r.getRootNode():null,o=Array.from((ke(a)?a:K(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&&!He(c);){let e=Me(c);if(He(e)||!Ee(e))break;c=e}if(!(o.length&&Ee(r)&&!Gi(r)&&!Z(r,e.select(`floatingElement`))&&o.every(e=>!Z(c,e)))){if(H(r)&&!(`touches`in n)){let e=He(r),t=Te(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&&!Zi(n)&&!C.current)return;if(S.current){t.clear(),S.current=!1;return}}typeof h==`function`&&!h(n)||A(`__outsidePressBubbles`)||(e.setOpen(!1,Zr(ei,n)),k())}}}function N(t){f()===`sloppy`&&t.pointerType!==`touch`&&e.select(`open`)&&n&&!j(t)&&M(t)}function P(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 F(e,t){let n=Hi(e);if(!n)return;let r=Y(n,e.type,()=>{t(e),r()})}function I(e){T.current=`touch`,F(e,P)}function ne(e){D.clear(),e.type===`pointerdown`&&(e.button===0&&(C.current=!0),T.current=e.pointerType),(e.type!==`mousedown`||!E.current||E.current.dismissOnMouseDown)&&F(e,e=>{e.type===`pointerdown`?N(e):M(e)})}function re(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 ie(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 ae(e){F(e,ie)}function oe(e){f()===`sloppy`&&E.current&&!j(e)&&(E.current.dismissOnTouchEnd&&M(e),D.clear(),E.current=null)}function se(e){F(e,oe)}let L=fi(r&&fi(Y(i,`keydown`,te),Y(i,`compositionstart`,a),Y(i,`compositionend`,o)),g&&fi(Y(i,`click`,ne,!0),Y(i,`pointerdown`,ne,!0),Y(i,`pointerup`,re,!0),Y(i,`pointercancel`,re,!0),Y(i,`mousedown`,ne,!0),Y(i,`mouseup`,re,!0),Y(i,`touchstart`,I,{capture:!0,passive:!0}),Y(i,`touchmove`,ae,{capture:!0,passive:!0}),Y(i,`touchend`,se,{capture:!0,passive:!0})));return()=>{L(),t.clear(),c(),S.current=!1}},[d,u,r,g,h,l,n,v,y,te,k,_,A,j,p,e,D,O]);let I=q.useMemo(()=>({onKeyDown:te,onPointerDown:M,onClick:M}),[te,M]),ne=q.useMemo(()=>({onKeyDown:te,onPointerDown:F,onMouseDown:F,onClickCapture:N,onMouseDownCapture(e){N(),P(e)},onPointerDownCapture(e){N(),P(e)},onMouseUpCapture:N,onTouchEndCapture:N,onTouchMoveCapture:N}),[te,N,P,F]);return q.useMemo(()=>n?{reference:I,floating:ne,trigger:I}:{},[n,I,ne])}var fo=q.createContext(void 0);function po(){let e=q.useContext(fo);if(e===void 0)throw Error(Ze(26));return e}function mo(e,t){return e.getAnimations(t).filter(e=>{let t=e.effect?.getTiming();return t?.duration!==1/0&&t?.iterations!==1/0})}var ho=null;function go(e){if(!ho){let e=[];ho=e,queueMicrotask(()=>{ho=null,Va.flushSync(()=>{for(let t of e)t()})})}ho.push(e)}function _o(e,t=!1,n=!1){let r=Ii();return U((i,a=null)=>{r.cancel();let o=Qa(e);if(o==null)return;let s=o,c=()=>{n?go(()=>{a?.aborted||i()}):Va.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(mo(s).map(e=>e.finished.then(We))).then(()=>{a?.aborted||c()},()=>{a?.aborted||(mo(s).some(e=>e.pending||e.playState!==`finished`)?l():c())})}if(t){let e=Lr;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 vo(e){let{enabled:t=!0,open:n,ref:r,batch:i=!1,onComplete:a}=e,o=U(a),s=_o(r,n,i);q.useEffect(()=>{if(!t)return;let e=new AbortController;return s(o,e.signal),()=>{e.abort()}},[t,n,o,s])}var yo=new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Home`,`End`]);function bo(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 xo(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=Fi.request(()=>{a(`ending`)});return()=>{Fi.cancel(e)}}},[e,o,i,n]),G(()=>{if(!e||t||i===void 0)return;let n=Fi.request(()=>{a(void 0)});return()=>{Fi.cancel(n)}},[t,e,i]),G(()=>{if(!e||!t)return;e&&o&&i!==`idle`&&a(`starting`);let n=Fi.request(()=>{a(`idle`)});return()=>{Fi.cancel(n)}},[t,e,o,i]),{mounted:o,setMounted:s,transitionStatus:i}}function So(e){let{open:t,ref:n,preventUnmountOnClose:r,setPreventUnmountOnClose:i,onUnmount:a,animateInitialOpen:o}=e,s=U(i),{mounted:c,setMounted:l,transitionStatus:u}=xo(t,!1,!1,o),d=!t&&r;G(()=>{t&&s(!1)},[t,s]);let f=q.useRef(c),p=q.useRef(!1),m=oi(),h=()=>{f.current=!1,l(!1),a()};G(()=>{f.current=c,p.current&&(p.current=!1,!t&&c&&h())});let g=U(()=>{f.current&&(t?(p.current=!0,m()):h())});return vo({enabled:c&&!t&&!d,open:t,ref:n,onComplete(){t||g()}}),{mounted:c,transitionStatus:u,preventUnmountingOnClose:d,forceUnmount:g}}var Co={tabIndex:-1,[Ui]:``};function wo(e){return t=>t!==`touch`||e.current}function To(e,t=!1){let n=ui(),r=Xa()!=null,i=Qe(()=>e(n,r)).current;return bo({popupStore:i,treatPopupAsFloatingElement:t,floatingRootContext:i.state.floatingRootContext,floatingId:n,nested:r,onOpenChange:i.setOpen}),i}function Eo({handle:e,store:t}){return G(()=>e.attachStore(t),[e,t]),null}function Do(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 Oo(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=Zr(Qr);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[i,e,a,o,s,n])}function ko(e,t,n,r){let{mounted:i,transitionStatus:a,forceUnmount:o}=So({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 Qe(()=>(t.set(`mounted`,i),null)),t.useSyncedValues({mounted:i,transitionStatus:a}),{forceUnmount:o,transitionStatus:a}}function Ao(e,t){e.useSyncedValues(t),G(()=>()=>{e.update({activeTriggerProps:qe,inactiveTriggerProps:qe,popupProps:qe})},[e])}function jo(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 Mo=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}},No=[],Po=void 0;function Fo(){return Po}function Io(e){No.push(e)}function Lo(e){let t=(t,n)=>{let r=Qe(Ro).current,i;try{Po=r;for(let e of No)e.before(r);i=e(t,n);for(let e of No)e.after(r);r.didInitialize=!0}finally{Po=void 0}return i};return t.displayName=e.displayName||e.name,t}function Ro(){return{didInitialize:!1}}var zo=et(),Bo=$e(),Vo=ze(19)?Wo:Go;function Ho(e,t,n,r,i){return Vo(e,t,n,r,i)}function Uo(e,t,n,r,i){let a=q.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,zo.useSyncExternalStore)(e.subscribe,a,a)}Io({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,zo.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Wo(e,t,n,r,i){let a=Fo();if(!a)return Uo(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 Go(e,t,n,r,i){return(0,Bo.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var Ko=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 Ho(this,e,t,n,r)}},qo=class extends Ko{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),Ho(this,this.selectors[e],t,n,r)}useContextCallback(e,t){q.useDebugValue(e);let n=U(t??We);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)}})}},Jo={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},Yo=class extends qo{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:qa(),nested:n,triggerElements:i},Jo),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&$i(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 Xo(e,t,n=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new Yo({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:qe,inactiveTriggerProps:qe,popupProps:qe}}var Zo=e=>e.triggerIdProp??e.activeTriggerId,Qo=e=>e.openProp??e.open,$o=e=>(e.popupElement?.id??e.floatingId)||void 0;function es(e,t){return t!==void 0&&Qo(e)&&Zo(e)===t}function ts(e,t){return es(e,t)?!0:t!==void 0&&Qo(e)&&Zo(e)==null&&!e.openedWithoutTrigger&&e.triggerCount===1}var ns={open:Qo,mounted:e=>e.mounted,transitionStatus:e=>Qo(e)&&!e.mounted?`starting`:e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:Zo,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:$o,isTriggerActive:(e,t)=>t!==void 0&&Zo(e)===t,isOpenedByTrigger:(e,t)=>es(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&Zo(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>ts(e,t)?$o(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement},rs=`--nested-dialogs`,is=`data-nested-dialog-open`,as={...Jr,...Vr,nestedDialogOpen(e){return e?{[is]:``}:null}},os=q.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,initialFocus:o,...s}=e,c=Ir(),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`);po(),vo({open:_,ref:c.context.popupRef,onComplete(){_&&c.context.onOpenChangeComplete?.(!0)}});let C=o===void 0?wo(c.context.popupRef):o,w=g>0,T=c.useStateSetter(`popupElement`),E=Ie(`div`,e,{state:{open:_,nested:h,transitionStatus:b,nestedDialogOpen:w},props:[f,{id:S,"aria-labelledby":y,"aria-describedby":l,role:x,...Co,hidden:!m,onKeyDown(e){yo.has(e.key)&&e.stopPropagation()},style:{[rs]:g}},s],ref:[t,c.context.popupRef,T],stateAttributesMapping:as});return(0,X.jsx)(so,{context:d,openInteractionType:v,disabled:!m,closeOnFocusOut:!u,initialFocus:C,returnFocus:a,modal:p!==!1,restoreFocus:`popup`,children:E})});function ss(e){return ze(19)?e:e?`true`:void 0}var cs=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}})}),ls=q.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=Ir(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,X.jsx)(fo.Provider,{value:n,children:(0,X.jsxs)(Ka,{ref:t,...r,children:[a&&o===!0&&(0,X.jsx)(cs,{ref:i.context.internalBackdropRef,inert:ss(!s)}),e.children]})}):null}),us={},ds={},fs=``;function ps(e,t){return Ve(e)?e:t}function ms(e,t,n){return/hidden|clip/.test(e.getComputedStyle(ps(t,n)).overflowY)}function hs(e){if(typeof document>`u`)return!1;let t=K(e);return De(t).innerWidth-t.documentElement.clientWidth>0}function gs(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=K(e),n=t.documentElement,r=t.body,i=ps(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 _s(e){let t=K(e),n=t.documentElement,r=t.body,i=ps(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 vs(e){let t=K(e),n=t.documentElement,r=t.body,i=De(n),a=0,o=0,s=!1,c=Fi.create();if(Ai&&(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,us={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},fs=n.style.scrollBehavior,ds={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=ps(n,r);s=gs(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,us),Object.assign(r.style,ds),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=fs)}function d(){u(),c.request(l)}l();let f=Y(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var ys=new class{lockCount=0;restore=null;timeoutLock=_i.create();timeoutUnlock=_i.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=K(e),n=t.documentElement,r=t.body,i=De(n);if(ms(i,n,r)){let t=new i.MutationObserver(()=>{ms(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=Ti||!hs(e);this.restore=a?_s(e):vs(e)}};function bs(e=!0,t=null){G(()=>{if(e)return ys.acquire(t)},[e,t])}function xs({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=uo(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=Hi(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 bs(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]),Ao(e,{activeTriggerProps:m.reference,inactiveTriggerProps:m.trigger,popupProps:m.floating,nestedOpenDialogCount:l,nestedOpenDrawerCount:d}),null}var Ss={...ns,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},Cs=class extends qo{constructor(e,t,n){let r=new Mo,i=ws(e,r,t,n);super(i,Ts(r),Ss)}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(Do(this.state,e,t.trigger)))}};function ws(e,t,n,r=!1){return{...Xo(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 Ts(e){return{popupRef:q.createRef(),backdropRef:q.createRef(),internalBackdropRef:q.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0}}function Es(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=Ir(!0),y={modal:h,disablePointerDismissal:g,nested:v!=null,role:_},b=To((e,t)=>new Cs({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`);jo(b,x),Oo(b);let{forceUnmount:w}=ko(x,b);q.useImperativeHandle(l,()=>({unmount:w,close:()=>b.setOpen(!1,Zr(ii))}),[w,b]);let T=x||S||u!=null;return(0,X.jsxs)(Fr.Provider,{value:b,children:[u&&(0,X.jsx)(Eo,{handle:u,store:b}),T&&(0,X.jsx)(xs,{store:b,parentContext:v?.context,isDrawer:p}),typeof n==`function`?n({payload:C}):n]})}var Ds=Lo(function(e){return Es(`dialog`,e)}),Os=q.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=Ir(),c=di(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),Ie(`h2`,e,{ref:t,props:[{id:c},o]})}),Q=a();function ks(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)(Ds,{"data-slot":`dialog`,...n}),t[2]=n,t[3]=r),r}function As(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)(ls,{"data-slot":`dialog-portal`,...n}),t[2]=n,t[3]=r),r}function js(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=Ae(`fixed inset-0 isolate z-50 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs 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)(Xr,{"data-slot":`dialog-overlay`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ms(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)(js,{}),t[5]=s):s=t[5];let c;t[6]===r?c=t[7]:(c=Ae(`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-4 rounded-xl bg-popover p-4 text-xs/relaxed text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm 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)(ai,{"data-slot":`dialog-close`,render:(0,X.jsx)(Ue,{variant:`ghost`,className:`absolute top-2 right-2`,size:`icon-sm`}),children:[(0,X.jsx)(st,{}),(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)(As,{children:[s,(0,X.jsxs)(os,{"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 Ns(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=Ae(`flex flex-col gap-1`,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 Ps(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=Ae(`text-sm font-medium`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(Os,{"data-slot":`dialog-title`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Fs(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=Ae(`pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-xs bg-muted px-1 font-sans text-[0.625rem] font-medium text-muted-foreground select-none 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 Is(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=Ae(`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 Ls(e,t){let n=t.x-e.x,r=t.y-e.y;return n*n+r*r>=625e-8}var Rs=S([`#da702c`,`#d0a215`,`#3aa99f`,`#4385be`,`#8b7ec8`,`#ce5d97`]),zs=le({color:Rs,id:V(de,w(D(32))),name:V(de,w(D(32))),x:V(d,w(v({maximum:1,minimum:0}))),y:V(d,w(v({maximum:1,minimum:0})))}),Bs=l(zs),Vs=class extends B(re(`portfolio.join`,{payload:le(V(zs.fields,A([`color`,`id`,`name`]))),stream:!0,success:Bs}),re(`portfolio.move`,{payload:le(V(zs.fields,A([`color`,`id`,`x`,`y`])))})){},Hs=class extends I()(`@deslop/portfolio/lib/utils/RpcClient`,{group:Vs,protocol:tt(`@deslop/portfolio`)}){},Us=[`1`,`2`,`3`,`4`,`5`,`6`],Ws={lastFrameAt:0,targetX:0,targetY:0,viewportHeight:0,viewportWidth:0,x:0,y:0};function Gs(e){return Math.floor(M.defaultValue().nextDoubleUnsafe()*e)}function Ks(){let e=`0123456789abcdef`;return V(g(6,()=>e[Gs(ie(e))]??`0`),T(``))}function qs(e){let t=s(Rs.literals,t=>t!==e);return t[Gs(p(t))]??Rs.literals[0]}function Js(){let e=sessionStorage.getItem(`portfolio.id`),t=sessionStorage.getItem(`portfolio.name`),n=Rs.literals[Gs(p(Rs.literals))]??Rs.literals[0];if(N(e)&&N(t))return{color:n,id:e,name:t};let r=Ks(),i={color:n,id:`v-${r}`,name:`Guest-${V(r,xe(0,3))}`};return sessionStorage.setItem(`portfolio.id`,i.id),sessionStorage.setItem(`portfolio.name`,i.name),i}var $=Js(),Ys=se(Hs.runtime.atom(V(Hs,be(e=>e(`portfolio.join`,$)),O,Se(ce(`2 seconds`)),ne(()=>({trails:[],visitors:[]}),(e,t)=>{let n={trails:c(C(e.trails,s(t,t=>!Ce(e.visitors,e=>e.id===t.id&&e.color===t.color&&e.x===t.x&&e.y===t.y))),180),visitors:t};return j(n,[n])}))));function Xs(e,t,n){e.style.setProperty(`--cursor-transform`,`translate3d(${t}px, ${n}px, 0)`)}function Zs(e,t){return{lastFrameAt:0,targetX:e.x,targetY:e.y,viewportHeight:t.height,viewportWidth:t.width,x:e.x,y:e.y}}function Qs(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 $s(e,t){let n=u(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=pe(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:u(o,{onFalse:()=>Qs({catchUp:a,maximum:e.viewportWidth,position:e.x,target:e.targetX}),onTrue:()=>e.targetX}),y:u(o,{onFalse:()=>Qs({catchUp:a,maximum:e.viewportHeight,position:e.y,target:e.targetY}),onTrue:()=>e.targetY})}}function ec(e,t,n){let r={x:t.x*n.width,y:t.y*n.height};return e.viewportWidth!==n.width||e.viewportHeight!==n.height?Zs(r,n):e.targetX===r.x&&e.targetY===r.y?e:{...e,targetX:r.x,targetY:r.y}}function tc(e,t){t(requestAnimationFrame(()=>{e()?tc(e,t):t(0)}))}function nc(e){return addEventListener(`resize`,e),()=>{removeEventListener(`resize`,e)}}function rc(e){let t=(0,Q.c)(5),n;t[0]===e.className?n=t[1]:(n=Ae(`bg-background border-border border select-text`,e.className),t[0]=e.className,t[1]=n);let r;return t[2]!==e.children||t[3]!==n?(r=(0,X.jsx)(`div`,{className:n,children:e.children}),t[2]=e.children,t[3]=n,t[4]=r):r=t[4],r}function ic(e){let t=(0,Q.c)(11),n,r,i,a;if(t[0]!==e.trails||t[1]!==e.viewport){let s=_();ee(e.trails,P(),(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=V(t,E(n.id),h);if(me(i))return m(s,{color:r.trail.color,x:r.col*26+1,y:r.row*26+1}),o(t,n.id,r);let a=ge(Math.abs(r.col-i.col),Math.abs(r.row-i.row));for(let e of g(a+1,ye)){let t=u(a===0,{onFalse:()=>e/a,onTrue:oc}),n=R(i.col+(r.col-i.col)*t,0),o=R(i.row+(r.row-i.row)*t,0),c=u(t<1,{onFalse:()=>r.trail.color,onTrue:()=>i.trail.color});m(s,{color:c,x:n*26+1,y:o*26+1})}return o(t,n.id,r)}),n=!0,r=`pointer-events-none fixed inset-0 z-1 size-full`,i=`crispEdges`,a=y(_e(s),ac),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 ac(e,t){return(0,X.jsx)(`rect`,{x:e.x,y:e.y,width:24,height:24,fill:e.color,fillOpacity:.22},t)}function oc(){return 1}function sc(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=Ae(`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)(at,{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-sm border border-(--cursor-color) px-1.5 py-0.5 font-mono text-xs whitespace-nowrap`,children:e.label}),t[6]=e.label,t[7]=n),a=u(e.show===!1,{onFalse:n,onTrue:cc}),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 cc(){return null}function lc(e,t){let n=(t.width-768)/2,r=(t.width+768)/2;return e*t.width>=n&&e*t.width<=r}function uc(e){let t=(0,Q.c)(16),n=(0,q.useRef)(null),r=(0,q.useRef)(Ws),i=(0,q.useRef)(0),a,o;t[0]!==e.cursor||t[1]!==e.viewport?(a=()=>{r.current=ec(r.current,e.cursor,e.viewport),n.current!==null&&Xs(n.current,r.current.x,r.current.y);function t(e){n.current!==null&&(r.current=$s(r.current,e),Xs(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>e.viewport.width-140,l=e.cursor.name,u;t[6]!==e.cursor.x||t[7]!==e.viewport?(u=lc(e.cursor.x,e.viewport),t[6]=e.cursor.x,t[7]=e.viewport,t[8]=u):u=t[8];let d=!u,f;t[9]!==e.cursor.name||t[10]!==c||t[11]!==d?(f=(0,X.jsx)(sc,{flip:c,label:l,show:d}),t[9]=e.cursor.name,t[10]=c,t[11]=d,t[12]=f):f=t[12];let p;return t[13]!==s||t[14]!==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[13]=s,t[14]=f,t[15]=p):p=t[15],p}function dc(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>e.viewport.width-140,a;t[3]!==e.cursor.x||t[4]!==e.viewport?(a=lc(e.cursor.x,e.viewport),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)(sc,{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 fc(e){let t=(0,Q.c)(5),n;t[0]===e.className?n=t[1]:(n=Ae(`relative z-10 flex flex-col items-center overflow-hidden px-3 py-4 sm:px-6 sm:py-6`,e.className),t[0]=e.className,t[1]=n);let r;return t[2]!==e.children||t[3]!==n?(r=(0,X.jsx)(`section`,{className:n,children:e.children}),t[2]=e.children,t[3]=n,t[4]=r):r=t[4],r}function pc(e){let t=(0,Q.c)(7),n;t[0]===e.title?n=t[1]:(n=(0,X.jsx)(`h2`,{className:`text-muted-foreground border-border border-b pb-2 font-mono text-xs`,children:e.title}),t[0]=e.title,t[1]=n);let r;t[2]===e.children?r=t[3]:(r=(0,X.jsx)(`div`,{className:`divide-border flex flex-col divide-y`,children:e.children}),t[2]=e.children,t[3]=r);let i;return t[4]!==n||t[5]!==r?(i=(0,X.jsxs)(rc,{className:`flex w-full max-w-3xl flex-col px-4 py-3 sm:px-6`,children:[n,r]}),t[4]=n,t[5]=r,t[6]=i):i=t[6],i}function mc(){let e=(0,Q.c)(5),t,n,r,i;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,X.jsxs)(`h1`,{className:`text-foreground text-4xl font-semibold tracking-tight sm:text-5xl`,children:[Pe.firstName,` `,Pe.lastName]}),n=(0,X.jsx)(`p`,{className:`text-primary font-mono text-sm`,children:Pe.title}),r=(0,X.jsx)(`p`,{className:`text-foreground/90 text-base`,children:Fe}),i=(0,X.jsx)(`p`,{className:`text-muted-foreground font-mono text-xs`,children:Pe.location}),e[0]=t,e[1]=n,e[2]=r,e[3]=i):(t=e[0],n=e[1],r=e[2],i=e[3]);let a;return e[4]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,X.jsx)(fc,{className:`pt-10 sm:pt-20`,children:(0,X.jsxs)(rc,{className:`flex w-full max-w-3xl flex-col gap-3 px-4 py-6 sm:px-6`,children:[t,n,r,i,(0,X.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 font-mono text-xs`,children:[(0,X.jsx)(`a`,{href:Xe.email.href,className:`text-primary hover:underline max-sm:inline-flex max-sm:h-11 max-sm:min-w-11 max-sm:items-center max-sm:justify-center`,children:`email`}),(0,X.jsx)(`a`,{href:Xe.github.href,target:`_blank`,rel:`noopener noreferrer`,className:`text-primary hover:underline max-sm:inline-flex max-sm:h-11 max-sm:min-w-11 max-sm:items-center max-sm:justify-center`,children:`github`}),(0,X.jsx)(`a`,{href:`/cv`,className:`text-primary hover:underline max-sm:inline-flex max-sm:h-11 max-sm:min-w-11 max-sm:items-center max-sm:justify-center`,children:`cv`})]})]})}),e[4]=a):a=e[4],a}function hc(){let e=(0,Q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,X.jsx)(fc,{children:(0,X.jsx)(pc,{title:`skills`,children:y(Ye,gc)})}),e[0]=t):t=e[0],t}function gc(e){return(0,X.jsxs)(`div`,{className:`flex flex-col gap-1 py-3 sm:flex-row sm:gap-6`,children:[(0,X.jsxs)(`h3`,{className:`flex w-40 shrink-0 items-center gap-2 text-sm font-medium`,children:[(0,X.jsx)(e.icon,{className:`text-primary size-4`}),e.area]}),(0,X.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:e.items})]},e.area)}function _c(e){let t=(0,Q.c)(20),n;t[0]===e.project.role?n=t[1]:(n=(0,X.jsx)(`span`,{className:`text-muted-foreground ml-2 font-normal`,children:e.project.role}),t[0]=e.project.role,t[1]=n);let r;t[2]!==e.project.name||t[3]!==n?(r=(0,X.jsxs)(`h3`,{className:`text-sm font-medium`,children:[e.project.name,n]}),t[2]=e.project.name,t[3]=n,t[4]=r):r=t[4];let i=`View ${e.project.name} on GitHub`,a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,X.jsx)(rt,{className:`size-4`}),t[5]=a):a=t[5];let o;t[6]!==e.project.href||t[7]!==i?(o=(0,X.jsx)(`a`,{href:e.project.href,target:`_blank`,rel:`noopener noreferrer`,"aria-label":i,className:`text-primary hover:text-primary/80 transition-colors max-sm:inline-flex max-sm:size-11 max-sm:items-center max-sm:justify-center`,children:a}),t[6]=e.project.href,t[7]=i,t[8]=o):o=t[8];let s;t[9]!==r||t[10]!==o?(s=(0,X.jsxs)(`div`,{className:`flex items-baseline justify-between gap-3`,children:[r,o]}),t[9]=r,t[10]=o,t[11]=s):s=t[11];let c;t[12]===e.project.description?c=t[13]:(c=(0,X.jsx)(`p`,{className:`text-foreground/90 text-sm`,children:e.project.description}),t[12]=e.project.description,t[13]=c);let l;t[14]===e.project.stack?l=t[15]:(l=(0,X.jsx)(`p`,{className:`text-muted-foreground font-mono text-xs`,children:e.project.stack}),t[14]=e.project.stack,t[15]=l);let u;return t[16]!==s||t[17]!==c||t[18]!==l?(u=(0,X.jsxs)(`div`,{className:`flex flex-col gap-1 py-3`,children:[s,c,l]}),t[16]=s,t[17]=c,t[18]=l,t[19]=u):u=t[19],u}function vc(){let e=(0,Q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,X.jsx)(fc,{children:(0,X.jsx)(pc,{title:`projects`,children:y(Ke,yc)})}),e[0]=t):t=e[0],t}function yc(e){return(0,X.jsx)(_c,{project:e},e.name)}function bc(){let e=(0,Q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,X.jsx)(fc,{children:(0,X.jsx)(pc,{title:`experience`,children:y(Je,xc)})}),e[0]=t):t=e[0],t}function xc(e){return(0,X.jsxs)(`div`,{className:`flex flex-col gap-2 py-3`,children:[(0,X.jsxs)(`div`,{className:`flex flex-col gap-0.5 sm:flex-row sm:items-baseline sm:justify-between`,children:[(0,X.jsxs)(`h3`,{className:`text-sm font-medium`,children:[e.company,(0,X.jsxs)(`span`,{className:`text-muted-foreground ml-2 font-normal`,children:[e.role,F(e.note)&&` · ${e.note}`]})]}),(0,X.jsx)(`p`,{className:`text-muted-foreground font-mono text-xs sm:text-right`,children:V([e.period,e.location],s(F),T(` · `))})]}),(0,X.jsx)(`ul`,{className:`flex flex-col gap-1`,children:y(e.highlights,Sc)})]},e.company)}function Sc(e){return(0,X.jsxs)(`li`,{className:`text-foreground/90 flex items-start gap-2 text-sm`,children:[(0,X.jsx)(`span`,{className:`bg-muted-foreground mt-2 size-1 shrink-0 rounded-full`,"aria-hidden":`true`}),(0,X.jsx)(`span`,{children:e})]},e)}function Cc(){let e=(0,Q.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=y(Ge,Tc),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,X.jsx)(fc,{children:(0,X.jsxs)(pc,{title:`education and languages`,children:[t,(0,X.jsx)(`div`,{className:`flex flex-wrap gap-x-6 gap-y-1 py-3`,children:y(Be,wc)})]})}),e[1]=n):n=e[1],n}function wc(e){return(0,X.jsxs)(`span`,{className:`text-sm`,children:[(0,X.jsx)(`span`,{className:`font-medium`,children:e.language}),(0,X.jsx)(`span`,{className:`text-muted-foreground ml-2 font-mono text-xs`,children:e.level})]},e.language)}function Tc(e){return(0,X.jsxs)(`div`,{className:`flex flex-wrap items-baseline justify-between gap-x-4 gap-y-1 py-3`,children:[(0,X.jsxs)(`h3`,{className:`text-sm font-medium`,children:[e.school,(0,X.jsxs)(`span`,{className:`text-muted-foreground ml-2 font-normal`,children:[e.degree,F(e.grade)&&` (${e.grade})`]})]}),(0,X.jsx)(`span`,{className:`text-muted-foreground font-mono text-xs`,children:e.period})]},e.school)}function Ec(){let e=(0,Q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,X.jsxs)(fc,{className:`pb-20 max-sm:pb-6`,children:[(0,X.jsx)(pc,{title:`contact`,children:y([Xe.email,Xe.pec,Xe.phone,Xe.github,{href:`/cv`,label:`CV`,value:`${Pe.portfolio}/cv`}],Dc)}),(0,X.jsxs)(`p`,{className:`bg-background text-muted-foreground mt-4 font-mono text-xs`,children:[`© 2026 `,Pe.firstName,` `,Pe.lastName,` · VAT `,Pe.vat]})]}),e[0]=t):t=e[0],t}function Dc(e){let t=oe(`/`)(e.href);return(0,X.jsxs)(`a`,{href:e.href,className:`hover:text-primary flex items-baseline justify-between gap-3 py-3 text-sm transition-colors`,target:u(t,{onFalse:jc,onTrue:Ac}),rel:u(t,{onFalse:kc,onTrue:Oc}),children:[(0,X.jsx)(`span`,{className:`text-muted-foreground`,children:e.label}),(0,X.jsx)(`span`,{className:`font-mono text-xs break-all`,children:e.value})]},e.label)}function Oc(){}function kc(){return`noopener noreferrer`}function Ac(){}function jc(){return`_blank`}function Mc(e){let t=(0,Q.c)(8),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,X.jsx)(Ns,{children:(0,X.jsx)(Ps,{children:`Keyboard shortcuts`})}),t[0]=n):n=t[0];let r,i;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,X.jsxs)(Is,{children:[(0,X.jsx)(Fs,{children:`j`}),(0,X.jsx)(Fs,{children:`k`})]}),i=(0,X.jsx)(`span`,{children:`next / prev section`}),t[1]=r,t[2]=i):(r=t[1],i=t[2]);let a;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,X.jsx)(Fs,{children:`1`}),t[3]=a):a=t[3];let o;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,X.jsxs)(Ms,{className:`sm:max-w-md`,children:[n,(0,X.jsxs)(`div`,{className:`text-muted-foreground grid grid-cols-[auto_1fr] items-center gap-x-4 gap-y-3 text-xs sm:gap-x-8`,children:[r,i,(0,X.jsxs)(Is,{children:[a,`–`,(0,X.jsx)(Fs,{children:`6`})]}),(0,X.jsx)(`span`,{children:`1 hero · 2 skills · 3 experience · 4 projects · 5 education · 6 contact`}),(0,X.jsx)(Fs,{children:`r`}),(0,X.jsx)(`span`,{children:`change cursor color`}),(0,X.jsx)(Fs,{children:`?`}),(0,X.jsx)(`span`,{children:`toggle this overlay`}),(0,X.jsx)(Fs,{children:`Esc`}),(0,X.jsx)(`span`,{children:`close this overlay`})]})]}),t[4]=o):o=t[4];let s;return t[5]!==e.onOpenChange||t[6]!==e.open?(s=(0,X.jsx)(ks,{open:e.open,onOpenChange:e.onOpenChange,children:o}),t[5]=e.onOpenChange,t[6]=e.open,t[7]=s):s=t[7],s}function Nc(e){let t=(0,Q.c)(19),n;t[0]===e.visitors?n=t[1]:(n=V(ue(e.visitors,Rc),ve({onNone:Lc,onSome:Ic})),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=p(e.visitors),t[4]=e.visitors,t[5]=i);let a;t[6]===i?a=t[7]:(a=(0,X.jsx)(`span`,{className:`text-primary`,children:i}),t[6]=i,t[7]=a);let o;t[8]===e.visitors?o=t[9]:(o=u(p(e.visitors)===1,{onFalse:Fc,onTrue:Pc}),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;t[12]===e.hint?c=t[13]:(c=e.hint===!0&&(0,X.jsx)(`span`,{className:`text-muted-foreground max-sm:hidden`,children:`· j/k · ?`}),t[12]=e.hint,t[13]=c);let l;return t[14]!==r||t[15]!==a||t[16]!==s||t[17]!==c?(l=(0,X.jsxs)(X.Fragment,{children:[r,a,s,c]}),t[14]=r,t[15]=a,t[16]=s,t[17]=c,t[18]=l):l=t[18],l}function Pc(){return`visitor`}function Fc(){return`visitors`}function Ic(e){return e.color}function Lc(){return $.color}function Rc(e){return e.id===$.id}function zc(e){let t=(0,Q.c)(26),n=Et(Ys),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 w-screen`}),t[0]=r):r=t[0];let i;t[1]!==e.viewport||t[2]!==n.value.trails?(i=(0,X.jsx)(ic,{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=te(ue(n.value.visitors,Hc),Vc),t[4]=n.value.visitors,t[5]=a);let o;t[6]!==e.viewport||t[7]!==a?(o=(0,X.jsx)(`div`,{className:`hidden [@media(hover:hover)_and_(pointer:fine)]:contents`,children:(0,X.jsx)(dc,{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=>u(t.id===$.id,{onFalse:()=>(0,X.jsx)(uc,{cursor:t,viewport:e.viewport},t.id),onTrue:Bc}),t[12]=e.viewport,t[13]=r),s=y(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`,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)(`div`,{className:`border-border bg-background mb-safe-bottom ml-safe-left pointer-events-none fixed bottom-3 left-3 z-50 flex h-7 items-center gap-2 rounded-md border px-2 font-mono text-xs max-sm:hidden sm:bottom-4 sm:left-4`,children:(0,X.jsx)(Nc,{hint:!0,visitors:n.value.visitors})}),t[16]=n.value.visitors,t[17]=l);let d;t[18]===n.value.visitors?d=t[19]:(d=(0,X.jsx)(`div`,{className:`relative z-10 flex justify-center px-3 pb-6 sm:hidden`,children:(0,X.jsx)(rc,{className:`flex w-full max-w-3xl items-center gap-2 px-4 py-3 font-mono text-xs`,children:(0,X.jsx)(Nc,{visitors:n.value.visitors})})}),t[18]=n.value.visitors,t[19]=d);let f;return t[20]!==i||t[21]!==o||t[22]!==c||t[23]!==l||t[24]!==d?(f=(0,X.jsxs)(X.Fragment,{children:[r,i,o,c,l,d]}),t[20]=i,t[21]=o,t[22]=c,t[23]=l,t[24]=d,t[25]=f):f=t[25],f}function Bc(){return null}function Vc(){return{color:$.color,id:$.id,name:$.name,x:.5,y:.5}}function Hc(e){return e.id===$.id}function Uc(){let e=(0,Q.c)(49),t=(0,q.useSyncExternalStore)(nc,Qc,Zc),n=(0,q.useSyncExternalStore)(nc,Xc,Yc),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=Hs.mutation(`portfolio.move`),e[3]=s):s=e[3];let c=St(s),l=(0,q.useRef)(0),d=(0,q.useRef)(null),f=(0,q.useRef)(null),p=(0,q.useRef)($.color),[m,h]=(0,q.useState)(!1),g,_;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(g=()=>()=>{cancelAnimationFrame(l.current)},_=[],e[4]=g,e[5]=_):(g=e[4],_=e[5]),(0,q.useEffect)(g,_);let v=function(){return x(a.current?.querySelectorAll(`:scope > section`)??[])},S=function(e){let t=v()[e];me(t)||(t.scrollIntoView({behavior:u(window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,{onFalse:Jc,onTrue:qc}),block:`start`}),o.current=e)},C;e[6]===c?C=e[7]:(C=function(e){f.current={sentAt:performance.now(),x:e.x,y:e.y},c({payload:{color:p.current,id:$.id,x:e.x,y:e.y}})},e[6]=c,e[7]=C);let w=C,T;e[8]===w?T=e[9]:(T=function(){p.current=qs(p.current),w(d.current??f.current??{x:.5,y:.5})},e[8]=w,e[9]=T);let E=T,D;e[10]===w?D=e[11]:(D=function(){if(d.current!==null&&f.current!==null){if(!Ls(f.current,d.current))return!1;if(performance.now()-f.current.sentAt<50)return!0}return d.current!==null&&w(d.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&&(d.current={x:L({maximum:.999999,minimum:0})(e.clientX/i.width),y:L({maximum:.999999,minimum:0})(e.clientY/i.height)},l.current===0&&tc(ee,e=>{l.current=e})))},e[12]=ee,e[13]=i,e[14]=O):O=e[14];let k=O,A;e[15]===E?A=e[16]:(A={callback:E,hotkey:`R`},e[15]=E,e[16]=A);let j;e[17]===h?j=e[18]:(j=()=>{h(Kc)},e[17]=h,e[18]=j);let M;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(M={key:`?`,shift:!0},e[19]=M):M=e[19];let N;e[20]===j?N=e[21]:(N={callback:j,hotkey:M},e[20]=j,e[21]=N),Pr([{callback:()=>{S(pe(o.current+1,Us.length-1))},hotkey:`J`},{callback:()=>{S(ge(o.current-1,0))},hotkey:`K`},...y(Us,(e,t)=>({callback:()=>{S(t)},hotkey:e})),A,N]);let P;e[22]!==o||e[23]!==v?(P=e=>{let t=e.currentTarget.scrollTop+e.currentTarget.clientHeight/2;o.current=V(v(),b(e=>e.offsetTop<=t),te(Gc))},e[22]=o,e[23]=v,e[24]=P):P=e[24];let F,I,ne,re,ie,ae;e[25]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,X.jsx)(mc,{}),I=(0,X.jsx)(hc,{}),ne=(0,X.jsx)(bc,{}),re=(0,X.jsx)(vc,{}),ie=(0,X.jsx)(Cc,{}),ae=(0,X.jsx)(Ec,{}),e[25]=F,e[26]=I,e[27]=ne,e[28]=re,e[29]=ie,e[30]=ae):(F=e[25],I=e[26],ne=e[27],re=e[28],ie=e[29],ae=e[30]);let oe;e[31]===Symbol.for(`react.memo_cache_sentinel`)?(oe={color:$.color,id:$.id,name:$.name,x:.5,y:.5},e[31]=oe):oe=e[31];let se;e[32]===i?se=e[33]:(se=(0,X.jsx)(q.Suspense,{fallback:(0,X.jsx)(`div`,{className:`hidden [@media(hover:hover)_and_(pointer:fine)]:contents`,children:(0,X.jsx)(dc,{cursor:oe,viewport:i})}),children:(0,X.jsx)(zc,{viewport:i})}),e[32]=i,e[33]=se);let R;e[34]===h?R=e[35]:(R=()=>{h(Wc)},e[34]=h,e[35]=R);let z;e[36]!==m||e[37]!==R?(z=(0,X.jsx)(Ue,{variant:`outline`,size:`icon`,"aria-expanded":m,"aria-haspopup":`dialog`,"aria-label":`Toggle keyboard shortcuts`,onClick:R,className:`mb-safe-bottom mr-safe-right fixed right-3 bottom-3 z-50 max-sm:hidden sm:right-4 sm:bottom-4`,children:`?`}),e[36]=m,e[37]=R,e[38]=z):z=e[38];let B;e[39]!==h||e[40]!==m?(B=(0,X.jsx)(Mc,{open:m,onOpenChange:h}),e[39]=h,e[40]=m,e[41]=B):B=e[41];let ce;return e[42]!==a||e[43]!==P||e[44]!==se||e[45]!==z||e[46]!==B||e[47]!==k?(ce=(0,X.jsxs)(`div`,{ref:a,className:`relative min-h-0 flex-1 overflow-x-hidden overflow-y-scroll [@media(hover:hover)_and_(pointer:fine)]:cursor-none`,onPointerMove:k,onScroll:P,children:[F,I,ne,re,ie,ae,se,z,B]}),e[42]=a,e[43]=P,e[44]=se,e[45]=z,e[46]=B,e[47]=k,e[48]=ce):ce=e[48],ce}function Wc(e){return!e}function Gc(){return 0}function Kc(e){return!e}function qc(){return`auto`}function Jc(){return`smooth`}function Yc(){return 0}function Xc(){return window.innerWidth}function Zc(){return 0}function Qc(){return window.innerHeight}export{Uc as component};
@@ -1 +0,0 @@
1
- import{a as e,t}from"./react-CDnnZf73.js";import{At as n,It as r,Lt as i,Pt as a,Zt as o,in as s,lt as c}from"./effect-DvaDSoKJ.js";import{I as l,a as u,c as d,i as f,l as p,n as m,o as h,r as g,s as _,t as v}from"./profile-CuzQsOR6.js";var y={name:`printer`,size:24,node:[[`path`,{d:`M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2`,key:`143wyd`}],[`path`,{d:`M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6`,key:`1itne7`}],[`rect`,{x:`6`,y:`14`,width:`12`,height:`8`,rx:`1`,key:`1ue0tg`}]]};y.node;var b=l(y),x=t(),S=e();function C(e){let t=(0,x.c)(3),n;return t[0]!==e.contact.href||t[1]!==e.contact.value?(n=(0,S.jsx)(`a`,{href:e.contact.href,className:`hover:underline`,children:e.contact.value}),t[0]=e.contact.href,t[1]=e.contact.value,t[2]=n):n=t[2],n}function w(e){let t=(0,x.c)(5),n;t[0]===e.title?n=t[1]:(n=(0,S.jsx)(`h2`,{className:`text-foreground text-label tracking-label font-mono font-bold uppercase`,children:e.title}),t[0]=e.title,t[1]=n);let r;return t[2]!==e.children||t[3]!==n?(r=(0,S.jsxs)(`section`,{className:`flex flex-col gap-1`,children:[n,e.children]}),t[2]=e.children,t[3]=n,t[4]=r):r=t[4],r}function T(e){let t=(0,x.c)(15),n;t[0]===e.title?n=t[1]:(n=(0,S.jsx)(`strong`,{className:`font-semibold`,children:e.title}),t[0]=e.title,t[1]=n);let r;t[2]===e.details?r=t[3]:(r=i(e.details,E),t[2]=e.details,t[3]=r);let a;t[4]!==n||t[5]!==r?(a=(0,S.jsxs)(`h3`,{children:[n,r]}),t[4]=n,t[5]=r,t[6]=a):a=t[6];let o;t[7]===e.aside?o=t[8]:(o=(0,S.jsx)(`span`,{className:`text-foreground/70 text-label font-mono whitespace-nowrap`,children:e.aside}),t[7]=e.aside,t[8]=o);let s;t[9]!==a||t[10]!==o?(s=(0,S.jsxs)(`div`,{className:`flex flex-wrap items-baseline justify-between gap-x-4`,children:[a,o]}),t[9]=a,t[10]=o,t[11]=s):s=t[11];let c;return t[12]!==e.children||t[13]!==s?(c=(0,S.jsxs)(`div`,{className:`flex break-inside-avoid flex-col gap-0.5`,children:[s,e.children]}),t[12]=e.children,t[13]=s,t[14]=c):c=t[14],c}function E(e){return(0,S.jsxs)(`span`,{className:`text-foreground/70`,children:[` · `,e]},e)}function D(e){let t=(0,x.c)(4),n;t[0]===e.items?n=t[1]:(n=i(e.items,O),t[0]=e.items,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,S.jsx)(`ul`,{className:`flex flex-col gap-0.5`,children:n}),t[2]=n,t[3]=r),r}function O(e){return(0,S.jsxs)(`li`,{className:`flex gap-2.5`,children:[(0,S.jsx)(`span`,{"aria-hidden":!0,className:`border-foreground/75 mt-1.75 size-1 shrink-0 border-2`}),(0,S.jsx)(`span`,{children:e})]},e)}function k(){let e=(0,x.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,S.jsxs)(`svg`,{"aria-hidden":!0,className:`text-foreground pointer-events-none absolute inset-0 -z-1 size-full border-r border-current opacity-7`,children:[r(31,j),r(11,A)]}),e[0]=t):t=e[0],t}function A(e){return(0,S.jsx)(`line`,{x1:0,x2:`100%`,y1:e*26+.5,y2:e*26+.5,stroke:`currentColor`},`row-${e}`)}function j(e){return(0,S.jsx)(`line`,{x1:e*26+.5,x2:e*26+.5,y1:0,y2:`100%`,stroke:`currentColor`},`column-${e}`)}function M(){let e=(0,x.c)(18),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,S.jsx)(p,{variant:`outline`,size:`icon`,"aria-label":`Print or save as PDF`,onClick:R,className:`fixed top-3 right-3 print:hidden`,children:(0,S.jsx)(b,{})}),e[0]=t):t=e[0];let n;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,S.jsx)(k,{}),e[1]=n):n=e[1];let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,S.jsxs)(`h1`,{className:`tracking-name text-2xl leading-none font-extrabold uppercase`,children:[u.firstName,` `,(0,S.jsx)(`span`,{className:`text-foreground/55 tracking-label mt-0.5 block text-xl font-medium`,children:u.lastName})]}),e[2]=r):r=e[2];let o;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,S.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,S.jsxs)(`p`,{className:`text-label tracking-label flex items-center gap-2 whitespace-nowrap uppercase`,children:[(0,S.jsx)(`span`,{"aria-hidden":!0,className:`border-foreground size-2 border-4`}),u.title]}),(0,S.jsx)(`p`,{className:`font-document text-document`,children:d})]}),e[3]=o):o=e[3];let c,l,y;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,S.jsx)(C,{contact:v.phone}),l=(0,S.jsx)(`br`,{}),y=(0,S.jsx)(C,{contact:v.email}),e[4]=c,e[5]=l,e[6]=y):(c=e[4],l=e[5],y=e[6]);let T,E;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,S.jsx)(C,{contact:v.github}),E=(0,S.jsx)(`br`,{}),e[7]=T,e[8]=E):(T=e[7],E=e[8]);let D,O;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,S.jsx)(C,{contact:v.pec}),D=(0,S.jsx)(`br`,{}),e[9]=D,e[10]=O):(D=e[9],O=e[10]);let A;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,S.jsxs)(`header`,{className:`border-foreground relative isolate flex h-65.5 flex-col justify-between border-b-2 pt-4 pb-3 font-mono sm:h-46`,children:[n,r,(0,S.jsxs)(`div`,{className:`flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between sm:gap-6`,children:[o,(0,S.jsxs)(`address`,{className:`text-foreground/70 text-label whitespace-nowrap not-italic sm:text-right`,children:[u.location,` · `,c,l,y,` · `,T,E,`PEC `,O,D,(0,S.jsx)(C,{contact:{href:`https://${u.portfolio}`,value:u.portfolio}}),` · VAT `,u.vat]})]})]}),e[11]=A):A=e[11];let j;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,S.jsx)(w,{title:`Technical Skills`,children:(0,S.jsx)(`dl`,{className:`flex flex-col gap-0.5`,children:i(_,L)})}),e[12]=j):j=e[12];let M;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,S.jsx)(w,{title:`Work Experience`,children:(0,S.jsx)(`div`,{className:`flex flex-col gap-1.5`,children:i(g,I)})}),e[13]=M):M=e[13];let z;e[14]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,S.jsx)(w,{title:`Projects`,children:(0,S.jsx)(`div`,{className:`flex flex-col gap-1.5`,children:i(h,F)})}),e[14]=z):z=e[14];let B,V;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(B=i(m,P),V=(0,S.jsx)(`strong`,{className:`font-semibold`,children:`Languages:`}),e[15]=B,e[16]=V):(B=e[15],V=e[16]);let H;return e[17]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,S.jsxs)(`div`,{className:`pb-safe-bottom min-h-0 flex-1 overflow-y-auto px-6 pt-12 select-text print:overflow-visible print:p-0`,children:[t,(0,S.jsxs)(`article`,{lang:`en`,className:`font-document text-document print:min-h-printed-page trail-grid-width mx-auto flex flex-col gap-3 print:justify-between`,children:[A,j,M,z,(0,S.jsxs)(w,{title:`Education & Languages`,children:[B,(0,S.jsxs)(`p`,{children:[V,` `,s(f,i(N),a(` · `))]})]})]})]}),e[17]=H):H=e[17],H}function N(e){return`${e.language} (${e.level})`}function P(e){return(0,S.jsx)(T,{title:e.degree,details:n([e.school,e.grade],o),aside:e.period},e.school)}function F(e){return(0,S.jsx)(T,{title:e.name,details:[e.role],aside:s(e.href,c(`https://`,``)),children:(0,S.jsx)(`p`,{children:e.description})},e.name)}function I(e){return(0,S.jsx)(T,{title:e.company,details:n([e.role,e.note,e.location],o),aside:e.period,children:(0,S.jsx)(D,{items:e.highlights})},e.company)}function L(e){return(0,S.jsxs)(`div`,{className:`flex`,children:[(0,S.jsxs)(`dt`,{className:`w-32 shrink-0 font-semibold`,children:[e.area,`:`]}),(0,S.jsx)(`dd`,{children:e.items})]},e.area)}function R(){print()}export{M as component};