randmarcomps 1.33.0 → 1.35.0
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/randmarcomps.d.ts +2 -2
- package/dist/randmarcomps.js +9 -9
- package/dist/randmarcomps.umd.cjs +18 -18
- package/dist/style.css +40 -53
- package/package.json +1 -1
package/dist/randmarcomps.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ declare interface LayoutProps {
|
|
|
51
51
|
routes: NavRoute[];
|
|
52
52
|
searchResultsRouteName: string;
|
|
53
53
|
dashboardTitle?: string;
|
|
54
|
-
onSignOut
|
|
54
|
+
onSignOut?: () => void;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
export declare function Navbar({ routes, footer, dashboardTitle }: NavbarProps): JSX.Element;
|
|
@@ -241,7 +241,7 @@ export declare const TooltipTrigger: React_2.ForwardRefExoticComponent<TooltipPr
|
|
|
241
241
|
export declare function Topbar({ onSignOut, searchResultsRouteName }: TopbarProps): JSX.Element;
|
|
242
242
|
|
|
243
243
|
declare interface TopbarProps {
|
|
244
|
-
onSignOut
|
|
244
|
+
onSignOut?: () => void;
|
|
245
245
|
searchResultsRouteName: string;
|
|
246
246
|
}
|
|
247
247
|
|
package/dist/randmarcomps.js
CHANGED
|
@@ -4396,7 +4396,7 @@ function Xu({ getMyAccountPath: e, publicName: t, applicationName: n }) {
|
|
|
4396
4396
|
) }),
|
|
4397
4397
|
/* @__PURE__ */ G("div", { className: "flex flex-1 flex-col", children: [
|
|
4398
4398
|
/* @__PURE__ */ p("span", { className: "text-sm font-medium", children: t || "Partner" }),
|
|
4399
|
-
/* @__PURE__ */ p("span", { className: "text-xs text-
|
|
4399
|
+
/* @__PURE__ */ p("span", { className: "text-xs text-neutral-400", children: n })
|
|
4400
4400
|
] })
|
|
4401
4401
|
] });
|
|
4402
4402
|
}
|
|
@@ -6451,7 +6451,7 @@ const wa = s.forwardRef(({ className: e, onClick: t, ...n }, r) => {
|
|
|
6451
6451
|
"data-sidebar": "trigger",
|
|
6452
6452
|
variant: "ghost",
|
|
6453
6453
|
size: "icon",
|
|
6454
|
-
className: I("h-7 w-7", e),
|
|
6454
|
+
className: I("h-7 w-7 text-sidebar-foreground", e),
|
|
6455
6455
|
onClick: (a) => {
|
|
6456
6456
|
t == null || t(a), o();
|
|
6457
6457
|
},
|
|
@@ -7418,7 +7418,7 @@ function _u({ onSignOut: e, searchResultsRouteName: t }) {
|
|
|
7418
7418
|
search: d.toString()
|
|
7419
7419
|
}), r("");
|
|
7420
7420
|
};
|
|
7421
|
-
return /* @__PURE__ */ G("header", { className: "flex h-16 items-center gap-4 border-b
|
|
7421
|
+
return /* @__PURE__ */ G("header", { className: "flex h-16 items-center gap-4 border-b sidebar-foreground bg-sidebar px-6 fixed top-0 right-0 z-50 lg:left-64 left-0 border-sidebar-border", children: [
|
|
7422
7422
|
/* @__PURE__ */ p(wa, { className: "lg:hidden", children: /* @__PURE__ */ p(Si, { className: "h-6 w-6" }) }),
|
|
7423
7423
|
/* @__PURE__ */ p("div", { className: "flex flex-1 items-center gap-4", children: /* @__PURE__ */ p("div", { className: "relative w-full max-w-sm", children: /* @__PURE__ */ G("div", { children: [
|
|
7424
7424
|
/* @__PURE__ */ p(
|
|
@@ -7444,16 +7444,16 @@ function _u({ onSignOut: e, searchResultsRouteName: t }) {
|
|
|
7444
7444
|
}
|
|
7445
7445
|
)
|
|
7446
7446
|
] }) }) }),
|
|
7447
|
-
/* @__PURE__ */ p("div", { className: "flex items-center gap-4", children: /* @__PURE__ */ G(Nn, { variant: "ghost", size: "icon", className: "h-9 w-9", onClick: e, children: [
|
|
7448
|
-
/* @__PURE__ */ p(Ei, { className: "h-4 w-4" }),
|
|
7447
|
+
e && /* @__PURE__ */ p("div", { className: "flex items-center gap-4", children: /* @__PURE__ */ G(Nn, { variant: "ghost", size: "icon", className: "h-9 w-9", onClick: e, children: [
|
|
7448
|
+
/* @__PURE__ */ p(Ei, { className: "h-4 w-4 text-sidebar-foreground" }),
|
|
7449
7449
|
/* @__PURE__ */ p("span", { className: "sr-only", children: "Sign out" })
|
|
7450
7450
|
] }) })
|
|
7451
7451
|
] });
|
|
7452
7452
|
}
|
|
7453
7453
|
function Lu({ routes: e, footer: t, dashboardTitle: n }) {
|
|
7454
7454
|
const { appID: r } = Or(), o = e.filter((a) => a.showInNav);
|
|
7455
|
-
return /* @__PURE__ */ G(ba, { className: "border-r
|
|
7456
|
-
/* @__PURE__ */ p(ya, { className: "border-b px-6 h-16 justify-center bg-
|
|
7455
|
+
return /* @__PURE__ */ G(ba, { className: "border-r border-sidebar-border", children: [
|
|
7456
|
+
/* @__PURE__ */ p(ya, { className: "border-b border-sidebar-border px-6 h-16 justify-center bg-sidebar text-sidebar-foreground", children: /* @__PURE__ */ G("div", { className: "flex items-center gap-2", children: [
|
|
7457
7457
|
/* @__PURE__ */ p("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ p(
|
|
7458
7458
|
"img",
|
|
7459
7459
|
{
|
|
@@ -7464,14 +7464,14 @@ function Lu({ routes: e, footer: t, dashboardTitle: n }) {
|
|
|
7464
7464
|
) }),
|
|
7465
7465
|
/* @__PURE__ */ p("span", { className: "font-semibold text-lg", children: n })
|
|
7466
7466
|
] }) }),
|
|
7467
|
-
/* @__PURE__ */ p(Ea, { className: "py-4 bg-
|
|
7467
|
+
/* @__PURE__ */ p(Ea, { className: "py-4 bg-sidebar text-sidebar-foreground", children: /* @__PURE__ */ p(Ca, { children: o.map((a) => {
|
|
7468
7468
|
const i = a.icon, c = `/${a.path.replace(":appID", r)}`;
|
|
7469
7469
|
return /* @__PURE__ */ p(Sa, { children: /* @__PURE__ */ p(Ta, { asChild: !0, children: /* @__PURE__ */ G(Mr, { to: c, className: "transition-colors hover:bg-muted px-6", children: [
|
|
7470
7470
|
i && /* @__PURE__ */ p(i, { className: "h-4 w-4" }),
|
|
7471
7471
|
/* @__PURE__ */ p("span", { children: a.label })
|
|
7472
7472
|
] }) }) }, a.key);
|
|
7473
7473
|
}) }) }),
|
|
7474
|
-
/* @__PURE__ */ p(xa, { className: "border-t p-4 bg-background text-foreground", children: t })
|
|
7474
|
+
/* @__PURE__ */ p(xa, { className: "border-t border-sidebar-border p-4 bg-sidebar-background text-sidebar-foreground", children: t })
|
|
7475
7475
|
] });
|
|
7476
7476
|
}
|
|
7477
7477
|
function Qu({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(P,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("react/jsx-runtime"),require("react"),require("react-dom"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom","react-router-dom"],u):(P=typeof globalThis<"u"?globalThis:P||self,u(P.randmarcomps={},P.jsxRuntime,P.React,P.ReactDOM,P["react-router-dom"]))})(this,function(P,u,X,
|
|
1
|
+
(function(P,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("react/jsx-runtime"),require("react"),require("react-dom"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom","react-router-dom"],u):(P=typeof globalThis<"u"?globalThis:P||self,u(P.randmarcomps={},P.jsxRuntime,P.React,P.ReactDOM,P["react-router-dom"]))})(this,function(P,u,X,hn,tt){"use strict";function gn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const i=gn(X),qt=gn(hn);var Ts=Object.defineProperty,Ps=Object.defineProperties,Ns=Object.getOwnPropertyDescriptors,ft=Object.getOwnPropertySymbols,mn=Object.prototype.hasOwnProperty,vn=Object.prototype.propertyIsEnumerable,bn=(e,t,r)=>t in e?Ts(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,As=(e,t)=>{for(var r in t||(t={}))mn.call(t,r)&&bn(e,r,t[r]);if(ft)for(var r of ft(t))vn.call(t,r)&&bn(e,r,t[r]);return e},Os=(e,t)=>Ps(e,Ns(t)),Ms=(e,t)=>{var r={};for(var n in e)mn.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ft)for(var n of ft(e))t.indexOf(n)<0&&vn.call(e,n)&&(r[n]=e[n]);return r};function ks(e){let t=setTimeout(e,0),r=setTimeout(e,10),n=setTimeout(e,50);return[t,r,n]}function _s(e){let t=i.useRef();return i.useEffect(()=>{t.current=e}),t.current}var Is=18,yn=40,Ds=`${yn}px`,Ls=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");function Rs({containerRef:e,inputRef:t,pushPasswordManagerStrategy:r,isFocused:n}){let[o,a]=i.useState(!1),[s,c]=i.useState(!1),[l,d]=i.useState(!1),f=i.useMemo(()=>r==="none"?!1:(r==="increase-width"||r==="experimental-no-flickering")&&o&&s,[o,s,r]),h=i.useCallback(()=>{let v=e.current,g=t.current;if(!v||!g||l||r==="none")return;let b=v,p=b.getBoundingClientRect().left+b.offsetWidth,m=b.getBoundingClientRect().top+b.offsetHeight/2,y=p-Is,w=m;document.querySelectorAll(Ls).length===0&&document.elementFromPoint(y,w)===v||(a(!0),d(!0))},[e,t,l,r]);return i.useEffect(()=>{let v=e.current;if(!v||r==="none")return;function g(){let p=window.innerWidth-v.getBoundingClientRect().right;c(p>=yn)}g();let b=setInterval(g,1e3);return()=>{clearInterval(b)}},[e,r]),i.useEffect(()=>{let v=n||document.activeElement===t.current;if(r==="none"||!v)return;let g=setTimeout(h,0),b=setTimeout(h,2e3),p=setTimeout(h,5e3),m=setTimeout(()=>{d(!0)},6e3);return()=>{clearTimeout(g),clearTimeout(b),clearTimeout(p),clearTimeout(m)}},[t,n,r,h]),{hasPWMBadge:o,willPushPWMBadge:f,PWM_BADGE_SPACE_WIDTH:Ds}}var wn=i.createContext({}),xn=i.forwardRef((e,t)=>{var r=e,{value:n,onChange:o,maxLength:a,textAlign:s="left",pattern:c,placeholder:l,inputMode:d="numeric",onComplete:f,pushPasswordManagerStrategy:h="increase-width",pasteTransformer:v,containerClassName:g,noScriptCSSFallback:b=Fs,render:p,children:m}=r,y=Ms(r,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]),w,x,E,C,S;let[T,$]=i.useState(typeof y.defaultValue=="string"?y.defaultValue:""),I=n??T,z=_s(I),H=i.useCallback(D=>{o==null||o(D),$(D)},[o]),W=i.useMemo(()=>c?typeof c=="string"?new RegExp(c):c:null,[c]),_=i.useRef(null),N=i.useRef(null),B=i.useRef({value:I,onChange:H,isIOS:typeof window<"u"&&((x=(w=window==null?void 0:window.CSS)==null?void 0:w.supports)==null?void 0:x.call(w,"-webkit-touch-callout","none"))}),M=i.useRef({prev:[(E=_.current)==null?void 0:E.selectionStart,(C=_.current)==null?void 0:C.selectionEnd,(S=_.current)==null?void 0:S.selectionDirection]});i.useImperativeHandle(t,()=>_.current,[]),i.useEffect(()=>{let D=_.current,F=N.current;if(!D||!F)return;B.current.value!==D.value&&B.current.onChange(D.value),M.current.prev=[D.selectionStart,D.selectionEnd,D.selectionDirection];function Q(){if(document.activeElement!==D){re(null),te(null);return}let G=D.selectionStart,ce=D.selectionEnd,Xt=D.selectionDirection,he=D.maxLength,ze=D.value,Se=M.current.prev,Me=-1,ke=-1,We;if(ze.length!==0&&G!==null&&ce!==null){let Nu=G===ce,Au=G===ze.length&&ze.length<he;if(Nu&&!Au){let Be=G;if(Be===0)Me=0,ke=1,We="forward";else if(Be===he)Me=Be-1,ke=Be,We="backward";else if(he>1&&ze.length>1){let pn=0;if(Se[0]!==null&&Se[1]!==null){We=Be<Se[1]?"backward":"forward";let Ou=Se[0]===Se[1]&&Se[0]<he;We==="backward"&&!Ou&&(pn=-1)}Me=pn+Be,ke=pn+Be+1}}Me!==-1&&ke!==-1&&Me!==ke&&_.current.setSelectionRange(Me,ke,We)}let Es=Me!==-1?Me:G,Cs=ke!==-1?ke:ce,Pu=We??Xt;re(Es),te(Cs),M.current.prev=[Es,Cs,Pu]}if(document.addEventListener("selectionchange",Q,{capture:!0}),Q(),document.activeElement===D&&Y(!0),!document.getElementById("input-otp-style")){let G=document.createElement("style");if(G.id="input-otp-style",document.head.appendChild(G),G.sheet){let ce="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";rt(G.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),rt(G.sheet,`[data-input-otp]:autofill { ${ce} }`),rt(G.sheet,`[data-input-otp]:-webkit-autofill { ${ce} }`),rt(G.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),rt(G.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let ne=()=>{F&&F.style.setProperty("--root-height",`${D.clientHeight}px`)};ne();let oe=new ResizeObserver(ne);return oe.observe(D),()=>{document.removeEventListener("selectionchange",Q,{capture:!0}),oe.disconnect()}},[]);let[j,k]=i.useState(!1),[R,Y]=i.useState(!1),[Z,re]=i.useState(null),[J,te]=i.useState(null);i.useEffect(()=>{ks(()=>{var D,F,Q,ne;(D=_.current)==null||D.dispatchEvent(new Event("input"));let oe=(F=_.current)==null?void 0:F.selectionStart,G=(Q=_.current)==null?void 0:Q.selectionEnd,ce=(ne=_.current)==null?void 0:ne.selectionDirection;oe!==null&&G!==null&&(re(oe),te(G),M.current.prev=[oe,G,ce])})},[I,R]),i.useEffect(()=>{z!==void 0&&I!==z&&z.length<a&&I.length===a&&(f==null||f(I))},[a,f,z,I]);let ie=Rs({containerRef:N,inputRef:_,pushPasswordManagerStrategy:h,isFocused:R}),Oe=i.useCallback(D=>{let F=D.currentTarget.value.slice(0,a);if(F.length>0&&W&&!W.test(F)){D.preventDefault();return}typeof z=="string"&&F.length<z.length&&document.dispatchEvent(new Event("selectionchange")),H(F)},[a,H,z,W]),ye=i.useCallback(()=>{var D;if(_.current){let F=Math.min(_.current.value.length,a-1),Q=_.current.value.length;(D=_.current)==null||D.setSelectionRange(F,Q),re(F),te(Q)}Y(!0)},[a]),dt=i.useCallback(D=>{var F,Q;let ne=_.current;if(!v&&(!B.current.isIOS||!D.clipboardData||!ne))return;let oe=D.clipboardData.getData("text/plain"),G=v?v(oe):oe;D.preventDefault();let ce=(F=_.current)==null?void 0:F.selectionStart,Xt=(Q=_.current)==null?void 0:Q.selectionEnd,he=(ce!==Xt?I.slice(0,ce)+G+I.slice(Xt):I.slice(0,ce)+G+I.slice(ce)).slice(0,a);if(he.length>0&&W&&!W.test(he))return;ne.value=he,H(he);let ze=Math.min(he.length,a-1),Se=he.length;ne.setSelectionRange(ze,Se),re(ze),te(Se)},[a,H,W,I]),Kt=i.useMemo(()=>({position:"relative",cursor:y.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[y.disabled]),ut=i.useMemo(()=>({position:"absolute",inset:0,width:ie.willPushPWMBadge?`calc(100% + ${ie.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:ie.willPushPWMBadge?`inset(0 ${ie.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:s,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[ie.PWM_BADGE_SPACE_WIDTH,ie.willPushPWMBadge,s]),Yt=i.useMemo(()=>i.createElement("input",Os(As({autoComplete:y.autoComplete||"one-time-code"},y),{"data-input-otp":!0,"data-input-otp-placeholder-shown":I.length===0||void 0,"data-input-otp-mss":Z,"data-input-otp-mse":J,inputMode:d,pattern:W==null?void 0:W.source,"aria-placeholder":l,style:ut,maxLength:a,value:I,ref:_,onPaste:D=>{var F;dt(D),(F=y.onPaste)==null||F.call(y,D)},onChange:Oe,onMouseOver:D=>{var F;k(!0),(F=y.onMouseOver)==null||F.call(y,D)},onMouseLeave:D=>{var F;k(!1),(F=y.onMouseLeave)==null||F.call(y,D)},onFocus:D=>{var F;ye(),(F=y.onFocus)==null||F.call(y,D)},onBlur:D=>{var F;Y(!1),(F=y.onBlur)==null||F.call(y,D)}})),[Oe,ye,dt,d,ut,a,J,Z,y,W==null?void 0:W.source,I]),et=i.useMemo(()=>({slots:Array.from({length:a}).map((D,F)=>{var Q;let ne=R&&Z!==null&&J!==null&&(Z===J&&F===Z||F>=Z&&F<J),oe=I[F]!==void 0?I[F]:null,G=I[0]!==void 0?null:(Q=l==null?void 0:l[F])!=null?Q:null;return{char:oe,placeholderChar:G,isActive:ne,hasFakeCaret:ne&&oe===null}}),isFocused:R,isHovering:!y.disabled&&j}),[R,j,a,J,Z,y.disabled,I]),$e=i.useMemo(()=>p?p(et):i.createElement(wn.Provider,{value:et},m),[m,et,p]);return i.createElement(i.Fragment,null,b!==null&&i.createElement("noscript",null,i.createElement("style",null,b)),i.createElement("div",{ref:N,"data-input-otp-container":!0,style:Kt,className:g},$e,i.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},Yt)))});xn.displayName="Input";function rt(e,t){try{e.insertRule(t)}catch{console.error("input-otp could not insert CSS rule:",t)}}var Fs=`
|
|
2
2
|
[data-input-otp] {
|
|
3
3
|
--nojs-bg: white !important;
|
|
4
4
|
--nojs-fg: black !important;
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the ISC license.
|
|
24
24
|
* See the LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/const $s=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),
|
|
25
|
+
*/const $s=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Sn=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();/**
|
|
26
26
|
* @license lucide-react v0.479.0 - ISC
|
|
27
27
|
*
|
|
28
28
|
* This source code is licensed under the ISC license.
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
*
|
|
33
33
|
* This source code is licensed under the ISC license.
|
|
34
34
|
* See the LICENSE file in the root directory of this source tree.
|
|
35
|
-
*/const Ws=X.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:
|
|
35
|
+
*/const Ws=X.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:s,...c},l)=>X.createElement("svg",{ref:l,...zs,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:Sn("lucide",o),...c},[...s.map(([d,f])=>X.createElement(d,f)),...Array.isArray(a)?a:[a]]));/**
|
|
36
36
|
* @license lucide-react v0.479.0 - ISC
|
|
37
37
|
*
|
|
38
38
|
* This source code is licensed under the ISC license.
|
|
39
39
|
* See the LICENSE file in the root directory of this source tree.
|
|
40
|
-
*/const _e=(e,t)=>{const
|
|
40
|
+
*/const _e=(e,t)=>{const r=X.forwardRef(({className:n,...o},a)=>X.createElement(Ws,{ref:a,iconNode:t,className:Sn(`lucide-${$s(e)}`,n),...o}));return r.displayName=`${e}`,r};/**
|
|
41
41
|
* @license lucide-react v0.479.0 - ISC
|
|
42
42
|
*
|
|
43
43
|
* This source code is licensed under the ISC license.
|
|
@@ -72,48 +72,48 @@
|
|
|
72
72
|
*
|
|
73
73
|
* This source code is licensed under the ISC license.
|
|
74
74
|
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
-
*/const Er=_e("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Cr(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Cr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Tr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Cr(e))&&(r&&(r+=" "),r+=t);return r}const Zt="-",Ks=e=>{const t=Xs(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const c=s.split(Zt);return c[0]===""&&c.length!==1&&c.shift(),Pr(c,t)||Ys(s)},getConflictingClassGroupIds:(s,c)=>{const l=n[s]||[];return c&&r[s]?[...l,...r[s]]:l}}},Pr=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Pr(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(Zt);return(s=t.validators.find(({validator:c})=>c(a)))==null?void 0:s.classGroupId},Nr=/^\[(.+)\]$/,Ys=e=>{if(Nr.test(e)){const t=Nr.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Xs=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)Qt(n[o],r,o,t);return r},Qt=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Ar(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(qs(o)){Qt(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,s])=>{Qt(s,Ar(t,a),n,r)})})},Ar=(e,t)=>{let n=e;return t.split(Zt).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},qs=e=>e.isThemeGetter,Zs=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(a,s)=>{n.set(a,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let s=n.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return o(a,s),s},set(a,s){n.has(a)?n.set(a,s):o(a,s)}}},Jt="!",en=":",Qs=en.length,Js=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const a=[];let s=0,c=0,l=0,d;for(let b=0;b<o.length;b++){let p=o[b];if(s===0&&c===0){if(p===en){a.push(o.slice(l,b)),l=b+Qs;continue}if(p==="/"){d=b;continue}}p==="["?s++:p==="]"?s--:p==="("?c++:p===")"&&c--}const f=a.length===0?o:o.substring(l),h=ei(f),v=h!==f,g=d&&d>l?d-l:void 0;return{modifiers:a,hasImportantModifier:v,baseClassName:h,maybePostfixModifierPosition:g}};if(t){const o=t+en,a=r;r=s=>s.startsWith(o)?a(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=a=>n({className:a,parseClassName:o})}return r},ei=e=>e.endsWith(Jt)?e.substring(0,e.length-1):e.startsWith(Jt)?e.substring(1):e,ti=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let a=[];return r.forEach(s=>{s[0]==="["||t[s]?(o.push(...a.sort(),s),a=[]):a.push(s)}),o.push(...a.sort()),o}},ni=e=>({cache:Zs(e.cacheSize),parseClassName:Js(e),sortModifiers:ti(e),...Ks(e)}),ri=/\s+/,oi=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],c=e.trim().split(ri);let l="";for(let d=c.length-1;d>=0;d-=1){const f=c[d],{isExternal:h,modifiers:v,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:p}=n(f);if(h){l=f+(l.length>0?" "+l:l);continue}let m=!!p,y=r(m?b.substring(0,p):b);if(!y){if(!m){l=f+(l.length>0?" "+l:l);continue}if(y=r(b),!y){l=f+(l.length>0?" "+l:l);continue}m=!1}const w=a(v).join(":"),x=g?w+Jt:w,E=x+y;if(s.includes(E))continue;s.push(E);const C=o(y,m);for(let S=0;S<C.length;++S){const T=C[S];s.push(x+T)}l=f+(l.length>0?" "+l:l)}return l};function ai(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Or(t))&&(r&&(r+=" "),r+=n);return r}const Or=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Or(e[r]))&&(n&&(n+=" "),n+=t);return n};function si(e,...t){let n,r,o,a=s;function s(l){const d=t.reduce((f,h)=>h(f),e());return n=ni(d),r=n.cache.get,o=n.cache.set,a=c,c(l)}function c(l){const d=r(l);if(d)return d;const f=oi(l,n);return o(l,f),f}return function(){return a(ai.apply(null,arguments))}}const q=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Mr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,kr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ii=/^\d+\/\d+$/,ci=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,li=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,di=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ui=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fi=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ve=e=>ii.test(e),V=e=>!!e&&!Number.isNaN(Number(e)),Ie=e=>!!e&&Number.isInteger(Number(e)),_r=e=>e.endsWith("%")&&V(e.slice(0,-1)),Ee=e=>ci.test(e),pi=()=>!0,hi=e=>li.test(e)&&!di.test(e),tn=()=>!1,gi=e=>ui.test(e),mi=e=>fi.test(e),vi=e=>!A(e)&&!O(e),bi=e=>He(e,Lr,tn),A=e=>Mr.test(e),De=e=>He(e,Rr,hi),nn=e=>He(e,Oi,V),yi=e=>He(e,Ir,tn),wi=e=>He(e,Dr,mi),xi=e=>He(e,tn,gi),O=e=>kr.test(e),pt=e=>je(e,Rr),Si=e=>je(e,Mi),Ei=e=>je(e,Ir),Ci=e=>je(e,Lr),Ti=e=>je(e,Dr),Pi=e=>je(e,ki,!0),He=(e,t,n)=>{const r=Mr.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},je=(e,t,n=!1)=>{const r=kr.exec(e);return r?r[1]?t(r[1]):n:!1},Ir=e=>e==="position",Ni=new Set(["image","url"]),Dr=e=>Ni.has(e),Ai=new Set(["length","size","percentage"]),Lr=e=>Ai.has(e),Rr=e=>e==="length",Oi=e=>e==="number",Mi=e=>e==="family-name",ki=e=>e==="shadow",_i=si(()=>{const e=q("color"),t=q("font"),n=q("text"),r=q("font-weight"),o=q("tracking"),a=q("leading"),s=q("breakpoint"),c=q("container"),l=q("spacing"),d=q("radius"),f=q("shadow"),h=q("inset-shadow"),v=q("drop-shadow"),g=q("blur"),b=q("perspective"),p=q("aspect"),m=q("ease"),y=q("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],E=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto","contain","none"],S=()=>[O,A,l],T=()=>[Ve,"full","auto",...S()],$=()=>[Ie,"none","subgrid",O,A],I=()=>["auto",{span:["full",Ie,O,A]},O,A],z=()=>[Ie,"auto",O,A],H=()=>["auto","min","max","fr",O,A],W=()=>["start","end","center","between","around","evenly","stretch","baseline"],_=()=>["start","end","center","stretch"],N=()=>["auto",...S()],B=()=>[Ve,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],M=()=>[e,O,A],j=()=>[_r,De],k=()=>["","none","full",d,O,A],R=()=>["",V,pt,De],Y=()=>["solid","dashed","dotted","double"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ne=()=>["","none",g,O,A],J=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",O,A],te=()=>["none",V,O,A],ie=()=>["none",V,O,A],Oe=()=>[V,O,A],ye=()=>[Ve,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ee],breakpoint:[Ee],color:[pi],container:[Ee],"drop-shadow":[Ee],ease:["in","out","in-out"],font:[vi],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ee],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ee],shadow:[Ee],spacing:["px",V],text:[Ee],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ve,A,O,p]}],container:["container"],columns:[{columns:[V,A,O,c]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...x(),A,O]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{start:T()}],end:[{end:T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:["visible","invisible","collapse"],z:[{z:[Ie,"auto",O,A]}],basis:[{basis:[Ve,"full","auto",c,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[V,Ve,"auto","initial","none",A]}],grow:[{grow:["",V,O,A]}],shrink:[{shrink:["",V,O,A]}],order:[{order:[Ie,"first","last","none",O,A]}],"grid-cols":[{"grid-cols":$()}],"col-start-end":[{col:I()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":$()}],"row-start-end":[{row:I()}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":H()}],"auto-rows":[{"auto-rows":H()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[..._(),"normal"]}],"justify-self":[{"justify-self":["auto",..._()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[..._(),"baseline"]}],"align-self":[{self:["auto",..._(),"baseline"]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[..._(),"baseline"]}],"place-self":[{"place-self":["auto",..._()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:N()}],mx:[{mx:N()}],my:[{my:N()}],ms:[{ms:N()}],me:[{me:N()}],mt:[{mt:N()}],mr:[{mr:N()}],mb:[{mb:N()}],ml:[{ml:N()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:B()}],w:[{w:[c,"screen",...B()]}],"min-w":[{"min-w":[c,"screen","none",...B()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[s]},...B()]}],h:[{h:["screen",...B()]}],"min-h":[{"min-h":["screen","none",...B()]}],"max-h":[{"max-h":["screen",...B()]}],"font-size":[{text:["base",n,pt,De]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,O,nn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",_r,A]}],"font-family":[{font:[Si,A,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,O,A]}],"line-clamp":[{"line-clamp":[V,"none",O,nn]}],leading:[{leading:[a,...S()]}],"list-image":[{"list-image":["none",O,A]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",O,A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:[V,"from-font","auto",O,De]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[V,"auto",O,A]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O,A]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",O,A]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...x(),Ei,yi]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",Ci,bi]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ie,O,A],radial:["",O,A],conic:[Ie,O,A]},Ti,wi]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:j()}],"gradient-via-pos":[{via:j()}],"gradient-to-pos":[{to:j()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:k()}],"rounded-s":[{"rounded-s":k()}],"rounded-e":[{"rounded-e":k()}],"rounded-t":[{"rounded-t":k()}],"rounded-r":[{"rounded-r":k()}],"rounded-b":[{"rounded-b":k()}],"rounded-l":[{"rounded-l":k()}],"rounded-ss":[{"rounded-ss":k()}],"rounded-se":[{"rounded-se":k()}],"rounded-ee":[{"rounded-ee":k()}],"rounded-es":[{"rounded-es":k()}],"rounded-tl":[{"rounded-tl":k()}],"rounded-tr":[{"rounded-tr":k()}],"rounded-br":[{"rounded-br":k()}],"rounded-bl":[{"rounded-bl":k()}],"border-w":[{border:R()}],"border-w-x":[{"border-x":R()}],"border-w-y":[{"border-y":R()}],"border-w-s":[{"border-s":R()}],"border-w-e":[{"border-e":R()}],"border-w-t":[{"border-t":R()}],"border-w-r":[{"border-r":R()}],"border-w-b":[{"border-b":R()}],"border-w-l":[{"border-l":R()}],"divide-x":[{"divide-x":R()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":R()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Y(),"hidden","none"]}],"divide-style":[{divide:[...Y(),"hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...Y(),"none","hidden"]}],"outline-offset":[{"outline-offset":[V,O,A]}],"outline-w":[{outline:["",V,pt,De]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",f,Pi,xi]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",O,A,h]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:R()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[V,De]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":R()}],"inset-ring-color":[{"inset-ring":M()}],opacity:[{opacity:[V,O,A]}],"mix-blend":[{"mix-blend":[...Z(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Z()}],filter:[{filter:["","none",O,A]}],blur:[{blur:ne()}],brightness:[{brightness:[V,O,A]}],contrast:[{contrast:[V,O,A]}],"drop-shadow":[{"drop-shadow":["","none",v,O,A]}],grayscale:[{grayscale:["",V,O,A]}],"hue-rotate":[{"hue-rotate":[V,O,A]}],invert:[{invert:["",V,O,A]}],saturate:[{saturate:[V,O,A]}],sepia:[{sepia:["",V,O,A]}],"backdrop-filter":[{"backdrop-filter":["","none",O,A]}],"backdrop-blur":[{"backdrop-blur":ne()}],"backdrop-brightness":[{"backdrop-brightness":[V,O,A]}],"backdrop-contrast":[{"backdrop-contrast":[V,O,A]}],"backdrop-grayscale":[{"backdrop-grayscale":["",V,O,A]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[V,O,A]}],"backdrop-invert":[{"backdrop-invert":["",V,O,A]}],"backdrop-opacity":[{"backdrop-opacity":[V,O,A]}],"backdrop-saturate":[{"backdrop-saturate":[V,O,A]}],"backdrop-sepia":[{"backdrop-sepia":["",V,O,A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",O,A]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[V,"initial",O,A]}],ease:[{ease:["linear","initial",m,O,A]}],delay:[{delay:[V,O,A]}],animate:[{animate:["none",y,O,A]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,O,A]}],"perspective-origin":[{"perspective-origin":J()}],rotate:[{rotate:te()}],"rotate-x":[{"rotate-x":te()}],"rotate-y":[{"rotate-y":te()}],"rotate-z":[{"rotate-z":te()}],scale:[{scale:ie()}],"scale-x":[{"scale-x":ie()}],"scale-y":[{"scale-y":ie()}],"scale-z":[{"scale-z":ie()}],"scale-3d":["scale-3d"],skew:[{skew:Oe()}],"skew-x":[{"skew-x":Oe()}],"skew-y":[{"skew-y":Oe()}],transform:[{transform:[O,A,"","none","gpu","cpu"]}],"transform-origin":[{origin:J()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ye()}],"translate-x":[{"translate-x":ye()}],"translate-y":[{"translate-y":ye()}],"translate-z":[{"translate-z":ye()}],"translate-none":["translate-none"],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",O,A]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",O,A]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[V,pt,De,nn]}],stroke:[{stroke:["none",...M()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}});function L(...e){return _i(Tr(e))}function Ii({className:e,containerClassName:t,...n}){return u.jsx(xr,{"data-slot":"input-otp",containerClassName:L("flex items-center gap-2 has-disabled:opacity-50",t),className:L("disabled:cursor-not-allowed",e),...n})}function Di({className:e,...t}){return u.jsx("div",{"data-slot":"input-otp-group",className:L("flex items-center",e),...t})}function Li({index:e,className:t,...n}){const r=i.useContext(wr),{char:o,hasFakeCaret:a,isActive:s}=(r==null?void 0:r.slots[e])??{};return u.jsxs("div",{"data-slot":"input-otp-slot","data-active":s,className:L("border-input data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive relative flex h-9 w-9 items-center justify-center border-y border-r text-sm shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]",t),...n,children:[o,a&&u.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:u.jsx("div",{className:"animate-caret-blink bg-foreground h-4 w-px duration-1000"})})]})}function Ri({...e}){return u.jsx("div",{"data-slot":"input-otp-separator",role:"separator",...e,children:u.jsx(Hs,{})})}function Fr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function $r(...e){return t=>{let n=!1;const r=e.map(o=>{const a=Fr(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():Fr(e[o],null)}}}}function ee(...e){return i.useCallback($r(...e),e)}var de=i.forwardRef((e,t)=>{const{children:n,...r}=e,o=i.Children.toArray(n),a=o.find(Fi);if(a){const s=a.props.children,c=o.map(l=>l===a?i.Children.count(s)>1?i.Children.only(null):i.isValidElement(s)?s.props.children:null:l);return u.jsx(rn,{...r,ref:t,children:i.isValidElement(s)?i.cloneElement(s,void 0,c):null})}return u.jsx(rn,{...r,ref:t,children:n})});de.displayName="Slot";var rn=i.forwardRef((e,t)=>{const{children:n,...r}=e;if(i.isValidElement(n)){const o=zi(n),a=$i(r,n.props);return n.type!==i.Fragment&&(a.ref=t?$r(t,o):o),i.cloneElement(n,a)}return i.Children.count(n)>1?i.Children.only(null):null});rn.displayName="SlotClone";var zr=({children:e})=>u.jsx(u.Fragment,{children:e});function Fi(e){return i.isValidElement(e)&&e.type===zr}function $i(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...c)=>{a(...c),o(...c)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function zi(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Wr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Br=Tr,ht=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Br(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(d=>{const f=n==null?void 0:n[d],h=a==null?void 0:a[d];if(f===null)return null;const v=Wr(f)||Wr(h);return o[d][v]}),c=n&&Object.entries(n).reduce((d,f)=>{let[h,v]=f;return v===void 0||(d[h]=v),d},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,f)=>{let{class:h,className:v,...g}=f;return Object.entries(g).every(b=>{let[p,m]=b;return Array.isArray(m)?m.includes({...a,...c}[p]):{...a,...c}[p]===m})?[...d,h,v]:d},[]);return Br(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)},Vr=ht("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-sm hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90",outline:"border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground",defaultOutline:"border border-red-600/30 text-red-600 bg-background shadow-xs hover:bg-red-600/5 ",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",blue:"bg-randmar-blue text-gray-100 shadow-sm hover:bg-randmar-blue/90",red:"bg-randmar-red text-gray-100 shadow-sm hover:bg-randmar-red/90",none:""},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),gt=i.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},a)=>{const s=r?de:"button";return u.jsx(s,{className:L(Vr({variant:t,size:n,className:e})),ref:a,...o})});gt.displayName="Button";const mt=i.forwardRef(({className:e,type:t,...n},r)=>u.jsx("input",{type:t,className:L("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));mt.displayName="Input";var Wi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],K=Wi.reduce((e,t)=>{const n=i.forwardRef((r,o)=>{const{asChild:a,...s}=r,c=a?de:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(c,{...s,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Hr(e,t){e&&qt.flushSync(()=>e.dispatchEvent(t))}var Bi="Separator",jr="horizontal",Vi=["horizontal","vertical"],Gr=i.forwardRef((e,t)=>{const{decorative:n,orientation:r=jr,...o}=e,a=Hi(r)?r:jr,c=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return u.jsx(K.div,{"data-orientation":a,...c,...o,ref:t})});Gr.displayName=Bi;function Hi(e){return Vi.includes(e)}var Ur=Gr;const on=i.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>u.jsx(Ur,{ref:o,decorative:n,orientation:t,className:L("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));on.displayName=Ur.displayName;function U(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function ji(e,t){const n=i.createContext(t),r=a=>{const{children:s,...c}=a,l=i.useMemo(()=>c,Object.values(c));return u.jsx(n.Provider,{value:l,children:s})};r.displayName=e+"Provider";function o(a){const s=i.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function rt(e,t=[]){let n=[];function r(a,s){const c=i.createContext(s),l=n.length;n=[...n,s];const d=h=>{var y;const{scope:v,children:g,...b}=h,p=((y=v==null?void 0:v[e])==null?void 0:y[l])||c,m=i.useMemo(()=>b,Object.values(b));return u.jsx(p.Provider,{value:m,children:g})};d.displayName=a+"Provider";function f(h,v){var p;const g=((p=v==null?void 0:v[e])==null?void 0:p[l])||c,b=i.useContext(g);if(b)return b;if(s!==void 0)return s;throw new Error(`\`${h}\` must be used within \`${a}\``)}return[d,f]}const o=()=>{const a=n.map(s=>i.createContext(s));return function(c){const l=(c==null?void 0:c[e])||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return o.scopeName=e,[r,Gi(o,...t)]}function Gi(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=r.reduce((c,{useScope:l,scopeName:d})=>{const h=l(a)[`__scope${d}`];return{...c,...h}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var Ce=globalThis!=null&&globalThis.document?i.useLayoutEffect:()=>{},Ui=i.useId||(()=>{}),Ki=0;function vt(e){const[t,n]=i.useState(Ui());return Ce(()=>{n(r=>r??String(Ki++))},[e]),e||(t?`radix-${t}`:"")}function le(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function an({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Yi({defaultProp:t,onChange:n}),a=e!==void 0,s=a?e:r,c=le(n),l=i.useCallback(d=>{if(a){const h=typeof d=="function"?d(e):d;h!==e&&c(h)}else o(d)},[a,e,o,c]);return[s,l]}function Yi({defaultProp:e,onChange:t}){const n=i.useState(e),[r]=n,o=i.useRef(r),a=le(t);return i.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}function Xi(e,t=globalThis==null?void 0:globalThis.document){const n=le(e);i.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var qi="DismissableLayer",sn="dismissableLayer.update",Zi="dismissableLayer.pointerDownOutside",Qi="dismissableLayer.focusOutside",Kr,Yr=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),bt=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:c,...l}=e,d=i.useContext(Yr),[f,h]=i.useState(null),v=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=i.useState({}),b=ee(t,T=>h(T)),p=Array.from(d.layers),[m]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=p.indexOf(m),w=f?p.indexOf(f):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,E=w>=y,C=ec(T=>{const $=T.target,I=[...d.branches].some(z=>z.contains($));!E||I||(o==null||o(T),s==null||s(T),T.defaultPrevented||c==null||c())},v),S=tc(T=>{const $=T.target;[...d.branches].some(z=>z.contains($))||(a==null||a(T),s==null||s(T),T.defaultPrevented||c==null||c())},v);return Xi(T=>{w===d.layers.size-1&&(r==null||r(T),!T.defaultPrevented&&c&&(T.preventDefault(),c()))},v),i.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Kr=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),qr(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Kr)}},[f,v,n,d]),i.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),qr())},[f,d]),i.useEffect(()=>{const T=()=>g({});return document.addEventListener(sn,T),()=>document.removeEventListener(sn,T)},[]),u.jsx(K.div,{...l,ref:b,style:{pointerEvents:x?E?"auto":"none":void 0,...e.style},onFocusCapture:U(e.onFocusCapture,S.onFocusCapture),onBlurCapture:U(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:U(e.onPointerDownCapture,C.onPointerDownCapture)})});bt.displayName=qi;var Ji="DismissableLayerBranch",Xr=i.forwardRef((e,t)=>{const n=i.useContext(Yr),r=i.useRef(null),o=ee(t,r);return i.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),u.jsx(K.div,{...e,ref:o})});Xr.displayName=Ji;function ec(e,t=globalThis==null?void 0:globalThis.document){const n=le(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=c=>{if(c.target&&!r.current){let l=function(){Zr(Zi,n,d,{discrete:!0})};const d={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function tc(e,t=globalThis==null?void 0:globalThis.document){const n=le(e),r=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!r.current&&Zr(Qi,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function qr(){const e=new CustomEvent(sn);document.dispatchEvent(e)}function Zr(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Hr(o,a):o.dispatchEvent(a)}var nc=bt,rc=Xr,cn="focusScope.autoFocusOnMount",ln="focusScope.autoFocusOnUnmount",Qr={bubbles:!1,cancelable:!0},oc="FocusScope",Jr=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[c,l]=i.useState(null),d=le(o),f=le(a),h=i.useRef(null),v=ee(t,p=>l(p)),g=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let p=function(x){if(g.paused||!c)return;const E=x.target;c.contains(E)?h.current=E:Te(h.current,{select:!0})},m=function(x){if(g.paused||!c)return;const E=x.relatedTarget;E!==null&&(c.contains(E)||Te(h.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const C of x)C.removedNodes.length>0&&Te(c)};document.addEventListener("focusin",p),document.addEventListener("focusout",m);const w=new MutationObserver(y);return c&&w.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",m),w.disconnect()}}},[r,c,g.paused]),i.useEffect(()=>{if(c){no.add(g);const p=document.activeElement;if(!c.contains(p)){const y=new CustomEvent(cn,Qr);c.addEventListener(cn,d),c.dispatchEvent(y),y.defaultPrevented||(ac(dc(eo(c)),{select:!0}),document.activeElement===p&&Te(c))}return()=>{c.removeEventListener(cn,d),setTimeout(()=>{const y=new CustomEvent(ln,Qr);c.addEventListener(ln,f),c.dispatchEvent(y),y.defaultPrevented||Te(p??document.body,{select:!0}),c.removeEventListener(ln,f),no.remove(g)},0)}}},[c,d,f,g]);const b=i.useCallback(p=>{if(!n&&!r||g.paused)return;const m=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,y=document.activeElement;if(m&&y){const w=p.currentTarget,[x,E]=sc(w);x&&E?!p.shiftKey&&y===E?(p.preventDefault(),n&&Te(x,{select:!0})):p.shiftKey&&y===x&&(p.preventDefault(),n&&Te(E,{select:!0})):y===w&&p.preventDefault()}},[n,r,g.paused]);return u.jsx(K.div,{tabIndex:-1,...s,ref:v,onKeyDown:b})});Jr.displayName=oc;function ac(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Te(r,{select:t}),document.activeElement!==n)return}function sc(e){const t=eo(e),n=to(t,e),r=to(t.reverse(),e);return[n,r]}function eo(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function to(e,t){for(const n of e)if(!ic(n,{upTo:t}))return n}function ic(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function cc(e){return e instanceof HTMLInputElement&&"select"in e}function Te(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&cc(e)&&t&&e.select()}}var no=lc();function lc(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=ro(e,t),e.unshift(t)},remove(t){var n;e=ro(e,t),(n=e[0])==null||n.resume()}}}function ro(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function dc(e){return e.filter(t=>t.tagName!=="A")}var uc="Portal",yt=i.forwardRef((e,t)=>{var c;const{container:n,...r}=e,[o,a]=i.useState(!1);Ce(()=>a(!0),[]);const s=n||o&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return s?hr.createPortal(u.jsx(K.div,{...r,ref:t}),s):null});yt.displayName=uc;function fc(e,t){return i.useReducer((n,r)=>t[n][r]??n,e)}var Le=e=>{const{present:t,children:n}=e,r=pc(t),o=typeof n=="function"?n({present:r.isPresent}):i.Children.only(n),a=ee(r.ref,hc(o));return typeof n=="function"||r.isPresent?i.cloneElement(o,{ref:a}):null};Le.displayName="Presence";function pc(e){const[t,n]=i.useState(),r=i.useRef({}),o=i.useRef(e),a=i.useRef("none"),s=e?"mounted":"unmounted",[c,l]=fc(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const d=wt(r.current);a.current=c==="mounted"?d:"none"},[c]),Ce(()=>{const d=r.current,f=o.current;if(f!==e){const v=a.current,g=wt(d);e?l("MOUNT"):g==="none"||(d==null?void 0:d.display)==="none"?l("UNMOUNT"):l(f&&v!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Ce(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,h=g=>{const p=wt(r.current).includes(g.animationName);if(g.target===t&&p&&(l("ANIMATION_END"),!o.current)){const m=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=m)})}},v=g=>{g.target===t&&(a.current=wt(r.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(d=>{d&&(r.current=getComputedStyle(d)),n(d)},[])}}function wt(e){return(e==null?void 0:e.animationName)||"none"}function hc(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var dn=0;function gc(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??oo()),document.body.insertAdjacentElement("beforeend",e[1]??oo()),dn++,()=>{dn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),dn--}},[])}function oo(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ge=function(){return ge=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},ge.apply(this,arguments)};function ao(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function mc(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var xt="right-scroll-bar-position",St="width-before-scroll-bar",vc="with-scroll-bars-hidden",bc="--removed-body-scroll-bar-size";function un(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function yc(e,t){var n=X.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var wc=typeof window<"u"?i.useLayoutEffect:i.useEffect,so=new WeakMap;function xc(e,t){var n=yc(null,function(r){return e.forEach(function(o){return un(o,r)})});return wc(function(){var r=so.get(n);if(r){var o=new Set(r),a=new Set(e),s=n.current;o.forEach(function(c){a.has(c)||un(c,null)}),a.forEach(function(c){o.has(c)||un(c,s)})}so.set(n,e)},[e]),n}function Sc(e){return e}function Ec(e,t){t===void 0&&(t=Sc);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var s=t(a,r);return n.push(s),function(){n=n.filter(function(c){return c!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(c){return a(c)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var c=n;n=[],c.forEach(a),s=n}var l=function(){var f=s;s=[],f.forEach(a)},d=function(){return Promise.resolve().then(l)};d(),n={push:function(f){s.push(f),d()},filter:function(f){return s=s.filter(f),n}}}};return o}function Cc(e){e===void 0&&(e={});var t=Ec(null);return t.options=ge({async:!0,ssr:!1},e),t}var io=function(e){var t=e.sideCar,n=ao(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return i.createElement(r,ge({},n))};io.isSideCarExport=!0;function Tc(e,t){return e.useMedium(t),io}var co=Cc(),fn=function(){},Et=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:fn,onWheelCapture:fn,onTouchMoveCapture:fn}),o=r[0],a=r[1],s=e.forwardProps,c=e.children,l=e.className,d=e.removeScrollBar,f=e.enabled,h=e.shards,v=e.sideCar,g=e.noIsolation,b=e.inert,p=e.allowPinchZoom,m=e.as,y=m===void 0?"div":m,w=e.gapMode,x=ao(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=v,C=xc([n,t]),S=ge(ge({},x),o);return i.createElement(i.Fragment,null,f&&i.createElement(E,{sideCar:co,removeScrollBar:d,shards:h,noIsolation:g,inert:b,setCallbacks:a,allowPinchZoom:!!p,lockRef:n,gapMode:w}),s?i.cloneElement(i.Children.only(c),ge(ge({},S),{ref:C})):i.createElement(y,ge({},S,{className:l,ref:C}),c))});Et.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Et.classNames={fullWidth:St,zeroRight:xt};var Pc=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Nc(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Pc();return t&&e.setAttribute("nonce",t),e}function Ac(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Oc(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Mc=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Nc())&&(Ac(t,n),Oc(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},kc=function(){var e=Mc();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},lo=function(){var e=kc(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},_c={left:0,top:0,right:0,gap:0},pn=function(e){return parseInt(e||"",10)||0},Ic=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[pn(n),pn(r),pn(o)]},Dc=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return _c;var t=Ic(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Lc=lo(),Ge="data-scroll-locked",Rc=function(e,t,n,r){var o=e.left,a=e.top,s=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
75
|
+
*/const En=_e("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Cn(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Cn(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Tn(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Cn(e))&&(n&&(n+=" "),n+=t);return n}const Zt="-",Ks=e=>{const t=Xs(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const c=s.split(Zt);return c[0]===""&&c.length!==1&&c.shift(),Pn(c,t)||Ys(s)},getConflictingClassGroupIds:(s,c)=>{const l=r[s]||[];return c&&n[s]?[...l,...n[s]]:l}}},Pn=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Pn(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(Zt);return(s=t.validators.find(({validator:c})=>c(a)))==null?void 0:s.classGroupId},Nn=/^\[(.+)\]$/,Ys=e=>{if(Nn.test(e)){const t=Nn.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Xs=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)Qt(r[o],n,o,t);return n},Qt=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:An(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(qs(o)){Qt(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,s])=>{Qt(s,An(t,a),r,n)})})},An=(e,t)=>{let r=e;return t.split(Zt).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},qs=e=>e.isThemeGetter,Zs=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(a,s)=>{r.set(a,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let s=r.get(a);if(s!==void 0)return s;if((s=n.get(a))!==void 0)return o(a,s),s},set(a,s){r.has(a)?r.set(a,s):o(a,s)}}},Jt="!",er=":",Qs=er.length,Js=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let s=0,c=0,l=0,d;for(let b=0;b<o.length;b++){let p=o[b];if(s===0&&c===0){if(p===er){a.push(o.slice(l,b)),l=b+Qs;continue}if(p==="/"){d=b;continue}}p==="["?s++:p==="]"?s--:p==="("?c++:p===")"&&c--}const f=a.length===0?o:o.substring(l),h=ei(f),v=h!==f,g=d&&d>l?d-l:void 0;return{modifiers:a,hasImportantModifier:v,baseClassName:h,maybePostfixModifierPosition:g}};if(t){const o=t+er,a=n;n=s=>s.startsWith(o)?a(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=a=>r({className:a,parseClassName:o})}return n},ei=e=>e.endsWith(Jt)?e.substring(0,e.length-1):e.startsWith(Jt)?e.substring(1):e,ti=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let a=[];return n.forEach(s=>{s[0]==="["||t[s]?(o.push(...a.sort(),s),a=[]):a.push(s)}),o.push(...a.sort()),o}},ri=e=>({cache:Zs(e.cacheSize),parseClassName:Js(e),sortModifiers:ti(e),...Ks(e)}),ni=/\s+/,oi=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],c=e.trim().split(ni);let l="";for(let d=c.length-1;d>=0;d-=1){const f=c[d],{isExternal:h,modifiers:v,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:p}=r(f);if(h){l=f+(l.length>0?" "+l:l);continue}let m=!!p,y=n(m?b.substring(0,p):b);if(!y){if(!m){l=f+(l.length>0?" "+l:l);continue}if(y=n(b),!y){l=f+(l.length>0?" "+l:l);continue}m=!1}const w=a(v).join(":"),x=g?w+Jt:w,E=x+y;if(s.includes(E))continue;s.push(E);const C=o(y,m);for(let S=0;S<C.length;++S){const T=C[S];s.push(x+T)}l=f+(l.length>0?" "+l:l)}return l};function ai(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=On(t))&&(n&&(n+=" "),n+=r);return n}const On=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=On(e[n]))&&(r&&(r+=" "),r+=t);return r};function si(e,...t){let r,n,o,a=s;function s(l){const d=t.reduce((f,h)=>h(f),e());return r=ri(d),n=r.cache.get,o=r.cache.set,a=c,c(l)}function c(l){const d=n(l);if(d)return d;const f=oi(l,r);return o(l,f),f}return function(){return a(ai.apply(null,arguments))}}const q=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Mn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,kn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ii=/^\d+\/\d+$/,ci=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,li=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,di=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ui=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fi=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ve=e=>ii.test(e),V=e=>!!e&&!Number.isNaN(Number(e)),Ie=e=>!!e&&Number.isInteger(Number(e)),_n=e=>e.endsWith("%")&&V(e.slice(0,-1)),Ee=e=>ci.test(e),pi=()=>!0,hi=e=>li.test(e)&&!di.test(e),tr=()=>!1,gi=e=>ui.test(e),mi=e=>fi.test(e),vi=e=>!A(e)&&!O(e),bi=e=>He(e,Ln,tr),A=e=>Mn.test(e),De=e=>He(e,Rn,hi),rr=e=>He(e,Oi,V),yi=e=>He(e,In,tr),wi=e=>He(e,Dn,mi),xi=e=>He(e,tr,gi),O=e=>kn.test(e),pt=e=>je(e,Rn),Si=e=>je(e,Mi),Ei=e=>je(e,In),Ci=e=>je(e,Ln),Ti=e=>je(e,Dn),Pi=e=>je(e,ki,!0),He=(e,t,r)=>{const n=Mn.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},je=(e,t,r=!1)=>{const n=kn.exec(e);return n?n[1]?t(n[1]):r:!1},In=e=>e==="position",Ni=new Set(["image","url"]),Dn=e=>Ni.has(e),Ai=new Set(["length","size","percentage"]),Ln=e=>Ai.has(e),Rn=e=>e==="length",Oi=e=>e==="number",Mi=e=>e==="family-name",ki=e=>e==="shadow",_i=si(()=>{const e=q("color"),t=q("font"),r=q("text"),n=q("font-weight"),o=q("tracking"),a=q("leading"),s=q("breakpoint"),c=q("container"),l=q("spacing"),d=q("radius"),f=q("shadow"),h=q("inset-shadow"),v=q("drop-shadow"),g=q("blur"),b=q("perspective"),p=q("aspect"),m=q("ease"),y=q("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],E=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto","contain","none"],S=()=>[O,A,l],T=()=>[Ve,"full","auto",...S()],$=()=>[Ie,"none","subgrid",O,A],I=()=>["auto",{span:["full",Ie,O,A]},O,A],z=()=>[Ie,"auto",O,A],H=()=>["auto","min","max","fr",O,A],W=()=>["start","end","center","between","around","evenly","stretch","baseline"],_=()=>["start","end","center","stretch"],N=()=>["auto",...S()],B=()=>[Ve,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],M=()=>[e,O,A],j=()=>[_n,De],k=()=>["","none","full",d,O,A],R=()=>["",V,pt,De],Y=()=>["solid","dashed","dotted","double"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],re=()=>["","none",g,O,A],J=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",O,A],te=()=>["none",V,O,A],ie=()=>["none",V,O,A],Oe=()=>[V,O,A],ye=()=>[Ve,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ee],breakpoint:[Ee],color:[pi],container:[Ee],"drop-shadow":[Ee],ease:["in","out","in-out"],font:[vi],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ee],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ee],shadow:[Ee],spacing:["px",V],text:[Ee],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ve,A,O,p]}],container:["container"],columns:[{columns:[V,A,O,c]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...x(),A,O]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{start:T()}],end:[{end:T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:["visible","invisible","collapse"],z:[{z:[Ie,"auto",O,A]}],basis:[{basis:[Ve,"full","auto",c,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[V,Ve,"auto","initial","none",A]}],grow:[{grow:["",V,O,A]}],shrink:[{shrink:["",V,O,A]}],order:[{order:[Ie,"first","last","none",O,A]}],"grid-cols":[{"grid-cols":$()}],"col-start-end":[{col:I()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":$()}],"row-start-end":[{row:I()}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":H()}],"auto-rows":[{"auto-rows":H()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[..._(),"normal"]}],"justify-self":[{"justify-self":["auto",..._()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[..._(),"baseline"]}],"align-self":[{self:["auto",..._(),"baseline"]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[..._(),"baseline"]}],"place-self":[{"place-self":["auto",..._()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:N()}],mx:[{mx:N()}],my:[{my:N()}],ms:[{ms:N()}],me:[{me:N()}],mt:[{mt:N()}],mr:[{mr:N()}],mb:[{mb:N()}],ml:[{ml:N()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:B()}],w:[{w:[c,"screen",...B()]}],"min-w":[{"min-w":[c,"screen","none",...B()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[s]},...B()]}],h:[{h:["screen",...B()]}],"min-h":[{"min-h":["screen","none",...B()]}],"max-h":[{"max-h":["screen",...B()]}],"font-size":[{text:["base",r,pt,De]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,O,rr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",_n,A]}],"font-family":[{font:[Si,A,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,O,A]}],"line-clamp":[{"line-clamp":[V,"none",O,rr]}],leading:[{leading:[a,...S()]}],"list-image":[{"list-image":["none",O,A]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",O,A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:[V,"from-font","auto",O,De]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[V,"auto",O,A]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O,A]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",O,A]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...x(),Ei,yi]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",Ci,bi]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ie,O,A],radial:["",O,A],conic:[Ie,O,A]},Ti,wi]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:j()}],"gradient-via-pos":[{via:j()}],"gradient-to-pos":[{to:j()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:k()}],"rounded-s":[{"rounded-s":k()}],"rounded-e":[{"rounded-e":k()}],"rounded-t":[{"rounded-t":k()}],"rounded-r":[{"rounded-r":k()}],"rounded-b":[{"rounded-b":k()}],"rounded-l":[{"rounded-l":k()}],"rounded-ss":[{"rounded-ss":k()}],"rounded-se":[{"rounded-se":k()}],"rounded-ee":[{"rounded-ee":k()}],"rounded-es":[{"rounded-es":k()}],"rounded-tl":[{"rounded-tl":k()}],"rounded-tr":[{"rounded-tr":k()}],"rounded-br":[{"rounded-br":k()}],"rounded-bl":[{"rounded-bl":k()}],"border-w":[{border:R()}],"border-w-x":[{"border-x":R()}],"border-w-y":[{"border-y":R()}],"border-w-s":[{"border-s":R()}],"border-w-e":[{"border-e":R()}],"border-w-t":[{"border-t":R()}],"border-w-r":[{"border-r":R()}],"border-w-b":[{"border-b":R()}],"border-w-l":[{"border-l":R()}],"divide-x":[{"divide-x":R()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":R()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Y(),"hidden","none"]}],"divide-style":[{divide:[...Y(),"hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...Y(),"none","hidden"]}],"outline-offset":[{"outline-offset":[V,O,A]}],"outline-w":[{outline:["",V,pt,De]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",f,Pi,xi]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",O,A,h]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:R()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[V,De]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":R()}],"inset-ring-color":[{"inset-ring":M()}],opacity:[{opacity:[V,O,A]}],"mix-blend":[{"mix-blend":[...Z(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Z()}],filter:[{filter:["","none",O,A]}],blur:[{blur:re()}],brightness:[{brightness:[V,O,A]}],contrast:[{contrast:[V,O,A]}],"drop-shadow":[{"drop-shadow":["","none",v,O,A]}],grayscale:[{grayscale:["",V,O,A]}],"hue-rotate":[{"hue-rotate":[V,O,A]}],invert:[{invert:["",V,O,A]}],saturate:[{saturate:[V,O,A]}],sepia:[{sepia:["",V,O,A]}],"backdrop-filter":[{"backdrop-filter":["","none",O,A]}],"backdrop-blur":[{"backdrop-blur":re()}],"backdrop-brightness":[{"backdrop-brightness":[V,O,A]}],"backdrop-contrast":[{"backdrop-contrast":[V,O,A]}],"backdrop-grayscale":[{"backdrop-grayscale":["",V,O,A]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[V,O,A]}],"backdrop-invert":[{"backdrop-invert":["",V,O,A]}],"backdrop-opacity":[{"backdrop-opacity":[V,O,A]}],"backdrop-saturate":[{"backdrop-saturate":[V,O,A]}],"backdrop-sepia":[{"backdrop-sepia":["",V,O,A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",O,A]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[V,"initial",O,A]}],ease:[{ease:["linear","initial",m,O,A]}],delay:[{delay:[V,O,A]}],animate:[{animate:["none",y,O,A]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,O,A]}],"perspective-origin":[{"perspective-origin":J()}],rotate:[{rotate:te()}],"rotate-x":[{"rotate-x":te()}],"rotate-y":[{"rotate-y":te()}],"rotate-z":[{"rotate-z":te()}],scale:[{scale:ie()}],"scale-x":[{"scale-x":ie()}],"scale-y":[{"scale-y":ie()}],"scale-z":[{"scale-z":ie()}],"scale-3d":["scale-3d"],skew:[{skew:Oe()}],"skew-x":[{"skew-x":Oe()}],"skew-y":[{"skew-y":Oe()}],transform:[{transform:[O,A,"","none","gpu","cpu"]}],"transform-origin":[{origin:J()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ye()}],"translate-x":[{"translate-x":ye()}],"translate-y":[{"translate-y":ye()}],"translate-z":[{"translate-z":ye()}],"translate-none":["translate-none"],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",O,A]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",O,A]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[V,pt,De,rr]}],stroke:[{stroke:["none",...M()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}});function L(...e){return _i(Tn(e))}function Ii({className:e,containerClassName:t,...r}){return u.jsx(xn,{"data-slot":"input-otp",containerClassName:L("flex items-center gap-2 has-disabled:opacity-50",t),className:L("disabled:cursor-not-allowed",e),...r})}function Di({className:e,...t}){return u.jsx("div",{"data-slot":"input-otp-group",className:L("flex items-center",e),...t})}function Li({index:e,className:t,...r}){const n=i.useContext(wn),{char:o,hasFakeCaret:a,isActive:s}=(n==null?void 0:n.slots[e])??{};return u.jsxs("div",{"data-slot":"input-otp-slot","data-active":s,className:L("border-input data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive relative flex h-9 w-9 items-center justify-center border-y border-r text-sm shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]",t),...r,children:[o,a&&u.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:u.jsx("div",{className:"animate-caret-blink bg-foreground h-4 w-px duration-1000"})})]})}function Ri({...e}){return u.jsx("div",{"data-slot":"input-otp-separator",role:"separator",...e,children:u.jsx(Hs,{})})}function Fn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function $n(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Fn(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Fn(e[o],null)}}}}function ee(...e){return i.useCallback($n(...e),e)}var de=i.forwardRef((e,t)=>{const{children:r,...n}=e,o=i.Children.toArray(r),a=o.find(Fi);if(a){const s=a.props.children,c=o.map(l=>l===a?i.Children.count(s)>1?i.Children.only(null):i.isValidElement(s)?s.props.children:null:l);return u.jsx(nr,{...n,ref:t,children:i.isValidElement(s)?i.cloneElement(s,void 0,c):null})}return u.jsx(nr,{...n,ref:t,children:r})});de.displayName="Slot";var nr=i.forwardRef((e,t)=>{const{children:r,...n}=e;if(i.isValidElement(r)){const o=zi(r),a=$i(n,r.props);return r.type!==i.Fragment&&(a.ref=t?$n(t,o):o),i.cloneElement(r,a)}return i.Children.count(r)>1?i.Children.only(null):null});nr.displayName="SlotClone";var zn=({children:e})=>u.jsx(u.Fragment,{children:e});function Fi(e){return i.isValidElement(e)&&e.type===zn}function $i(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...c)=>{a(...c),o(...c)}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function zi(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const Wn=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Bn=Tn,ht=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return Bn(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(d=>{const f=r==null?void 0:r[d],h=a==null?void 0:a[d];if(f===null)return null;const v=Wn(f)||Wn(h);return o[d][v]}),c=r&&Object.entries(r).reduce((d,f)=>{let[h,v]=f;return v===void 0||(d[h]=v),d},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((d,f)=>{let{class:h,className:v,...g}=f;return Object.entries(g).every(b=>{let[p,m]=b;return Array.isArray(m)?m.includes({...a,...c}[p]):{...a,...c}[p]===m})?[...d,h,v]:d},[]);return Bn(e,s,l,r==null?void 0:r.class,r==null?void 0:r.className)},Vn=ht("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-sm hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90",outline:"border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground",defaultOutline:"border border-red-600/30 text-red-600 bg-background shadow-xs hover:bg-red-600/5 ",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",blue:"bg-randmar-blue text-gray-100 shadow-sm hover:bg-randmar-blue/90",red:"bg-randmar-red text-gray-100 shadow-sm hover:bg-randmar-red/90",none:""},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),gt=i.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},a)=>{const s=n?de:"button";return u.jsx(s,{className:L(Vn({variant:t,size:r,className:e})),ref:a,...o})});gt.displayName="Button";const mt=i.forwardRef(({className:e,type:t,...r},n)=>u.jsx("input",{type:t,className:L("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...r}));mt.displayName="Input";var Wi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],K=Wi.reduce((e,t)=>{const r=i.forwardRef((n,o)=>{const{asChild:a,...s}=n,c=a?de:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(c,{...s,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Hn(e,t){e&&qt.flushSync(()=>e.dispatchEvent(t))}var Bi="Separator",jn="horizontal",Vi=["horizontal","vertical"],Gn=i.forwardRef((e,t)=>{const{decorative:r,orientation:n=jn,...o}=e,a=Hi(n)?n:jn,c=r?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return u.jsx(K.div,{"data-orientation":a,...c,...o,ref:t})});Gn.displayName=Bi;function Hi(e){return Vi.includes(e)}var Un=Gn;const or=i.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,...n},o)=>u.jsx(Un,{ref:o,decorative:r,orientation:t,className:L("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));or.displayName=Un.displayName;function U(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function ji(e,t){const r=i.createContext(t),n=a=>{const{children:s,...c}=a,l=i.useMemo(()=>c,Object.values(c));return u.jsx(r.Provider,{value:l,children:s})};n.displayName=e+"Provider";function o(a){const s=i.useContext(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function nt(e,t=[]){let r=[];function n(a,s){const c=i.createContext(s),l=r.length;r=[...r,s];const d=h=>{var y;const{scope:v,children:g,...b}=h,p=((y=v==null?void 0:v[e])==null?void 0:y[l])||c,m=i.useMemo(()=>b,Object.values(b));return u.jsx(p.Provider,{value:m,children:g})};d.displayName=a+"Provider";function f(h,v){var p;const g=((p=v==null?void 0:v[e])==null?void 0:p[l])||c,b=i.useContext(g);if(b)return b;if(s!==void 0)return s;throw new Error(`\`${h}\` must be used within \`${a}\``)}return[d,f]}const o=()=>{const a=r.map(s=>i.createContext(s));return function(c){const l=(c==null?void 0:c[e])||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return o.scopeName=e,[n,Gi(o,...t)]}function Gi(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=n.reduce((c,{useScope:l,scopeName:d})=>{const h=l(a)[`__scope${d}`];return{...c,...h}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}var Ce=globalThis!=null&&globalThis.document?i.useLayoutEffect:()=>{},Ui=i.useId||(()=>{}),Ki=0;function vt(e){const[t,r]=i.useState(Ui());return Ce(()=>{r(n=>n??String(Ki++))},[e]),e||(t?`radix-${t}`:"")}function le(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function ar({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,o]=Yi({defaultProp:t,onChange:r}),a=e!==void 0,s=a?e:n,c=le(r),l=i.useCallback(d=>{if(a){const h=typeof d=="function"?d(e):d;h!==e&&c(h)}else o(d)},[a,e,o,c]);return[s,l]}function Yi({defaultProp:e,onChange:t}){const r=i.useState(e),[n]=r,o=i.useRef(n),a=le(t);return i.useEffect(()=>{o.current!==n&&(a(n),o.current=n)},[n,o,a]),r}function Xi(e,t=globalThis==null?void 0:globalThis.document){const r=le(e);i.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var qi="DismissableLayer",sr="dismissableLayer.update",Zi="dismissableLayer.pointerDownOutside",Qi="dismissableLayer.focusOutside",Kn,Yn=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),bt=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:c,...l}=e,d=i.useContext(Yn),[f,h]=i.useState(null),v=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=i.useState({}),b=ee(t,T=>h(T)),p=Array.from(d.layers),[m]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=p.indexOf(m),w=f?p.indexOf(f):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,E=w>=y,C=ec(T=>{const $=T.target,I=[...d.branches].some(z=>z.contains($));!E||I||(o==null||o(T),s==null||s(T),T.defaultPrevented||c==null||c())},v),S=tc(T=>{const $=T.target;[...d.branches].some(z=>z.contains($))||(a==null||a(T),s==null||s(T),T.defaultPrevented||c==null||c())},v);return Xi(T=>{w===d.layers.size-1&&(n==null||n(T),!T.defaultPrevented&&c&&(T.preventDefault(),c()))},v),i.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Kn=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),qn(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Kn)}},[f,v,r,d]),i.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),qn())},[f,d]),i.useEffect(()=>{const T=()=>g({});return document.addEventListener(sr,T),()=>document.removeEventListener(sr,T)},[]),u.jsx(K.div,{...l,ref:b,style:{pointerEvents:x?E?"auto":"none":void 0,...e.style},onFocusCapture:U(e.onFocusCapture,S.onFocusCapture),onBlurCapture:U(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:U(e.onPointerDownCapture,C.onPointerDownCapture)})});bt.displayName=qi;var Ji="DismissableLayerBranch",Xn=i.forwardRef((e,t)=>{const r=i.useContext(Yn),n=i.useRef(null),o=ee(t,n);return i.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),u.jsx(K.div,{...e,ref:o})});Xn.displayName=Ji;function ec(e,t=globalThis==null?void 0:globalThis.document){const r=le(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=c=>{if(c.target&&!n.current){let l=function(){Zn(Zi,r,d,{discrete:!0})};const d={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function tc(e,t=globalThis==null?void 0:globalThis.document){const r=le(e),n=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!n.current&&Zn(Qi,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function qn(){const e=new CustomEvent(sr);document.dispatchEvent(e)}function Zn(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Hn(o,a):o.dispatchEvent(a)}var rc=bt,nc=Xn,ir="focusScope.autoFocusOnMount",cr="focusScope.autoFocusOnUnmount",Qn={bubbles:!1,cancelable:!0},oc="FocusScope",Jn=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[c,l]=i.useState(null),d=le(o),f=le(a),h=i.useRef(null),v=ee(t,p=>l(p)),g=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let p=function(x){if(g.paused||!c)return;const E=x.target;c.contains(E)?h.current=E:Te(h.current,{select:!0})},m=function(x){if(g.paused||!c)return;const E=x.relatedTarget;E!==null&&(c.contains(E)||Te(h.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const C of x)C.removedNodes.length>0&&Te(c)};document.addEventListener("focusin",p),document.addEventListener("focusout",m);const w=new MutationObserver(y);return c&&w.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",m),w.disconnect()}}},[n,c,g.paused]),i.useEffect(()=>{if(c){ro.add(g);const p=document.activeElement;if(!c.contains(p)){const y=new CustomEvent(ir,Qn);c.addEventListener(ir,d),c.dispatchEvent(y),y.defaultPrevented||(ac(dc(eo(c)),{select:!0}),document.activeElement===p&&Te(c))}return()=>{c.removeEventListener(ir,d),setTimeout(()=>{const y=new CustomEvent(cr,Qn);c.addEventListener(cr,f),c.dispatchEvent(y),y.defaultPrevented||Te(p??document.body,{select:!0}),c.removeEventListener(cr,f),ro.remove(g)},0)}}},[c,d,f,g]);const b=i.useCallback(p=>{if(!r&&!n||g.paused)return;const m=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,y=document.activeElement;if(m&&y){const w=p.currentTarget,[x,E]=sc(w);x&&E?!p.shiftKey&&y===E?(p.preventDefault(),r&&Te(x,{select:!0})):p.shiftKey&&y===x&&(p.preventDefault(),r&&Te(E,{select:!0})):y===w&&p.preventDefault()}},[r,n,g.paused]);return u.jsx(K.div,{tabIndex:-1,...s,ref:v,onKeyDown:b})});Jn.displayName=oc;function ac(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Te(n,{select:t}),document.activeElement!==r)return}function sc(e){const t=eo(e),r=to(t,e),n=to(t.reverse(),e);return[r,n]}function eo(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function to(e,t){for(const r of e)if(!ic(r,{upTo:t}))return r}function ic(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function cc(e){return e instanceof HTMLInputElement&&"select"in e}function Te(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&cc(e)&&t&&e.select()}}var ro=lc();function lc(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=no(e,t),e.unshift(t)},remove(t){var r;e=no(e,t),(r=e[0])==null||r.resume()}}}function no(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function dc(e){return e.filter(t=>t.tagName!=="A")}var uc="Portal",yt=i.forwardRef((e,t)=>{var c;const{container:r,...n}=e,[o,a]=i.useState(!1);Ce(()=>a(!0),[]);const s=r||o&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return s?hn.createPortal(u.jsx(K.div,{...n,ref:t}),s):null});yt.displayName=uc;function fc(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var Le=e=>{const{present:t,children:r}=e,n=pc(t),o=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),a=ee(n.ref,hc(o));return typeof r=="function"||n.isPresent?i.cloneElement(o,{ref:a}):null};Le.displayName="Presence";function pc(e){const[t,r]=i.useState(),n=i.useRef({}),o=i.useRef(e),a=i.useRef("none"),s=e?"mounted":"unmounted",[c,l]=fc(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const d=wt(n.current);a.current=c==="mounted"?d:"none"},[c]),Ce(()=>{const d=n.current,f=o.current;if(f!==e){const v=a.current,g=wt(d);e?l("MOUNT"):g==="none"||(d==null?void 0:d.display)==="none"?l("UNMOUNT"):l(f&&v!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Ce(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,h=g=>{const p=wt(n.current).includes(g.animationName);if(g.target===t&&p&&(l("ANIMATION_END"),!o.current)){const m=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=m)})}},v=g=>{g.target===t&&(a.current=wt(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(d=>{d&&(n.current=getComputedStyle(d)),r(d)},[])}}function wt(e){return(e==null?void 0:e.animationName)||"none"}function hc(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var lr=0;function gc(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??oo()),document.body.insertAdjacentElement("beforeend",e[1]??oo()),lr++,()=>{lr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),lr--}},[])}function oo(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ge=function(){return ge=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},ge.apply(this,arguments)};function ao(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function mc(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var xt="right-scroll-bar-position",St="width-before-scroll-bar",vc="with-scroll-bars-hidden",bc="--removed-body-scroll-bar-size";function dr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function yc(e,t){var r=X.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var wc=typeof window<"u"?i.useLayoutEffect:i.useEffect,so=new WeakMap;function xc(e,t){var r=yc(null,function(n){return e.forEach(function(o){return dr(o,n)})});return wc(function(){var n=so.get(r);if(n){var o=new Set(n),a=new Set(e),s=r.current;o.forEach(function(c){a.has(c)||dr(c,null)}),a.forEach(function(c){o.has(c)||dr(c,s)})}so.set(r,e)},[e]),r}function Sc(e){return e}function Ec(e,t){t===void 0&&(t=Sc);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var s=t(a,n);return r.push(s),function(){r=r.filter(function(c){return c!==s})}},assignSyncMedium:function(a){for(n=!0;r.length;){var s=r;r=[],s.forEach(a)}r={push:function(c){return a(c)},filter:function(){return r}}},assignMedium:function(a){n=!0;var s=[];if(r.length){var c=r;r=[],c.forEach(a),s=r}var l=function(){var f=s;s=[],f.forEach(a)},d=function(){return Promise.resolve().then(l)};d(),r={push:function(f){s.push(f),d()},filter:function(f){return s=s.filter(f),r}}}};return o}function Cc(e){e===void 0&&(e={});var t=Ec(null);return t.options=ge({async:!0,ssr:!1},e),t}var io=function(e){var t=e.sideCar,r=ao(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,ge({},r))};io.isSideCarExport=!0;function Tc(e,t){return e.useMedium(t),io}var co=Cc(),ur=function(){},Et=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:ur,onWheelCapture:ur,onTouchMoveCapture:ur}),o=n[0],a=n[1],s=e.forwardProps,c=e.children,l=e.className,d=e.removeScrollBar,f=e.enabled,h=e.shards,v=e.sideCar,g=e.noIsolation,b=e.inert,p=e.allowPinchZoom,m=e.as,y=m===void 0?"div":m,w=e.gapMode,x=ao(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=v,C=xc([r,t]),S=ge(ge({},x),o);return i.createElement(i.Fragment,null,f&&i.createElement(E,{sideCar:co,removeScrollBar:d,shards:h,noIsolation:g,inert:b,setCallbacks:a,allowPinchZoom:!!p,lockRef:r,gapMode:w}),s?i.cloneElement(i.Children.only(c),ge(ge({},S),{ref:C})):i.createElement(y,ge({},S,{className:l,ref:C}),c))});Et.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Et.classNames={fullWidth:St,zeroRight:xt};var Pc=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Nc(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Pc();return t&&e.setAttribute("nonce",t),e}function Ac(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Oc(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Mc=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Nc())&&(Ac(t,r),Oc(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},kc=function(){var e=Mc();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},lo=function(){var e=kc(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},_c={left:0,top:0,right:0,gap:0},fr=function(e){return parseInt(e||"",10)||0},Ic=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[fr(r),fr(n),fr(o)]},Dc=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return _c;var t=Ic(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Lc=lo(),Ge="data-scroll-locked",Rc=function(e,t,r,n){var o=e.left,a=e.top,s=e.right,c=e.gap;return r===void 0&&(r="margin"),`
|
|
76
76
|
.`.concat(vc,` {
|
|
77
|
-
overflow: hidden `).concat(
|
|
78
|
-
padding-right: `).concat(c,"px ").concat(
|
|
77
|
+
overflow: hidden `).concat(n,`;
|
|
78
|
+
padding-right: `).concat(c,"px ").concat(n,`;
|
|
79
79
|
}
|
|
80
80
|
body[`).concat(Ge,`] {
|
|
81
|
-
overflow: hidden `).concat(
|
|
81
|
+
overflow: hidden `).concat(n,`;
|
|
82
82
|
overscroll-behavior: contain;
|
|
83
|
-
`).concat([t&&"position: relative ".concat(
|
|
83
|
+
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
|
|
84
84
|
padding-left: `.concat(o,`px;
|
|
85
85
|
padding-top: `).concat(a,`px;
|
|
86
86
|
padding-right: `).concat(s,`px;
|
|
87
87
|
margin-left:0;
|
|
88
88
|
margin-top:0;
|
|
89
|
-
margin-right: `).concat(c,"px ").concat(
|
|
90
|
-
`),
|
|
89
|
+
margin-right: `).concat(c,"px ").concat(n,`;
|
|
90
|
+
`),r==="padding"&&"padding-right: ".concat(c,"px ").concat(n,";")].filter(Boolean).join(""),`
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
.`).concat(xt,` {
|
|
94
|
-
right: `).concat(c,"px ").concat(
|
|
94
|
+
right: `).concat(c,"px ").concat(n,`;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
.`).concat(St,` {
|
|
98
|
-
margin-right: `).concat(c,"px ").concat(
|
|
98
|
+
margin-right: `).concat(c,"px ").concat(n,`;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
.`).concat(xt," .").concat(xt,` {
|
|
102
|
-
right: 0 `).concat(
|
|
102
|
+
right: 0 `).concat(n,`;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
.`).concat(St," .").concat(St,` {
|
|
106
|
-
margin-right: 0 `).concat(
|
|
106
|
+
margin-right: 0 `).concat(n,`;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
body[`).concat(Ge,`] {
|
|
110
110
|
`).concat(bc,": ").concat(c,`px;
|
|
111
111
|
}
|
|
112
|
-
`)},uo=function(){var e=parseInt(document.body.getAttribute(Ge)||"0",10);return isFinite(e)?e:0},Fc=function(){i.useEffect(function(){return document.body.setAttribute(Ge,(uo()+1).toString()),function(){var e=uo()-1;e<=0?document.body.removeAttribute(Ge):document.body.setAttribute(Ge,e.toString())}},[])},$c=function(e){var t=e.noRelative,
|
|
112
|
+
`)},uo=function(){var e=parseInt(document.body.getAttribute(Ge)||"0",10);return isFinite(e)?e:0},Fc=function(){i.useEffect(function(){return document.body.setAttribute(Ge,(uo()+1).toString()),function(){var e=uo()-1;e<=0?document.body.removeAttribute(Ge):document.body.setAttribute(Ge,e.toString())}},[])},$c=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;Fc();var a=i.useMemo(function(){return Dc(o)},[o]);return i.createElement(Lc,{styles:Rc(a,!t,o,r?"":"!important")})},pr=!1;if(typeof window<"u")try{var Ct=Object.defineProperty({},"passive",{get:function(){return pr=!0,!0}});window.addEventListener("test",Ct,Ct),window.removeEventListener("test",Ct,Ct)}catch{pr=!1}var Ue=pr?{passive:!1}:!1,zc=function(e){return e.tagName==="TEXTAREA"},fo=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!zc(e)&&r[t]==="visible")},Wc=function(e){return fo(e,"overflowY")},Bc=function(e){return fo(e,"overflowX")},po=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=ho(e,n);if(o){var a=go(e,n),s=a[1],c=a[2];if(s>c)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Vc=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Hc=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},ho=function(e,t){return e==="v"?Wc(t):Bc(t)},go=function(e,t){return e==="v"?Vc(t):Hc(t)},jc=function(e,t){return e==="h"&&t==="rtl"?-1:1},Gc=function(e,t,r,n,o){var a=jc(e,window.getComputedStyle(t).direction),s=a*n,c=r.target,l=t.contains(c),d=!1,f=s>0,h=0,v=0;do{var g=go(e,c),b=g[0],p=g[1],m=g[2],y=p-m-a*b;(b||y)&&ho(e,c)&&(h+=y,v+=b),c instanceof ShadowRoot?c=c.host:c=c.parentNode}while(!l&&c!==document.body||l&&(t.contains(c)||t===c));return(f&&Math.abs(h)<1||!f&&Math.abs(v)<1)&&(d=!0),d},Tt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},mo=function(e){return[e.deltaX,e.deltaY]},vo=function(e){return e&&"current"in e?e.current:e},Uc=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Kc=function(e){return`
|
|
113
113
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
114
114
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
115
|
-
`)},Yc=0,Ke=[];function Xc(e){var t=i.useRef([]),
|
|
115
|
+
`)},Yc=0,Ke=[];function Xc(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(Yc++)[0],a=i.useState(lo)[0],s=i.useRef(e);i.useEffect(function(){s.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=mc([e.lockRef.current],(e.shards||[]).map(vo),!0).filter(Boolean);return p.forEach(function(m){return m.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(m){return m.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=i.useCallback(function(p,m){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!s.current.allowPinchZoom;var y=Tt(p),w=r.current,x="deltaX"in p?p.deltaX:w[0]-y[0],E="deltaY"in p?p.deltaY:w[1]-y[1],C,S=p.target,T=Math.abs(x)>Math.abs(E)?"h":"v";if("touches"in p&&T==="h"&&S.type==="range")return!1;var $=po(T,S);if(!$)return!0;if($?C=T:(C=T==="v"?"h":"v",$=po(T,S)),!$)return!1;if(!n.current&&"changedTouches"in p&&(x||E)&&(n.current=C),!C)return!0;var I=n.current||C;return Gc(I,m,p,I==="h"?x:E)},[]),l=i.useCallback(function(p){var m=p;if(!(!Ke.length||Ke[Ke.length-1]!==a)){var y="deltaY"in m?mo(m):Tt(m),w=t.current.filter(function(C){return C.name===m.type&&(C.target===m.target||m.target===C.shadowParent)&&Uc(C.delta,y)})[0];if(w&&w.should){m.cancelable&&m.preventDefault();return}if(!w){var x=(s.current.shards||[]).map(vo).filter(Boolean).filter(function(C){return C.contains(m.target)}),E=x.length>0?c(m,x[0]):!s.current.noIsolation;E&&m.cancelable&&m.preventDefault()}}},[]),d=i.useCallback(function(p,m,y,w){var x={name:p,delta:m,target:y,should:w,shadowParent:qc(y)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(E){return E!==x})},1)},[]),f=i.useCallback(function(p){r.current=Tt(p),n.current=void 0},[]),h=i.useCallback(function(p){d(p.type,mo(p),p.target,c(p,e.lockRef.current))},[]),v=i.useCallback(function(p){d(p.type,Tt(p),p.target,c(p,e.lockRef.current))},[]);i.useEffect(function(){return Ke.push(a),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:v}),document.addEventListener("wheel",l,Ue),document.addEventListener("touchmove",l,Ue),document.addEventListener("touchstart",f,Ue),function(){Ke=Ke.filter(function(p){return p!==a}),document.removeEventListener("wheel",l,Ue),document.removeEventListener("touchmove",l,Ue),document.removeEventListener("touchstart",f,Ue)}},[]);var g=e.removeScrollBar,b=e.inert;return i.createElement(i.Fragment,null,b?i.createElement(a,{styles:Kc(o)}):null,g?i.createElement($c,{gapMode:e.gapMode}):null)}function qc(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Zc=Tc(co,Xc);var bo=i.forwardRef(function(e,t){return i.createElement(Et,ge({},e,{ref:t,sideCar:Zc}))});bo.classNames=Et.classNames;var Qc=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ye=new WeakMap,Pt=new WeakMap,Nt={},hr=0,yo=function(e){return e&&(e.host||yo(e.parentNode))},Jc=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=yo(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},el=function(e,t,r,n){var o=Jc(t,Array.isArray(e)?e:[e]);Nt[r]||(Nt[r]=new WeakMap);var a=Nt[r],s=[],c=new Set,l=new Set(o),d=function(h){!h||c.has(h)||(c.add(h),d(h.parentNode))};o.forEach(d);var f=function(h){!h||l.has(h)||Array.prototype.forEach.call(h.children,function(v){if(c.has(v))f(v);else try{var g=v.getAttribute(n),b=g!==null&&g!=="false",p=(Ye.get(v)||0)+1,m=(a.get(v)||0)+1;Ye.set(v,p),a.set(v,m),s.push(v),p===1&&b&&Pt.set(v,!0),m===1&&v.setAttribute(r,"true"),b||v.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return f(t),c.clear(),hr++,function(){s.forEach(function(h){var v=Ye.get(h)-1,g=a.get(h)-1;Ye.set(h,v),a.set(h,g),v||(Pt.has(h)||h.removeAttribute(n),Pt.delete(h)),g||h.removeAttribute(r)}),hr--,hr||(Ye=new WeakMap,Ye=new WeakMap,Pt=new WeakMap,Nt={})}},tl=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=Qc(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),el(n,o,r,"aria-hidden")):function(){return null}},gr="Dialog",[wo,$u]=nt(gr),[rl,ue]=wo(gr),xo=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,c=i.useRef(null),l=i.useRef(null),[d=!1,f]=ar({prop:n,defaultProp:o,onChange:a});return u.jsx(rl,{scope:t,triggerRef:c,contentRef:l,contentId:vt(),titleId:vt(),descriptionId:vt(),open:d,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(h=>!h),[f]),modal:s,children:r})};xo.displayName=gr;var So="DialogTrigger",Eo=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ue(So,r),a=ee(t,o.triggerRef);return u.jsx(K.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":br(o.open),...n,ref:a,onClick:U(e.onClick,o.onOpenToggle)})});Eo.displayName=So;var mr="DialogPortal",[nl,Co]=wo(mr,{forceMount:void 0}),To=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=ue(mr,t);return u.jsx(nl,{scope:t,forceMount:r,children:i.Children.map(n,s=>u.jsx(Le,{present:r||a.open,children:u.jsx(yt,{asChild:!0,container:o,children:s})}))})};To.displayName=mr;var At="DialogOverlay",Po=i.forwardRef((e,t)=>{const r=Co(At,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=ue(At,e.__scopeDialog);return a.modal?u.jsx(Le,{present:n||a.open,children:u.jsx(ol,{...o,ref:t})}):null});Po.displayName=At;var ol=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ue(At,r);return u.jsx(bo,{as:de,allowPinchZoom:!0,shards:[o.contentRef],children:u.jsx(K.div,{"data-state":br(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Re="DialogContent",No=i.forwardRef((e,t)=>{const r=Co(Re,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=ue(Re,e.__scopeDialog);return u.jsx(Le,{present:n||a.open,children:a.modal?u.jsx(al,{...o,ref:t}):u.jsx(sl,{...o,ref:t})})});No.displayName=Re;var al=i.forwardRef((e,t)=>{const r=ue(Re,e.__scopeDialog),n=i.useRef(null),o=ee(t,r.contentRef,n);return i.useEffect(()=>{const a=n.current;if(a)return tl(a)},[]),u.jsx(Ao,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:U(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=r.triggerRef.current)==null||s.focus()}),onPointerDownOutside:U(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,c=s.button===0&&s.ctrlKey===!0;(s.button===2||c)&&a.preventDefault()}),onFocusOutside:U(e.onFocusOutside,a=>a.preventDefault())})}),sl=i.forwardRef((e,t)=>{const r=ue(Re,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return u.jsx(Ao,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,c;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(n.current||(c=r.triggerRef.current)==null||c.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var l,d;(l=e.onInteractOutside)==null||l.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((d=r.triggerRef.current)==null?void 0:d.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Ao=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,c=ue(Re,r),l=i.useRef(null),d=ee(t,l);return gc(),u.jsxs(u.Fragment,{children:[u.jsx(Jn,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:u.jsx(bt,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":br(c.open),...s,ref:d,onDismiss:()=>c.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(il,{titleId:c.titleId}),u.jsx(ll,{contentRef:l,descriptionId:c.descriptionId})]})]})}),vr="DialogTitle",Oo=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ue(vr,r);return u.jsx(K.h2,{id:o.titleId,...n,ref:t})});Oo.displayName=vr;var Mo="DialogDescription",ko=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ue(Mo,r);return u.jsx(K.p,{id:o.descriptionId,...n,ref:t})});ko.displayName=Mo;var _o="DialogClose",Io=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ue(_o,r);return u.jsx(K.button,{type:"button",...n,ref:t,onClick:U(e.onClick,()=>o.onOpenChange(!1))})});Io.displayName=_o;function br(e){return e?"open":"closed"}var Do="DialogTitleWarning",[zu,Lo]=ji(Do,{contentName:Re,titleName:vr,docsSlug:"dialog"}),il=({titleId:e})=>{const t=Lo(Do),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
116
116
|
|
|
117
117
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
118
118
|
|
|
119
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},cl="DialogDescriptionWarning",ll=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Lo(cl).contentName}}.`;return i.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},dl=xo,ul=Eo,fl=To,Ro=Po,Fo=No,$o=Oo,zo=ko,Wo=Io;const Bo=dl,pl=ul,hl=Wo,Vo=fl,wn=i.forwardRef(({className:e,...t},n)=>u.jsx(Ro,{className:L("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));wn.displayName=Ro.displayName;const gl=ht("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),xn=i.forwardRef(({side:e="right",className:t,children:n,...r},o)=>u.jsxs(Vo,{children:[u.jsx(wn,{}),u.jsxs(Fo,{ref:o,className:L(gl({side:e}),t),...r,children:[u.jsxs(Wo,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[u.jsx(Er,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]}));xn.displayName=Fo.displayName;const Ho=({className:e,...t})=>u.jsx("div",{className:L("flex flex-col space-y-2 text-center sm:text-left",e),...t});Ho.displayName="SheetHeader";const jo=({className:e,...t})=>u.jsx("div",{className:L("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});jo.displayName="SheetFooter";const Go=i.forwardRef(({className:e,...t},n)=>u.jsx($o,{ref:n,className:L("text-lg font-semibold text-foreground",e),...t}));Go.displayName=$o.displayName;const Uo=i.forwardRef(({className:e,...t},n)=>u.jsx(zo,{ref:n,className:L("text-sm text-muted-foreground",e),...t}));Uo.displayName=zo.displayName;function ml({getMyAccountPath:e,publicName:t,applicationName:n}){const{appID:r}=tt.useParams(),o=`https://api.randmar.io/v4/Partner/${r}/Account/Logo?height=72&width=72`,[a,s]=X.useState(!1),c=()=>{s(!0)};return u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-lg bg-muted",children:a?u.jsx(tt.Link,{to:`${e(r)}#brand`,className:"transition-colors hover:bg-muted px-6",children:u.jsx(Us,{className:"h-5 w-5 text-muted-foreground"})}):u.jsx("img",{src:o,alt:"Partner logo",className:"h-9 w-9 object-cover bg-neutral-100",onError:c})}),u.jsxs("div",{className:"flex flex-1 flex-col",children:[u.jsx("span",{className:"text-sm font-medium",children:t||"Partner"}),u.jsx("span",{className:"text-xs text-muted-foreground",children:n})]})]})}const Sn=1024;function Ko(){const[e,t]=i.useState(void 0);return i.useEffect(()=>{const n=window.matchMedia(`(max-width: ${Sn-1}px)`),r=()=>{t(window.innerWidth<Sn)};return n.addEventListener("change",r),t(window.innerWidth<Sn),()=>n.removeEventListener("change",r)},[]),!!e}function En({className:e,...t}){return u.jsx("div",{className:L("animate-pulse rounded-md bg-primary/20",e),...t})}const vl=["top","right","bottom","left"],Pe=Math.min,ae=Math.max,Ot=Math.round,Mt=Math.floor,me=e=>({x:e,y:e}),bl={left:"right",right:"left",bottom:"top",top:"bottom"},yl={start:"end",end:"start"};function Cn(e,t,n){return ae(e,Pe(t,n))}function we(e,t){return typeof e=="function"?e(t):e}function xe(e){return e.split("-")[0]}function Xe(e){return e.split("-")[1]}function Tn(e){return e==="x"?"y":"x"}function Pn(e){return e==="y"?"height":"width"}function Ne(e){return["top","bottom"].includes(xe(e))?"y":"x"}function Nn(e){return Tn(Ne(e))}function wl(e,t,n){n===void 0&&(n=!1);const r=Xe(e),o=Nn(e),a=Pn(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=kt(s)),[s,kt(s)]}function xl(e){const t=kt(e);return[An(e),t,An(t)]}function An(e){return e.replace(/start|end/g,t=>yl[t])}function Sl(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:s;default:return[]}}function El(e,t,n,r){const o=Xe(e);let a=Sl(xe(e),n==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(An)))),a}function kt(e){return e.replace(/left|right|bottom|top/g,t=>bl[t])}function Cl(e){return{top:0,right:0,bottom:0,left:0,...e}}function Yo(e){return typeof e!="number"?Cl(e):{top:e,right:e,bottom:e,left:e}}function _t(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Xo(e,t,n){let{reference:r,floating:o}=e;const a=Ne(t),s=Nn(t),c=Pn(s),l=xe(t),d=a==="y",f=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,v=r[c]/2-o[c]/2;let g;switch(l){case"top":g={x:f,y:r.y-o.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:h};break;case"left":g={x:r.x-o.width,y:h};break;default:g={x:r.x,y:r.y}}switch(Xe(t)){case"start":g[s]-=v*(n&&d?-1:1);break;case"end":g[s]+=v*(n&&d?-1:1);break}return g}const Tl=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,c=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:h}=Xo(d,r,l),v=r,g={},b=0;for(let p=0;p<c.length;p++){const{name:m,fn:y}=c[p],{x:w,y:x,data:E,reset:C}=await y({x:f,y:h,initialPlacement:r,placement:v,strategy:o,middlewareData:g,rects:d,platform:s,elements:{reference:e,floating:t}});f=w??f,h=x??h,g={...g,[m]:{...g[m],...E}},C&&b<=50&&(b++,typeof C=="object"&&(C.placement&&(v=C.placement),C.rects&&(d=C.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:f,y:h}=Xo(d,v,l)),p=-1)}return{x:f,y:h,placement:v,strategy:o,middlewareData:g}};async function ot(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:s,elements:c,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:v=!1,padding:g=0}=we(t,e),b=Yo(g),m=c[v?h==="floating"?"reference":"floating":h],y=_t(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(m)))==null||n?m:m.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:d,rootBoundary:f,strategy:l})),w=h==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),E=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},C=_t(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:x,strategy:l}):w);return{top:(y.top-C.top+b.top)/E.y,bottom:(C.bottom-y.bottom+b.bottom)/E.y,left:(y.left-C.left+b.left)/E.x,right:(C.right-y.right+b.right)/E.x}}const Pl=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:c,middlewareData:l}=t,{element:d,padding:f=0}=we(e,t)||{};if(d==null)return{};const h=Yo(f),v={x:n,y:r},g=Nn(o),b=Pn(g),p=await s.getDimensions(d),m=g==="y",y=m?"top":"left",w=m?"bottom":"right",x=m?"clientHeight":"clientWidth",E=a.reference[b]+a.reference[g]-v[g]-a.floating[b],C=v[g]-a.reference[g],S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let T=S?S[x]:0;(!T||!await(s.isElement==null?void 0:s.isElement(S)))&&(T=c.floating[x]||a.floating[b]);const $=E/2-C/2,I=T/2-p[b]/2-1,z=Pe(h[y],I),H=Pe(h[w],I),W=z,_=T-p[b]-H,N=T/2-p[b]/2+$,B=Cn(W,N,_),M=!l.arrow&&Xe(o)!=null&&N!==B&&a.reference[b]/2-(N<W?z:H)-p[b]/2<0,j=M?N<W?N-W:N-_:0;return{[g]:v[g]+j,data:{[g]:B,centerOffset:N-B-j,...M&&{alignmentOffset:j}},reset:M}}}),Nl=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:s,initialPlacement:c,platform:l,elements:d}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:v,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:p=!0,...m}=we(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=xe(o),w=Ne(c),x=xe(c)===c,E=await(l.isRTL==null?void 0:l.isRTL(d.floating)),C=v||(x||!p?[kt(c)]:xl(c)),S=b!=="none";!v&&S&&C.push(...El(c,p,b,E));const T=[c,...C],$=await ot(t,m),I=[];let z=((r=a.flip)==null?void 0:r.overflows)||[];if(f&&I.push($[y]),h){const N=wl(o,s,E);I.push($[N[0]],$[N[1]])}if(z=[...z,{placement:o,overflows:I}],!I.every(N=>N<=0)){var H,W;const N=(((H=a.flip)==null?void 0:H.index)||0)+1,B=T[N];if(B)return{data:{index:N,overflows:z},reset:{placement:B}};let M=(W=z.filter(j=>j.overflows[0]<=0).sort((j,k)=>j.overflows[1]-k.overflows[1])[0])==null?void 0:W.placement;if(!M)switch(g){case"bestFit":{var _;const j=(_=z.filter(k=>{if(S){const R=Ne(k.placement);return R===w||R==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(R=>R>0).reduce((R,Y)=>R+Y,0)]).sort((k,R)=>k[1]-R[1])[0])==null?void 0:_[0];j&&(M=j);break}case"initialPlacement":M=c;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function qo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Zo(e){return vl.some(t=>e[t]>=0)}const Al=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=we(e,t);switch(r){case"referenceHidden":{const a=await ot(t,{...o,elementContext:"reference"}),s=qo(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Zo(s)}}}case"escaped":{const a=await ot(t,{...o,altBoundary:!0}),s=qo(a,n.floating);return{data:{escapedOffsets:s,escaped:Zo(s)}}}default:return{}}}}};async function Ol(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=xe(n),c=Xe(n),l=Ne(n)==="y",d=["left","top"].includes(s)?-1:1,f=a&&l?-1:1,h=we(t,e);let{mainAxis:v,crossAxis:g,alignmentAxis:b}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return c&&typeof b=="number"&&(g=c==="end"?b*-1:b),l?{x:g*f,y:v*d}:{x:v*d,y:g*f}}const Ml=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:s,middlewareData:c}=t,l=await Ol(t,e);return s===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:s}}}}},kl=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:m=>{let{x:y,y:w}=m;return{x:y,y:w}}},...l}=we(e,t),d={x:n,y:r},f=await ot(t,l),h=Ne(xe(o)),v=Tn(h);let g=d[v],b=d[h];if(a){const m=v==="y"?"top":"left",y=v==="y"?"bottom":"right",w=g+f[m],x=g-f[y];g=Cn(w,g,x)}if(s){const m=h==="y"?"top":"left",y=h==="y"?"bottom":"right",w=b+f[m],x=b-f[y];b=Cn(w,b,x)}const p=c.fn({...t,[v]:g,[h]:b});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[v]:a,[h]:s}}}}}},_l=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:s}=t,{offset:c=0,mainAxis:l=!0,crossAxis:d=!0}=we(e,t),f={x:n,y:r},h=Ne(o),v=Tn(h);let g=f[v],b=f[h];const p=we(c,t),m=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const x=v==="y"?"height":"width",E=a.reference[v]-a.floating[x]+m.mainAxis,C=a.reference[v]+a.reference[x]-m.mainAxis;g<E?g=E:g>C&&(g=C)}if(d){var y,w;const x=v==="y"?"width":"height",E=["top","left"].includes(xe(o)),C=a.reference[h]-a.floating[x]+(E&&((y=s.offset)==null?void 0:y[h])||0)+(E?0:m.crossAxis),S=a.reference[h]+a.reference[x]+(E?0:((w=s.offset)==null?void 0:w[h])||0)-(E?m.crossAxis:0);b<C?b=C:b>S&&(b=S)}return{[v]:g,[h]:b}}}},Il=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:s,elements:c}=t,{apply:l=()=>{},...d}=we(e,t),f=await ot(t,d),h=xe(o),v=Xe(o),g=Ne(o)==="y",{width:b,height:p}=a.floating;let m,y;h==="top"||h==="bottom"?(m=h,y=v===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(y=h,m=v==="end"?"top":"bottom");const w=p-f.top-f.bottom,x=b-f.left-f.right,E=Pe(p-f[m],w),C=Pe(b-f[y],x),S=!t.middlewareData.shift;let T=E,$=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&($=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(T=w),S&&!v){const z=ae(f.left,0),H=ae(f.right,0),W=ae(f.top,0),_=ae(f.bottom,0);g?$=b-2*(z!==0||H!==0?z+H:ae(f.left,f.right)):T=p-2*(W!==0||_!==0?W+_:ae(f.top,f.bottom))}await l({...t,availableWidth:$,availableHeight:T});const I=await s.getDimensions(c.floating);return b!==I.width||p!==I.height?{reset:{rects:!0}}:{}}}};function It(){return typeof window<"u"}function qe(e){return Qo(e)?(e.nodeName||"").toLowerCase():"#document"}function se(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ve(e){var t;return(t=(Qo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Qo(e){return It()?e instanceof Node||e instanceof se(e).Node:!1}function fe(e){return It()?e instanceof Element||e instanceof se(e).Element:!1}function be(e){return It()?e instanceof HTMLElement||e instanceof se(e).HTMLElement:!1}function Jo(e){return!It()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof se(e).ShadowRoot}function at(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=pe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Dl(e){return["table","td","th"].includes(qe(e))}function Dt(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function On(e){const t=Mn(),n=fe(e)?pe(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Ll(e){let t=Ae(e);for(;be(t)&&!Ze(t);){if(On(t))return t;if(Dt(t))return null;t=Ae(t)}return null}function Mn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ze(e){return["html","body","#document"].includes(qe(e))}function pe(e){return se(e).getComputedStyle(e)}function Lt(e){return fe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ae(e){if(qe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Jo(e)&&e.host||ve(e);return Jo(t)?t.host:t}function ea(e){const t=Ae(e);return Ze(t)?e.ownerDocument?e.ownerDocument.body:e.body:be(t)&&at(t)?t:ea(t)}function st(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=ea(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),s=se(o);if(a){const c=kn(s);return t.concat(s,s.visualViewport||[],at(o)?o:[],c&&n?st(c):[])}return t.concat(o,st(o,[],n))}function kn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ta(e){const t=pe(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=be(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:r,c=Ot(n)!==a||Ot(r)!==s;return c&&(n=a,r=s),{width:n,height:r,$:c}}function _n(e){return fe(e)?e:e.contextElement}function Qe(e){const t=_n(e);if(!be(t))return me(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=ta(t);let s=(a?Ot(n.width):n.width)/r,c=(a?Ot(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const Rl=me(0);function na(e){const t=se(e);return!Mn()||!t.visualViewport?Rl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Fl(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==se(e)?!1:t}function Fe(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=_n(e);let s=me(1);t&&(r?fe(r)&&(s=Qe(r)):s=Qe(e));const c=Fl(a,n,r)?na(a):me(0);let l=(o.left+c.x)/s.x,d=(o.top+c.y)/s.y,f=o.width/s.x,h=o.height/s.y;if(a){const v=se(a),g=r&&fe(r)?se(r):r;let b=v,p=kn(b);for(;p&&r&&g!==b;){const m=Qe(p),y=p.getBoundingClientRect(),w=pe(p),x=y.left+(p.clientLeft+parseFloat(w.paddingLeft))*m.x,E=y.top+(p.clientTop+parseFloat(w.paddingTop))*m.y;l*=m.x,d*=m.y,f*=m.x,h*=m.y,l+=x,d+=E,b=se(p),p=kn(b)}}return _t({width:f,height:h,x:l,y:d})}function In(e,t){const n=Lt(e).scrollLeft;return t?t.left+n:Fe(ve(e)).left+n}function ra(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:In(e,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function $l(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",s=ve(r),c=t?Dt(t.floating):!1;if(r===s||c&&a)return n;let l={scrollLeft:0,scrollTop:0},d=me(1);const f=me(0),h=be(r);if((h||!h&&!a)&&((qe(r)!=="body"||at(s))&&(l=Lt(r)),be(r))){const g=Fe(r);d=Qe(r),f.x=g.x+r.clientLeft,f.y=g.y+r.clientTop}const v=s&&!h&&!a?ra(s,l,!0):me(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-l.scrollLeft*d.x+f.x+v.x,y:n.y*d.y-l.scrollTop*d.y+f.y+v.y}}function zl(e){return Array.from(e.getClientRects())}function Wl(e){const t=ve(e),n=Lt(e),r=e.ownerDocument.body,o=ae(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ae(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+In(e);const c=-n.scrollTop;return pe(r).direction==="rtl"&&(s+=ae(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:c}}function Bl(e,t){const n=se(e),r=ve(e),o=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,c=0,l=0;if(o){a=o.width,s=o.height;const d=Mn();(!d||d&&t==="fixed")&&(c=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:c,y:l}}function Vl(e,t){const n=Fe(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=be(e)?Qe(e):me(1),s=e.clientWidth*a.x,c=e.clientHeight*a.y,l=o*a.x,d=r*a.y;return{width:s,height:c,x:l,y:d}}function oa(e,t,n){let r;if(t==="viewport")r=Bl(e,n);else if(t==="document")r=Wl(ve(e));else if(fe(t))r=Vl(t,n);else{const o=na(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return _t(r)}function aa(e,t){const n=Ae(e);return n===t||!fe(n)||Ze(n)?!1:pe(n).position==="fixed"||aa(n,t)}function Hl(e,t){const n=t.get(e);if(n)return n;let r=st(e,[],!1).filter(c=>fe(c)&&qe(c)!=="body"),o=null;const a=pe(e).position==="fixed";let s=a?Ae(e):e;for(;fe(s)&&!Ze(s);){const c=pe(s),l=On(s);!l&&c.position==="fixed"&&(o=null),(a?!l&&!o:!l&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||at(s)&&!l&&aa(e,s))?r=r.filter(f=>f!==s):o=c,s=Ae(s)}return t.set(e,r),r}function jl(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Dt(t)?[]:Hl(t,this._c):[].concat(n),r],c=s[0],l=s.reduce((d,f)=>{const h=oa(t,f,o);return d.top=ae(h.top,d.top),d.right=Pe(h.right,d.right),d.bottom=Pe(h.bottom,d.bottom),d.left=ae(h.left,d.left),d},oa(t,c,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Gl(e){const{width:t,height:n}=ta(e);return{width:t,height:n}}function Ul(e,t,n){const r=be(t),o=ve(t),a=n==="fixed",s=Fe(e,!0,a,t);let c={scrollLeft:0,scrollTop:0};const l=me(0);if(r||!r&&!a)if((qe(t)!=="body"||at(o))&&(c=Lt(t)),r){const v=Fe(t,!0,a,t);l.x=v.x+t.clientLeft,l.y=v.y+t.clientTop}else o&&(l.x=In(o));const d=o&&!r&&!a?ra(o,c):me(0),f=s.left+c.scrollLeft-l.x-d.x,h=s.top+c.scrollTop-l.y-d.y;return{x:f,y:h,width:s.width,height:s.height}}function Dn(e){return pe(e).position==="static"}function sa(e,t){if(!be(e)||pe(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ve(e)===n&&(n=n.ownerDocument.body),n}function ia(e,t){const n=se(e);if(Dt(e))return n;if(!be(e)){let o=Ae(e);for(;o&&!Ze(o);){if(fe(o)&&!Dn(o))return o;o=Ae(o)}return n}let r=sa(e,t);for(;r&&Dl(r)&&Dn(r);)r=sa(r,t);return r&&Ze(r)&&Dn(r)&&!On(r)?n:r||Ll(e)||n}const Kl=async function(e){const t=this.getOffsetParent||ia,n=this.getDimensions,r=await n(e.floating);return{reference:Ul(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Yl(e){return pe(e).direction==="rtl"}const Xl={convertOffsetParentRelativeRectToViewportRelativeRect:$l,getDocumentElement:ve,getClippingRect:jl,getOffsetParent:ia,getElementRects:Kl,getClientRects:zl,getDimensions:Gl,getScale:Qe,isElement:fe,isRTL:Yl};function ca(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ql(e,t){let n=null,r;const o=ve(e);function a(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),a();const d=e.getBoundingClientRect(),{left:f,top:h,width:v,height:g}=d;if(c||t(),!v||!g)return;const b=Mt(h),p=Mt(o.clientWidth-(f+v)),m=Mt(o.clientHeight-(h+g)),y=Mt(f),x={rootMargin:-b+"px "+-p+"px "+-m+"px "+-y+"px",threshold:ae(0,Pe(1,l))||1};let E=!0;function C(S){const T=S[0].intersectionRatio;if(T!==l){if(!E)return s();T?s(!1,T):r=setTimeout(()=>{s(!1,1e-7)},1e3)}T===1&&!ca(d,e.getBoundingClientRect())&&s(),E=!1}try{n=new IntersectionObserver(C,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,x)}n.observe(e)}return s(!0),a}function Zl(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,d=_n(e),f=o||a?[...d?st(d):[],...st(t)]:[];f.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const h=d&&c?ql(d,n):null;let v=-1,g=null;s&&(g=new ResizeObserver(y=>{let[w]=y;w&&w.target===d&&g&&(g.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var x;(x=g)==null||x.observe(t)})),n()}),d&&!l&&g.observe(d),g.observe(t));let b,p=l?Fe(e):null;l&&m();function m(){const y=Fe(e);p&&!ca(p,y)&&n(),p=y,b=requestAnimationFrame(m)}return n(),()=>{var y;f.forEach(w=>{o&&w.removeEventListener("scroll",n),a&&w.removeEventListener("resize",n)}),h==null||h(),(y=g)==null||y.disconnect(),g=null,l&&cancelAnimationFrame(b)}}const Ql=Ml,Jl=kl,ed=Nl,td=Il,nd=Al,la=Pl,rd=_l,od=(e,t,n)=>{const r=new Map,o={platform:Xl,...n},a={...o.platform,_c:r};return Tl(e,t,{...o,platform:a})};var Rt=typeof document<"u"?X.useLayoutEffect:X.useEffect;function Ft(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ft(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!Ft(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function da(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ua(e,t){const n=da(e);return Math.round(t*n)/n}function Ln(e){const t=i.useRef(e);return Rt(()=>{t.current=e}),t}function ad(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:c=!0,whileElementsMounted:l,open:d}=e,[f,h]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,g]=i.useState(r);Ft(v,r)||g(r);const[b,p]=i.useState(null),[m,y]=i.useState(null),w=i.useCallback(k=>{k!==S.current&&(S.current=k,p(k))},[]),x=i.useCallback(k=>{k!==T.current&&(T.current=k,y(k))},[]),E=a||b,C=s||m,S=i.useRef(null),T=i.useRef(null),$=i.useRef(f),I=l!=null,z=Ln(l),H=Ln(o),W=Ln(d),_=i.useCallback(()=>{if(!S.current||!T.current)return;const k={placement:t,strategy:n,middleware:v};H.current&&(k.platform=H.current),od(S.current,T.current,k).then(R=>{const Y={...R,isPositioned:W.current!==!1};N.current&&!Ft($.current,Y)&&($.current=Y,qt.flushSync(()=>{h(Y)}))})},[v,t,n,H,W]);Rt(()=>{d===!1&&$.current.isPositioned&&($.current.isPositioned=!1,h(k=>({...k,isPositioned:!1})))},[d]);const N=i.useRef(!1);Rt(()=>(N.current=!0,()=>{N.current=!1}),[]),Rt(()=>{if(E&&(S.current=E),C&&(T.current=C),E&&C){if(z.current)return z.current(E,C,_);_()}},[E,C,_,z,I]);const B=i.useMemo(()=>({reference:S,floating:T,setReference:w,setFloating:x}),[w,x]),M=i.useMemo(()=>({reference:E,floating:C}),[E,C]),j=i.useMemo(()=>{const k={position:n,left:0,top:0};if(!M.floating)return k;const R=ua(M.floating,f.x),Y=ua(M.floating,f.y);return c?{...k,transform:"translate("+R+"px, "+Y+"px)",...da(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:Y}},[n,c,M.floating,f.x,f.y]);return i.useMemo(()=>({...f,update:_,refs:B,elements:M,floatingStyles:j}),[f,_,B,M,j])}const sd=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?la({element:r.current,padding:o}).fn(n):{}:r?la({element:r,padding:o}).fn(n):{}}}},id=(e,t)=>({...Ql(e),options:[e,t]}),cd=(e,t)=>({...Jl(e),options:[e,t]}),ld=(e,t)=>({...rd(e),options:[e,t]}),dd=(e,t)=>({...ed(e),options:[e,t]}),ud=(e,t)=>({...td(e),options:[e,t]}),fd=(e,t)=>({...nd(e),options:[e,t]}),pd=(e,t)=>({...sd(e),options:[e,t]});var hd="Arrow",fa=i.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return u.jsx(K.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});fa.displayName=hd;var gd=fa;function md(e){const[t,n]=i.useState(void 0);return Ce(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,c;if("borderBoxSize"in a){const l=a.borderBoxSize,d=Array.isArray(l)?l[0]:l;s=d.inlineSize,c=d.blockSize}else s=e.offsetWidth,c=e.offsetHeight;n({width:s,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Rn="Popper",[pa,ha]=rt(Rn),[vd,ga]=pa(Rn),ma=e=>{const{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return u.jsx(vd,{scope:t,anchor:r,onAnchorChange:o,children:n})};ma.displayName=Rn;var va="PopperAnchor",ba=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=ga(va,n),s=i.useRef(null),c=ee(t,s);return i.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:u.jsx(K.div,{...o,ref:c})});ba.displayName=va;var Fn="PopperContent",[bd,yd]=pa(Fn),ya=i.forwardRef((e,t)=>{var ye,dt,Kt,ut,Yt,et;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:h="partial",hideWhenDetached:v=!1,updatePositionStrategy:g="optimized",onPlaced:b,...p}=e,m=ga(Fn,n),[y,w]=i.useState(null),x=ee(t,$e=>w($e)),[E,C]=i.useState(null),S=md(E),T=(S==null?void 0:S.width)??0,$=(S==null?void 0:S.height)??0,I=r+(a!=="center"?"-"+a:""),z=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},H=Array.isArray(d)?d:[d],W=H.length>0,_={padding:z,boundary:H.filter(xd),altBoundary:W},{refs:N,floatingStyles:B,placement:M,isPositioned:j,middlewareData:k}=ad({strategy:"fixed",placement:I,whileElementsMounted:(...$e)=>Zl(...$e,{animationFrame:g==="always"}),elements:{reference:m.anchor},middleware:[id({mainAxis:o+$,alignmentAxis:s}),l&&cd({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?ld():void 0,..._}),l&&dd({..._}),ud({..._,apply:({elements:$e,rects:D,availableWidth:F,availableHeight:Q})=>{const{width:re,height:oe}=D.reference,G=$e.floating.style;G.setProperty("--radix-popper-available-width",`${F}px`),G.setProperty("--radix-popper-available-height",`${Q}px`),G.setProperty("--radix-popper-anchor-width",`${re}px`),G.setProperty("--radix-popper-anchor-height",`${oe}px`)}}),E&&pd({element:E,padding:c}),Sd({arrowWidth:T,arrowHeight:$}),v&&fd({strategy:"referenceHidden",..._})]}),[R,Y]=Sa(M),Z=le(b);Ce(()=>{j&&(Z==null||Z())},[j,Z]);const ne=(ye=k.arrow)==null?void 0:ye.x,J=(dt=k.arrow)==null?void 0:dt.y,te=((Kt=k.arrow)==null?void 0:Kt.centerOffset)!==0,[ie,Oe]=i.useState();return Ce(()=>{y&&Oe(window.getComputedStyle(y).zIndex)},[y]),u.jsx("div",{ref:N.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:j?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ie,"--radix-popper-transform-origin":[(ut=k.transformOrigin)==null?void 0:ut.x,(Yt=k.transformOrigin)==null?void 0:Yt.y].join(" "),...((et=k.hide)==null?void 0:et.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(bd,{scope:n,placedSide:R,onArrowChange:C,arrowX:ne,arrowY:J,shouldHideArrow:te,children:u.jsx(K.div,{"data-side":R,"data-align":Y,...p,ref:x,style:{...p.style,animation:j?void 0:"none"}})})})});ya.displayName=Fn;var wa="PopperArrow",wd={top:"bottom",right:"left",bottom:"top",left:"right"},xa=i.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=yd(wa,r),s=wd[a.placedSide];return u.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:u.jsx(gd,{...o,ref:n,style:{...o.style,display:"block"}})})});xa.displayName=wa;function xd(e){return e!==null}var Sd=e=>({name:"transformOrigin",options:e,fn(t){var m,y,w;const{placement:n,rects:r,middlewareData:o}=t,s=((m=o.arrow)==null?void 0:m.centerOffset)!==0,c=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[d,f]=Sa(n),h={start:"0%",center:"50%",end:"100%"}[f],v=(((y=o.arrow)==null?void 0:y.x)??0)+c/2,g=(((w=o.arrow)==null?void 0:w.y)??0)+l/2;let b="",p="";return d==="bottom"?(b=s?h:`${v}px`,p=`${-l}px`):d==="top"?(b=s?h:`${v}px`,p=`${r.floating.height+l}px`):d==="right"?(b=`${-l}px`,p=s?h:`${g}px`):d==="left"&&(b=`${r.floating.width+l}px`,p=s?h:`${g}px`),{data:{x:b,y:p}}}});function Sa(e){const[t,n="center"]=e.split("-");return[t,n]}var Ed=ma,Cd=ba,Td=ya,Pd=xa,Nd="VisuallyHidden",$t=i.forwardRef((e,t)=>u.jsx(K.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));$t.displayName=Nd;var Ad=$t,[zt,Wu]=rt("Tooltip",[ha]),Wt=ha(),Ea="TooltipProvider",Od=700,$n="tooltip.open",[Md,zn]=zt(Ea),Ca=e=>{const{__scopeTooltip:t,delayDuration:n=Od,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,[s,c]=i.useState(!0),l=i.useRef(!1),d=i.useRef(0);return i.useEffect(()=>{const f=d.current;return()=>window.clearTimeout(f)},[]),u.jsx(Md,{scope:t,isOpenDelayed:s,delayDuration:n,onOpen:i.useCallback(()=>{window.clearTimeout(d.current),c(!1)},[]),onClose:i.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>c(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:i.useCallback(f=>{l.current=f},[]),disableHoverableContent:o,children:a})};Ca.displayName=Ea;var Bt="Tooltip",[kd,it]=zt(Bt),Ta=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:c}=e,l=zn(Bt,e.__scopeTooltip),d=Wt(t),[f,h]=i.useState(null),v=vt(),g=i.useRef(0),b=s??l.disableHoverableContent,p=c??l.delayDuration,m=i.useRef(!1),[y=!1,w]=an({prop:r,defaultProp:o,onChange:T=>{T?(l.onOpen(),document.dispatchEvent(new CustomEvent($n))):l.onClose(),a==null||a(T)}}),x=i.useMemo(()=>y?m.current?"delayed-open":"instant-open":"closed",[y]),E=i.useCallback(()=>{window.clearTimeout(g.current),g.current=0,m.current=!1,w(!0)},[w]),C=i.useCallback(()=>{window.clearTimeout(g.current),g.current=0,w(!1)},[w]),S=i.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{m.current=!0,w(!0),g.current=0},p)},[p,w]);return i.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),u.jsx(Ed,{...d,children:u.jsx(kd,{scope:t,contentId:v,open:y,stateAttribute:x,trigger:f,onTriggerChange:h,onTriggerEnter:i.useCallback(()=>{l.isOpenDelayed?S():E()},[l.isOpenDelayed,S,E]),onTriggerLeave:i.useCallback(()=>{b?C():(window.clearTimeout(g.current),g.current=0)},[C,b]),onOpen:E,onClose:C,disableHoverableContent:b,children:n})})};Ta.displayName=Bt;var Wn="TooltipTrigger",Pa=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=it(Wn,n),a=zn(Wn,n),s=Wt(n),c=i.useRef(null),l=ee(t,c,o.onTriggerChange),d=i.useRef(!1),f=i.useRef(!1),h=i.useCallback(()=>d.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),u.jsx(Cd,{asChild:!0,...s,children:u.jsx(K.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:U(e.onPointerMove,v=>{v.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:U(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:U(e.onPointerDown,()=>{d.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:U(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:U(e.onBlur,o.onClose),onClick:U(e.onClick,o.onClose)})})});Pa.displayName=Wn;var Bn="TooltipPortal",[_d,Id]=zt(Bn,{forceMount:void 0}),Na=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=it(Bn,t);return u.jsx(_d,{scope:t,forceMount:n,children:u.jsx(Le,{present:n||a.open,children:u.jsx(yt,{asChild:!0,container:o,children:r})})})};Na.displayName=Bn;var Je="TooltipContent",Aa=i.forwardRef((e,t)=>{const n=Id(Je,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,s=it(Je,e.__scopeTooltip);return u.jsx(Le,{present:r||s.open,children:s.disableHoverableContent?u.jsx(Oa,{side:o,...a,ref:t}):u.jsx(Dd,{side:o,...a,ref:t})})}),Dd=i.forwardRef((e,t)=>{const n=it(Je,e.__scopeTooltip),r=zn(Je,e.__scopeTooltip),o=i.useRef(null),a=ee(t,o),[s,c]=i.useState(null),{trigger:l,onClose:d}=n,f=o.current,{onPointerInTransitChange:h}=r,v=i.useCallback(()=>{c(null),h(!1)},[h]),g=i.useCallback((b,p)=>{const m=b.currentTarget,y={x:b.clientX,y:b.clientY},w=$d(y,m.getBoundingClientRect()),x=zd(y,w),E=Wd(p.getBoundingClientRect()),C=Vd([...x,...E]);c(C),h(!0)},[h]);return i.useEffect(()=>()=>v(),[v]),i.useEffect(()=>{if(l&&f){const b=m=>g(m,f),p=m=>g(m,l);return l.addEventListener("pointerleave",b),f.addEventListener("pointerleave",p),()=>{l.removeEventListener("pointerleave",b),f.removeEventListener("pointerleave",p)}}},[l,f,g,v]),i.useEffect(()=>{if(s){const b=p=>{const m=p.target,y={x:p.clientX,y:p.clientY},w=(l==null?void 0:l.contains(m))||(f==null?void 0:f.contains(m)),x=!Bd(y,s);w?v():x&&(v(),d())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,f,s,d,v]),u.jsx(Oa,{...e,ref:a})}),[Ld,Rd]=zt(Bt,{isInside:!1}),Oa=i.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...c}=e,l=it(Je,n),d=Wt(n),{onClose:f}=l;return i.useEffect(()=>(document.addEventListener($n,f),()=>document.removeEventListener($n,f)),[f]),i.useEffect(()=>{if(l.trigger){const h=v=>{const g=v.target;g!=null&&g.contains(l.trigger)&&f()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[l.trigger,f]),u.jsx(bt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:h=>h.preventDefault(),onDismiss:f,children:u.jsxs(Td,{"data-state":l.stateAttribute,...d,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(zr,{children:r}),u.jsx(Ld,{scope:n,isInside:!0,children:u.jsx(Ad,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Aa.displayName=Je;var Ma="TooltipArrow",Fd=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Wt(n);return Rd(Ma,n).isInside?null:u.jsx(Pd,{...o,...r,ref:t})});Fd.displayName=Ma;function $d(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function zd(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Wd(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Bd(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const c=t[a].x,l=t[a].y,d=t[s].x,f=t[s].y;l>r!=f>r&&n<(d-c)*(r-l)/(f-l)+c&&(o=!o)}return o}function Vd(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Hd(t)}function Hd(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],s=n[n.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var jd=Ca,Gd=Ta,Ud=Pa,Kd=Na,ka=Aa;const _a=jd,Ia=Gd,Da=Ud,Vn=i.forwardRef(({className:e,sideOffset:t=4,...n},r)=>u.jsx(Kd,{children:u.jsx(ka,{ref:r,sideOffset:t,className:L("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=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",e),...n})}));Vn.displayName=ka.displayName;const Yd="sidebar:state",Xd=60*60*24*7,qd="16rem",Zd="18rem",Qd="3rem",Jd="b",La=i.createContext(null);function ct(){const e=i.useContext(La);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const Hn=i.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:a,...s},c)=>{const l=Ko(),[d,f]=i.useState(!1),[h,v]=i.useState(e),g=t??h,b=i.useCallback(w=>{const x=typeof w=="function"?w(g):w;n?n(x):v(x),document.cookie=`${Yd}=${x}; path=/; max-age=${Xd}`},[n,g]),p=i.useCallback(()=>l?f(w=>!w):b(w=>!w),[l,b,f]);i.useEffect(()=>{const w=x=>{x.key===Jd&&(x.metaKey||x.ctrlKey)&&(x.preventDefault(),p())};return window.addEventListener("keydown",w),()=>window.removeEventListener("keydown",w)},[p]);const m=g?"expanded":"collapsed",y=i.useMemo(()=>({state:m,open:g,setOpen:b,isMobile:l,openMobile:d,setOpenMobile:f,toggleSidebar:p}),[m,g,b,l,d,f,p]);return u.jsx(La.Provider,{value:y,children:u.jsx(_a,{delayDuration:0,children:u.jsx("div",{style:{"--sidebar-width":qd,"--sidebar-width-icon":Qd,...o},className:L("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",r),ref:c,...s,children:a})})})});Hn.displayName="SidebarProvider";const jn=i.forwardRef(({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...a},s)=>{const{isMobile:c,state:l,openMobile:d,setOpenMobile:f}=ct();return n==="none"?u.jsx("div",{className:L("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",r),ref:s,...a,children:o}):c?u.jsx(Bo,{open:d,onOpenChange:f,...a,children:u.jsx(xn,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Zd},side:e,children:u.jsx("div",{className:"flex h-full w-full flex-col",children:o})})}):u.jsxs("div",{ref:s,className:"group peer hidden md:block text-sidebar-foreground","data-state":l,"data-collapsible":l==="collapsed"?n:"","data-variant":t,"data-side":e,children:[u.jsx("div",{className:L("duration-200 relative h-svh w-(--sidebar-width) bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),u.jsx("div",{className:L("duration-200 fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="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",r),...a,children:u.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm",children:o})})]})});jn.displayName="Sidebar";const Gn=i.forwardRef(({className:e,onClick:t,...n},r)=>{const{toggleSidebar:o}=ct();return u.jsxs(gt,{ref:r,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:L("h-7 w-7",e),onClick:a=>{t==null||t(a),o()},...n,children:[u.jsx(js,{}),u.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});Gn.displayName="SidebarTrigger";const Ra=i.forwardRef(({className:e,...t},n)=>{const{toggleSidebar:r}=ct();return u.jsx("button",{ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:L("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});Ra.displayName="SidebarRail";const Fa=i.forwardRef(({className:e,...t},n)=>u.jsx("main",{ref:n,className:L("relative flex min-h-svh flex-1 flex-col bg-background","peer-data-[variant=inset]:min-h-[calc(100svh-(--spacing(4)))] md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",e),...t}));Fa.displayName="SidebarInset";const $a=i.forwardRef(({className:e,...t},n)=>u.jsx(mt,{ref:n,"data-sidebar":"input",className:L("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));$a.displayName="SidebarInput";const Un=i.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,"data-sidebar":"header",className:L("flex flex-col gap-2 p-2",e),...t}));Un.displayName="SidebarHeader";const Kn=i.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,"data-sidebar":"footer",className:L("flex flex-col gap-2 p-2",e),...t}));Kn.displayName="SidebarFooter";const za=i.forwardRef(({className:e,...t},n)=>u.jsx(on,{ref:n,"data-sidebar":"separator",className:L("mx-2 w-auto bg-sidebar-border",e),...t}));za.displayName="SidebarSeparator";const Yn=i.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,"data-sidebar":"content",className:L("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));Yn.displayName="SidebarContent";const Wa=i.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,"data-sidebar":"group",className:L("relative flex w-full min-w-0 flex-col p-2",e),...t}));Wa.displayName="SidebarGroup";const Ba=i.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const o=t?de:"div";return u.jsx(o,{ref:r,"data-sidebar":"group-label",className:L("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-hidden ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})});Ba.displayName="SidebarGroupLabel";const Va=i.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const o=t?de:"button";return u.jsx(o,{ref:r,"data-sidebar":"group-action",className:L("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",e),...n})});Va.displayName="SidebarGroupAction";const Ha=i.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,"data-sidebar":"group-content",className:L("w-full text-sm",e),...t}));Ha.displayName="SidebarGroupContent";const Xn=i.forwardRef(({className:e,...t},n)=>u.jsx("ul",{ref:n,"data-sidebar":"menu",className:L("flex w-full min-w-0 flex-col gap-1",e),...t}));Xn.displayName="SidebarMenu";const qn=i.forwardRef(({className:e,...t},n)=>u.jsx("li",{ref:n,"data-sidebar":"menu-item",className:L("group/menu-item relative",e),...t}));qn.displayName="SidebarMenuItem";const eu=ht("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>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 shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground 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"}}),Zn=i.forwardRef(({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:a,...s},c)=>{const l=e?de:"button",{isMobile:d,state:f}=ct(),h=u.jsx(l,{ref:c,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:L(eu({variant:n,size:r}),a),...s});return o?(typeof o=="string"&&(o={children:o}),u.jsxs(Ia,{children:[u.jsx(Da,{asChild:!0,children:h}),u.jsx(Vn,{side:"right",align:"center",hidden:f!=="collapsed"||d,...o})]})):h});Zn.displayName="SidebarMenuButton";const ja=i.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...r},o)=>{const a=t?de:"button";return u.jsx(a,{ref:o,"data-sidebar":"menu-action",className:L("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...r})});ja.displayName="SidebarMenuAction";const Ga=i.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,"data-sidebar":"menu-badge",className:L("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));Ga.displayName="SidebarMenuBadge";const Ua=i.forwardRef(({className:e,showIcon:t=!1,...n},r)=>{const o=i.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return u.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:L("rounded-md h-8 flex gap-2 px-2 items-center",e),...n,children:[t&&u.jsx(En,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),u.jsx(En,{className:"h-4 flex-1 max-w-(--skeleton-width)","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})});Ua.displayName="SidebarMenuSkeleton";const Ka=i.forwardRef(({className:e,...t},n)=>u.jsx("ul",{ref:n,"data-sidebar":"menu-sub",className:L("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));Ka.displayName="SidebarMenuSub";const Ya=i.forwardRef(({...e},t)=>u.jsx("li",{ref:t,...e}));Ya.displayName="SidebarMenuSubItem";const Xa=i.forwardRef(({asChild:e=!1,size:t="md",isActive:n,className:r,...o},a)=>{const s=e?de:"a";return u.jsx(s,{ref:a,"data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:L("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-hidden ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground 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 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...o})});Xa.displayName="SidebarMenuSubButton";function tu(e){const t=e+"CollectionProvider",[n,r]=rt(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{const{scope:b,children:p}=g,m=X.useRef(null),y=X.useRef(new Map).current;return u.jsx(o,{scope:b,itemMap:y,collectionRef:m,children:p})};s.displayName=t;const c=e+"CollectionSlot",l=X.forwardRef((g,b)=>{const{scope:p,children:m}=g,y=a(c,p),w=ee(b,y.collectionRef);return u.jsx(de,{ref:w,children:m})});l.displayName=c;const d=e+"CollectionItemSlot",f="data-radix-collection-item",h=X.forwardRef((g,b)=>{const{scope:p,children:m,...y}=g,w=X.useRef(null),x=ee(b,w),E=a(d,p);return X.useEffect(()=>(E.itemMap.set(w,{ref:w,...y}),()=>void E.itemMap.delete(w))),u.jsx(de,{[f]:"",ref:x,children:m})});h.displayName=d;function v(g){const b=a(e+"CollectionConsumer",g);return X.useCallback(()=>{const m=b.collectionRef.current;if(!m)return[];const y=Array.from(m.querySelectorAll(`[${f}]`));return Array.from(b.itemMap.values()).sort((E,C)=>y.indexOf(E.ref.current)-y.indexOf(C.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:s,Slot:l,ItemSlot:h},v,r]}var Qn="ToastProvider",[Jn,nu,ru]=tu("Toast"),[qa,Bu]=rt("Toast",[ru]),[ou,Vt]=qa(Qn),Za=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:a=50,children:s}=e,[c,l]=i.useState(null),[d,f]=i.useState(0),h=i.useRef(!1),v=i.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Qn}\`. Expected non-empty \`string\`.`),u.jsx(Jn.Provider,{scope:t,children:u.jsx(ou,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:a,toastCount:d,viewport:c,onViewportChange:l,onToastAdd:i.useCallback(()=>f(g=>g+1),[]),onToastRemove:i.useCallback(()=>f(g=>g-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:v,children:s})})};Za.displayName=Qn;var Qa="ToastViewport",au=["F8"],er="toast.viewportPause",tr="toast.viewportResume",Ja=i.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=au,label:o="Notifications ({hotkey})",...a}=e,s=Vt(Qa,n),c=nu(n),l=i.useRef(null),d=i.useRef(null),f=i.useRef(null),h=i.useRef(null),v=ee(t,h,s.onViewportChange),g=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=s.toastCount>0;i.useEffect(()=>{const m=y=>{var x;r.length!==0&&r.every(E=>y[E]||y.code===E)&&((x=h.current)==null||x.focus())};return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[r]),i.useEffect(()=>{const m=l.current,y=h.current;if(b&&m&&y){const w=()=>{if(!s.isClosePausedRef.current){const S=new CustomEvent(er);y.dispatchEvent(S),s.isClosePausedRef.current=!0}},x=()=>{if(s.isClosePausedRef.current){const S=new CustomEvent(tr);y.dispatchEvent(S),s.isClosePausedRef.current=!1}},E=S=>{!m.contains(S.relatedTarget)&&x()},C=()=>{m.contains(document.activeElement)||x()};return m.addEventListener("focusin",w),m.addEventListener("focusout",E),m.addEventListener("pointermove",w),m.addEventListener("pointerleave",C),window.addEventListener("blur",w),window.addEventListener("focus",x),()=>{m.removeEventListener("focusin",w),m.removeEventListener("focusout",E),m.removeEventListener("pointermove",w),m.removeEventListener("pointerleave",C),window.removeEventListener("blur",w),window.removeEventListener("focus",x)}}},[b,s.isClosePausedRef]);const p=i.useCallback(({tabbingDirection:m})=>{const w=c().map(x=>{const E=x.ref.current,C=[E,...bu(E)];return m==="forwards"?C:C.reverse()});return(m==="forwards"?w.reverse():w).flat()},[c]);return i.useEffect(()=>{const m=h.current;if(m){const y=w=>{var C,S,T;const x=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!x){const $=document.activeElement,I=w.shiftKey;if(w.target===m&&I){(C=d.current)==null||C.focus();return}const W=p({tabbingDirection:I?"backwards":"forwards"}),_=W.findIndex(N=>N===$);or(W.slice(_+1))?w.preventDefault():I?(S=d.current)==null||S.focus():(T=f.current)==null||T.focus()}};return m.addEventListener("keydown",y),()=>m.removeEventListener("keydown",y)}},[c,p]),u.jsxs(rc,{ref:l,role:"region","aria-label":o.replace("{hotkey}",g),tabIndex:-1,style:{pointerEvents:b?void 0:"none"},children:[b&&u.jsx(nr,{ref:d,onFocusFromOutsideViewport:()=>{const m=p({tabbingDirection:"forwards"});or(m)}}),u.jsx(Jn.Slot,{scope:n,children:u.jsx(K.ol,{tabIndex:-1,...a,ref:v})}),b&&u.jsx(nr,{ref:f,onFocusFromOutsideViewport:()=>{const m=p({tabbingDirection:"backwards"});or(m)}})]})});Ja.displayName=Qa;var es="ToastFocusProxy",nr=i.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,a=Vt(es,n);return u.jsx($t,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var d;const c=s.relatedTarget;!((d=a.viewport)!=null&&d.contains(c))&&r()}})});nr.displayName=es;var Ht="Toast",su="toast.swipeStart",iu="toast.swipeMove",cu="toast.swipeCancel",lu="toast.swipeEnd",ts=i.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:a,...s}=e,[c=!0,l]=an({prop:r,defaultProp:o,onChange:a});return u.jsx(Le,{present:n||c,children:u.jsx(fu,{open:c,...s,ref:t,onClose:()=>l(!1),onPause:le(e.onPause),onResume:le(e.onResume),onSwipeStart:U(e.onSwipeStart,d=>{d.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:U(e.onSwipeMove,d=>{const{x:f,y:h}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","move"),d.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${f}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:U(e.onSwipeCancel,d=>{d.currentTarget.setAttribute("data-swipe","cancel"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:U(e.onSwipeEnd,d=>{const{x:f,y:h}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","end"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${f}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),l(!1)})})})});ts.displayName=Ht;var[du,uu]=qa(Ht,{onClose(){}}),fu=i.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:a,onClose:s,onEscapeKeyDown:c,onPause:l,onResume:d,onSwipeStart:f,onSwipeMove:h,onSwipeCancel:v,onSwipeEnd:g,...b}=e,p=Vt(Ht,n),[m,y]=i.useState(null),w=ee(t,N=>y(N)),x=i.useRef(null),E=i.useRef(null),C=o||p.duration,S=i.useRef(0),T=i.useRef(C),$=i.useRef(0),{onToastAdd:I,onToastRemove:z}=p,H=le(()=>{var B;(m==null?void 0:m.contains(document.activeElement))&&((B=p.viewport)==null||B.focus()),s()}),W=i.useCallback(N=>{!N||N===1/0||(window.clearTimeout($.current),S.current=new Date().getTime(),$.current=window.setTimeout(H,N))},[H]);i.useEffect(()=>{const N=p.viewport;if(N){const B=()=>{W(T.current),d==null||d()},M=()=>{const j=new Date().getTime()-S.current;T.current=T.current-j,window.clearTimeout($.current),l==null||l()};return N.addEventListener(er,M),N.addEventListener(tr,B),()=>{N.removeEventListener(er,M),N.removeEventListener(tr,B)}}},[p.viewport,C,l,d,W]),i.useEffect(()=>{a&&!p.isClosePausedRef.current&&W(C)},[a,C,p.isClosePausedRef,W]),i.useEffect(()=>(I(),()=>z()),[I,z]);const _=i.useMemo(()=>m?cs(m):null,[m]);return p.viewport?u.jsxs(u.Fragment,{children:[_&&u.jsx(pu,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:_}),u.jsx(du,{scope:n,onClose:H,children:qt.createPortal(u.jsx(Jn.ItemSlot,{scope:n,children:u.jsx(nc,{asChild:!0,onEscapeKeyDown:U(c,()=>{p.isFocusedToastEscapeKeyDownRef.current||H(),p.isFocusedToastEscapeKeyDownRef.current=!1}),children:u.jsx(K.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":p.swipeDirection,...b,ref:w,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:U(e.onKeyDown,N=>{N.key==="Escape"&&(c==null||c(N.nativeEvent),N.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,H()))}),onPointerDown:U(e.onPointerDown,N=>{N.button===0&&(x.current={x:N.clientX,y:N.clientY})}),onPointerMove:U(e.onPointerMove,N=>{if(!x.current)return;const B=N.clientX-x.current.x,M=N.clientY-x.current.y,j=!!E.current,k=["left","right"].includes(p.swipeDirection),R=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,Y=k?R(0,B):0,Z=k?0:R(0,M),ne=N.pointerType==="touch"?10:2,J={x:Y,y:Z},te={originalEvent:N,delta:J};j?(E.current=J,jt(iu,h,te,{discrete:!1})):ls(J,p.swipeDirection,ne)?(E.current=J,jt(su,f,te,{discrete:!1}),N.target.setPointerCapture(N.pointerId)):(Math.abs(B)>ne||Math.abs(M)>ne)&&(x.current=null)}),onPointerUp:U(e.onPointerUp,N=>{const B=E.current,M=N.target;if(M.hasPointerCapture(N.pointerId)&&M.releasePointerCapture(N.pointerId),E.current=null,x.current=null,B){const j=N.currentTarget,k={originalEvent:N,delta:B};ls(B,p.swipeDirection,p.swipeThreshold)?jt(lu,g,k,{discrete:!0}):jt(cu,v,k,{discrete:!0}),j.addEventListener("click",R=>R.preventDefault(),{once:!0})}})})})}),p.viewport)})]}):null}),pu=e=>{const{__scopeToast:t,children:n,...r}=e,o=Vt(Ht,t),[a,s]=i.useState(!1),[c,l]=i.useState(!1);return mu(()=>s(!0)),i.useEffect(()=>{const d=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(d)},[]),c?null:u.jsx(yt,{asChild:!0,children:u.jsx($t,{...r,children:a&&u.jsxs(u.Fragment,{children:[o.label," ",n]})})})},hu="ToastTitle",ns=i.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return u.jsx(K.div,{...r,ref:t})});ns.displayName=hu;var gu="ToastDescription",rs=i.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return u.jsx(K.div,{...r,ref:t})});rs.displayName=gu;var os="ToastAction",as=i.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?u.jsx(is,{altText:n,asChild:!0,children:u.jsx(rr,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${os}\`. Expected non-empty \`string\`.`),null)});as.displayName=os;var ss="ToastClose",rr=i.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=uu(ss,n);return u.jsx(is,{asChild:!0,children:u.jsx(K.button,{type:"button",...r,ref:t,onClick:U(e.onClick,o.onClose)})})});rr.displayName=ss;var is=i.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return u.jsx(K.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function cs(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),vu(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",a=r.dataset.radixToastAnnounceExclude==="";if(!o)if(a){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...cs(r))}}),t}function jt(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Hr(o,a):o.dispatchEvent(a)}var ls=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),a=r>o;return t==="left"||t==="right"?a&&r>n:!a&&o>n};function mu(e=()=>{}){const t=le(e);Ce(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function vu(e){return e.nodeType===e.ELEMENT_NODE}function bu(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function or(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var yu=Za,ds=Ja,us=ts,fs=ns,ps=rs,hs=as,gs=rr;const ms=yu,ar=i.forwardRef(({className:e,...t},n)=>u.jsx(ds,{ref:n,className:L("fixed top-0 z-100 flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));ar.displayName=ds.displayName;const wu=ht("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full sm:data-[state=open]:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground",success:"border-green-600 bg-green-600 text-white",warning:"border-yellow-500 bg-yellow-500 text-white",info:"border-blue-500 bg-blue-500 text-white",secondary:"border-secondary bg-secondary text-secondary-foreground",outline:"border-input bg-background text-foreground hover:bg-accent hover:text-accent-foreground"}},defaultVariants:{variant:"default"}}),sr=i.forwardRef(({className:e,variant:t,...n},r)=>u.jsx(us,{ref:r,className:L(wu({variant:t}),e),...n}));sr.displayName=us.displayName;const vs=i.forwardRef(({className:e,...t},n)=>u.jsx(hs,{ref:n,className:L("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-hidden focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 hover:group-[.destructive]:border-destructive/30 hover:group-[.destructive]:bg-destructive hover:group-[.destructive]:text-destructive-foreground focus:group-[.destructive]:ring-destructive",e),...t}));vs.displayName=hs.displayName;const ir=i.forwardRef(({className:e,...t},n)=>u.jsx(gs,{ref:n,className:L("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-hidden focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 hover:group-[.destructive]:text-red-50 focus:group-[.destructive]:ring-red-400 focus:group-[.destructive]:ring-offset-red-600",e),"toast-close":"",...t,children:u.jsx(Er,{className:"h-4 w-4"})}));ir.displayName=gs.displayName;const cr=i.forwardRef(({className:e,...t},n)=>u.jsx(fs,{ref:n,className:L("text-sm font-semibold [&+div]:text-xs",e),...t}));cr.displayName=fs.displayName;const lr=i.forwardRef(({className:e,...t},n)=>u.jsx(ps,{ref:n,className:L("text-sm opacity-90",e),...t}));lr.displayName=ps.displayName;const xu=1,Su=1e6;let dr=0;function Eu(){return dr=(dr+1)%Number.MAX_SAFE_INTEGER,dr.toString()}const ur=new Map,bs=e=>{if(ur.has(e))return;const t=setTimeout(()=>{ur.delete(e),lt({type:"REMOVE_TOAST",toastId:e})},Su);ur.set(e,t)},Cu=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,xu)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?bs(n):e.toasts.forEach(r=>bs(r.id)),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return{...e,toasts:t.toastId?e.toasts.filter(n=>n.id!==t.toastId):[]}}},Gt=[];let Ut={toasts:[]};function lt(e){Ut=Cu(Ut,e),Gt.forEach(t=>t(Ut))}function ys({...e}){const t=Eu(),n=o=>lt({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>lt({type:"DISMISS_TOAST",toastId:t});return lt({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function fr(){const[e,t]=i.useState(Ut);return i.useEffect(()=>(Gt.push(t),()=>{const n=Gt.indexOf(t);n>-1&&Gt.splice(n,1)}),[]),{...e,toast:ys,dismiss:n=>lt({type:"DISMISS_TOAST",toastId:n})}}function ws(){const{toasts:e}=fr();return u.jsxs(ms,{children:[e.map(function({id:t,title:n,description:r,action:o,...a}){return u.jsxs(sr,{...a,children:[u.jsxs("div",{className:"grid gap-1",children:[n&&u.jsx(cr,{children:n}),r&&u.jsx(lr,{children:r})]}),o,u.jsx(ir,{})]},t)}),u.jsx(ar,{})]})}function xs({onSignOut:e,searchResultsRouteName:t}){const[n,r]=X.useState(""),o=tt.useNavigate(),{toast:a}=fr(),s=()=>{const l=n.trim();if(!l||l.length<2){a({title:"Enter more characters to search",description:"At least 2 characters are needed to search products.",variant:"destructive",duration:5e3});return}const d=new URLSearchParams({q:l});o({pathname:t,search:d.toString()}),r("")},c=l=>{l.key==="Enter"&&s()};return u.jsxs("header",{className:"flex h-16 items-center gap-4 border-b dark text-foreground bg-background px-6 fixed top-0 right-0 z-50 lg:left-64 left-0",children:[u.jsx(Gn,{className:"lg:hidden",children:u.jsx(Vs,{className:"h-6 w-6"})}),u.jsx("div",{className:"flex flex-1 items-center gap-4",children:u.jsx("div",{className:"relative w-full max-w-sm",children:u.jsxs("div",{children:[u.jsx("button",{type:"button",className:"absolute left-2 top-1/2 -translate-y-1/2",onClick:s,"aria-label":"Search",children:u.jsx(Gs,{className:"h-4 w-4 text-muted-foreground"})}),u.jsx(mt,{placeholder:"Search...",className:"w-full pl-8 bg-white text-black",value:n,onChange:l=>r(l.target.value),onKeyDown:c})]})})}),u.jsx("div",{className:"flex items-center gap-4",children:u.jsxs(gt,{variant:"ghost",size:"icon",className:"h-9 w-9",onClick:e,children:[u.jsx(Bs,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Sign out"})]})})]})}function Ss({routes:e,footer:t,dashboardTitle:n}){const{appID:r}=tt.useParams(),o=e.filter(a=>a.showInNav);return u.jsxs(jn,{className:"border-r dark",children:[u.jsx(Un,{className:"border-b px-6 h-16 justify-center bg-background text-foreground",children:u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("div",{className:"flex items-center justify-center",children:u.jsx("img",{src:"https://api.randmar.io/images/RandmarIcon.svg",alt:"Randmar Icon",className:"h-4 w-4 filter brightness-0 saturate-100 invert"})}),u.jsx("span",{className:"font-semibold text-lg",children:n})]})}),u.jsx(Yn,{className:"py-4 bg-background text-foreground",children:u.jsx(Xn,{children:o.map(a=>{const s=a.icon,c=`/${a.path.replace(":appID",r)}`;return u.jsx(qn,{children:u.jsx(Zn,{asChild:!0,children:u.jsxs(tt.Link,{to:c,className:"transition-colors hover:bg-muted px-6",children:[s&&u.jsx(s,{className:"h-4 w-4"}),u.jsx("span",{children:a.label})]})})},a.key)})})}),u.jsx(Kn,{className:"border-t p-4 bg-background text-foreground",children:t})]})}function Tu({children:e,routes:t,footer:n,searchResultsRouteName:r,dashboardTitle:o,onSignOut:a}){return u.jsx(u.Fragment,{children:u.jsx(Hn,{children:u.jsxs("div",{className:"flex grow",children:[u.jsx(Ss,{routes:t,footer:n,dashboardTitle:o}),u.jsxs("div",{className:"flex flex-1 flex-col overflow-hidden",children:[u.jsx(xs,{onSignOut:a,searchResultsRouteName:r}),u.jsx("main",{className:"flex-1 overflow-auto mt-16",children:e}),u.jsx(ws,{})]})]})})})}P.AvatarFooter=ml,P.Button=gt,P.Input=mt,P.InputOTP=Ii,P.InputOTPGroup=Di,P.InputOTPSeparator=Ri,P.InputOTPSlot=Li,P.Layout=Tu,P.Navbar=Ss,P.Separator=on,P.Sheet=Bo,P.SheetClose=hl,P.SheetContent=xn,P.SheetDescription=Uo,P.SheetFooter=jo,P.SheetHeader=Ho,P.SheetOverlay=wn,P.SheetPortal=Vo,P.SheetTitle=Go,P.SheetTrigger=pl,P.Sidebar=jn,P.SidebarContent=Yn,P.SidebarFooter=Kn,P.SidebarGroup=Wa,P.SidebarGroupAction=Va,P.SidebarGroupContent=Ha,P.SidebarGroupLabel=Ba,P.SidebarHeader=Un,P.SidebarInput=$a,P.SidebarInset=Fa,P.SidebarMenu=Xn,P.SidebarMenuAction=ja,P.SidebarMenuBadge=Ga,P.SidebarMenuButton=Zn,P.SidebarMenuItem=qn,P.SidebarMenuSkeleton=Ua,P.SidebarMenuSub=Ka,P.SidebarMenuSubButton=Xa,P.SidebarMenuSubItem=Ya,P.SidebarProvider=Hn,P.SidebarRail=Ra,P.SidebarSeparator=za,P.SidebarTrigger=Gn,P.Skeleton=En,P.Toast=sr,P.ToastAction=vs,P.ToastClose=ir,P.ToastDescription=lr,P.ToastProvider=ms,P.ToastTitle=cr,P.ToastViewport=ar,P.Toaster=ws,P.Tooltip=Ia,P.TooltipContent=Vn,P.TooltipProvider=_a,P.TooltipTrigger=Da,P.Topbar=xs,P.buttonVariants=Vr,P.toast=ys,P.useIsMobile=Ko,P.useSidebar=ct,P.useToast=fr,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})});
|
|
119
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},cl="DialogDescriptionWarning",ll=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Lo(cl).contentName}}.`;return i.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},dl=xo,ul=Eo,fl=To,Ro=Po,Fo=No,$o=Oo,zo=ko,Wo=Io;const Bo=dl,pl=ul,hl=Wo,Vo=fl,yr=i.forwardRef(({className:e,...t},r)=>u.jsx(Ro,{className:L("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:r}));yr.displayName=Ro.displayName;const gl=ht("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),wr=i.forwardRef(({side:e="right",className:t,children:r,...n},o)=>u.jsxs(Vo,{children:[u.jsx(yr,{}),u.jsxs(Fo,{ref:o,className:L(gl({side:e}),t),...n,children:[u.jsxs(Wo,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[u.jsx(En,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Close"})]}),r]})]}));wr.displayName=Fo.displayName;const Ho=({className:e,...t})=>u.jsx("div",{className:L("flex flex-col space-y-2 text-center sm:text-left",e),...t});Ho.displayName="SheetHeader";const jo=({className:e,...t})=>u.jsx("div",{className:L("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});jo.displayName="SheetFooter";const Go=i.forwardRef(({className:e,...t},r)=>u.jsx($o,{ref:r,className:L("text-lg font-semibold text-foreground",e),...t}));Go.displayName=$o.displayName;const Uo=i.forwardRef(({className:e,...t},r)=>u.jsx(zo,{ref:r,className:L("text-sm text-muted-foreground",e),...t}));Uo.displayName=zo.displayName;function ml({getMyAccountPath:e,publicName:t,applicationName:r}){const{appID:n}=tt.useParams(),o=`https://api.randmar.io/v4/Partner/${n}/Account/Logo?height=72&width=72`,[a,s]=X.useState(!1),c=()=>{s(!0)};return u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-lg bg-muted",children:a?u.jsx(tt.Link,{to:`${e(n)}#brand`,className:"transition-colors hover:bg-muted px-6",children:u.jsx(Us,{className:"h-5 w-5 text-muted-foreground"})}):u.jsx("img",{src:o,alt:"Partner logo",className:"h-9 w-9 object-cover bg-neutral-100",onError:c})}),u.jsxs("div",{className:"flex flex-1 flex-col",children:[u.jsx("span",{className:"text-sm font-medium",children:t||"Partner"}),u.jsx("span",{className:"text-xs text-neutral-400",children:r})]})]})}const xr=1024;function Ko(){const[e,t]=i.useState(void 0);return i.useEffect(()=>{const r=window.matchMedia(`(max-width: ${xr-1}px)`),n=()=>{t(window.innerWidth<xr)};return r.addEventListener("change",n),t(window.innerWidth<xr),()=>r.removeEventListener("change",n)},[]),!!e}function Sr({className:e,...t}){return u.jsx("div",{className:L("animate-pulse rounded-md bg-primary/20",e),...t})}const vl=["top","right","bottom","left"],Pe=Math.min,ae=Math.max,Ot=Math.round,Mt=Math.floor,me=e=>({x:e,y:e}),bl={left:"right",right:"left",bottom:"top",top:"bottom"},yl={start:"end",end:"start"};function Er(e,t,r){return ae(e,Pe(t,r))}function we(e,t){return typeof e=="function"?e(t):e}function xe(e){return e.split("-")[0]}function Xe(e){return e.split("-")[1]}function Cr(e){return e==="x"?"y":"x"}function Tr(e){return e==="y"?"height":"width"}function Ne(e){return["top","bottom"].includes(xe(e))?"y":"x"}function Pr(e){return Cr(Ne(e))}function wl(e,t,r){r===void 0&&(r=!1);const n=Xe(e),o=Pr(e),a=Tr(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=kt(s)),[s,kt(s)]}function xl(e){const t=kt(e);return[Nr(e),t,Nr(t)]}function Nr(e){return e.replace(/start|end/g,t=>yl[t])}function Sl(e,t,r){const n=["left","right"],o=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?a:s;default:return[]}}function El(e,t,r,n){const o=Xe(e);let a=Sl(xe(e),r==="start",n);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(Nr)))),a}function kt(e){return e.replace(/left|right|bottom|top/g,t=>bl[t])}function Cl(e){return{top:0,right:0,bottom:0,left:0,...e}}function Yo(e){return typeof e!="number"?Cl(e):{top:e,right:e,bottom:e,left:e}}function _t(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Xo(e,t,r){let{reference:n,floating:o}=e;const a=Ne(t),s=Pr(t),c=Tr(s),l=xe(t),d=a==="y",f=n.x+n.width/2-o.width/2,h=n.y+n.height/2-o.height/2,v=n[c]/2-o[c]/2;let g;switch(l){case"top":g={x:f,y:n.y-o.height};break;case"bottom":g={x:f,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:h};break;case"left":g={x:n.x-o.width,y:h};break;default:g={x:n.x,y:n.y}}switch(Xe(t)){case"start":g[s]-=v*(r&&d?-1:1);break;case"end":g[s]+=v*(r&&d?-1:1);break}return g}const Tl=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:s}=r,c=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:h}=Xo(d,n,l),v=n,g={},b=0;for(let p=0;p<c.length;p++){const{name:m,fn:y}=c[p],{x:w,y:x,data:E,reset:C}=await y({x:f,y:h,initialPlacement:n,placement:v,strategy:o,middlewareData:g,rects:d,platform:s,elements:{reference:e,floating:t}});f=w??f,h=x??h,g={...g,[m]:{...g[m],...E}},C&&b<=50&&(b++,typeof C=="object"&&(C.placement&&(v=C.placement),C.rects&&(d=C.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:f,y:h}=Xo(d,v,l)),p=-1)}return{x:f,y:h,placement:v,strategy:o,middlewareData:g}};async function ot(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:s,elements:c,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:v=!1,padding:g=0}=we(t,e),b=Yo(g),m=c[v?h==="floating"?"reference":"floating":h],y=_t(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(m)))==null||r?m:m.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:d,rootBoundary:f,strategy:l})),w=h==="floating"?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),E=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},C=_t(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:x,strategy:l}):w);return{top:(y.top-C.top+b.top)/E.y,bottom:(C.bottom-y.bottom+b.bottom)/E.y,left:(y.left-C.left+b.left)/E.x,right:(C.right-y.right+b.right)/E.x}}const Pl=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:s,elements:c,middlewareData:l}=t,{element:d,padding:f=0}=we(e,t)||{};if(d==null)return{};const h=Yo(f),v={x:r,y:n},g=Pr(o),b=Tr(g),p=await s.getDimensions(d),m=g==="y",y=m?"top":"left",w=m?"bottom":"right",x=m?"clientHeight":"clientWidth",E=a.reference[b]+a.reference[g]-v[g]-a.floating[b],C=v[g]-a.reference[g],S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let T=S?S[x]:0;(!T||!await(s.isElement==null?void 0:s.isElement(S)))&&(T=c.floating[x]||a.floating[b]);const $=E/2-C/2,I=T/2-p[b]/2-1,z=Pe(h[y],I),H=Pe(h[w],I),W=z,_=T-p[b]-H,N=T/2-p[b]/2+$,B=Er(W,N,_),M=!l.arrow&&Xe(o)!=null&&N!==B&&a.reference[b]/2-(N<W?z:H)-p[b]/2<0,j=M?N<W?N-W:N-_:0;return{[g]:v[g]+j,data:{[g]:B,centerOffset:N-B-j,...M&&{alignmentOffset:j}},reset:M}}}),Nl=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:s,initialPlacement:c,platform:l,elements:d}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:v,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:p=!0,...m}=we(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const y=xe(o),w=Ne(c),x=xe(c)===c,E=await(l.isRTL==null?void 0:l.isRTL(d.floating)),C=v||(x||!p?[kt(c)]:xl(c)),S=b!=="none";!v&&S&&C.push(...El(c,p,b,E));const T=[c,...C],$=await ot(t,m),I=[];let z=((n=a.flip)==null?void 0:n.overflows)||[];if(f&&I.push($[y]),h){const N=wl(o,s,E);I.push($[N[0]],$[N[1]])}if(z=[...z,{placement:o,overflows:I}],!I.every(N=>N<=0)){var H,W;const N=(((H=a.flip)==null?void 0:H.index)||0)+1,B=T[N];if(B)return{data:{index:N,overflows:z},reset:{placement:B}};let M=(W=z.filter(j=>j.overflows[0]<=0).sort((j,k)=>j.overflows[1]-k.overflows[1])[0])==null?void 0:W.placement;if(!M)switch(g){case"bestFit":{var _;const j=(_=z.filter(k=>{if(S){const R=Ne(k.placement);return R===w||R==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(R=>R>0).reduce((R,Y)=>R+Y,0)]).sort((k,R)=>k[1]-R[1])[0])==null?void 0:_[0];j&&(M=j);break}case"initialPlacement":M=c;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function qo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Zo(e){return vl.some(t=>e[t]>=0)}const Al=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=we(e,t);switch(n){case"referenceHidden":{const a=await ot(t,{...o,elementContext:"reference"}),s=qo(a,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Zo(s)}}}case"escaped":{const a=await ot(t,{...o,altBoundary:!0}),s=qo(a,r.floating);return{data:{escapedOffsets:s,escaped:Zo(s)}}}default:return{}}}}};async function Ol(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=xe(r),c=Xe(r),l=Ne(r)==="y",d=["left","top"].includes(s)?-1:1,f=a&&l?-1:1,h=we(t,e);let{mainAxis:v,crossAxis:g,alignmentAxis:b}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return c&&typeof b=="number"&&(g=c==="end"?b*-1:b),l?{x:g*f,y:v*d}:{x:v*d,y:g*f}}const Ml=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:a,placement:s,middlewareData:c}=t,l=await Ol(t,e);return s===((r=c.offset)==null?void 0:r.placement)&&(n=c.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:s}}}}},kl=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:m=>{let{x:y,y:w}=m;return{x:y,y:w}}},...l}=we(e,t),d={x:r,y:n},f=await ot(t,l),h=Ne(xe(o)),v=Cr(h);let g=d[v],b=d[h];if(a){const m=v==="y"?"top":"left",y=v==="y"?"bottom":"right",w=g+f[m],x=g-f[y];g=Er(w,g,x)}if(s){const m=h==="y"?"top":"left",y=h==="y"?"bottom":"right",w=b+f[m],x=b-f[y];b=Er(w,b,x)}const p=c.fn({...t,[v]:g,[h]:b});return{...p,data:{x:p.x-r,y:p.y-n,enabled:{[v]:a,[h]:s}}}}}},_l=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:s}=t,{offset:c=0,mainAxis:l=!0,crossAxis:d=!0}=we(e,t),f={x:r,y:n},h=Ne(o),v=Cr(h);let g=f[v],b=f[h];const p=we(c,t),m=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const x=v==="y"?"height":"width",E=a.reference[v]-a.floating[x]+m.mainAxis,C=a.reference[v]+a.reference[x]-m.mainAxis;g<E?g=E:g>C&&(g=C)}if(d){var y,w;const x=v==="y"?"width":"height",E=["top","left"].includes(xe(o)),C=a.reference[h]-a.floating[x]+(E&&((y=s.offset)==null?void 0:y[h])||0)+(E?0:m.crossAxis),S=a.reference[h]+a.reference[x]+(E?0:((w=s.offset)==null?void 0:w[h])||0)-(E?m.crossAxis:0);b<C?b=C:b>S&&(b=S)}return{[v]:g,[h]:b}}}},Il=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:a,platform:s,elements:c}=t,{apply:l=()=>{},...d}=we(e,t),f=await ot(t,d),h=xe(o),v=Xe(o),g=Ne(o)==="y",{width:b,height:p}=a.floating;let m,y;h==="top"||h==="bottom"?(m=h,y=v===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(y=h,m=v==="end"?"top":"bottom");const w=p-f.top-f.bottom,x=b-f.left-f.right,E=Pe(p-f[m],w),C=Pe(b-f[y],x),S=!t.middlewareData.shift;let T=E,$=C;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&($=x),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(T=w),S&&!v){const z=ae(f.left,0),H=ae(f.right,0),W=ae(f.top,0),_=ae(f.bottom,0);g?$=b-2*(z!==0||H!==0?z+H:ae(f.left,f.right)):T=p-2*(W!==0||_!==0?W+_:ae(f.top,f.bottom))}await l({...t,availableWidth:$,availableHeight:T});const I=await s.getDimensions(c.floating);return b!==I.width||p!==I.height?{reset:{rects:!0}}:{}}}};function It(){return typeof window<"u"}function qe(e){return Qo(e)?(e.nodeName||"").toLowerCase():"#document"}function se(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ve(e){var t;return(t=(Qo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Qo(e){return It()?e instanceof Node||e instanceof se(e).Node:!1}function fe(e){return It()?e instanceof Element||e instanceof se(e).Element:!1}function be(e){return It()?e instanceof HTMLElement||e instanceof se(e).HTMLElement:!1}function Jo(e){return!It()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof se(e).ShadowRoot}function at(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=pe(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function Dl(e){return["table","td","th"].includes(qe(e))}function Dt(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Ar(e){const t=Or(),r=fe(e)?pe(e):e;return["transform","translate","scale","rotate","perspective"].some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function Ll(e){let t=Ae(e);for(;be(t)&&!Ze(t);){if(Ar(t))return t;if(Dt(t))return null;t=Ae(t)}return null}function Or(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ze(e){return["html","body","#document"].includes(qe(e))}function pe(e){return se(e).getComputedStyle(e)}function Lt(e){return fe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ae(e){if(qe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Jo(e)&&e.host||ve(e);return Jo(t)?t.host:t}function ea(e){const t=Ae(e);return Ze(t)?e.ownerDocument?e.ownerDocument.body:e.body:be(t)&&at(t)?t:ea(t)}function st(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=ea(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),s=se(o);if(a){const c=Mr(s);return t.concat(s,s.visualViewport||[],at(o)?o:[],c&&r?st(c):[])}return t.concat(o,st(o,[],r))}function Mr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ta(e){const t=pe(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=be(e),a=o?e.offsetWidth:r,s=o?e.offsetHeight:n,c=Ot(r)!==a||Ot(n)!==s;return c&&(r=a,n=s),{width:r,height:n,$:c}}function kr(e){return fe(e)?e:e.contextElement}function Qe(e){const t=kr(e);if(!be(t))return me(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=ta(t);let s=(a?Ot(r.width):r.width)/n,c=(a?Ot(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const Rl=me(0);function ra(e){const t=se(e);return!Or()||!t.visualViewport?Rl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Fl(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==se(e)?!1:t}function Fe(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=kr(e);let s=me(1);t&&(n?fe(n)&&(s=Qe(n)):s=Qe(e));const c=Fl(a,r,n)?ra(a):me(0);let l=(o.left+c.x)/s.x,d=(o.top+c.y)/s.y,f=o.width/s.x,h=o.height/s.y;if(a){const v=se(a),g=n&&fe(n)?se(n):n;let b=v,p=Mr(b);for(;p&&n&&g!==b;){const m=Qe(p),y=p.getBoundingClientRect(),w=pe(p),x=y.left+(p.clientLeft+parseFloat(w.paddingLeft))*m.x,E=y.top+(p.clientTop+parseFloat(w.paddingTop))*m.y;l*=m.x,d*=m.y,f*=m.x,h*=m.y,l+=x,d+=E,b=se(p),p=Mr(b)}}return _t({width:f,height:h,x:l,y:d})}function _r(e,t){const r=Lt(e).scrollLeft;return t?t.left+r:Fe(ve(e)).left+r}function na(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-(r?0:_r(e,n)),a=n.top+t.scrollTop;return{x:o,y:a}}function $l(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",s=ve(n),c=t?Dt(t.floating):!1;if(n===s||c&&a)return r;let l={scrollLeft:0,scrollTop:0},d=me(1);const f=me(0),h=be(n);if((h||!h&&!a)&&((qe(n)!=="body"||at(s))&&(l=Lt(n)),be(n))){const g=Fe(n);d=Qe(n),f.x=g.x+n.clientLeft,f.y=g.y+n.clientTop}const v=s&&!h&&!a?na(s,l,!0):me(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-l.scrollLeft*d.x+f.x+v.x,y:r.y*d.y-l.scrollTop*d.y+f.y+v.y}}function zl(e){return Array.from(e.getClientRects())}function Wl(e){const t=ve(e),r=Lt(e),n=e.ownerDocument.body,o=ae(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=ae(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+_r(e);const c=-r.scrollTop;return pe(n).direction==="rtl"&&(s+=ae(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:s,y:c}}function Bl(e,t){const r=se(e),n=ve(e),o=r.visualViewport;let a=n.clientWidth,s=n.clientHeight,c=0,l=0;if(o){a=o.width,s=o.height;const d=Or();(!d||d&&t==="fixed")&&(c=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:c,y:l}}function Vl(e,t){const r=Fe(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=be(e)?Qe(e):me(1),s=e.clientWidth*a.x,c=e.clientHeight*a.y,l=o*a.x,d=n*a.y;return{width:s,height:c,x:l,y:d}}function oa(e,t,r){let n;if(t==="viewport")n=Bl(e,r);else if(t==="document")n=Wl(ve(e));else if(fe(t))n=Vl(t,r);else{const o=ra(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return _t(n)}function aa(e,t){const r=Ae(e);return r===t||!fe(r)||Ze(r)?!1:pe(r).position==="fixed"||aa(r,t)}function Hl(e,t){const r=t.get(e);if(r)return r;let n=st(e,[],!1).filter(c=>fe(c)&&qe(c)!=="body"),o=null;const a=pe(e).position==="fixed";let s=a?Ae(e):e;for(;fe(s)&&!Ze(s);){const c=pe(s),l=Ar(s);!l&&c.position==="fixed"&&(o=null),(a?!l&&!o:!l&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||at(s)&&!l&&aa(e,s))?n=n.filter(f=>f!==s):o=c,s=Ae(s)}return t.set(e,n),n}function jl(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?Dt(t)?[]:Hl(t,this._c):[].concat(r),n],c=s[0],l=s.reduce((d,f)=>{const h=oa(t,f,o);return d.top=ae(h.top,d.top),d.right=Pe(h.right,d.right),d.bottom=Pe(h.bottom,d.bottom),d.left=ae(h.left,d.left),d},oa(t,c,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Gl(e){const{width:t,height:r}=ta(e);return{width:t,height:r}}function Ul(e,t,r){const n=be(t),o=ve(t),a=r==="fixed",s=Fe(e,!0,a,t);let c={scrollLeft:0,scrollTop:0};const l=me(0);if(n||!n&&!a)if((qe(t)!=="body"||at(o))&&(c=Lt(t)),n){const v=Fe(t,!0,a,t);l.x=v.x+t.clientLeft,l.y=v.y+t.clientTop}else o&&(l.x=_r(o));const d=o&&!n&&!a?na(o,c):me(0),f=s.left+c.scrollLeft-l.x-d.x,h=s.top+c.scrollTop-l.y-d.y;return{x:f,y:h,width:s.width,height:s.height}}function Ir(e){return pe(e).position==="static"}function sa(e,t){if(!be(e)||pe(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return ve(e)===r&&(r=r.ownerDocument.body),r}function ia(e,t){const r=se(e);if(Dt(e))return r;if(!be(e)){let o=Ae(e);for(;o&&!Ze(o);){if(fe(o)&&!Ir(o))return o;o=Ae(o)}return r}let n=sa(e,t);for(;n&&Dl(n)&&Ir(n);)n=sa(n,t);return n&&Ze(n)&&Ir(n)&&!Ar(n)?r:n||Ll(e)||r}const Kl=async function(e){const t=this.getOffsetParent||ia,r=this.getDimensions,n=await r(e.floating);return{reference:Ul(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Yl(e){return pe(e).direction==="rtl"}const Xl={convertOffsetParentRelativeRectToViewportRelativeRect:$l,getDocumentElement:ve,getClippingRect:jl,getOffsetParent:ia,getElementRects:Kl,getClientRects:zl,getDimensions:Gl,getScale:Qe,isElement:fe,isRTL:Yl};function ca(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ql(e,t){let r=null,n;const o=ve(e);function a(){var c;clearTimeout(n),(c=r)==null||c.disconnect(),r=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),a();const d=e.getBoundingClientRect(),{left:f,top:h,width:v,height:g}=d;if(c||t(),!v||!g)return;const b=Mt(h),p=Mt(o.clientWidth-(f+v)),m=Mt(o.clientHeight-(h+g)),y=Mt(f),x={rootMargin:-b+"px "+-p+"px "+-m+"px "+-y+"px",threshold:ae(0,Pe(1,l))||1};let E=!0;function C(S){const T=S[0].intersectionRatio;if(T!==l){if(!E)return s();T?s(!1,T):n=setTimeout(()=>{s(!1,1e-7)},1e3)}T===1&&!ca(d,e.getBoundingClientRect())&&s(),E=!1}try{r=new IntersectionObserver(C,{...x,root:o.ownerDocument})}catch{r=new IntersectionObserver(C,x)}r.observe(e)}return s(!0),a}function Zl(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,d=kr(e),f=o||a?[...d?st(d):[],...st(t)]:[];f.forEach(y=>{o&&y.addEventListener("scroll",r,{passive:!0}),a&&y.addEventListener("resize",r)});const h=d&&c?ql(d,r):null;let v=-1,g=null;s&&(g=new ResizeObserver(y=>{let[w]=y;w&&w.target===d&&g&&(g.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var x;(x=g)==null||x.observe(t)})),r()}),d&&!l&&g.observe(d),g.observe(t));let b,p=l?Fe(e):null;l&&m();function m(){const y=Fe(e);p&&!ca(p,y)&&r(),p=y,b=requestAnimationFrame(m)}return r(),()=>{var y;f.forEach(w=>{o&&w.removeEventListener("scroll",r),a&&w.removeEventListener("resize",r)}),h==null||h(),(y=g)==null||y.disconnect(),g=null,l&&cancelAnimationFrame(b)}}const Ql=Ml,Jl=kl,ed=Nl,td=Il,rd=Al,la=Pl,nd=_l,od=(e,t,r)=>{const n=new Map,o={platform:Xl,...r},a={...o.platform,_c:n};return Tl(e,t,{...o,platform:a})};var Rt=typeof document<"u"?X.useLayoutEffect:X.useEffect;function Ft(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Ft(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!Ft(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function da(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ua(e,t){const r=da(e);return Math.round(t*r)/r}function Dr(e){const t=i.useRef(e);return Rt(()=>{t.current=e}),t}function ad(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:s}={},transform:c=!0,whileElementsMounted:l,open:d}=e,[f,h]=i.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[v,g]=i.useState(n);Ft(v,n)||g(n);const[b,p]=i.useState(null),[m,y]=i.useState(null),w=i.useCallback(k=>{k!==S.current&&(S.current=k,p(k))},[]),x=i.useCallback(k=>{k!==T.current&&(T.current=k,y(k))},[]),E=a||b,C=s||m,S=i.useRef(null),T=i.useRef(null),$=i.useRef(f),I=l!=null,z=Dr(l),H=Dr(o),W=Dr(d),_=i.useCallback(()=>{if(!S.current||!T.current)return;const k={placement:t,strategy:r,middleware:v};H.current&&(k.platform=H.current),od(S.current,T.current,k).then(R=>{const Y={...R,isPositioned:W.current!==!1};N.current&&!Ft($.current,Y)&&($.current=Y,qt.flushSync(()=>{h(Y)}))})},[v,t,r,H,W]);Rt(()=>{d===!1&&$.current.isPositioned&&($.current.isPositioned=!1,h(k=>({...k,isPositioned:!1})))},[d]);const N=i.useRef(!1);Rt(()=>(N.current=!0,()=>{N.current=!1}),[]),Rt(()=>{if(E&&(S.current=E),C&&(T.current=C),E&&C){if(z.current)return z.current(E,C,_);_()}},[E,C,_,z,I]);const B=i.useMemo(()=>({reference:S,floating:T,setReference:w,setFloating:x}),[w,x]),M=i.useMemo(()=>({reference:E,floating:C}),[E,C]),j=i.useMemo(()=>{const k={position:r,left:0,top:0};if(!M.floating)return k;const R=ua(M.floating,f.x),Y=ua(M.floating,f.y);return c?{...k,transform:"translate("+R+"px, "+Y+"px)",...da(M.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:R,top:Y}},[r,c,M.floating,f.x,f.y]);return i.useMemo(()=>({...f,update:_,refs:B,elements:M,floatingStyles:j}),[f,_,B,M,j])}const sd=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?la({element:n.current,padding:o}).fn(r):{}:n?la({element:n,padding:o}).fn(r):{}}}},id=(e,t)=>({...Ql(e),options:[e,t]}),cd=(e,t)=>({...Jl(e),options:[e,t]}),ld=(e,t)=>({...nd(e),options:[e,t]}),dd=(e,t)=>({...ed(e),options:[e,t]}),ud=(e,t)=>({...td(e),options:[e,t]}),fd=(e,t)=>({...rd(e),options:[e,t]}),pd=(e,t)=>({...sd(e),options:[e,t]});var hd="Arrow",fa=i.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return u.jsx(K.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});fa.displayName=hd;var gd=fa;function md(e){const[t,r]=i.useState(void 0);return Ce(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,c;if("borderBoxSize"in a){const l=a.borderBoxSize,d=Array.isArray(l)?l[0]:l;s=d.inlineSize,c=d.blockSize}else s=e.offsetWidth,c=e.offsetHeight;r({width:s,height:c})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Lr="Popper",[pa,ha]=nt(Lr),[vd,ga]=pa(Lr),ma=e=>{const{__scopePopper:t,children:r}=e,[n,o]=i.useState(null);return u.jsx(vd,{scope:t,anchor:n,onAnchorChange:o,children:r})};ma.displayName=Lr;var va="PopperAnchor",ba=i.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=ga(va,r),s=i.useRef(null),c=ee(t,s);return i.useEffect(()=>{a.onAnchorChange((n==null?void 0:n.current)||s.current)}),n?null:u.jsx(K.div,{...o,ref:c})});ba.displayName=va;var Rr="PopperContent",[bd,yd]=pa(Rr),ya=i.forwardRef((e,t)=>{var ye,dt,Kt,ut,Yt,et;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:h="partial",hideWhenDetached:v=!1,updatePositionStrategy:g="optimized",onPlaced:b,...p}=e,m=ga(Rr,r),[y,w]=i.useState(null),x=ee(t,$e=>w($e)),[E,C]=i.useState(null),S=md(E),T=(S==null?void 0:S.width)??0,$=(S==null?void 0:S.height)??0,I=n+(a!=="center"?"-"+a:""),z=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},H=Array.isArray(d)?d:[d],W=H.length>0,_={padding:z,boundary:H.filter(xd),altBoundary:W},{refs:N,floatingStyles:B,placement:M,isPositioned:j,middlewareData:k}=ad({strategy:"fixed",placement:I,whileElementsMounted:(...$e)=>Zl(...$e,{animationFrame:g==="always"}),elements:{reference:m.anchor},middleware:[id({mainAxis:o+$,alignmentAxis:s}),l&&cd({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?ld():void 0,..._}),l&&dd({..._}),ud({..._,apply:({elements:$e,rects:D,availableWidth:F,availableHeight:Q})=>{const{width:ne,height:oe}=D.reference,G=$e.floating.style;G.setProperty("--radix-popper-available-width",`${F}px`),G.setProperty("--radix-popper-available-height",`${Q}px`),G.setProperty("--radix-popper-anchor-width",`${ne}px`),G.setProperty("--radix-popper-anchor-height",`${oe}px`)}}),E&&pd({element:E,padding:c}),Sd({arrowWidth:T,arrowHeight:$}),v&&fd({strategy:"referenceHidden",..._})]}),[R,Y]=Sa(M),Z=le(b);Ce(()=>{j&&(Z==null||Z())},[j,Z]);const re=(ye=k.arrow)==null?void 0:ye.x,J=(dt=k.arrow)==null?void 0:dt.y,te=((Kt=k.arrow)==null?void 0:Kt.centerOffset)!==0,[ie,Oe]=i.useState();return Ce(()=>{y&&Oe(window.getComputedStyle(y).zIndex)},[y]),u.jsx("div",{ref:N.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:j?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ie,"--radix-popper-transform-origin":[(ut=k.transformOrigin)==null?void 0:ut.x,(Yt=k.transformOrigin)==null?void 0:Yt.y].join(" "),...((et=k.hide)==null?void 0:et.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(bd,{scope:r,placedSide:R,onArrowChange:C,arrowX:re,arrowY:J,shouldHideArrow:te,children:u.jsx(K.div,{"data-side":R,"data-align":Y,...p,ref:x,style:{...p.style,animation:j?void 0:"none"}})})})});ya.displayName=Rr;var wa="PopperArrow",wd={top:"bottom",right:"left",bottom:"top",left:"right"},xa=i.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,a=yd(wa,n),s=wd[a.placedSide];return u.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:u.jsx(gd,{...o,ref:r,style:{...o.style,display:"block"}})})});xa.displayName=wa;function xd(e){return e!==null}var Sd=e=>({name:"transformOrigin",options:e,fn(t){var m,y,w;const{placement:r,rects:n,middlewareData:o}=t,s=((m=o.arrow)==null?void 0:m.centerOffset)!==0,c=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[d,f]=Sa(r),h={start:"0%",center:"50%",end:"100%"}[f],v=(((y=o.arrow)==null?void 0:y.x)??0)+c/2,g=(((w=o.arrow)==null?void 0:w.y)??0)+l/2;let b="",p="";return d==="bottom"?(b=s?h:`${v}px`,p=`${-l}px`):d==="top"?(b=s?h:`${v}px`,p=`${n.floating.height+l}px`):d==="right"?(b=`${-l}px`,p=s?h:`${g}px`):d==="left"&&(b=`${n.floating.width+l}px`,p=s?h:`${g}px`),{data:{x:b,y:p}}}});function Sa(e){const[t,r="center"]=e.split("-");return[t,r]}var Ed=ma,Cd=ba,Td=ya,Pd=xa,Nd="VisuallyHidden",$t=i.forwardRef((e,t)=>u.jsx(K.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));$t.displayName=Nd;var Ad=$t,[zt,Wu]=nt("Tooltip",[ha]),Wt=ha(),Ea="TooltipProvider",Od=700,Fr="tooltip.open",[Md,$r]=zt(Ea),Ca=e=>{const{__scopeTooltip:t,delayDuration:r=Od,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:a}=e,[s,c]=i.useState(!0),l=i.useRef(!1),d=i.useRef(0);return i.useEffect(()=>{const f=d.current;return()=>window.clearTimeout(f)},[]),u.jsx(Md,{scope:t,isOpenDelayed:s,delayDuration:r,onOpen:i.useCallback(()=>{window.clearTimeout(d.current),c(!1)},[]),onClose:i.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>c(!0),n)},[n]),isPointerInTransitRef:l,onPointerInTransitChange:i.useCallback(f=>{l.current=f},[]),disableHoverableContent:o,children:a})};Ca.displayName=Ea;var Bt="Tooltip",[kd,it]=zt(Bt),Ta=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:c}=e,l=$r(Bt,e.__scopeTooltip),d=Wt(t),[f,h]=i.useState(null),v=vt(),g=i.useRef(0),b=s??l.disableHoverableContent,p=c??l.delayDuration,m=i.useRef(!1),[y=!1,w]=ar({prop:n,defaultProp:o,onChange:T=>{T?(l.onOpen(),document.dispatchEvent(new CustomEvent(Fr))):l.onClose(),a==null||a(T)}}),x=i.useMemo(()=>y?m.current?"delayed-open":"instant-open":"closed",[y]),E=i.useCallback(()=>{window.clearTimeout(g.current),g.current=0,m.current=!1,w(!0)},[w]),C=i.useCallback(()=>{window.clearTimeout(g.current),g.current=0,w(!1)},[w]),S=i.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{m.current=!0,w(!0),g.current=0},p)},[p,w]);return i.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),u.jsx(Ed,{...d,children:u.jsx(kd,{scope:t,contentId:v,open:y,stateAttribute:x,trigger:f,onTriggerChange:h,onTriggerEnter:i.useCallback(()=>{l.isOpenDelayed?S():E()},[l.isOpenDelayed,S,E]),onTriggerLeave:i.useCallback(()=>{b?C():(window.clearTimeout(g.current),g.current=0)},[C,b]),onOpen:E,onClose:C,disableHoverableContent:b,children:r})})};Ta.displayName=Bt;var zr="TooltipTrigger",Pa=i.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=it(zr,r),a=$r(zr,r),s=Wt(r),c=i.useRef(null),l=ee(t,c,o.onTriggerChange),d=i.useRef(!1),f=i.useRef(!1),h=i.useCallback(()=>d.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),u.jsx(Cd,{asChild:!0,...s,children:u.jsx(K.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:l,onPointerMove:U(e.onPointerMove,v=>{v.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:U(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:U(e.onPointerDown,()=>{d.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:U(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:U(e.onBlur,o.onClose),onClick:U(e.onClick,o.onClose)})})});Pa.displayName=zr;var Wr="TooltipPortal",[_d,Id]=zt(Wr,{forceMount:void 0}),Na=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,a=it(Wr,t);return u.jsx(_d,{scope:t,forceMount:r,children:u.jsx(Le,{present:r||a.open,children:u.jsx(yt,{asChild:!0,container:o,children:n})})})};Na.displayName=Wr;var Je="TooltipContent",Aa=i.forwardRef((e,t)=>{const r=Id(Je,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=e,s=it(Je,e.__scopeTooltip);return u.jsx(Le,{present:n||s.open,children:s.disableHoverableContent?u.jsx(Oa,{side:o,...a,ref:t}):u.jsx(Dd,{side:o,...a,ref:t})})}),Dd=i.forwardRef((e,t)=>{const r=it(Je,e.__scopeTooltip),n=$r(Je,e.__scopeTooltip),o=i.useRef(null),a=ee(t,o),[s,c]=i.useState(null),{trigger:l,onClose:d}=r,f=o.current,{onPointerInTransitChange:h}=n,v=i.useCallback(()=>{c(null),h(!1)},[h]),g=i.useCallback((b,p)=>{const m=b.currentTarget,y={x:b.clientX,y:b.clientY},w=$d(y,m.getBoundingClientRect()),x=zd(y,w),E=Wd(p.getBoundingClientRect()),C=Vd([...x,...E]);c(C),h(!0)},[h]);return i.useEffect(()=>()=>v(),[v]),i.useEffect(()=>{if(l&&f){const b=m=>g(m,f),p=m=>g(m,l);return l.addEventListener("pointerleave",b),f.addEventListener("pointerleave",p),()=>{l.removeEventListener("pointerleave",b),f.removeEventListener("pointerleave",p)}}},[l,f,g,v]),i.useEffect(()=>{if(s){const b=p=>{const m=p.target,y={x:p.clientX,y:p.clientY},w=(l==null?void 0:l.contains(m))||(f==null?void 0:f.contains(m)),x=!Bd(y,s);w?v():x&&(v(),d())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,f,s,d,v]),u.jsx(Oa,{...e,ref:a})}),[Ld,Rd]=zt(Bt,{isInside:!1}),Oa=i.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...c}=e,l=it(Je,r),d=Wt(r),{onClose:f}=l;return i.useEffect(()=>(document.addEventListener(Fr,f),()=>document.removeEventListener(Fr,f)),[f]),i.useEffect(()=>{if(l.trigger){const h=v=>{const g=v.target;g!=null&&g.contains(l.trigger)&&f()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[l.trigger,f]),u.jsx(bt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:h=>h.preventDefault(),onDismiss:f,children:u.jsxs(Td,{"data-state":l.stateAttribute,...d,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(zn,{children:n}),u.jsx(Ld,{scope:r,isInside:!0,children:u.jsx(Ad,{id:l.contentId,role:"tooltip",children:o||n})})]})})});Aa.displayName=Je;var Ma="TooltipArrow",Fd=i.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Wt(r);return Rd(Ma,r).isInside?null:u.jsx(Pd,{...o,...n,ref:t})});Fd.displayName=Ma;function $d(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(r,n,o,a)){case a:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function zd(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function Wd(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function Bd(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const c=t[a].x,l=t[a].y,d=t[s].x,f=t[s].y;l>n!=f>n&&r<(d-c)*(n-l)/(f-l)+c&&(o=!o)}return o}function Vd(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),Hd(t)}function Hd(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const a=r[r.length-1],s=r[r.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var jd=Ca,Gd=Ta,Ud=Pa,Kd=Na,ka=Aa;const _a=jd,Ia=Gd,Da=Ud,Br=i.forwardRef(({className:e,sideOffset:t=4,...r},n)=>u.jsx(Kd,{children:u.jsx(ka,{ref:n,sideOffset:t,className:L("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=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",e),...r})}));Br.displayName=ka.displayName;const Yd="sidebar:state",Xd=60*60*24*7,qd="16rem",Zd="18rem",Qd="3rem",Jd="b",La=i.createContext(null);function ct(){const e=i.useContext(La);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const Vr=i.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:r,className:n,style:o,children:a,...s},c)=>{const l=Ko(),[d,f]=i.useState(!1),[h,v]=i.useState(e),g=t??h,b=i.useCallback(w=>{const x=typeof w=="function"?w(g):w;r?r(x):v(x),document.cookie=`${Yd}=${x}; path=/; max-age=${Xd}`},[r,g]),p=i.useCallback(()=>l?f(w=>!w):b(w=>!w),[l,b,f]);i.useEffect(()=>{const w=x=>{x.key===Jd&&(x.metaKey||x.ctrlKey)&&(x.preventDefault(),p())};return window.addEventListener("keydown",w),()=>window.removeEventListener("keydown",w)},[p]);const m=g?"expanded":"collapsed",y=i.useMemo(()=>({state:m,open:g,setOpen:b,isMobile:l,openMobile:d,setOpenMobile:f,toggleSidebar:p}),[m,g,b,l,d,f,p]);return u.jsx(La.Provider,{value:y,children:u.jsx(_a,{delayDuration:0,children:u.jsx("div",{style:{"--sidebar-width":qd,"--sidebar-width-icon":Qd,...o},className:L("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",n),ref:c,...s,children:a})})})});Vr.displayName="SidebarProvider";const Hr=i.forwardRef(({side:e="left",variant:t="sidebar",collapsible:r="offcanvas",className:n,children:o,...a},s)=>{const{isMobile:c,state:l,openMobile:d,setOpenMobile:f}=ct();return r==="none"?u.jsx("div",{className:L("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",n),ref:s,...a,children:o}):c?u.jsx(Bo,{open:d,onOpenChange:f,...a,children:u.jsx(wr,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Zd},side:e,children:u.jsx("div",{className:"flex h-full w-full flex-col",children:o})})}):u.jsxs("div",{ref:s,className:"group peer hidden md:block text-sidebar-foreground","data-state":l,"data-collapsible":l==="collapsed"?r:"","data-variant":t,"data-side":e,children:[u.jsx("div",{className:L("duration-200 relative h-svh w-(--sidebar-width) bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),u.jsx("div",{className:L("duration-200 fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="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",n),...a,children:u.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm",children:o})})]})});Hr.displayName="Sidebar";const jr=i.forwardRef(({className:e,onClick:t,...r},n)=>{const{toggleSidebar:o}=ct();return u.jsxs(gt,{ref:n,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:L("h-7 w-7 text-sidebar-foreground",e),onClick:a=>{t==null||t(a),o()},...r,children:[u.jsx(js,{}),u.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});jr.displayName="SidebarTrigger";const Ra=i.forwardRef(({className:e,...t},r)=>{const{toggleSidebar:n}=ct();return u.jsx("button",{ref:r,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:L("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});Ra.displayName="SidebarRail";const Fa=i.forwardRef(({className:e,...t},r)=>u.jsx("main",{ref:r,className:L("relative flex min-h-svh flex-1 flex-col bg-background","peer-data-[variant=inset]:min-h-[calc(100svh-(--spacing(4)))] md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",e),...t}));Fa.displayName="SidebarInset";const $a=i.forwardRef(({className:e,...t},r)=>u.jsx(mt,{ref:r,"data-sidebar":"input",className:L("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));$a.displayName="SidebarInput";const Gr=i.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,"data-sidebar":"header",className:L("flex flex-col gap-2 p-2",e),...t}));Gr.displayName="SidebarHeader";const Ur=i.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,"data-sidebar":"footer",className:L("flex flex-col gap-2 p-2",e),...t}));Ur.displayName="SidebarFooter";const za=i.forwardRef(({className:e,...t},r)=>u.jsx(or,{ref:r,"data-sidebar":"separator",className:L("mx-2 w-auto bg-sidebar-border",e),...t}));za.displayName="SidebarSeparator";const Kr=i.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,"data-sidebar":"content",className:L("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));Kr.displayName="SidebarContent";const Wa=i.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,"data-sidebar":"group",className:L("relative flex w-full min-w-0 flex-col p-2",e),...t}));Wa.displayName="SidebarGroup";const Ba=i.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?de:"div";return u.jsx(o,{ref:n,"data-sidebar":"group-label",className:L("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-hidden ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...r})});Ba.displayName="SidebarGroupLabel";const Va=i.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?de:"button";return u.jsx(o,{ref:n,"data-sidebar":"group-action",className:L("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",e),...r})});Va.displayName="SidebarGroupAction";const Ha=i.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,"data-sidebar":"group-content",className:L("w-full text-sm",e),...t}));Ha.displayName="SidebarGroupContent";const Yr=i.forwardRef(({className:e,...t},r)=>u.jsx("ul",{ref:r,"data-sidebar":"menu",className:L("flex w-full min-w-0 flex-col gap-1",e),...t}));Yr.displayName="SidebarMenu";const Xr=i.forwardRef(({className:e,...t},r)=>u.jsx("li",{ref:r,"data-sidebar":"menu-item",className:L("group/menu-item relative",e),...t}));Xr.displayName="SidebarMenuItem";const eu=ht("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>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 shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground 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"}}),qr=i.forwardRef(({asChild:e=!1,isActive:t=!1,variant:r="default",size:n="default",tooltip:o,className:a,...s},c)=>{const l=e?de:"button",{isMobile:d,state:f}=ct(),h=u.jsx(l,{ref:c,"data-sidebar":"menu-button","data-size":n,"data-active":t,className:L(eu({variant:r,size:n}),a),...s});return o?(typeof o=="string"&&(o={children:o}),u.jsxs(Ia,{children:[u.jsx(Da,{asChild:!0,children:h}),u.jsx(Br,{side:"right",align:"center",hidden:f!=="collapsed"||d,...o})]})):h});qr.displayName="SidebarMenuButton";const ja=i.forwardRef(({className:e,asChild:t=!1,showOnHover:r=!1,...n},o)=>{const a=t?de:"button";return u.jsx(a,{ref:o,"data-sidebar":"menu-action",className:L("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",r&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...n})});ja.displayName="SidebarMenuAction";const Ga=i.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,"data-sidebar":"menu-badge",className:L("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));Ga.displayName="SidebarMenuBadge";const Ua=i.forwardRef(({className:e,showIcon:t=!1,...r},n)=>{const o=i.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return u.jsxs("div",{ref:n,"data-sidebar":"menu-skeleton",className:L("rounded-md h-8 flex gap-2 px-2 items-center",e),...r,children:[t&&u.jsx(Sr,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),u.jsx(Sr,{className:"h-4 flex-1 max-w-(--skeleton-width)","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})});Ua.displayName="SidebarMenuSkeleton";const Ka=i.forwardRef(({className:e,...t},r)=>u.jsx("ul",{ref:r,"data-sidebar":"menu-sub",className:L("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));Ka.displayName="SidebarMenuSub";const Ya=i.forwardRef(({...e},t)=>u.jsx("li",{ref:t,...e}));Ya.displayName="SidebarMenuSubItem";const Xa=i.forwardRef(({asChild:e=!1,size:t="md",isActive:r,className:n,...o},a)=>{const s=e?de:"a";return u.jsx(s,{ref:a,"data-sidebar":"menu-sub-button","data-size":t,"data-active":r,className:L("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-hidden ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground 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 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",n),...o})});Xa.displayName="SidebarMenuSubButton";function tu(e){const t=e+"CollectionProvider",[r,n]=nt(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{const{scope:b,children:p}=g,m=X.useRef(null),y=X.useRef(new Map).current;return u.jsx(o,{scope:b,itemMap:y,collectionRef:m,children:p})};s.displayName=t;const c=e+"CollectionSlot",l=X.forwardRef((g,b)=>{const{scope:p,children:m}=g,y=a(c,p),w=ee(b,y.collectionRef);return u.jsx(de,{ref:w,children:m})});l.displayName=c;const d=e+"CollectionItemSlot",f="data-radix-collection-item",h=X.forwardRef((g,b)=>{const{scope:p,children:m,...y}=g,w=X.useRef(null),x=ee(b,w),E=a(d,p);return X.useEffect(()=>(E.itemMap.set(w,{ref:w,...y}),()=>void E.itemMap.delete(w))),u.jsx(de,{[f]:"",ref:x,children:m})});h.displayName=d;function v(g){const b=a(e+"CollectionConsumer",g);return X.useCallback(()=>{const m=b.collectionRef.current;if(!m)return[];const y=Array.from(m.querySelectorAll(`[${f}]`));return Array.from(b.itemMap.values()).sort((E,C)=>y.indexOf(E.ref.current)-y.indexOf(C.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:s,Slot:l,ItemSlot:h},v,n]}var Zr="ToastProvider",[Qr,ru,nu]=tu("Toast"),[qa,Bu]=nt("Toast",[nu]),[ou,Vt]=qa(Zr),Za=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:o="right",swipeThreshold:a=50,children:s}=e,[c,l]=i.useState(null),[d,f]=i.useState(0),h=i.useRef(!1),v=i.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${Zr}\`. Expected non-empty \`string\`.`),u.jsx(Qr.Provider,{scope:t,children:u.jsx(ou,{scope:t,label:r,duration:n,swipeDirection:o,swipeThreshold:a,toastCount:d,viewport:c,onViewportChange:l,onToastAdd:i.useCallback(()=>f(g=>g+1),[]),onToastRemove:i.useCallback(()=>f(g=>g-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:v,children:s})})};Za.displayName=Zr;var Qa="ToastViewport",au=["F8"],Jr="toast.viewportPause",en="toast.viewportResume",Ja=i.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:n=au,label:o="Notifications ({hotkey})",...a}=e,s=Vt(Qa,r),c=ru(r),l=i.useRef(null),d=i.useRef(null),f=i.useRef(null),h=i.useRef(null),v=ee(t,h,s.onViewportChange),g=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=s.toastCount>0;i.useEffect(()=>{const m=y=>{var x;n.length!==0&&n.every(E=>y[E]||y.code===E)&&((x=h.current)==null||x.focus())};return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[n]),i.useEffect(()=>{const m=l.current,y=h.current;if(b&&m&&y){const w=()=>{if(!s.isClosePausedRef.current){const S=new CustomEvent(Jr);y.dispatchEvent(S),s.isClosePausedRef.current=!0}},x=()=>{if(s.isClosePausedRef.current){const S=new CustomEvent(en);y.dispatchEvent(S),s.isClosePausedRef.current=!1}},E=S=>{!m.contains(S.relatedTarget)&&x()},C=()=>{m.contains(document.activeElement)||x()};return m.addEventListener("focusin",w),m.addEventListener("focusout",E),m.addEventListener("pointermove",w),m.addEventListener("pointerleave",C),window.addEventListener("blur",w),window.addEventListener("focus",x),()=>{m.removeEventListener("focusin",w),m.removeEventListener("focusout",E),m.removeEventListener("pointermove",w),m.removeEventListener("pointerleave",C),window.removeEventListener("blur",w),window.removeEventListener("focus",x)}}},[b,s.isClosePausedRef]);const p=i.useCallback(({tabbingDirection:m})=>{const w=c().map(x=>{const E=x.ref.current,C=[E,...bu(E)];return m==="forwards"?C:C.reverse()});return(m==="forwards"?w.reverse():w).flat()},[c]);return i.useEffect(()=>{const m=h.current;if(m){const y=w=>{var C,S,T;const x=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!x){const $=document.activeElement,I=w.shiftKey;if(w.target===m&&I){(C=d.current)==null||C.focus();return}const W=p({tabbingDirection:I?"backwards":"forwards"}),_=W.findIndex(N=>N===$);nn(W.slice(_+1))?w.preventDefault():I?(S=d.current)==null||S.focus():(T=f.current)==null||T.focus()}};return m.addEventListener("keydown",y),()=>m.removeEventListener("keydown",y)}},[c,p]),u.jsxs(nc,{ref:l,role:"region","aria-label":o.replace("{hotkey}",g),tabIndex:-1,style:{pointerEvents:b?void 0:"none"},children:[b&&u.jsx(tn,{ref:d,onFocusFromOutsideViewport:()=>{const m=p({tabbingDirection:"forwards"});nn(m)}}),u.jsx(Qr.Slot,{scope:r,children:u.jsx(K.ol,{tabIndex:-1,...a,ref:v})}),b&&u.jsx(tn,{ref:f,onFocusFromOutsideViewport:()=>{const m=p({tabbingDirection:"backwards"});nn(m)}})]})});Ja.displayName=Qa;var es="ToastFocusProxy",tn=i.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...o}=e,a=Vt(es,r);return u.jsx($t,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var d;const c=s.relatedTarget;!((d=a.viewport)!=null&&d.contains(c))&&n()}})});tn.displayName=es;var Ht="Toast",su="toast.swipeStart",iu="toast.swipeMove",cu="toast.swipeCancel",lu="toast.swipeEnd",ts=i.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:o,onOpenChange:a,...s}=e,[c=!0,l]=ar({prop:n,defaultProp:o,onChange:a});return u.jsx(Le,{present:r||c,children:u.jsx(fu,{open:c,...s,ref:t,onClose:()=>l(!1),onPause:le(e.onPause),onResume:le(e.onResume),onSwipeStart:U(e.onSwipeStart,d=>{d.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:U(e.onSwipeMove,d=>{const{x:f,y:h}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","move"),d.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${f}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:U(e.onSwipeCancel,d=>{d.currentTarget.setAttribute("data-swipe","cancel"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:U(e.onSwipeEnd,d=>{const{x:f,y:h}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","end"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${f}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),l(!1)})})})});ts.displayName=Ht;var[du,uu]=qa(Ht,{onClose(){}}),fu=i.forwardRef((e,t)=>{const{__scopeToast:r,type:n="foreground",duration:o,open:a,onClose:s,onEscapeKeyDown:c,onPause:l,onResume:d,onSwipeStart:f,onSwipeMove:h,onSwipeCancel:v,onSwipeEnd:g,...b}=e,p=Vt(Ht,r),[m,y]=i.useState(null),w=ee(t,N=>y(N)),x=i.useRef(null),E=i.useRef(null),C=o||p.duration,S=i.useRef(0),T=i.useRef(C),$=i.useRef(0),{onToastAdd:I,onToastRemove:z}=p,H=le(()=>{var B;(m==null?void 0:m.contains(document.activeElement))&&((B=p.viewport)==null||B.focus()),s()}),W=i.useCallback(N=>{!N||N===1/0||(window.clearTimeout($.current),S.current=new Date().getTime(),$.current=window.setTimeout(H,N))},[H]);i.useEffect(()=>{const N=p.viewport;if(N){const B=()=>{W(T.current),d==null||d()},M=()=>{const j=new Date().getTime()-S.current;T.current=T.current-j,window.clearTimeout($.current),l==null||l()};return N.addEventListener(Jr,M),N.addEventListener(en,B),()=>{N.removeEventListener(Jr,M),N.removeEventListener(en,B)}}},[p.viewport,C,l,d,W]),i.useEffect(()=>{a&&!p.isClosePausedRef.current&&W(C)},[a,C,p.isClosePausedRef,W]),i.useEffect(()=>(I(),()=>z()),[I,z]);const _=i.useMemo(()=>m?cs(m):null,[m]);return p.viewport?u.jsxs(u.Fragment,{children:[_&&u.jsx(pu,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0,children:_}),u.jsx(du,{scope:r,onClose:H,children:qt.createPortal(u.jsx(Qr.ItemSlot,{scope:r,children:u.jsx(rc,{asChild:!0,onEscapeKeyDown:U(c,()=>{p.isFocusedToastEscapeKeyDownRef.current||H(),p.isFocusedToastEscapeKeyDownRef.current=!1}),children:u.jsx(K.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":p.swipeDirection,...b,ref:w,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:U(e.onKeyDown,N=>{N.key==="Escape"&&(c==null||c(N.nativeEvent),N.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,H()))}),onPointerDown:U(e.onPointerDown,N=>{N.button===0&&(x.current={x:N.clientX,y:N.clientY})}),onPointerMove:U(e.onPointerMove,N=>{if(!x.current)return;const B=N.clientX-x.current.x,M=N.clientY-x.current.y,j=!!E.current,k=["left","right"].includes(p.swipeDirection),R=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,Y=k?R(0,B):0,Z=k?0:R(0,M),re=N.pointerType==="touch"?10:2,J={x:Y,y:Z},te={originalEvent:N,delta:J};j?(E.current=J,jt(iu,h,te,{discrete:!1})):ls(J,p.swipeDirection,re)?(E.current=J,jt(su,f,te,{discrete:!1}),N.target.setPointerCapture(N.pointerId)):(Math.abs(B)>re||Math.abs(M)>re)&&(x.current=null)}),onPointerUp:U(e.onPointerUp,N=>{const B=E.current,M=N.target;if(M.hasPointerCapture(N.pointerId)&&M.releasePointerCapture(N.pointerId),E.current=null,x.current=null,B){const j=N.currentTarget,k={originalEvent:N,delta:B};ls(B,p.swipeDirection,p.swipeThreshold)?jt(lu,g,k,{discrete:!0}):jt(cu,v,k,{discrete:!0}),j.addEventListener("click",R=>R.preventDefault(),{once:!0})}})})})}),p.viewport)})]}):null}),pu=e=>{const{__scopeToast:t,children:r,...n}=e,o=Vt(Ht,t),[a,s]=i.useState(!1),[c,l]=i.useState(!1);return mu(()=>s(!0)),i.useEffect(()=>{const d=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(d)},[]),c?null:u.jsx(yt,{asChild:!0,children:u.jsx($t,{...n,children:a&&u.jsxs(u.Fragment,{children:[o.label," ",r]})})})},hu="ToastTitle",rs=i.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return u.jsx(K.div,{...n,ref:t})});rs.displayName=hu;var gu="ToastDescription",ns=i.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return u.jsx(K.div,{...n,ref:t})});ns.displayName=gu;var os="ToastAction",as=i.forwardRef((e,t)=>{const{altText:r,...n}=e;return r.trim()?u.jsx(is,{altText:r,asChild:!0,children:u.jsx(rn,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${os}\`. Expected non-empty \`string\`.`),null)});as.displayName=os;var ss="ToastClose",rn=i.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,o=uu(ss,r);return u.jsx(is,{asChild:!0,children:u.jsx(K.button,{type:"button",...n,ref:t,onClick:U(e.onClick,o.onClose)})})});rn.displayName=ss;var is=i.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...o}=e;return u.jsx(K.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...o,ref:t})});function cs(e){const t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),vu(n)){const o=n.ariaHidden||n.hidden||n.style.display==="none",a=n.dataset.radixToastAnnounceExclude==="";if(!o)if(a){const s=n.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...cs(n))}}),t}function jt(e,t,r,{discrete:n}){const o=r.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Hn(o,a):o.dispatchEvent(a)}var ls=(e,t,r=0)=>{const n=Math.abs(e.x),o=Math.abs(e.y),a=n>o;return t==="left"||t==="right"?a&&n>r:!a&&o>r};function mu(e=()=>{}){const t=le(e);Ce(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function vu(e){return e.nodeType===e.ELEMENT_NODE}function bu(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function nn(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var yu=Za,ds=Ja,us=ts,fs=rs,ps=ns,hs=as,gs=rn;const ms=yu,on=i.forwardRef(({className:e,...t},r)=>u.jsx(ds,{ref:r,className:L("fixed top-0 z-100 flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));on.displayName=ds.displayName;const wu=ht("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full sm:data-[state=open]:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground",success:"border-green-600 bg-green-600 text-white",warning:"border-yellow-500 bg-yellow-500 text-white",info:"border-blue-500 bg-blue-500 text-white",secondary:"border-secondary bg-secondary text-secondary-foreground",outline:"border-input bg-background text-foreground hover:bg-accent hover:text-accent-foreground"}},defaultVariants:{variant:"default"}}),an=i.forwardRef(({className:e,variant:t,...r},n)=>u.jsx(us,{ref:n,className:L(wu({variant:t}),e),...r}));an.displayName=us.displayName;const vs=i.forwardRef(({className:e,...t},r)=>u.jsx(hs,{ref:r,className:L("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-hidden focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 hover:group-[.destructive]:border-destructive/30 hover:group-[.destructive]:bg-destructive hover:group-[.destructive]:text-destructive-foreground focus:group-[.destructive]:ring-destructive",e),...t}));vs.displayName=hs.displayName;const sn=i.forwardRef(({className:e,...t},r)=>u.jsx(gs,{ref:r,className:L("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-hidden focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 hover:group-[.destructive]:text-red-50 focus:group-[.destructive]:ring-red-400 focus:group-[.destructive]:ring-offset-red-600",e),"toast-close":"",...t,children:u.jsx(En,{className:"h-4 w-4"})}));sn.displayName=gs.displayName;const cn=i.forwardRef(({className:e,...t},r)=>u.jsx(fs,{ref:r,className:L("text-sm font-semibold [&+div]:text-xs",e),...t}));cn.displayName=fs.displayName;const ln=i.forwardRef(({className:e,...t},r)=>u.jsx(ps,{ref:r,className:L("text-sm opacity-90",e),...t}));ln.displayName=ps.displayName;const xu=1,Su=1e6;let dn=0;function Eu(){return dn=(dn+1)%Number.MAX_SAFE_INTEGER,dn.toString()}const un=new Map,bs=e=>{if(un.has(e))return;const t=setTimeout(()=>{un.delete(e),lt({type:"REMOVE_TOAST",toastId:e})},Su);un.set(e,t)},Cu=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,xu)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=t;return r?bs(r):e.toasts.forEach(n=>bs(n.id)),{...e,toasts:e.toasts.map(n=>n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return{...e,toasts:t.toastId?e.toasts.filter(r=>r.id!==t.toastId):[]}}},Gt=[];let Ut={toasts:[]};function lt(e){Ut=Cu(Ut,e),Gt.forEach(t=>t(Ut))}function ys({...e}){const t=Eu(),r=o=>lt({type:"UPDATE_TOAST",toast:{...o,id:t}}),n=()=>lt({type:"DISMISS_TOAST",toastId:t});return lt({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||n()}}}),{id:t,dismiss:n,update:r}}function fn(){const[e,t]=i.useState(Ut);return i.useEffect(()=>(Gt.push(t),()=>{const r=Gt.indexOf(t);r>-1&&Gt.splice(r,1)}),[]),{...e,toast:ys,dismiss:r=>lt({type:"DISMISS_TOAST",toastId:r})}}function ws(){const{toasts:e}=fn();return u.jsxs(ms,{children:[e.map(function({id:t,title:r,description:n,action:o,...a}){return u.jsxs(an,{...a,children:[u.jsxs("div",{className:"grid gap-1",children:[r&&u.jsx(cn,{children:r}),n&&u.jsx(ln,{children:n})]}),o,u.jsx(sn,{})]},t)}),u.jsx(on,{})]})}function xs({onSignOut:e,searchResultsRouteName:t}){const[r,n]=X.useState(""),o=tt.useNavigate(),{toast:a}=fn(),s=()=>{const l=r.trim();if(!l||l.length<2){a({title:"Enter more characters to search",description:"At least 2 characters are needed to search products.",variant:"destructive",duration:5e3});return}const d=new URLSearchParams({q:l});o({pathname:t,search:d.toString()}),n("")},c=l=>{l.key==="Enter"&&s()};return u.jsxs("header",{className:"flex h-16 items-center gap-4 border-b sidebar-foreground bg-sidebar px-6 fixed top-0 right-0 z-50 lg:left-64 left-0 border-sidebar-border",children:[u.jsx(jr,{className:"lg:hidden",children:u.jsx(Vs,{className:"h-6 w-6"})}),u.jsx("div",{className:"flex flex-1 items-center gap-4",children:u.jsx("div",{className:"relative w-full max-w-sm",children:u.jsxs("div",{children:[u.jsx("button",{type:"button",className:"absolute left-2 top-1/2 -translate-y-1/2",onClick:s,"aria-label":"Search",children:u.jsx(Gs,{className:"h-4 w-4 text-muted-foreground"})}),u.jsx(mt,{placeholder:"Search...",className:"w-full pl-8 bg-white text-black",value:r,onChange:l=>n(l.target.value),onKeyDown:c})]})})}),e&&u.jsx("div",{className:"flex items-center gap-4",children:u.jsxs(gt,{variant:"ghost",size:"icon",className:"h-9 w-9",onClick:e,children:[u.jsx(Bs,{className:"h-4 w-4 text-sidebar-foreground"}),u.jsx("span",{className:"sr-only",children:"Sign out"})]})})]})}function Ss({routes:e,footer:t,dashboardTitle:r}){const{appID:n}=tt.useParams(),o=e.filter(a=>a.showInNav);return u.jsxs(Hr,{className:"border-r border-sidebar-border",children:[u.jsx(Gr,{className:"border-b border-sidebar-border px-6 h-16 justify-center bg-sidebar text-sidebar-foreground",children:u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("div",{className:"flex items-center justify-center",children:u.jsx("img",{src:"https://api.randmar.io/images/RandmarIcon.svg",alt:"Randmar Icon",className:"h-4 w-4 filter brightness-0 saturate-100 invert"})}),u.jsx("span",{className:"font-semibold text-lg",children:r})]})}),u.jsx(Kr,{className:"py-4 bg-sidebar text-sidebar-foreground",children:u.jsx(Yr,{children:o.map(a=>{const s=a.icon,c=`/${a.path.replace(":appID",n)}`;return u.jsx(Xr,{children:u.jsx(qr,{asChild:!0,children:u.jsxs(tt.Link,{to:c,className:"transition-colors hover:bg-muted px-6",children:[s&&u.jsx(s,{className:"h-4 w-4"}),u.jsx("span",{children:a.label})]})})},a.key)})})}),u.jsx(Ur,{className:"border-t border-sidebar-border p-4 bg-sidebar-background text-sidebar-foreground",children:t})]})}function Tu({children:e,routes:t,footer:r,searchResultsRouteName:n,dashboardTitle:o,onSignOut:a}){return u.jsx(u.Fragment,{children:u.jsx(Vr,{children:u.jsxs("div",{className:"flex grow",children:[u.jsx(Ss,{routes:t,footer:r,dashboardTitle:o}),u.jsxs("div",{className:"flex flex-1 flex-col overflow-hidden",children:[u.jsx(xs,{onSignOut:a,searchResultsRouteName:n}),u.jsx("main",{className:"flex-1 overflow-auto mt-16",children:e}),u.jsx(ws,{})]})]})})})}P.AvatarFooter=ml,P.Button=gt,P.Input=mt,P.InputOTP=Ii,P.InputOTPGroup=Di,P.InputOTPSeparator=Ri,P.InputOTPSlot=Li,P.Layout=Tu,P.Navbar=Ss,P.Separator=or,P.Sheet=Bo,P.SheetClose=hl,P.SheetContent=wr,P.SheetDescription=Uo,P.SheetFooter=jo,P.SheetHeader=Ho,P.SheetOverlay=yr,P.SheetPortal=Vo,P.SheetTitle=Go,P.SheetTrigger=pl,P.Sidebar=Hr,P.SidebarContent=Kr,P.SidebarFooter=Ur,P.SidebarGroup=Wa,P.SidebarGroupAction=Va,P.SidebarGroupContent=Ha,P.SidebarGroupLabel=Ba,P.SidebarHeader=Gr,P.SidebarInput=$a,P.SidebarInset=Fa,P.SidebarMenu=Yr,P.SidebarMenuAction=ja,P.SidebarMenuBadge=Ga,P.SidebarMenuButton=qr,P.SidebarMenuItem=Xr,P.SidebarMenuSkeleton=Ua,P.SidebarMenuSub=Ka,P.SidebarMenuSubButton=Xa,P.SidebarMenuSubItem=Ya,P.SidebarProvider=Vr,P.SidebarRail=Ra,P.SidebarSeparator=za,P.SidebarTrigger=jr,P.Skeleton=Sr,P.Toast=an,P.ToastAction=vs,P.ToastClose=sn,P.ToastDescription=ln,P.ToastProvider=ms,P.ToastTitle=cn,P.ToastViewport=on,P.Toaster=ws,P.Tooltip=Ia,P.TooltipContent=Br,P.TooltipProvider=_a,P.TooltipTrigger=Da,P.Topbar=xs,P.buttonVariants=Vn,P.toast=ys,P.useIsMobile=Ko,P.useSidebar=ct,P.useToast=fn,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})});
|
package/dist/style.css
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
|
+
body {
|
|
2
|
+
--randmar-red: hsl(0 59% 46%);
|
|
3
|
+
--randmar-blue: hsl(222 68% 62%);
|
|
4
|
+
--randmar-purple: hsl(269 21% 56%);
|
|
5
|
+
--randmar-green: hsl(77 45% 58%);
|
|
6
|
+
--randmar-black: hsl(0 0% 17%);
|
|
7
|
+
--randmar-yellow: hsl(45 95% 64%);
|
|
1
8
|
|
|
2
|
-
:root {
|
|
3
9
|
--background: oklch(1 0 0);
|
|
4
10
|
--foreground: oklch(0.145 0 0);
|
|
5
11
|
--card: oklch(1 0 0);
|
|
6
12
|
--card-foreground: oklch(0.145 0 0);
|
|
7
13
|
--popover: oklch(1 0 0);
|
|
8
14
|
--popover-foreground: oklch(0.145 0 0);
|
|
9
|
-
--primary:
|
|
15
|
+
--primary: var(--randmar-red);
|
|
10
16
|
--primary-foreground: oklch(0.985 0 0);
|
|
11
17
|
--secondary: oklch(0.97 0 0);
|
|
12
18
|
--secondary-foreground: oklch(0.205 0 0);
|
|
@@ -14,7 +20,7 @@
|
|
|
14
20
|
--muted-foreground: oklch(0.556 0 0);
|
|
15
21
|
--accent: oklch(0.97 0 0);
|
|
16
22
|
--accent-foreground: oklch(0.205 0 0);
|
|
17
|
-
--destructive: oklch(0.
|
|
23
|
+
--destructive: oklch(0.6 0.245 27.325);
|
|
18
24
|
--destructive-foreground: white;
|
|
19
25
|
--border: oklch(0.922 0 0);
|
|
20
26
|
--input: oklch(0.922 0 0);
|
|
@@ -25,58 +31,39 @@
|
|
|
25
31
|
--chart-4: oklch(0.828 0.189 84.429);
|
|
26
32
|
--chart-5: oklch(0.769 0.188 70.08);
|
|
27
33
|
--radius: 0.625rem;
|
|
28
|
-
|
|
29
|
-
--sidebar
|
|
30
|
-
--sidebar-primary: oklch(0.205 0 0);
|
|
31
|
-
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
32
|
-
--sidebar-accent: oklch(0.97 0 0);
|
|
33
|
-
--sidebar-accent-foreground: oklch(0.205 0 0);
|
|
34
|
-
--sidebar-border: oklch(0.922 0 0);
|
|
35
|
-
--sidebar-ring: oklch(0.708 0 0);
|
|
36
|
-
|
|
37
|
-
--randmar-red: 0 59% 46%;
|
|
38
|
-
--randmar-blue: 222 68% 62%;
|
|
39
|
-
--randmar-purple: 269 21% 56%;
|
|
40
|
-
--randmar-green: 77 45% 58%;
|
|
41
|
-
--randmar-black: 0 0% 17%;
|
|
42
|
-
--randmar-yellow: 45 95% 64%;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.dark {
|
|
46
|
-
--background: oklch(0.27 0 0);
|
|
47
|
-
--foreground: oklch(0.99 0 0);
|
|
48
|
-
--card: oklch(0.12 0 0);
|
|
49
|
-
--card-foreground: oklch(0.99 0 0);
|
|
50
|
-
--popover: oklch(0.12 0 0);
|
|
51
|
-
--popover-foreground: oklch(0.99 0 0);
|
|
52
|
-
--primary: oklch(0.99 0 0);
|
|
53
|
-
--primary-foreground: oklch(0.20 0 0);
|
|
54
|
-
--secondary: oklch(0.24 0 0);
|
|
55
|
-
--secondary-foreground: oklch(0.99 0 0);
|
|
56
|
-
--muted: oklch(0.24 0 0);
|
|
57
|
-
--muted-foreground: oklch(0.71 0 0);
|
|
58
|
-
--accent: oklch(0.24 0 0);
|
|
59
|
-
--accent-foreground: oklch(0.99 0 0);
|
|
60
|
-
--destructive: oklch(0.47 0.15 0);
|
|
61
|
-
--destructive-foreground: oklch(0.99 0 0);
|
|
62
|
-
--border: oklch(0.42 0 0);
|
|
63
|
-
--input: oklch(0.24 0 0);
|
|
64
|
-
--ring: oklch(0.89 0 0);
|
|
65
|
-
--chart-1: oklch(0.65 0.18 220);
|
|
66
|
-
--chart-2: oklch(0.60 0.14 160);
|
|
67
|
-
--chart-3: oklch(0.69 0.20 30);
|
|
68
|
-
--chart-4: oklch(0.73 0.15 280);
|
|
69
|
-
--chart-5: oklch(0.69 0.19 340);
|
|
70
|
-
--sidebar: oklch(0.205 0 0);
|
|
34
|
+
|
|
35
|
+
--sidebar: oklch(0.29 0 0);
|
|
71
36
|
--sidebar-foreground: oklch(0.985 0 0);
|
|
72
37
|
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
73
38
|
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
74
39
|
--sidebar-accent: oklch(0.269 0 0);
|
|
75
40
|
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
76
|
-
--sidebar-border: oklch(0.
|
|
41
|
+
--sidebar-border: oklch(0.40 0 0);
|
|
77
42
|
--sidebar-ring: oklch(0.439 0 0);
|
|
78
43
|
}
|
|
79
44
|
|
|
45
|
+
.reseller-theme
|
|
46
|
+
{
|
|
47
|
+
--primary: var(--randmar-blue);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.shopify-theme
|
|
51
|
+
{
|
|
52
|
+
--primary: var(--randmar-green);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.manufacturer-theme
|
|
56
|
+
{
|
|
57
|
+
--primary: var(--randmar-purple);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.central-theme
|
|
61
|
+
{
|
|
62
|
+
--primary: var(--randmar-red);
|
|
63
|
+
--sidebar: oklch(from var(--primary) 22% c h);
|
|
64
|
+
--sidebar-border: oklch(from var(--primary) 32% c h);
|
|
65
|
+
}
|
|
66
|
+
|
|
80
67
|
@theme inline {
|
|
81
68
|
--color-background: var(--background);
|
|
82
69
|
--color-foreground: var(--foreground);
|
|
@@ -115,12 +102,12 @@
|
|
|
115
102
|
--color-sidebar-border: var(--sidebar-border);
|
|
116
103
|
--color-sidebar-ring: var(--sidebar-ring);
|
|
117
104
|
|
|
118
|
-
--color-randmar-red:
|
|
119
|
-
--color-randmar-blue:
|
|
120
|
-
--color-randmar-purple:
|
|
121
|
-
--color-randmar-green:
|
|
122
|
-
--color-randmar-black:
|
|
123
|
-
--color-randmar-yellow:
|
|
105
|
+
--color-randmar-red: var(--randmar-red);
|
|
106
|
+
--color-randmar-blue: var(--randmar-blue);
|
|
107
|
+
--color-randmar-purple: var(--randmar-purple);
|
|
108
|
+
--color-randmar-green: var(--randmar-green);
|
|
109
|
+
--color-randmar-black: var(--randmar-black);
|
|
110
|
+
--color-randmar-yellow: var(--randmar-yellow);
|
|
124
111
|
}
|
|
125
112
|
|
|
126
113
|
@layer base {
|