tmex-cli 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/runtime/cpufeatures-jxwx4v5j.node +0 -0
- package/dist/runtime/server.js +187 -27
- package/dist/runtime/sshcrypto-sx6755rw.node +0 -0
- package/package.json +1 -1
- package/resources/fe-dist/assets/{DevicePage-TP91rSIc.js → DevicePage-BOtxQsop.js} +11 -11
- package/resources/fe-dist/assets/{DevicePage-TP91rSIc.js.map → DevicePage-BOtxQsop.js.map} +1 -1
- package/resources/fe-dist/assets/{DevicesPage-BZvuf7yJ.js → DevicesPage-BrvmKNIQ.js} +2 -2
- package/resources/fe-dist/assets/{DevicesPage-BZvuf7yJ.js.map → DevicesPage-BrvmKNIQ.js.map} +1 -1
- package/resources/fe-dist/assets/{SettingsPage-D7imcSv4.js → SettingsPage-XFRzVSzI.js} +2 -2
- package/resources/fe-dist/assets/{SettingsPage-D7imcSv4.js.map → SettingsPage-XFRzVSzI.js.map} +1 -1
- package/resources/fe-dist/assets/{index-BHd4Baer.js → index-Vweko0vT.js} +3 -3
- package/resources/fe-dist/assets/{index-BHd4Baer.js.map → index-Vweko0vT.js.map} +1 -1
- package/resources/fe-dist/assets/{select-CTgFh7BN.js → select-CRYPgkuV.js} +2 -2
- package/resources/fe-dist/assets/{select-CTgFh7BN.js.map → select-CRYPgkuV.js.map} +1 -1
- package/resources/fe-dist/assets/{switch-0pbATkFp.js → switch-D216fzW5.js} +2 -2
- package/resources/fe-dist/assets/{switch-0pbATkFp.js.map → switch-D216fzW5.js.map} +1 -1
- package/resources/fe-dist/assets/{useValueChanged-BLDl3GEN.js → useValueChanged-CJav2OS1.js} +2 -2
- package/resources/fe-dist/assets/{useValueChanged-BLDl3GEN.js.map → useValueChanged-CJav2OS1.js.map} +1 -1
- package/resources/fe-dist/index.html +1 -1
- package/dist/runtime/cpufeatures-6knf6x1a.node +0 -0
- package/dist/runtime/sshcrypto-6px2c22x.node +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/SettingsPage-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/SettingsPage-XFRzVSzI.js","assets/select-CRYPgkuV.js","assets/useValueChanged-CJav2OS1.js","assets/switch-D216fzW5.js","assets/DevicesPage-BrvmKNIQ.js","assets/DevicePage-BOtxQsop.js","assets/DevicePage-6GBZ9nXN.css"])))=>i.map(i=>d[i]);
|
|
2
2
|
var _T=Object.defineProperty;var Qb=t=>{throw TypeError(t)};var LT=(t,n,a)=>n in t?_T(t,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[n]=a;var ke=(t,n,a)=>LT(t,typeof n!="symbol"?n+"":n,a),Kh=(t,n,a)=>n.has(t)||Qb("Cannot "+a);var Y=(t,n,a)=>(Kh(t,n,"read from private field"),a?a.call(t):n.get(t)),Ge=(t,n,a)=>n.has(t)?Qb("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,a),Me=(t,n,a,i)=>(Kh(t,n,"write to private field"),i?i.call(t,a):n.set(t,a),a),Et=(t,n,a)=>(Kh(t,n,"access private method"),a);var Nu=(t,n,a,i)=>({set _(s){Me(t,n,s,a)},get _(){return Y(t,n,i)}});function kT(t,n){for(var a=0;a<n.length;a++){const i=n[a];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in t)){const c=Object.getOwnPropertyDescriptor(i,s);c&&Object.defineProperty(t,s,c.get?c:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const u of c.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function a(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(s){if(s.ep)return;s.ep=!0;const c=a(s);fetch(s.href,c)}})();const zT="modulepreload",UT=function(t){return"/"+t},Wb={},wp=function(n,a,i){let s=Promise.resolve();if(a&&a.length>0){let u=function(h){return Promise.all(h.map(y=>Promise.resolve(y).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const f=document.querySelector("meta[property=csp-nonce]"),m=(f==null?void 0:f.nonce)||(f==null?void 0:f.getAttribute("nonce"));s=u(a.map(h=>{if(h=UT(h),h in Wb)return;Wb[h]=!0;const y=h.endsWith(".css"),p=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${p}`))return;const b=document.createElement("link");if(b.rel=y?"stylesheet":zT,y||(b.as="script"),b.crossOrigin="",b.href=h,m&&b.setAttribute("nonce",m),document.head.appendChild(b),y)return new Promise((v,S)=>{b.addEventListener("load",v),b.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${h}`)))})}))}function c(u){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=u,window.dispatchEvent(f),!f.defaultPrevented)throw u}return s.then(u=>{for(const f of u||[])f.status==="rejected"&&c(f.reason);return n().catch(c)})};function Aw(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function JU(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var n=t.default;if(typeof n=="function"){var a=function i(){return this instanceof i?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};a.prototype=n.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(t).forEach(function(i){var s=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(a,i,s.get?s:{enumerable:!0,get:function(){return t[i]}})}),a}var Qh={exports:{}},Rl={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.production.js
|
|
@@ -196,5 +196,5 @@ Bot:{{botName}}
|
|
|
196
196
|
${u.right}px ${u.bottom}px,
|
|
197
197
|
${u.right}px ${u.top}px,
|
|
198
198
|
${u.left}px ${u.top}px
|
|
199
|
-
)`}return X.jsx("div",{ref:a,role:"presentation","data-base-ui-inert":"",...s,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:c}})}),Z3=x.forwardRef(function(n,a){const{keepMounted:i=!1,...s}=n,{store:c}=Ro(),u=c.useState("mounted"),f=c.useState("modal"),m=c.useState("open");return u||i?X.jsx(o1.Provider,{value:i,children:X.jsxs(Zk,{ref:a,...s,children:[u&&f===!0&&X.jsx($3,{ref:c.context.internalBackdropRef,inert:W3(!m)}),n.children]})}):null});function h1(t){const n=x.useRef(!0);n.current&&(n.current=!1,t())}let ow={},sw={},lw="";function J3(t){if(typeof document>"u")return!1;const n=qt(t);return wn(n).innerWidth-n.documentElement.clientWidth>0}function e4(t){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;const a=qt(t),i=a.documentElement,s=a.body,c=Li(i)?i:s,u=c.style.overflowY,f=i.style.scrollbarGutter;i.style.scrollbarGutter="stable",c.style.overflowY="scroll";const m=c.offsetWidth;c.style.overflowY="hidden";const h=c.offsetWidth;return c.style.overflowY=u,i.style.scrollbarGutter=f,m===h}function t4(t){const n=qt(t),a=n.documentElement,i=n.body,s=Li(a)?a:i,c={overflowY:s.style.overflowY,overflowX:s.style.overflowX};return Object.assign(s.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(s.style,c)}}function n4(t){var b;const n=qt(t),a=n.documentElement,i=n.body,s=wn(a);let c=0,u=0,f=!1;const m=sn.create();if(Zp&&(((b=s.visualViewport)==null?void 0:b.scale)??1)!==1)return()=>{};function h(){const v=s.getComputedStyle(a),S=s.getComputedStyle(i),T=(v.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";c=a.scrollTop,u=a.scrollLeft,ow={scrollbarGutter:a.style.scrollbarGutter,overflowY:a.style.overflowY,overflowX:a.style.overflowX},lw=a.style.scrollBehavior,sw={position:i.style.position,height:i.style.height,width:i.style.width,boxSizing:i.style.boxSizing,overflowY:i.style.overflowY,overflowX:i.style.overflowX,scrollBehavior:i.style.scrollBehavior};const D=a.scrollHeight>a.clientHeight,_=a.scrollWidth>a.clientWidth,M=v.overflowY==="scroll"||S.overflowY==="scroll",B=v.overflowX==="scroll"||S.overflowX==="scroll",H=Math.max(0,s.innerWidth-i.clientWidth),O=Math.max(0,s.innerHeight-i.clientHeight),k=parseFloat(S.marginTop)+parseFloat(S.marginBottom),Q=parseFloat(S.marginLeft)+parseFloat(S.marginRight),q=Li(a)?a:i;if(f=e4(t),f){a.style.scrollbarGutter=T,q.style.overflowY="hidden",q.style.overflowX="hidden";return}Object.assign(a.style,{scrollbarGutter:T,overflowY:"hidden",overflowX:"hidden"}),(D||M)&&(a.style.overflowY="scroll"),(_||B)&&(a.style.overflowX="scroll"),Object.assign(i.style,{position:"relative",height:k||O?`calc(100dvh - ${k+O}px)`:"100dvh",width:Q||H?`calc(100vw - ${Q+H}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),i.scrollTop=c,i.scrollLeft=u,a.setAttribute("data-base-ui-scroll-locked",""),a.style.scrollBehavior="unset"}function y(){Object.assign(a.style,ow),Object.assign(i.style,sw),f||(a.scrollTop=c,a.scrollLeft=u,a.removeAttribute("data-base-ui-scroll-locked"),a.style.scrollBehavior=lw)}function p(){y(),m.request(h)}return h(),s.addEventListener("resize",p),()=>{m.cancel(),y(),typeof s.removeEventListener=="function"&&s.removeEventListener("resize",p)}}class r4{constructor(){ke(this,"lockCount",0);ke(this,"restore",null);ke(this,"timeoutLock",fa.create());ke(this,"timeoutUnlock",fa.create());ke(this,"release",()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)});ke(this,"unlock",()=>{var n;this.lockCount===0&&this.restore&&((n=this.restore)==null||n.call(this),this.restore=null)})}acquire(n){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(n)),this.release}lock(n){if(this.lockCount===0||this.restore!==null)return;const i=qt(n).documentElement,s=wn(i).getComputedStyle(i).overflowY;if(s==="hidden"||s==="clip"){this.restore=Px;return}const c=dE||!J3(n);this.restore=c?t4(n):n4(n)}}const a4=new r4;function i4(t=!0,n=null){$e(()=>{if(t)return a4.acquire(n)},[t,n])}function o4(t){const n=x.useRef(""),a=x.useCallback(s=>{s.defaultPrevented||(n.current=s.pointerType,t(s,s.pointerType))},[t]);return{onClick:x.useCallback(s=>{if(s.detail===0){t(s,"keyboard");return}"pointerType"in s?t(s,s.pointerType):t(s,n.current),n.current=""},[t]),onPointerDown:a}}function s4(t){const[n,a]=x.useState(null),i=Ye((f,m)=>{t||a(m||(dE?"touch":""))}),s=x.useCallback(()=>{a(null)},[]),{onClick:c,onPointerDown:u}=o4(i);return x.useMemo(()=>({openMethod:n,reset:s,triggerProps:{onClick:c,onPointerDown:u}}),[n,s,c,u])}function l4(t){const{store:n,parentContext:a,actionsRef:i}=t,s=n.useState("open"),c=n.useState("disablePointerDismissal"),u=n.useState("modal"),f=n.useState("popupElement"),{openMethod:m,triggerProps:h,reset:y}=s4(s);JE(n);const{forceUnmount:p}=e1(s,n,()=>{y()}),b=Ye(q=>{const K=Qt(q);return K.preventUnmountOnClose=()=>{n.set("preventUnmountingOnClose",!0)},K}),v=x.useCallback(()=>{n.setOpen(!1,b(Yx))},[n,b]);x.useImperativeHandle(i,()=>({unmount:p,close:v}),[p,v]);const S=r1({popupStore:n,onOpenChange:n.setOpen,treatPopupAsFloatingElement:!0,noEmit:!0}),[E,R]=x.useState(0),T=E===0,D=j3(S),_=KE(S,{outsidePressEvent(){return n.context.internalBackdropRef.current||n.context.backdropRef.current?"intentional":{mouse:u==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(q){if(!n.context.outsidePressEnabledRef.current||"button"in q&&q.button!==0||"touches"in q&&q.touches.length!==1)return!1;const K=er(q);if(T&&!c){const N=K;return u&&(n.context.internalBackdropRef.current||n.context.backdropRef.current)?n.context.internalBackdropRef.current===N||n.context.backdropRef.current===N||Tt(N,f)&&!(N!=null&&N.hasAttribute("data-base-ui-portal")):!0}return!1},escapeKey:T});i4(s&&u===!0,f);const{getReferenceProps:M,getFloatingProps:B,getTriggerProps:H}=i1([D,_]);n.useContextCallback("onNestedDialogOpen",q=>{R(q+1)}),n.useContextCallback("onNestedDialogClose",()=>{R(0)}),x.useEffect(()=>(a!=null&&a.onNestedDialogOpen&&s&&a.onNestedDialogOpen(E),a!=null&&a.onNestedDialogClose&&!s&&a.onNestedDialogClose(),()=>{a!=null&&a.onNestedDialogClose&&s&&a.onNestedDialogClose()}),[s,a,E]);const O=x.useMemo(()=>M(h),[M,h]),k=x.useMemo(()=>H(h),[H,h]),Q=x.useMemo(()=>B(),[B]);n.useSyncedValues({openMethod:m,activeTriggerProps:O,inactiveTriggerProps:k,popupProps:Q,floatingRootContext:S,nestedOpenDialogCount:E})}const c4={...n1,modal:dt(t=>t.modal),nested:dt(t=>t.nested),nestedOpenDialogCount:dt(t=>t.nestedOpenDialogCount),disablePointerDismissal:dt(t=>t.disablePointerDismissal),openMethod:dt(t=>t.openMethod),descriptionElementId:dt(t=>t.descriptionElementId),titleElementId:dt(t=>t.titleElementId),viewportElement:dt(t=>t.viewportElement),role:dt(t=>t.role)};class u4 extends ig{constructor(a){super(f4(a),{popupRef:x.createRef(),backdropRef:x.createRef(),internalBackdropRef:x.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:new Pf,onOpenChange:void 0,onOpenChangeComplete:void 0},c4);ke(this,"setOpen",(a,i)=>{var f,m,h,y;if(i.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!a&&i.trigger==null&&this.state.activeTriggerId!=null&&(i.trigger=this.state.activeTriggerElement??void 0),(m=(f=this.context).onOpenChange)==null||m.call(f,a,i),i.isCanceled)return;const s={open:a,nativeEvent:i.event,reason:i.reason,nested:this.state.nested};(h=this.state.floatingRootContext.context.events)==null||h.emit("openchange",s);const c={open:a},u=((y=i.trigger)==null?void 0:y.id)??null;(u||a)&&(c.activeTriggerId=u,c.activeTriggerElement=i.trigger??null),this.update(c)})}}function f4(t={}){return{...t1(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,role:"dialog",...t}}function d4(t){const{children:n,open:a,defaultOpen:i=!1,onOpenChange:s,onOpenChangeComplete:c,disablePointerDismissal:u=!1,modal:f=!0,actionsRef:m,handle:h,triggerId:y,defaultTriggerId:p=null}=t,b=Ro(!0),v=!!b,S=vr(()=>(h==null?void 0:h.store)??new u4({open:i,openProp:a,activeTriggerId:p,triggerIdProp:y,modal:f,disablePointerDismissal:u,nested:v})).current;h1(()=>{a===void 0&&S.state.open===!1&&i===!0&&S.update({open:!0,activeTriggerId:p})}),S.useControlledProp("openProp",a),S.useControlledProp("triggerIdProp",y),S.useSyncedValues({disablePointerDismissal:u,nested:v,modal:f}),S.useContextCallback("onOpenChange",s),S.useContextCallback("onOpenChangeComplete",c);const E=S.useState("payload");l4({store:S,actionsRef:m,parentContext:b==null?void 0:b.store.context});const R=x.useMemo(()=>({store:S}),[S]);return X.jsx(DE.Provider,{value:R,children:typeof n=="function"?n({payload:E}):n})}const h4=x.forwardRef(function(n,a){const{render:i,className:s,id:c,...u}=n,{store:f}=Ro(),m=mc(c);return f.useSyncedValueWithCleanup("titleElementId",m),dn("h2",n,{ref:a,props:[{id:m},u]})});function m4({...t}){return X.jsx(d4,{"data-slot":"sheet",...t})}function p4({...t}){return X.jsx(Z3,{"data-slot":"sheet-portal",...t})}function g4({className:t,...n}){return X.jsx(Ik,{"data-slot":"sheet-overlay",className:ht("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 duration-100 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50",t),...n})}function y4({className:t,children:n,side:a="right",showCloseButton:i=!0,...s}){return X.jsxs(p4,{children:[X.jsx(g4,{}),X.jsxs(Q3,{"data-slot":"sheet-content","data-side":a,className:ht("bg-background data-open:animate-in data-closed:animate-out data-[side=right]:data-closed:slide-out-to-right-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=top]:data-closed:slide-out-to-top-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:fade-out-0 data-open:fade-in-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=bottom]:data-open:slide-in-from-bottom-10 fixed z-50 flex flex-col gap-4 bg-clip-padding text-sm shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",t),...s,children:[n,i&&X.jsxs(Fk,{"data-slot":"sheet-close",render:X.jsx($p,{variant:"ghost",className:"absolute top-3 right-3",size:"icon-sm"}),children:[X.jsx(zx,{}),X.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function v4({className:t,...n}){return X.jsx("div",{"data-slot":"sheet-header",className:ht("gap-0.5 p-4 flex flex-col",t),...n})}function b4({className:t,...n}){return X.jsx(h4,{"data-slot":"sheet-title",className:ht("text-foreground text-base font-medium",t),...n})}function S4({className:t,...n}){return X.jsx(Yk,{"data-slot":"sheet-description",className:ht("text-muted-foreground text-sm",t),...n})}const m1=x.createContext(void 0);function bc(t){const n=x.useContext(m1);if(n===void 0&&!t)throw new Error(Ur(72));return n}const w4={...n1,disabled:dt(t=>t.disabled),instantType:dt(t=>t.instantType),isInstantPhase:dt(t=>t.isInstantPhase),trackCursorAxis:dt(t=>t.trackCursorAxis),disableHoverablePopup:dt(t=>t.disableHoverablePopup),lastOpenChangeReason:dt(t=>t.openChangeReason),closeDelay:dt(t=>t.closeDelay),hasViewport:dt(t=>t.hasViewport)};class lg extends ig{constructor(a){super({...x4(),...a},{popupRef:x.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:new Pf},w4);ke(this,"setOpen",(a,i)=>{var h,y;const s=i.reason,c=s===Xr,u=a&&s===tf,f=!a&&(s===ec||s===Vp);if(i.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},(y=(h=this.context).onOpenChange)==null||y.call(h,a,i),i.isCanceled)return;const m=()=>{var v;const p={open:a,openChangeReason:s};u?p.instantType="focus":f?p.instantType="dismiss":s===Xr&&(p.instantType=void 0);const b=((v=i.trigger)==null?void 0:v.id)??null;(b||a)&&(p.activeTriggerId=b,p.activeTriggerElement=i.trigger??null),this.update(p)};c?Ni.flushSync(m):m()})}static useStore(a,i){const s=vr(()=>new lg(i)).current,c=a??s,u=r1({popupStore:c,onOpenChange:c.setOpen});return c.state.floatingRootContext=u,c}}function x4(){return{...t1(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeDelay:0,hasViewport:!1}}const E4=$E(function(n){const{disabled:a=!1,defaultOpen:i=!1,open:s,disableHoverablePopup:c=!1,trackCursorAxis:u="none",actionsRef:f,onOpenChange:m,onOpenChangeComplete:h,handle:y,triggerId:p,defaultTriggerId:b=null,children:v}=n,S=lg.useStore(y==null?void 0:y.store,{open:i,openProp:s,activeTriggerId:b,triggerIdProp:p});h1(()=>{s===void 0&&S.state.open===!1&&i===!0&&S.update({open:!0,activeTriggerId:b})}),S.useControlledProp("openProp",s),S.useControlledProp("triggerIdProp",p),S.useContextCallback("onOpenChange",m),S.useContextCallback("onOpenChangeComplete",h);const E=S.useState("open"),R=!a&&E,T=S.useState("activeTriggerId"),D=S.useState("payload");S.useSyncedValues({trackCursorAxis:u,disableHoverablePopup:c}),$e(()=>{E&&a&&S.setOpen(!1,Qt(R_))},[E,a,S]),S.useSyncedValue("disabled",a),JE(S);const{forceUnmount:_,transitionStatus:M}=e1(R,S),B=S.useState("isInstantPhase"),H=S.useState("instantType"),O=S.useState("lastOpenChangeReason"),k=x.useRef(null);$e(()=>{M==="ending"&&O===_f||M!=="ending"&&B?(H!=="delay"&&(k.current=H),S.set("instantType","delay")):k.current!==null&&(S.set("instantType",k.current),k.current=null)},[M,B,O,H,S]),$e(()=>{R&&T==null&&S.set("payload",void 0)},[S,T,R]);const Q=x.useCallback(()=>{S.setOpen(!1,R4(S,Yx))},[S]);x.useImperativeHandle(f,()=>({unmount:_,close:Q}),[_,Q]);const q=S.useState("floatingRootContext"),K=KE(q,{enabled:!a,referencePress:!0}),N=iz(q,{enabled:!a&&u!=="none",axis:u==="none"?void 0:u}),{getReferenceProps:P,getFloatingProps:J,getTriggerProps:G}=i1([K,N]),A=x.useMemo(()=>P(),[P]),I=x.useMemo(()=>G(),[G]),z=x.useMemo(()=>J(),[J]);return S.useSyncedValues({activeTriggerProps:A,inactiveTriggerProps:I,popupProps:z}),X.jsx(m1.Provider,{value:S,children:typeof v=="function"?v({payload:D}):v})});function R4(t,n){const a=Qt(n);return a.preventUnmountOnClose=()=>{t.set("preventUnmountingOnClose",!0)},a}const T4=x.createContext(void 0);function C4(){return x.useContext(T4)}let O4=(function(t){return t[t.popupOpen=wf.popupOpen]="popupOpen",t.triggerDisabled="data-trigger-disabled",t})({});const M4=600,A4=p3(function(n,a){const{className:i,render:s,handle:c,payload:u,disabled:f,delay:m,closeDelay:h,id:y,...p}=n,b=bc(!0),v=(c==null?void 0:c.store)??b;if(!v)throw new Error(Ur(82));const S=mc(y),E=v.useState("isTriggerActive",S),R=v.useState("isOpenedByTrigger",S),T=v.useState("floatingRootContext"),D=x.useRef(null),_=m??M4,M=h??0,{registerTrigger:B,isMountedByThisTrigger:H}=T3(S,D,v,{payload:u,closeDelay:M}),O=C4(),{delayRef:k,isInstantPhase:Q,hasProvider:q}=Xk(T,{open:R});v.useSyncedValue("isInstantPhase",Q);const K=v.useState("disabled"),N=f??K,P=v.useState("trackCursorAxis"),J=v.useState("disableHoverablePopup"),G=U3(T,{enabled:!N,mouseOnly:!0,move:!1,handleClose:!J&&P!=="both"?P3():null,restMs(){const ce=O==null?void 0:O.delay,L=typeof k.current=="object"?k.current.open:void 0;let W=_;return q&&(L!==0?W=m??ce??_:W=0),W},delay(){const ce=typeof k.current=="object"?k.current.close:void 0;let L=M;return h==null&&q&&(L=ce),{close:L}},triggerElementRef:D,isActiveTrigger:E}),A=A3(T,{enabled:!N}).reference,I={open:R},z=v.useState("triggerProps",H);return dn("button",n,{state:I,ref:[a,B,D],props:[G,A,z,{id:S,[O4.triggerDisabled]:N?"":void 0},p],stateAttributesMapping:Bk})}),p1=x.createContext(void 0);function D4(){const t=x.useContext(p1);if(t===void 0)throw new Error(Ur(70));return t}const N4=x.forwardRef(function(n,a){const{children:i,container:s,className:c,render:u,...f}=n,{portalNode:m,portalSubtree:h}=BE({container:s,ref:a,componentProps:n,elementProps:f});return!h&&!m?null:X.jsxs(x.Fragment,{children:[h,m&&Ni.createPortal(i,m)]})}),_4=x.forwardRef(function(n,a){const{keepMounted:i=!1,...s}=n;return bc().useState("mounted")||i?X.jsx(p1.Provider,{value:i,children:X.jsx(N4,{ref:a,...s})}):null}),g1=x.createContext(void 0);function y1(){const t=x.useContext(g1);if(t===void 0)throw new Error(Ur(71));return t}const L4=x.createContext(void 0);function cg(){const t=x.useContext(L4);return(t==null?void 0:t.direction)??"ltr"}const k4=t=>({name:"arrow",options:t,async fn(n){var ie,ce;const{x:a,y:i,placement:s,rects:c,platform:u,elements:f,middlewareData:m}=n,{element:h,padding:y=0,offsetParent:p="real"}=Fa(t,n)||{};if(h==null)return{};const b=vE(y),v={x:a,y:i},S=ng(s),E=tg(S),R=await u.getDimensions(h),T=S==="y",D=T?"top":"left",_=T?"bottom":"right",M=T?"clientHeight":"clientWidth",B=c.reference[E]+c.reference[S]-v[S]-c.floating[E],H=v[S]-c.reference[S],O=p==="real"?await((ie=u.getOffsetParent)==null?void 0:ie.call(u,h)):f.floating;let k=f.floating[M]||c.floating[E];(!k||!await((ce=u.isElement)==null?void 0:ce.call(u,O)))&&(k=f.floating[M]||c.floating[E]);const Q=B/2-H/2,q=k/2-R[E]/2-1,K=Math.min(b[D],q),N=Math.min(b[_],q),P=K,J=k-R[E]-N,G=k/2-R[E]/2+Q,A=dp(P,G,J),I=!m.arrow&&ki(s)!=null&&G!==A&&c.reference[E]/2-(G<P?K:N)-R[E]/2<0,z=I?G<P?G-P:G-J:0;return{[S]:v[S]+z,data:{[S]:A,centerOffset:G-A-z,...I&&{alignmentOffset:z}},reset:I}}}),z4=(t,n)=>({...k4(t),options:[t,n]}),U4={name:"hide",async fn(t){var f;const{width:n,height:a,x:i,y:s}=t.rects.reference,c=n===0&&a===0&&i===0&&s===0;return{data:{referenceHidden:((f=(await Gz().fn(t)).data)==null?void 0:f.referenceHidden)||c}}}},af={sideX:"left",sideY:"top"},H4={name:"adaptiveOrigin",async fn(t){var D,_;const{x:n,y:a,rects:{floating:i},elements:{floating:s},platform:c,strategy:u,placement:f}=t,m=wn(s),h=m.getComputedStyle(s);if(!(h.transitionDuration!=="0s"&&h.transitionDuration!==""))return{x:n,y:a,data:af};const p=await((D=c.getOffsetParent)==null?void 0:D.call(c,s));let b={width:0,height:0};if(u==="fixed"&&(m!=null&&m.visualViewport))b={width:m.visualViewport.width,height:m.visualViewport.height};else if(p===m){const M=qt(s);b={width:M.documentElement.clientWidth,height:M.documentElement.clientHeight}}else await((_=c.isElement)==null?void 0:_.call(c,p))&&(b=await c.getDimensions(p));const v=tr(f);let S=n,E=a;v==="left"&&(S=b.width-(n+i.width)),v==="top"&&(E=b.height-(a+i.height));const R=v==="left"?"right":af.sideX,T=v==="top"?"bottom":af.sideY;return{x:S,y:E,data:{sideX:R,sideY:T}}}};function v1(t,n,a){const i=t==="inline-start"||t==="inline-end";return{top:"top",right:i?a?"inline-start":"inline-end":"right",bottom:"bottom",left:i?a?"inline-end":"inline-start":"left"}[n]}function cw(t,n,a){const{rects:i,placement:s}=t;return{side:v1(n,tr(s),a),align:ki(s)||"center",anchor:{width:i.reference.width,height:i.reference.height},positioner:{width:i.floating.width,height:i.floating.height}}}function j4(t){var nr,Yn;const{anchor:n,positionMethod:a="absolute",side:i="bottom",sideOffset:s=0,align:c="center",alignOffset:u=0,collisionBoundary:f,collisionPadding:m=5,sticky:h=!1,arrowPadding:y=5,disableAnchorTracking:p=!1,keepMounted:b=!1,floatingRootContext:v,mounted:S,collisionAvoidance:E,shiftCrossAxis:R=!1,nodeId:T,adaptiveOrigin:D,lazyFlip:_=!1,externalTree:M}=t,[B,H]=x.useState(null);!S&&B!==null&&H(null);const O=E.side||"flip",k=E.align||"flip",Q=E.fallbackAxisSide||"end",q=typeof n=="function"?n:void 0,K=Ye(q),N=q?K:n,P=oa(n),G=cg()==="rtl",A=B||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":G?"left":"right","inline-start":G?"right":"left"}[i],I=c==="center"?A:`${A}-${c}`;let z=m;const ie=1,ce=i==="bottom"?ie:0,L=i==="top"?ie:0,W=i==="right"?ie:0,$=i==="left"?ie:0;typeof z=="number"?z={top:z+ce,right:z+$,bottom:z+L,left:z+W}:z&&(z={top:(z.top||0)+ce,right:(z.right||0)+$,bottom:(z.bottom||0)+L,left:(z.left||0)+W});const le={boundary:f==="clipping-ancestors"?"clippingAncestors":f,padding:z},fe=x.useRef(null),pe=oa(s),ye=oa(u),Qe=[Iz(nt=>{const yt=cw(nt,i,G),Xe=typeof pe.current=="function"?pe.current(yt):pe.current,vt=typeof ye.current=="function"?ye.current(yt):ye.current;return{mainAxis:Xe,crossAxis:vt,alignmentAxis:vt}},[typeof s!="function"?s:0,typeof u!="function"?u:0,G,i])],Je=k==="none"&&O!=="shift",se=!Je&&(h||R||O==="shift"),ge=O==="none"?null:Vz({...le,padding:{top:z.top+ie,right:z.right+ie,bottom:z.bottom+ie,left:z.left+ie},mainAxis:!R&&O==="flip",crossAxis:k==="flip"?"alignment":!1,fallbackAxisSideDirection:Q}),ve=Je?null:Fz(nt=>{const yt=qt(nt.elements.floating).documentElement;return{...le,rootBoundary:R?{x:0,y:0,width:yt.clientWidth,height:yt.clientHeight}:void 0,mainAxis:k!=="none",crossAxis:se,limiter:h||R?void 0:Yz(Xe=>{if(!fe.current)return{};const{width:vt,height:Yt}=fe.current.getBoundingClientRect(),je=_r(tr(Xe.placement)),Nt=je==="y"?vt:Yt,Gt=je==="y"?z.left+z.right:z.top+z.bottom;return{offset:Nt/2+Gt/2}})}},[le,h,R,z,k]);O==="shift"||k==="shift"||c==="center"?Qe.push(ve,ge):Qe.push(ge,ve),Qe.push(qz({...le,apply({elements:{floating:nt},rects:{reference:yt},availableWidth:Xe,availableHeight:vt}){const Yt=nt.style;Yt.setProperty("--available-width",`${Xe}px`),Yt.setProperty("--available-height",`${vt}px`),Yt.setProperty("--anchor-width",`${yt.width}px`),Yt.setProperty("--anchor-height",`${yt.height}px`)}}),z4(()=>({element:fe.current||document.createElement("div"),padding:y,offsetParent:"floating"}),[y]),{name:"transformOrigin",fn(nt){var Re,Ae,Ke;const{elements:yt,middlewareData:Xe,placement:vt,rects:Yt,y:je}=nt,Nt=tr(vt),Gt=_r(Nt),jt=fe.current,Pn=((Re=Xe.arrow)==null?void 0:Re.x)||0,Bt=((Ae=Xe.arrow)==null?void 0:Ae.y)||0,Tn=(jt==null?void 0:jt.clientWidth)||0,Hr=(jt==null?void 0:jt.clientHeight)||0,U=Pn+Tn/2,V=Bt+Hr/2,re=Math.abs(((Ke=Xe.shift)==null?void 0:Ke.y)||0),me=Yt.reference.height/2,be=typeof s=="function"?s(cw(nt,i,G)):s,ze=re>be,Ne={top:`${U}px calc(100% + ${be}px)`,bottom:`${U}px ${-be}px`,left:`calc(100% + ${be}px) ${V}px`,right:`${-be}px ${V}px`}[Nt],xe=`${U}px ${Yt.reference.y+me-je}px`;return yt.floating.style.setProperty("--transform-origin",se&&Gt==="y"&&ze?xe:Ne),{}}},U4,D),$e(()=>{!S&&v&&v.update({referenceElement:null,floatingElement:null,domReferenceElement:null})},[S,v]);const He=x.useMemo(()=>({elementResize:!p&&typeof ResizeObserver<"u",layoutShift:!p&&typeof IntersectionObserver<"u"}),[p]),{refs:Ee,elements:Ce,x:Te,y:Pe,middlewareData:tt,update:Fe,placement:mt,context:st,isPositioned:Ve,floatingStyles:zt}=M3({rootContext:v,placement:I,middleware:Qe,strategy:a,whileElementsMounted:b?void 0:(...nt)=>ZS(...nt,He),nodeId:T,externalTree:M}),{sideX:Wt,sideY:ln}=tt.adaptiveOrigin||af,it=Ve?a:"fixed",Ct=x.useMemo(()=>{const nt=D?{position:it,[Wt]:Te,[ln]:Pe}:{position:it,...zt};return Ve||(nt.opacity=0),nt},[D,it,Wt,Te,ln,Pe,zt,Ve]),At=x.useRef(null);$e(()=>{if(!S)return;const nt=P.current,yt=typeof nt=="function"?nt():nt,vt=(uw(yt)?yt.current:yt)||null||null;vt!==At.current&&(Ee.setPositionReference(vt),At.current=vt)},[S,Ee,N,P]),x.useEffect(()=>{if(!S)return;const nt=P.current;typeof nt!="function"&&uw(nt)&&nt.current!==At.current&&(Ee.setPositionReference(nt.current),At.current=nt.current)},[S,Ee,N,P]),x.useEffect(()=>{if(b&&S&&Ce.domReference&&Ce.floating)return ZS(Ce.domReference,Ce.floating,Fe,He)},[b,S,Ce,Fe,He]);const hn=tr(mt),mn=v1(i,hn,G),Bn=ki(mt)||"center",Dt=!!((nr=tt.hide)!=null&&nr.referenceHidden);$e(()=>{_&&S&&Ve&&H(hn)},[_,S,Ve,hn]);const xn=x.useMemo(()=>{var nt,yt;return{position:"absolute",top:(nt=tt.arrow)==null?void 0:nt.y,left:(yt=tt.arrow)==null?void 0:yt.x}},[tt.arrow]),$t=((Yn=tt.arrow)==null?void 0:Yn.centerOffset)!==0;return x.useMemo(()=>({positionerStyles:Ct,arrowStyles:xn,arrowRef:fe,arrowUncentered:$t,side:mn,align:Bn,physicalSide:hn,anchorHidden:Dt,refs:Ee,context:st,isPositioned:Ve,update:Fe}),[Ct,xn,fe,$t,mn,Bn,hn,Dt,Ee,st,Ve,Fe])}function uw(t){return t!=null&&"current"in t}function b1(t){return t==="starting"?f_:pr}const B4=x.forwardRef(function(n,a){const{render:i,className:s,anchor:c,positionMethod:u="absolute",side:f="top",align:m="center",sideOffset:h=0,alignOffset:y=0,collisionBoundary:p="clipping-ancestors",collisionPadding:b=5,arrowPadding:v=5,sticky:S=!1,disableAnchorTracking:E=!1,collisionAvoidance:R=h_,...T}=n,D=bc(),_=D4(),M=D.useState("open"),B=D.useState("mounted"),H=D.useState("trackCursorAxis"),O=D.useState("disableHoverablePopup"),k=D.useState("floatingRootContext"),Q=D.useState("instantType"),q=D.useState("transitionStatus"),K=D.useState("hasViewport"),N=j4({anchor:c,positionMethod:u,floatingRootContext:k,mounted:B,side:f,sideOffset:h,align:m,alignOffset:y,collisionBoundary:p,collisionPadding:b,sticky:S,arrowPadding:v,disableAnchorTracking:E,keepMounted:_,collisionAvoidance:R,adaptiveOrigin:K?H4:void 0}),P=x.useMemo(()=>{const I={};return(!M||H==="both"||O)&&(I.pointerEvents="none"),{role:"presentation",hidden:!B,style:{...N.positionerStyles,...I}}},[M,H,O,B,N.positionerStyles]),J=x.useMemo(()=>({open:M,side:N.side,align:N.align,anchorHidden:N.anchorHidden,instant:H!=="none"?"tracking-cursor":Q}),[M,N.side,N.align,N.anchorHidden,H,Q]),G=x.useMemo(()=>({...J,arrowRef:N.arrowRef,arrowStyles:N.arrowStyles,arrowUncentered:N.arrowUncentered}),[J,N.arrowRef,N.arrowStyles,N.arrowUncentered]),A=dn("div",n,{state:J,props:[P,b1(q),T],ref:[a,D.useStateSetter("positionerElement")],stateAttributesMapping:vc});return X.jsx(g1.Provider,{value:G,children:A})}),P4={...vc,...pc},I4=x.forwardRef(function(n,a){const{className:i,render:s,...c}=n,u=bc(),{side:f,align:m}=y1(),h=u.useState("open"),y=u.useState("instantType"),p=u.useState("transitionStatus"),b=u.useState("popupProps"),v=u.useState("floatingRootContext");jf({open:h,ref:u.context.popupRef,onComplete(){var D,_;h&&((_=(D=u.context).onOpenChangeComplete)==null||_.call(D,!0))}});const S=u.useState("disabled"),E=u.useState("closeDelay");return L3(v,{enabled:!S,closeDelay:E}),dn("div",n,{state:{open:h,side:f,align:m,instant:y,transitionStatus:p},ref:[a,u.context.popupRef,u.useStateSetter("popupElement")],props:[b,b1(p),c],stateAttributesMapping:P4})}),F4=x.forwardRef(function(n,a){const{className:i,render:s,...c}=n,f=bc().useState("instantType"),{open:m,arrowRef:h,side:y,align:p,arrowUncentered:b,arrowStyles:v}=y1();return dn("div",n,{state:{open:m,side:y,align:p,uncentered:b,instant:f},ref:[a,h],props:[{style:v,"aria-hidden":!0},c],stateAttributesMapping:vc})});function Y4({...t}){return X.jsx(E4,{"data-slot":"tooltip",...t})}function V4({...t}){return X.jsx(A4,{"data-slot":"tooltip-trigger",...t})}function q4({className:t,side:n="top",sideOffset:a=4,align:i="center",alignOffset:s=0,children:c,...u}){return X.jsx(_4,{children:X.jsx(B4,{align:i,alignOffset:s,side:n,sideOffset:a,className:"isolate z-50",children:X.jsxs(I4,{"data-slot":"tooltip-content",className:ht("data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 rounded-md px-3 py-1.5 text-xs data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2 bg-foreground text-background z-50 w-fit max-w-xs origin-(--transform-origin)",t),...u,children:[c,X.jsx(F4,{className:"size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 bg-foreground fill-foreground z-50 data-[side=bottom]:top-1 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"})]})})})}const G4="sidebar_state",X4=3600*24*7,K4="16rem",Q4="18rem",W4="3rem",$4="b",S1=x.createContext(null);function zs(){const t=x.useContext(S1);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function Z4({defaultOpen:t=!0,open:n,onOpenChange:a,className:i,style:s,children:c,...u}){const f=rL(),[m,h]=x.useState(!1),[y,p]=x.useState(t),b=n??y,v=x.useCallback(T=>{const D=typeof T=="function"?T(b):T;a?a(D):p(D),document.cookie=`${G4}=${D}; path=/; max-age=${X4}`},[a,b]),S=x.useCallback(()=>f?h(T=>!T):v(T=>!T),[f,v,h]);x.useEffect(()=>{const T=D=>{D.key===$4&&(D.metaKey||D.ctrlKey)&&(D.preventDefault(),S())};return window.addEventListener("keydown",T),()=>window.removeEventListener("keydown",T)},[S]);const E=b?"expanded":"collapsed",R=x.useMemo(()=>({state:E,open:b,setOpen:v,isMobile:f,openMobile:m,setOpenMobile:h,toggleSidebar:S}),[E,b,v,f,m,h,S]);return X.jsx(S1.Provider,{value:R,children:X.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":K4,"--sidebar-width-icon":W4,...s},className:ht("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",i),...u,children:c})})}function J4({side:t="left",variant:n="sidebar",collapsible:a="offcanvas",className:i,children:s,dir:c,...u}){const{isMobile:f,state:m,openMobile:h,setOpenMobile:y}=zs();return a==="none"?X.jsx("div",{"data-slot":"sidebar",className:ht("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",i),...u,children:s}):f?X.jsx(m4,{open:h,onOpenChange:y,...u,children:X.jsxs(y4,{dir:c,"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true","data-testid":"mobile-sidebar-sheet",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":Q4},side:t,children:[X.jsxs(v4,{className:"sr-only",children:[X.jsx(b4,{children:"Sidebar"}),X.jsx(S4,{children:"Displays the mobile sidebar."})]}),X.jsx("div",{className:"flex h-full w-full flex-col","data-testid":"sidebar",style:{paddingBottom:"var(--tmex-safe-area-bottom)"},children:s})]})}):X.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":m,"data-collapsible":m==="collapsed"?a:"","data-variant":n,"data-side":t,"data-slot":"sidebar",children:[X.jsx("div",{"data-slot":"sidebar-gap",className:ht("transition-[width] duration-200 ease-linear relative w-(--sidebar-width) bg-transparent","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",n==="floating"||n==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),X.jsx("div",{"data-slot":"sidebar-container","data-side":t,className:ht("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex",n==="floating"||n==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",i),...u,children:X.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner","data-testid":"sidebar",className:"bg-sidebar group-data-[variant=floating]:ring-sidebar-border group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 flex size-full flex-col",style:{paddingBottom:"var(--tmex-safe-area-bottom)"},children:s})})]})}function eU({className:t,onClick:n,...a}){const{toggleSidebar:i}=zs();return X.jsxs($p,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon-sm",className:ht(t),onClick:s=>{n==null||n(s),i()},...a,children:[X.jsx(jN,{}),X.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function tU({className:t,...n}){return X.jsx("main",{"data-slot":"sidebar-inset",className:ht("bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 relative flex w-full flex-1 flex-col",t),...n})}function nU({className:t,...n}){return X.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:ht("gap-2 p-2 flex flex-col",t),...n})}function rU({className:t,...n}){return X.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:ht("gap-2 p-2 flex flex-col",t),...n})}function aU({className:t,...n}){return X.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:ht("no-scrollbar gap-0 flex min-h-0 flex-1 flex-col overflow-auto group-data-[collapsible=icon]:overflow-hidden",t),...n})}function w1({className:t,...n}){return X.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:ht("p-2 relative flex w-full min-w-0 flex-col",t),...n})}function iU({className:t,render:n,...a}){return gc({defaultTagName:"div",props:Eo({className:ht("text-sidebar-foreground/70 ring-sidebar-ring h-8 rounded-md px-2 text-xs font-medium transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 flex shrink-0 items-center outline-hidden [&>svg]:shrink-0",t)},a),render:n,state:{slot:"sidebar-group-label",sidebar:"group-label"}})}function oU({className:t,...n}){return X.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:ht("gap-0 flex w-full min-w-0 flex-col",t),...n})}function sU({className:t,...n}){return X.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:ht("group/menu-item relative",t),...n})}const lU=Qp("ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground gap-2 rounded-md p-2 text-left text-sm transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! focus-visible:ring-2 data-active:font-medium peer/menu-button flex w-full items-center overflow-hidden outline-hidden group/menu-button disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background hover:bg-sidebar-accent hover:text-sidebar-accent-foreground shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function cU({render:t,isActive:n=!1,variant:a="default",size:i="default",tooltip:s,className:c,...u}){const{isMobile:f,state:m}=zs(),h=gc({defaultTagName:"button",props:Eo({className:ht(lU({variant:a,size:i}),c)},u),render:s?V4:t,state:{slot:"sidebar-menu-button",sidebar:"menu-button",size:i,active:n}});return s?(typeof s=="string"&&(s={children:s}),X.jsxs(Y4,{children:[h,X.jsx(q4,{side:"right",align:"center",hidden:m!=="collapsed"||f,...s})]})):h}function uU({className:t,render:n,showOnHover:a=!1,...i}){return gc({defaultTagName:"button",props:Eo({className:ht("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 aspect-square w-5 rounded-md p-0 peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 focus-visible:ring-2 [&>svg]:size-4 flex items-center justify-center outline-hidden transition-transform group-data-[collapsible=icon]:hidden after:absolute after:-inset-2 md:after:hidden [&>svg]:shrink-0",a&&"peer-data-active/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 aria-expanded:opacity-100 md:opacity-0",t)},i),render:n,state:{slot:"sidebar-menu-action",sidebar:"menu-action"}})}function fU({className:t,...n}){return X.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:ht("border-sidebar-border mx-3.5 translate-x-px gap-1 border-l px-2.5 py-0.5 group-data-[collapsible=icon]:hidden flex min-w-0 flex-col",t),...n})}function dU({className:t,...n}){return X.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:ht("group/menu-sub-item relative",t),...n})}function hU({render:t,size:n="md",isActive:a=!1,className:i,...s}){return gc({defaultTagName:"a",props:Eo({className:ht("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground h-7 gap-2 rounded-md px-2 focus-visible:ring-2 data-[size=md]:text-sm data-[size=sm]:text-xs [&>svg]:size-4 flex min-w-0 -translate-x-px items-center overflow-hidden outline-hidden group-data-[collapsible=icon]:hidden disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:shrink-0",i)},s),render:t,state:{slot:"sidebar-menu-sub-button",sidebar:"menu-sub-button",size:n,active:a}})}function Tf({children:t,onClick:n,...a}){const{isMobile:i,setOpenMobile:s}=zs(),c=u=>{i&&s(!1),n==null||n(u)};return X.jsx(Bp,{...a,onClick:c,children:t})}function mU({items:t}){const{t:n}=Nf();return X.jsx(w1,{children:X.jsx(oU,{children:t.map(a=>{var i,s;return X.jsxs(eL,{defaultOpen:a.isActive,render:X.jsx(sU,{}),children:[X.jsx(Tf,{to:a.url,children:X.jsxs(cU,{tooltip:n(a.title),children:[X.jsx(a.icon,{}),X.jsx("span",{children:n(a.title)})]})}),(i=a.items)!=null&&i.length?X.jsxs(X.Fragment,{children:[X.jsxs(tL,{render:X.jsx(uU,{className:"data-[state=open]:rotate-90"}),children:[X.jsx(NN,{}),X.jsx("span",{className:"sr-only",children:"Toggle"})]}),X.jsx(nL,{children:X.jsx(fU,{children:(s=a.items)==null?void 0:s.map(c=>X.jsx(dU,{children:X.jsx(Tf,{to:c.url,children:X.jsx(hU,{children:X.jsx("span",{children:n(c.title)})})})},c.title))})})]}):null]},a.title)})})})}const pU=Qp("h-5 gap-1 rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-3! inline-flex items-center justify-center w-fit whitespace-nowrap shrink-0 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive overflow-hidden group/badge",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 [a]:hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 text-destructive dark:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function gU({className:t,variant:n="default",render:a,...i}){return gc({defaultTagName:"span",props:Eo({className:ht(pU({className:t,variant:n}))},i),render:a,state:{slot:"badge",variant:n}})}const x1=x.createContext(void 0);function If(){const t=x.useContext(x1);if(t===void 0)throw new Error(Ur(53));return t}let Cf=(function(t){return t.scrollAreaCornerHeight="--scroll-area-corner-height",t.scrollAreaCornerWidth="--scroll-area-corner-width",t})({});const Ku=500,fw=16;function Lr(t,n,a){if(!t)return 0;const i=getComputedStyle(t),s=a==="x"?"Inline":"Block";return a==="x"&&n==="margin"?parseFloat(i[`${n}InlineStart`])*2:parseFloat(i[`${n}${s}Start`])+parseFloat(i[`${n}${s}End`])}let yU=(function(t){return t.orientation="data-orientation",t.hovering="data-hovering",t.scrolling="data-scrolling",t.hasOverflowX="data-has-overflow-x",t.hasOverflowY="data-has-overflow-y",t.overflowXStart="data-overflow-x-start",t.overflowXEnd="data-overflow-x-end",t.overflowYStart="data-overflow-y-start",t.overflowYEnd="data-overflow-y-end",t})({});const Qu="base-ui-disable-scrollbar",E1={className:Qu,getElement(t){return X.jsx("style",{nonce:t,href:Qu,precedence:"base-ui:low",children:`.${Qu}{scrollbar-width:none}.${Qu}::-webkit-scrollbar{display:none}`})}};let os=(function(t){return t.scrolling="data-scrolling",t.hasOverflowX="data-has-overflow-x",t.hasOverflowY="data-has-overflow-y",t.overflowXStart="data-overflow-x-start",t.overflowXEnd="data-overflow-x-end",t.overflowYStart="data-overflow-y-start",t.overflowYEnd="data-overflow-y-end",t})({});const ug={hasOverflowX:t=>t?{[os.hasOverflowX]:""}:null,hasOverflowY:t=>t?{[os.hasOverflowY]:""}:null,overflowXStart:t=>t?{[os.overflowXStart]:""}:null,overflowXEnd:t=>t?{[os.overflowXEnd]:""}:null,overflowYStart:t=>t?{[os.overflowYStart]:""}:null,overflowYEnd:t=>t?{[os.overflowYEnd]:""}:null,cornerHidden:()=>null},vU=x.createContext(void 0),bU={disableStyleElements:!1};function SU(){return x.useContext(vU)??bU}const wU={x:0,y:0},dw={width:0,height:0},xU={xStart:!1,xEnd:!1,yStart:!1,yEnd:!1},EU={x:!1,y:!1,corner:!1},RU=x.forwardRef(function(n,a){const{render:i,className:s,overflowEdgeThreshold:c,...u}=n,f=TU(c),m=mc(),h=Ia(),y=Ia(),{nonce:p,disableStyleElements:b}=SU(),[v,S]=x.useState(!1),[E,R]=x.useState(!1),[T,D]=x.useState(!1),[_,M]=x.useState(!1),[B,H]=x.useState(dw),[O,k]=x.useState(dw),[Q,q]=x.useState(xU),[K,N]=x.useState(EU),P=x.useRef(null),J=x.useRef(null),G=x.useRef(null),A=x.useRef(null),I=x.useRef(null),z=x.useRef(null),ie=x.useRef(null),ce=x.useRef(!1),L=x.useRef(0),W=x.useRef(0),$=x.useRef(0),le=x.useRef(0),fe=x.useRef("vertical"),pe=x.useRef(wU),ye=Ye(Ce=>{const Te=Ce.x-pe.current.x,Pe=Ce.y-pe.current.y;pe.current=Ce,Pe!==0&&(D(!0),h.start(Ku,()=>{D(!1)})),Te!==0&&(R(!0),y.start(Ku,()=>{R(!1)}))}),Oe=Ye(Ce=>{Ce.button===0&&(ce.current=!0,L.current=Ce.clientY,W.current=Ce.clientX,fe.current=Ce.currentTarget.getAttribute(yU.orientation),J.current&&($.current=J.current.scrollTop,le.current=J.current.scrollLeft),I.current&&fe.current==="vertical"&&I.current.setPointerCapture(Ce.pointerId),z.current&&fe.current==="horizontal"&&z.current.setPointerCapture(Ce.pointerId))}),we=Ye(Ce=>{if(!ce.current)return;const Te=Ce.clientY-L.current,Pe=Ce.clientX-W.current;if(J.current){const tt=J.current.scrollHeight,Fe=J.current.clientHeight,mt=J.current.scrollWidth,st=J.current.clientWidth;if(I.current&&G.current&&fe.current==="vertical"){const Ve=Lr(G.current,"padding","y"),zt=Lr(I.current,"margin","y"),Wt=I.current.offsetHeight,ln=G.current.offsetHeight-Wt-Ve-zt,it=Te/ln;J.current.scrollTop=$.current+it*(tt-Fe),Ce.preventDefault(),D(!0),h.start(Ku,()=>{D(!1)})}if(z.current&&A.current&&fe.current==="horizontal"){const Ve=Lr(A.current,"padding","x"),zt=Lr(z.current,"margin","x"),Wt=z.current.offsetWidth,ln=A.current.offsetWidth-Wt-Ve-zt,it=Pe/ln;J.current.scrollLeft=le.current+it*(mt-st),Ce.preventDefault(),R(!0),y.start(Ku,()=>{R(!1)})}}}),Qe=Ye(Ce=>{ce.current=!1,I.current&&fe.current==="vertical"&&I.current.releasePointerCapture(Ce.pointerId),z.current&&fe.current==="horizontal"&&z.current.releasePointerCapture(Ce.pointerId)});function Je(Ce){M(Ce.pointerType==="touch")}function se(Ce){if(Je(Ce),Ce.pointerType!=="touch"){const Te=Tt(P.current,Ce.target);S(Te)}}const ge=x.useMemo(()=>({scrolling:E||T,hasOverflowX:!K.x,hasOverflowY:!K.y,overflowXStart:Q.xStart,overflowXEnd:Q.xEnd,overflowYStart:Q.yStart,overflowYEnd:Q.yEnd,cornerHidden:K.corner}),[E,T,K.x,K.y,K.corner,Q]),ve={role:"presentation",onPointerEnter:se,onPointerMove:se,onPointerDown:Je,onPointerLeave(){S(!1)},style:{position:"relative",[Cf.scrollAreaCornerHeight]:`${B.height}px`,[Cf.scrollAreaCornerWidth]:`${B.width}px`}},He=dn("div",n,{state:ge,ref:[a,P],props:[ve,u],stateAttributesMapping:ug}),Ee=x.useMemo(()=>({handlePointerDown:Oe,handlePointerMove:we,handlePointerUp:Qe,handleScroll:ye,cornerSize:B,setCornerSize:H,thumbSize:O,setThumbSize:k,touchModality:_,cornerRef:ie,scrollingX:E,setScrollingX:R,scrollingY:T,setScrollingY:D,hovering:v,setHovering:S,viewportRef:J,rootRef:P,scrollbarYRef:G,scrollbarXRef:A,thumbYRef:I,thumbXRef:z,rootId:m,hiddenState:K,setHiddenState:N,overflowEdges:Q,setOverflowEdges:q,viewportState:ge,overflowEdgeThreshold:f}),[Oe,we,Qe,ye,B,O,_,E,R,T,D,v,S,m,K,Q,ge,f]);return X.jsxs(x1.Provider,{value:Ee,children:[!b&&E1.getElement(p),He]})});function TU(t){if(typeof t=="number"){const n=Math.max(0,t);return{xStart:n,xEnd:n,yStart:n,yEnd:n}}return{xStart:Math.max(0,(t==null?void 0:t.xStart)||0),xEnd:Math.max(0,(t==null?void 0:t.xEnd)||0),yStart:Math.max(0,(t==null?void 0:t.yStart)||0),yEnd:Math.max(0,(t==null?void 0:t.yEnd)||0)}}const CU=x.createContext(void 0);function ls(t,n=Number.MIN_SAFE_INTEGER,a=Number.MAX_SAFE_INTEGER){return Math.max(n,Math.min(t,a))}function OU(t,n){if(typeof IntersectionObserver>"u")return()=>{};const a=new IntersectionObserver(i=>{i.forEach(s=>{s.intersectionRatio>0&&(n(),a.disconnect())})});return a.observe(t),()=>{a.disconnect()}}let Oi=(function(t){return t.scrollAreaOverflowXStart="--scroll-area-overflow-x-start",t.scrollAreaOverflowXEnd="--scroll-area-overflow-x-end",t.scrollAreaOverflowYStart="--scroll-area-overflow-y-start",t.scrollAreaOverflowYEnd="--scroll-area-overflow-y-end",t})({});const hw=1;function mw(t,n){if(n<=0)return 0;const a=ls(t,0,n),i=a,s=n-a,c=i<=hw,u=s<=hw;return c&&u?i<=s?0:n:c?0:u?n:a}let pw=!1;function MU(){pw||Zp||(typeof CSS<"u"&&"registerProperty"in CSS&&[Oi.scrollAreaOverflowXStart,Oi.scrollAreaOverflowXEnd,Oi.scrollAreaOverflowYStart,Oi.scrollAreaOverflowYEnd].forEach(t=>{try{CSS.registerProperty({name:t,syntax:"<length>",inherits:!1,initialValue:"0px"})}catch{}}),pw=!0)}const AU=x.forwardRef(function(n,a){const{render:i,className:s,...c}=n,{viewportRef:u,scrollbarYRef:f,scrollbarXRef:m,thumbYRef:h,thumbXRef:y,cornerRef:p,cornerSize:b,setCornerSize:v,setThumbSize:S,rootId:E,setHiddenState:R,hiddenState:T,handleScroll:D,setHovering:_,setOverflowEdges:M,overflowEdges:B,overflowEdgeThreshold:H,scrollingX:O,scrollingY:k}=If(),Q=cg(),q=x.useRef(!0),K=Ia(),N=Ia(),P=Ye(()=>{const ie=u.current,ce=f.current,L=m.current,W=h.current,$=y.current,le=p.current;if(!ie)return;const fe=ie.scrollHeight,pe=ie.scrollWidth,ye=ie.clientHeight,Oe=ie.clientWidth,we=ie.scrollTop,Qe=ie.scrollLeft;if(fe===0||pe===0)return;const Je=ye>=fe,se=Oe>=pe,ge=Oe/pe,ve=ye/fe,He=Math.max(0,pe-Oe),Ee=Math.max(0,fe-ye);let Ce=0,Te=0;if(!se){let Xe=0;Q==="rtl"?Xe=ls(-Qe,0,He):Xe=ls(Qe,0,He),Ce=mw(Xe,He),Te=He-Ce}const Pe=Je?0:ls(we,0,Ee),tt=Je?0:mw(Pe,Ee),Fe=Je?0:Ee-tt,mt=se?0:Oe,st=Je?0:ye;let Ve=0,zt=0;!se&&!Je&&(Ve=(ce==null?void 0:ce.offsetWidth)||0,zt=(L==null?void 0:L.offsetHeight)||0);const Wt=b.width===0&&b.height===0,ln=Wt?Ve:0,it=Wt?zt:0,Ct=Lr(L,"padding","x"),At=Lr(ce,"padding","y"),hn=Lr($,"margin","x"),mn=Lr(W,"margin","y"),Bn=mt-Ct-hn,Dt=st-At-mn,xn=L?Math.min(L.offsetWidth-ln,Bn):Bn,$t=ce?Math.min(ce.offsetHeight-it,Dt):Dt,nr=Math.max(fw,xn*ge),Yn=Math.max(fw,$t*ve);if(S(Xe=>Xe.height===Yn&&Xe.width===nr?Xe:{width:nr,height:Yn}),ce&&W){const Xe=ce.offsetHeight-Yn-At-mn,vt=fe-ye,Yt=vt===0?0:we/vt,je=Math.min(Xe,Math.max(0,Yt*Xe));W.style.transform=`translate3d(0,${je}px,0)`}if(L&&$){const Xe=L.offsetWidth-nr-Ct-hn,vt=pe-Oe,Yt=vt===0?0:Qe/vt,je=Q==="rtl"?ls(Yt*Xe,-Xe,0):ls(Yt*Xe,0,Xe);$.style.transform=`translate3d(${je}px,0,0)`}const nt=[[Oi.scrollAreaOverflowXStart,Ce],[Oi.scrollAreaOverflowXEnd,Te],[Oi.scrollAreaOverflowYStart,tt],[Oi.scrollAreaOverflowYEnd,Fe]];for(const[Xe,vt]of nt)ie.style.setProperty(Xe,`${vt}px`);le&&(se||Je?v({width:0,height:0}):!se&&!Je&&v({width:Ve,height:zt})),R(Xe=>{const vt=Je||se;return Xe.y===Je&&Xe.x===se&&Xe.corner===vt?Xe:{y:Je,x:se,corner:vt}});const yt={xStart:!se&&Ce>H.xStart,xEnd:!se&&Te>H.xEnd,yStart:!Je&&tt>H.yStart,yEnd:!Je&&Fe>H.yEnd};M(Xe=>Xe.xStart===yt.xStart&&Xe.xEnd===yt.xEnd&&Xe.yStart===yt.yStart&&Xe.yEnd===yt.yEnd?Xe:yt)});$e(()=>{if(!u.current)return;MU();let ie=!1;return OU(u.current,()=>{if(!ie){ie=!0;return}P()})},[P,u]),$e(()=>{queueMicrotask(P)},[P,T,Q]),$e(()=>{var ie;(ie=u.current)!=null&&ie.matches(":hover")&&_(!0)},[u,_]),x.useEffect(()=>{const ie=u.current;if(typeof ResizeObserver>"u"||!ie)return;let ce=!1;const L=new ResizeObserver(()=>{if(!ce){ce=!0;return}P()});return L.observe(ie),N.start(0,()=>{const W=ie.getAnimations({subtree:!0});W.length!==0&&Promise.allSettled(W.map($=>$.finished)).then(P).catch(()=>{})}),()=>{L.disconnect(),N.clear()}},[P,u,N]);function J(){q.current=!1}const G={role:"presentation",...E&&{"data-id":`${E}-viewport`},...(!T.x||!T.y)&&{tabIndex:0},className:E1.className,style:{overflow:"scroll"},onScroll(){u.current&&(P(),q.current||D({x:u.current.scrollLeft,y:u.current.scrollTop}),K.start(100,()=>{q.current=!0}))},onWheel:J,onTouchMove:J,onPointerMove:J,onPointerEnter:J,onKeyDown:J},A=x.useMemo(()=>({scrolling:O||k,hasOverflowX:!T.x,hasOverflowY:!T.y,overflowXStart:B.xStart,overflowXEnd:B.xEnd,overflowYStart:B.yStart,overflowYEnd:B.yEnd,cornerHidden:T.corner}),[O,k,T.x,T.y,T.corner,B]),I=dn("div",n,{ref:[a,u],state:A,props:[G,c],stateAttributesMapping:ug}),z=x.useMemo(()=>({computeThumbPosition:P}),[P]);return X.jsx(CU.Provider,{value:z,children:I})}),R1=x.createContext(void 0);function DU(){const t=x.useContext(R1);if(t===void 0)throw new Error(Ur(54));return t}let Of=(function(t){return t.scrollAreaThumbHeight="--scroll-area-thumb-height",t.scrollAreaThumbWidth="--scroll-area-thumb-width",t})({});const NU=x.forwardRef(function(n,a){const{render:i,className:s,orientation:c="vertical",keepMounted:u=!1,...f}=n,{hovering:m,scrollingX:h,scrollingY:y,hiddenState:p,overflowEdges:b,scrollbarYRef:v,scrollbarXRef:S,viewportRef:E,thumbYRef:R,thumbXRef:T,handlePointerDown:D,handlePointerUp:_,rootId:M,thumbSize:B}=If(),H={hovering:m,scrolling:{horizontal:h,vertical:y}[c],orientation:c,hasOverflowX:!p.x,hasOverflowY:!p.y,overflowXStart:b.xStart,overflowXEnd:b.xEnd,overflowYStart:b.yStart,overflowYEnd:b.yEnd,cornerHidden:p.corner},O=cg();x.useEffect(()=>{const P=E.current,J=c==="vertical"?v.current:S.current;if(!J)return;function G(A){if(!(!P||!J||A.ctrlKey)){if(A.preventDefault(),c==="vertical"){if(P.scrollTop===0&&A.deltaY<0)return}else if(P.scrollLeft===0&&A.deltaX<0)return;if(c==="vertical"){if(P.scrollTop===P.scrollHeight-P.clientHeight&&A.deltaY>0)return}else if(P.scrollLeft===P.scrollWidth-P.clientWidth&&A.deltaX>0)return;c==="vertical"?P.scrollTop+=A.deltaY:P.scrollLeft+=A.deltaX}}return J.addEventListener("wheel",G,{passive:!1}),()=>{J.removeEventListener("wheel",G)}},[c,S,v,E]);const k={...M&&{"data-id":`${M}-scrollbar`},onPointerDown(P){if(P.button===0&&P.currentTarget===P.target&&E.current){if(R.current&&v.current&&c==="vertical"){const J=Lr(R.current,"margin","y"),G=Lr(v.current,"padding","y"),A=R.current.offsetHeight,I=v.current.getBoundingClientRect(),z=P.clientY-I.top-A/2-G+J/2,ie=E.current.scrollHeight,ce=E.current.clientHeight,L=v.current.offsetHeight-A-G-J,$=z/L*(ie-ce);E.current.scrollTop=$}if(T.current&&S.current&&c==="horizontal"){const J=Lr(T.current,"margin","x"),G=Lr(S.current,"padding","x"),A=T.current.offsetWidth,I=S.current.getBoundingClientRect(),z=P.clientX-I.left-A/2-G+J/2,ie=E.current.scrollWidth,ce=E.current.clientWidth,L=S.current.offsetWidth-A-G-J,W=z/L;let $;O==="rtl"?($=(1-W)*(ie-ce),E.current.scrollLeft<=0&&($=-$)):$=W*(ie-ce),E.current.scrollLeft=$}D(P)}},onPointerUp:_,style:{position:"absolute",touchAction:"none",WebkitUserSelect:"none",userSelect:"none",...c==="vertical"&&{top:0,bottom:`var(${Cf.scrollAreaCornerHeight})`,insetInlineEnd:0,[Of.scrollAreaThumbHeight]:`${B.height}px`},...c==="horizontal"&&{insetInlineStart:0,insetInlineEnd:`var(${Cf.scrollAreaCornerWidth})`,bottom:0,[Of.scrollAreaThumbWidth]:`${B.width}px`}}},Q=dn("div",n,{ref:[a,c==="vertical"?v:S],state:H,props:[k,f],stateAttributesMapping:ug}),q=x.useMemo(()=>({orientation:c}),[c]),K=c==="vertical"?p.y:p.x;return u||!K?X.jsx(R1.Provider,{value:q,children:Q}):null}),_U=x.forwardRef(function(n,a){const{render:i,className:s,...c}=n,{thumbYRef:u,thumbXRef:f,handlePointerDown:m,handlePointerMove:h,handlePointerUp:y,setScrollingX:p,setScrollingY:b}=If(),{orientation:v}=DU();return dn("div",n,{ref:[a,v==="vertical"?u:f],state:{orientation:v},props:[{onPointerDown:m,onPointerMove:h,onPointerUp(R){v==="vertical"&&b(!1),v==="horizontal"&&p(!1),y(R)},style:{...v==="vertical"&&{height:`var(${Of.scrollAreaThumbHeight})`},...v==="horizontal"&&{width:`var(${Of.scrollAreaThumbWidth})`}}},c]})}),LU=x.forwardRef(function(n,a){const{render:i,className:s,...c}=n,{cornerRef:u,cornerSize:f,hiddenState:m}=If(),h=dn("div",n,{ref:[a,u],props:[{style:{position:"absolute",bottom:0,insetInlineEnd:0,width:f.width,height:f.height}},c]});return m.corner?null:h});function kU({className:t,children:n,...a}){return X.jsxs(RU,{"data-slot":"scroll-area",className:ht("relative",t),...a,children:[X.jsx(AU,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:n}),X.jsx(zU,{}),X.jsx(LU,{})]})}function zU({className:t,orientation:n="vertical",...a}){return X.jsx(NU,{"data-slot":"scroll-area-scrollbar","data-orientation":n,orientation:n,className:ht("data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-l data-vertical:border-l-transparent flex touch-none p-px transition-colors select-none","[@media(any-pointer:coarse)]:hidden",t),...a,children:X.jsx(_U,{"data-slot":"scroll-area-thumb",className:"rounded-full bg-border relative flex-1"})})}function UU(t){if(!t)return t;let n=t;for(let a=0;a<2;a++){if(!/%25/i.test(n))return n;try{n=decodeURIComponent(n)}catch{return n}}return n}function HU(t){return encodeURIComponent(t)}function jU(){const{t}=Nf(),n=Ya(),a=dx(),{isMobile:i,setOpenMobile:s}=zs(),{toggleDevice:c}=EN(),u=Kl("/devices/:deviceId/windows/:windowId/panes/:paneId",n.pathname),f=u==null?void 0:u.params.deviceId,m=u==null?void 0:u.params.windowId,h=UU(u==null?void 0:u.params.paneId),y=za(q=>q.snapshots),p=za(q=>q.connectedDevices),b=za(q=>q.closeWindow),v=za(q=>q.closePane),S=ff(q=>{var K;return((K=q.settings)==null?void 0:K.language)??"en_US"}),{data:E}=EC({queryKey:["devices"],queryFn:async()=>{const q=await fetch("/api/devices");if(!q.ok)throw new Error("Failed to fetch devices");return q.json()},throwOnError:!1}),R=x.useCallback((q,K)=>{a(q,{replace:(K==null?void 0:K.replace)??!0}),i&&s(!1)},[a,i,s]),T=x.useCallback((q,K,N)=>{_.current=null,window.dispatchEvent(new CustomEvent("tmex:user-initiated-selection",{detail:{deviceId:q,windowId:K,paneId:N}})),R(`/devices/${q}/windows/${K}/panes/${HU(N)}`)},[R]),D=za(q=>q.selectWindow),_=x.useRef(null);x.useEffect(()=>{var I,z;const q=_.current;if(!q)return;if(Date.now()-q.at>5e3){_.current=null;return}const{deviceId:K,windowId:N}=q,P=y[K],J=(I=P==null?void 0:P.session)==null?void 0:I.windows;if(!J)return;const G=J.find(ie=>ie.id===N);if(!((z=G==null?void 0:G.panes)!=null&&z.length))return;_.current=null;const A=G.panes.find(ie=>ie.active)??G.panes[0];T(K,N,A.id)},[y,T]);const M=x.useCallback((q,K,N)=>{D(q,K);const P=N.find(J=>J.active)??N[0];P?(T(q,K,P.id),_.current=null):_.current={deviceId:q,windowId:K,at:Date.now()}},[T,D]),B=x.useCallback((q,K)=>{K?q===f&&R("/devices"):R(`/devices/${q}`),c(q,K)},[c,f,R]),H=x.useCallback((q,K)=>{q===f&&K===m&&R("/devices"),b(q,K)},[b,f,m,R]),O=x.useCallback(q=>{za.getState().createWindow(q)},[]),k=(E==null?void 0:E.devices)??[],Q=x.useMemo(()=>[...k].sort((q,K)=>q.name.localeCompare(K.name,pA(S),{numeric:!0,sensitivity:"base"})),[k,S]);return X.jsxs(w1,{className:"flex flex-col flex-1 min-h-0",children:[X.jsx(iU,{children:t("device.devices")}),X.jsx(kU,{className:"flex-1 min-h-0",children:X.jsxs("div",{className:"space-y-1.5 py-2",children:[Q.map(q=>{var K,N;return X.jsx(BU,{device:q,windows:((N=(K=y[q.id])==null?void 0:K.session)==null?void 0:N.windows)??null,isConnected:p.has(q.id),selectedWindowId:m,selectedPaneId:h,onConnectToggle:()=>B(q.id,p.has(q.id)),onCreateWindow:O,onCloseWindow:H,onClosePane:v,onPaneClick:T,onWindowClick:M},q.id)}),Q.length===0&&X.jsx("div",{className:"text-center text-sm text-muted-foreground py-4",children:t("sidebar.noDevices")})]})})]})}function BU({device:t,windows:n,isConnected:a,selectedWindowId:i,selectedPaneId:s,onConnectToggle:c,onCreateWindow:u,onCloseWindow:f,onClosePane:m,onPaneClick:h,onWindowClick:y}){const{t:p}=Nf(),b=t.type==="local"?kx:LN;return X.jsxs("div",{"data-testid":`device-item-${t.id}`,className:ht("rounded-lg border overflow-hidden text-select-none",a?"bg-card/50":"bg-muted/20"),onClick:a?void 0:c,children:[X.jsx("div",{className:"px-3 py-1 bg-muted/30 border-b",children:X.jsxs("div",{className:"flex items-center gap-2",children:[X.jsx(b,{className:"ml-1 h-4 w-4 text-muted-foreground shrink-0"}),X.jsx("span",{className:"flex-1 truncate text-sm font-medium text-select-none",children:t.name}),X.jsx("div",{className:ht("h-2 w-2 rounded-full shrink-0",a?"bg-emerald-500":"bg-gray-400")}),X.jsx($p,{variant:"ghost",size:"icon-xs",onClick:v=>{v.stopPropagation(),c()},"data-testid":a?`device-disconnect-${t.id}`:`device-connect-${t.id}`,title:p(a?"device.disconnect":"device.connect"),children:a?X.jsx(FN,{className:"h-3.5 w-3.5 text-orange-500"}):X.jsx(VN,{className:"h-3.5 w-3.5 text-emerald-500"})})]})}),a&&X.jsxs("div",{className:"p-1 space-y-0.5",children:[!n&&X.jsx("div",{className:"text-xs text-muted-foreground px-2 py-1.5 text-center",children:p("device.connecting")}),(n==null?void 0:n.length)===0&&X.jsx("div",{className:"text-xs text-muted-foreground px-2 py-1.5 text-center",children:p("window.noWindows")}),n==null?void 0:n.map(v=>X.jsx(PU,{deviceId:t.id,window:v,isSelected:v.id===i,selectedPaneId:s,onPaneClick:h,onWindowClick:y,onCloseWindow:f,onClosePane:m},v.id)),X.jsxs("button",{type:"button",onClick:()=>u(t.id),className:"w-full flex items-center gap-2 px-2 py-1.5 rounded-md text-left transition-colors text-muted-foreground hover:text-foreground hover:bg-accent/30 border border-dashed border-border/50 hover:border-border",children:[X.jsx(PN,{className:"h-3.5 w-3.5 shrink-0"}),X.jsx("span",{className:"text-xs",children:p("window.new")})]})]})]})}function PU({deviceId:t,window:n,isSelected:a,selectedPaneId:i,onPaneClick:s,onWindowClick:c,onCloseWindow:u,onClosePane:f}){const m=n.panes.length>1,h=n.panes.find(p=>p.id===i),y=a&&!!h;return X.jsxs("div",{className:"space-y-0.5",children:[X.jsxs("div",{className:"group relative",children:[X.jsxs("button",{type:"button",onClick:()=>c(t,n.id,n.panes),"data-testid":`window-item-${n.id}`,className:ht("w-full flex items-center gap-2 px-2 py-1.5 rounded-md text-left transition-colors pr-7",y?"bg-primary/15 text-primary border border-primary/30":"hover:bg-accent/50 text-foreground border border-transparent"),children:[X.jsx(gU,{variant:y?"default":"outline",className:"h-5 text-[10px] px-1.5 shrink-0",children:n.index}),X.jsx("span",{className:"flex-1 truncate text-xs font-medium",children:n.name}),n.active&&X.jsx("span",{className:ht("h-1.5 w-1.5 rounded-full shrink-0",y?"bg-foreground/80":"bg-foreground/50")})]}),X.jsx("button",{type:"button",onClick:p=>{p.stopPropagation(),u(t,n.id)},className:ht("absolute right-1.5 top-1/2 -translate-y-1/2 h-5 w-5 flex items-center justify-center rounded text-muted-foreground hover:bg-background hover:text-foreground transition-opacity",y?"opacity-100":"opacity-0 group-hover:opacity-100"),title:"Close window",children:X.jsx("span",{className:"text-xs leading-none",children:"×"})})]}),m&&X.jsx("div",{className:"ml-4 pl-2 border-l border-border/50 space-y-0.5",children:n.panes.map(p=>{const b=p.id===i;return X.jsxs("div",{className:"group relative",children:[X.jsxs("button",{type:"button",onClick:()=>s(t,n.id,p.id),"data-testid":`pane-item-${p.id}`,className:ht("w-full flex items-center gap-2 px-2 py-1 rounded-md text-left transition-colors pr-7",b?"bg-primary/10 text-primary border border-primary/20":"hover:bg-accent/30 text-muted-foreground border border-transparent"),children:[X.jsx("span",{className:"text-[10px] font-mono opacity-60 w-4",children:p.index}),X.jsx("span",{className:"flex-1 truncate text-xs",children:p.title||`Pane ${p.index}`}),p.active&&X.jsx("span",{className:ht("h-1 w-1 rounded-full shrink-0",b?"bg-foreground/80":"bg-foreground/50")})]}),X.jsx("button",{type:"button",onClick:v=>{v.stopPropagation(),f(t,n.id,p.id,n.panes.length)},className:ht("absolute right-1.5 top-1/2 -translate-y-1/2 h-5 w-5 flex items-center justify-center rounded text-muted-foreground hover:bg-background hover:text-foreground transition-opacity",b?"opacity-100":"opacity-0 group-hover:opacity-100"),title:"Close pane",children:X.jsx("span",{className:"text-xs leading-none",children:"×"})})]},p.id)})})]})}function IU(t,n){let a;try{a=t()}catch{return}return{getItem:s=>{var c;const u=m=>m===null?null:JSON.parse(m,void 0),f=(c=a.getItem(s))!=null?c:null;return f instanceof Promise?f.then(u):u(f)},setItem:(s,c)=>a.setItem(s,JSON.stringify(c,void 0)),removeItem:s=>a.removeItem(s)}}const bp=t=>n=>{try{const a=t(n);return a instanceof Promise?a:{then(i){return bp(i)(a)},catch(i){return this}}}catch(a){return{then(i){return this},catch(i){return bp(i)(a)}}}},FU=(t,n)=>(a,i,s)=>{let c={storage:IU(()=>window.localStorage),partialize:R=>R,version:0,merge:(R,T)=>({...T,...R}),...n},u=!1,f=0;const m=new Set,h=new Set;let y=c.storage;if(!y)return t((...R)=>{console.warn(`[zustand persist middleware] Unable to update item '${c.name}', the given storage is currently unavailable.`),a(...R)},i,s);const p=()=>{const R=c.partialize({...i()});return y.setItem(c.name,{state:R,version:c.version})},b=s.setState;s.setState=(R,T)=>(b(R,T),p());const v=t((...R)=>(a(...R),p()),i,s);s.getInitialState=()=>v;let S;const E=()=>{var R,T;if(!y)return;const D=++f;u=!1,m.forEach(M=>{var B;return M((B=i())!=null?B:v)});const _=((T=c.onRehydrateStorage)==null?void 0:T.call(c,(R=i())!=null?R:v))||void 0;return bp(y.getItem.bind(y))(c.name).then(M=>{if(M)if(typeof M.version=="number"&&M.version!==c.version){if(c.migrate){const B=c.migrate(M.state,M.version);return B instanceof Promise?B.then(H=>[!0,H]):[!0,B]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,M.state];return[!1,void 0]}).then(M=>{var B;if(D!==f)return;const[H,O]=M;if(S=c.merge(O,(B=i())!=null?B:v),a(S,!0),H)return p()}).then(()=>{D===f&&(_==null||_(S,void 0),S=i(),u=!0,h.forEach(M=>M(S)))}).catch(M=>{D===f&&(_==null||_(void 0,M))})};return s.persist={setOptions:R=>{c={...c,...R},R.storage&&(y=R.storage)},clearStorage:()=>{y==null||y.removeItem(c.name)},getOptions:()=>c,rehydrate:()=>E(),hasHydrated:()=>u,onHydrate:R=>(m.add(R),()=>{m.delete(R)}),onFinishHydration:R=>(h.add(R),()=>{h.delete(R)})},c.skipHydration||E(),S||v},YU=FU,gw=Fp()(YU(t=>({sidebarCollapsed:!1,inputMode:"direct",editorSendWithEnter:!0,theme:"dark",editorHistory:[],editorDrafts:{},setSidebarCollapsed:n=>t({sidebarCollapsed:n}),setInputMode:n=>t({inputMode:n}),setEditorSendWithEnter:n=>t({editorSendWithEnter:n}),setTheme:n=>t({theme:n}),addEditorHistory:n=>t(a=>({editorHistory:[n,...a.editorHistory.slice(0,49)]})),setEditorDraft:(n,a)=>t(i=>({editorDrafts:{...i.editorDrafts,[n]:a}})),removeEditorDraft:n=>t(a=>{if(!(n in a.editorDrafts))return a;const i={...a.editorDrafts};return delete i[n],{editorDrafts:i}})}),{name:"tmex-ui",partialize:t=>({sidebarCollapsed:t.sidebarCollapsed,inputMode:t.inputMode,editorSendWithEnter:t.editorSendWithEnter,theme:t.theme,editorHistory:t.editorHistory,editorDrafts:t.editorDrafts})}));function VU(){const{t}=Nf(),{isMobile:n,setOpenMobile:a}=zs(),i=ff(y=>{var p;return(p=y.settings)==null?void 0:p.siteName}),s=ff(y=>y.fetchSettings);x.useEffect(()=>{s()},[s]);const c=i??"tmex",u=gw(y=>y.theme),f=gw(y=>y.setTheme),m=u==="dark",h=()=>{const y=m?"light":"dark";f(y),document.documentElement.classList.toggle("dark",y==="dark")};return X.jsxs("div",{className:"flex items-center gap-2 px-2",children:[X.jsxs(Tf,{to:"/",className:"flex flex-1 items-center gap-3 overflow-hidden",children:[X.jsx("div",{className:"h-8 w-8 shrink-0 overflow-hidden rounded-lg border-2 border-black",children:X.jsx("img",{src:"/logo.png",alt:c,className:"h-full w-full object-cover"})}),X.jsx("span",{className:"truncate text-sm font-semibold tracking-tight",children:c})]}),X.jsx("button",{type:"button",onClick:h,className:"inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-muted-foreground hover:bg-sidebar-accent hover:text-foreground","aria-label":t(m?"settings.themeLight":"settings.themeDark"),title:t(m?"settings.themeLight":"settings.themeDark"),children:m?X.jsx(KN,{className:"h-4 w-4"}):X.jsx(UN,{className:"h-4 w-4"})}),X.jsx(Tf,{to:"/settings",className:"inline-flex h-8 w-8 mr-[-8px] shrink-0 items-center justify-center rounded-md text-muted-foreground hover:bg-sidebar-accent hover:text-foreground","aria-label":t("sidebar.settings"),title:t("sidebar.settings"),children:X.jsx(GN,{className:"h-4 w-4"})}),n&&X.jsx("button",{type:"button","data-testid":"mobile-sidebar-close",onClick:()=>a(!1),className:"inline-flex h-8 w-8 mr-[-8px] shrink-0 items-center justify-center rounded-md text-muted-foreground hover:bg-sidebar-accent hover:text-foreground","aria-label":t("nav.closeSidebar"),title:t("nav.closeSidebar"),children:X.jsx(zx,{className:"h-4 w-4"})})]})}const qU=[{title:"nav.manageDevices",url:"/devices",icon:kx}];function GU({...t}){return X.jsxs(J4,{variant:"inset",...t,children:[X.jsx("div",{className:"h-[var(--tmex-safe-area-top)]"}),X.jsx(nU,{className:"py-3",children:X.jsx(VU,{})}),X.jsx(aU,{className:"flex flex-col",children:X.jsx(jU,{})}),X.jsxs(rU,{children:[X.jsx(mU,{items:qU}),X.jsx("div",{className:"h-[var(--tmex-safe-area-bottom)]"})]})]})}function XU(){var t;try{const n=localStorage.getItem("tmex-ui");if(!n){document.documentElement.classList.add("dark");return}const a=JSON.parse(n),i=(t=a==null?void 0:a.state)==null?void 0:t.theme,s=i==="dark"||i===void 0;document.documentElement.classList.toggle("dark",s)}catch{document.documentElement.classList.add("dark")}}XU();const KU=new lC({defaultOptions:{queries:{staleTime:5e3,retry:1}}});function QU(){return X.jsx(RN,{children:X.jsxs(Z4,{children:[X.jsx(GU,{}),X.jsxs(tU,{className:"h-dvh overflow-hidden",children:[X.jsx("div",{className:"h-[var(--tmex-safe-area-top)]"}),X.jsx(bM,{}),X.jsx("div",{className:"h-[var(--tmex-safe-area-bottom)]"})]})]})})}function Ll({moduleLoader:t}){const[n,a]=x.useState(null),i=$O();x.useEffect(()=>{t().then(a)},[t]);const s=n==null?void 0:n.default,c=n==null?void 0:n.PageTitle,u=n==null?void 0:n.PageActions;return X.jsxs(X.Fragment,{children:[X.jsxs("header",{className:"sticky top-0 z-10 flex h-12 md:h-16 shrink-0 items-center justify-between gap-2 bg-background/95 backdrop-blur-sm","data-testid":"mobile-topbar",children:[X.jsxs("div",{className:"flex items-center gap-2 px-4",children:[X.jsx(eU,{className:"-ml-1","data-testid":"mobile-sidebar-open"}),X.jsx(Lk,{orientation:"vertical",className:"mr-2 data-[orientation=vertical]:h-4"}),X.jsx("span",{className:"truncate text-sm font-semibold",children:c?X.jsx(c,{...i}):""})]}),X.jsx("div",{className:"flex shrink-0 items-center gap-1 px-4",children:u&&X.jsx(u,{...i})})]}),X.jsx("div",{className:"flex min-h-0 flex-1 flex-col gap-4 !pt-0 p-2 md:p-4 mb-2",children:X.jsx("div",{className:"bg-muted/50 min-h-0 flex-1 overflow-auto overscroll-auto rounded-xl [-webkit-overflow-scrolling:touch]",children:s?X.jsx(s,{}):null})})]})}const WU=()=>wp(()=>import("./SettingsPage-D7imcSv4.js"),__vite__mapDeps([0,1,2,3])),yw=()=>wp(()=>import("./DevicesPage-BZvuf7yJ.js"),__vite__mapDeps([4,1,2])),vw=()=>wp(()=>import("./DevicePage-TP91rSIc.js"),__vite__mapDeps([5,2,3,6])),$U=VM([{path:"/",Component:QU,children:[{index:!0,element:X.jsx(Ll,{moduleLoader:yw})},{path:"devices",element:X.jsx(Ll,{moduleLoader:yw})},{path:"devices/:deviceId",element:X.jsx(Ll,{moduleLoader:vw})},{path:"devices/:deviceId/windows/:windowId/panes/:paneId",element:X.jsx(Ll,{moduleLoader:vw})},{path:"settings",element:X.jsx(Ll,{moduleLoader:WU})}]}]),T1=document.getElementById("root");if(!T1)throw new Error("Root element not found");AC.createRoot(T1).render(X.jsx(x.StrictMode,{children:X.jsxs(fC,{client:KU,children:[X.jsx(gM,{router:$U}),X.jsx(A2,{richColors:!0,position:"top-right",closeButton:!0,offset:{top:"calc(16px + var(--tmex-safe-area-top))",right:"16px",bottom:"16px",left:"16px"},mobileOffset:{top:"calc(12px + var(--tmex-safe-area-top))",right:"12px",bottom:"12px",left:"12px"},toastOptions:{duration:6e3}})]})}));export{t1 as $,L3 as A,$p as B,Ix as C,d4 as D,Qt as E,rz as F,pc as G,vc as H,tH as I,X3 as J,b1 as K,Zk as L,iH as M,j4 as N,Xr as O,h_ as P,$3 as Q,W3 as R,bH as S,cH as T,ig as U,Pf as V,n1 as W,zx as X,vr as Y,pr as Z,qk as _,uC as a,hH as a$,dt as a0,$E as a1,h1 as a2,vH as a3,Ls as a4,$e as a5,Ms as a6,s4 as a7,JE as a8,e1 as a9,lH as aA,U3 as aB,P3 as aC,A3 as aD,Ni as aE,gH as aF,Yl as aG,pH as aH,OE as aI,yH as aJ,xf as aK,aH as aL,_k as aM,kx as aN,PN as aO,LN as aP,gU as aQ,Lk as aR,Bp as aS,XL as aT,sc as aU,km as aV,Vl as aW,iC as aX,zn as aY,Jn as aZ,Lw as a_,Ia as aa,i4 as ab,Ye as ac,tf as ad,ec as ae,Vp as af,Fx as ag,sH as ah,Yx as ai,r1 as aj,KE as ak,j3 as al,cg as am,nH as an,rH as ao,i1 as ap,SH as aq,G_ as ar,bn as as,Ba as at,Pa as au,qt as av,p3 as aw,ks as ax,T3 as ay,Tt as az,ff as b,ek as b0,mH as b1,fH as b2,dH as b3,Fu as b4,Ua as b5,b_ as b6,_f as b7,qp as b8,tc as b9,Zl as bA,$O as bB,dx as bC,UU as bD,HU as bE,Px as bF,Lt as bG,Ro as bH,l4 as bI,DE as bJ,u4 as bK,ak as ba,Jp as bb,fp as bc,oa as bd,zS as be,Rm as bf,er as bg,nk as bh,rk as bi,qx as bj,ZE as bk,O3 as bl,wH as bm,zE as bn,x3 as bo,Bk as bp,SU as bq,ls as br,wn as bs,Zp as bt,E1 as bu,uH as bv,JU as bw,jT as bx,lc as by,za as bz,Qr as c,gw as d,EC as e,eH as f,Q3 as g,Fk as h,An as i,X as j,ht as k,h4 as l,Yk as m,Z3 as n,Ik as o,Ur as p,oH as q,x as r,Kp as s,pA as t,Nf as u,Eo as v,Jl as w,mc as x,dn as y,jf as z};
|
|
200
|
-
//# sourceMappingURL=index-
|
|
199
|
+
)`}return X.jsx("div",{ref:a,role:"presentation","data-base-ui-inert":"",...s,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:c}})}),Z3=x.forwardRef(function(n,a){const{keepMounted:i=!1,...s}=n,{store:c}=Ro(),u=c.useState("mounted"),f=c.useState("modal"),m=c.useState("open");return u||i?X.jsx(o1.Provider,{value:i,children:X.jsxs(Zk,{ref:a,...s,children:[u&&f===!0&&X.jsx($3,{ref:c.context.internalBackdropRef,inert:W3(!m)}),n.children]})}):null});function h1(t){const n=x.useRef(!0);n.current&&(n.current=!1,t())}let ow={},sw={},lw="";function J3(t){if(typeof document>"u")return!1;const n=qt(t);return wn(n).innerWidth-n.documentElement.clientWidth>0}function e4(t){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;const a=qt(t),i=a.documentElement,s=a.body,c=Li(i)?i:s,u=c.style.overflowY,f=i.style.scrollbarGutter;i.style.scrollbarGutter="stable",c.style.overflowY="scroll";const m=c.offsetWidth;c.style.overflowY="hidden";const h=c.offsetWidth;return c.style.overflowY=u,i.style.scrollbarGutter=f,m===h}function t4(t){const n=qt(t),a=n.documentElement,i=n.body,s=Li(a)?a:i,c={overflowY:s.style.overflowY,overflowX:s.style.overflowX};return Object.assign(s.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(s.style,c)}}function n4(t){var b;const n=qt(t),a=n.documentElement,i=n.body,s=wn(a);let c=0,u=0,f=!1;const m=sn.create();if(Zp&&(((b=s.visualViewport)==null?void 0:b.scale)??1)!==1)return()=>{};function h(){const v=s.getComputedStyle(a),S=s.getComputedStyle(i),T=(v.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";c=a.scrollTop,u=a.scrollLeft,ow={scrollbarGutter:a.style.scrollbarGutter,overflowY:a.style.overflowY,overflowX:a.style.overflowX},lw=a.style.scrollBehavior,sw={position:i.style.position,height:i.style.height,width:i.style.width,boxSizing:i.style.boxSizing,overflowY:i.style.overflowY,overflowX:i.style.overflowX,scrollBehavior:i.style.scrollBehavior};const D=a.scrollHeight>a.clientHeight,_=a.scrollWidth>a.clientWidth,M=v.overflowY==="scroll"||S.overflowY==="scroll",B=v.overflowX==="scroll"||S.overflowX==="scroll",H=Math.max(0,s.innerWidth-i.clientWidth),O=Math.max(0,s.innerHeight-i.clientHeight),k=parseFloat(S.marginTop)+parseFloat(S.marginBottom),Q=parseFloat(S.marginLeft)+parseFloat(S.marginRight),q=Li(a)?a:i;if(f=e4(t),f){a.style.scrollbarGutter=T,q.style.overflowY="hidden",q.style.overflowX="hidden";return}Object.assign(a.style,{scrollbarGutter:T,overflowY:"hidden",overflowX:"hidden"}),(D||M)&&(a.style.overflowY="scroll"),(_||B)&&(a.style.overflowX="scroll"),Object.assign(i.style,{position:"relative",height:k||O?`calc(100dvh - ${k+O}px)`:"100dvh",width:Q||H?`calc(100vw - ${Q+H}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),i.scrollTop=c,i.scrollLeft=u,a.setAttribute("data-base-ui-scroll-locked",""),a.style.scrollBehavior="unset"}function y(){Object.assign(a.style,ow),Object.assign(i.style,sw),f||(a.scrollTop=c,a.scrollLeft=u,a.removeAttribute("data-base-ui-scroll-locked"),a.style.scrollBehavior=lw)}function p(){y(),m.request(h)}return h(),s.addEventListener("resize",p),()=>{m.cancel(),y(),typeof s.removeEventListener=="function"&&s.removeEventListener("resize",p)}}class r4{constructor(){ke(this,"lockCount",0);ke(this,"restore",null);ke(this,"timeoutLock",fa.create());ke(this,"timeoutUnlock",fa.create());ke(this,"release",()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)});ke(this,"unlock",()=>{var n;this.lockCount===0&&this.restore&&((n=this.restore)==null||n.call(this),this.restore=null)})}acquire(n){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(n)),this.release}lock(n){if(this.lockCount===0||this.restore!==null)return;const i=qt(n).documentElement,s=wn(i).getComputedStyle(i).overflowY;if(s==="hidden"||s==="clip"){this.restore=Px;return}const c=dE||!J3(n);this.restore=c?t4(n):n4(n)}}const a4=new r4;function i4(t=!0,n=null){$e(()=>{if(t)return a4.acquire(n)},[t,n])}function o4(t){const n=x.useRef(""),a=x.useCallback(s=>{s.defaultPrevented||(n.current=s.pointerType,t(s,s.pointerType))},[t]);return{onClick:x.useCallback(s=>{if(s.detail===0){t(s,"keyboard");return}"pointerType"in s?t(s,s.pointerType):t(s,n.current),n.current=""},[t]),onPointerDown:a}}function s4(t){const[n,a]=x.useState(null),i=Ye((f,m)=>{t||a(m||(dE?"touch":""))}),s=x.useCallback(()=>{a(null)},[]),{onClick:c,onPointerDown:u}=o4(i);return x.useMemo(()=>({openMethod:n,reset:s,triggerProps:{onClick:c,onPointerDown:u}}),[n,s,c,u])}function l4(t){const{store:n,parentContext:a,actionsRef:i}=t,s=n.useState("open"),c=n.useState("disablePointerDismissal"),u=n.useState("modal"),f=n.useState("popupElement"),{openMethod:m,triggerProps:h,reset:y}=s4(s);JE(n);const{forceUnmount:p}=e1(s,n,()=>{y()}),b=Ye(q=>{const K=Qt(q);return K.preventUnmountOnClose=()=>{n.set("preventUnmountingOnClose",!0)},K}),v=x.useCallback(()=>{n.setOpen(!1,b(Yx))},[n,b]);x.useImperativeHandle(i,()=>({unmount:p,close:v}),[p,v]);const S=r1({popupStore:n,onOpenChange:n.setOpen,treatPopupAsFloatingElement:!0,noEmit:!0}),[E,R]=x.useState(0),T=E===0,D=j3(S),_=KE(S,{outsidePressEvent(){return n.context.internalBackdropRef.current||n.context.backdropRef.current?"intentional":{mouse:u==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(q){if(!n.context.outsidePressEnabledRef.current||"button"in q&&q.button!==0||"touches"in q&&q.touches.length!==1)return!1;const K=er(q);if(T&&!c){const N=K;return u&&(n.context.internalBackdropRef.current||n.context.backdropRef.current)?n.context.internalBackdropRef.current===N||n.context.backdropRef.current===N||Tt(N,f)&&!(N!=null&&N.hasAttribute("data-base-ui-portal")):!0}return!1},escapeKey:T});i4(s&&u===!0,f);const{getReferenceProps:M,getFloatingProps:B,getTriggerProps:H}=i1([D,_]);n.useContextCallback("onNestedDialogOpen",q=>{R(q+1)}),n.useContextCallback("onNestedDialogClose",()=>{R(0)}),x.useEffect(()=>(a!=null&&a.onNestedDialogOpen&&s&&a.onNestedDialogOpen(E),a!=null&&a.onNestedDialogClose&&!s&&a.onNestedDialogClose(),()=>{a!=null&&a.onNestedDialogClose&&s&&a.onNestedDialogClose()}),[s,a,E]);const O=x.useMemo(()=>M(h),[M,h]),k=x.useMemo(()=>H(h),[H,h]),Q=x.useMemo(()=>B(),[B]);n.useSyncedValues({openMethod:m,activeTriggerProps:O,inactiveTriggerProps:k,popupProps:Q,floatingRootContext:S,nestedOpenDialogCount:E})}const c4={...n1,modal:dt(t=>t.modal),nested:dt(t=>t.nested),nestedOpenDialogCount:dt(t=>t.nestedOpenDialogCount),disablePointerDismissal:dt(t=>t.disablePointerDismissal),openMethod:dt(t=>t.openMethod),descriptionElementId:dt(t=>t.descriptionElementId),titleElementId:dt(t=>t.titleElementId),viewportElement:dt(t=>t.viewportElement),role:dt(t=>t.role)};class u4 extends ig{constructor(a){super(f4(a),{popupRef:x.createRef(),backdropRef:x.createRef(),internalBackdropRef:x.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:new Pf,onOpenChange:void 0,onOpenChangeComplete:void 0},c4);ke(this,"setOpen",(a,i)=>{var f,m,h,y;if(i.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!a&&i.trigger==null&&this.state.activeTriggerId!=null&&(i.trigger=this.state.activeTriggerElement??void 0),(m=(f=this.context).onOpenChange)==null||m.call(f,a,i),i.isCanceled)return;const s={open:a,nativeEvent:i.event,reason:i.reason,nested:this.state.nested};(h=this.state.floatingRootContext.context.events)==null||h.emit("openchange",s);const c={open:a},u=((y=i.trigger)==null?void 0:y.id)??null;(u||a)&&(c.activeTriggerId=u,c.activeTriggerElement=i.trigger??null),this.update(c)})}}function f4(t={}){return{...t1(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,role:"dialog",...t}}function d4(t){const{children:n,open:a,defaultOpen:i=!1,onOpenChange:s,onOpenChangeComplete:c,disablePointerDismissal:u=!1,modal:f=!0,actionsRef:m,handle:h,triggerId:y,defaultTriggerId:p=null}=t,b=Ro(!0),v=!!b,S=vr(()=>(h==null?void 0:h.store)??new u4({open:i,openProp:a,activeTriggerId:p,triggerIdProp:y,modal:f,disablePointerDismissal:u,nested:v})).current;h1(()=>{a===void 0&&S.state.open===!1&&i===!0&&S.update({open:!0,activeTriggerId:p})}),S.useControlledProp("openProp",a),S.useControlledProp("triggerIdProp",y),S.useSyncedValues({disablePointerDismissal:u,nested:v,modal:f}),S.useContextCallback("onOpenChange",s),S.useContextCallback("onOpenChangeComplete",c);const E=S.useState("payload");l4({store:S,actionsRef:m,parentContext:b==null?void 0:b.store.context});const R=x.useMemo(()=>({store:S}),[S]);return X.jsx(DE.Provider,{value:R,children:typeof n=="function"?n({payload:E}):n})}const h4=x.forwardRef(function(n,a){const{render:i,className:s,id:c,...u}=n,{store:f}=Ro(),m=mc(c);return f.useSyncedValueWithCleanup("titleElementId",m),dn("h2",n,{ref:a,props:[{id:m},u]})});function m4({...t}){return X.jsx(d4,{"data-slot":"sheet",...t})}function p4({...t}){return X.jsx(Z3,{"data-slot":"sheet-portal",...t})}function g4({className:t,...n}){return X.jsx(Ik,{"data-slot":"sheet-overlay",className:ht("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 duration-100 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50",t),...n})}function y4({className:t,children:n,side:a="right",showCloseButton:i=!0,...s}){return X.jsxs(p4,{children:[X.jsx(g4,{}),X.jsxs(Q3,{"data-slot":"sheet-content","data-side":a,className:ht("bg-background data-open:animate-in data-closed:animate-out data-[side=right]:data-closed:slide-out-to-right-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=top]:data-closed:slide-out-to-top-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:fade-out-0 data-open:fade-in-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=bottom]:data-open:slide-in-from-bottom-10 fixed z-50 flex flex-col gap-4 bg-clip-padding text-sm shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",t),...s,children:[n,i&&X.jsxs(Fk,{"data-slot":"sheet-close",render:X.jsx($p,{variant:"ghost",className:"absolute top-3 right-3",size:"icon-sm"}),children:[X.jsx(zx,{}),X.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function v4({className:t,...n}){return X.jsx("div",{"data-slot":"sheet-header",className:ht("gap-0.5 p-4 flex flex-col",t),...n})}function b4({className:t,...n}){return X.jsx(h4,{"data-slot":"sheet-title",className:ht("text-foreground text-base font-medium",t),...n})}function S4({className:t,...n}){return X.jsx(Yk,{"data-slot":"sheet-description",className:ht("text-muted-foreground text-sm",t),...n})}const m1=x.createContext(void 0);function bc(t){const n=x.useContext(m1);if(n===void 0&&!t)throw new Error(Ur(72));return n}const w4={...n1,disabled:dt(t=>t.disabled),instantType:dt(t=>t.instantType),isInstantPhase:dt(t=>t.isInstantPhase),trackCursorAxis:dt(t=>t.trackCursorAxis),disableHoverablePopup:dt(t=>t.disableHoverablePopup),lastOpenChangeReason:dt(t=>t.openChangeReason),closeDelay:dt(t=>t.closeDelay),hasViewport:dt(t=>t.hasViewport)};class lg extends ig{constructor(a){super({...x4(),...a},{popupRef:x.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:new Pf},w4);ke(this,"setOpen",(a,i)=>{var h,y;const s=i.reason,c=s===Xr,u=a&&s===tf,f=!a&&(s===ec||s===Vp);if(i.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},(y=(h=this.context).onOpenChange)==null||y.call(h,a,i),i.isCanceled)return;const m=()=>{var v;const p={open:a,openChangeReason:s};u?p.instantType="focus":f?p.instantType="dismiss":s===Xr&&(p.instantType=void 0);const b=((v=i.trigger)==null?void 0:v.id)??null;(b||a)&&(p.activeTriggerId=b,p.activeTriggerElement=i.trigger??null),this.update(p)};c?Ni.flushSync(m):m()})}static useStore(a,i){const s=vr(()=>new lg(i)).current,c=a??s,u=r1({popupStore:c,onOpenChange:c.setOpen});return c.state.floatingRootContext=u,c}}function x4(){return{...t1(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeDelay:0,hasViewport:!1}}const E4=$E(function(n){const{disabled:a=!1,defaultOpen:i=!1,open:s,disableHoverablePopup:c=!1,trackCursorAxis:u="none",actionsRef:f,onOpenChange:m,onOpenChangeComplete:h,handle:y,triggerId:p,defaultTriggerId:b=null,children:v}=n,S=lg.useStore(y==null?void 0:y.store,{open:i,openProp:s,activeTriggerId:b,triggerIdProp:p});h1(()=>{s===void 0&&S.state.open===!1&&i===!0&&S.update({open:!0,activeTriggerId:b})}),S.useControlledProp("openProp",s),S.useControlledProp("triggerIdProp",p),S.useContextCallback("onOpenChange",m),S.useContextCallback("onOpenChangeComplete",h);const E=S.useState("open"),R=!a&&E,T=S.useState("activeTriggerId"),D=S.useState("payload");S.useSyncedValues({trackCursorAxis:u,disableHoverablePopup:c}),$e(()=>{E&&a&&S.setOpen(!1,Qt(R_))},[E,a,S]),S.useSyncedValue("disabled",a),JE(S);const{forceUnmount:_,transitionStatus:M}=e1(R,S),B=S.useState("isInstantPhase"),H=S.useState("instantType"),O=S.useState("lastOpenChangeReason"),k=x.useRef(null);$e(()=>{M==="ending"&&O===_f||M!=="ending"&&B?(H!=="delay"&&(k.current=H),S.set("instantType","delay")):k.current!==null&&(S.set("instantType",k.current),k.current=null)},[M,B,O,H,S]),$e(()=>{R&&T==null&&S.set("payload",void 0)},[S,T,R]);const Q=x.useCallback(()=>{S.setOpen(!1,R4(S,Yx))},[S]);x.useImperativeHandle(f,()=>({unmount:_,close:Q}),[_,Q]);const q=S.useState("floatingRootContext"),K=KE(q,{enabled:!a,referencePress:!0}),N=iz(q,{enabled:!a&&u!=="none",axis:u==="none"?void 0:u}),{getReferenceProps:P,getFloatingProps:J,getTriggerProps:G}=i1([K,N]),A=x.useMemo(()=>P(),[P]),I=x.useMemo(()=>G(),[G]),z=x.useMemo(()=>J(),[J]);return S.useSyncedValues({activeTriggerProps:A,inactiveTriggerProps:I,popupProps:z}),X.jsx(m1.Provider,{value:S,children:typeof v=="function"?v({payload:D}):v})});function R4(t,n){const a=Qt(n);return a.preventUnmountOnClose=()=>{t.set("preventUnmountingOnClose",!0)},a}const T4=x.createContext(void 0);function C4(){return x.useContext(T4)}let O4=(function(t){return t[t.popupOpen=wf.popupOpen]="popupOpen",t.triggerDisabled="data-trigger-disabled",t})({});const M4=600,A4=p3(function(n,a){const{className:i,render:s,handle:c,payload:u,disabled:f,delay:m,closeDelay:h,id:y,...p}=n,b=bc(!0),v=(c==null?void 0:c.store)??b;if(!v)throw new Error(Ur(82));const S=mc(y),E=v.useState("isTriggerActive",S),R=v.useState("isOpenedByTrigger",S),T=v.useState("floatingRootContext"),D=x.useRef(null),_=m??M4,M=h??0,{registerTrigger:B,isMountedByThisTrigger:H}=T3(S,D,v,{payload:u,closeDelay:M}),O=C4(),{delayRef:k,isInstantPhase:Q,hasProvider:q}=Xk(T,{open:R});v.useSyncedValue("isInstantPhase",Q);const K=v.useState("disabled"),N=f??K,P=v.useState("trackCursorAxis"),J=v.useState("disableHoverablePopup"),G=U3(T,{enabled:!N,mouseOnly:!0,move:!1,handleClose:!J&&P!=="both"?P3():null,restMs(){const ce=O==null?void 0:O.delay,L=typeof k.current=="object"?k.current.open:void 0;let W=_;return q&&(L!==0?W=m??ce??_:W=0),W},delay(){const ce=typeof k.current=="object"?k.current.close:void 0;let L=M;return h==null&&q&&(L=ce),{close:L}},triggerElementRef:D,isActiveTrigger:E}),A=A3(T,{enabled:!N}).reference,I={open:R},z=v.useState("triggerProps",H);return dn("button",n,{state:I,ref:[a,B,D],props:[G,A,z,{id:S,[O4.triggerDisabled]:N?"":void 0},p],stateAttributesMapping:Bk})}),p1=x.createContext(void 0);function D4(){const t=x.useContext(p1);if(t===void 0)throw new Error(Ur(70));return t}const N4=x.forwardRef(function(n,a){const{children:i,container:s,className:c,render:u,...f}=n,{portalNode:m,portalSubtree:h}=BE({container:s,ref:a,componentProps:n,elementProps:f});return!h&&!m?null:X.jsxs(x.Fragment,{children:[h,m&&Ni.createPortal(i,m)]})}),_4=x.forwardRef(function(n,a){const{keepMounted:i=!1,...s}=n;return bc().useState("mounted")||i?X.jsx(p1.Provider,{value:i,children:X.jsx(N4,{ref:a,...s})}):null}),g1=x.createContext(void 0);function y1(){const t=x.useContext(g1);if(t===void 0)throw new Error(Ur(71));return t}const L4=x.createContext(void 0);function cg(){const t=x.useContext(L4);return(t==null?void 0:t.direction)??"ltr"}const k4=t=>({name:"arrow",options:t,async fn(n){var ie,ce;const{x:a,y:i,placement:s,rects:c,platform:u,elements:f,middlewareData:m}=n,{element:h,padding:y=0,offsetParent:p="real"}=Fa(t,n)||{};if(h==null)return{};const b=vE(y),v={x:a,y:i},S=ng(s),E=tg(S),R=await u.getDimensions(h),T=S==="y",D=T?"top":"left",_=T?"bottom":"right",M=T?"clientHeight":"clientWidth",B=c.reference[E]+c.reference[S]-v[S]-c.floating[E],H=v[S]-c.reference[S],O=p==="real"?await((ie=u.getOffsetParent)==null?void 0:ie.call(u,h)):f.floating;let k=f.floating[M]||c.floating[E];(!k||!await((ce=u.isElement)==null?void 0:ce.call(u,O)))&&(k=f.floating[M]||c.floating[E]);const Q=B/2-H/2,q=k/2-R[E]/2-1,K=Math.min(b[D],q),N=Math.min(b[_],q),P=K,J=k-R[E]-N,G=k/2-R[E]/2+Q,A=dp(P,G,J),I=!m.arrow&&ki(s)!=null&&G!==A&&c.reference[E]/2-(G<P?K:N)-R[E]/2<0,z=I?G<P?G-P:G-J:0;return{[S]:v[S]+z,data:{[S]:A,centerOffset:G-A-z,...I&&{alignmentOffset:z}},reset:I}}}),z4=(t,n)=>({...k4(t),options:[t,n]}),U4={name:"hide",async fn(t){var f;const{width:n,height:a,x:i,y:s}=t.rects.reference,c=n===0&&a===0&&i===0&&s===0;return{data:{referenceHidden:((f=(await Gz().fn(t)).data)==null?void 0:f.referenceHidden)||c}}}},af={sideX:"left",sideY:"top"},H4={name:"adaptiveOrigin",async fn(t){var D,_;const{x:n,y:a,rects:{floating:i},elements:{floating:s},platform:c,strategy:u,placement:f}=t,m=wn(s),h=m.getComputedStyle(s);if(!(h.transitionDuration!=="0s"&&h.transitionDuration!==""))return{x:n,y:a,data:af};const p=await((D=c.getOffsetParent)==null?void 0:D.call(c,s));let b={width:0,height:0};if(u==="fixed"&&(m!=null&&m.visualViewport))b={width:m.visualViewport.width,height:m.visualViewport.height};else if(p===m){const M=qt(s);b={width:M.documentElement.clientWidth,height:M.documentElement.clientHeight}}else await((_=c.isElement)==null?void 0:_.call(c,p))&&(b=await c.getDimensions(p));const v=tr(f);let S=n,E=a;v==="left"&&(S=b.width-(n+i.width)),v==="top"&&(E=b.height-(a+i.height));const R=v==="left"?"right":af.sideX,T=v==="top"?"bottom":af.sideY;return{x:S,y:E,data:{sideX:R,sideY:T}}}};function v1(t,n,a){const i=t==="inline-start"||t==="inline-end";return{top:"top",right:i?a?"inline-start":"inline-end":"right",bottom:"bottom",left:i?a?"inline-end":"inline-start":"left"}[n]}function cw(t,n,a){const{rects:i,placement:s}=t;return{side:v1(n,tr(s),a),align:ki(s)||"center",anchor:{width:i.reference.width,height:i.reference.height},positioner:{width:i.floating.width,height:i.floating.height}}}function j4(t){var nr,Yn;const{anchor:n,positionMethod:a="absolute",side:i="bottom",sideOffset:s=0,align:c="center",alignOffset:u=0,collisionBoundary:f,collisionPadding:m=5,sticky:h=!1,arrowPadding:y=5,disableAnchorTracking:p=!1,keepMounted:b=!1,floatingRootContext:v,mounted:S,collisionAvoidance:E,shiftCrossAxis:R=!1,nodeId:T,adaptiveOrigin:D,lazyFlip:_=!1,externalTree:M}=t,[B,H]=x.useState(null);!S&&B!==null&&H(null);const O=E.side||"flip",k=E.align||"flip",Q=E.fallbackAxisSide||"end",q=typeof n=="function"?n:void 0,K=Ye(q),N=q?K:n,P=oa(n),G=cg()==="rtl",A=B||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":G?"left":"right","inline-start":G?"right":"left"}[i],I=c==="center"?A:`${A}-${c}`;let z=m;const ie=1,ce=i==="bottom"?ie:0,L=i==="top"?ie:0,W=i==="right"?ie:0,$=i==="left"?ie:0;typeof z=="number"?z={top:z+ce,right:z+$,bottom:z+L,left:z+W}:z&&(z={top:(z.top||0)+ce,right:(z.right||0)+$,bottom:(z.bottom||0)+L,left:(z.left||0)+W});const le={boundary:f==="clipping-ancestors"?"clippingAncestors":f,padding:z},fe=x.useRef(null),pe=oa(s),ye=oa(u),Qe=[Iz(nt=>{const yt=cw(nt,i,G),Xe=typeof pe.current=="function"?pe.current(yt):pe.current,vt=typeof ye.current=="function"?ye.current(yt):ye.current;return{mainAxis:Xe,crossAxis:vt,alignmentAxis:vt}},[typeof s!="function"?s:0,typeof u!="function"?u:0,G,i])],Je=k==="none"&&O!=="shift",se=!Je&&(h||R||O==="shift"),ge=O==="none"?null:Vz({...le,padding:{top:z.top+ie,right:z.right+ie,bottom:z.bottom+ie,left:z.left+ie},mainAxis:!R&&O==="flip",crossAxis:k==="flip"?"alignment":!1,fallbackAxisSideDirection:Q}),ve=Je?null:Fz(nt=>{const yt=qt(nt.elements.floating).documentElement;return{...le,rootBoundary:R?{x:0,y:0,width:yt.clientWidth,height:yt.clientHeight}:void 0,mainAxis:k!=="none",crossAxis:se,limiter:h||R?void 0:Yz(Xe=>{if(!fe.current)return{};const{width:vt,height:Yt}=fe.current.getBoundingClientRect(),je=_r(tr(Xe.placement)),Nt=je==="y"?vt:Yt,Gt=je==="y"?z.left+z.right:z.top+z.bottom;return{offset:Nt/2+Gt/2}})}},[le,h,R,z,k]);O==="shift"||k==="shift"||c==="center"?Qe.push(ve,ge):Qe.push(ge,ve),Qe.push(qz({...le,apply({elements:{floating:nt},rects:{reference:yt},availableWidth:Xe,availableHeight:vt}){const Yt=nt.style;Yt.setProperty("--available-width",`${Xe}px`),Yt.setProperty("--available-height",`${vt}px`),Yt.setProperty("--anchor-width",`${yt.width}px`),Yt.setProperty("--anchor-height",`${yt.height}px`)}}),z4(()=>({element:fe.current||document.createElement("div"),padding:y,offsetParent:"floating"}),[y]),{name:"transformOrigin",fn(nt){var Re,Ae,Ke;const{elements:yt,middlewareData:Xe,placement:vt,rects:Yt,y:je}=nt,Nt=tr(vt),Gt=_r(Nt),jt=fe.current,Pn=((Re=Xe.arrow)==null?void 0:Re.x)||0,Bt=((Ae=Xe.arrow)==null?void 0:Ae.y)||0,Tn=(jt==null?void 0:jt.clientWidth)||0,Hr=(jt==null?void 0:jt.clientHeight)||0,U=Pn+Tn/2,V=Bt+Hr/2,re=Math.abs(((Ke=Xe.shift)==null?void 0:Ke.y)||0),me=Yt.reference.height/2,be=typeof s=="function"?s(cw(nt,i,G)):s,ze=re>be,Ne={top:`${U}px calc(100% + ${be}px)`,bottom:`${U}px ${-be}px`,left:`calc(100% + ${be}px) ${V}px`,right:`${-be}px ${V}px`}[Nt],xe=`${U}px ${Yt.reference.y+me-je}px`;return yt.floating.style.setProperty("--transform-origin",se&&Gt==="y"&&ze?xe:Ne),{}}},U4,D),$e(()=>{!S&&v&&v.update({referenceElement:null,floatingElement:null,domReferenceElement:null})},[S,v]);const He=x.useMemo(()=>({elementResize:!p&&typeof ResizeObserver<"u",layoutShift:!p&&typeof IntersectionObserver<"u"}),[p]),{refs:Ee,elements:Ce,x:Te,y:Pe,middlewareData:tt,update:Fe,placement:mt,context:st,isPositioned:Ve,floatingStyles:zt}=M3({rootContext:v,placement:I,middleware:Qe,strategy:a,whileElementsMounted:b?void 0:(...nt)=>ZS(...nt,He),nodeId:T,externalTree:M}),{sideX:Wt,sideY:ln}=tt.adaptiveOrigin||af,it=Ve?a:"fixed",Ct=x.useMemo(()=>{const nt=D?{position:it,[Wt]:Te,[ln]:Pe}:{position:it,...zt};return Ve||(nt.opacity=0),nt},[D,it,Wt,Te,ln,Pe,zt,Ve]),At=x.useRef(null);$e(()=>{if(!S)return;const nt=P.current,yt=typeof nt=="function"?nt():nt,vt=(uw(yt)?yt.current:yt)||null||null;vt!==At.current&&(Ee.setPositionReference(vt),At.current=vt)},[S,Ee,N,P]),x.useEffect(()=>{if(!S)return;const nt=P.current;typeof nt!="function"&&uw(nt)&&nt.current!==At.current&&(Ee.setPositionReference(nt.current),At.current=nt.current)},[S,Ee,N,P]),x.useEffect(()=>{if(b&&S&&Ce.domReference&&Ce.floating)return ZS(Ce.domReference,Ce.floating,Fe,He)},[b,S,Ce,Fe,He]);const hn=tr(mt),mn=v1(i,hn,G),Bn=ki(mt)||"center",Dt=!!((nr=tt.hide)!=null&&nr.referenceHidden);$e(()=>{_&&S&&Ve&&H(hn)},[_,S,Ve,hn]);const xn=x.useMemo(()=>{var nt,yt;return{position:"absolute",top:(nt=tt.arrow)==null?void 0:nt.y,left:(yt=tt.arrow)==null?void 0:yt.x}},[tt.arrow]),$t=((Yn=tt.arrow)==null?void 0:Yn.centerOffset)!==0;return x.useMemo(()=>({positionerStyles:Ct,arrowStyles:xn,arrowRef:fe,arrowUncentered:$t,side:mn,align:Bn,physicalSide:hn,anchorHidden:Dt,refs:Ee,context:st,isPositioned:Ve,update:Fe}),[Ct,xn,fe,$t,mn,Bn,hn,Dt,Ee,st,Ve,Fe])}function uw(t){return t!=null&&"current"in t}function b1(t){return t==="starting"?f_:pr}const B4=x.forwardRef(function(n,a){const{render:i,className:s,anchor:c,positionMethod:u="absolute",side:f="top",align:m="center",sideOffset:h=0,alignOffset:y=0,collisionBoundary:p="clipping-ancestors",collisionPadding:b=5,arrowPadding:v=5,sticky:S=!1,disableAnchorTracking:E=!1,collisionAvoidance:R=h_,...T}=n,D=bc(),_=D4(),M=D.useState("open"),B=D.useState("mounted"),H=D.useState("trackCursorAxis"),O=D.useState("disableHoverablePopup"),k=D.useState("floatingRootContext"),Q=D.useState("instantType"),q=D.useState("transitionStatus"),K=D.useState("hasViewport"),N=j4({anchor:c,positionMethod:u,floatingRootContext:k,mounted:B,side:f,sideOffset:h,align:m,alignOffset:y,collisionBoundary:p,collisionPadding:b,sticky:S,arrowPadding:v,disableAnchorTracking:E,keepMounted:_,collisionAvoidance:R,adaptiveOrigin:K?H4:void 0}),P=x.useMemo(()=>{const I={};return(!M||H==="both"||O)&&(I.pointerEvents="none"),{role:"presentation",hidden:!B,style:{...N.positionerStyles,...I}}},[M,H,O,B,N.positionerStyles]),J=x.useMemo(()=>({open:M,side:N.side,align:N.align,anchorHidden:N.anchorHidden,instant:H!=="none"?"tracking-cursor":Q}),[M,N.side,N.align,N.anchorHidden,H,Q]),G=x.useMemo(()=>({...J,arrowRef:N.arrowRef,arrowStyles:N.arrowStyles,arrowUncentered:N.arrowUncentered}),[J,N.arrowRef,N.arrowStyles,N.arrowUncentered]),A=dn("div",n,{state:J,props:[P,b1(q),T],ref:[a,D.useStateSetter("positionerElement")],stateAttributesMapping:vc});return X.jsx(g1.Provider,{value:G,children:A})}),P4={...vc,...pc},I4=x.forwardRef(function(n,a){const{className:i,render:s,...c}=n,u=bc(),{side:f,align:m}=y1(),h=u.useState("open"),y=u.useState("instantType"),p=u.useState("transitionStatus"),b=u.useState("popupProps"),v=u.useState("floatingRootContext");jf({open:h,ref:u.context.popupRef,onComplete(){var D,_;h&&((_=(D=u.context).onOpenChangeComplete)==null||_.call(D,!0))}});const S=u.useState("disabled"),E=u.useState("closeDelay");return L3(v,{enabled:!S,closeDelay:E}),dn("div",n,{state:{open:h,side:f,align:m,instant:y,transitionStatus:p},ref:[a,u.context.popupRef,u.useStateSetter("popupElement")],props:[b,b1(p),c],stateAttributesMapping:P4})}),F4=x.forwardRef(function(n,a){const{className:i,render:s,...c}=n,f=bc().useState("instantType"),{open:m,arrowRef:h,side:y,align:p,arrowUncentered:b,arrowStyles:v}=y1();return dn("div",n,{state:{open:m,side:y,align:p,uncentered:b,instant:f},ref:[a,h],props:[{style:v,"aria-hidden":!0},c],stateAttributesMapping:vc})});function Y4({...t}){return X.jsx(E4,{"data-slot":"tooltip",...t})}function V4({...t}){return X.jsx(A4,{"data-slot":"tooltip-trigger",...t})}function q4({className:t,side:n="top",sideOffset:a=4,align:i="center",alignOffset:s=0,children:c,...u}){return X.jsx(_4,{children:X.jsx(B4,{align:i,alignOffset:s,side:n,sideOffset:a,className:"isolate z-50",children:X.jsxs(I4,{"data-slot":"tooltip-content",className:ht("data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 rounded-md px-3 py-1.5 text-xs data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2 bg-foreground text-background z-50 w-fit max-w-xs origin-(--transform-origin)",t),...u,children:[c,X.jsx(F4,{className:"size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 bg-foreground fill-foreground z-50 data-[side=bottom]:top-1 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"})]})})})}const G4="sidebar_state",X4=3600*24*7,K4="16rem",Q4="18rem",W4="3rem",$4="b",S1=x.createContext(null);function zs(){const t=x.useContext(S1);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function Z4({defaultOpen:t=!0,open:n,onOpenChange:a,className:i,style:s,children:c,...u}){const f=rL(),[m,h]=x.useState(!1),[y,p]=x.useState(t),b=n??y,v=x.useCallback(T=>{const D=typeof T=="function"?T(b):T;a?a(D):p(D),document.cookie=`${G4}=${D}; path=/; max-age=${X4}`},[a,b]),S=x.useCallback(()=>f?h(T=>!T):v(T=>!T),[f,v,h]);x.useEffect(()=>{const T=D=>{D.key===$4&&(D.metaKey||D.ctrlKey)&&(D.preventDefault(),S())};return window.addEventListener("keydown",T),()=>window.removeEventListener("keydown",T)},[S]);const E=b?"expanded":"collapsed",R=x.useMemo(()=>({state:E,open:b,setOpen:v,isMobile:f,openMobile:m,setOpenMobile:h,toggleSidebar:S}),[E,b,v,f,m,h,S]);return X.jsx(S1.Provider,{value:R,children:X.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":K4,"--sidebar-width-icon":W4,...s},className:ht("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",i),...u,children:c})})}function J4({side:t="left",variant:n="sidebar",collapsible:a="offcanvas",className:i,children:s,dir:c,...u}){const{isMobile:f,state:m,openMobile:h,setOpenMobile:y}=zs();return a==="none"?X.jsx("div",{"data-slot":"sidebar",className:ht("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",i),...u,children:s}):f?X.jsx(m4,{open:h,onOpenChange:y,...u,children:X.jsxs(y4,{dir:c,"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true","data-testid":"mobile-sidebar-sheet",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":Q4},side:t,children:[X.jsxs(v4,{className:"sr-only",children:[X.jsx(b4,{children:"Sidebar"}),X.jsx(S4,{children:"Displays the mobile sidebar."})]}),X.jsx("div",{className:"flex h-full w-full flex-col","data-testid":"sidebar",style:{paddingBottom:"var(--tmex-safe-area-bottom)"},children:s})]})}):X.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":m,"data-collapsible":m==="collapsed"?a:"","data-variant":n,"data-side":t,"data-slot":"sidebar",children:[X.jsx("div",{"data-slot":"sidebar-gap",className:ht("transition-[width] duration-200 ease-linear relative w-(--sidebar-width) bg-transparent","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",n==="floating"||n==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),X.jsx("div",{"data-slot":"sidebar-container","data-side":t,className:ht("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex",n==="floating"||n==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",i),...u,children:X.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner","data-testid":"sidebar",className:"bg-sidebar group-data-[variant=floating]:ring-sidebar-border group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 flex size-full flex-col",style:{paddingBottom:"var(--tmex-safe-area-bottom)"},children:s})})]})}function eU({className:t,onClick:n,...a}){const{toggleSidebar:i}=zs();return X.jsxs($p,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon-sm",className:ht(t),onClick:s=>{n==null||n(s),i()},...a,children:[X.jsx(jN,{}),X.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function tU({className:t,...n}){return X.jsx("main",{"data-slot":"sidebar-inset",className:ht("bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 relative flex w-full flex-1 flex-col",t),...n})}function nU({className:t,...n}){return X.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:ht("gap-2 p-2 flex flex-col",t),...n})}function rU({className:t,...n}){return X.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:ht("gap-2 p-2 flex flex-col",t),...n})}function aU({className:t,...n}){return X.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:ht("no-scrollbar gap-0 flex min-h-0 flex-1 flex-col overflow-auto group-data-[collapsible=icon]:overflow-hidden",t),...n})}function w1({className:t,...n}){return X.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:ht("p-2 relative flex w-full min-w-0 flex-col",t),...n})}function iU({className:t,render:n,...a}){return gc({defaultTagName:"div",props:Eo({className:ht("text-sidebar-foreground/70 ring-sidebar-ring h-8 rounded-md px-2 text-xs font-medium transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 flex shrink-0 items-center outline-hidden [&>svg]:shrink-0",t)},a),render:n,state:{slot:"sidebar-group-label",sidebar:"group-label"}})}function oU({className:t,...n}){return X.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:ht("gap-0 flex w-full min-w-0 flex-col",t),...n})}function sU({className:t,...n}){return X.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:ht("group/menu-item relative",t),...n})}const lU=Qp("ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground gap-2 rounded-md p-2 text-left text-sm transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! focus-visible:ring-2 data-active:font-medium peer/menu-button flex w-full items-center overflow-hidden outline-hidden group/menu-button disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background hover:bg-sidebar-accent hover:text-sidebar-accent-foreground shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function cU({render:t,isActive:n=!1,variant:a="default",size:i="default",tooltip:s,className:c,...u}){const{isMobile:f,state:m}=zs(),h=gc({defaultTagName:"button",props:Eo({className:ht(lU({variant:a,size:i}),c)},u),render:s?V4:t,state:{slot:"sidebar-menu-button",sidebar:"menu-button",size:i,active:n}});return s?(typeof s=="string"&&(s={children:s}),X.jsxs(Y4,{children:[h,X.jsx(q4,{side:"right",align:"center",hidden:m!=="collapsed"||f,...s})]})):h}function uU({className:t,render:n,showOnHover:a=!1,...i}){return gc({defaultTagName:"button",props:Eo({className:ht("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 aspect-square w-5 rounded-md p-0 peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 focus-visible:ring-2 [&>svg]:size-4 flex items-center justify-center outline-hidden transition-transform group-data-[collapsible=icon]:hidden after:absolute after:-inset-2 md:after:hidden [&>svg]:shrink-0",a&&"peer-data-active/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 aria-expanded:opacity-100 md:opacity-0",t)},i),render:n,state:{slot:"sidebar-menu-action",sidebar:"menu-action"}})}function fU({className:t,...n}){return X.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:ht("border-sidebar-border mx-3.5 translate-x-px gap-1 border-l px-2.5 py-0.5 group-data-[collapsible=icon]:hidden flex min-w-0 flex-col",t),...n})}function dU({className:t,...n}){return X.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:ht("group/menu-sub-item relative",t),...n})}function hU({render:t,size:n="md",isActive:a=!1,className:i,...s}){return gc({defaultTagName:"a",props:Eo({className:ht("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground h-7 gap-2 rounded-md px-2 focus-visible:ring-2 data-[size=md]:text-sm data-[size=sm]:text-xs [&>svg]:size-4 flex min-w-0 -translate-x-px items-center overflow-hidden outline-hidden group-data-[collapsible=icon]:hidden disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:shrink-0",i)},s),render:t,state:{slot:"sidebar-menu-sub-button",sidebar:"menu-sub-button",size:n,active:a}})}function Tf({children:t,onClick:n,...a}){const{isMobile:i,setOpenMobile:s}=zs(),c=u=>{i&&s(!1),n==null||n(u)};return X.jsx(Bp,{...a,onClick:c,children:t})}function mU({items:t}){const{t:n}=Nf();return X.jsx(w1,{children:X.jsx(oU,{children:t.map(a=>{var i,s;return X.jsxs(eL,{defaultOpen:a.isActive,render:X.jsx(sU,{}),children:[X.jsx(Tf,{to:a.url,children:X.jsxs(cU,{tooltip:n(a.title),children:[X.jsx(a.icon,{}),X.jsx("span",{children:n(a.title)})]})}),(i=a.items)!=null&&i.length?X.jsxs(X.Fragment,{children:[X.jsxs(tL,{render:X.jsx(uU,{className:"data-[state=open]:rotate-90"}),children:[X.jsx(NN,{}),X.jsx("span",{className:"sr-only",children:"Toggle"})]}),X.jsx(nL,{children:X.jsx(fU,{children:(s=a.items)==null?void 0:s.map(c=>X.jsx(dU,{children:X.jsx(Tf,{to:c.url,children:X.jsx(hU,{children:X.jsx("span",{children:n(c.title)})})})},c.title))})})]}):null]},a.title)})})})}const pU=Qp("h-5 gap-1 rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-3! inline-flex items-center justify-center w-fit whitespace-nowrap shrink-0 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive overflow-hidden group/badge",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 [a]:hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 text-destructive dark:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function gU({className:t,variant:n="default",render:a,...i}){return gc({defaultTagName:"span",props:Eo({className:ht(pU({className:t,variant:n}))},i),render:a,state:{slot:"badge",variant:n}})}const x1=x.createContext(void 0);function If(){const t=x.useContext(x1);if(t===void 0)throw new Error(Ur(53));return t}let Cf=(function(t){return t.scrollAreaCornerHeight="--scroll-area-corner-height",t.scrollAreaCornerWidth="--scroll-area-corner-width",t})({});const Ku=500,fw=16;function Lr(t,n,a){if(!t)return 0;const i=getComputedStyle(t),s=a==="x"?"Inline":"Block";return a==="x"&&n==="margin"?parseFloat(i[`${n}InlineStart`])*2:parseFloat(i[`${n}${s}Start`])+parseFloat(i[`${n}${s}End`])}let yU=(function(t){return t.orientation="data-orientation",t.hovering="data-hovering",t.scrolling="data-scrolling",t.hasOverflowX="data-has-overflow-x",t.hasOverflowY="data-has-overflow-y",t.overflowXStart="data-overflow-x-start",t.overflowXEnd="data-overflow-x-end",t.overflowYStart="data-overflow-y-start",t.overflowYEnd="data-overflow-y-end",t})({});const Qu="base-ui-disable-scrollbar",E1={className:Qu,getElement(t){return X.jsx("style",{nonce:t,href:Qu,precedence:"base-ui:low",children:`.${Qu}{scrollbar-width:none}.${Qu}::-webkit-scrollbar{display:none}`})}};let os=(function(t){return t.scrolling="data-scrolling",t.hasOverflowX="data-has-overflow-x",t.hasOverflowY="data-has-overflow-y",t.overflowXStart="data-overflow-x-start",t.overflowXEnd="data-overflow-x-end",t.overflowYStart="data-overflow-y-start",t.overflowYEnd="data-overflow-y-end",t})({});const ug={hasOverflowX:t=>t?{[os.hasOverflowX]:""}:null,hasOverflowY:t=>t?{[os.hasOverflowY]:""}:null,overflowXStart:t=>t?{[os.overflowXStart]:""}:null,overflowXEnd:t=>t?{[os.overflowXEnd]:""}:null,overflowYStart:t=>t?{[os.overflowYStart]:""}:null,overflowYEnd:t=>t?{[os.overflowYEnd]:""}:null,cornerHidden:()=>null},vU=x.createContext(void 0),bU={disableStyleElements:!1};function SU(){return x.useContext(vU)??bU}const wU={x:0,y:0},dw={width:0,height:0},xU={xStart:!1,xEnd:!1,yStart:!1,yEnd:!1},EU={x:!1,y:!1,corner:!1},RU=x.forwardRef(function(n,a){const{render:i,className:s,overflowEdgeThreshold:c,...u}=n,f=TU(c),m=mc(),h=Ia(),y=Ia(),{nonce:p,disableStyleElements:b}=SU(),[v,S]=x.useState(!1),[E,R]=x.useState(!1),[T,D]=x.useState(!1),[_,M]=x.useState(!1),[B,H]=x.useState(dw),[O,k]=x.useState(dw),[Q,q]=x.useState(xU),[K,N]=x.useState(EU),P=x.useRef(null),J=x.useRef(null),G=x.useRef(null),A=x.useRef(null),I=x.useRef(null),z=x.useRef(null),ie=x.useRef(null),ce=x.useRef(!1),L=x.useRef(0),W=x.useRef(0),$=x.useRef(0),le=x.useRef(0),fe=x.useRef("vertical"),pe=x.useRef(wU),ye=Ye(Ce=>{const Te=Ce.x-pe.current.x,Pe=Ce.y-pe.current.y;pe.current=Ce,Pe!==0&&(D(!0),h.start(Ku,()=>{D(!1)})),Te!==0&&(R(!0),y.start(Ku,()=>{R(!1)}))}),Oe=Ye(Ce=>{Ce.button===0&&(ce.current=!0,L.current=Ce.clientY,W.current=Ce.clientX,fe.current=Ce.currentTarget.getAttribute(yU.orientation),J.current&&($.current=J.current.scrollTop,le.current=J.current.scrollLeft),I.current&&fe.current==="vertical"&&I.current.setPointerCapture(Ce.pointerId),z.current&&fe.current==="horizontal"&&z.current.setPointerCapture(Ce.pointerId))}),we=Ye(Ce=>{if(!ce.current)return;const Te=Ce.clientY-L.current,Pe=Ce.clientX-W.current;if(J.current){const tt=J.current.scrollHeight,Fe=J.current.clientHeight,mt=J.current.scrollWidth,st=J.current.clientWidth;if(I.current&&G.current&&fe.current==="vertical"){const Ve=Lr(G.current,"padding","y"),zt=Lr(I.current,"margin","y"),Wt=I.current.offsetHeight,ln=G.current.offsetHeight-Wt-Ve-zt,it=Te/ln;J.current.scrollTop=$.current+it*(tt-Fe),Ce.preventDefault(),D(!0),h.start(Ku,()=>{D(!1)})}if(z.current&&A.current&&fe.current==="horizontal"){const Ve=Lr(A.current,"padding","x"),zt=Lr(z.current,"margin","x"),Wt=z.current.offsetWidth,ln=A.current.offsetWidth-Wt-Ve-zt,it=Pe/ln;J.current.scrollLeft=le.current+it*(mt-st),Ce.preventDefault(),R(!0),y.start(Ku,()=>{R(!1)})}}}),Qe=Ye(Ce=>{ce.current=!1,I.current&&fe.current==="vertical"&&I.current.releasePointerCapture(Ce.pointerId),z.current&&fe.current==="horizontal"&&z.current.releasePointerCapture(Ce.pointerId)});function Je(Ce){M(Ce.pointerType==="touch")}function se(Ce){if(Je(Ce),Ce.pointerType!=="touch"){const Te=Tt(P.current,Ce.target);S(Te)}}const ge=x.useMemo(()=>({scrolling:E||T,hasOverflowX:!K.x,hasOverflowY:!K.y,overflowXStart:Q.xStart,overflowXEnd:Q.xEnd,overflowYStart:Q.yStart,overflowYEnd:Q.yEnd,cornerHidden:K.corner}),[E,T,K.x,K.y,K.corner,Q]),ve={role:"presentation",onPointerEnter:se,onPointerMove:se,onPointerDown:Je,onPointerLeave(){S(!1)},style:{position:"relative",[Cf.scrollAreaCornerHeight]:`${B.height}px`,[Cf.scrollAreaCornerWidth]:`${B.width}px`}},He=dn("div",n,{state:ge,ref:[a,P],props:[ve,u],stateAttributesMapping:ug}),Ee=x.useMemo(()=>({handlePointerDown:Oe,handlePointerMove:we,handlePointerUp:Qe,handleScroll:ye,cornerSize:B,setCornerSize:H,thumbSize:O,setThumbSize:k,touchModality:_,cornerRef:ie,scrollingX:E,setScrollingX:R,scrollingY:T,setScrollingY:D,hovering:v,setHovering:S,viewportRef:J,rootRef:P,scrollbarYRef:G,scrollbarXRef:A,thumbYRef:I,thumbXRef:z,rootId:m,hiddenState:K,setHiddenState:N,overflowEdges:Q,setOverflowEdges:q,viewportState:ge,overflowEdgeThreshold:f}),[Oe,we,Qe,ye,B,O,_,E,R,T,D,v,S,m,K,Q,ge,f]);return X.jsxs(x1.Provider,{value:Ee,children:[!b&&E1.getElement(p),He]})});function TU(t){if(typeof t=="number"){const n=Math.max(0,t);return{xStart:n,xEnd:n,yStart:n,yEnd:n}}return{xStart:Math.max(0,(t==null?void 0:t.xStart)||0),xEnd:Math.max(0,(t==null?void 0:t.xEnd)||0),yStart:Math.max(0,(t==null?void 0:t.yStart)||0),yEnd:Math.max(0,(t==null?void 0:t.yEnd)||0)}}const CU=x.createContext(void 0);function ls(t,n=Number.MIN_SAFE_INTEGER,a=Number.MAX_SAFE_INTEGER){return Math.max(n,Math.min(t,a))}function OU(t,n){if(typeof IntersectionObserver>"u")return()=>{};const a=new IntersectionObserver(i=>{i.forEach(s=>{s.intersectionRatio>0&&(n(),a.disconnect())})});return a.observe(t),()=>{a.disconnect()}}let Oi=(function(t){return t.scrollAreaOverflowXStart="--scroll-area-overflow-x-start",t.scrollAreaOverflowXEnd="--scroll-area-overflow-x-end",t.scrollAreaOverflowYStart="--scroll-area-overflow-y-start",t.scrollAreaOverflowYEnd="--scroll-area-overflow-y-end",t})({});const hw=1;function mw(t,n){if(n<=0)return 0;const a=ls(t,0,n),i=a,s=n-a,c=i<=hw,u=s<=hw;return c&&u?i<=s?0:n:c?0:u?n:a}let pw=!1;function MU(){pw||Zp||(typeof CSS<"u"&&"registerProperty"in CSS&&[Oi.scrollAreaOverflowXStart,Oi.scrollAreaOverflowXEnd,Oi.scrollAreaOverflowYStart,Oi.scrollAreaOverflowYEnd].forEach(t=>{try{CSS.registerProperty({name:t,syntax:"<length>",inherits:!1,initialValue:"0px"})}catch{}}),pw=!0)}const AU=x.forwardRef(function(n,a){const{render:i,className:s,...c}=n,{viewportRef:u,scrollbarYRef:f,scrollbarXRef:m,thumbYRef:h,thumbXRef:y,cornerRef:p,cornerSize:b,setCornerSize:v,setThumbSize:S,rootId:E,setHiddenState:R,hiddenState:T,handleScroll:D,setHovering:_,setOverflowEdges:M,overflowEdges:B,overflowEdgeThreshold:H,scrollingX:O,scrollingY:k}=If(),Q=cg(),q=x.useRef(!0),K=Ia(),N=Ia(),P=Ye(()=>{const ie=u.current,ce=f.current,L=m.current,W=h.current,$=y.current,le=p.current;if(!ie)return;const fe=ie.scrollHeight,pe=ie.scrollWidth,ye=ie.clientHeight,Oe=ie.clientWidth,we=ie.scrollTop,Qe=ie.scrollLeft;if(fe===0||pe===0)return;const Je=ye>=fe,se=Oe>=pe,ge=Oe/pe,ve=ye/fe,He=Math.max(0,pe-Oe),Ee=Math.max(0,fe-ye);let Ce=0,Te=0;if(!se){let Xe=0;Q==="rtl"?Xe=ls(-Qe,0,He):Xe=ls(Qe,0,He),Ce=mw(Xe,He),Te=He-Ce}const Pe=Je?0:ls(we,0,Ee),tt=Je?0:mw(Pe,Ee),Fe=Je?0:Ee-tt,mt=se?0:Oe,st=Je?0:ye;let Ve=0,zt=0;!se&&!Je&&(Ve=(ce==null?void 0:ce.offsetWidth)||0,zt=(L==null?void 0:L.offsetHeight)||0);const Wt=b.width===0&&b.height===0,ln=Wt?Ve:0,it=Wt?zt:0,Ct=Lr(L,"padding","x"),At=Lr(ce,"padding","y"),hn=Lr($,"margin","x"),mn=Lr(W,"margin","y"),Bn=mt-Ct-hn,Dt=st-At-mn,xn=L?Math.min(L.offsetWidth-ln,Bn):Bn,$t=ce?Math.min(ce.offsetHeight-it,Dt):Dt,nr=Math.max(fw,xn*ge),Yn=Math.max(fw,$t*ve);if(S(Xe=>Xe.height===Yn&&Xe.width===nr?Xe:{width:nr,height:Yn}),ce&&W){const Xe=ce.offsetHeight-Yn-At-mn,vt=fe-ye,Yt=vt===0?0:we/vt,je=Math.min(Xe,Math.max(0,Yt*Xe));W.style.transform=`translate3d(0,${je}px,0)`}if(L&&$){const Xe=L.offsetWidth-nr-Ct-hn,vt=pe-Oe,Yt=vt===0?0:Qe/vt,je=Q==="rtl"?ls(Yt*Xe,-Xe,0):ls(Yt*Xe,0,Xe);$.style.transform=`translate3d(${je}px,0,0)`}const nt=[[Oi.scrollAreaOverflowXStart,Ce],[Oi.scrollAreaOverflowXEnd,Te],[Oi.scrollAreaOverflowYStart,tt],[Oi.scrollAreaOverflowYEnd,Fe]];for(const[Xe,vt]of nt)ie.style.setProperty(Xe,`${vt}px`);le&&(se||Je?v({width:0,height:0}):!se&&!Je&&v({width:Ve,height:zt})),R(Xe=>{const vt=Je||se;return Xe.y===Je&&Xe.x===se&&Xe.corner===vt?Xe:{y:Je,x:se,corner:vt}});const yt={xStart:!se&&Ce>H.xStart,xEnd:!se&&Te>H.xEnd,yStart:!Je&&tt>H.yStart,yEnd:!Je&&Fe>H.yEnd};M(Xe=>Xe.xStart===yt.xStart&&Xe.xEnd===yt.xEnd&&Xe.yStart===yt.yStart&&Xe.yEnd===yt.yEnd?Xe:yt)});$e(()=>{if(!u.current)return;MU();let ie=!1;return OU(u.current,()=>{if(!ie){ie=!0;return}P()})},[P,u]),$e(()=>{queueMicrotask(P)},[P,T,Q]),$e(()=>{var ie;(ie=u.current)!=null&&ie.matches(":hover")&&_(!0)},[u,_]),x.useEffect(()=>{const ie=u.current;if(typeof ResizeObserver>"u"||!ie)return;let ce=!1;const L=new ResizeObserver(()=>{if(!ce){ce=!0;return}P()});return L.observe(ie),N.start(0,()=>{const W=ie.getAnimations({subtree:!0});W.length!==0&&Promise.allSettled(W.map($=>$.finished)).then(P).catch(()=>{})}),()=>{L.disconnect(),N.clear()}},[P,u,N]);function J(){q.current=!1}const G={role:"presentation",...E&&{"data-id":`${E}-viewport`},...(!T.x||!T.y)&&{tabIndex:0},className:E1.className,style:{overflow:"scroll"},onScroll(){u.current&&(P(),q.current||D({x:u.current.scrollLeft,y:u.current.scrollTop}),K.start(100,()=>{q.current=!0}))},onWheel:J,onTouchMove:J,onPointerMove:J,onPointerEnter:J,onKeyDown:J},A=x.useMemo(()=>({scrolling:O||k,hasOverflowX:!T.x,hasOverflowY:!T.y,overflowXStart:B.xStart,overflowXEnd:B.xEnd,overflowYStart:B.yStart,overflowYEnd:B.yEnd,cornerHidden:T.corner}),[O,k,T.x,T.y,T.corner,B]),I=dn("div",n,{ref:[a,u],state:A,props:[G,c],stateAttributesMapping:ug}),z=x.useMemo(()=>({computeThumbPosition:P}),[P]);return X.jsx(CU.Provider,{value:z,children:I})}),R1=x.createContext(void 0);function DU(){const t=x.useContext(R1);if(t===void 0)throw new Error(Ur(54));return t}let Of=(function(t){return t.scrollAreaThumbHeight="--scroll-area-thumb-height",t.scrollAreaThumbWidth="--scroll-area-thumb-width",t})({});const NU=x.forwardRef(function(n,a){const{render:i,className:s,orientation:c="vertical",keepMounted:u=!1,...f}=n,{hovering:m,scrollingX:h,scrollingY:y,hiddenState:p,overflowEdges:b,scrollbarYRef:v,scrollbarXRef:S,viewportRef:E,thumbYRef:R,thumbXRef:T,handlePointerDown:D,handlePointerUp:_,rootId:M,thumbSize:B}=If(),H={hovering:m,scrolling:{horizontal:h,vertical:y}[c],orientation:c,hasOverflowX:!p.x,hasOverflowY:!p.y,overflowXStart:b.xStart,overflowXEnd:b.xEnd,overflowYStart:b.yStart,overflowYEnd:b.yEnd,cornerHidden:p.corner},O=cg();x.useEffect(()=>{const P=E.current,J=c==="vertical"?v.current:S.current;if(!J)return;function G(A){if(!(!P||!J||A.ctrlKey)){if(A.preventDefault(),c==="vertical"){if(P.scrollTop===0&&A.deltaY<0)return}else if(P.scrollLeft===0&&A.deltaX<0)return;if(c==="vertical"){if(P.scrollTop===P.scrollHeight-P.clientHeight&&A.deltaY>0)return}else if(P.scrollLeft===P.scrollWidth-P.clientWidth&&A.deltaX>0)return;c==="vertical"?P.scrollTop+=A.deltaY:P.scrollLeft+=A.deltaX}}return J.addEventListener("wheel",G,{passive:!1}),()=>{J.removeEventListener("wheel",G)}},[c,S,v,E]);const k={...M&&{"data-id":`${M}-scrollbar`},onPointerDown(P){if(P.button===0&&P.currentTarget===P.target&&E.current){if(R.current&&v.current&&c==="vertical"){const J=Lr(R.current,"margin","y"),G=Lr(v.current,"padding","y"),A=R.current.offsetHeight,I=v.current.getBoundingClientRect(),z=P.clientY-I.top-A/2-G+J/2,ie=E.current.scrollHeight,ce=E.current.clientHeight,L=v.current.offsetHeight-A-G-J,$=z/L*(ie-ce);E.current.scrollTop=$}if(T.current&&S.current&&c==="horizontal"){const J=Lr(T.current,"margin","x"),G=Lr(S.current,"padding","x"),A=T.current.offsetWidth,I=S.current.getBoundingClientRect(),z=P.clientX-I.left-A/2-G+J/2,ie=E.current.scrollWidth,ce=E.current.clientWidth,L=S.current.offsetWidth-A-G-J,W=z/L;let $;O==="rtl"?($=(1-W)*(ie-ce),E.current.scrollLeft<=0&&($=-$)):$=W*(ie-ce),E.current.scrollLeft=$}D(P)}},onPointerUp:_,style:{position:"absolute",touchAction:"none",WebkitUserSelect:"none",userSelect:"none",...c==="vertical"&&{top:0,bottom:`var(${Cf.scrollAreaCornerHeight})`,insetInlineEnd:0,[Of.scrollAreaThumbHeight]:`${B.height}px`},...c==="horizontal"&&{insetInlineStart:0,insetInlineEnd:`var(${Cf.scrollAreaCornerWidth})`,bottom:0,[Of.scrollAreaThumbWidth]:`${B.width}px`}}},Q=dn("div",n,{ref:[a,c==="vertical"?v:S],state:H,props:[k,f],stateAttributesMapping:ug}),q=x.useMemo(()=>({orientation:c}),[c]),K=c==="vertical"?p.y:p.x;return u||!K?X.jsx(R1.Provider,{value:q,children:Q}):null}),_U=x.forwardRef(function(n,a){const{render:i,className:s,...c}=n,{thumbYRef:u,thumbXRef:f,handlePointerDown:m,handlePointerMove:h,handlePointerUp:y,setScrollingX:p,setScrollingY:b}=If(),{orientation:v}=DU();return dn("div",n,{ref:[a,v==="vertical"?u:f],state:{orientation:v},props:[{onPointerDown:m,onPointerMove:h,onPointerUp(R){v==="vertical"&&b(!1),v==="horizontal"&&p(!1),y(R)},style:{...v==="vertical"&&{height:`var(${Of.scrollAreaThumbHeight})`},...v==="horizontal"&&{width:`var(${Of.scrollAreaThumbWidth})`}}},c]})}),LU=x.forwardRef(function(n,a){const{render:i,className:s,...c}=n,{cornerRef:u,cornerSize:f,hiddenState:m}=If(),h=dn("div",n,{ref:[a,u],props:[{style:{position:"absolute",bottom:0,insetInlineEnd:0,width:f.width,height:f.height}},c]});return m.corner?null:h});function kU({className:t,children:n,...a}){return X.jsxs(RU,{"data-slot":"scroll-area",className:ht("relative",t),...a,children:[X.jsx(AU,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:n}),X.jsx(zU,{}),X.jsx(LU,{})]})}function zU({className:t,orientation:n="vertical",...a}){return X.jsx(NU,{"data-slot":"scroll-area-scrollbar","data-orientation":n,orientation:n,className:ht("data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-l data-vertical:border-l-transparent flex touch-none p-px transition-colors select-none","[@media(any-pointer:coarse)]:hidden",t),...a,children:X.jsx(_U,{"data-slot":"scroll-area-thumb",className:"rounded-full bg-border relative flex-1"})})}function UU(t){if(!t)return t;let n=t;for(let a=0;a<2;a++){if(!/%25/i.test(n))return n;try{n=decodeURIComponent(n)}catch{return n}}return n}function HU(t){return encodeURIComponent(t)}function jU(){const{t}=Nf(),n=Ya(),a=dx(),{isMobile:i,setOpenMobile:s}=zs(),{toggleDevice:c}=EN(),u=Kl("/devices/:deviceId/windows/:windowId/panes/:paneId",n.pathname),f=u==null?void 0:u.params.deviceId,m=u==null?void 0:u.params.windowId,h=UU(u==null?void 0:u.params.paneId),y=za(q=>q.snapshots),p=za(q=>q.connectedDevices),b=za(q=>q.closeWindow),v=za(q=>q.closePane),S=ff(q=>{var K;return((K=q.settings)==null?void 0:K.language)??"en_US"}),{data:E}=EC({queryKey:["devices"],queryFn:async()=>{const q=await fetch("/api/devices");if(!q.ok)throw new Error("Failed to fetch devices");return q.json()},throwOnError:!1}),R=x.useCallback((q,K)=>{a(q,{replace:(K==null?void 0:K.replace)??!0}),i&&s(!1)},[a,i,s]),T=x.useCallback((q,K,N)=>{_.current=null,window.dispatchEvent(new CustomEvent("tmex:user-initiated-selection",{detail:{deviceId:q,windowId:K,paneId:N}})),R(`/devices/${q}/windows/${K}/panes/${HU(N)}`)},[R]),D=za(q=>q.selectWindow),_=x.useRef(null);x.useEffect(()=>{var I,z;const q=_.current;if(!q)return;if(Date.now()-q.at>5e3){_.current=null;return}const{deviceId:K,windowId:N}=q,P=y[K],J=(I=P==null?void 0:P.session)==null?void 0:I.windows;if(!J)return;const G=J.find(ie=>ie.id===N);if(!((z=G==null?void 0:G.panes)!=null&&z.length))return;_.current=null;const A=G.panes.find(ie=>ie.active)??G.panes[0];T(K,N,A.id)},[y,T]);const M=x.useCallback((q,K,N)=>{D(q,K);const P=N.find(J=>J.active)??N[0];P?(T(q,K,P.id),_.current=null):_.current={deviceId:q,windowId:K,at:Date.now()}},[T,D]),B=x.useCallback((q,K)=>{K?q===f&&R("/devices"):R(`/devices/${q}`),c(q,K)},[c,f,R]),H=x.useCallback((q,K)=>{q===f&&K===m&&R("/devices"),b(q,K)},[b,f,m,R]),O=x.useCallback(q=>{za.getState().createWindow(q)},[]),k=(E==null?void 0:E.devices)??[],Q=x.useMemo(()=>[...k].sort((q,K)=>q.name.localeCompare(K.name,pA(S),{numeric:!0,sensitivity:"base"})),[k,S]);return X.jsxs(w1,{className:"flex flex-col flex-1 min-h-0",children:[X.jsx(iU,{children:t("device.devices")}),X.jsx(kU,{className:"flex-1 min-h-0",children:X.jsxs("div",{className:"space-y-1.5 py-2",children:[Q.map(q=>{var K,N;return X.jsx(BU,{device:q,windows:((N=(K=y[q.id])==null?void 0:K.session)==null?void 0:N.windows)??null,isConnected:p.has(q.id),selectedWindowId:m,selectedPaneId:h,onConnectToggle:()=>B(q.id,p.has(q.id)),onCreateWindow:O,onCloseWindow:H,onClosePane:v,onPaneClick:T,onWindowClick:M},q.id)}),Q.length===0&&X.jsx("div",{className:"text-center text-sm text-muted-foreground py-4",children:t("sidebar.noDevices")})]})})]})}function BU({device:t,windows:n,isConnected:a,selectedWindowId:i,selectedPaneId:s,onConnectToggle:c,onCreateWindow:u,onCloseWindow:f,onClosePane:m,onPaneClick:h,onWindowClick:y}){const{t:p}=Nf(),b=t.type==="local"?kx:LN;return X.jsxs("div",{"data-testid":`device-item-${t.id}`,className:ht("rounded-lg border overflow-hidden text-select-none",a?"bg-card/50":"bg-muted/20"),onClick:a?void 0:c,children:[X.jsx("div",{className:"px-3 py-1 bg-muted/30 border-b",children:X.jsxs("div",{className:"flex items-center gap-2",children:[X.jsx(b,{className:"ml-1 h-4 w-4 text-muted-foreground shrink-0"}),X.jsx("span",{className:"flex-1 truncate text-sm font-medium text-select-none",children:t.name}),X.jsx("div",{className:ht("h-2 w-2 rounded-full shrink-0",a?"bg-emerald-500":"bg-gray-400")}),X.jsx($p,{variant:"ghost",size:"icon-xs",onClick:v=>{v.stopPropagation(),c()},"data-testid":a?`device-disconnect-${t.id}`:`device-connect-${t.id}`,title:p(a?"device.disconnect":"device.connect"),children:a?X.jsx(FN,{className:"h-3.5 w-3.5 text-orange-500"}):X.jsx(VN,{className:"h-3.5 w-3.5 text-emerald-500"})})]})}),a&&X.jsxs("div",{className:"p-1 space-y-0.5",children:[!n&&X.jsx("div",{className:"text-xs text-muted-foreground px-2 py-1.5 text-center",children:p("device.connecting")}),(n==null?void 0:n.length)===0&&X.jsx("div",{className:"text-xs text-muted-foreground px-2 py-1.5 text-center",children:p("window.noWindows")}),n==null?void 0:n.map(v=>X.jsx(PU,{deviceId:t.id,window:v,isSelected:v.id===i,selectedPaneId:s,onPaneClick:h,onWindowClick:y,onCloseWindow:f,onClosePane:m},v.id)),X.jsxs("button",{type:"button",onClick:()=>u(t.id),className:"w-full flex items-center gap-2 px-2 py-1.5 rounded-md text-left transition-colors text-muted-foreground hover:text-foreground hover:bg-accent/30 border border-dashed border-border/50 hover:border-border",children:[X.jsx(PN,{className:"h-3.5 w-3.5 shrink-0"}),X.jsx("span",{className:"text-xs",children:p("window.new")})]})]})]})}function PU({deviceId:t,window:n,isSelected:a,selectedPaneId:i,onPaneClick:s,onWindowClick:c,onCloseWindow:u,onClosePane:f}){const m=n.panes.length>1,h=n.panes.find(p=>p.id===i),y=a&&!!h;return X.jsxs("div",{className:"space-y-0.5",children:[X.jsxs("div",{className:"group relative",children:[X.jsxs("button",{type:"button",onClick:()=>c(t,n.id,n.panes),"data-testid":`window-item-${n.id}`,className:ht("w-full flex items-center gap-2 px-2 py-1.5 rounded-md text-left transition-colors pr-7",y?"bg-primary/15 text-primary border border-primary/30":"hover:bg-accent/50 text-foreground border border-transparent"),children:[X.jsx(gU,{variant:y?"default":"outline",className:"h-5 text-[10px] px-1.5 shrink-0",children:n.index}),X.jsx("span",{className:"flex-1 truncate text-xs font-medium",children:n.name}),n.active&&X.jsx("span",{className:ht("h-1.5 w-1.5 rounded-full shrink-0",y?"bg-foreground/80":"bg-foreground/50")})]}),X.jsx("button",{type:"button",onClick:p=>{p.stopPropagation(),u(t,n.id)},className:ht("absolute right-1.5 top-1/2 -translate-y-1/2 h-5 w-5 flex items-center justify-center rounded text-muted-foreground hover:bg-background hover:text-foreground transition-opacity",y?"opacity-100":"opacity-0 group-hover:opacity-100"),title:"Close window",children:X.jsx("span",{className:"text-xs leading-none",children:"×"})})]}),m&&X.jsx("div",{className:"ml-4 pl-2 border-l border-border/50 space-y-0.5",children:n.panes.map(p=>{const b=p.id===i;return X.jsxs("div",{className:"group relative",children:[X.jsxs("button",{type:"button",onClick:()=>s(t,n.id,p.id),"data-testid":`pane-item-${p.id}`,className:ht("w-full flex items-center gap-2 px-2 py-1 rounded-md text-left transition-colors pr-7",b?"bg-primary/10 text-primary border border-primary/20":"hover:bg-accent/30 text-muted-foreground border border-transparent"),children:[X.jsx("span",{className:"text-[10px] font-mono opacity-60 w-4",children:p.index}),X.jsx("span",{className:"flex-1 truncate text-xs",children:p.title||`Pane ${p.index}`}),p.active&&X.jsx("span",{className:ht("h-1 w-1 rounded-full shrink-0",b?"bg-foreground/80":"bg-foreground/50")})]}),X.jsx("button",{type:"button",onClick:v=>{v.stopPropagation(),f(t,n.id,p.id,n.panes.length)},className:ht("absolute right-1.5 top-1/2 -translate-y-1/2 h-5 w-5 flex items-center justify-center rounded text-muted-foreground hover:bg-background hover:text-foreground transition-opacity",b?"opacity-100":"opacity-0 group-hover:opacity-100"),title:"Close pane",children:X.jsx("span",{className:"text-xs leading-none",children:"×"})})]},p.id)})})]})}function IU(t,n){let a;try{a=t()}catch{return}return{getItem:s=>{var c;const u=m=>m===null?null:JSON.parse(m,void 0),f=(c=a.getItem(s))!=null?c:null;return f instanceof Promise?f.then(u):u(f)},setItem:(s,c)=>a.setItem(s,JSON.stringify(c,void 0)),removeItem:s=>a.removeItem(s)}}const bp=t=>n=>{try{const a=t(n);return a instanceof Promise?a:{then(i){return bp(i)(a)},catch(i){return this}}}catch(a){return{then(i){return this},catch(i){return bp(i)(a)}}}},FU=(t,n)=>(a,i,s)=>{let c={storage:IU(()=>window.localStorage),partialize:R=>R,version:0,merge:(R,T)=>({...T,...R}),...n},u=!1,f=0;const m=new Set,h=new Set;let y=c.storage;if(!y)return t((...R)=>{console.warn(`[zustand persist middleware] Unable to update item '${c.name}', the given storage is currently unavailable.`),a(...R)},i,s);const p=()=>{const R=c.partialize({...i()});return y.setItem(c.name,{state:R,version:c.version})},b=s.setState;s.setState=(R,T)=>(b(R,T),p());const v=t((...R)=>(a(...R),p()),i,s);s.getInitialState=()=>v;let S;const E=()=>{var R,T;if(!y)return;const D=++f;u=!1,m.forEach(M=>{var B;return M((B=i())!=null?B:v)});const _=((T=c.onRehydrateStorage)==null?void 0:T.call(c,(R=i())!=null?R:v))||void 0;return bp(y.getItem.bind(y))(c.name).then(M=>{if(M)if(typeof M.version=="number"&&M.version!==c.version){if(c.migrate){const B=c.migrate(M.state,M.version);return B instanceof Promise?B.then(H=>[!0,H]):[!0,B]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,M.state];return[!1,void 0]}).then(M=>{var B;if(D!==f)return;const[H,O]=M;if(S=c.merge(O,(B=i())!=null?B:v),a(S,!0),H)return p()}).then(()=>{D===f&&(_==null||_(S,void 0),S=i(),u=!0,h.forEach(M=>M(S)))}).catch(M=>{D===f&&(_==null||_(void 0,M))})};return s.persist={setOptions:R=>{c={...c,...R},R.storage&&(y=R.storage)},clearStorage:()=>{y==null||y.removeItem(c.name)},getOptions:()=>c,rehydrate:()=>E(),hasHydrated:()=>u,onHydrate:R=>(m.add(R),()=>{m.delete(R)}),onFinishHydration:R=>(h.add(R),()=>{h.delete(R)})},c.skipHydration||E(),S||v},YU=FU,gw=Fp()(YU(t=>({sidebarCollapsed:!1,inputMode:"direct",editorSendWithEnter:!0,theme:"dark",editorHistory:[],editorDrafts:{},setSidebarCollapsed:n=>t({sidebarCollapsed:n}),setInputMode:n=>t({inputMode:n}),setEditorSendWithEnter:n=>t({editorSendWithEnter:n}),setTheme:n=>t({theme:n}),addEditorHistory:n=>t(a=>({editorHistory:[n,...a.editorHistory.slice(0,49)]})),setEditorDraft:(n,a)=>t(i=>({editorDrafts:{...i.editorDrafts,[n]:a}})),removeEditorDraft:n=>t(a=>{if(!(n in a.editorDrafts))return a;const i={...a.editorDrafts};return delete i[n],{editorDrafts:i}})}),{name:"tmex-ui",partialize:t=>({sidebarCollapsed:t.sidebarCollapsed,inputMode:t.inputMode,editorSendWithEnter:t.editorSendWithEnter,theme:t.theme,editorHistory:t.editorHistory,editorDrafts:t.editorDrafts})}));function VU(){const{t}=Nf(),{isMobile:n,setOpenMobile:a}=zs(),i=ff(y=>{var p;return(p=y.settings)==null?void 0:p.siteName}),s=ff(y=>y.fetchSettings);x.useEffect(()=>{s()},[s]);const c=i??"tmex",u=gw(y=>y.theme),f=gw(y=>y.setTheme),m=u==="dark",h=()=>{const y=m?"light":"dark";f(y),document.documentElement.classList.toggle("dark",y==="dark")};return X.jsxs("div",{className:"flex items-center gap-2 px-2",children:[X.jsxs(Tf,{to:"/",className:"flex flex-1 items-center gap-3 overflow-hidden",children:[X.jsx("div",{className:"h-8 w-8 shrink-0 overflow-hidden rounded-lg border-2 border-black",children:X.jsx("img",{src:"/logo.png",alt:c,className:"h-full w-full object-cover"})}),X.jsx("span",{className:"truncate text-sm font-semibold tracking-tight",children:c})]}),X.jsx("button",{type:"button",onClick:h,className:"inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-muted-foreground hover:bg-sidebar-accent hover:text-foreground","aria-label":t(m?"settings.themeLight":"settings.themeDark"),title:t(m?"settings.themeLight":"settings.themeDark"),children:m?X.jsx(KN,{className:"h-4 w-4"}):X.jsx(UN,{className:"h-4 w-4"})}),X.jsx(Tf,{to:"/settings",className:"inline-flex h-8 w-8 mr-[-8px] shrink-0 items-center justify-center rounded-md text-muted-foreground hover:bg-sidebar-accent hover:text-foreground","aria-label":t("sidebar.settings"),title:t("sidebar.settings"),children:X.jsx(GN,{className:"h-4 w-4"})}),n&&X.jsx("button",{type:"button","data-testid":"mobile-sidebar-close",onClick:()=>a(!1),className:"inline-flex h-8 w-8 mr-[-8px] shrink-0 items-center justify-center rounded-md text-muted-foreground hover:bg-sidebar-accent hover:text-foreground","aria-label":t("nav.closeSidebar"),title:t("nav.closeSidebar"),children:X.jsx(zx,{className:"h-4 w-4"})})]})}const qU=[{title:"nav.manageDevices",url:"/devices",icon:kx}];function GU({...t}){return X.jsxs(J4,{variant:"inset",...t,children:[X.jsx("div",{className:"h-[var(--tmex-safe-area-top)]"}),X.jsx(nU,{className:"py-3",children:X.jsx(VU,{})}),X.jsx(aU,{className:"flex flex-col",children:X.jsx(jU,{})}),X.jsxs(rU,{children:[X.jsx(mU,{items:qU}),X.jsx("div",{className:"h-[var(--tmex-safe-area-bottom)]"})]})]})}function XU(){var t;try{const n=localStorage.getItem("tmex-ui");if(!n){document.documentElement.classList.add("dark");return}const a=JSON.parse(n),i=(t=a==null?void 0:a.state)==null?void 0:t.theme,s=i==="dark"||i===void 0;document.documentElement.classList.toggle("dark",s)}catch{document.documentElement.classList.add("dark")}}XU();const KU=new lC({defaultOptions:{queries:{staleTime:5e3,retry:1}}});function QU(){return X.jsx(RN,{children:X.jsxs(Z4,{children:[X.jsx(GU,{}),X.jsxs(tU,{className:"h-dvh overflow-hidden",children:[X.jsx("div",{className:"h-[var(--tmex-safe-area-top)]"}),X.jsx(bM,{}),X.jsx("div",{className:"h-[var(--tmex-safe-area-bottom)]"})]})]})})}function Ll({moduleLoader:t}){const[n,a]=x.useState(null),i=$O();x.useEffect(()=>{t().then(a)},[t]);const s=n==null?void 0:n.default,c=n==null?void 0:n.PageTitle,u=n==null?void 0:n.PageActions;return X.jsxs(X.Fragment,{children:[X.jsxs("header",{className:"sticky top-0 z-10 flex h-12 md:h-16 shrink-0 items-center justify-between gap-2 bg-background/95 backdrop-blur-sm","data-testid":"mobile-topbar",children:[X.jsxs("div",{className:"flex items-center gap-2 px-4",children:[X.jsx(eU,{className:"-ml-1","data-testid":"mobile-sidebar-open"}),X.jsx(Lk,{orientation:"vertical",className:"mr-2 data-[orientation=vertical]:h-4"}),X.jsx("span",{className:"truncate text-sm font-semibold",children:c?X.jsx(c,{...i}):""})]}),X.jsx("div",{className:"flex shrink-0 items-center gap-1 px-4",children:u&&X.jsx(u,{...i})})]}),X.jsx("div",{className:"flex min-h-0 flex-1 flex-col gap-4 !pt-0 p-2 md:p-4 mb-2",children:X.jsx("div",{className:"bg-muted/50 min-h-0 flex-1 overflow-auto overscroll-auto rounded-xl [-webkit-overflow-scrolling:touch]",children:s?X.jsx(s,{}):null})})]})}const WU=()=>wp(()=>import("./SettingsPage-XFRzVSzI.js"),__vite__mapDeps([0,1,2,3])),yw=()=>wp(()=>import("./DevicesPage-BrvmKNIQ.js"),__vite__mapDeps([4,1,2])),vw=()=>wp(()=>import("./DevicePage-BOtxQsop.js"),__vite__mapDeps([5,2,3,6])),$U=VM([{path:"/",Component:QU,children:[{index:!0,element:X.jsx(Ll,{moduleLoader:yw})},{path:"devices",element:X.jsx(Ll,{moduleLoader:yw})},{path:"devices/:deviceId",element:X.jsx(Ll,{moduleLoader:vw})},{path:"devices/:deviceId/windows/:windowId/panes/:paneId",element:X.jsx(Ll,{moduleLoader:vw})},{path:"settings",element:X.jsx(Ll,{moduleLoader:WU})}]}]),T1=document.getElementById("root");if(!T1)throw new Error("Root element not found");AC.createRoot(T1).render(X.jsx(x.StrictMode,{children:X.jsxs(fC,{client:KU,children:[X.jsx(gM,{router:$U}),X.jsx(A2,{richColors:!0,position:"top-right",closeButton:!0,offset:{top:"calc(16px + var(--tmex-safe-area-top))",right:"16px",bottom:"16px",left:"16px"},mobileOffset:{top:"calc(12px + var(--tmex-safe-area-top))",right:"12px",bottom:"12px",left:"12px"},toastOptions:{duration:6e3}})]})}));export{t1 as $,L3 as A,$p as B,Ix as C,d4 as D,Qt as E,rz as F,pc as G,vc as H,tH as I,X3 as J,b1 as K,Zk as L,iH as M,j4 as N,Xr as O,h_ as P,$3 as Q,W3 as R,bH as S,cH as T,ig as U,Pf as V,n1 as W,zx as X,vr as Y,pr as Z,qk as _,uC as a,hH as a$,dt as a0,$E as a1,h1 as a2,vH as a3,Ls as a4,$e as a5,Ms as a6,s4 as a7,JE as a8,e1 as a9,lH as aA,U3 as aB,P3 as aC,A3 as aD,Ni as aE,gH as aF,Yl as aG,pH as aH,OE as aI,yH as aJ,xf as aK,aH as aL,_k as aM,kx as aN,PN as aO,LN as aP,gU as aQ,Lk as aR,Bp as aS,XL as aT,sc as aU,km as aV,Vl as aW,iC as aX,zn as aY,Jn as aZ,Lw as a_,Ia as aa,i4 as ab,Ye as ac,tf as ad,ec as ae,Vp as af,Fx as ag,sH as ah,Yx as ai,r1 as aj,KE as ak,j3 as al,cg as am,nH as an,rH as ao,i1 as ap,SH as aq,G_ as ar,bn as as,Ba as at,Pa as au,qt as av,p3 as aw,ks as ax,T3 as ay,Tt as az,ff as b,ek as b0,mH as b1,fH as b2,dH as b3,Fu as b4,Ua as b5,b_ as b6,_f as b7,qp as b8,tc as b9,Zl as bA,$O as bB,dx as bC,UU as bD,HU as bE,Px as bF,Lt as bG,Ro as bH,l4 as bI,DE as bJ,u4 as bK,ak as ba,Jp as bb,fp as bc,oa as bd,zS as be,Rm as bf,er as bg,nk as bh,rk as bi,qx as bj,ZE as bk,O3 as bl,wH as bm,zE as bn,x3 as bo,Bk as bp,SU as bq,ls as br,wn as bs,Zp as bt,E1 as bu,uH as bv,JU as bw,jT as bx,lc as by,za as bz,Qr as c,gw as d,EC as e,eH as f,Q3 as g,Fk as h,An as i,X as j,ht as k,h4 as l,Yk as m,Z3 as n,Ik as o,Ur as p,oH as q,x as r,Kp as s,pA as t,Nf as u,Eo as v,Jl as w,mc as x,dn as y,jf as z};
|
|
200
|
+
//# sourceMappingURL=index-Vweko0vT.js.map
|