@golocalinteractive/golocal-cloud-wrapper 1.0.20 → 1.0.21

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.
@@ -1,4 +1,4 @@
1
- (function(Fe,k){typeof exports=="object"&&typeof module<"u"?k(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],k):(Fe=typeof globalThis<"u"?globalThis:Fe||self,k(Fe.GoLocalCloudWrapper={},Fe.React,Fe.ReactDOM))})(this,function(Fe,k,Mr){"use strict";function Or(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const l=Or(k),Tr=Or(Mr);var Mt={exports:{}},mt={};/**
1
+ (function(A,I){typeof exports=="object"&&typeof module<"u"?I(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],I):(A=typeof globalThis<"u"?globalThis:A||self,I(A.GoLocalCloudWrapper={},A.React,A.ReactDOM))})(this,function(A,I,Br){"use strict";function Ur(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const u=Ur(I),Kr=Ur(Br);var Pt={exports:{}},ht={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Nr;function ci(){if(Nr)return mt;Nr=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var a=null;if(s!==void 0&&(a=""+s),o.key!==void 0&&(a=""+o.key),"key"in o){s={};for(var i in o)i!=="key"&&(s[i]=o[i])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:a,ref:o!==void 0?o:null,props:s}}return mt.Fragment=t,mt.jsx=n,mt.jsxs=n,mt}var ht={};/**
9
+ */var Yr;function nc(){if(Yr)return ht;Yr=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,a){var s=null;if(a!==void 0&&(s=""+a),o.key!==void 0&&(s=""+o.key),"key"in o){a={};for(var i in o)i!=="key"&&(a[i]=o[i])}else a=o;return o=a.ref,{$$typeof:e,type:r,key:s,ref:o!==void 0?o:null,props:a}}return ht.Fragment=t,ht.jsx=n,ht.jsxs=n,ht}var gt={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,12 +14,12 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Pr;function li(){return Pr||(Pr=1,process.env.NODE_ENV!=="production"&&function(){function e(w){if(w==null)return null;if(typeof w=="function")return w.$$typeof===I?null:w.displayName||w.name||null;if(typeof w=="string")return w;switch(w){case h:return"Fragment";case v:return"Profiler";case x:return"StrictMode";case _:return"Suspense";case M:return"SuspenseList";case D:return"Activity"}if(typeof w=="object")switch(typeof w.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),w.$$typeof){case b:return"Portal";case E:return(w.displayName||"Context")+".Provider";case y:return(w._context.displayName||"Context")+".Consumer";case S:var P=w.render;return w=w.displayName,w||(w=P.displayName||P.name||"",w=w!==""?"ForwardRef("+w+")":"ForwardRef"),w;case A:return P=w.displayName||null,P!==null?P:e(w.type)||"Memo";case C:P=w._payload,w=w._init;try{return e(w(P))}catch{}}return null}function t(w){return""+w}function n(w){try{t(w);var P=!1}catch{P=!0}if(P){P=console;var j=P.error,$=typeof Symbol=="function"&&Symbol.toStringTag&&w[Symbol.toStringTag]||w.constructor.name||"Object";return j.call(P,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",$),t(w)}}function r(w){if(w===h)return"<>";if(typeof w=="object"&&w!==null&&w.$$typeof===C)return"<...>";try{var P=e(w);return P?"<"+P+">":"<...>"}catch{return"<...>"}}function o(){var w=G.A;return w===null?null:w.getOwner()}function s(){return Error("react-stack-top-frame")}function a(w){if(z.call(w,"key")){var P=Object.getOwnPropertyDescriptor(w,"key").get;if(P&&P.isReactWarning)return!1}return w.key!==void 0}function i(w,P){function j(){q||(q=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",P))}j.isReactWarning=!0,Object.defineProperty(w,"key",{get:j,configurable:!0})}function c(){var w=e(this.type);return F[w]||(F[w]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),w=this.props.ref,w!==void 0?w:null}function f(w,P,j,$,X,te,le,K){return j=te.ref,w={$$typeof:g,type:w,key:P,props:te,_owner:X},(j!==void 0?j:null)!==null?Object.defineProperty(w,"ref",{enumerable:!1,get:c}):Object.defineProperty(w,"ref",{enumerable:!1,value:null}),w._store={},Object.defineProperty(w._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(w,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(w,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:le}),Object.defineProperty(w,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:K}),Object.freeze&&(Object.freeze(w.props),Object.freeze(w)),w}function u(w,P,j,$,X,te,le,K){var Q=P.children;if(Q!==void 0)if($)if(V(Q)){for($=0;$<Q.length;$++)d(Q[$]);Object.freeze&&Object.freeze(Q)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else d(Q);if(z.call(P,"key")){Q=e(w);var ee=Object.keys(P).filter(function(Ee){return Ee!=="key"});$=0<ee.length?"{key: someKey, "+ee.join(": ..., ")+": ...}":"{key: someKey}",O[Q+$]||(ee=0<ee.length?"{"+ee.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var qr;function rc(){return qr||(qr=1,process.env.NODE_ENV!=="production"&&function(){function e(y){if(y==null)return null;if(typeof y=="function")return y.$$typeof===L?null:y.displayName||y.name||null;if(typeof y=="string")return y;switch(y){case g:return"Fragment";case v:return"Profiler";case x:return"StrictMode";case _:return"Suspense";case N:return"SuspenseList";case j:return"Activity"}if(typeof y=="object")switch(typeof y.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),y.$$typeof){case b:return"Portal";case S:return(y.displayName||"Context")+".Provider";case w:return(y._context.displayName||"Context")+".Consumer";case E:var P=y.render;return y=y.displayName,y||(y=P.displayName||P.name||"",y=y!==""?"ForwardRef("+y+")":"ForwardRef"),y;case M:return P=y.displayName||null,P!==null?P:e(y.type)||"Memo";case C:P=y._payload,y=y._init;try{return e(y(P))}catch{}}return null}function t(y){return""+y}function n(y){try{t(y);var P=!1}catch{P=!0}if(P){P=console;var F=P.error,H=typeof Symbol=="function"&&Symbol.toStringTag&&y[Symbol.toStringTag]||y.constructor.name||"Object";return F.call(P,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",H),t(y)}}function r(y){if(y===g)return"<>";if(typeof y=="object"&&y!==null&&y.$$typeof===C)return"<...>";try{var P=e(y);return P?"<"+P+">":"<...>"}catch{return"<...>"}}function o(){var y=U.A;return y===null?null:y.getOwner()}function a(){return Error("react-stack-top-frame")}function s(y){if(B.call(y,"key")){var P=Object.getOwnPropertyDescriptor(y,"key").get;if(P&&P.isReactWarning)return!1}return y.key!==void 0}function i(y,P){function F(){X||(X=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",P))}F.isReactWarning=!0,Object.defineProperty(y,"key",{get:F,configurable:!0})}function l(){var y=e(this.type);return V[y]||(V[y]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),y=this.props.ref,y!==void 0?y:null}function p(y,P,F,H,Z,ne,ue,Y){return F=ne.ref,y={$$typeof:h,type:y,key:P,props:ne,_owner:Z},(F!==void 0?F:null)!==null?Object.defineProperty(y,"ref",{enumerable:!1,get:l}):Object.defineProperty(y,"ref",{enumerable:!1,value:null}),y._store={},Object.defineProperty(y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(y,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(y,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ue}),Object.defineProperty(y,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Y}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y}function d(y,P,F,H,Z,ne,ue,Y){var ee=P.children;if(ee!==void 0)if(H)if(z(ee)){for(H=0;H<ee.length;H++)f(ee[H]);Object.freeze&&Object.freeze(ee)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else f(ee);if(B.call(P,"key")){ee=e(y);var te=Object.keys(P).filter(function(Ee){return Ee!=="key"});H=0<te.length?"{key: someKey, "+te.join(": ..., ")+": ...}":"{key: someKey}",T[ee+H]||(te=0<te.length?"{"+te.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
18
  let props = %s;
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,$,Q,ee,Q),O[Q+$]=!0)}if(Q=null,j!==void 0&&(n(j),Q=""+j),a(P)&&(n(P.key),Q=""+P.key),"key"in P){j={};for(var se in P)se!=="key"&&(j[se]=P[se])}else j=P;return Q&&i(j,typeof w=="function"?w.displayName||w.name||"Unknown":w),f(w,Q,te,X,o(),j,le,K)}function d(w){typeof w=="object"&&w!==null&&w.$$typeof===g&&w._store&&(w._store.validated=1)}var m=k,g=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),E=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),I=Symbol.for("react.client.reference"),G=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Object.prototype.hasOwnProperty,V=Array.isArray,H=console.createTask?console.createTask:function(){return null};m={"react-stack-bottom-frame":function(w){return w()}};var q,F={},U=m["react-stack-bottom-frame"].bind(m,s)(),R=H(r(s)),O={};ht.Fragment=h,ht.jsx=function(w,P,j,$,X){var te=1e4>G.recentlyCreatedOwnerStacks++;return u(w,P,j,!1,$,X,te?Error("react-stack-top-frame"):U,te?H(r(w)):R)},ht.jsxs=function(w,P,j,$,X){var te=1e4>G.recentlyCreatedOwnerStacks++;return u(w,P,j,!0,$,X,te?Error("react-stack-top-frame"):U,te?H(r(w)):R)}}()),ht}var kr;function ui(){return kr||(kr=1,process.env.NODE_ENV==="production"?Mt.exports=ci():Mt.exports=li()),Mt.exports}var p=ui(),Ot={exports:{}},fn={};/**
22
+ <%s key={someKey} {...props} />`,H,ee,te,ee),T[ee+H]=!0)}if(ee=null,F!==void 0&&(n(F),ee=""+F),s(P)&&(n(P.key),ee=""+P.key),"key"in P){F={};for(var se in P)se!=="key"&&(F[se]=P[se])}else F=P;return ee&&i(F,typeof y=="function"?y.displayName||y.name||"Unknown":y),p(y,ee,ne,Z,o(),F,ue,Y)}function f(y){typeof y=="object"&&y!==null&&y.$$typeof===h&&y._store&&(y._store.validated=1)}var m=I,h=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),S=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),U=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,z=Array.isArray,W=console.createTask?console.createTask:function(){return null};m={"react-stack-bottom-frame":function(y){return y()}};var X,V={},K=m["react-stack-bottom-frame"].bind(m,a)(),R=W(r(a)),T={};gt.Fragment=g,gt.jsx=function(y,P,F,H,Z){var ne=1e4>U.recentlyCreatedOwnerStacks++;return d(y,P,F,!1,H,Z,ne?Error("react-stack-top-frame"):K,ne?W(r(y)):R)},gt.jsxs=function(y,P,F,H,Z){var ne=1e4>U.recentlyCreatedOwnerStacks++;return d(y,P,F,!0,H,Z,ne?Error("react-stack-top-frame"):K,ne?W(r(y)):R)}}()),gt}var Xr;function oc(){return Xr||(Xr=1,process.env.NODE_ENV==="production"?Pt.exports=nc():Pt.exports=rc()),Pt.exports}var c=oc(),Dt={exports:{}},xn={};/**
23
23
  * @license React
24
24
  * use-sync-external-store-shim.production.js
25
25
  *
@@ -27,7 +27,7 @@ React keys must be passed directly to JSX without using spread:
27
27
  *
28
28
  * This source code is licensed under the MIT license found in the
29
29
  * LICENSE file in the root directory of this source tree.
30
- */var Dr;function di(){if(Dr)return fn;Dr=1;var e=k;function t(d,m){return d===m&&(d!==0||1/d===1/m)||d!==d&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,s=e.useLayoutEffect,a=e.useDebugValue;function i(d,m){var g=m(),b=r({inst:{value:g,getSnapshot:m}}),h=b[0].inst,x=b[1];return s(function(){h.value=g,h.getSnapshot=m,c(h)&&x({inst:h})},[d,g,m]),o(function(){return c(h)&&x({inst:h}),d(function(){c(h)&&x({inst:h})})},[d]),a(g),g}function c(d){var m=d.getSnapshot;d=d.value;try{var g=m();return!n(d,g)}catch{return!0}}function f(d,m){return m()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:i;return fn.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,fn}var pn={};/**
30
+ */var Zr;function ac(){if(Zr)return xn;Zr=1;var e=I;function t(f,m){return f===m&&(f!==0||1/f===1/m)||f!==f&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,a=e.useLayoutEffect,s=e.useDebugValue;function i(f,m){var h=m(),b=r({inst:{value:h,getSnapshot:m}}),g=b[0].inst,x=b[1];return a(function(){g.value=h,g.getSnapshot=m,l(g)&&x({inst:g})},[f,h,m]),o(function(){return l(g)&&x({inst:g}),f(function(){l(g)&&x({inst:g})})},[f]),s(h),h}function l(f){var m=f.getSnapshot;f=f.value;try{var h=m();return!n(f,h)}catch{return!0}}function p(f,m){return m()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:i;return xn.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,xn}var wn={};/**
31
31
  * @license React
32
32
  * use-sync-external-store-shim.development.js
33
33
  *
@@ -35,98 +35,108 @@ React keys must be passed directly to JSX without using spread:
35
35
  *
36
36
  * This source code is licensed under the MIT license found in the
37
37
  * LICENSE file in the root directory of this source tree.
38
- */var Ir;function fi(){return Ir||(Ir=1,process.env.NODE_ENV!=="production"&&function(){function e(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}function t(g,b){u||o.startTransition===void 0||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var h=b();if(!d){var x=b();s(h,x)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}x=a({inst:{value:h,getSnapshot:b}});var v=x[0].inst,y=x[1];return c(function(){v.value=h,v.getSnapshot=b,n(v)&&y({inst:v})},[g,h,b]),i(function(){return n(v)&&y({inst:v}),g(function(){n(v)&&y({inst:v})})},[g]),f(h),h}function n(g){var b=g.getSnapshot;g=g.value;try{var h=b();return!s(g,h)}catch{return!0}}function r(g,b){return b()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=k,s=typeof Object.is=="function"?Object.is:e,a=o.useState,i=o.useEffect,c=o.useLayoutEffect,f=o.useDebugValue,u=!1,d=!1,m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;pn.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:m,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),pn}var jr;function pi(){return jr||(jr=1,process.env.NODE_ENV==="production"?Ot.exports=di():Ot.exports=fi()),Ot.exports}var mi=pi();const Lr=0,Fr=1,$r=2,Vr=3;var Hr=Object.prototype.hasOwnProperty;function mn(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&mn(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(Hr.call(e,n)&&++r&&!Hr.call(t,n)||!(n in t)||!mn(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}const Oe=new WeakMap,$e=()=>{},ue=$e(),Tt=Object,Y=e=>e===ue,xe=e=>typeof e=="function",Te=(e,t)=>({...e,...t}),Wr=e=>xe(e.then),hn={},Nt={},gn="undefined",gt=typeof window!=gn,vn=typeof document!=gn,hi=gt&&"Deno"in window,gi=()=>gt&&typeof window.requestAnimationFrame!=gn,zr=(e,t)=>{const n=Oe.get(e);return[()=>!Y(t)&&e.get(t)||hn,r=>{if(!Y(t)){const o=e.get(t);t in Nt||(Nt[t]=o),n[5](t,Te(o,r),o||hn)}},n[6],()=>!Y(t)&&t in Nt?Nt[t]:!Y(t)&&e.get(t)||hn]};let bn=!0;const vi=()=>bn,[xn,wn]=gt&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[$e,$e],bi=()=>{const e=vn&&document.visibilityState;return Y(e)||e!=="hidden"},xi=e=>(vn&&document.addEventListener("visibilitychange",e),xn("focus",e),()=>{vn&&document.removeEventListener("visibilitychange",e),wn("focus",e)}),wi=e=>{const t=()=>{bn=!0,e()},n=()=>{bn=!1};return xn("online",t),xn("offline",n),()=>{wn("online",t),wn("offline",n)}},yi={isOnline:vi,isVisible:bi},Ci={initFocus:xi,initReconnect:wi},Br=!k.useId,vt=!gt||hi,Ei=e=>gi()?window.requestAnimationFrame(e):setTimeout(e,1),Pt=vt?k.useEffect:k.useLayoutEffect,yn=typeof navigator<"u"&&navigator.connection,Gr=!vt&&yn&&(["slow-2g","2g"].includes(yn.effectiveType)||yn.saveData),kt=new WeakMap,Cn=(e,t)=>Tt.prototype.toString.call(e)===`[object ${t}]`;let Si=0;const En=e=>{const t=typeof e,n=Cn(e,"Date"),r=Cn(e,"RegExp"),o=Cn(e,"Object");let s,a;if(Tt(e)===e&&!n&&!r){if(s=kt.get(e),s)return s;if(s=++Si+"~",kt.set(e,s),Array.isArray(e)){for(s="@",a=0;a<e.length;a++)s+=En(e[a])+",";kt.set(e,s)}if(o){s="#";const i=Tt.keys(e).sort();for(;!Y(a=i.pop());)Y(e[a])||(s+=a+":"+En(e[a])+",");kt.set(e,s)}}else s=n?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return s},Sn=e=>{if(xe(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?En(e):"",[e,t]};let Ri=0;const Rn=()=>++Ri;async function Ur(...e){const[t,n,r,o]=e,s=Te({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let a=s.populateCache;const i=s.rollbackOnError;let c=s.optimisticData;const f=m=>typeof i=="function"?i(m):i!==!1,u=s.throwOnError;if(xe(n)){const m=n,g=[],b=t.keys();for(const h of b)!/^\$(inf|sub)\$/.test(h)&&m(t.get(h)._k)&&g.push(h);return Promise.all(g.map(d))}return d(n);async function d(m){const[g]=Sn(m);if(!g)return;const[b,h]=zr(t,g),[x,v,y,E]=Oe.get(t),S=()=>{const V=x[g];return(xe(s.revalidate)?s.revalidate(b().data,m):s.revalidate!==!1)&&(delete y[g],delete E[g],V&&V[0])?V[0]($r).then(()=>b().data):b().data};if(e.length<3)return S();let _=r,M;const A=Rn();v[g]=[A,0];const C=!Y(c),D=b(),I=D.data,G=D._c,z=Y(G)?I:G;if(C&&(c=xe(c)?c(z,I):c,h({data:c,_c:z})),xe(_))try{_=_(z)}catch(V){M=V}if(_&&Wr(_))if(_=await _.catch(V=>{M=V}),A!==v[g][0]){if(M)throw M;return _}else M&&C&&f(M)&&(a=!0,h({data:z,_c:ue}));if(a&&!M)if(xe(a)){const V=a(_,z);h({data:V,error:ue,_c:ue})}else h({data:_,error:ue,_c:ue});if(v[g][1]=Rn(),Promise.resolve(S()).then(()=>{h({_c:ue})}),M){if(u)throw M;return}return _}}const Kr=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},Yr=(e,t)=>{if(!Oe.has(e)){const n=Te(Ci,t),r=Object.create(null),o=Ur.bind(ue,e);let s=$e;const a=Object.create(null),i=(u,d)=>{const m=a[u]||[];return a[u]=m,m.push(d),()=>m.splice(m.indexOf(d),1)},c=(u,d,m)=>{e.set(u,d);const g=a[u];if(g)for(const b of g)b(d,m)},f=()=>{if(!Oe.has(e)&&(Oe.set(e,[r,Object.create(null),Object.create(null),Object.create(null),o,c,i]),!vt)){const u=n.initFocus(setTimeout.bind(ue,Kr.bind(ue,r,Lr))),d=n.initReconnect(setTimeout.bind(ue,Kr.bind(ue,r,Fr)));s=()=>{u&&u(),d&&d(),Oe.delete(e)}}};return f(),[e,o,f,s]}return[e,Oe.get(e)[4]]},_i=(e,t,n,r,o)=>{const s=n.errorRetryCount,a=o.retryCount,i=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!Y(s)&&a>s||setTimeout(r,i,o)},Ai=mn,[_n,Mi]=Yr(new Map),qr=Te({onLoadingSlow:$e,onSuccess:$e,onError:$e,onErrorRetry:_i,onDiscarded:$e,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Gr?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Gr?5e3:3e3,compare:Ai,isPaused:()=>!1,cache:_n,mutate:Mi,fallback:{}},yi),Xr=(e,t)=>{const n=Te(e,t);if(t){const{use:r,fallback:o}=e,{use:s,fallback:a}=t;r&&s&&(n.use=r.concat(s)),o&&a&&(n.fallback=Te(o,a))}return n},An=k.createContext({}),Oi=e=>{const{value:t}=e,n=k.useContext(An),r=xe(t),o=k.useMemo(()=>r?t(n):t,[r,n,t]),s=k.useMemo(()=>r?o:Xr(n,o),[r,n,o]),a=o&&o.provider,i=k.useRef(ue);a&&!i.current&&(i.current=Yr(a(s.cache||_n),o));const c=i.current;return c&&(s.cache=c[0],s.mutate=c[1]),Pt(()=>{if(c)return c[2]&&c[2](),c[3]},[]),k.createElement(An.Provider,Te(e,{value:s}))},Ti="$inf$",Zr=gt&&window.__SWR_DEVTOOLS_USE__,Ni=Zr?window.__SWR_DEVTOOLS_USE__:[],Pi=()=>{Zr&&(window.__SWR_DEVTOOLS_REACT__=k)},ki=e=>xe(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],Di=()=>Te(qr,k.useContext(An)),Ii=e=>(t,n,r)=>e(t,n&&((...s)=>{const[a]=Sn(t),[,,,i]=Oe.get(_n);if(a.startsWith(Ti))return n(...s);const c=i[a];return Y(c)?n(...s):(delete i[a],c)}),r),ji=Ni.concat(Ii),Li=e=>function(...n){const r=Di(),[o,s,a]=ki(n),i=Xr(r,a);let c=e;const{use:f}=i,u=(f||[]).concat(ji);for(let d=u.length;d--;)c=u[d](c);return c(o,s||i.fetcher||null,i)},Fi=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o>=0&&(r[o]=r[r.length-1],r.pop())}};Pi();const Mn=k.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),On={dedupe:!0},$i=(e,t,n)=>{const{cache:r,compare:o,suspense:s,fallbackData:a,revalidateOnMount:i,revalidateIfStale:c,refreshInterval:f,refreshWhenHidden:u,refreshWhenOffline:d,keepPreviousData:m}=n,[g,b,h,x]=Oe.get(r),[v,y]=Sn(e),E=k.useRef(!1),S=k.useRef(!1),_=k.useRef(v),M=k.useRef(t),A=k.useRef(n),C=()=>A.current,D=()=>C().isVisible()&&C().isOnline(),[I,G,z,V]=zr(r,v),H=k.useRef({}).current,q=Y(a)?Y(n.fallback)?ue:n.fallback[v]:a,F=(Z,J)=>{for(const ce in H){const re=ce;if(re==="data"){if(!o(Z[re],J[re])&&(!Y(Z[re])||!o(te,J[re])))return!1}else if(J[re]!==Z[re])return!1}return!0},U=k.useMemo(()=>{const Z=!v||!t?!1:Y(i)?C().isPaused()||s?!1:c!==!1:i,J=fe=>{const je=Te(fe);return delete je._k,Z?{isValidating:!0,isLoading:!0,...je}:je},ce=I(),re=V(),ge=J(ce),Ue=ce===re?ge:J(re);let oe=ge;return[()=>{const fe=J(I());return F(fe,oe)?(oe.data=fe.data,oe.isLoading=fe.isLoading,oe.isValidating=fe.isValidating,oe.error=fe.error,oe):(oe=fe,fe)},()=>Ue]},[r,v]),R=mi.useSyncExternalStore(k.useCallback(Z=>z(v,(J,ce)=>{F(ce,J)||Z()}),[r,v]),U[0],U[1]),O=!E.current,w=g[v]&&g[v].length>0,P=R.data,j=Y(P)?q&&Wr(q)?Mn(q):q:P,$=R.error,X=k.useRef(j),te=m?Y(P)?Y(X.current)?j:X.current:P:j,le=w&&!Y($)?!1:O&&!Y(i)?i:C().isPaused()?!1:s?Y(j)?!1:c:Y(j)||c,K=!!(v&&t&&O&&le),Q=Y(R.isValidating)?K:R.isValidating,ee=Y(R.isLoading)?K:R.isLoading,se=k.useCallback(async Z=>{const J=M.current;if(!v||!J||S.current||C().isPaused())return!1;let ce,re,ge=!0;const Ue=Z||{},oe=!h[v]||!Ue.dedupe,fe=()=>Br?!S.current&&v===_.current&&E.current:v===_.current,je={isValidating:!1,isLoading:!1},si=()=>{G(je)},ai=()=>{const be=h[v];be&&be[1]===re&&delete h[v]},ii={isValidating:!0};Y(I().data)&&(ii.isLoading=!0);try{if(oe&&(G(ii),n.loadingTimeout&&Y(I().data)&&setTimeout(()=>{ge&&fe()&&C().onLoadingSlow(v,n)},n.loadingTimeout),h[v]=[J(y),Rn()]),[ce,re]=h[v],ce=await ce,oe&&setTimeout(ai,n.dedupingInterval),!h[v]||h[v][1]!==re)return oe&&fe()&&C().onDiscarded(v),!1;je.error=ue;const be=b[v];if(!Y(be)&&(re<=be[0]||re<=be[1]||be[1]===0))return si(),oe&&fe()&&C().onDiscarded(v),!1;const Le=I().data;je.data=o(Le,ce)?Le:ce,oe&&fe()&&C().onSuccess(ce,v,n)}catch(be){ai();const Le=C(),{shouldRetryOnError:_r}=Le;Le.isPaused()||(je.error=be,oe&&fe()&&(Le.onError(be,v,Le),(_r===!0||xe(_r)&&_r(be))&&(!C().revalidateOnFocus||!C().revalidateOnReconnect||D())&&Le.onErrorRetry(be,v,Le,f0=>{const Ar=g[v];Ar&&Ar[0]&&Ar[0](Vr,f0)},{retryCount:(Ue.retryCount||0)+1,dedupe:!0})))}return ge=!1,si(),!0},[v,r]),Ee=k.useCallback((...Z)=>Ur(r,_.current,...Z),[]);if(Pt(()=>{M.current=t,A.current=n,Y(P)||(X.current=P)}),Pt(()=>{if(!v)return;const Z=se.bind(ue,On);let J=0;C().revalidateOnFocus&&(J=Date.now()+C().focusThrottleInterval);const re=Fi(v,g,(ge,Ue={})=>{if(ge==Lr){const oe=Date.now();C().revalidateOnFocus&&oe>J&&D()&&(J=oe+C().focusThrottleInterval,Z())}else if(ge==Fr)C().revalidateOnReconnect&&D()&&Z();else{if(ge==$r)return se();if(ge==Vr)return se(Ue)}});return S.current=!1,_.current=v,E.current=!0,G({_k:y}),le&&(Y(j)||vt?Z():Ei(Z)),()=>{S.current=!0,re()}},[v]),Pt(()=>{let Z;function J(){const re=xe(f)?f(I().data):f;re&&Z!==-1&&(Z=setTimeout(ce,re))}function ce(){!I().error&&(u||C().isVisible())&&(d||C().isOnline())?se(On).then(J):J()}return J(),()=>{Z&&(clearTimeout(Z),Z=-1)}},[f,u,d,v]),k.useDebugValue(te),s&&Y(j)&&v){if(!Br&&vt)throw new Error("Fallback data is required when using Suspense in SSR.");M.current=t,A.current=n,S.current=!1;const Z=x[v];if(!Y(Z)){const J=Ee(Z);Mn(J)}if(Y($)){const J=se(On);Y(te)||(J.status="fulfilled",J.value=!0),Mn(J)}else throw $}return{mutate:Ee,get data(){return H.data=!0,te},get error(){return H.error=!0,$},get isValidating(){return H.isValidating=!0,Q},get isLoading(){return H.isLoading=!0,ee}}},Vi=Tt.defineProperty(Oi,"defaultValue",{value:qr}),Hi=Li($i);function Wi(e){return e&&!e.startsWith("/")?`/${e}`:e}function zi(e){return e&&!e.endsWith("/")?`${e}/`:e}function Bi(e){return e.startsWith("/")?e.substring(1,e.length):e}const Gi=e=>{const t=process.env.NEXT_PUBLIC_BASE_PATH;if(!t)return e;const n=Wi(t);return zi(n)+Bi(e)};function Ui(){const{data:e,error:t,isLoading:n,mutate:r}=Hi(Gi(process.env.NEXT_PUBLIC_PROFILE_ROUTE||"/auth/profile"),(...o)=>fetch(...o).then(s=>{if(!s.ok)throw new Error("Unauthorized");return s.status===204?null:s.json()}));return t?{user:null,isLoading:!1,error:t,invalidate:()=>r()}:e?{user:e,isLoading:!1,error:null,invalidate:()=>r()}:{user:e,isLoading:n,error:t,invalidate:()=>r()}}var Jr;(function(e){e.MISSING_SESSION="missing_session",e.MISSING_REFRESH_TOKEN="missing_refresh_token",e.FAILED_TO_REFRESH_TOKEN="failed_to_refresh_token"})(Jr||(Jr={}));var Qr;(function(e){e.MISSING_SESSION="missing_session",e.MISSING_REFRESH_TOKEN="missing_refresh_token",e.FAILED_TO_EXCHANGE="failed_to_exchange_refresh_token"})(Qr||(Qr={}));function Ki({user:e,children:t}){return k.createElement(Vi,{value:{fallback:{[process.env.NEXT_PUBLIC_PROFILE_ROUTE||"/auth/profile"]:e}}},t)}/**
38
+ */var Jr;function sc(){return Jr||(Jr=1,process.env.NODE_ENV!=="production"&&function(){function e(h,b){return h===b&&(h!==0||1/h===1/b)||h!==h&&b!==b}function t(h,b){d||o.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var g=b();if(!f){var x=b();a(g,x)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}x=s({inst:{value:g,getSnapshot:b}});var v=x[0].inst,w=x[1];return l(function(){v.value=g,v.getSnapshot=b,n(v)&&w({inst:v})},[h,g,b]),i(function(){return n(v)&&w({inst:v}),h(function(){n(v)&&w({inst:v})})},[h]),p(g),g}function n(h){var b=h.getSnapshot;h=h.value;try{var g=b();return!a(h,g)}catch{return!0}}function r(h,b){return b()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=I,a=typeof Object.is=="function"?Object.is:e,s=o.useState,i=o.useEffect,l=o.useLayoutEffect,p=o.useDebugValue,d=!1,f=!1,m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;wn.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:m,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),wn}var Qr;function ic(){return Qr||(Qr=1,process.env.NODE_ENV==="production"?Dt.exports=ac():Dt.exports=sc()),Dt.exports}var cc=ic();const eo=0,to=1,no=2,ro=3;var oo=Object.prototype.hasOwnProperty;function yn(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&yn(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(oo.call(e,n)&&++r&&!oo.call(t,n)||!(n in t)||!yn(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}const Oe=new WeakMap,Ve=()=>{},de=Ve(),It=Object,q=e=>e===de,we=e=>typeof e=="function",ke=(e,t)=>({...e,...t}),ao=e=>we(e.then),Cn={},jt={},Sn="undefined",vt=typeof window!=Sn,En=typeof document!=Sn,lc=vt&&"Deno"in window,uc=()=>vt&&typeof window.requestAnimationFrame!=Sn,so=(e,t)=>{const n=Oe.get(e);return[()=>!q(t)&&e.get(t)||Cn,r=>{if(!q(t)){const o=e.get(t);t in jt||(jt[t]=o),n[5](t,ke(o,r),o||Cn)}},n[6],()=>!q(t)&&t in jt?jt[t]:!q(t)&&e.get(t)||Cn]};let _n=!0;const dc=()=>_n,[Rn,Mn]=vt&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Ve,Ve],fc=()=>{const e=En&&document.visibilityState;return q(e)||e!=="hidden"},pc=e=>(En&&document.addEventListener("visibilitychange",e),Rn("focus",e),()=>{En&&document.removeEventListener("visibilitychange",e),Mn("focus",e)}),mc=e=>{const t=()=>{_n=!0,e()},n=()=>{_n=!1};return Rn("online",t),Rn("offline",n),()=>{Mn("online",t),Mn("offline",n)}},hc={isOnline:dc,isVisible:fc},gc={initFocus:pc,initReconnect:mc},io=!I.useId,bt=!vt||lc,vc=e=>uc()?window.requestAnimationFrame(e):setTimeout(e,1),Lt=bt?I.useEffect:I.useLayoutEffect,An=typeof navigator<"u"&&navigator.connection,co=!bt&&An&&(["slow-2g","2g"].includes(An.effectiveType)||An.saveData),Ft=new WeakMap,Nn=(e,t)=>It.prototype.toString.call(e)===`[object ${t}]`;let bc=0;const Tn=e=>{const t=typeof e,n=Nn(e,"Date"),r=Nn(e,"RegExp"),o=Nn(e,"Object");let a,s;if(It(e)===e&&!n&&!r){if(a=Ft.get(e),a)return a;if(a=++bc+"~",Ft.set(e,a),Array.isArray(e)){for(a="@",s=0;s<e.length;s++)a+=Tn(e[s])+",";Ft.set(e,a)}if(o){a="#";const i=It.keys(e).sort();for(;!q(s=i.pop());)q(e[s])||(a+=s+":"+Tn(e[s])+",");Ft.set(e,a)}}else a=n?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return a},On=e=>{if(we(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Tn(e):"",[e,t]};let xc=0;const kn=()=>++xc;async function lo(...e){const[t,n,r,o]=e,a=ke({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let s=a.populateCache;const i=a.rollbackOnError;let l=a.optimisticData;const p=m=>typeof i=="function"?i(m):i!==!1,d=a.throwOnError;if(we(n)){const m=n,h=[],b=t.keys();for(const g of b)!/^\$(inf|sub)\$/.test(g)&&m(t.get(g)._k)&&h.push(g);return Promise.all(h.map(f))}return f(n);async function f(m){const[h]=On(m);if(!h)return;const[b,g]=so(t,h),[x,v,w,S]=Oe.get(t),E=()=>{const z=x[h];return(we(a.revalidate)?a.revalidate(b().data,m):a.revalidate!==!1)&&(delete w[h],delete S[h],z&&z[0])?z[0](no).then(()=>b().data):b().data};if(e.length<3)return E();let _=r,N;const M=kn();v[h]=[M,0];const C=!q(l),j=b(),L=j.data,U=j._c,B=q(U)?L:U;if(C&&(l=we(l)?l(B,L):l,g({data:l,_c:B})),we(_))try{_=_(B)}catch(z){N=z}if(_&&ao(_))if(_=await _.catch(z=>{N=z}),M!==v[h][0]){if(N)throw N;return _}else N&&C&&p(N)&&(s=!0,g({data:B,_c:de}));if(s&&!N)if(we(s)){const z=s(_,B);g({data:z,error:de,_c:de})}else g({data:_,error:de,_c:de});if(v[h][1]=kn(),Promise.resolve(E()).then(()=>{g({_c:de})}),N){if(d)throw N;return}return _}}const uo=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},fo=(e,t)=>{if(!Oe.has(e)){const n=ke(gc,t),r=Object.create(null),o=lo.bind(de,e);let a=Ve;const s=Object.create(null),i=(d,f)=>{const m=s[d]||[];return s[d]=m,m.push(f),()=>m.splice(m.indexOf(f),1)},l=(d,f,m)=>{e.set(d,f);const h=s[d];if(h)for(const b of h)b(f,m)},p=()=>{if(!Oe.has(e)&&(Oe.set(e,[r,Object.create(null),Object.create(null),Object.create(null),o,l,i]),!bt)){const d=n.initFocus(setTimeout.bind(de,uo.bind(de,r,eo))),f=n.initReconnect(setTimeout.bind(de,uo.bind(de,r,to)));a=()=>{d&&d(),f&&f(),Oe.delete(e)}}};return p(),[e,o,p,a]}return[e,Oe.get(e)[4]]},wc=(e,t,n,r,o)=>{const a=n.errorRetryCount,s=o.retryCount,i=~~((Math.random()+.5)*(1<<(s<8?s:8)))*n.errorRetryInterval;!q(a)&&s>a||setTimeout(r,i,o)},yc=yn,[Pn,Cc]=fo(new Map),po=ke({onLoadingSlow:Ve,onSuccess:Ve,onError:Ve,onErrorRetry:wc,onDiscarded:Ve,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:co?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:co?5e3:3e3,compare:yc,isPaused:()=>!1,cache:Pn,mutate:Cc,fallback:{}},hc),mo=(e,t)=>{const n=ke(e,t);if(t){const{use:r,fallback:o}=e,{use:a,fallback:s}=t;r&&a&&(n.use=r.concat(a)),o&&s&&(n.fallback=ke(o,s))}return n},Dn=I.createContext({}),Sc=e=>{const{value:t}=e,n=I.useContext(Dn),r=we(t),o=I.useMemo(()=>r?t(n):t,[r,n,t]),a=I.useMemo(()=>r?o:mo(n,o),[r,n,o]),s=o&&o.provider,i=I.useRef(de);s&&!i.current&&(i.current=fo(s(a.cache||Pn),o));const l=i.current;return l&&(a.cache=l[0],a.mutate=l[1]),Lt(()=>{if(l)return l[2]&&l[2](),l[3]},[]),I.createElement(Dn.Provider,ke(e,{value:a}))},Ec="$inf$",ho=vt&&window.__SWR_DEVTOOLS_USE__,_c=ho?window.__SWR_DEVTOOLS_USE__:[],Rc=()=>{ho&&(window.__SWR_DEVTOOLS_REACT__=I)},Mc=e=>we(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],Ac=()=>ke(po,I.useContext(Dn)),Nc=e=>(t,n,r)=>e(t,n&&((...a)=>{const[s]=On(t),[,,,i]=Oe.get(Pn);if(s.startsWith(Ec))return n(...a);const l=i[s];return q(l)?n(...a):(delete i[s],l)}),r),Tc=_c.concat(Nc),Oc=e=>function(...n){const r=Ac(),[o,a,s]=Mc(n),i=mo(r,s);let l=e;const{use:p}=i,d=(p||[]).concat(Tc);for(let f=d.length;f--;)l=d[f](l);return l(o,a||i.fetcher||null,i)},kc=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o>=0&&(r[o]=r[r.length-1],r.pop())}};Rc();const In=I.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),jn={dedupe:!0},Pc=(e,t,n)=>{const{cache:r,compare:o,suspense:a,fallbackData:s,revalidateOnMount:i,revalidateIfStale:l,refreshInterval:p,refreshWhenHidden:d,refreshWhenOffline:f,keepPreviousData:m}=n,[h,b,g,x]=Oe.get(r),[v,w]=On(e),S=I.useRef(!1),E=I.useRef(!1),_=I.useRef(v),N=I.useRef(t),M=I.useRef(n),C=()=>M.current,j=()=>C().isVisible()&&C().isOnline(),[L,U,B,z]=so(r,v),W=I.useRef({}).current,X=q(s)?q(n.fallback)?de:n.fallback[v]:s,V=(J,Q)=>{for(const le in W){const oe=le;if(oe==="data"){if(!o(J[oe],Q[oe])&&(!q(J[oe])||!o(ne,Q[oe])))return!1}else if(Q[oe]!==J[oe])return!1}return!0},K=I.useMemo(()=>{const J=!v||!t?!1:q(i)?C().isPaused()||a?!1:l!==!1:i,Q=me=>{const Fe=ke(me);return delete Fe._k,J?{isValidating:!0,isLoading:!0,...Fe}:Fe},le=L(),oe=z(),ve=Q(le),Ye=le===oe?ve:Q(oe);let ae=ve;return[()=>{const me=Q(L());return V(me,ae)?(ae.data=me.data,ae.isLoading=me.isLoading,ae.isValidating=me.isValidating,ae.error=me.error,ae):(ae=me,me)},()=>Ye]},[r,v]),R=cc.useSyncExternalStore(I.useCallback(J=>B(v,(Q,le)=>{V(le,Q)||J()}),[r,v]),K[0],K[1]),T=!S.current,y=h[v]&&h[v].length>0,P=R.data,F=q(P)?X&&ao(X)?In(X):X:P,H=R.error,Z=I.useRef(F),ne=m?q(P)?q(Z.current)?F:Z.current:P:F,ue=y&&!q(H)?!1:T&&!q(i)?i:C().isPaused()?!1:a?q(F)?!1:l:q(F)||l,Y=!!(v&&t&&T&&ue),ee=q(R.isValidating)?Y:R.isValidating,te=q(R.isLoading)?Y:R.isLoading,se=I.useCallback(async J=>{const Q=N.current;if(!v||!Q||E.current||C().isPaused())return!1;let le,oe,ve=!0;const Ye=J||{},ae=!g[v]||!Ye.dedupe,me=()=>io?!E.current&&v===_.current&&S.current:v===_.current,Fe={isValidating:!1,isLoading:!1},Qi=()=>{U(Fe)},ec=()=>{const xe=g[v];xe&&xe[1]===oe&&delete g[v]},tc={isValidating:!0};q(L().data)&&(tc.isLoading=!0);try{if(ae&&(U(tc),n.loadingTimeout&&q(L().data)&&setTimeout(()=>{ve&&me()&&C().onLoadingSlow(v,n)},n.loadingTimeout),g[v]=[Q(w),kn()]),[le,oe]=g[v],le=await le,ae&&setTimeout(ec,n.dedupingInterval),!g[v]||g[v][1]!==oe)return ae&&me()&&C().onDiscarded(v),!1;Fe.error=de;const xe=b[v];if(!q(xe)&&(oe<=xe[0]||oe<=xe[1]||xe[1]===0))return Qi(),ae&&me()&&C().onDiscarded(v),!1;const $e=L().data;Fe.data=o($e,le)?$e:le,ae&&me()&&C().onSuccess(le,v,n)}catch(xe){ec();const $e=C(),{shouldRetryOnError:Wr}=$e;$e.isPaused()||(Fe.error=xe,ae&&me()&&($e.onError(xe,v,$e),(Wr===!0||we(Wr)&&Wr(xe))&&(!C().revalidateOnFocus||!C().revalidateOnReconnect||j())&&$e.onErrorRetry(xe,v,$e,f0=>{const Gr=h[v];Gr&&Gr[0]&&Gr[0](ro,f0)},{retryCount:(Ye.retryCount||0)+1,dedupe:!0})))}return ve=!1,Qi(),!0},[v,r]),Ee=I.useCallback((...J)=>lo(r,_.current,...J),[]);if(Lt(()=>{N.current=t,M.current=n,q(P)||(Z.current=P)}),Lt(()=>{if(!v)return;const J=se.bind(de,jn);let Q=0;C().revalidateOnFocus&&(Q=Date.now()+C().focusThrottleInterval);const oe=kc(v,h,(ve,Ye={})=>{if(ve==eo){const ae=Date.now();C().revalidateOnFocus&&ae>Q&&j()&&(Q=ae+C().focusThrottleInterval,J())}else if(ve==to)C().revalidateOnReconnect&&j()&&J();else{if(ve==no)return se();if(ve==ro)return se(Ye)}});return E.current=!1,_.current=v,S.current=!0,U({_k:w}),ue&&(q(F)||bt?J():vc(J)),()=>{E.current=!0,oe()}},[v]),Lt(()=>{let J;function Q(){const oe=we(p)?p(L().data):p;oe&&J!==-1&&(J=setTimeout(le,oe))}function le(){!L().error&&(d||C().isVisible())&&(f||C().isOnline())?se(jn).then(Q):Q()}return Q(),()=>{J&&(clearTimeout(J),J=-1)}},[p,d,f,v]),I.useDebugValue(ne),a&&q(F)&&v){if(!io&&bt)throw new Error("Fallback data is required when using Suspense in SSR.");N.current=t,M.current=n,E.current=!1;const J=x[v];if(!q(J)){const Q=Ee(J);In(Q)}if(q(H)){const Q=se(jn);q(ne)||(Q.status="fulfilled",Q.value=!0),In(Q)}else throw H}return{mutate:Ee,get data(){return W.data=!0,ne},get error(){return W.error=!0,H},get isValidating(){return W.isValidating=!0,ee},get isLoading(){return W.isLoading=!0,te}}},Dc=It.defineProperty(Sc,"defaultValue",{value:po}),Ic=Oc(Pc);function jc(e){return e&&!e.startsWith("/")?`/${e}`:e}function Lc(e){return e&&!e.endsWith("/")?`${e}/`:e}function Fc(e){return e.startsWith("/")?e.substring(1,e.length):e}const $c=e=>{const t=process.env.NEXT_PUBLIC_BASE_PATH;if(!t)return e;const n=jc(t);return Lc(n)+Fc(e)};function Vc(){const{data:e,error:t,isLoading:n,mutate:r}=Ic($c(process.env.NEXT_PUBLIC_PROFILE_ROUTE||"/auth/profile"),(...o)=>fetch(...o).then(a=>{if(!a.ok)throw new Error("Unauthorized");return a.status===204?null:a.json()}));return t?{user:null,isLoading:!1,error:t,invalidate:()=>r()}:e?{user:e,isLoading:!1,error:null,invalidate:()=>r()}:{user:e,isLoading:n,error:t,invalidate:()=>r()}}var go;(function(e){e.MISSING_SESSION="missing_session",e.MISSING_REFRESH_TOKEN="missing_refresh_token",e.FAILED_TO_REFRESH_TOKEN="failed_to_refresh_token"})(go||(go={}));var vo;(function(e){e.MISSING_SESSION="missing_session",e.MISSING_REFRESH_TOKEN="missing_refresh_token",e.FAILED_TO_EXCHANGE="failed_to_exchange_refresh_token"})(vo||(vo={}));function Hc({user:e,children:t}){return I.createElement(Dc,{value:{fallback:{[process.env.NEXT_PUBLIC_PROFILE_ROUTE||"/auth/profile"]:e}}},t)}/**
39
39
  * @license lucide-react v0.522.0 - ISC
40
40
  *
41
41
  * This source code is licensed under the ISC license.
42
42
  * See the LICENSE file in the root directory of this source tree.
43
- */const Yi=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),qi=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),eo=e=>{const t=qi(e);return t.charAt(0).toUpperCase()+t.slice(1)},to=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Xi=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
43
+ */const zc=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Wc=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),bo=e=>{const t=Wc(e);return t.charAt(0).toUpperCase()+t.slice(1)},xo=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Gc=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
44
44
  * @license lucide-react v0.522.0 - ISC
45
45
  *
46
46
  * This source code is licensed under the ISC license.
47
47
  * See the LICENSE file in the root directory of this source tree.
48
- */var Zi={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
48
+ */var Bc={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
49
49
  * @license lucide-react v0.522.0 - ISC
50
50
  *
51
51
  * This source code is licensed under the ISC license.
52
52
  * See the LICENSE file in the root directory of this source tree.
53
- */const Ji=k.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:a,...i},c)=>k.createElement("svg",{ref:c,...Zi,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:to("lucide",o),...!s&&!Xi(i)&&{"aria-hidden":"true"},...i},[...a.map(([f,u])=>k.createElement(f,u)),...Array.isArray(s)?s:[s]]));/**
53
+ */const Uc=I.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:s,...i},l)=>I.createElement("svg",{ref:l,...Bc,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:xo("lucide",o),...!a&&!Gc(i)&&{"aria-hidden":"true"},...i},[...s.map(([p,d])=>I.createElement(p,d)),...Array.isArray(a)?a:[a]]));/**
54
54
  * @license lucide-react v0.522.0 - ISC
55
55
  *
56
56
  * This source code is licensed under the ISC license.
57
57
  * See the LICENSE file in the root directory of this source tree.
58
- */const pe=(e,t)=>{const n=k.forwardRef(({className:r,...o},s)=>k.createElement(Ji,{ref:s,iconNode:t,className:to(`lucide-${Yi(eo(e))}`,`lucide-${e}`,r),...o}));return n.displayName=eo(e),n};/**
58
+ */const fe=(e,t)=>{const n=I.forwardRef(({className:r,...o},a)=>I.createElement(Uc,{ref:a,iconNode:t,className:xo(`lucide-${zc(bo(e))}`,`lucide-${e}`,r),...o}));return n.displayName=bo(e),n};/**
59
59
  * @license lucide-react v0.522.0 - ISC
60
60
  *
61
61
  * This source code is licensed under the ISC license.
62
62
  * See the LICENSE file in the root directory of this source tree.
63
- */const Qi=pe("book-open-text",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M16 12h2",key:"7q9ll5"}],["path",{d:"M16 8h2",key:"msurwy"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}],["path",{d:"M6 12h2",key:"32wvfc"}],["path",{d:"M6 8h2",key:"30oboj"}]]);/**
63
+ */const Kc=fe("book-open-text",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M16 12h2",key:"7q9ll5"}],["path",{d:"M16 8h2",key:"msurwy"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}],["path",{d:"M6 12h2",key:"32wvfc"}],["path",{d:"M6 8h2",key:"30oboj"}]]);/**
64
64
  * @license lucide-react v0.522.0 - ISC
65
65
  *
66
66
  * This source code is licensed under the ISC license.
67
67
  * See the LICENSE file in the root directory of this source tree.
68
- */const ec=pe("calendar-sync",[["path",{d:"M11 10v4h4",key:"172dkj"}],["path",{d:"m11 14 1.535-1.605a5 5 0 0 1 8 1.5",key:"vu0qm5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"m21 18-1.535 1.605a5 5 0 0 1-8-1.5",key:"1qgeyt"}],["path",{d:"M21 22v-4h-4",key:"hrummi"}],["path",{d:"M21 8.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h4.3",key:"mctw84"}],["path",{d:"M3 10h4",key:"1el30a"}],["path",{d:"M8 2v4",key:"1cmpym"}]]);/**
68
+ */const Yc=fe("calendar-sync",[["path",{d:"M11 10v4h4",key:"172dkj"}],["path",{d:"m11 14 1.535-1.605a5 5 0 0 1 8 1.5",key:"vu0qm5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"m21 18-1.535 1.605a5 5 0 0 1-8-1.5",key:"1qgeyt"}],["path",{d:"M21 22v-4h-4",key:"hrummi"}],["path",{d:"M21 8.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h4.3",key:"mctw84"}],["path",{d:"M3 10h4",key:"1el30a"}],["path",{d:"M8 2v4",key:"1cmpym"}]]);/**
69
69
  * @license lucide-react v0.522.0 - ISC
70
70
  *
71
71
  * This source code is licensed under the ISC license.
72
72
  * See the LICENSE file in the root directory of this source tree.
73
- */const Qe=pe("chart-area",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 11.207a.5.5 0 0 1 .146-.353l2-2a.5.5 0 0 1 .708 0l3.292 3.292a.5.5 0 0 0 .708 0l4.292-4.292a.5.5 0 0 1 .854.353V16a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1z",key:"q0gr47"}]]);/**
73
+ */const et=fe("chart-area",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 11.207a.5.5 0 0 1 .146-.353l2-2a.5.5 0 0 1 .708 0l3.292 3.292a.5.5 0 0 0 .708 0l4.292-4.292a.5.5 0 0 1 .854.353V16a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1z",key:"q0gr47"}]]);/**
74
74
  * @license lucide-react v0.522.0 - ISC
75
75
  *
76
76
  * This source code is licensed under the ISC license.
77
77
  * See the LICENSE file in the root directory of this source tree.
78
- */const tc=pe("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
78
+ */const qc=fe("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
79
79
  * @license lucide-react v0.522.0 - ISC
80
80
  *
81
81
  * This source code is licensed under the ISC license.
82
82
  * See the LICENSE file in the root directory of this source tree.
83
- */const no=pe("chart-line",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]]);/**
83
+ */const wo=fe("chart-line",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]]);/**
84
84
  * @license lucide-react v0.522.0 - ISC
85
85
  *
86
86
  * This source code is licensed under the ISC license.
87
87
  * See the LICENSE file in the root directory of this source tree.
88
- */const nc=pe("chart-pie",[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]]);/**
88
+ */const Xc=fe("chart-pie",[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]]);/**
89
89
  * @license lucide-react v0.522.0 - ISC
90
90
  *
91
91
  * This source code is licensed under the ISC license.
92
92
  * See the LICENSE file in the root directory of this source tree.
93
- */const rc=pe("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
93
+ */const Zc=fe("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
94
94
  * @license lucide-react v0.522.0 - ISC
95
95
  *
96
96
  * This source code is licensed under the ISC license.
97
97
  * See the LICENSE file in the root directory of this source tree.
98
- */const oc=pe("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
98
+ */const Jc=fe("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
99
99
  * @license lucide-react v0.522.0 - ISC
100
100
  *
101
101
  * This source code is licensed under the ISC license.
102
102
  * See the LICENSE file in the root directory of this source tree.
103
- */const sc=pe("circle-dollar-sign",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]]);/**
103
+ */const yo=fe("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
104
104
  * @license lucide-react v0.522.0 - ISC
105
105
  *
106
106
  * This source code is licensed under the ISC license.
107
107
  * See the LICENSE file in the root directory of this source tree.
108
- */const ro=pe("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
108
+ */const Qc=fe("circle-dollar-sign",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]]);/**
109
109
  * @license lucide-react v0.522.0 - ISC
110
110
  *
111
111
  * This source code is licensed under the ISC license.
112
112
  * See the LICENSE file in the root directory of this source tree.
113
- */const ac=pe("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]);/**
113
+ */const el=fe("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
114
114
  * @license lucide-react v0.522.0 - ISC
115
115
  *
116
116
  * This source code is licensed under the ISC license.
117
117
  * See the LICENSE file in the root directory of this source tree.
118
- */const ic=pe("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
118
+ */const Co=fe("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
119
119
  * @license lucide-react v0.522.0 - ISC
120
120
  *
121
121
  * This source code is licensed under the ISC license.
122
122
  * See the LICENSE file in the root directory of this source tree.
123
- */const oo=pe("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
123
+ */const tl=fe("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]);/**
124
124
  * @license lucide-react v0.522.0 - ISC
125
125
  *
126
126
  * This source code is licensed under the ISC license.
127
127
  * See the LICENSE file in the root directory of this source tree.
128
- */const cc=pe("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function so(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Dt(...e){return t=>{let n=!1;const r=e.map(o=>{const s=so(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():so(e[o],null)}}}}function ae(...e){return l.useCallback(Dt(...e),e)}function et(e){const t=lc(e),n=l.forwardRef((r,o)=>{const{children:s,...a}=r,i=l.Children.toArray(s),c=i.find(dc);if(c){const f=c.props.children,u=i.map(d=>d===c?l.Children.count(f)>1?l.Children.only(null):l.isValidElement(f)?f.props.children:null:d);return p.jsx(t,{...a,ref:o,children:l.isValidElement(f)?l.cloneElement(f,void 0,u):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var ao=et("Slot");function lc(e){const t=l.forwardRef((n,r)=>{const{children:o,...s}=n;if(l.isValidElement(o)){const a=pc(o),i=fc(s,o.props);return o.type!==l.Fragment&&(i.ref=r?Dt(r,a):a),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var io=Symbol("radix.slottable");function uc(e){const t=({children:n})=>p.jsx(p.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=io,t}function dc(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===io}function fc(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const c=s(...i);return o(...i),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function pc(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)}function co(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=co(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function lo(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=co(e))&&(r&&(r+=" "),r+=t);return r}const uo=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,fo=lo,po=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return fo(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,a=Object.keys(o).map(f=>{const u=n==null?void 0:n[f],d=s==null?void 0:s[f];if(u===null)return null;const m=uo(u)||uo(d);return o[f][m]}),i=n&&Object.entries(n).reduce((f,u)=>{let[d,m]=u;return m===void 0||(f[d]=m),f},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((f,u)=>{let{class:d,className:m,...g}=u;return Object.entries(g).every(b=>{let[h,x]=b;return Array.isArray(x)?x.includes({...s,...i}[h]):{...s,...i}[h]===x})?[...f,d,m]:f},[]);return fo(e,a,c,n==null?void 0:n.class,n==null?void 0:n.className)};function mc(){const[e,t]=k.useState(!1);return k.useEffect(()=>{const n=()=>{t(window.innerWidth<768)};return n(),window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[]),e}const Tn="-",hc=e=>{const t=vc(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const i=a.split(Tn);return i[0]===""&&i.length!==1&&i.shift(),mo(i,t)||gc(a)},getConflictingClassGroupIds:(a,i)=>{const c=n[a]||[];return i&&r[a]?[...c,...r[a]]:c}}},mo=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?mo(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(Tn);return(a=t.validators.find(({validator:i})=>i(s)))==null?void 0:a.classGroupId},ho=/^\[(.+)\]$/,gc=e=>{if(ho.test(e)){const t=ho.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},vc=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)Nn(n[o],r,o,t);return r},Nn=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:go(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(bc(o)){Nn(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,a])=>{Nn(a,go(t,s),n,r)})})},go=(e,t)=>{let n=e;return t.split(Tn).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},bc=e=>e.isThemeGetter,xc=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,a)=>{n.set(s,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return o(s,a),a},set(s,a){n.has(s)?n.set(s,a):o(s,a)}}},Pn="!",kn=":",wc=kn.length,yc=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let a=0,i=0,c=0,f;for(let b=0;b<o.length;b++){let h=o[b];if(a===0&&i===0){if(h===kn){s.push(o.slice(c,b)),c=b+wc;continue}if(h==="/"){f=b;continue}}h==="["?a++:h==="]"?a--:h==="("?i++:h===")"&&i--}const u=s.length===0?o:o.substring(c),d=Cc(u),m=d!==u,g=f&&f>c?f-c:void 0;return{modifiers:s,hasImportantModifier:m,baseClassName:d,maybePostfixModifierPosition:g}};if(t){const o=t+kn,s=r;r=a=>a.startsWith(o)?s(a.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:a,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},Cc=e=>e.endsWith(Pn)?e.substring(0,e.length-1):e.startsWith(Pn)?e.substring(1):e,Ec=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let s=[];return r.forEach(a=>{a[0]==="["||t[a]?(o.push(...s.sort(),a),s=[]):s.push(a)}),o.push(...s.sort()),o}},Sc=e=>({cache:xc(e.cacheSize),parseClassName:yc(e),sortModifiers:Ec(e),...hc(e)}),Rc=/\s+/,_c=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,a=[],i=e.trim().split(Rc);let c="";for(let f=i.length-1;f>=0;f-=1){const u=i[f],{isExternal:d,modifiers:m,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:h}=n(u);if(d){c=u+(c.length>0?" "+c:c);continue}let x=!!h,v=r(x?b.substring(0,h):b);if(!v){if(!x){c=u+(c.length>0?" "+c:c);continue}if(v=r(b),!v){c=u+(c.length>0?" "+c:c);continue}x=!1}const y=s(m).join(":"),E=g?y+Pn:y,S=E+v;if(a.includes(S))continue;a.push(S);const _=o(v,x);for(let M=0;M<_.length;++M){const A=_[M];a.push(E+A)}c=u+(c.length>0?" "+c:c)}return c};function Ac(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=vo(t))&&(r&&(r+=" "),r+=n);return r}const vo=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=vo(e[r]))&&(n&&(n+=" "),n+=t);return n};function Mc(e,...t){let n,r,o,s=a;function a(c){const f=t.reduce((u,d)=>d(u),e());return n=Sc(f),r=n.cache.get,o=n.cache.set,s=i,i(c)}function i(c){const f=r(c);if(f)return f;const u=_c(c,n);return o(c,u),u}return function(){return s(Ac.apply(null,arguments))}}const ie=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},bo=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,xo=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Oc=/^\d+\/\d+$/,Tc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Nc=/\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$/,Pc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,kc=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Dc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,tt=e=>Oc.test(e),W=e=>!!e&&!Number.isNaN(Number(e)),Ve=e=>!!e&&Number.isInteger(Number(e)),Dn=e=>e.endsWith("%")&&W(e.slice(0,-1)),Ne=e=>Tc.test(e),Ic=()=>!0,jc=e=>Nc.test(e)&&!Pc.test(e),wo=()=>!1,Lc=e=>kc.test(e),Fc=e=>Dc.test(e),$c=e=>!T(e)&&!N(e),Vc=e=>nt(e,Ro,wo),T=e=>bo.test(e),Ke=e=>nt(e,_o,jc),In=e=>nt(e,Gc,W),yo=e=>nt(e,Eo,wo),Hc=e=>nt(e,So,Fc),It=e=>nt(e,Ao,Lc),N=e=>xo.test(e),bt=e=>rt(e,_o),Wc=e=>rt(e,Uc),Co=e=>rt(e,Eo),zc=e=>rt(e,Ro),Bc=e=>rt(e,So),jt=e=>rt(e,Ao,!0),nt=(e,t,n)=>{const r=bo.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},rt=(e,t,n=!1)=>{const r=xo.exec(e);return r?r[1]?t(r[1]):n:!1},Eo=e=>e==="position"||e==="percentage",So=e=>e==="image"||e==="url",Ro=e=>e==="length"||e==="size"||e==="bg-size",_o=e=>e==="length",Gc=e=>e==="number",Uc=e=>e==="family-name",Ao=e=>e==="shadow",Kc=Mc(()=>{const e=ie("color"),t=ie("font"),n=ie("text"),r=ie("font-weight"),o=ie("tracking"),s=ie("leading"),a=ie("breakpoint"),i=ie("container"),c=ie("spacing"),f=ie("radius"),u=ie("shadow"),d=ie("inset-shadow"),m=ie("text-shadow"),g=ie("drop-shadow"),b=ie("blur"),h=ie("perspective"),x=ie("aspect"),v=ie("ease"),y=ie("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],_=()=>[...S(),N,T],M=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],C=()=>[N,T,c],D=()=>[tt,"full","auto",...C()],I=()=>[Ve,"none","subgrid",N,T],G=()=>["auto",{span:["full",Ve,N,T]},Ve,N,T],z=()=>[Ve,"auto",N,T],V=()=>["auto","min","max","fr",N,T],H=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],q=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...C()],U=()=>[tt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],R=()=>[e,N,T],O=()=>[...S(),Co,yo,{position:[N,T]}],w=()=>["no-repeat",{repeat:["","x","y","space","round"]}],P=()=>["auto","cover","contain",zc,Vc,{size:[N,T]}],j=()=>[Dn,bt,Ke],$=()=>["","none","full",f,N,T],X=()=>["",W,bt,Ke],te=()=>["solid","dashed","dotted","double"],le=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>[W,Dn,Co,yo],Q=()=>["","none",b,N,T],ee=()=>["none",W,N,T],se=()=>["none",W,N,T],Ee=()=>[W,N,T],Ge=()=>[tt,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ne],breakpoint:[Ne],color:[Ic],container:[Ne],"drop-shadow":[Ne],ease:["in","out","in-out"],font:[$c],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ne],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ne],shadow:[Ne],spacing:["px",W],text:[Ne],"text-shadow":[Ne],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",tt,T,N,x]}],container:["container"],columns:[{columns:[W,T,N,i]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"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:_()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{start:D()}],end:[{end:D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[Ve,"auto",N,T]}],basis:[{basis:[tt,"full","auto",i,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[W,tt,"auto","initial","none",T]}],grow:[{grow:["",W,N,T]}],shrink:[{shrink:["",W,N,T]}],order:[{order:[Ve,"first","last","none",N,T]}],"grid-cols":[{"grid-cols":I()}],"col-start-end":[{col:G()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":I()}],"row-start-end":[{row:G()}],"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":V()}],"auto-rows":[{"auto-rows":V()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...H(),"normal"]}],"justify-items":[{"justify-items":[...q(),"normal"]}],"justify-self":[{"justify-self":["auto",...q()]}],"align-content":[{content:["normal",...H()]}],"align-items":[{items:[...q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...q(),{baseline:["","last"]}]}],"place-content":[{"place-content":H()}],"place-items":[{"place-items":[...q(),"baseline"]}],"place-self":[{"place-self":["auto",...q()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:U()}],w:[{w:[i,"screen",...U()]}],"min-w":[{"min-w":[i,"screen","none",...U()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[a]},...U()]}],h:[{h:["screen","lh",...U()]}],"min-h":[{"min-h":["screen","lh","none",...U()]}],"max-h":[{"max-h":["screen","lh",...U()]}],"font-size":[{text:["base",n,bt,Ke]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,N,In]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Dn,T]}],"font-family":[{font:[Wc,T,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,N,T]}],"line-clamp":[{"line-clamp":[W,"none",N,In]}],leading:[{leading:[s,...C()]}],"list-image":[{"list-image":["none",N,T]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",N,T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...te(),"wavy"]}],"text-decoration-thickness":[{decoration:[W,"from-font","auto",N,Ke]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[W,"auto",N,T]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",N,T]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",N,T]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:O()}],"bg-repeat":[{bg:w()}],"bg-size":[{bg:P()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ve,N,T],radial:["",N,T],conic:[Ve,N,T]},Bc,Hc]}],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:j()}],"gradient-via-pos":[{via:j()}],"gradient-to-pos":[{to:j()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],rounded:[{rounded:$()}],"rounded-s":[{"rounded-s":$()}],"rounded-e":[{"rounded-e":$()}],"rounded-t":[{"rounded-t":$()}],"rounded-r":[{"rounded-r":$()}],"rounded-b":[{"rounded-b":$()}],"rounded-l":[{"rounded-l":$()}],"rounded-ss":[{"rounded-ss":$()}],"rounded-se":[{"rounded-se":$()}],"rounded-ee":[{"rounded-ee":$()}],"rounded-es":[{"rounded-es":$()}],"rounded-tl":[{"rounded-tl":$()}],"rounded-tr":[{"rounded-tr":$()}],"rounded-br":[{"rounded-br":$()}],"rounded-bl":[{"rounded-bl":$()}],"border-w":[{border:X()}],"border-w-x":[{"border-x":X()}],"border-w-y":[{"border-y":X()}],"border-w-s":[{"border-s":X()}],"border-w-e":[{"border-e":X()}],"border-w-t":[{"border-t":X()}],"border-w-r":[{"border-r":X()}],"border-w-b":[{"border-b":X()}],"border-w-l":[{"border-l":X()}],"divide-x":[{"divide-x":X()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":X()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...te(),"hidden","none"]}],"divide-style":[{divide:[...te(),"hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:[...te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[W,N,T]}],"outline-w":[{outline:["",W,bt,Ke]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",u,jt,It]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",d,jt,It]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[W,Ke]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":X()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",m,jt,It]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[W,N,T]}],"mix-blend":[{"mix-blend":[...le(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":le()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[W]}],"mask-image-linear-from-pos":[{"mask-linear-from":K()}],"mask-image-linear-to-pos":[{"mask-linear-to":K()}],"mask-image-linear-from-color":[{"mask-linear-from":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"mask-image-t-from-pos":[{"mask-t-from":K()}],"mask-image-t-to-pos":[{"mask-t-to":K()}],"mask-image-t-from-color":[{"mask-t-from":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"mask-image-r-from-pos":[{"mask-r-from":K()}],"mask-image-r-to-pos":[{"mask-r-to":K()}],"mask-image-r-from-color":[{"mask-r-from":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"mask-image-b-from-pos":[{"mask-b-from":K()}],"mask-image-b-to-pos":[{"mask-b-to":K()}],"mask-image-b-from-color":[{"mask-b-from":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"mask-image-l-from-pos":[{"mask-l-from":K()}],"mask-image-l-to-pos":[{"mask-l-to":K()}],"mask-image-l-from-color":[{"mask-l-from":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"mask-image-x-from-pos":[{"mask-x-from":K()}],"mask-image-x-to-pos":[{"mask-x-to":K()}],"mask-image-x-from-color":[{"mask-x-from":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"mask-image-y-from-pos":[{"mask-y-from":K()}],"mask-image-y-to-pos":[{"mask-y-to":K()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[N,T]}],"mask-image-radial-from-pos":[{"mask-radial-from":K()}],"mask-image-radial-to-pos":[{"mask-radial-to":K()}],"mask-image-radial-from-color":[{"mask-radial-from":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[W]}],"mask-image-conic-from-pos":[{"mask-conic-from":K()}],"mask-image-conic-to-pos":[{"mask-conic-to":K()}],"mask-image-conic-from-color":[{"mask-conic-from":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:O()}],"mask-repeat":[{mask:w()}],"mask-size":[{mask:P()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",N,T]}],filter:[{filter:["","none",N,T]}],blur:[{blur:Q()}],brightness:[{brightness:[W,N,T]}],contrast:[{contrast:[W,N,T]}],"drop-shadow":[{"drop-shadow":["","none",g,jt,It]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",W,N,T]}],"hue-rotate":[{"hue-rotate":[W,N,T]}],invert:[{invert:["",W,N,T]}],saturate:[{saturate:[W,N,T]}],sepia:[{sepia:["",W,N,T]}],"backdrop-filter":[{"backdrop-filter":["","none",N,T]}],"backdrop-blur":[{"backdrop-blur":Q()}],"backdrop-brightness":[{"backdrop-brightness":[W,N,T]}],"backdrop-contrast":[{"backdrop-contrast":[W,N,T]}],"backdrop-grayscale":[{"backdrop-grayscale":["",W,N,T]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[W,N,T]}],"backdrop-invert":[{"backdrop-invert":["",W,N,T]}],"backdrop-opacity":[{"backdrop-opacity":[W,N,T]}],"backdrop-saturate":[{"backdrop-saturate":[W,N,T]}],"backdrop-sepia":[{"backdrop-sepia":["",W,N,T]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",N,T]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[W,"initial",N,T]}],ease:[{ease:["linear","initial",v,N,T]}],delay:[{delay:[W,N,T]}],animate:[{animate:["none",y,N,T]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,N,T]}],"perspective-origin":[{"perspective-origin":_()}],rotate:[{rotate:ee()}],"rotate-x":[{"rotate-x":ee()}],"rotate-y":[{"rotate-y":ee()}],"rotate-z":[{"rotate-z":ee()}],scale:[{scale:se()}],"scale-x":[{"scale-x":se()}],"scale-y":[{"scale-y":se()}],"scale-z":[{"scale-z":se()}],"scale-3d":["scale-3d"],skew:[{skew:Ee()}],"skew-x":[{"skew-x":Ee()}],"skew-y":[{"skew-y":Ee()}],transform:[{transform:[N,T,"","none","gpu","cpu"]}],"transform-origin":[{origin:_()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ge()}],"translate-x":[{"translate-x":Ge()}],"translate-y":[{"translate-y":Ge()}],"translate-z":[{"translate-z":Ge()}],"translate-none":["translate-none"],accent:[{accent:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}],"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",N,T]}],"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":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"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",N,T]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[W,bt,Ke,In]}],stroke:[{stroke:["none",...R()]}],"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-x","border-w-y","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-x","border-color-y","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:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function B(...e){return Kc(lo(e))}const Yc=po("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),jn=l.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const a=r?ao:"button";return p.jsx(a,{className:B(Yc({variant:t,size:n,className:e})),ref:s,...o})});jn.displayName="Button";var qc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ne=qc.reduce((e,t)=>{const n=et(`Primitive.${t}`),r=l.forwardRef((o,s)=>{const{asChild:a,...i}=o,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(c,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Mo(e,t){e&&Tr.flushSync(()=>e.dispatchEvent(t))}var Xc="Separator",Oo="horizontal",Zc=["horizontal","vertical"],To=l.forwardRef((e,t)=>{const{decorative:n,orientation:r=Oo,...o}=e,s=Jc(r)?r:Oo,i=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return p.jsx(ne.div,{"data-orientation":s,...i,...o,ref:t})});To.displayName=Xc;function Jc(e){return Zc.includes(e)}var No=To;const Po=l.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>p.jsx(No,{ref:o,decorative:n,orientation:t,className:B("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));Po.displayName=No.displayName;function L(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 Qc(e,t){const n=l.createContext(t),r=s=>{const{children:a,...i}=s,c=l.useMemo(()=>i,Object.values(i));return p.jsx(n.Provider,{value:c,children:a})};r.displayName=e+"Provider";function o(s){const a=l.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function Ye(e,t=[]){let n=[];function r(s,a){const i=l.createContext(a),c=n.length;n=[...n,a];const f=d=>{var v;const{scope:m,children:g,...b}=d,h=((v=m==null?void 0:m[e])==null?void 0:v[c])||i,x=l.useMemo(()=>b,Object.values(b));return p.jsx(h.Provider,{value:x,children:g})};f.displayName=s+"Provider";function u(d,m){var h;const g=((h=m==null?void 0:m[e])==null?void 0:h[c])||i,b=l.useContext(g);if(b)return b;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[f,u]}const o=()=>{const s=n.map(a=>l.createContext(a));return function(i){const c=(i==null?void 0:i[e])||s;return l.useMemo(()=>({[`__scope${e}`]:{...i,[e]:c}}),[i,c])}};return o.scopeName=e,[r,el(o,...t)]}function el(...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(s){const a=r.reduce((i,{useScope:c,scopeName:f})=>{const d=c(s)[`__scope${f}`];return{...i,...d}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var He=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},tl=l[" useId ".trim().toString()]||(()=>{}),nl=0;function ot(e){const[t,n]=l.useState(tl());return He(()=>{n(r=>r??String(nl++))},[e]),e||(t?`radix-${t}`:"")}var rl=l[" useInsertionEffect ".trim().toString()]||He;function Ln({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,a]=ol({defaultProp:t,onChange:n}),i=e!==void 0,c=i?e:o;{const u=l.useRef(e!==void 0);l.useEffect(()=>{const d=u.current;d!==i&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=i},[i,r])}const f=l.useCallback(u=>{var d;if(i){const m=sl(u)?u(e):u;m!==e&&((d=a.current)==null||d.call(a,m))}else s(u)},[i,e,s,a]);return[c,f]}function ol({defaultProp:e,onChange:t}){const[n,r]=l.useState(e),o=l.useRef(n),s=l.useRef(t);return rl(()=>{s.current=t},[t]),l.useEffect(()=>{var a;o.current!==n&&((a=s.current)==null||a.call(s,n),o.current=n)},[n,o]),[n,r,s]}function sl(e){return typeof e=="function"}function Pe(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function al(e,t=globalThis==null?void 0:globalThis.document){const n=Pe(e);l.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 il="DismissableLayer",Fn="dismissableLayer.update",cl="dismissableLayer.pointerDownOutside",ll="dismissableLayer.focusOutside",ko,Do=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Lt=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:i,...c}=e,f=l.useContext(Do),[u,d]=l.useState(null),m=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=l.useState({}),b=ae(t,A=>d(A)),h=Array.from(f.layers),[x]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),v=h.indexOf(x),y=u?h.indexOf(u):-1,E=f.layersWithOutsidePointerEventsDisabled.size>0,S=y>=v,_=fl(A=>{const C=A.target,D=[...f.branches].some(I=>I.contains(C));!S||D||(o==null||o(A),a==null||a(A),A.defaultPrevented||i==null||i())},m),M=pl(A=>{const C=A.target;[...f.branches].some(I=>I.contains(C))||(s==null||s(A),a==null||a(A),A.defaultPrevented||i==null||i())},m);return al(A=>{y===f.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&i&&(A.preventDefault(),i()))},m),l.useEffect(()=>{if(u)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(ko=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(u)),f.layers.add(u),Io(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=ko)}},[u,m,n,f]),l.useEffect(()=>()=>{u&&(f.layers.delete(u),f.layersWithOutsidePointerEventsDisabled.delete(u),Io())},[u,f]),l.useEffect(()=>{const A=()=>g({});return document.addEventListener(Fn,A),()=>document.removeEventListener(Fn,A)},[]),p.jsx(ne.div,{...c,ref:b,style:{pointerEvents:E?S?"auto":"none":void 0,...e.style},onFocusCapture:L(e.onFocusCapture,M.onFocusCapture),onBlurCapture:L(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:L(e.onPointerDownCapture,_.onPointerDownCapture)})});Lt.displayName=il;var ul="DismissableLayerBranch",dl=l.forwardRef((e,t)=>{const n=l.useContext(Do),r=l.useRef(null),o=ae(t,r);return l.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),p.jsx(ne.div,{...e,ref:o})});dl.displayName=ul;function fl(e,t=globalThis==null?void 0:globalThis.document){const n=Pe(e),r=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const s=i=>{if(i.target&&!r.current){let c=function(){jo(cl,n,f,{discrete:!0})};const f={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function pl(e,t=globalThis==null?void 0:globalThis.document){const n=Pe(e),r=l.useRef(!1);return l.useEffect(()=>{const o=s=>{s.target&&!r.current&&jo(ll,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Io(){const e=new CustomEvent(Fn);document.dispatchEvent(e)}function jo(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Mo(o,s):o.dispatchEvent(s)}var $n="focusScope.autoFocusOnMount",Vn="focusScope.autoFocusOnUnmount",Lo={bubbles:!1,cancelable:!0},ml="FocusScope",Hn=l.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[i,c]=l.useState(null),f=Pe(o),u=Pe(s),d=l.useRef(null),m=ae(t,h=>c(h)),g=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let h=function(E){if(g.paused||!i)return;const S=E.target;i.contains(S)?d.current=S:We(d.current,{select:!0})},x=function(E){if(g.paused||!i)return;const S=E.relatedTarget;S!==null&&(i.contains(S)||We(d.current,{select:!0}))},v=function(E){if(document.activeElement===document.body)for(const _ of E)_.removedNodes.length>0&&We(i)};document.addEventListener("focusin",h),document.addEventListener("focusout",x);const y=new MutationObserver(v);return i&&y.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",x),y.disconnect()}}},[r,i,g.paused]),l.useEffect(()=>{if(i){Vo.add(g);const h=document.activeElement;if(!i.contains(h)){const v=new CustomEvent($n,Lo);i.addEventListener($n,f),i.dispatchEvent(v),v.defaultPrevented||(hl(wl(Fo(i)),{select:!0}),document.activeElement===h&&We(i))}return()=>{i.removeEventListener($n,f),setTimeout(()=>{const v=new CustomEvent(Vn,Lo);i.addEventListener(Vn,u),i.dispatchEvent(v),v.defaultPrevented||We(h??document.body,{select:!0}),i.removeEventListener(Vn,u),Vo.remove(g)},0)}}},[i,f,u,g]);const b=l.useCallback(h=>{if(!n&&!r||g.paused)return;const x=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,v=document.activeElement;if(x&&v){const y=h.currentTarget,[E,S]=gl(y);E&&S?!h.shiftKey&&v===S?(h.preventDefault(),n&&We(E,{select:!0})):h.shiftKey&&v===E&&(h.preventDefault(),n&&We(S,{select:!0})):v===y&&h.preventDefault()}},[n,r,g.paused]);return p.jsx(ne.div,{tabIndex:-1,...a,ref:m,onKeyDown:b})});Hn.displayName=ml;function hl(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(We(r,{select:t}),document.activeElement!==n)return}function gl(e){const t=Fo(e),n=$o(t,e),r=$o(t.reverse(),e);return[n,r]}function Fo(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 $o(e,t){for(const n of e)if(!vl(n,{upTo:t}))return n}function vl(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 bl(e){return e instanceof HTMLInputElement&&"select"in e}function We(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&bl(e)&&t&&e.select()}}var Vo=xl();function xl(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Ho(e,t),e.unshift(t)},remove(t){var n;e=Ho(e,t),(n=e[0])==null||n.resume()}}}function Ho(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function wl(e){return e.filter(t=>t.tagName!=="A")}var yl="Portal",Wn=l.forwardRef((e,t)=>{var i;const{container:n,...r}=e,[o,s]=l.useState(!1);He(()=>s(!0),[]);const a=n||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return a?Mr.createPortal(p.jsx(ne.div,{...r,ref:t}),a):null});Wn.displayName=yl;function Cl(e,t){return l.useReducer((n,r)=>t[n][r]??n,e)}var ke=e=>{const{present:t,children:n}=e,r=El(t),o=typeof n=="function"?n({present:r.isPresent}):l.Children.only(n),s=ae(r.ref,Sl(o));return typeof n=="function"||r.isPresent?l.cloneElement(o,{ref:s}):null};ke.displayName="Presence";function El(e){const[t,n]=l.useState(),r=l.useRef(null),o=l.useRef(e),s=l.useRef("none"),a=e?"mounted":"unmounted",[i,c]=Cl(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const f=Ft(r.current);s.current=i==="mounted"?f:"none"},[i]),He(()=>{const f=r.current,u=o.current;if(u!==e){const m=s.current,g=Ft(f);e?c("MOUNT"):g==="none"||(f==null?void 0:f.display)==="none"?c("UNMOUNT"):c(u&&m!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),He(()=>{if(t){let f;const u=t.ownerDocument.defaultView??window,d=g=>{const h=Ft(r.current).includes(g.animationName);if(g.target===t&&h&&(c("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",f=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},m=g=>{g.target===t&&(s.current=Ft(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(f),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:l.useCallback(f=>{r.current=f?getComputedStyle(f):null,n(f)},[])}}function Ft(e){return(e==null?void 0:e.animationName)||"none"}function Sl(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 zn=0;function Wo(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??zo()),document.body.insertAdjacentElement("beforeend",e[1]??zo()),zn++,()=>{zn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),zn--}},[])}function zo(){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 Se=function(){return Se=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Se.apply(this,arguments)};function Bo(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 Rl(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var $t="right-scroll-bar-position",Vt="width-before-scroll-bar",_l="with-scroll-bars-hidden",Al="--removed-body-scroll-bar-size";function Bn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ml(e,t){var n=k.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 Ol=typeof window<"u"?l.useLayoutEffect:l.useEffect,Go=new WeakMap;function Tl(e,t){var n=Ml(null,function(r){return e.forEach(function(o){return Bn(o,r)})});return Ol(function(){var r=Go.get(n);if(r){var o=new Set(r),s=new Set(e),a=n.current;o.forEach(function(i){s.has(i)||Bn(i,null)}),s.forEach(function(i){o.has(i)||Bn(i,a)})}Go.set(n,e)},[e]),n}function Nl(e){return e}function Pl(e,t){t===void 0&&(t=Nl);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(s){var a=t(s,r);return n.push(a),function(){n=n.filter(function(i){return i!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(i){return s(i)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var i=n;n=[],i.forEach(s),a=n}var c=function(){var u=a;a=[],u.forEach(s)},f=function(){return Promise.resolve().then(c)};f(),n={push:function(u){a.push(u),f()},filter:function(u){return a=a.filter(u),n}}}};return o}function kl(e){e===void 0&&(e={});var t=Pl(null);return t.options=Se({async:!0,ssr:!1},e),t}var Uo=function(e){var t=e.sideCar,n=Bo(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 l.createElement(r,Se({},n))};Uo.isSideCarExport=!0;function Dl(e,t){return e.useMedium(t),Uo}var Ko=kl(),Gn=function(){},Ht=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:Gn,onWheelCapture:Gn,onTouchMoveCapture:Gn}),o=r[0],s=r[1],a=e.forwardProps,i=e.children,c=e.className,f=e.removeScrollBar,u=e.enabled,d=e.shards,m=e.sideCar,g=e.noRelative,b=e.noIsolation,h=e.inert,x=e.allowPinchZoom,v=e.as,y=v===void 0?"div":v,E=e.gapMode,S=Bo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=m,M=Tl([n,t]),A=Se(Se({},S),o);return l.createElement(l.Fragment,null,u&&l.createElement(_,{sideCar:Ko,removeScrollBar:f,shards:d,noRelative:g,noIsolation:b,inert:h,setCallbacks:s,allowPinchZoom:!!x,lockRef:n,gapMode:E}),a?l.cloneElement(l.Children.only(i),Se(Se({},A),{ref:M})):l.createElement(y,Se({},A,{className:c,ref:M}),i))});Ht.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ht.classNames={fullWidth:Vt,zeroRight:$t};var Il=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function jl(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Il();return t&&e.setAttribute("nonce",t),e}function Ll(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Fl(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var $l=function(){var e=0,t=null;return{add:function(n){e==0&&(t=jl())&&(Ll(t,n),Fl(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Vl=function(){var e=$l();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Yo=function(){var e=Vl(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Hl={left:0,top:0,right:0,gap:0},Un=function(e){return parseInt(e||"",10)||0},Wl=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[Un(n),Un(r),Un(o)]},zl=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Hl;var t=Wl(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])}},Bl=Yo(),st="data-scroll-locked",Gl=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,i=e.gap;return n===void 0&&(n="margin"),`
129
- .`.concat(_l,` {
128
+ */const nl=fe("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
129
+ * @license lucide-react v0.522.0 - ISC
130
+ *
131
+ * This source code is licensed under the ISC license.
132
+ * See the LICENSE file in the root directory of this source tree.
133
+ */const So=fe("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
134
+ * @license lucide-react v0.522.0 - ISC
135
+ *
136
+ * This source code is licensed under the ISC license.
137
+ * See the LICENSE file in the root directory of this source tree.
138
+ */const rl=fe("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Eo(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function $t(...e){return t=>{let n=!1;const r=e.map(o=>{const a=Eo(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():Eo(e[o],null)}}}}function ie(...e){return u.useCallback($t(...e),e)}function tt(e){const t=ol(e),n=u.forwardRef((r,o)=>{const{children:a,...s}=r,i=u.Children.toArray(a),l=i.find(sl);if(l){const p=l.props.children,d=i.map(f=>f===l?u.Children.count(p)>1?u.Children.only(null):u.isValidElement(p)?p.props.children:null:f);return c.jsx(t,{...s,ref:o,children:u.isValidElement(p)?u.cloneElement(p,void 0,d):null})}return c.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var nt=tt("Slot");function ol(e){const t=u.forwardRef((n,r)=>{const{children:o,...a}=n;if(u.isValidElement(o)){const s=cl(o),i=il(a,o.props);return o.type!==u.Fragment&&(i.ref=r?$t(r,s):s),u.cloneElement(o,i)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var _o=Symbol("radix.slottable");function al(e){const t=({children:n})=>c.jsx(c.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=_o,t}function sl(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===_o}function il(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]=(...i)=>{const l=a(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function cl(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)}function Ro(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=Ro(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Mo(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ro(e))&&(r&&(r+=" "),r+=t);return r}const Ao=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,No=Mo,Ln=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return No(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(p=>{const d=n==null?void 0:n[p],f=a==null?void 0:a[p];if(d===null)return null;const m=Ao(d)||Ao(f);return o[p][m]}),i=n&&Object.entries(n).reduce((p,d)=>{let[f,m]=d;return m===void 0||(p[f]=m),p},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((p,d)=>{let{class:f,className:m,...h}=d;return Object.entries(h).every(b=>{let[g,x]=b;return Array.isArray(x)?x.includes({...a,...i}[g]):{...a,...i}[g]===x})?[...p,f,m]:p},[]);return No(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)};function ll(){const[e,t]=I.useState(!1);return I.useEffect(()=>{const n=()=>{t(window.innerWidth<768)};return n(),window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[]),e}const Fn="-",ul=e=>{const t=fl(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const i=s.split(Fn);return i[0]===""&&i.length!==1&&i.shift(),To(i,t)||dl(s)},getConflictingClassGroupIds:(s,i)=>{const l=n[s]||[];return i&&r[s]?[...l,...r[s]]:l}}},To=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?To(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(Fn);return(s=t.validators.find(({validator:i})=>i(a)))==null?void 0:s.classGroupId},Oo=/^\[(.+)\]$/,dl=e=>{if(Oo.test(e)){const t=Oo.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},fl=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)$n(n[o],r,o,t);return r},$n=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:ko(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(pl(o)){$n(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,s])=>{$n(s,ko(t,a),n,r)})})},ko=(e,t)=>{let n=e;return t.split(Fn).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},pl=e=>e.isThemeGetter,ml=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)}}},Vn="!",Hn=":",hl=Hn.length,gl=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const a=[];let s=0,i=0,l=0,p;for(let b=0;b<o.length;b++){let g=o[b];if(s===0&&i===0){if(g===Hn){a.push(o.slice(l,b)),l=b+hl;continue}if(g==="/"){p=b;continue}}g==="["?s++:g==="]"?s--:g==="("?i++:g===")"&&i--}const d=a.length===0?o:o.substring(l),f=vl(d),m=f!==d,h=p&&p>l?p-l:void 0;return{modifiers:a,hasImportantModifier:m,baseClassName:f,maybePostfixModifierPosition:h}};if(t){const o=t+Hn,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},vl=e=>e.endsWith(Vn)?e.substring(0,e.length-1):e.startsWith(Vn)?e.substring(1):e,bl=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}},xl=e=>({cache:ml(e.cacheSize),parseClassName:gl(e),sortModifiers:bl(e),...ul(e)}),wl=/\s+/,yl=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],i=e.trim().split(wl);let l="";for(let p=i.length-1;p>=0;p-=1){const d=i[p],{isExternal:f,modifiers:m,hasImportantModifier:h,baseClassName:b,maybePostfixModifierPosition:g}=n(d);if(f){l=d+(l.length>0?" "+l:l);continue}let x=!!g,v=r(x?b.substring(0,g):b);if(!v){if(!x){l=d+(l.length>0?" "+l:l);continue}if(v=r(b),!v){l=d+(l.length>0?" "+l:l);continue}x=!1}const w=a(m).join(":"),S=h?w+Vn:w,E=S+v;if(s.includes(E))continue;s.push(E);const _=o(v,x);for(let N=0;N<_.length;++N){const M=_[N];s.push(S+M)}l=d+(l.length>0?" "+l:l)}return l};function Cl(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Po(t))&&(r&&(r+=" "),r+=n);return r}const Po=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Po(e[r]))&&(n&&(n+=" "),n+=t);return n};function Sl(e,...t){let n,r,o,a=s;function s(l){const p=t.reduce((d,f)=>f(d),e());return n=xl(p),r=n.cache.get,o=n.cache.set,a=i,i(l)}function i(l){const p=r(l);if(p)return p;const d=yl(l,n);return o(l,d),d}return function(){return a(Cl.apply(null,arguments))}}const ce=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Do=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Io=/^\((?:(\w[\w-]*):)?(.+)\)$/i,El=/^\d+\/\d+$/,_l=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Rl=/\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$/,Ml=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Al=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Nl=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,rt=e=>El.test(e),G=e=>!!e&&!Number.isNaN(Number(e)),He=e=>!!e&&Number.isInteger(Number(e)),zn=e=>e.endsWith("%")&&G(e.slice(0,-1)),Pe=e=>_l.test(e),Tl=()=>!0,Ol=e=>Rl.test(e)&&!Ml.test(e),jo=()=>!1,kl=e=>Al.test(e),Pl=e=>Nl.test(e),Dl=e=>!O(e)&&!k(e),Il=e=>ot(e,Ho,jo),O=e=>Do.test(e),qe=e=>ot(e,zo,Ol),Wn=e=>ot(e,Vl,G),Lo=e=>ot(e,$o,jo),jl=e=>ot(e,Vo,Pl),Vt=e=>ot(e,Wo,kl),k=e=>Io.test(e),xt=e=>at(e,zo),Ll=e=>at(e,Hl),Fo=e=>at(e,$o),Fl=e=>at(e,Ho),$l=e=>at(e,Vo),Ht=e=>at(e,Wo,!0),ot=(e,t,n)=>{const r=Do.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},at=(e,t,n=!1)=>{const r=Io.exec(e);return r?r[1]?t(r[1]):n:!1},$o=e=>e==="position"||e==="percentage",Vo=e=>e==="image"||e==="url",Ho=e=>e==="length"||e==="size"||e==="bg-size",zo=e=>e==="length",Vl=e=>e==="number",Hl=e=>e==="family-name",Wo=e=>e==="shadow",zl=Sl(()=>{const e=ce("color"),t=ce("font"),n=ce("text"),r=ce("font-weight"),o=ce("tracking"),a=ce("leading"),s=ce("breakpoint"),i=ce("container"),l=ce("spacing"),p=ce("radius"),d=ce("shadow"),f=ce("inset-shadow"),m=ce("text-shadow"),h=ce("drop-shadow"),b=ce("blur"),g=ce("perspective"),x=ce("aspect"),v=ce("ease"),w=ce("animate"),S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],_=()=>[...E(),k,O],N=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],C=()=>[k,O,l],j=()=>[rt,"full","auto",...C()],L=()=>[He,"none","subgrid",k,O],U=()=>["auto",{span:["full",He,k,O]},He,k,O],B=()=>[He,"auto",k,O],z=()=>["auto","min","max","fr",k,O],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],X=()=>["start","end","center","stretch","center-safe","end-safe"],V=()=>["auto",...C()],K=()=>[rt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],R=()=>[e,k,O],T=()=>[...E(),Fo,Lo,{position:[k,O]}],y=()=>["no-repeat",{repeat:["","x","y","space","round"]}],P=()=>["auto","cover","contain",Fl,Il,{size:[k,O]}],F=()=>[zn,xt,qe],H=()=>["","none","full",p,k,O],Z=()=>["",G,xt,qe],ne=()=>["solid","dashed","dotted","double"],ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>[G,zn,Fo,Lo],ee=()=>["","none",b,k,O],te=()=>["none",G,k,O],se=()=>["none",G,k,O],Ee=()=>[G,k,O],Ke=()=>[rt,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Pe],breakpoint:[Pe],color:[Tl],container:[Pe],"drop-shadow":[Pe],ease:["in","out","in-out"],font:[Dl],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Pe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Pe],shadow:[Pe],spacing:["px",G],text:[Pe],"text-shadow":[Pe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",rt,O,k,x]}],container:["container"],columns:[{columns:[G,O,k,i]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"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:_()}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:j()}],"inset-x":[{"inset-x":j()}],"inset-y":[{"inset-y":j()}],start:[{start:j()}],end:[{end:j()}],top:[{top:j()}],right:[{right:j()}],bottom:[{bottom:j()}],left:[{left:j()}],visibility:["visible","invisible","collapse"],z:[{z:[He,"auto",k,O]}],basis:[{basis:[rt,"full","auto",i,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[G,rt,"auto","initial","none",O]}],grow:[{grow:["",G,k,O]}],shrink:[{shrink:["",G,k,O]}],order:[{order:[He,"first","last","none",k,O]}],"grid-cols":[{"grid-cols":L()}],"col-start-end":[{col:U()}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":L()}],"row-start-end":[{row:U()}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":z()}],"auto-rows":[{"auto-rows":z()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...X(),"normal"]}],"justify-self":[{"justify-self":["auto",...X()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...X(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...X(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...X(),"baseline"]}],"place-self":[{"place-self":["auto",...X()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:V()}],mx:[{mx:V()}],my:[{my:V()}],ms:[{ms:V()}],me:[{me:V()}],mt:[{mt:V()}],mr:[{mr:V()}],mb:[{mb:V()}],ml:[{ml:V()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],w:[{w:[i,"screen",...K()]}],"min-w":[{"min-w":[i,"screen","none",...K()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",n,xt,qe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,k,Wn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",zn,O]}],"font-family":[{font:[Ll,O,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,k,O]}],"line-clamp":[{"line-clamp":[G,"none",k,Wn]}],leading:[{leading:[a,...C()]}],"list-image":[{"list-image":["none",k,O]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",k,O]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ne(),"wavy"]}],"text-decoration-thickness":[{decoration:[G,"from-font","auto",k,qe]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[G,"auto",k,O]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",k,O]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",k,O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:T()}],"bg-repeat":[{bg:y()}],"bg-size":[{bg:P()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},He,k,O],radial:["",k,O],conic:[He,k,O]},$l,jl]}],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],rounded:[{rounded:H()}],"rounded-s":[{"rounded-s":H()}],"rounded-e":[{"rounded-e":H()}],"rounded-t":[{"rounded-t":H()}],"rounded-r":[{"rounded-r":H()}],"rounded-b":[{"rounded-b":H()}],"rounded-l":[{"rounded-l":H()}],"rounded-ss":[{"rounded-ss":H()}],"rounded-se":[{"rounded-se":H()}],"rounded-ee":[{"rounded-ee":H()}],"rounded-es":[{"rounded-es":H()}],"rounded-tl":[{"rounded-tl":H()}],"rounded-tr":[{"rounded-tr":H()}],"rounded-br":[{"rounded-br":H()}],"rounded-bl":[{"rounded-bl":H()}],"border-w":[{border:Z()}],"border-w-x":[{"border-x":Z()}],"border-w-y":[{"border-y":Z()}],"border-w-s":[{"border-s":Z()}],"border-w-e":[{"border-e":Z()}],"border-w-t":[{"border-t":Z()}],"border-w-r":[{"border-r":Z()}],"border-w-b":[{"border-b":Z()}],"border-w-l":[{"border-l":Z()}],"divide-x":[{"divide-x":Z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ne(),"hidden","none"]}],"divide-style":[{divide:[...ne(),"hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:[...ne(),"none","hidden"]}],"outline-offset":[{"outline-offset":[G,k,O]}],"outline-w":[{outline:["",G,xt,qe]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",d,Ht,Vt]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",f,Ht,Vt]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[G,qe]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":Z()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",m,Ht,Vt]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[G,k,O]}],"mix-blend":[{"mix-blend":[...ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ue()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[G]}],"mask-image-linear-from-pos":[{"mask-linear-from":Y()}],"mask-image-linear-to-pos":[{"mask-linear-to":Y()}],"mask-image-linear-from-color":[{"mask-linear-from":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"mask-image-t-from-pos":[{"mask-t-from":Y()}],"mask-image-t-to-pos":[{"mask-t-to":Y()}],"mask-image-t-from-color":[{"mask-t-from":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"mask-image-r-from-pos":[{"mask-r-from":Y()}],"mask-image-r-to-pos":[{"mask-r-to":Y()}],"mask-image-r-from-color":[{"mask-r-from":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"mask-image-b-from-pos":[{"mask-b-from":Y()}],"mask-image-b-to-pos":[{"mask-b-to":Y()}],"mask-image-b-from-color":[{"mask-b-from":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"mask-image-l-from-pos":[{"mask-l-from":Y()}],"mask-image-l-to-pos":[{"mask-l-to":Y()}],"mask-image-l-from-color":[{"mask-l-from":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"mask-image-x-from-pos":[{"mask-x-from":Y()}],"mask-image-x-to-pos":[{"mask-x-to":Y()}],"mask-image-x-from-color":[{"mask-x-from":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"mask-image-y-from-pos":[{"mask-y-from":Y()}],"mask-image-y-to-pos":[{"mask-y-to":Y()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[k,O]}],"mask-image-radial-from-pos":[{"mask-radial-from":Y()}],"mask-image-radial-to-pos":[{"mask-radial-to":Y()}],"mask-image-radial-from-color":[{"mask-radial-from":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":E()}],"mask-image-conic-pos":[{"mask-conic":[G]}],"mask-image-conic-from-pos":[{"mask-conic-from":Y()}],"mask-image-conic-to-pos":[{"mask-conic-to":Y()}],"mask-image-conic-from-color":[{"mask-conic-from":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:T()}],"mask-repeat":[{mask:y()}],"mask-size":[{mask:P()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",k,O]}],filter:[{filter:["","none",k,O]}],blur:[{blur:ee()}],brightness:[{brightness:[G,k,O]}],contrast:[{contrast:[G,k,O]}],"drop-shadow":[{"drop-shadow":["","none",h,Ht,Vt]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",G,k,O]}],"hue-rotate":[{"hue-rotate":[G,k,O]}],invert:[{invert:["",G,k,O]}],saturate:[{saturate:[G,k,O]}],sepia:[{sepia:["",G,k,O]}],"backdrop-filter":[{"backdrop-filter":["","none",k,O]}],"backdrop-blur":[{"backdrop-blur":ee()}],"backdrop-brightness":[{"backdrop-brightness":[G,k,O]}],"backdrop-contrast":[{"backdrop-contrast":[G,k,O]}],"backdrop-grayscale":[{"backdrop-grayscale":["",G,k,O]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[G,k,O]}],"backdrop-invert":[{"backdrop-invert":["",G,k,O]}],"backdrop-opacity":[{"backdrop-opacity":[G,k,O]}],"backdrop-saturate":[{"backdrop-saturate":[G,k,O]}],"backdrop-sepia":[{"backdrop-sepia":["",G,k,O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",k,O]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[G,"initial",k,O]}],ease:[{ease:["linear","initial",v,k,O]}],delay:[{delay:[G,k,O]}],animate:[{animate:["none",w,k,O]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,k,O]}],"perspective-origin":[{"perspective-origin":_()}],rotate:[{rotate:te()}],"rotate-x":[{"rotate-x":te()}],"rotate-y":[{"rotate-y":te()}],"rotate-z":[{"rotate-z":te()}],scale:[{scale:se()}],"scale-x":[{"scale-x":se()}],"scale-y":[{"scale-y":se()}],"scale-z":[{"scale-z":se()}],"scale-3d":["scale-3d"],skew:[{skew:Ee()}],"skew-x":[{"skew-x":Ee()}],"skew-y":[{"skew-y":Ee()}],transform:[{transform:[k,O,"","none","gpu","cpu"]}],"transform-origin":[{origin:_()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ke()}],"translate-x":[{"translate-x":Ke()}],"translate-y":[{"translate-y":Ke()}],"translate-z":[{"translate-z":Ke()}],"translate-none":["translate-none"],accent:[{accent:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}],"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",k,O]}],"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":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"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",k,O]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[G,xt,qe,Wn]}],stroke:[{stroke:["none",...R()]}],"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-x","border-w-y","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-x","border-color-y","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:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function D(...e){return zl(Mo(e))}const Go=Ln("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),zt=u.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},a)=>{const s=r?nt:"button";return c.jsx(s,{className:D(Go({variant:t,size:n,className:e})),ref:a,...o})});zt.displayName="Button";const Gn=u.forwardRef(({className:e,type:t,...n},r)=>c.jsx("input",{type:t,className:D("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));Gn.displayName="Input";var Wl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],re=Wl.reduce((e,t)=>{const n=tt(`Primitive.${t}`),r=u.forwardRef((o,a)=>{const{asChild:s,...i}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...i,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Bo(e,t){e&&Kr.flushSync(()=>e.dispatchEvent(t))}var Gl="Separator",Uo="horizontal",Bl=["horizontal","vertical"],Ko=u.forwardRef((e,t)=>{const{decorative:n,orientation:r=Uo,...o}=e,a=Ul(r)?r:Uo,i=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return c.jsx(re.div,{"data-orientation":a,...i,...o,ref:t})});Ko.displayName=Gl;function Ul(e){return Bl.includes(e)}var Yo=Ko;const Wt=u.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>c.jsx(Yo,{ref:o,decorative:n,orientation:t,className:D("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));Wt.displayName=Yo.displayName;function $(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 Kl(e,t){const n=u.createContext(t),r=a=>{const{children:s,...i}=a,l=u.useMemo(()=>i,Object.values(i));return c.jsx(n.Provider,{value:l,children:s})};r.displayName=e+"Provider";function o(a){const s=u.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 Xe(e,t=[]){let n=[];function r(a,s){const i=u.createContext(s),l=n.length;n=[...n,s];const p=f=>{var v;const{scope:m,children:h,...b}=f,g=((v=m==null?void 0:m[e])==null?void 0:v[l])||i,x=u.useMemo(()=>b,Object.values(b));return c.jsx(g.Provider,{value:x,children:h})};p.displayName=a+"Provider";function d(f,m){var g;const h=((g=m==null?void 0:m[e])==null?void 0:g[l])||i,b=u.useContext(h);if(b)return b;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[p,d]}const o=()=>{const a=n.map(s=>u.createContext(s));return function(i){const l=(i==null?void 0:i[e])||a;return u.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,Yl(o,...t)]}function Yl(...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((i,{useScope:l,scopeName:p})=>{const f=l(a)[`__scope${p}`];return{...i,...f}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var ze=globalThis!=null&&globalThis.document?u.useLayoutEffect:()=>{},ql=u[" useId ".trim().toString()]||(()=>{}),Xl=0;function De(e){const[t,n]=u.useState(ql());return ze(()=>{n(r=>r??String(Xl++))},[e]),e||(t?`radix-${t}`:"")}var Zl=u[" useInsertionEffect ".trim().toString()]||ze;function wt({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,s]=Jl({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:o;{const d=u.useRef(e!==void 0);u.useEffect(()=>{const f=d.current;f!==i&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=i},[i,r])}const p=u.useCallback(d=>{var f;if(i){const m=Ql(d)?d(e):d;m!==e&&((f=s.current)==null||f.call(s,m))}else a(d)},[i,e,a,s]);return[l,p]}function Jl({defaultProp:e,onChange:t}){const[n,r]=u.useState(e),o=u.useRef(n),a=u.useRef(t);return Zl(()=>{a.current=t},[t]),u.useEffect(()=>{var s;o.current!==n&&((s=a.current)==null||s.call(a,n),o.current=n)},[n,o]),[n,r,a]}function Ql(e){return typeof e=="function"}function _e(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function eu(e,t=globalThis==null?void 0:globalThis.document){const n=_e(e);u.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 tu="DismissableLayer",Bn="dismissableLayer.update",nu="dismissableLayer.pointerDownOutside",ru="dismissableLayer.focusOutside",qo,Xo=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Gt=u.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...l}=e,p=u.useContext(Xo),[d,f]=u.useState(null),m=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=u.useState({}),b=ie(t,M=>f(M)),g=Array.from(p.layers),[x]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(x),w=d?g.indexOf(d):-1,S=p.layersWithOutsidePointerEventsDisabled.size>0,E=w>=v,_=su(M=>{const C=M.target,j=[...p.branches].some(L=>L.contains(C));!E||j||(o==null||o(M),s==null||s(M),M.defaultPrevented||i==null||i())},m),N=iu(M=>{const C=M.target;[...p.branches].some(L=>L.contains(C))||(a==null||a(M),s==null||s(M),M.defaultPrevented||i==null||i())},m);return eu(M=>{w===p.layers.size-1&&(r==null||r(M),!M.defaultPrevented&&i&&(M.preventDefault(),i()))},m),u.useEffect(()=>{if(d)return n&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(qo=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(d)),p.layers.add(d),Zo(),()=>{n&&p.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=qo)}},[d,m,n,p]),u.useEffect(()=>()=>{d&&(p.layers.delete(d),p.layersWithOutsidePointerEventsDisabled.delete(d),Zo())},[d,p]),u.useEffect(()=>{const M=()=>h({});return document.addEventListener(Bn,M),()=>document.removeEventListener(Bn,M)},[]),c.jsx(re.div,{...l,ref:b,style:{pointerEvents:S?E?"auto":"none":void 0,...e.style},onFocusCapture:$(e.onFocusCapture,N.onFocusCapture),onBlurCapture:$(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:$(e.onPointerDownCapture,_.onPointerDownCapture)})});Gt.displayName=tu;var ou="DismissableLayerBranch",au=u.forwardRef((e,t)=>{const n=u.useContext(Xo),r=u.useRef(null),o=ie(t,r);return u.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),c.jsx(re.div,{...e,ref:o})});au.displayName=ou;function su(e,t=globalThis==null?void 0:globalThis.document){const n=_e(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const a=i=>{if(i.target&&!r.current){let l=function(){Jo(nu,n,p,{discrete:!0})};const p={originalEvent:i};i.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 iu(e,t=globalThis==null?void 0:globalThis.document){const n=_e(e),r=u.useRef(!1);return u.useEffect(()=>{const o=a=>{a.target&&!r.current&&Jo(ru,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 Zo(){const e=new CustomEvent(Bn);document.dispatchEvent(e)}function Jo(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?Bo(o,a):o.dispatchEvent(a)}var Un="focusScope.autoFocusOnMount",Kn="focusScope.autoFocusOnUnmount",Qo={bubbles:!1,cancelable:!0},cu="FocusScope",Yn=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,l]=u.useState(null),p=_e(o),d=_e(a),f=u.useRef(null),m=ie(t,g=>l(g)),h=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let g=function(S){if(h.paused||!i)return;const E=S.target;i.contains(E)?f.current=E:We(f.current,{select:!0})},x=function(S){if(h.paused||!i)return;const E=S.relatedTarget;E!==null&&(i.contains(E)||We(f.current,{select:!0}))},v=function(S){if(document.activeElement===document.body)for(const _ of S)_.removedNodes.length>0&&We(i)};document.addEventListener("focusin",g),document.addEventListener("focusout",x);const w=new MutationObserver(v);return i&&w.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",x),w.disconnect()}}},[r,i,h.paused]),u.useEffect(()=>{if(i){na.add(h);const g=document.activeElement;if(!i.contains(g)){const v=new CustomEvent(Un,Qo);i.addEventListener(Un,p),i.dispatchEvent(v),v.defaultPrevented||(lu(mu(ea(i)),{select:!0}),document.activeElement===g&&We(i))}return()=>{i.removeEventListener(Un,p),setTimeout(()=>{const v=new CustomEvent(Kn,Qo);i.addEventListener(Kn,d),i.dispatchEvent(v),v.defaultPrevented||We(g??document.body,{select:!0}),i.removeEventListener(Kn,d),na.remove(h)},0)}}},[i,p,d,h]);const b=u.useCallback(g=>{if(!n&&!r||h.paused)return;const x=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,v=document.activeElement;if(x&&v){const w=g.currentTarget,[S,E]=uu(w);S&&E?!g.shiftKey&&v===E?(g.preventDefault(),n&&We(S,{select:!0})):g.shiftKey&&v===S&&(g.preventDefault(),n&&We(E,{select:!0})):v===w&&g.preventDefault()}},[n,r,h.paused]);return c.jsx(re.div,{tabIndex:-1,...s,ref:m,onKeyDown:b})});Yn.displayName=cu;function lu(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(We(r,{select:t}),document.activeElement!==n)return}function uu(e){const t=ea(e),n=ta(t,e),r=ta(t.reverse(),e);return[n,r]}function ea(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 ta(e,t){for(const n of e)if(!du(n,{upTo:t}))return n}function du(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 fu(e){return e instanceof HTMLInputElement&&"select"in e}function We(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&fu(e)&&t&&e.select()}}var na=pu();function pu(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=ra(e,t),e.unshift(t)},remove(t){var n;e=ra(e,t),(n=e[0])==null||n.resume()}}}function ra(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function mu(e){return e.filter(t=>t.tagName!=="A")}var hu="Portal",qn=u.forwardRef((e,t)=>{var i;const{container:n,...r}=e,[o,a]=u.useState(!1);ze(()=>a(!0),[]);const s=n||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?Br.createPortal(c.jsx(re.div,{...r,ref:t}),s):null});qn.displayName=hu;function gu(e,t){return u.useReducer((n,r)=>t[n][r]??n,e)}var Ie=e=>{const{present:t,children:n}=e,r=vu(t),o=typeof n=="function"?n({present:r.isPresent}):u.Children.only(n),a=ie(r.ref,bu(o));return typeof n=="function"||r.isPresent?u.cloneElement(o,{ref:a}):null};Ie.displayName="Presence";function vu(e){const[t,n]=u.useState(),r=u.useRef(null),o=u.useRef(e),a=u.useRef("none"),s=e?"mounted":"unmounted",[i,l]=gu(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const p=Bt(r.current);a.current=i==="mounted"?p:"none"},[i]),ze(()=>{const p=r.current,d=o.current;if(d!==e){const m=a.current,h=Bt(p);e?l("MOUNT"):h==="none"||(p==null?void 0:p.display)==="none"?l("UNMOUNT"):l(d&&m!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),ze(()=>{if(t){let p;const d=t.ownerDocument.defaultView??window,f=h=>{const g=Bt(r.current).includes(h.animationName);if(h.target===t&&g&&(l("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",p=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},m=h=>{h.target===t&&(a.current=Bt(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(p),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:u.useCallback(p=>{r.current=p?getComputedStyle(p):null,n(p)},[])}}function Bt(e){return(e==null?void 0:e.animationName)||"none"}function bu(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 Xn=0;function oa(){u.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??aa()),document.body.insertAdjacentElement("beforeend",e[1]??aa()),Xn++,()=>{Xn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Xn--}},[])}function aa(){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 Re=function(){return Re=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},Re.apply(this,arguments)};function sa(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 xu(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 Ut="right-scroll-bar-position",Kt="width-before-scroll-bar",wu="with-scroll-bars-hidden",yu="--removed-body-scroll-bar-size";function Zn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Cu(e,t){var n=I.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 Su=typeof window<"u"?u.useLayoutEffect:u.useEffect,ia=new WeakMap;function Eu(e,t){var n=Cu(null,function(r){return e.forEach(function(o){return Zn(o,r)})});return Su(function(){var r=ia.get(n);if(r){var o=new Set(r),a=new Set(e),s=n.current;o.forEach(function(i){a.has(i)||Zn(i,null)}),a.forEach(function(i){o.has(i)||Zn(i,s)})}ia.set(n,e)},[e]),n}function _u(e){return e}function Ru(e,t){t===void 0&&(t=_u);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(i){return i!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(i){return a(i)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var i=n;n=[],i.forEach(a),s=n}var l=function(){var d=s;s=[],d.forEach(a)},p=function(){return Promise.resolve().then(l)};p(),n={push:function(d){s.push(d),p()},filter:function(d){return s=s.filter(d),n}}}};return o}function Mu(e){e===void 0&&(e={});var t=Ru(null);return t.options=Re({async:!0,ssr:!1},e),t}var ca=function(e){var t=e.sideCar,n=sa(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 u.createElement(r,Re({},n))};ca.isSideCarExport=!0;function Au(e,t){return e.useMedium(t),ca}var la=Mu(),Jn=function(){},Yt=u.forwardRef(function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:Jn,onWheelCapture:Jn,onTouchMoveCapture:Jn}),o=r[0],a=r[1],s=e.forwardProps,i=e.children,l=e.className,p=e.removeScrollBar,d=e.enabled,f=e.shards,m=e.sideCar,h=e.noRelative,b=e.noIsolation,g=e.inert,x=e.allowPinchZoom,v=e.as,w=v===void 0?"div":v,S=e.gapMode,E=sa(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=m,N=Eu([n,t]),M=Re(Re({},E),o);return u.createElement(u.Fragment,null,d&&u.createElement(_,{sideCar:la,removeScrollBar:p,shards:f,noRelative:h,noIsolation:b,inert:g,setCallbacks:a,allowPinchZoom:!!x,lockRef:n,gapMode:S}),s?u.cloneElement(u.Children.only(i),Re(Re({},M),{ref:N})):u.createElement(w,Re({},M,{className:l,ref:N}),i))});Yt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Yt.classNames={fullWidth:Kt,zeroRight:Ut};var Nu=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Tu(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Nu();return t&&e.setAttribute("nonce",t),e}function Ou(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ku(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Pu=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Tu())&&(Ou(t,n),ku(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Du=function(){var e=Pu();return function(t,n){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ua=function(){var e=Du(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Iu={left:0,top:0,right:0,gap:0},Qn=function(e){return parseInt(e||"",10)||0},ju=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[Qn(n),Qn(r),Qn(o)]},Lu=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Iu;var t=ju(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])}},Fu=ua(),st="data-scroll-locked",$u=function(e,t,n,r){var o=e.left,a=e.top,s=e.right,i=e.gap;return n===void 0&&(n="margin"),`
139
+ .`.concat(wu,` {
130
140
  overflow: hidden `).concat(r,`;
131
141
  padding-right: `).concat(i,"px ").concat(r,`;
132
142
  }
@@ -135,38 +145,38 @@ React keys must be passed directly to JSX without using spread:
135
145
  overscroll-behavior: contain;
136
146
  `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
137
147
  padding-left: `.concat(o,`px;
138
- padding-top: `).concat(s,`px;
139
- padding-right: `).concat(a,`px;
148
+ padding-top: `).concat(a,`px;
149
+ padding-right: `).concat(s,`px;
140
150
  margin-left:0;
141
151
  margin-top:0;
142
152
  margin-right: `).concat(i,"px ").concat(r,`;
143
153
  `),n==="padding"&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),`
144
154
  }
145
155
 
146
- .`).concat($t,` {
156
+ .`).concat(Ut,` {
147
157
  right: `).concat(i,"px ").concat(r,`;
148
158
  }
149
159
 
150
- .`).concat(Vt,` {
160
+ .`).concat(Kt,` {
151
161
  margin-right: `).concat(i,"px ").concat(r,`;
152
162
  }
153
163
 
154
- .`).concat($t," .").concat($t,` {
164
+ .`).concat(Ut," .").concat(Ut,` {
155
165
  right: 0 `).concat(r,`;
156
166
  }
157
167
 
158
- .`).concat(Vt," .").concat(Vt,` {
168
+ .`).concat(Kt," .").concat(Kt,` {
159
169
  margin-right: 0 `).concat(r,`;
160
170
  }
161
171
 
162
172
  body[`).concat(st,`] {
163
- `).concat(Al,": ").concat(i,`px;
173
+ `).concat(yu,": ").concat(i,`px;
164
174
  }
165
- `)},qo=function(){var e=parseInt(document.body.getAttribute(st)||"0",10);return isFinite(e)?e:0},Ul=function(){l.useEffect(function(){return document.body.setAttribute(st,(qo()+1).toString()),function(){var e=qo()-1;e<=0?document.body.removeAttribute(st):document.body.setAttribute(st,e.toString())}},[])},Kl=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Ul();var s=l.useMemo(function(){return zl(o)},[o]);return l.createElement(Bl,{styles:Gl(s,!t,o,n?"":"!important")})},Kn=!1;if(typeof window<"u")try{var Wt=Object.defineProperty({},"passive",{get:function(){return Kn=!0,!0}});window.addEventListener("test",Wt,Wt),window.removeEventListener("test",Wt,Wt)}catch{Kn=!1}var at=Kn?{passive:!1}:!1,Yl=function(e){return e.tagName==="TEXTAREA"},Xo=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Yl(e)&&n[t]==="visible")},ql=function(e){return Xo(e,"overflowY")},Xl=function(e){return Xo(e,"overflowX")},Zo=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Jo(e,r);if(o){var s=Qo(e,r),a=s[1],i=s[2];if(a>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Zl=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Jl=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Jo=function(e,t){return e==="v"?ql(t):Xl(t)},Qo=function(e,t){return e==="v"?Zl(t):Jl(t)},Ql=function(e,t){return e==="h"&&t==="rtl"?-1:1},eu=function(e,t,n,r,o){var s=Ql(e,window.getComputedStyle(t).direction),a=s*r,i=n.target,c=t.contains(i),f=!1,u=a>0,d=0,m=0;do{if(!i)break;var g=Qo(e,i),b=g[0],h=g[1],x=g[2],v=h-x-s*b;(b||v)&&Jo(e,i)&&(d+=v,m+=b);var y=i.parentNode;i=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!c&&i!==document.body||c&&(t.contains(i)||t===i));return(u&&Math.abs(d)<1||!u&&Math.abs(m)<1)&&(f=!0),f},zt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},es=function(e){return[e.deltaX,e.deltaY]},ts=function(e){return e&&"current"in e?e.current:e},tu=function(e,t){return e[0]===t[0]&&e[1]===t[1]},nu=function(e){return`
175
+ `)},da=function(){var e=parseInt(document.body.getAttribute(st)||"0",10);return isFinite(e)?e:0},Vu=function(){u.useEffect(function(){return document.body.setAttribute(st,(da()+1).toString()),function(){var e=da()-1;e<=0?document.body.removeAttribute(st):document.body.setAttribute(st,e.toString())}},[])},Hu=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Vu();var a=u.useMemo(function(){return Lu(o)},[o]);return u.createElement(Fu,{styles:$u(a,!t,o,n?"":"!important")})},er=!1;if(typeof window<"u")try{var qt=Object.defineProperty({},"passive",{get:function(){return er=!0,!0}});window.addEventListener("test",qt,qt),window.removeEventListener("test",qt,qt)}catch{er=!1}var it=er?{passive:!1}:!1,zu=function(e){return e.tagName==="TEXTAREA"},fa=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!zu(e)&&n[t]==="visible")},Wu=function(e){return fa(e,"overflowY")},Gu=function(e){return fa(e,"overflowX")},pa=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=ma(e,r);if(o){var a=ha(e,r),s=a[1],i=a[2];if(s>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Bu=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Uu=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ma=function(e,t){return e==="v"?Wu(t):Gu(t)},ha=function(e,t){return e==="v"?Bu(t):Uu(t)},Ku=function(e,t){return e==="h"&&t==="rtl"?-1:1},Yu=function(e,t,n,r,o){var a=Ku(e,window.getComputedStyle(t).direction),s=a*r,i=n.target,l=t.contains(i),p=!1,d=s>0,f=0,m=0;do{if(!i)break;var h=ha(e,i),b=h[0],g=h[1],x=h[2],v=g-x-a*b;(b||v)&&ma(e,i)&&(f+=v,m+=b);var w=i.parentNode;i=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!l&&i!==document.body||l&&(t.contains(i)||t===i));return(d&&Math.abs(f)<1||!d&&Math.abs(m)<1)&&(p=!0),p},Xt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ga=function(e){return[e.deltaX,e.deltaY]},va=function(e){return e&&"current"in e?e.current:e},qu=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Xu=function(e){return`
166
176
  .block-interactivity-`.concat(e,` {pointer-events: none;}
167
177
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
168
- `)},ru=0,it=[];function ou(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState(ru++)[0],s=l.useState(Yo)[0],a=l.useRef(e);l.useEffect(function(){a.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=Rl([e.lockRef.current],(e.shards||[]).map(ts),!0).filter(Boolean);return h.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=l.useCallback(function(h,x){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!a.current.allowPinchZoom;var v=zt(h),y=n.current,E="deltaX"in h?h.deltaX:y[0]-v[0],S="deltaY"in h?h.deltaY:y[1]-v[1],_,M=h.target,A=Math.abs(E)>Math.abs(S)?"h":"v";if("touches"in h&&A==="h"&&M.type==="range")return!1;var C=Zo(A,M);if(!C)return!0;if(C?_=A:(_=A==="v"?"h":"v",C=Zo(A,M)),!C)return!1;if(!r.current&&"changedTouches"in h&&(E||S)&&(r.current=_),!_)return!0;var D=r.current||_;return eu(D,x,h,D==="h"?E:S)},[]),c=l.useCallback(function(h){var x=h;if(!(!it.length||it[it.length-1]!==s)){var v="deltaY"in x?es(x):zt(x),y=t.current.filter(function(_){return _.name===x.type&&(_.target===x.target||x.target===_.shadowParent)&&tu(_.delta,v)})[0];if(y&&y.should){x.cancelable&&x.preventDefault();return}if(!y){var E=(a.current.shards||[]).map(ts).filter(Boolean).filter(function(_){return _.contains(x.target)}),S=E.length>0?i(x,E[0]):!a.current.noIsolation;S&&x.cancelable&&x.preventDefault()}}},[]),f=l.useCallback(function(h,x,v,y){var E={name:h,delta:x,target:v,should:y,shadowParent:su(v)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(S){return S!==E})},1)},[]),u=l.useCallback(function(h){n.current=zt(h),r.current=void 0},[]),d=l.useCallback(function(h){f(h.type,es(h),h.target,i(h,e.lockRef.current))},[]),m=l.useCallback(function(h){f(h.type,zt(h),h.target,i(h,e.lockRef.current))},[]);l.useEffect(function(){return it.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:m}),document.addEventListener("wheel",c,at),document.addEventListener("touchmove",c,at),document.addEventListener("touchstart",u,at),function(){it=it.filter(function(h){return h!==s}),document.removeEventListener("wheel",c,at),document.removeEventListener("touchmove",c,at),document.removeEventListener("touchstart",u,at)}},[]);var g=e.removeScrollBar,b=e.inert;return l.createElement(l.Fragment,null,b?l.createElement(s,{styles:nu(o)}):null,g?l.createElement(Kl,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function su(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const au=Dl(Ko,ou);var Yn=l.forwardRef(function(e,t){return l.createElement(Ht,Se({},e,{ref:t,sideCar:au}))});Yn.classNames=Ht.classNames;var iu=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ct=new WeakMap,Bt=new WeakMap,Gt={},qn=0,ns=function(e){return e&&(e.host||ns(e.parentNode))},cu=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=ns(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},lu=function(e,t,n,r){var o=cu(t,Array.isArray(e)?e:[e]);Gt[n]||(Gt[n]=new WeakMap);var s=Gt[n],a=[],i=new Set,c=new Set(o),f=function(d){!d||i.has(d)||(i.add(d),f(d.parentNode))};o.forEach(f);var u=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(m){if(i.has(m))u(m);else try{var g=m.getAttribute(r),b=g!==null&&g!=="false",h=(ct.get(m)||0)+1,x=(s.get(m)||0)+1;ct.set(m,h),s.set(m,x),a.push(m),h===1&&b&&Bt.set(m,!0),x===1&&m.setAttribute(n,"true"),b||m.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",m,v)}})};return u(t),i.clear(),qn++,function(){a.forEach(function(d){var m=ct.get(d)-1,g=s.get(d)-1;ct.set(d,m),s.set(d,g),m||(Bt.has(d)||d.removeAttribute(r),Bt.delete(d)),g||d.removeAttribute(n)}),qn--,qn||(ct=new WeakMap,ct=new WeakMap,Bt=new WeakMap,Gt={})}},rs=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=iu(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),lu(r,o,n,"aria-hidden")):function(){return null}},Ut="Dialog",[os,M0]=Ye(Ut),[uu,we]=os(Ut),ss=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,i=l.useRef(null),c=l.useRef(null),[f,u]=Ln({prop:r,defaultProp:o??!1,onChange:s,caller:Ut});return p.jsx(uu,{scope:t,triggerRef:i,contentRef:c,contentId:ot(),titleId:ot(),descriptionId:ot(),open:f,onOpenChange:u,onOpenToggle:l.useCallback(()=>u(d=>!d),[u]),modal:a,children:n})};ss.displayName=Ut;var as="DialogTrigger",du=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=we(as,n),s=ae(t,o.triggerRef);return p.jsx(ne.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Jn(o.open),...r,ref:s,onClick:L(e.onClick,o.onOpenToggle)})});du.displayName=as;var Xn="DialogPortal",[fu,is]=os(Xn,{forceMount:void 0}),cs=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=we(Xn,t);return p.jsx(fu,{scope:t,forceMount:n,children:l.Children.map(r,a=>p.jsx(ke,{present:n||s.open,children:p.jsx(Wn,{asChild:!0,container:o,children:a})}))})};cs.displayName=Xn;var Kt="DialogOverlay",ls=l.forwardRef((e,t)=>{const n=is(Kt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=we(Kt,e.__scopeDialog);return s.modal?p.jsx(ke,{present:r||s.open,children:p.jsx(mu,{...o,ref:t})}):null});ls.displayName=Kt;var pu=et("DialogOverlay.RemoveScroll"),mu=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=we(Kt,n);return p.jsx(Yn,{as:pu,allowPinchZoom:!0,shards:[o.contentRef],children:p.jsx(ne.div,{"data-state":Jn(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),qe="DialogContent",us=l.forwardRef((e,t)=>{const n=is(qe,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=we(qe,e.__scopeDialog);return p.jsx(ke,{present:r||s.open,children:s.modal?p.jsx(hu,{...o,ref:t}):p.jsx(gu,{...o,ref:t})})});us.displayName=qe;var hu=l.forwardRef((e,t)=>{const n=we(qe,e.__scopeDialog),r=l.useRef(null),o=ae(t,n.contentRef,r);return l.useEffect(()=>{const s=r.current;if(s)return rs(s)},[]),p.jsx(ds,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:L(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:L(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,i=a.button===0&&a.ctrlKey===!0;(a.button===2||i)&&s.preventDefault()}),onFocusOutside:L(e.onFocusOutside,s=>s.preventDefault())})}),gu=l.forwardRef((e,t)=>{const n=we(qe,e.__scopeDialog),r=l.useRef(!1),o=l.useRef(!1);return p.jsx(ds,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,i;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(r.current||(i=n.triggerRef.current)==null||i.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var c,f;(c=e.onInteractOutside)==null||c.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;((f=n.triggerRef.current)==null?void 0:f.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),ds=l.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,i=we(qe,n),c=l.useRef(null),f=ae(t,c);return Wo(),p.jsxs(p.Fragment,{children:[p.jsx(Hn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:p.jsx(Lt,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":Jn(i.open),...a,ref:f,onDismiss:()=>i.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(vu,{titleId:i.titleId}),p.jsx(xu,{contentRef:c,descriptionId:i.descriptionId})]})]})}),Zn="DialogTitle",fs=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=we(Zn,n);return p.jsx(ne.h2,{id:o.titleId,...r,ref:t})});fs.displayName=Zn;var ps="DialogDescription",ms=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=we(ps,n);return p.jsx(ne.p,{id:o.descriptionId,...r,ref:t})});ms.displayName=ps;var hs="DialogClose",gs=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=we(hs,n);return p.jsx(ne.button,{type:"button",...r,ref:t,onClick:L(e.onClick,()=>o.onOpenChange(!1))})});gs.displayName=hs;function Jn(e){return e?"open":"closed"}var vs="DialogTitleWarning",[O0,bs]=Qc(vs,{contentName:qe,titleName:Zn,docsSlug:"dialog"}),vu=({titleId:e})=>{const t=bs(vs),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
178
+ `)},Zu=0,ct=[];function Ju(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),o=u.useState(Zu++)[0],a=u.useState(ua)[0],s=u.useRef(e);u.useEffect(function(){s.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=xu([e.lockRef.current],(e.shards||[]).map(va),!0).filter(Boolean);return g.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=u.useCallback(function(g,x){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!s.current.allowPinchZoom;var v=Xt(g),w=n.current,S="deltaX"in g?g.deltaX:w[0]-v[0],E="deltaY"in g?g.deltaY:w[1]-v[1],_,N=g.target,M=Math.abs(S)>Math.abs(E)?"h":"v";if("touches"in g&&M==="h"&&N.type==="range")return!1;var C=pa(M,N);if(!C)return!0;if(C?_=M:(_=M==="v"?"h":"v",C=pa(M,N)),!C)return!1;if(!r.current&&"changedTouches"in g&&(S||E)&&(r.current=_),!_)return!0;var j=r.current||_;return Yu(j,x,g,j==="h"?S:E)},[]),l=u.useCallback(function(g){var x=g;if(!(!ct.length||ct[ct.length-1]!==a)){var v="deltaY"in x?ga(x):Xt(x),w=t.current.filter(function(_){return _.name===x.type&&(_.target===x.target||x.target===_.shadowParent)&&qu(_.delta,v)})[0];if(w&&w.should){x.cancelable&&x.preventDefault();return}if(!w){var S=(s.current.shards||[]).map(va).filter(Boolean).filter(function(_){return _.contains(x.target)}),E=S.length>0?i(x,S[0]):!s.current.noIsolation;E&&x.cancelable&&x.preventDefault()}}},[]),p=u.useCallback(function(g,x,v,w){var S={name:g,delta:x,target:v,should:w,shadowParent:Qu(v)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(E){return E!==S})},1)},[]),d=u.useCallback(function(g){n.current=Xt(g),r.current=void 0},[]),f=u.useCallback(function(g){p(g.type,ga(g),g.target,i(g,e.lockRef.current))},[]),m=u.useCallback(function(g){p(g.type,Xt(g),g.target,i(g,e.lockRef.current))},[]);u.useEffect(function(){return ct.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:m}),document.addEventListener("wheel",l,it),document.addEventListener("touchmove",l,it),document.addEventListener("touchstart",d,it),function(){ct=ct.filter(function(g){return g!==a}),document.removeEventListener("wheel",l,it),document.removeEventListener("touchmove",l,it),document.removeEventListener("touchstart",d,it)}},[]);var h=e.removeScrollBar,b=e.inert;return u.createElement(u.Fragment,null,b?u.createElement(a,{styles:Xu(o)}):null,h?u.createElement(Hu,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Qu(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ed=Au(la,Ju);var tr=u.forwardRef(function(e,t){return u.createElement(Yt,Re({},e,{ref:t,sideCar:ed}))});tr.classNames=Yt.classNames;var td=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},lt=new WeakMap,Zt=new WeakMap,Jt={},nr=0,ba=function(e){return e&&(e.host||ba(e.parentNode))},nd=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=ba(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},rd=function(e,t,n,r){var o=nd(t,Array.isArray(e)?e:[e]);Jt[n]||(Jt[n]=new WeakMap);var a=Jt[n],s=[],i=new Set,l=new Set(o),p=function(f){!f||i.has(f)||(i.add(f),p(f.parentNode))};o.forEach(p);var d=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(m){if(i.has(m))d(m);else try{var h=m.getAttribute(r),b=h!==null&&h!=="false",g=(lt.get(m)||0)+1,x=(a.get(m)||0)+1;lt.set(m,g),a.set(m,x),s.push(m),g===1&&b&&Zt.set(m,!0),x===1&&m.setAttribute(n,"true"),b||m.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",m,v)}})};return d(t),i.clear(),nr++,function(){s.forEach(function(f){var m=lt.get(f)-1,h=a.get(f)-1;lt.set(f,m),a.set(f,h),m||(Zt.has(f)||f.removeAttribute(r),Zt.delete(f)),h||f.removeAttribute(n)}),nr--,nr||(lt=new WeakMap,lt=new WeakMap,Zt=new WeakMap,Jt={})}},xa=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=td(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),rd(r,o,n,"aria-hidden")):function(){return null}},Qt="Dialog",[wa,T0]=Xe(Qt),[od,ye]=wa(Qt),ya=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,i=u.useRef(null),l=u.useRef(null),[p,d]=wt({prop:r,defaultProp:o??!1,onChange:a,caller:Qt});return c.jsx(od,{scope:t,triggerRef:i,contentRef:l,contentId:De(),titleId:De(),descriptionId:De(),open:p,onOpenChange:d,onOpenToggle:u.useCallback(()=>d(f=>!f),[d]),modal:s,children:n})};ya.displayName=Qt;var Ca="DialogTrigger",Sa=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ye(Ca,n),a=ie(t,o.triggerRef);return c.jsx(re.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ar(o.open),...r,ref:a,onClick:$(e.onClick,o.onOpenToggle)})});Sa.displayName=Ca;var rr="DialogPortal",[ad,Ea]=wa(rr,{forceMount:void 0}),_a=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=ye(rr,t);return c.jsx(ad,{scope:t,forceMount:n,children:u.Children.map(r,s=>c.jsx(Ie,{present:n||a.open,children:c.jsx(qn,{asChild:!0,container:o,children:s})}))})};_a.displayName=rr;var en="DialogOverlay",Ra=u.forwardRef((e,t)=>{const n=Ea(en,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=ye(en,e.__scopeDialog);return a.modal?c.jsx(Ie,{present:r||a.open,children:c.jsx(id,{...o,ref:t})}):null});Ra.displayName=en;var sd=tt("DialogOverlay.RemoveScroll"),id=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ye(en,n);return c.jsx(tr,{as:sd,allowPinchZoom:!0,shards:[o.contentRef],children:c.jsx(re.div,{"data-state":ar(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Ze="DialogContent",Ma=u.forwardRef((e,t)=>{const n=Ea(Ze,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=ye(Ze,e.__scopeDialog);return c.jsx(Ie,{present:r||a.open,children:a.modal?c.jsx(cd,{...o,ref:t}):c.jsx(ld,{...o,ref:t})})});Ma.displayName=Ze;var cd=u.forwardRef((e,t)=>{const n=ye(Ze,e.__scopeDialog),r=u.useRef(null),o=ie(t,n.contentRef,r);return u.useEffect(()=>{const a=r.current;if(a)return xa(a)},[]),c.jsx(Aa,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:$(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:$(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&a.preventDefault()}),onFocusOutside:$(e.onFocusOutside,a=>a.preventDefault())})}),ld=u.forwardRef((e,t)=>{const n=ye(Ze,e.__scopeDialog),r=u.useRef(!1),o=u.useRef(!1);return c.jsx(Aa,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(r.current||(i=n.triggerRef.current)==null||i.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var l,p;(l=e.onInteractOutside)==null||l.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((p=n.triggerRef.current)==null?void 0:p.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Aa=u.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,i=ye(Ze,n),l=u.useRef(null),p=ie(t,l);return oa(),c.jsxs(c.Fragment,{children:[c.jsx(Yn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:c.jsx(Gt,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":ar(i.open),...s,ref:p,onDismiss:()=>i.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx(ud,{titleId:i.titleId}),c.jsx(fd,{contentRef:l,descriptionId:i.descriptionId})]})]})}),or="DialogTitle",Na=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ye(or,n);return c.jsx(re.h2,{id:o.titleId,...r,ref:t})});Na.displayName=or;var Ta="DialogDescription",Oa=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ye(Ta,n);return c.jsx(re.p,{id:o.descriptionId,...r,ref:t})});Oa.displayName=Ta;var ka="DialogClose",Pa=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ye(ka,n);return c.jsx(re.button,{type:"button",...r,ref:t,onClick:$(e.onClick,()=>o.onOpenChange(!1))})});Pa.displayName=ka;function ar(e){return e?"open":"closed"}var Da="DialogTitleWarning",[O0,Ia]=Kl(Da,{contentName:Ze,titleName:or,docsSlug:"dialog"}),ud=({titleId:e})=>{const t=Ia(Da),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
169
179
 
170
180
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
171
181
 
172
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},bu="DialogDescriptionWarning",xu=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${bs(bu).contentName}}.`;return l.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},wu=ss,yu=cs,xs=ls,ws=us,ys=fs,Cs=ms,Cu=gs;const Eu=wu,Su=yu,Es=l.forwardRef(({className:e,...t},n)=>p.jsx(xs,{className:B("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm 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}));Es.displayName=xs.displayName;const Ru=po("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{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"}}),Ss=l.forwardRef(({side:e="right",className:t,children:n,...r},o)=>p.jsxs(Su,{children:[p.jsx(Es,{}),p.jsxs(ws,{ref:o,className:B(Ru({side:e}),t),...r,children:[n,p.jsxs(Cu,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[p.jsx(cc,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Ss.displayName=ws.displayName;const Rs=({className:e,...t})=>p.jsx("div",{className:B("flex flex-col space-y-2 text-center sm:text-left",e),...t});Rs.displayName="SheetHeader";const _s=l.forwardRef(({className:e,...t},n)=>p.jsx(ys,{ref:n,className:B("text-lg font-semibold text-foreground",e),...t}));_s.displayName=ys.displayName;const As=l.forwardRef(({className:e,...t},n)=>p.jsx(Cs,{ref:n,className:B("text-sm text-muted-foreground",e),...t}));As.displayName=Cs.displayName;const _u=["top","right","bottom","left"],ze=Math.min,me=Math.max,Yt=Math.round,qt=Math.floor,Re=e=>({x:e,y:e}),Au={left:"right",right:"left",bottom:"top",top:"bottom"},Mu={start:"end",end:"start"};function Qn(e,t,n){return me(e,ze(t,n))}function De(e,t){return typeof e=="function"?e(t):e}function Ie(e){return e.split("-")[0]}function lt(e){return e.split("-")[1]}function er(e){return e==="x"?"y":"x"}function tr(e){return e==="y"?"height":"width"}function _e(e){return["top","bottom"].includes(Ie(e))?"y":"x"}function nr(e){return er(_e(e))}function Ou(e,t,n){n===void 0&&(n=!1);const r=lt(e),o=nr(e),s=tr(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=Xt(a)),[a,Xt(a)]}function Tu(e){const t=Xt(e);return[rr(e),t,rr(t)]}function rr(e){return e.replace(/start|end/g,t=>Mu[t])}function Nu(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:a;default:return[]}}function Pu(e,t,n,r){const o=lt(e);let s=Nu(Ie(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(rr)))),s}function Xt(e){return e.replace(/left|right|bottom|top/g,t=>Au[t])}function ku(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ms(e){return typeof e!="number"?ku(e):{top:e,right:e,bottom:e,left:e}}function Zt(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 Os(e,t,n){let{reference:r,floating:o}=e;const s=_e(t),a=nr(t),i=tr(a),c=Ie(t),f=s==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,m=r[i]/2-o[i]/2;let g;switch(c){case"top":g={x:u,y:r.y-o.height};break;case"bottom":g={x:u,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:d};break;case"left":g={x:r.x-o.width,y:d};break;default:g={x:r.x,y:r.y}}switch(lt(t)){case"start":g[a]-=m*(n&&f?-1:1);break;case"end":g[a]+=m*(n&&f?-1:1);break}return g}const Du=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,i=s.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let f=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Os(f,r,c),m=r,g={},b=0;for(let h=0;h<i.length;h++){const{name:x,fn:v}=i[h],{x:y,y:E,data:S,reset:_}=await v({x:u,y:d,initialPlacement:r,placement:m,strategy:o,middlewareData:g,rects:f,platform:a,elements:{reference:e,floating:t}});u=y??u,d=E??d,g={...g,[x]:{...g[x],...S}},_&&b<=50&&(b++,typeof _=="object"&&(_.placement&&(m=_.placement),_.rects&&(f=_.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):_.rects),{x:u,y:d}=Os(f,m,c)),h=-1)}return{x:u,y:d,placement:m,strategy:o,middlewareData:g}};async function xt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:a,elements:i,strategy:c}=e,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:m=!1,padding:g=0}=De(t,e),b=Ms(g),x=i[m?d==="floating"?"reference":"floating":d],v=Zt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(x)))==null||n?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:f,rootBoundary:u,strategy:c})),y=d==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),S=await(s.isElement==null?void 0:s.isElement(E))?await(s.getScale==null?void 0:s.getScale(E))||{x:1,y:1}:{x:1,y:1},_=Zt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:y,offsetParent:E,strategy:c}):y);return{top:(v.top-_.top+b.top)/S.y,bottom:(_.bottom-v.bottom+b.bottom)/S.y,left:(v.left-_.left+b.left)/S.x,right:(_.right-v.right+b.right)/S.x}}const Iu=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:i,middlewareData:c}=t,{element:f,padding:u=0}=De(e,t)||{};if(f==null)return{};const d=Ms(u),m={x:n,y:r},g=nr(o),b=tr(g),h=await a.getDimensions(f),x=g==="y",v=x?"top":"left",y=x?"bottom":"right",E=x?"clientHeight":"clientWidth",S=s.reference[b]+s.reference[g]-m[g]-s.floating[b],_=m[g]-s.reference[g],M=await(a.getOffsetParent==null?void 0:a.getOffsetParent(f));let A=M?M[E]:0;(!A||!await(a.isElement==null?void 0:a.isElement(M)))&&(A=i.floating[E]||s.floating[b]);const C=S/2-_/2,D=A/2-h[b]/2-1,I=ze(d[v],D),G=ze(d[y],D),z=I,V=A-h[b]-G,H=A/2-h[b]/2+C,q=Qn(z,H,V),F=!c.arrow&&lt(o)!=null&&H!==q&&s.reference[b]/2-(H<z?I:G)-h[b]/2<0,U=F?H<z?H-z:H-V:0;return{[g]:m[g]+U,data:{[g]:q,centerOffset:H-q-U,...F&&{alignmentOffset:U}},reset:F}}}),ju=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:a,initialPlacement:i,platform:c,elements:f}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:h=!0,...x}=De(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=Ie(o),y=_e(i),E=Ie(i)===i,S=await(c.isRTL==null?void 0:c.isRTL(f.floating)),_=m||(E||!h?[Xt(i)]:Tu(i)),M=b!=="none";!m&&M&&_.push(...Pu(i,h,b,S));const A=[i,..._],C=await xt(t,x),D=[];let I=((r=s.flip)==null?void 0:r.overflows)||[];if(u&&D.push(C[v]),d){const H=Ou(o,a,S);D.push(C[H[0]],C[H[1]])}if(I=[...I,{placement:o,overflows:D}],!D.every(H=>H<=0)){var G,z;const H=(((G=s.flip)==null?void 0:G.index)||0)+1,q=A[H];if(q&&(!(d==="alignment"?y!==_e(q):!1)||I.every(R=>R.overflows[0]>0&&_e(R.placement)===y)))return{data:{index:H,overflows:I},reset:{placement:q}};let F=(z=I.filter(U=>U.overflows[0]<=0).sort((U,R)=>U.overflows[1]-R.overflows[1])[0])==null?void 0:z.placement;if(!F)switch(g){case"bestFit":{var V;const U=(V=I.filter(R=>{if(M){const O=_e(R.placement);return O===y||O==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(O=>O>0).reduce((O,w)=>O+w,0)]).sort((R,O)=>R[1]-O[1])[0])==null?void 0:V[0];U&&(F=U);break}case"initialPlacement":F=i;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function Ts(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ns(e){return _u.some(t=>e[t]>=0)}const Lu=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=De(e,t);switch(r){case"referenceHidden":{const s=await xt(t,{...o,elementContext:"reference"}),a=Ts(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ns(a)}}}case"escaped":{const s=await xt(t,{...o,altBoundary:!0}),a=Ts(s,n.floating);return{data:{escapedOffsets:a,escaped:Ns(a)}}}default:return{}}}}};async function Fu(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Ie(n),i=lt(n),c=_e(n)==="y",f=["left","top"].includes(a)?-1:1,u=s&&c?-1:1,d=De(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:b}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return i&&typeof b=="number"&&(g=i==="end"?b*-1:b),c?{x:g*u,y:m*f}:{x:m*f,y:g*u}}const $u=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:i}=t,c=await Fu(t,e);return a===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:a}}}}},Vu=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:i={fn:x=>{let{x:v,y}=x;return{x:v,y}}},...c}=De(e,t),f={x:n,y:r},u=await xt(t,c),d=_e(Ie(o)),m=er(d);let g=f[m],b=f[d];if(s){const x=m==="y"?"top":"left",v=m==="y"?"bottom":"right",y=g+u[x],E=g-u[v];g=Qn(y,g,E)}if(a){const x=d==="y"?"top":"left",v=d==="y"?"bottom":"right",y=b+u[x],E=b-u[v];b=Qn(y,b,E)}const h=i.fn({...t,[m]:g,[d]:b});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[m]:s,[d]:a}}}}}},Hu=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:i=0,mainAxis:c=!0,crossAxis:f=!0}=De(e,t),u={x:n,y:r},d=_e(o),m=er(d);let g=u[m],b=u[d];const h=De(i,t),x=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){const E=m==="y"?"height":"width",S=s.reference[m]-s.floating[E]+x.mainAxis,_=s.reference[m]+s.reference[E]-x.mainAxis;g<S?g=S:g>_&&(g=_)}if(f){var v,y;const E=m==="y"?"width":"height",S=["top","left"].includes(Ie(o)),_=s.reference[d]-s.floating[E]+(S&&((v=a.offset)==null?void 0:v[d])||0)+(S?0:x.crossAxis),M=s.reference[d]+s.reference[E]+(S?0:((y=a.offset)==null?void 0:y[d])||0)-(S?x.crossAxis:0);b<_?b=_:b>M&&(b=M)}return{[m]:g,[d]:b}}}},Wu=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:a,elements:i}=t,{apply:c=()=>{},...f}=De(e,t),u=await xt(t,f),d=Ie(o),m=lt(o),g=_e(o)==="y",{width:b,height:h}=s.floating;let x,v;d==="top"||d==="bottom"?(x=d,v=m===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(v=d,x=m==="end"?"top":"bottom");const y=h-u.top-u.bottom,E=b-u.left-u.right,S=ze(h-u[x],y),_=ze(b-u[v],E),M=!t.middlewareData.shift;let A=S,C=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(C=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=y),M&&!m){const I=me(u.left,0),G=me(u.right,0),z=me(u.top,0),V=me(u.bottom,0);g?C=b-2*(I!==0||G!==0?I+G:me(u.left,u.right)):A=h-2*(z!==0||V!==0?z+V:me(u.top,u.bottom))}await c({...t,availableWidth:C,availableHeight:A});const D=await a.getDimensions(i.floating);return b!==D.width||h!==D.height?{reset:{rects:!0}}:{}}}};function Jt(){return typeof window<"u"}function ut(e){return Ps(e)?(e.nodeName||"").toLowerCase():"#document"}function he(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ae(e){var t;return(t=(Ps(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ps(e){return Jt()?e instanceof Node||e instanceof he(e).Node:!1}function ye(e){return Jt()?e instanceof Element||e instanceof he(e).Element:!1}function Me(e){return Jt()?e instanceof HTMLElement||e instanceof he(e).HTMLElement:!1}function ks(e){return!Jt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof he(e).ShadowRoot}function wt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ce(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function zu(e){return["table","td","th"].includes(ut(e))}function Qt(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function or(e){const t=sr(),n=ye(e)?Ce(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 Bu(e){let t=Be(e);for(;Me(t)&&!dt(t);){if(or(t))return t;if(Qt(t))return null;t=Be(t)}return null}function sr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function dt(e){return["html","body","#document"].includes(ut(e))}function Ce(e){return he(e).getComputedStyle(e)}function en(e){return ye(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Be(e){if(ut(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ks(e)&&e.host||Ae(e);return ks(t)?t.host:t}function Ds(e){const t=Be(e);return dt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Me(t)&&wt(t)?t:Ds(t)}function yt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ds(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=he(o);if(s){const i=ar(a);return t.concat(a,a.visualViewport||[],wt(o)?o:[],i&&n?yt(i):[])}return t.concat(o,yt(o,[],n))}function ar(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Is(e){const t=Ce(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Me(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,i=Yt(n)!==s||Yt(r)!==a;return i&&(n=s,r=a),{width:n,height:r,$:i}}function ir(e){return ye(e)?e:e.contextElement}function ft(e){const t=ir(e);if(!Me(t))return Re(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Is(t);let a=(s?Yt(n.width):n.width)/r,i=(s?Yt(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const Gu=Re(0);function js(e){const t=he(e);return!sr()||!t.visualViewport?Gu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Uu(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==he(e)?!1:t}function Xe(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=ir(e);let a=Re(1);t&&(r?ye(r)&&(a=ft(r)):a=ft(e));const i=Uu(s,n,r)?js(s):Re(0);let c=(o.left+i.x)/a.x,f=(o.top+i.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(s){const m=he(s),g=r&&ye(r)?he(r):r;let b=m,h=ar(b);for(;h&&r&&g!==b;){const x=ft(h),v=h.getBoundingClientRect(),y=Ce(h),E=v.left+(h.clientLeft+parseFloat(y.paddingLeft))*x.x,S=v.top+(h.clientTop+parseFloat(y.paddingTop))*x.y;c*=x.x,f*=x.y,u*=x.x,d*=x.y,c+=E,f+=S,b=he(h),h=ar(b)}}return Zt({width:u,height:d,x:c,y:f})}function cr(e,t){const n=en(e).scrollLeft;return t?t.left+n:Xe(Ae(e)).left+n}function Ls(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:cr(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function Ku(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=Ae(r),i=t?Qt(t.floating):!1;if(r===a||i&&s)return n;let c={scrollLeft:0,scrollTop:0},f=Re(1);const u=Re(0),d=Me(r);if((d||!d&&!s)&&((ut(r)!=="body"||wt(a))&&(c=en(r)),Me(r))){const g=Xe(r);f=ft(r),u.x=g.x+r.clientLeft,u.y=g.y+r.clientTop}const m=a&&!d&&!s?Ls(a,c,!0):Re(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-c.scrollLeft*f.x+u.x+m.x,y:n.y*f.y-c.scrollTop*f.y+u.y+m.y}}function Yu(e){return Array.from(e.getClientRects())}function qu(e){const t=Ae(e),n=en(e),r=e.ownerDocument.body,o=me(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=me(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+cr(e);const i=-n.scrollTop;return Ce(r).direction==="rtl"&&(a+=me(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:i}}function Xu(e,t){const n=he(e),r=Ae(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,i=0,c=0;if(o){s=o.width,a=o.height;const f=sr();(!f||f&&t==="fixed")&&(i=o.offsetLeft,c=o.offsetTop)}return{width:s,height:a,x:i,y:c}}function Zu(e,t){const n=Xe(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Me(e)?ft(e):Re(1),a=e.clientWidth*s.x,i=e.clientHeight*s.y,c=o*s.x,f=r*s.y;return{width:a,height:i,x:c,y:f}}function Fs(e,t,n){let r;if(t==="viewport")r=Xu(e,n);else if(t==="document")r=qu(Ae(e));else if(ye(t))r=Zu(t,n);else{const o=js(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Zt(r)}function $s(e,t){const n=Be(e);return n===t||!ye(n)||dt(n)?!1:Ce(n).position==="fixed"||$s(n,t)}function Ju(e,t){const n=t.get(e);if(n)return n;let r=yt(e,[],!1).filter(i=>ye(i)&&ut(i)!=="body"),o=null;const s=Ce(e).position==="fixed";let a=s?Be(e):e;for(;ye(a)&&!dt(a);){const i=Ce(a),c=or(a);!c&&i.position==="fixed"&&(o=null),(s?!c&&!o:!c&&i.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||wt(a)&&!c&&$s(e,a))?r=r.filter(u=>u!==a):o=i,a=Be(a)}return t.set(e,r),r}function Qu(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Qt(t)?[]:Ju(t,this._c):[].concat(n),r],i=a[0],c=a.reduce((f,u)=>{const d=Fs(t,u,o);return f.top=me(d.top,f.top),f.right=ze(d.right,f.right),f.bottom=ze(d.bottom,f.bottom),f.left=me(d.left,f.left),f},Fs(t,i,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function ed(e){const{width:t,height:n}=Is(e);return{width:t,height:n}}function td(e,t,n){const r=Me(t),o=Ae(t),s=n==="fixed",a=Xe(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const c=Re(0);function f(){c.x=cr(o)}if(r||!r&&!s)if((ut(t)!=="body"||wt(o))&&(i=en(t)),r){const g=Xe(t,!0,s,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else o&&f();s&&!r&&o&&f();const u=o&&!r&&!s?Ls(o,i):Re(0),d=a.left+i.scrollLeft-c.x-u.x,m=a.top+i.scrollTop-c.y-u.y;return{x:d,y:m,width:a.width,height:a.height}}function lr(e){return Ce(e).position==="static"}function Vs(e,t){if(!Me(e)||Ce(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ae(e)===n&&(n=n.ownerDocument.body),n}function Hs(e,t){const n=he(e);if(Qt(e))return n;if(!Me(e)){let o=Be(e);for(;o&&!dt(o);){if(ye(o)&&!lr(o))return o;o=Be(o)}return n}let r=Vs(e,t);for(;r&&zu(r)&&lr(r);)r=Vs(r,t);return r&&dt(r)&&lr(r)&&!or(r)?n:r||Bu(e)||n}const nd=async function(e){const t=this.getOffsetParent||Hs,n=this.getDimensions,r=await n(e.floating);return{reference:td(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function rd(e){return Ce(e).direction==="rtl"}const od={convertOffsetParentRelativeRectToViewportRelativeRect:Ku,getDocumentElement:Ae,getClippingRect:Qu,getOffsetParent:Hs,getElementRects:nd,getClientRects:Yu,getDimensions:ed,getScale:ft,isElement:ye,isRTL:rd};function Ws(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function sd(e,t){let n=null,r;const o=Ae(e);function s(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function a(i,c){i===void 0&&(i=!1),c===void 0&&(c=1),s();const f=e.getBoundingClientRect(),{left:u,top:d,width:m,height:g}=f;if(i||t(),!m||!g)return;const b=qt(d),h=qt(o.clientWidth-(u+m)),x=qt(o.clientHeight-(d+g)),v=qt(u),E={rootMargin:-b+"px "+-h+"px "+-x+"px "+-v+"px",threshold:me(0,ze(1,c))||1};let S=!0;function _(M){const A=M[0].intersectionRatio;if(A!==c){if(!S)return a();A?a(!1,A):r=setTimeout(()=>{a(!1,1e-7)},1e3)}A===1&&!Ws(f,e.getBoundingClientRect())&&a(),S=!1}try{n=new IntersectionObserver(_,{...E,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,E)}n.observe(e)}return a(!0),s}function ad(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,f=ir(e),u=o||s?[...f?yt(f):[],...yt(t)]:[];u.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const d=f&&i?sd(f,n):null;let m=-1,g=null;a&&(g=new ResizeObserver(v=>{let[y]=v;y&&y.target===f&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var E;(E=g)==null||E.observe(t)})),n()}),f&&!c&&g.observe(f),g.observe(t));let b,h=c?Xe(e):null;c&&x();function x(){const v=Xe(e);h&&!Ws(h,v)&&n(),h=v,b=requestAnimationFrame(x)}return n(),()=>{var v;u.forEach(y=>{o&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),d==null||d(),(v=g)==null||v.disconnect(),g=null,c&&cancelAnimationFrame(b)}}const id=$u,cd=Vu,ld=ju,ud=Wu,dd=Lu,zs=Iu,fd=Hu,pd=(e,t,n)=>{const r=new Map,o={platform:od,...n},s={...o.platform,_c:r};return Du(e,t,{...o,platform:s})};var md=typeof document<"u",hd=function(){},tn=md?k.useLayoutEffect:hd;function nn(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(!nn(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 s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!nn(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Bs(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Gs(e,t){const n=Bs(e);return Math.round(t*n)/n}function ur(e){const t=l.useRef(e);return tn(()=>{t.current=e}),t}function gd(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:i=!0,whileElementsMounted:c,open:f}=e,[u,d]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=l.useState(r);nn(m,r)||g(r);const[b,h]=l.useState(null),[x,v]=l.useState(null),y=l.useCallback(R=>{R!==M.current&&(M.current=R,h(R))},[]),E=l.useCallback(R=>{R!==A.current&&(A.current=R,v(R))},[]),S=s||b,_=a||x,M=l.useRef(null),A=l.useRef(null),C=l.useRef(u),D=c!=null,I=ur(c),G=ur(o),z=ur(f),V=l.useCallback(()=>{if(!M.current||!A.current)return;const R={placement:t,strategy:n,middleware:m};G.current&&(R.platform=G.current),pd(M.current,A.current,R).then(O=>{const w={...O,isPositioned:z.current!==!1};H.current&&!nn(C.current,w)&&(C.current=w,Tr.flushSync(()=>{d(w)}))})},[m,t,n,G,z]);tn(()=>{f===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,d(R=>({...R,isPositioned:!1})))},[f]);const H=l.useRef(!1);tn(()=>(H.current=!0,()=>{H.current=!1}),[]),tn(()=>{if(S&&(M.current=S),_&&(A.current=_),S&&_){if(I.current)return I.current(S,_,V);V()}},[S,_,V,I,D]);const q=l.useMemo(()=>({reference:M,floating:A,setReference:y,setFloating:E}),[y,E]),F=l.useMemo(()=>({reference:S,floating:_}),[S,_]),U=l.useMemo(()=>{const R={position:n,left:0,top:0};if(!F.floating)return R;const O=Gs(F.floating,u.x),w=Gs(F.floating,u.y);return i?{...R,transform:"translate("+O+"px, "+w+"px)",...Bs(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:w}},[n,i,F.floating,u.x,u.y]);return l.useMemo(()=>({...u,update:V,refs:q,elements:F,floatingStyles:U}),[u,V,q,F,U])}const vd=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?zs({element:r.current,padding:o}).fn(n):{}:r?zs({element:r,padding:o}).fn(n):{}}}},bd=(e,t)=>({...id(e),options:[e,t]}),xd=(e,t)=>({...cd(e),options:[e,t]}),wd=(e,t)=>({...fd(e),options:[e,t]}),yd=(e,t)=>({...ld(e),options:[e,t]}),Cd=(e,t)=>({...ud(e),options:[e,t]}),Ed=(e,t)=>({...dd(e),options:[e,t]}),Sd=(e,t)=>({...vd(e),options:[e,t]});var Rd="Arrow",Us=l.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return p.jsx(ne.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});Us.displayName=Rd;var _d=Us;function Ad(e){const[t,n]=l.useState(void 0);return He(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,i;if("borderBoxSize"in s){const c=s.borderBoxSize,f=Array.isArray(c)?c[0]:c;a=f.inlineSize,i=f.blockSize}else a=e.offsetWidth,i=e.offsetHeight;n({width:a,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var dr="Popper",[Ks,rn]=Ye(dr),[Md,Ys]=Ks(dr),qs=e=>{const{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return p.jsx(Md,{scope:t,anchor:r,onAnchorChange:o,children:n})};qs.displayName=dr;var Xs="PopperAnchor",Zs=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Ys(Xs,n),a=l.useRef(null),i=ae(t,a);return l.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:p.jsx(ne.div,{...o,ref:i})});Zs.displayName=Xs;var fr="PopperContent",[Od,Td]=Ks(fr),Js=l.forwardRef((e,t)=>{var K,Q,ee,se,Ee,Ge;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:i=0,avoidCollisions:c=!0,collisionBoundary:f=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:m=!1,updatePositionStrategy:g="optimized",onPlaced:b,...h}=e,x=Ys(fr,n),[v,y]=l.useState(null),E=ae(t,Z=>y(Z)),[S,_]=l.useState(null),M=Ad(S),A=(M==null?void 0:M.width)??0,C=(M==null?void 0:M.height)??0,D=r+(s!=="center"?"-"+s:""),I=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},G=Array.isArray(f)?f:[f],z=G.length>0,V={padding:I,boundary:G.filter(Pd),altBoundary:z},{refs:H,floatingStyles:q,placement:F,isPositioned:U,middlewareData:R}=gd({strategy:"fixed",placement:D,whileElementsMounted:(...Z)=>ad(...Z,{animationFrame:g==="always"}),elements:{reference:x.anchor},middleware:[bd({mainAxis:o+C,alignmentAxis:a}),c&&xd({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?wd():void 0,...V}),c&&yd({...V}),Cd({...V,apply:({elements:Z,rects:J,availableWidth:ce,availableHeight:re})=>{const{width:ge,height:Ue}=J.reference,oe=Z.floating.style;oe.setProperty("--radix-popper-available-width",`${ce}px`),oe.setProperty("--radix-popper-available-height",`${re}px`),oe.setProperty("--radix-popper-anchor-width",`${ge}px`),oe.setProperty("--radix-popper-anchor-height",`${Ue}px`)}}),S&&Sd({element:S,padding:i}),kd({arrowWidth:A,arrowHeight:C}),m&&Ed({strategy:"referenceHidden",...V})]}),[O,w]=ta(F),P=Pe(b);He(()=>{U&&(P==null||P())},[U,P]);const j=(K=R.arrow)==null?void 0:K.x,$=(Q=R.arrow)==null?void 0:Q.y,X=((ee=R.arrow)==null?void 0:ee.centerOffset)!==0,[te,le]=l.useState();return He(()=>{v&&le(window.getComputedStyle(v).zIndex)},[v]),p.jsx("div",{ref:H.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:U?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:te,"--radix-popper-transform-origin":[(se=R.transformOrigin)==null?void 0:se.x,(Ee=R.transformOrigin)==null?void 0:Ee.y].join(" "),...((Ge=R.hide)==null?void 0:Ge.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(Od,{scope:n,placedSide:O,onArrowChange:_,arrowX:j,arrowY:$,shouldHideArrow:X,children:p.jsx(ne.div,{"data-side":O,"data-align":w,...h,ref:E,style:{...h.style,animation:U?void 0:"none"}})})})});Js.displayName=fr;var Qs="PopperArrow",Nd={top:"bottom",right:"left",bottom:"top",left:"right"},ea=l.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Td(Qs,r),a=Nd[s.placedSide];return p.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:p.jsx(_d,{...o,ref:n,style:{...o.style,display:"block"}})})});ea.displayName=Qs;function Pd(e){return e!==null}var kd=e=>({name:"transformOrigin",options:e,fn(t){var x,v,y;const{placement:n,rects:r,middlewareData:o}=t,a=((x=o.arrow)==null?void 0:x.centerOffset)!==0,i=a?0:e.arrowWidth,c=a?0:e.arrowHeight,[f,u]=ta(n),d={start:"0%",center:"50%",end:"100%"}[u],m=(((v=o.arrow)==null?void 0:v.x)??0)+i/2,g=(((y=o.arrow)==null?void 0:y.y)??0)+c/2;let b="",h="";return f==="bottom"?(b=a?d:`${m}px`,h=`${-c}px`):f==="top"?(b=a?d:`${m}px`,h=`${r.floating.height+c}px`):f==="right"?(b=`${-c}px`,h=a?d:`${g}px`):f==="left"&&(b=`${r.floating.width+c}px`,h=a?d:`${g}px`),{data:{x:b,y:h}}}});function ta(e){const[t,n="center"]=e.split("-");return[t,n]}var Dd=qs,na=Zs,ra=Js,oa=ea,Id=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),jd="VisuallyHidden",sa=l.forwardRef((e,t)=>p.jsx(ne.span,{...e,ref:t,style:{...Id,...e.style}}));sa.displayName=jd;var Ld=sa,[on,T0]=Ye("Tooltip",[rn]),pr=rn(),aa="TooltipProvider",Fd=700,ia="tooltip.open",[$d,ca]=on(aa),la=e=>{const{__scopeTooltip:t,delayDuration:n=Fd,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,a=l.useRef(!0),i=l.useRef(!1),c=l.useRef(0);return l.useEffect(()=>{const f=c.current;return()=>window.clearTimeout(f)},[]),p.jsx($d,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:l.useCallback(()=>{window.clearTimeout(c.current),a.current=!1},[]),onClose:l.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:l.useCallback(f=>{i.current=f},[]),disableHoverableContent:o,children:s})};la.displayName=aa;var ua="Tooltip",[N0,sn]=on(ua),mr="TooltipTrigger",Vd=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=sn(mr,n),s=ca(mr,n),a=pr(n),i=l.useRef(null),c=ae(t,i,o.onTriggerChange),f=l.useRef(!1),u=l.useRef(!1),d=l.useCallback(()=>f.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),p.jsx(na,{asChild:!0,...a,children:p.jsx(ne.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:L(e.onPointerMove,m=>{m.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:L(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:L(e.onPointerDown,()=>{o.open&&o.onClose(),f.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:L(e.onFocus,()=>{f.current||o.onOpen()}),onBlur:L(e.onBlur,o.onClose),onClick:L(e.onClick,o.onClose)})})});Vd.displayName=mr;var Hd="TooltipPortal",[P0,Wd]=on(Hd,{forceMount:void 0}),pt="TooltipContent",da=l.forwardRef((e,t)=>{const n=Wd(pt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,a=sn(pt,e.__scopeTooltip);return p.jsx(ke,{present:r||a.open,children:a.disableHoverableContent?p.jsx(fa,{side:o,...s,ref:t}):p.jsx(zd,{side:o,...s,ref:t})})}),zd=l.forwardRef((e,t)=>{const n=sn(pt,e.__scopeTooltip),r=ca(pt,e.__scopeTooltip),o=l.useRef(null),s=ae(t,o),[a,i]=l.useState(null),{trigger:c,onClose:f}=n,u=o.current,{onPointerInTransitChange:d}=r,m=l.useCallback(()=>{i(null),d(!1)},[d]),g=l.useCallback((b,h)=>{const x=b.currentTarget,v={x:b.clientX,y:b.clientY},y=Yd(v,x.getBoundingClientRect()),E=qd(v,y),S=Xd(h.getBoundingClientRect()),_=Jd([...E,...S]);i(_),d(!0)},[d]);return l.useEffect(()=>()=>m(),[m]),l.useEffect(()=>{if(c&&u){const b=x=>g(x,u),h=x=>g(x,c);return c.addEventListener("pointerleave",b),u.addEventListener("pointerleave",h),()=>{c.removeEventListener("pointerleave",b),u.removeEventListener("pointerleave",h)}}},[c,u,g,m]),l.useEffect(()=>{if(a){const b=h=>{const x=h.target,v={x:h.clientX,y:h.clientY},y=(c==null?void 0:c.contains(x))||(u==null?void 0:u.contains(x)),E=!Zd(v,a);y?m():E&&(m(),f())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[c,u,a,f,m]),p.jsx(fa,{...e,ref:s})}),[Bd,Gd]=on(ua,{isInside:!1}),Ud=uc("TooltipContent"),fa=l.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...i}=e,c=sn(pt,n),f=pr(n),{onClose:u}=c;return l.useEffect(()=>(document.addEventListener(ia,u),()=>document.removeEventListener(ia,u)),[u]),l.useEffect(()=>{if(c.trigger){const d=m=>{const g=m.target;g!=null&&g.contains(c.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[c.trigger,u]),p.jsx(Lt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:p.jsxs(ra,{"data-state":c.stateAttribute,...f,...i,ref:t,style:{...i.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:[p.jsx(Ud,{children:r}),p.jsx(Bd,{scope:n,isInside:!0,children:p.jsx(Ld,{id:c.contentId,role:"tooltip",children:o||r})})]})})});da.displayName=pt;var pa="TooltipArrow",Kd=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=pr(n);return Gd(pa,n).isInside?null:p.jsx(oa,{...o,...r,ref:t})});Kd.displayName=pa;function Yd(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function qd(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 Xd(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 Zd(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const i=t[s],c=t[a],f=i.x,u=i.y,d=c.x,m=c.y;u>r!=m>r&&n<(d-f)*(r-u)/(m-u)+f&&(o=!o)}return o}function Jd(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),Qd(t)}function Qd(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 s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.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 s=n[n.length-1],a=n[n.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.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 ef=la,ma=da;const tf=ef,nf=l.forwardRef(({className:e,sideOffset:t=4,...n},r)=>p.jsx(ma,{ref:r,sideOffset:t,className:B("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md 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}));nf.displayName=ma.displayName;const rf="sidebar_state",of=60*60*24*7,sf="16rem",af="18rem",cf="3rem",lf="b",ha=l.createContext(null);function hr(){const e=l.useContext(ha);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function uf({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:s,...a}){const i=mc(),[c,f]=l.useState(!1),[u,d]=l.useState(e),m=t??u,g=l.useCallback(v=>{const y=typeof v=="function"?v(m):v;n?n(y):d(y),document.cookie=`${rf}=${y}; path=/; max-age=${of}`},[n,m]),b=l.useCallback(()=>i?f(v=>!v):g(v=>!v),[i,g,f]);l.useEffect(()=>{const v=y=>{y.key===lf&&(y.metaKey||y.ctrlKey)&&(y.preventDefault(),b())};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)},[b]);const h=m?"expanded":"collapsed",x=l.useMemo(()=>({state:h,open:m,setOpen:g,isMobile:i,openMobile:c,setOpenMobile:f,toggleSidebar:b}),[h,m,g,i,c,f,b]);return p.jsx(ha.Provider,{value:x,children:p.jsx(tf,{delayDuration:0,children:p.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":sf,"--sidebar-width-icon":cf,...o},className:B("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",r),...a,children:s})})})}function df({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...s}){const{isMobile:a,state:i,openMobile:c,setOpenMobile:f}=hr();return n==="none"?p.jsx("div",{"data-slot":"sidebar",className:B("bg-white text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",r),...s,children:o}):a?p.jsx(Eu,{open:c,onOpenChange:f,...s,children:p.jsxs(Ss,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-white text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":af},side:e,children:[p.jsxs(Rs,{className:"sr-only",children:[p.jsx(_s,{children:"Sidebar"}),p.jsx(As,{children:"Displays the mobile sidebar."})]}),p.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):p.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":i,"data-collapsible":i==="collapsed"?n:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:[p.jsx("div",{"data-slot":"sidebar-gap",className:B("relative w-(--sidebar-width) bg-white transition-[width] duration-200 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)")}),p.jsx("div",{"data-slot":"sidebar-container",className:B("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 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),...s,children:p.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-white group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col px-1 py-2 group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:o})})]})}function ff({className:e,onClick:t,...n}){const{toggleSidebar:r}=hr();return p.jsxs(jn,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:B("size-7",e),onClick:o=>{t==null||t(o),r()},...n,children:[p.jsx(ic,{}),p.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function pf({className:e,...t}){const{toggleSidebar:n}=hr();return p.jsx("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:B("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] 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","hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})}function mf({className:e,...t}){return p.jsx("main",{"data-slot":"sidebar-inset",className:B("bg-white relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",e),...t})}function hf({className:e,...t}){return p.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:B("flex flex-col gap-2 p-2",e),...t})}function gf({className:e,...t}){return p.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:B("flex min-h-0 flex-1 flex-col overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})}function vf({className:e,...t}){return p.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:B("relative flex w-full min-w-0 flex-col px-2 py-1",e),...t})}function bf({className:e,...t}){return p.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:B("w-full text-sm",e),...t})}function xf({className:e,...t}){return p.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:B("border-sidebar-border mx-3 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t})}function wf({className:e,...t}){return p.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:B("group/menu-sub-item relative",e),...t})}function yf({asChild:e=!1,size:t="md",isActive:n=!1,className:r,...o}){const s=e?ao:"a";return p.jsx(s,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:B("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 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","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})}function Cf({title:e,url:t,children:n,defaultOpen:r=!1,icon:o,isActive:s=!1}){const[a,i]=l.useState(r);return l.useEffect(()=>{s&&i(!0)},[s]),p.jsx(vf,{children:p.jsxs("div",{className:"flex flex-col",children:[p.jsxs("div",{className:"flex flex-row items-center justify-between",children:[p.jsxs("a",{href:t,className:B("flex flex-1 cursor-pointer items-center gap-2 rounded-lg p-2 transition-colors hover:bg-gray-100",s&&"bg-blue-50 text-blue-700 font-medium"),children:[o&&p.jsx("span",{className:B(s?"text-blue-600":"text-gray-600"),children:o}),p.jsx("span",{className:B(s&&"text-blue-700 font-medium"),children:e})]}),p.jsx("button",{type:"button",className:"mr-3 rounded-lg p-2 text-gray-500 hover:bg-gray-100 hover:text-gray-700",onClick:c=>{c.preventDefault(),c.stopPropagation(),i(!a)},"aria-label":a?"Collapse section":"Expand section",children:a?p.jsx(rc,{className:"h-4 w-4"}):p.jsx(oc,{className:"h-4 w-4"})})]}),p.jsx("div",{className:B("overflow-hidden transition-all",a?"max-h-96":"max-h-0"),children:n})]})})}const Ef="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20141%2060'%3e%3cpath%20d='M0.059%2019.711V59.673H19.509V49.95H9.779V19.711H0.059Z'%20fill='%2385B9D1'%3e%3c/path%3e%3cpath%20d='M0%200L0.056%204.915V19.715H9.776V9.715H19.5V59.673H29.22V0H0Z'%20fill='%23F68029'%3e%3c/path%3e%3cpath%20d='M23.49%2019.717H9.776V29.439H23.49V19.717Z'%20fill='%23F68029'%3e%3c/path%3e%3cpath%20d='M0.0580006%2019.718L9.785%2029.445V19.718H0.0580006Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M9.777%2049.953L19.504%2059.679V49.953H9.777Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M50.213%2021.331C50.1839%2019.244%2050.325%2017.1581%2050.635%2015.094C50.8293%2013.6891%2051.2694%2012.3294%2051.935%2011.077C52.4295%2010.1519%2053.1979%209.4023%2054.135%208.93101C55.1033%208.49691%2056.1561%208.28375%2057.217%208.307C58.2628%208.27673%2059.3024%208.47715%2060.262%208.894C61.1441%209.33605%2061.8541%2010.059%2062.28%2010.949C62.8725%2012.1976%2063.2507%2013.5369%2063.399%2014.911C63.6554%2016.9922%2063.7717%2019.0882%2063.747%2021.185C63.7759%2023.338%2063.6421%2025.4901%2063.347%2027.623C63.1657%2029.0675%2062.7378%2030.4702%2062.082%2031.77C61.6022%2032.7122%2060.8471%2033.4862%2059.917%2033.989C58.9503%2034.4507%2057.888%2034.6768%2056.817%2034.649C55.7687%2034.6771%2054.7258%2034.4896%2053.753%2034.098C52.8534%2033.6775%2052.1275%2032.9579%2051.699%2032.062C51.0884%2030.7803%2050.7037%2029.4027%2050.562%2027.99C50.3018%2025.7802%2050.1852%2023.5559%2050.213%2021.331ZM54.913%2022.248C54.913%2023.6913%2054.9377%2024.9267%2054.987%2025.954C55.0147%2026.8043%2055.1127%2027.6509%2055.28%2028.485C55.3666%2029.0149%2055.5877%2029.5138%2055.922%2029.934C56.0643%2030.0868%2056.238%2030.207%2056.4312%2030.2862C56.6244%2030.3655%2056.8324%2030.4019%2057.041%2030.393C57.25%2030.3964%2057.4571%2030.3533%2057.6473%2030.2668C57.8375%2030.1803%2058.0062%2030.0526%2058.141%2029.893C58.4964%2029.4241%2058.7297%2028.8744%2058.82%2028.293C59.0025%2027.3609%2059.1128%2026.4161%2059.15%2025.467C59.2107%2024.3177%2059.2414%2022.936%2059.242%2021.322C59.242%2019.732%2059.224%2018.3747%2059.188%2017.25C59.169%2016.3373%2059.0736%2015.4278%2058.903%2014.531C58.8198%2013.9744%2058.5923%2013.4493%2058.243%2013.008C58.0929%2012.8491%2057.9104%2012.7244%2057.7078%2012.6422C57.5053%2012.5601%2057.2874%2012.5225%2057.069%2012.532C56.8667%2012.5304%2056.6668%2012.576%2056.4852%2012.6652C56.3036%2012.7544%2056.1453%2012.8848%2056.023%2013.046C55.6766%2013.5389%2055.4446%2014.103%2055.344%2014.697C55.1442%2015.6885%2055.0277%2016.695%2054.996%2017.706C54.9347%2018.9533%2054.904%2020.4697%2054.904%2022.255'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M83.329%2021.331C83.2999%2019.244%2083.441%2017.1581%2083.751%2015.094C83.9453%2013.6891%2084.3854%2012.3294%2085.051%2011.077C85.5455%2010.1519%2086.3139%209.40235%2087.251%208.93105C89.2087%208.112%2091.4106%208.09871%2093.378%208.89405C94.2601%209.33609%2094.9701%2010.0591%2095.396%2010.949C95.9885%2012.1976%2096.3667%2013.537%2096.515%2014.911C96.7714%2016.9922%2096.8877%2019.0883%2096.863%2021.185C96.8919%2023.3381%2096.7581%2025.4902%2096.463%2027.6231C96.2817%2029.0676%2095.8538%2030.4703%2095.198%2031.77C94.7182%2032.7123%2093.9631%2033.4862%2093.033%2033.989C92.0663%2034.4507%2091.004%2034.6769%2089.933%2034.649C88.8847%2034.6772%2087.8418%2034.4896%2086.869%2034.098C85.9694%2033.6775%2085.2435%2032.9579%2084.815%2032.062C84.2044%2030.7803%2083.8197%2029.4027%2083.678%2027.99C83.4178%2025.7803%2083.3012%2023.5559%2083.329%2021.331ZM88.029%2022.2481C88.029%2023.6914%2088.0537%2024.9267%2088.103%2025.954C88.1307%2026.8044%2088.2287%2027.6509%2088.396%2028.4851C88.4826%2029.015%2088.7037%2029.5139%2089.038%2029.934C89.1803%2030.0869%2089.354%2030.207%2089.5472%2030.2863C89.7404%2030.3655%2089.9484%2030.4019%2090.157%2030.393C90.366%2030.3964%2090.573%2030.3533%2090.7633%2030.2669C90.9535%2030.1804%2091.1222%2030.0527%2091.257%2029.893C91.6124%2029.4242%2091.8458%2028.8744%2091.936%2028.2931C92.1185%2027.3609%2092.2288%2026.4161%2092.266%2025.467C92.3267%2024.3177%2092.3574%2022.936%2092.358%2021.322C92.358%2019.732%2092.34%2018.3747%2092.304%2017.2501C92.2887%2016.3329%2092.1964%2015.4187%2092.028%2014.517C91.9448%2013.9605%2091.7173%2013.4354%2091.368%2012.994C91.2162%2012.8368%2091.0323%2012.7141%2090.8289%2012.6343C90.6255%2012.5544%2090.4072%2012.5192%2090.189%2012.531C89.9867%2012.5294%2089.7868%2012.575%2089.6052%2012.6643C89.4236%2012.7535%2089.2653%2012.8839%2089.143%2013.045C88.7966%2013.5379%2088.5646%2014.102%2088.464%2014.6961C88.2642%2015.6876%2088.1477%2016.6941%2088.116%2017.705C88.0547%2018.9524%2088.024%2020.4687%2088.024%2022.254'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M131.349%2034.65V8.32202H135.458V30.797H140.631V34.649L131.349%2034.65Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M71.95%2034.65V8.33203H76.059V30.796H81.232V34.648L71.95%2034.65Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M104.833%2014.692C104.934%2014.098%20105.166%2013.534%20105.512%2013.041C105.634%2012.8798%20105.793%2012.7494%20105.974%2012.6602C106.156%2012.571%20106.356%2012.5253%20106.558%2012.527H110.103V8.30798H106.703C105.642%208.2848%20104.589%208.49794%20103.621%208.93197C102.684%209.40306%20101.915%2010.1527%20101.421%2011.078C100.756%2012.3304%20100.316%2013.6901%20100.121%2015.095C99.8114%2017.1591%2099.6706%2019.245%2099.7%2021.332C99.6722%2023.5568%2099.7885%2025.7811%20100.048%2027.991C100.19%2029.4037%20100.574%2030.7812%20101.185%2032.063C101.614%2032.9584%20102.34%2033.6778%20103.239%2034.099C104.212%2034.4899%20105.255%2034.6771%20106.303%2034.649L110.103%2034.613V30.393H106.522C106.313%2030.402%20106.105%2030.3657%20105.912%2030.2866C105.719%2030.2076%20105.545%2030.0876%20105.403%2029.935C105.069%2029.5144%20104.848%2029.0152%20104.761%2028.485C104.594%2027.6509%20104.496%2026.8043%20104.468%2025.954C104.419%2024.9266%20104.394%2023.6916%20104.394%2022.249C104.394%2020.4636%20104.425%2018.9473%20104.486%2017.7C104.518%2016.6894%20104.633%2015.6832%20104.833%2014.692Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M46.728%2019.247H42.878V30.395H41.828C41.6182%2030.4039%2041.409%2030.3669%2041.2149%2030.2868C41.0208%2030.2067%2040.8465%2030.0853%2040.704%2029.931C40.3695%2029.5106%2040.1485%2029.0113%2040.062%2028.481C39.894%2027.647%2039.7956%2026.8004%2039.768%2025.95C39.7187%2024.9227%2039.6944%2023.6877%2039.695%2022.245C39.695%2020.4597%2039.7257%2018.9434%2039.787%2017.696C39.8191%2016.6854%2039.9355%2015.6792%2040.135%2014.688C40.2357%2014.094%2040.4677%2013.53%2040.814%2013.037C40.9376%2012.8768%2041.0968%2012.7476%2041.2791%2012.6598C41.4614%2012.5719%2041.6617%2012.5278%2041.864%2012.531H45.904V8.31202H42.012C40.9511%208.28877%2039.8983%208.50191%2038.93%208.93601C37.9927%209.40699%2037.2241%2010.1567%2036.73%2011.082C36.0644%2012.3344%2035.6243%2013.6941%2035.43%2015.099C35.1189%2017.1613%2034.9764%2019.2456%2035.004%2021.331C34.9762%2023.5559%2035.0925%2025.7802%2035.352%2027.99C35.494%2029.4026%2035.8787%2030.7802%2036.489%2032.062C36.9179%2032.9579%2037.6442%2033.6775%2038.544%2034.098C39.517%2034.4891%2040.5598%2034.6763%2041.608%2034.648L43.587%2034.629H46.727L46.728%2019.247Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M123.653%2029.87H118L116.691%2034.65H112.797L120.939%208L128.793%2034.65H124.856L123.653%2029.87ZM122.587%2026.212L120.893%2019.982L119.085%2026.212H122.587Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M39.016%2041.436H37.059V54.507H39.016V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M44.559%2041.436H46.384L48.331%2046.651C48.919%2048.1937%2049.4198%2049.7682%2049.831%2051.367C49.6744%2050.357%2049.5584%2049.4427%2049.483%2048.624C49.4077%2047.8054%2049.37%2047.0347%2049.37%2046.312V41.436H51.336V54.511H49.495L47.303%2048.627C47.103%2048.0797%2046.9134%2047.518%2046.734%2046.942C46.5547%2046.366%2046.39%2045.762%2046.24%2045.13C46.2274%2045.0507%2046.207%2044.9547%2046.179%2044.842C46.151%2044.7293%2046.1177%2044.5997%2046.079%2044.453C46.098%2044.6%2046.114%2044.725%2046.126%2044.829C46.138%2044.933%2046.148%2045.022%2046.154%2045.095L46.254%2046.424L46.354%2048.041C46.36%2048.131%2046.365%2048.241%2046.368%2048.371C46.371%2048.501%2046.368%2048.648%2046.368%2048.811L46.468%2054.511H44.559V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M55.493%2041.436H61.861V42.977H59.67V54.511H57.751V42.977H55.493V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M65.828%2041.436H71.028V42.926H67.787V47.065H70.665V48.555H67.787V53.016H71.028V54.506H65.828V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M75.906%2041.436H78.483C79.3332%2041.3696%2080.1787%2041.6132%2080.863%2042.122C81.2131%2042.4774%2081.4826%2042.904%2081.6531%2043.3729C81.8236%2043.8417%2081.8911%2044.3418%2081.851%2044.839C81.8876%2045.6248%2081.7066%2046.4055%2081.328%2047.095C81.1685%2047.3665%2080.9531%2047.6008%2080.696%2047.7826C80.4389%2047.9643%2080.1461%2048.0892%2079.837%2048.149L82.509%2054.507H80.525L77.863%2048.107V54.507H75.906V41.436ZM77.863%2047.227C78.1485%2047.2893%2078.4451%2047.279%2078.7256%2047.1969C79.0061%2047.1148%2079.2615%2046.9637%2079.4684%2046.7573C79.6753%2046.5509%2079.8271%2046.2959%2079.9098%2046.0156C79.9926%2045.7353%2080.0036%2045.4387%2079.942%2045.153C79.9472%2044.8034%2079.9137%2044.4543%2079.842%2044.112C79.7909%2043.8589%2079.6851%2043.62%2079.532%2043.412C79.3909%2043.2304%2079.2018%2043.0918%2078.986%2043.012C78.7308%2042.9221%2078.4615%2042.8791%2078.191%2042.885H77.862L77.863%2047.227Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M90.046%2041.06L85.913%2054.514H87.745L88.45%2051.974H91.496L92.135%2054.531H94.028L90.046%2041.06ZM88.876%2050.403L90.013%2046.703L91.048%2050.415L88.876%2050.403Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M106.344%2041.436H112.712V42.977H110.52V54.511H108.602V42.977H106.344V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M118.865%2041.462H116.908V54.533H118.865V41.462Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M134.181%2041.462H139.381V42.952H136.136V47.093H139.014V48.583H136.136V53.044H139.381V54.534H134.181V41.462Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M99.749%2044.338C99.8046%2044.0109%2099.9338%2043.7008%20100.127%2043.431C100.202%2043.3322%20100.3%2043.2523%20100.411%2043.1976C100.523%2043.1429%20100.646%2043.115%20100.77%2043.116H102.464V41.207H100.846C100.318%2041.1955%2099.7949%2041.3011%2099.313%2041.516C98.8543%2041.748%2098.4782%2042.1157%2098.236%2042.569C97.9008%2043.2016%2097.6788%2043.888%2097.58%2044.597C97.4215%2045.6561%2097.3493%2046.7263%2097.364%2047.797C97.3503%2048.9393%2097.4101%2050.0814%2097.543%2051.216C97.6145%2051.9294%2097.808%2052.6252%2098.115%2053.273C98.3244%2053.7086%2098.6776%2054.0586%2099.115%2054.264C99.6001%2054.458%20100.12%2054.5509%20100.642%2054.537L102.469%2054.52V52.61H100.755C100.629%2052.6147%20100.503%2052.592%20100.386%2052.5435C100.269%2052.495%20100.164%2052.4218%20100.078%2052.329C99.8888%2052.0951%2099.7637%2051.816%2099.715%2051.519C99.6273%2051.081%2099.5758%2050.6365%2099.561%2050.19C99.536%2049.66%2099.523%2049.014%2099.523%2048.27C99.523%2047.349%2099.539%2046.557%2099.57%2045.916C99.5873%2045.3865%2099.6485%2044.8594%2099.753%2044.34'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M128.799%2041.466L126.671%2048.91L124.671%2041.466H122.679L126.654%2054.953L130.774%2041.466H128.799Z'%20fill='%230A3763'%3e%3c/path%3e%3c/svg%3e";function Sf(){const[e,t]=k.useState("");return k.useEffect(()=>{t(window.location.pathname);const r=()=>{t(window.location.pathname)},o=()=>{t(window.location.pathname)};return window.addEventListener("popstate",r),window.addEventListener("pushstate",o),window.addEventListener("replacestate",o),()=>{window.removeEventListener("popstate",r),window.removeEventListener("pushstate",o),window.removeEventListener("replacestate",o)}},[]),{currentPath:e,isActiveRoute:r=>!!(e===r||r!=="/"&&e.startsWith(r))}}const Rf={navMain:[{title:"Essential Insights",url:"/essential-insights/overall-performance",icon:p.jsx(nc,{className:"h-5 w-5"}),items:[{title:"Overall Performance",url:"/essential-insights/overall-performance",icon:p.jsx(ro,{className:"h-4 w-4"})},{title:"Organic Performance",url:"/essential-insights/organic-performance",icon:p.jsx(no,{className:"h-4 w-4"})},{title:"Paid Performance",url:"/essential-insights/paid-performance",icon:p.jsx(tc,{className:"h-4 w-4"})},{title:"Keyword Performance",url:"/essential-insights/keyword-performance",icon:p.jsx(no,{className:"h-4 w-4"})},{title:"More Components",url:"/essential-insights/more-components",icon:p.jsx(Qe,{className:"h-4 w-4"})}]},{title:"Price Monster",url:"/price-monster",icon:p.jsx(sc,{className:"h-4 w-4"}),items:[{title:"Dashboard",url:"/price-monster/dashboard",icon:p.jsx(Qe,{className:"h-4 w-4"})},{title:"Documentation",url:"/price-monster/documentation",icon:p.jsx(Qi,{className:"h-4 w-4"})},{title:"Subscriptions",url:"/price-monster/subscriptions",icon:p.jsx(ec,{className:"h-4 w-4"})}]},{title:"CMS",url:"/cms",icon:p.jsx(Qe,{className:"h-4 w-4"}),items:[{title:"Dashboard",url:"/cms/dashboard",icon:p.jsx(Qe,{className:"h-4 w-4"})}]},{title:"Storage Essentials",url:"/storage-essentials",icon:p.jsx(Qe,{className:"h-4 w-4"}),items:[{title:"Dashboard",url:"/storage-essentials/dashboard",icon:p.jsx(Qe,{className:"h-4 w-4"})}]}]};function _f({...e}){const{isActiveRoute:t}=Sf();return p.jsxs(df,{...e,children:[p.jsx(hf,{children:p.jsx("div",{className:"relative h-12 w-32 overflow-hidden",children:p.jsx("img",{src:Ef,alt:"GLI Logo",className:"h-full w-full object-contain"})})}),p.jsxs(gf,{children:[p.jsx("div",{className:"relative flex w-full min-w-0 flex-col px-2 py-1",children:p.jsx("div",{className:"flex flex-col",children:p.jsxs("a",{href:"/",className:B("flex cursor-pointer items-center gap-2 rounded-lg px-2 py-2 transition-colors","hover:bg-gray-100",t("/")&&"bg-blue-50 text-gli-bluedark font-medium"),children:[p.jsx(ro,{className:B("h-5 w-5",t("/")?"text-gli-bluedark":"text-gray-600")}),p.jsx("span",{children:"Home"})]})})}),Rf.navMain.map(n=>{const r=t(n.url)||n.items.some(o=>t(o.url));return p.jsx(Cf,{title:n.title,url:n.url,icon:n.icon,isActive:r,children:p.jsx(bf,{children:p.jsx(xf,{children:n.items.map(o=>{const s=t(o.url);return p.jsx(wf,{children:p.jsx(yf,{asChild:!0,children:p.jsxs("a",{href:o.url,className:B("flex items-center gap-2 pl-4 transition-colors","text-muted-foreground hover:bg-muted hover:text-foreground",s&&"bg-blue-50 text-gli-bluedark font-medium"),children:[p.jsx("span",{className:B(s?"text-gli-bluedark":"text-muted-foreground"),children:o.icon}),p.jsx("span",{className:B(s?"text-gli-bluedark":"text-muted-foreground"),children:o.title})]})})},o.title)})})})},n.title)})]}),p.jsx(pf,{})]})}function ga(e){const t=e+"CollectionProvider",[n,r]=Ye(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=h=>{const{scope:x,children:v}=h,y=k.useRef(null),E=k.useRef(new Map).current;return p.jsx(o,{scope:x,itemMap:E,collectionRef:y,children:v})};a.displayName=t;const i=e+"CollectionSlot",c=et(i),f=k.forwardRef((h,x)=>{const{scope:v,children:y}=h,E=s(i,v),S=ae(x,E.collectionRef);return p.jsx(c,{ref:S,children:y})});f.displayName=i;const u=e+"CollectionItemSlot",d="data-radix-collection-item",m=et(u),g=k.forwardRef((h,x)=>{const{scope:v,children:y,...E}=h,S=k.useRef(null),_=ae(x,S),M=s(u,v);return k.useEffect(()=>(M.itemMap.set(S,{ref:S,...E}),()=>void M.itemMap.delete(S))),p.jsx(m,{[d]:"",ref:_,children:y})});g.displayName=u;function b(h){const x=s(e+"CollectionConsumer",h);return k.useCallback(()=>{const y=x.collectionRef.current;if(!y)return[];const E=Array.from(y.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((M,A)=>E.indexOf(M.ref.current)-E.indexOf(A.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:a,Slot:f,ItemSlot:g},b,r]}var Af=l.createContext(void 0);function va(e){const t=l.useContext(Af);return e||t||"ltr"}var gr="rovingFocusGroup.onEntryFocus",Mf={bubbles:!1,cancelable:!0},Ct="RovingFocusGroup",[vr,ba,Of]=ga(Ct),[Tf,xa]=Ye(Ct,[Of]),[Nf,Pf]=Tf(Ct),wa=l.forwardRef((e,t)=>p.jsx(vr.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx(vr.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(kf,{...e,ref:t})})}));wa.displayName=Ct;var kf=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:c,onEntryFocus:f,preventScrollOnEntryFocus:u=!1,...d}=e,m=l.useRef(null),g=ae(t,m),b=va(s),[h,x]=Ln({prop:a,defaultProp:i??null,onChange:c,caller:Ct}),[v,y]=l.useState(!1),E=Pe(f),S=ba(n),_=l.useRef(!1),[M,A]=l.useState(0);return l.useEffect(()=>{const C=m.current;if(C)return C.addEventListener(gr,E),()=>C.removeEventListener(gr,E)},[E]),p.jsx(Nf,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:h,onItemFocus:l.useCallback(C=>x(C),[x]),onItemShiftTab:l.useCallback(()=>y(!0),[]),onFocusableItemAdd:l.useCallback(()=>A(C=>C+1),[]),onFocusableItemRemove:l.useCallback(()=>A(C=>C-1),[]),children:p.jsx(ne.div,{tabIndex:v||M===0?-1:0,"data-orientation":r,...d,ref:g,style:{outline:"none",...e.style},onMouseDown:L(e.onMouseDown,()=>{_.current=!0}),onFocus:L(e.onFocus,C=>{const D=!_.current;if(C.target===C.currentTarget&&D&&!v){const I=new CustomEvent(gr,Mf);if(C.currentTarget.dispatchEvent(I),!I.defaultPrevented){const G=S().filter(F=>F.focusable),z=G.find(F=>F.active),V=G.find(F=>F.id===h),q=[z,V,...G].filter(Boolean).map(F=>F.ref.current);Ea(q,u)}}_.current=!1}),onBlur:L(e.onBlur,()=>y(!1))})})}),ya="RovingFocusGroupItem",Ca=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:a,...i}=e,c=ot(),f=s||c,u=Pf(ya,n),d=u.currentTabStopId===f,m=ba(n),{onFocusableItemAdd:g,onFocusableItemRemove:b,currentTabStopId:h}=u;return l.useEffect(()=>{if(r)return g(),()=>b()},[r,g,b]),p.jsx(vr.ItemSlot,{scope:n,id:f,focusable:r,active:o,children:p.jsx(ne.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...i,ref:t,onMouseDown:L(e.onMouseDown,x=>{r?u.onItemFocus(f):x.preventDefault()}),onFocus:L(e.onFocus,()=>u.onItemFocus(f)),onKeyDown:L(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){u.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const v=jf(x,u.orientation,u.dir);if(v!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let E=m().filter(S=>S.focusable).map(S=>S.ref.current);if(v==="last")E.reverse();else if(v==="prev"||v==="next"){v==="prev"&&E.reverse();const S=E.indexOf(x.currentTarget);E=u.loop?Lf(E,S+1):E.slice(S+1)}setTimeout(()=>Ea(E))}}),children:typeof a=="function"?a({isCurrentTabStop:d,hasTabStop:h!=null}):a})})});Ca.displayName=ya;var Df={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function If(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function jf(e,t,n){const r=If(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Df[r]}function Ea(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Lf(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Ff=wa,$f=Ca,br=["Enter"," "],Vf=["ArrowDown","PageUp","Home"],Sa=["ArrowUp","PageDown","End"],Hf=[...Vf,...Sa],Wf={ltr:[...br,"ArrowRight"],rtl:[...br,"ArrowLeft"]},zf={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Et="Menu",[St,Bf,Gf]=ga(Et),[Ze,Ra]=Ye(Et,[Gf,rn,xa]),an=rn(),_a=xa(),[Uf,Je]=Ze(Et),[Kf,Rt]=Ze(Et),Aa=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:a=!0}=e,i=an(t),[c,f]=l.useState(null),u=l.useRef(!1),d=Pe(s),m=va(o);return l.useEffect(()=>{const g=()=>{u.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>u.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),p.jsx(Dd,{...i,children:p.jsx(Uf,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:f,children:p.jsx(Kf,{scope:t,onClose:l.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:m,modal:a,children:r})})})};Aa.displayName=Et;var Yf="MenuAnchor",xr=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=an(n);return p.jsx(na,{...o,...r,ref:t})});xr.displayName=Yf;var wr="MenuPortal",[qf,Ma]=Ze(wr,{forceMount:void 0}),Oa=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,s=Je(wr,t);return p.jsx(qf,{scope:t,forceMount:n,children:p.jsx(ke,{present:n||s.open,children:p.jsx(Wn,{asChild:!0,container:o,children:r})})})};Oa.displayName=wr;var ve="MenuContent",[Xf,yr]=Ze(ve),Ta=l.forwardRef((e,t)=>{const n=Ma(ve,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=Je(ve,e.__scopeMenu),a=Rt(ve,e.__scopeMenu);return p.jsx(St.Provider,{scope:e.__scopeMenu,children:p.jsx(ke,{present:r||s.open,children:p.jsx(St.Slot,{scope:e.__scopeMenu,children:a.modal?p.jsx(Zf,{...o,ref:t}):p.jsx(Jf,{...o,ref:t})})})})}),Zf=l.forwardRef((e,t)=>{const n=Je(ve,e.__scopeMenu),r=l.useRef(null),o=ae(t,r);return l.useEffect(()=>{const s=r.current;if(s)return rs(s)},[]),p.jsx(Cr,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:L(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Jf=l.forwardRef((e,t)=>{const n=Je(ve,e.__scopeMenu);return p.jsx(Cr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Qf=et("MenuContent.ScrollLock"),Cr=l.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEntryFocus:c,onEscapeKeyDown:f,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:m,onDismiss:g,disableOutsideScroll:b,...h}=e,x=Je(ve,n),v=Rt(ve,n),y=an(n),E=_a(n),S=Bf(n),[_,M]=l.useState(null),A=l.useRef(null),C=ae(t,A,x.onContentChange),D=l.useRef(0),I=l.useRef(""),G=l.useRef(0),z=l.useRef(null),V=l.useRef("right"),H=l.useRef(0),q=b?Yn:l.Fragment,F=b?{as:Qf,allowPinchZoom:!0}:void 0,U=O=>{var K,Q;const w=I.current+O,P=S().filter(ee=>!ee.disabled),j=document.activeElement,$=(K=P.find(ee=>ee.ref.current===j))==null?void 0:K.textValue,X=P.map(ee=>ee.textValue),te=dp(X,w,$),le=(Q=P.find(ee=>ee.textValue===te))==null?void 0:Q.ref.current;(function ee(se){I.current=se,window.clearTimeout(D.current),se!==""&&(D.current=window.setTimeout(()=>ee(""),1e3))})(w),le&&setTimeout(()=>le.focus())};l.useEffect(()=>()=>window.clearTimeout(D.current),[]),Wo();const R=l.useCallback(O=>{var P,j;return V.current===((P=z.current)==null?void 0:P.side)&&pp(O,(j=z.current)==null?void 0:j.area)},[]);return p.jsx(Xf,{scope:n,searchRef:I,onItemEnter:l.useCallback(O=>{R(O)&&O.preventDefault()},[R]),onItemLeave:l.useCallback(O=>{var w;R(O)||((w=A.current)==null||w.focus(),M(null))},[R]),onTriggerLeave:l.useCallback(O=>{R(O)&&O.preventDefault()},[R]),pointerGraceTimerRef:G,onPointerGraceIntentChange:l.useCallback(O=>{z.current=O},[]),children:p.jsx(q,{...F,children:p.jsx(Hn,{asChild:!0,trapped:o,onMountAutoFocus:L(s,O=>{var w;O.preventDefault(),(w=A.current)==null||w.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:p.jsx(Lt,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:f,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:m,onDismiss:g,children:p.jsx(Ff,{asChild:!0,...E,dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:_,onCurrentTabStopIdChange:M,onEntryFocus:L(c,O=>{v.isUsingKeyboardRef.current||O.preventDefault()}),preventScrollOnEntryFocus:!0,children:p.jsx(ra,{role:"menu","aria-orientation":"vertical","data-state":Ka(x.open),"data-radix-menu-content":"",dir:v.dir,...y,...h,ref:C,style:{outline:"none",...h.style},onKeyDown:L(h.onKeyDown,O=>{const P=O.target.closest("[data-radix-menu-content]")===O.currentTarget,j=O.ctrlKey||O.altKey||O.metaKey,$=O.key.length===1;P&&(O.key==="Tab"&&O.preventDefault(),!j&&$&&U(O.key));const X=A.current;if(O.target!==X||!Hf.includes(O.key))return;O.preventDefault();const le=S().filter(K=>!K.disabled).map(K=>K.ref.current);Sa.includes(O.key)&&le.reverse(),lp(le)}),onBlur:L(e.onBlur,O=>{O.currentTarget.contains(O.target)||(window.clearTimeout(D.current),I.current="")}),onPointerMove:L(e.onPointerMove,At(O=>{const w=O.target,P=H.current!==O.clientX;if(O.currentTarget.contains(w)&&P){const j=O.clientX>H.current?"right":"left";V.current=j,H.current=O.clientX}}))})})})})})})});Ta.displayName=ve;var ep="MenuGroup",Er=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ne.div,{role:"group",...r,ref:t})});Er.displayName=ep;var tp="MenuLabel",Na=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ne.div,{...r,ref:t})});Na.displayName=tp;var cn="MenuItem",Pa="menu.itemSelect",ln=l.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,s=l.useRef(null),a=Rt(cn,e.__scopeMenu),i=yr(cn,e.__scopeMenu),c=ae(t,s),f=l.useRef(!1),u=()=>{const d=s.current;if(!n&&d){const m=new CustomEvent(Pa,{bubbles:!0,cancelable:!0});d.addEventListener(Pa,g=>r==null?void 0:r(g),{once:!0}),Mo(d,m),m.defaultPrevented?f.current=!1:a.onClose()}};return p.jsx(ka,{...o,ref:c,disabled:n,onClick:L(e.onClick,u),onPointerDown:d=>{var m;(m=e.onPointerDown)==null||m.call(e,d),f.current=!0},onPointerUp:L(e.onPointerUp,d=>{var m;f.current||(m=d.currentTarget)==null||m.click()}),onKeyDown:L(e.onKeyDown,d=>{const m=i.searchRef.current!=="";n||m&&d.key===" "||br.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});ln.displayName=cn;var ka=l.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...s}=e,a=yr(cn,n),i=_a(n),c=l.useRef(null),f=ae(t,c),[u,d]=l.useState(!1),[m,g]=l.useState("");return l.useEffect(()=>{const b=c.current;b&&g((b.textContent??"").trim())},[s.children]),p.jsx(St.ItemSlot,{scope:n,disabled:r,textValue:o??m,children:p.jsx($f,{asChild:!0,...i,focusable:!r,children:p.jsx(ne.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:f,onPointerMove:L(e.onPointerMove,At(b=>{r?a.onItemLeave(b):(a.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:L(e.onPointerLeave,At(b=>a.onItemLeave(b))),onFocus:L(e.onFocus,()=>d(!0)),onBlur:L(e.onBlur,()=>d(!1))})})})}),np="MenuCheckboxItem",Da=l.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return p.jsx($a,{scope:e.__scopeMenu,checked:n,children:p.jsx(ln,{role:"menuitemcheckbox","aria-checked":un(n)?"mixed":n,...o,ref:t,"data-state":Rr(n),onSelect:L(o.onSelect,()=>r==null?void 0:r(un(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Da.displayName=np;var Ia="MenuRadioGroup",[rp,op]=Ze(Ia,{value:void 0,onValueChange:()=>{}}),ja=l.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,s=Pe(r);return p.jsx(rp,{scope:e.__scopeMenu,value:n,onValueChange:s,children:p.jsx(Er,{...o,ref:t})})});ja.displayName=Ia;var La="MenuRadioItem",Fa=l.forwardRef((e,t)=>{const{value:n,...r}=e,o=op(La,e.__scopeMenu),s=n===o.value;return p.jsx($a,{scope:e.__scopeMenu,checked:s,children:p.jsx(ln,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":Rr(s),onSelect:L(r.onSelect,()=>{var a;return(a=o.onValueChange)==null?void 0:a.call(o,n)},{checkForDefaultPrevented:!1})})})});Fa.displayName=La;var Sr="MenuItemIndicator",[$a,sp]=Ze(Sr,{checked:!1}),Va=l.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,s=sp(Sr,n);return p.jsx(ke,{present:r||un(s.checked)||s.checked===!0,children:p.jsx(ne.span,{...o,ref:t,"data-state":Rr(s.checked)})})});Va.displayName=Sr;var ap="MenuSeparator",Ha=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ne.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Ha.displayName=ap;var ip="MenuArrow",Wa=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=an(n);return p.jsx(oa,{...o,...r,ref:t})});Wa.displayName=ip;var cp="MenuSub",[k0,za]=Ze(cp),_t="MenuSubTrigger",Ba=l.forwardRef((e,t)=>{const n=Je(_t,e.__scopeMenu),r=Rt(_t,e.__scopeMenu),o=za(_t,e.__scopeMenu),s=yr(_t,e.__scopeMenu),a=l.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:c}=s,f={__scopeMenu:e.__scopeMenu},u=l.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return l.useEffect(()=>u,[u]),l.useEffect(()=>{const d=i.current;return()=>{window.clearTimeout(d),c(null)}},[i,c]),p.jsx(xr,{asChild:!0,...f,children:p.jsx(ka,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Ka(n.open),...e,ref:Dt(t,o.onTriggerChange),onClick:d=>{var m;(m=e.onClick)==null||m.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:L(e.onPointerMove,At(d=>{s.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(s.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:L(e.onPointerLeave,At(d=>{var g,b;u();const m=(g=n.content)==null?void 0:g.getBoundingClientRect();if(m){const h=(b=n.content)==null?void 0:b.dataset.side,x=h==="right",v=x?-5:5,y=m[x?"left":"right"],E=m[x?"right":"left"];s.onPointerGraceIntentChange({area:[{x:d.clientX+v,y:d.clientY},{x:y,y:m.top},{x:E,y:m.top},{x:E,y:m.bottom},{x:y,y:m.bottom}],side:h}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(d),d.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:L(e.onKeyDown,d=>{var g;const m=s.searchRef.current!=="";e.disabled||m&&d.key===" "||Wf[r.dir].includes(d.key)&&(n.onOpenChange(!0),(g=n.content)==null||g.focus(),d.preventDefault())})})})});Ba.displayName=_t;var Ga="MenuSubContent",Ua=l.forwardRef((e,t)=>{const n=Ma(ve,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=Je(ve,e.__scopeMenu),a=Rt(ve,e.__scopeMenu),i=za(Ga,e.__scopeMenu),c=l.useRef(null),f=ae(t,c);return p.jsx(St.Provider,{scope:e.__scopeMenu,children:p.jsx(ke,{present:r||s.open,children:p.jsx(St.Slot,{scope:e.__scopeMenu,children:p.jsx(Cr,{id:i.contentId,"aria-labelledby":i.triggerId,...o,ref:f,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{var d;a.isUsingKeyboardRef.current&&((d=c.current)==null||d.focus()),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:L(e.onFocusOutside,u=>{u.target!==i.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:L(e.onEscapeKeyDown,u=>{a.onClose(),u.preventDefault()}),onKeyDown:L(e.onKeyDown,u=>{var g;const d=u.currentTarget.contains(u.target),m=zf[a.dir].includes(u.key);d&&m&&(s.onOpenChange(!1),(g=i.trigger)==null||g.focus(),u.preventDefault())})})})})})});Ua.displayName=Ga;function Ka(e){return e?"open":"closed"}function un(e){return e==="indeterminate"}function Rr(e){return un(e)?"indeterminate":e?"checked":"unchecked"}function lp(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function up(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function dp(e,t,n){const o=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=up(e,Math.max(s,0));o.length===1&&(a=a.filter(f=>f!==n));const c=a.find(f=>f.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function fp(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const i=t[s],c=t[a],f=i.x,u=i.y,d=c.x,m=c.y;u>r!=m>r&&n<(d-f)*(r-u)/(m-u)+f&&(o=!o)}return o}function pp(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return fp(n,t)}function At(e){return t=>t.pointerType==="mouse"?e(t):void 0}var mp=Aa,hp=xr,gp=Oa,vp=Ta,bp=Er,xp=Na,wp=ln,yp=Da,Cp=ja,Ep=Fa,Sp=Va,Rp=Ha,_p=Wa,Ap=Ba,Mp=Ua,dn="DropdownMenu",[Op,D0]=Ye(dn,[Ra]),de=Ra(),[Tp,Ya]=Op(dn),qa=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:s,onOpenChange:a,modal:i=!0}=e,c=de(t),f=l.useRef(null),[u,d]=Ln({prop:o,defaultProp:s??!1,onChange:a,caller:dn});return p.jsx(Tp,{scope:t,triggerId:ot(),triggerRef:f,contentId:ot(),open:u,onOpenChange:d,onOpenToggle:l.useCallback(()=>d(m=>!m),[d]),modal:i,children:p.jsx(mp,{...c,open:u,onOpenChange:d,dir:r,modal:i,children:n})})};qa.displayName=dn;var Xa="DropdownMenuTrigger",Za=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,s=Ya(Xa,n),a=de(n);return p.jsx(hp,{asChild:!0,...a,children:p.jsx(ne.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Dt(t,s.triggerRef),onPointerDown:L(e.onPointerDown,i=>{!r&&i.button===0&&i.ctrlKey===!1&&(s.onOpenToggle(),s.open||i.preventDefault())}),onKeyDown:L(e.onKeyDown,i=>{r||(["Enter"," "].includes(i.key)&&s.onOpenToggle(),i.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});Za.displayName=Xa;var Np="DropdownMenuPortal",Ja=e=>{const{__scopeDropdownMenu:t,...n}=e,r=de(t);return p.jsx(gp,{...r,...n})};Ja.displayName=Np;var Qa="DropdownMenuContent",ei=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ya(Qa,n),s=de(n),a=l.useRef(!1);return p.jsx(vp,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...r,ref:t,onCloseAutoFocus:L(e.onCloseAutoFocus,i=>{var c;a.current||(c=o.triggerRef.current)==null||c.focus(),a.current=!1,i.preventDefault()}),onInteractOutside:L(e.onInteractOutside,i=>{const c=i.detail.originalEvent,f=c.button===0&&c.ctrlKey===!0,u=c.button===2||f;(!o.modal||u)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ei.displayName=Qa;var Pp="DropdownMenuGroup",kp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(bp,{...o,...r,ref:t})});kp.displayName=Pp;var Dp="DropdownMenuLabel",ti=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(xp,{...o,...r,ref:t})});ti.displayName=Dp;var Ip="DropdownMenuItem",ni=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(wp,{...o,...r,ref:t})});ni.displayName=Ip;var jp="DropdownMenuCheckboxItem",Lp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(yp,{...o,...r,ref:t})});Lp.displayName=jp;var Fp="DropdownMenuRadioGroup",$p=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(Cp,{...o,...r,ref:t})});$p.displayName=Fp;var Vp="DropdownMenuRadioItem",Hp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(Ep,{...o,...r,ref:t})});Hp.displayName=Vp;var Wp="DropdownMenuItemIndicator",zp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(Sp,{...o,...r,ref:t})});zp.displayName=Wp;var Bp="DropdownMenuSeparator",ri=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(Rp,{...o,...r,ref:t})});ri.displayName=Bp;var Gp="DropdownMenuArrow",Up=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(_p,{...o,...r,ref:t})});Up.displayName=Gp;var Kp="DropdownMenuSubTrigger",Yp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(Ap,{...o,...r,ref:t})});Yp.displayName=Kp;var qp="DropdownMenuSubContent",Xp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(Mp,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Xp.displayName=qp;var Zp=qa,Jp=Za,Qp=Ja,e0=ei,t0=ti,n0=ni,r0=ri;function o0({...e}){return p.jsx(Zp,{"data-slot":"dropdown-menu",...e})}function s0({...e}){return p.jsx(Jp,{"data-slot":"dropdown-menu-trigger",...e})}function a0({className:e,sideOffset:t=4,...n}){return p.jsx(Qp,{children:p.jsx(e0,{"data-slot":"dropdown-menu-content",sideOffset:t,className:B("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...n})})}function oi({className:e,inset:t,variant:n="default",...r}){return p.jsx(n0,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:B("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r})}function i0({className:e,inset:t,...n}){return p.jsx(t0,{"data-slot":"dropdown-menu-label","data-inset":t,className:B("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...n})}function c0({className:e,...t}){return p.jsx(r0,{"data-slot":"dropdown-menu-separator",className:B("bg-border -mx-1 my-1 h-px",e),...t})}const l0=()=>{const{user:e,error:t,isLoading:n}=Ui(),r=()=>{window.location.href="/auth/logout"};return n?p.jsx("div",{className:"h-10 w-10 animate-pulse rounded-full bg-gray-200"}):t?p.jsxs("div",{children:["Error: ",t.message]}):e?p.jsx("div",{className:"relative flex items-center gap-3",children:p.jsxs(o0,{children:[p.jsx(s0,{asChild:!0,children:p.jsx(jn,{variant:"ghost",size:"lg",className:"rounded-full cursor-pointer p-0",children:e.picture?p.jsx("img",{src:e.picture,alt:e.name||"User profile",width:40,height:40,className:"rounded-full"}):p.jsx(oo,{className:"h-5 w-5 text-gray-500"})})}),p.jsxs(a0,{align:"end",className:"w-72",children:[p.jsx(i0,{children:p.jsx("div",{className:"flex flex-col space-y-1",children:p.jsxs("div",{className:"flex flex-col space-y-1",children:[p.jsx("p",{className:"text-xs text-gray-500",children:e.name}),p.jsx("p",{className:"truncate text-xs text-gray-500",children:e.email})]})})}),p.jsx(c0,{}),p.jsx(oi,{asChild:!0,children:p.jsxs("a",{href:"/profile",className:"flex w-full cursor-default",children:[p.jsx(oo,{className:"mr-2 h-4 w-4"}),p.jsx("span",{children:"Profile"})]})}),p.jsxs(oi,{onClick:r,children:[p.jsx(ac,{className:"mr-2 h-4 w-4"}),p.jsx("span",{children:"Sign out"})]})]})]})}):null},u0=()=>p.jsx("div",{className:"sticky top-0 z-50",children:p.jsxs("header",{className:"flex h-16 items-center justify-between border-b bg-white px-4",children:[p.jsxs("div",{className:"flex h-full items-center gap-4 flex-1 min-w-0 overflow-hidden",children:[p.jsx(ff,{}),p.jsx(Po,{orientation:"vertical"})]}),p.jsx("div",{className:"flex-shrink-0",children:p.jsx(l0,{})})]})}),d0=({children:e})=>p.jsx(Ki,{children:p.jsx(uf,{children:p.jsxs("div",{className:"flex h-screen w-full",children:[p.jsx(_f,{}),p.jsxs(mf,{className:"flex-1 flex flex-col min-w-0",children:[p.jsx(u0,{}),p.jsx("main",{className:"flex-1 bg-white",id:"page-content",children:e})]})]})})});Fe.GLICloudProvider=d0,Object.defineProperty(Fe,Symbol.toStringTag,{value:"Module"})});
182
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return u.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},dd="DialogDescriptionWarning",fd=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ia(dd).contentName}}.`;return u.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},pd=ya,md=Sa,hd=_a,ja=Ra,La=Ma,Fa=Na,$a=Oa,Va=Pa;const Ha=pd,gd=md,vd=Va,za=hd,sr=u.forwardRef(({className:e,...t},n)=>c.jsx(ja,{className:D("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm 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}));sr.displayName=ja.displayName;const bd=Ln("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{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"}}),ir=u.forwardRef(({side:e="right",className:t,children:n,...r},o)=>c.jsxs(za,{children:[c.jsx(sr,{}),c.jsxs(La,{ref:o,className:D(bd({side:e}),t),...r,children:[n,c.jsxs(Va,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[c.jsx(rl,{className:"h-4 w-4"}),c.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));ir.displayName=La.displayName;const cr=({className:e,...t})=>c.jsx("div",{className:D("flex flex-col space-y-2 text-center sm:text-left",e),...t});cr.displayName="SheetHeader";const Wa=({className:e,...t})=>c.jsx("div",{className:D("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Wa.displayName="SheetFooter";const lr=u.forwardRef(({className:e,...t},n)=>c.jsx(Fa,{ref:n,className:D("text-lg font-semibold text-foreground",e),...t}));lr.displayName=Fa.displayName;const ur=u.forwardRef(({className:e,...t},n)=>c.jsx($a,{ref:n,className:D("text-sm text-muted-foreground",e),...t}));ur.displayName=$a.displayName;function dr({className:e,...t}){return c.jsx("div",{className:D("animate-pulse rounded-md bg-muted",e),...t})}const xd=["top","right","bottom","left"],Ge=Math.min,he=Math.max,tn=Math.round,nn=Math.floor,Me=e=>({x:e,y:e}),wd={left:"right",right:"left",bottom:"top",top:"bottom"},yd={start:"end",end:"start"};function fr(e,t,n){return he(e,Ge(t,n))}function je(e,t){return typeof e=="function"?e(t):e}function Le(e){return e.split("-")[0]}function ut(e){return e.split("-")[1]}function pr(e){return e==="x"?"y":"x"}function mr(e){return e==="y"?"height":"width"}function Ae(e){return["top","bottom"].includes(Le(e))?"y":"x"}function hr(e){return pr(Ae(e))}function Cd(e,t,n){n===void 0&&(n=!1);const r=ut(e),o=hr(e),a=mr(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=rn(s)),[s,rn(s)]}function Sd(e){const t=rn(e);return[gr(e),t,gr(t)]}function gr(e){return e.replace(/start|end/g,t=>yd[t])}function Ed(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 _d(e,t,n,r){const o=ut(e);let a=Ed(Le(e),n==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(gr)))),a}function rn(e){return e.replace(/left|right|bottom|top/g,t=>wd[t])}function Rd(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ga(e){return typeof e!="number"?Rd(e):{top:e,right:e,bottom:e,left:e}}function on(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 Ba(e,t,n){let{reference:r,floating:o}=e;const a=Ae(t),s=hr(t),i=mr(s),l=Le(t),p=a==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,m=r[i]/2-o[i]/2;let h;switch(l){case"top":h={x:d,y:r.y-o.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-o.width,y:f};break;default:h={x:r.x,y:r.y}}switch(ut(t)){case"start":h[s]-=m*(n&&p?-1:1);break;case"end":h[s]+=m*(n&&p?-1:1);break}return h}const Md=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,i=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let p=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=Ba(p,r,l),m=r,h={},b=0;for(let g=0;g<i.length;g++){const{name:x,fn:v}=i[g],{x:w,y:S,data:E,reset:_}=await v({x:d,y:f,initialPlacement:r,placement:m,strategy:o,middlewareData:h,rects:p,platform:s,elements:{reference:e,floating:t}});d=w??d,f=S??f,h={...h,[x]:{...h[x],...E}},_&&b<=50&&(b++,typeof _=="object"&&(_.placement&&(m=_.placement),_.rects&&(p=_.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):_.rects),{x:d,y:f}=Ba(p,m,l)),g=-1)}return{x:d,y:f,placement:m,strategy:o,middlewareData:h}};async function yt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:s,elements:i,strategy:l}=e,{boundary:p="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:m=!1,padding:h=0}=je(t,e),b=Ga(h),x=i[m?f==="floating"?"reference":"floating":f],v=on(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(x)))==null||n?x:x.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:p,rootBoundary:d,strategy:l})),w=f==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),E=await(a.isElement==null?void 0:a.isElement(S))?await(a.getScale==null?void 0:a.getScale(S))||{x:1,y:1}:{x:1,y:1},_=on(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:w,offsetParent:S,strategy:l}):w);return{top:(v.top-_.top+b.top)/E.y,bottom:(_.bottom-v.bottom+b.bottom)/E.y,left:(v.left-_.left+b.left)/E.x,right:(_.right-v.right+b.right)/E.x}}const Ad=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:i,middlewareData:l}=t,{element:p,padding:d=0}=je(e,t)||{};if(p==null)return{};const f=Ga(d),m={x:n,y:r},h=hr(o),b=mr(h),g=await s.getDimensions(p),x=h==="y",v=x?"top":"left",w=x?"bottom":"right",S=x?"clientHeight":"clientWidth",E=a.reference[b]+a.reference[h]-m[h]-a.floating[b],_=m[h]-a.reference[h],N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(p));let M=N?N[S]:0;(!M||!await(s.isElement==null?void 0:s.isElement(N)))&&(M=i.floating[S]||a.floating[b]);const C=E/2-_/2,j=M/2-g[b]/2-1,L=Ge(f[v],j),U=Ge(f[w],j),B=L,z=M-g[b]-U,W=M/2-g[b]/2+C,X=fr(B,W,z),V=!l.arrow&&ut(o)!=null&&W!==X&&a.reference[b]/2-(W<B?L:U)-g[b]/2<0,K=V?W<B?W-B:W-z:0;return{[h]:m[h]+K,data:{[h]:X,centerOffset:W-X-K,...V&&{alignmentOffset:K}},reset:V}}}),Nd=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:i,platform:l,elements:p}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:g=!0,...x}=je(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const v=Le(o),w=Ae(i),S=Le(i)===i,E=await(l.isRTL==null?void 0:l.isRTL(p.floating)),_=m||(S||!g?[rn(i)]:Sd(i)),N=b!=="none";!m&&N&&_.push(..._d(i,g,b,E));const M=[i,..._],C=await yt(t,x),j=[];let L=((r=a.flip)==null?void 0:r.overflows)||[];if(d&&j.push(C[v]),f){const W=Cd(o,s,E);j.push(C[W[0]],C[W[1]])}if(L=[...L,{placement:o,overflows:j}],!j.every(W=>W<=0)){var U,B;const W=(((U=a.flip)==null?void 0:U.index)||0)+1,X=M[W];if(X&&(!(f==="alignment"?w!==Ae(X):!1)||L.every(R=>R.overflows[0]>0&&Ae(R.placement)===w)))return{data:{index:W,overflows:L},reset:{placement:X}};let V=(B=L.filter(K=>K.overflows[0]<=0).sort((K,R)=>K.overflows[1]-R.overflows[1])[0])==null?void 0:B.placement;if(!V)switch(h){case"bestFit":{var z;const K=(z=L.filter(R=>{if(N){const T=Ae(R.placement);return T===w||T==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(T=>T>0).reduce((T,y)=>T+y,0)]).sort((R,T)=>R[1]-T[1])[0])==null?void 0:z[0];K&&(V=K);break}case"initialPlacement":V=i;break}if(o!==V)return{reset:{placement:V}}}return{}}}};function Ua(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ka(e){return xd.some(t=>e[t]>=0)}const Td=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=je(e,t);switch(r){case"referenceHidden":{const a=await yt(t,{...o,elementContext:"reference"}),s=Ua(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ka(s)}}}case"escaped":{const a=await yt(t,{...o,altBoundary:!0}),s=Ua(a,n.floating);return{data:{escapedOffsets:s,escaped:Ka(s)}}}default:return{}}}}};async function Od(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Le(n),i=ut(n),l=Ae(n)==="y",p=["left","top"].includes(s)?-1:1,d=a&&l?-1:1,f=je(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:b}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return i&&typeof b=="number"&&(h=i==="end"?b*-1:b),l?{x:h*d,y:m*p}:{x:m*p,y:h*d}}const kd=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:i}=t,l=await Od(t,e);return s===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:s}}}}},Pd=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:i={fn:x=>{let{x:v,y:w}=x;return{x:v,y:w}}},...l}=je(e,t),p={x:n,y:r},d=await yt(t,l),f=Ae(Le(o)),m=pr(f);let h=p[m],b=p[f];if(a){const x=m==="y"?"top":"left",v=m==="y"?"bottom":"right",w=h+d[x],S=h-d[v];h=fr(w,h,S)}if(s){const x=f==="y"?"top":"left",v=f==="y"?"bottom":"right",w=b+d[x],S=b-d[v];b=fr(w,b,S)}const g=i.fn({...t,[m]:h,[f]:b});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[m]:a,[f]:s}}}}}},Dd=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:l=!0,crossAxis:p=!0}=je(e,t),d={x:n,y:r},f=Ae(o),m=pr(f);let h=d[m],b=d[f];const g=je(i,t),x=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const S=m==="y"?"height":"width",E=a.reference[m]-a.floating[S]+x.mainAxis,_=a.reference[m]+a.reference[S]-x.mainAxis;h<E?h=E:h>_&&(h=_)}if(p){var v,w;const S=m==="y"?"width":"height",E=["top","left"].includes(Le(o)),_=a.reference[f]-a.floating[S]+(E&&((v=s.offset)==null?void 0:v[f])||0)+(E?0:x.crossAxis),N=a.reference[f]+a.reference[S]+(E?0:((w=s.offset)==null?void 0:w[f])||0)-(E?x.crossAxis:0);b<_?b=_:b>N&&(b=N)}return{[m]:h,[f]:b}}}},Id=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:i}=t,{apply:l=()=>{},...p}=je(e,t),d=await yt(t,p),f=Le(o),m=ut(o),h=Ae(o)==="y",{width:b,height:g}=a.floating;let x,v;f==="top"||f==="bottom"?(x=f,v=m===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(v=f,x=m==="end"?"top":"bottom");const w=g-d.top-d.bottom,S=b-d.left-d.right,E=Ge(g-d[x],w),_=Ge(b-d[v],S),N=!t.middlewareData.shift;let M=E,C=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(C=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(M=w),N&&!m){const L=he(d.left,0),U=he(d.right,0),B=he(d.top,0),z=he(d.bottom,0);h?C=b-2*(L!==0||U!==0?L+U:he(d.left,d.right)):M=g-2*(B!==0||z!==0?B+z:he(d.top,d.bottom))}await l({...t,availableWidth:C,availableHeight:M});const j=await s.getDimensions(i.floating);return b!==j.width||g!==j.height?{reset:{rects:!0}}:{}}}};function an(){return typeof window<"u"}function dt(e){return Ya(e)?(e.nodeName||"").toLowerCase():"#document"}function ge(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ne(e){var t;return(t=(Ya(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ya(e){return an()?e instanceof Node||e instanceof ge(e).Node:!1}function Ce(e){return an()?e instanceof Element||e instanceof ge(e).Element:!1}function Te(e){return an()?e instanceof HTMLElement||e instanceof ge(e).HTMLElement:!1}function qa(e){return!an()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ge(e).ShadowRoot}function Ct(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Se(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function jd(e){return["table","td","th"].includes(dt(e))}function sn(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function vr(e){const t=br(),n=Ce(e)?Se(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 Ld(e){let t=Be(e);for(;Te(t)&&!ft(t);){if(vr(t))return t;if(sn(t))return null;t=Be(t)}return null}function br(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ft(e){return["html","body","#document"].includes(dt(e))}function Se(e){return ge(e).getComputedStyle(e)}function cn(e){return Ce(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Be(e){if(dt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||qa(e)&&e.host||Ne(e);return qa(t)?t.host:t}function Xa(e){const t=Be(e);return ft(t)?e.ownerDocument?e.ownerDocument.body:e.body:Te(t)&&Ct(t)?t:Xa(t)}function St(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Xa(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),s=ge(o);if(a){const i=xr(s);return t.concat(s,s.visualViewport||[],Ct(o)?o:[],i&&n?St(i):[])}return t.concat(o,St(o,[],n))}function xr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Za(e){const t=Se(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Te(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:r,i=tn(n)!==a||tn(r)!==s;return i&&(n=a,r=s),{width:n,height:r,$:i}}function wr(e){return Ce(e)?e:e.contextElement}function pt(e){const t=wr(e);if(!Te(t))return Me(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Za(t);let s=(a?tn(n.width):n.width)/r,i=(a?tn(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const Fd=Me(0);function Ja(e){const t=ge(e);return!br()||!t.visualViewport?Fd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function $d(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ge(e)?!1:t}function Je(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=wr(e);let s=Me(1);t&&(r?Ce(r)&&(s=pt(r)):s=pt(e));const i=$d(a,n,r)?Ja(a):Me(0);let l=(o.left+i.x)/s.x,p=(o.top+i.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(a){const m=ge(a),h=r&&Ce(r)?ge(r):r;let b=m,g=xr(b);for(;g&&r&&h!==b;){const x=pt(g),v=g.getBoundingClientRect(),w=Se(g),S=v.left+(g.clientLeft+parseFloat(w.paddingLeft))*x.x,E=v.top+(g.clientTop+parseFloat(w.paddingTop))*x.y;l*=x.x,p*=x.y,d*=x.x,f*=x.y,l+=S,p+=E,b=ge(g),g=xr(b)}}return on({width:d,height:f,x:l,y:p})}function yr(e,t){const n=cn(e).scrollLeft;return t?t.left+n:Je(Ne(e)).left+n}function Qa(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:yr(e,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function Vd(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",s=Ne(r),i=t?sn(t.floating):!1;if(r===s||i&&a)return n;let l={scrollLeft:0,scrollTop:0},p=Me(1);const d=Me(0),f=Te(r);if((f||!f&&!a)&&((dt(r)!=="body"||Ct(s))&&(l=cn(r)),Te(r))){const h=Je(r);p=pt(r),d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}const m=s&&!f&&!a?Qa(s,l,!0):Me(0);return{width:n.width*p.x,height:n.height*p.y,x:n.x*p.x-l.scrollLeft*p.x+d.x+m.x,y:n.y*p.y-l.scrollTop*p.y+d.y+m.y}}function Hd(e){return Array.from(e.getClientRects())}function zd(e){const t=Ne(e),n=cn(e),r=e.ownerDocument.body,o=he(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=he(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+yr(e);const i=-n.scrollTop;return Se(r).direction==="rtl"&&(s+=he(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:i}}function Wd(e,t){const n=ge(e),r=Ne(e),o=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,i=0,l=0;if(o){a=o.width,s=o.height;const p=br();(!p||p&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:i,y:l}}function Gd(e,t){const n=Je(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Te(e)?pt(e):Me(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,l=o*a.x,p=r*a.y;return{width:s,height:i,x:l,y:p}}function es(e,t,n){let r;if(t==="viewport")r=Wd(e,n);else if(t==="document")r=zd(Ne(e));else if(Ce(t))r=Gd(t,n);else{const o=Ja(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return on(r)}function ts(e,t){const n=Be(e);return n===t||!Ce(n)||ft(n)?!1:Se(n).position==="fixed"||ts(n,t)}function Bd(e,t){const n=t.get(e);if(n)return n;let r=St(e,[],!1).filter(i=>Ce(i)&&dt(i)!=="body"),o=null;const a=Se(e).position==="fixed";let s=a?Be(e):e;for(;Ce(s)&&!ft(s);){const i=Se(s),l=vr(s);!l&&i.position==="fixed"&&(o=null),(a?!l&&!o:!l&&i.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ct(s)&&!l&&ts(e,s))?r=r.filter(d=>d!==s):o=i,s=Be(s)}return t.set(e,r),r}function Ud(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?sn(t)?[]:Bd(t,this._c):[].concat(n),r],i=s[0],l=s.reduce((p,d)=>{const f=es(t,d,o);return p.top=he(f.top,p.top),p.right=Ge(f.right,p.right),p.bottom=Ge(f.bottom,p.bottom),p.left=he(f.left,p.left),p},es(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Kd(e){const{width:t,height:n}=Za(e);return{width:t,height:n}}function Yd(e,t,n){const r=Te(t),o=Ne(t),a=n==="fixed",s=Je(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const l=Me(0);function p(){l.x=yr(o)}if(r||!r&&!a)if((dt(t)!=="body"||Ct(o))&&(i=cn(t)),r){const h=Je(t,!0,a,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else o&&p();a&&!r&&o&&p();const d=o&&!r&&!a?Qa(o,i):Me(0),f=s.left+i.scrollLeft-l.x-d.x,m=s.top+i.scrollTop-l.y-d.y;return{x:f,y:m,width:s.width,height:s.height}}function Cr(e){return Se(e).position==="static"}function ns(e,t){if(!Te(e)||Se(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ne(e)===n&&(n=n.ownerDocument.body),n}function rs(e,t){const n=ge(e);if(sn(e))return n;if(!Te(e)){let o=Be(e);for(;o&&!ft(o);){if(Ce(o)&&!Cr(o))return o;o=Be(o)}return n}let r=ns(e,t);for(;r&&jd(r)&&Cr(r);)r=ns(r,t);return r&&ft(r)&&Cr(r)&&!vr(r)?n:r||Ld(e)||n}const qd=async function(e){const t=this.getOffsetParent||rs,n=this.getDimensions,r=await n(e.floating);return{reference:Yd(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Xd(e){return Se(e).direction==="rtl"}const Zd={convertOffsetParentRelativeRectToViewportRelativeRect:Vd,getDocumentElement:Ne,getClippingRect:Ud,getOffsetParent:rs,getElementRects:qd,getClientRects:Hd,getDimensions:Kd,getScale:pt,isElement:Ce,isRTL:Xd};function os(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Jd(e,t){let n=null,r;const o=Ne(e);function a(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function s(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),a();const p=e.getBoundingClientRect(),{left:d,top:f,width:m,height:h}=p;if(i||t(),!m||!h)return;const b=nn(f),g=nn(o.clientWidth-(d+m)),x=nn(o.clientHeight-(f+h)),v=nn(d),S={rootMargin:-b+"px "+-g+"px "+-x+"px "+-v+"px",threshold:he(0,Ge(1,l))||1};let E=!0;function _(N){const M=N[0].intersectionRatio;if(M!==l){if(!E)return s();M?s(!1,M):r=setTimeout(()=>{s(!1,1e-7)},1e3)}M===1&&!os(p,e.getBoundingClientRect())&&s(),E=!1}try{n=new IntersectionObserver(_,{...S,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,S)}n.observe(e)}return s(!0),a}function Qd(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,p=wr(e),d=o||a?[...p?St(p):[],...St(t)]:[];d.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),a&&v.addEventListener("resize",n)});const f=p&&i?Jd(p,n):null;let m=-1,h=null;s&&(h=new ResizeObserver(v=>{let[w]=v;w&&w.target===p&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var S;(S=h)==null||S.observe(t)})),n()}),p&&!l&&h.observe(p),h.observe(t));let b,g=l?Je(e):null;l&&x();function x(){const v=Je(e);g&&!os(g,v)&&n(),g=v,b=requestAnimationFrame(x)}return n(),()=>{var v;d.forEach(w=>{o&&w.removeEventListener("scroll",n),a&&w.removeEventListener("resize",n)}),f==null||f(),(v=h)==null||v.disconnect(),h=null,l&&cancelAnimationFrame(b)}}const ef=kd,tf=Pd,nf=Nd,rf=Id,of=Td,as=Ad,af=Dd,sf=(e,t,n)=>{const r=new Map,o={platform:Zd,...n},a={...o.platform,_c:r};return Md(e,t,{...o,platform:a})};var cf=typeof document<"u",lf=function(){},ln=cf?I.useLayoutEffect:lf;function un(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(!un(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)&&!un(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function ss(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function is(e,t){const n=ss(e);return Math.round(t*n)/n}function Sr(e){const t=u.useRef(e);return ln(()=>{t.current=e}),t}function uf(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:l,open:p}=e,[d,f]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=u.useState(r);un(m,r)||h(r);const[b,g]=u.useState(null),[x,v]=u.useState(null),w=u.useCallback(R=>{R!==N.current&&(N.current=R,g(R))},[]),S=u.useCallback(R=>{R!==M.current&&(M.current=R,v(R))},[]),E=a||b,_=s||x,N=u.useRef(null),M=u.useRef(null),C=u.useRef(d),j=l!=null,L=Sr(l),U=Sr(o),B=Sr(p),z=u.useCallback(()=>{if(!N.current||!M.current)return;const R={placement:t,strategy:n,middleware:m};U.current&&(R.platform=U.current),sf(N.current,M.current,R).then(T=>{const y={...T,isPositioned:B.current!==!1};W.current&&!un(C.current,y)&&(C.current=y,Kr.flushSync(()=>{f(y)}))})},[m,t,n,U,B]);ln(()=>{p===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,f(R=>({...R,isPositioned:!1})))},[p]);const W=u.useRef(!1);ln(()=>(W.current=!0,()=>{W.current=!1}),[]),ln(()=>{if(E&&(N.current=E),_&&(M.current=_),E&&_){if(L.current)return L.current(E,_,z);z()}},[E,_,z,L,j]);const X=u.useMemo(()=>({reference:N,floating:M,setReference:w,setFloating:S}),[w,S]),V=u.useMemo(()=>({reference:E,floating:_}),[E,_]),K=u.useMemo(()=>{const R={position:n,left:0,top:0};if(!V.floating)return R;const T=is(V.floating,d.x),y=is(V.floating,d.y);return i?{...R,transform:"translate("+T+"px, "+y+"px)",...ss(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:T,top:y}},[n,i,V.floating,d.x,d.y]);return u.useMemo(()=>({...d,update:z,refs:X,elements:V,floatingStyles:K}),[d,z,X,V,K])}const df=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?as({element:r.current,padding:o}).fn(n):{}:r?as({element:r,padding:o}).fn(n):{}}}},ff=(e,t)=>({...ef(e),options:[e,t]}),pf=(e,t)=>({...tf(e),options:[e,t]}),mf=(e,t)=>({...af(e),options:[e,t]}),hf=(e,t)=>({...nf(e),options:[e,t]}),gf=(e,t)=>({...rf(e),options:[e,t]}),vf=(e,t)=>({...of(e),options:[e,t]}),bf=(e,t)=>({...df(e),options:[e,t]});var xf="Arrow",cs=u.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return c.jsx(re.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});cs.displayName=xf;var wf=cs;function yf(e){const[t,n]=u.useState(void 0);return ze(()=>{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,i;if("borderBoxSize"in a){const l=a.borderBoxSize,p=Array.isArray(l)?l[0]:l;s=p.inlineSize,i=p.blockSize}else s=e.offsetWidth,i=e.offsetHeight;n({width:s,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Er="Popper",[ls,dn]=Xe(Er),[Cf,us]=ls(Er),ds=e=>{const{__scopePopper:t,children:n}=e,[r,o]=u.useState(null);return c.jsx(Cf,{scope:t,anchor:r,onAnchorChange:o,children:n})};ds.displayName=Er;var fs="PopperAnchor",ps=u.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=us(fs,n),s=u.useRef(null),i=ie(t,s);return u.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:c.jsx(re.div,{...o,ref:i})});ps.displayName=fs;var _r="PopperContent",[Sf,Ef]=ls(_r),ms=u.forwardRef((e,t)=>{var Y,ee,te,se,Ee,Ke;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:l=!0,collisionBoundary:p=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:m=!1,updatePositionStrategy:h="optimized",onPlaced:b,...g}=e,x=us(_r,n),[v,w]=u.useState(null),S=ie(t,J=>w(J)),[E,_]=u.useState(null),N=yf(E),M=(N==null?void 0:N.width)??0,C=(N==null?void 0:N.height)??0,j=r+(a!=="center"?"-"+a:""),L=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},U=Array.isArray(p)?p:[p],B=U.length>0,z={padding:L,boundary:U.filter(Rf),altBoundary:B},{refs:W,floatingStyles:X,placement:V,isPositioned:K,middlewareData:R}=uf({strategy:"fixed",placement:j,whileElementsMounted:(...J)=>Qd(...J,{animationFrame:h==="always"}),elements:{reference:x.anchor},middleware:[ff({mainAxis:o+C,alignmentAxis:s}),l&&pf({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?mf():void 0,...z}),l&&hf({...z}),gf({...z,apply:({elements:J,rects:Q,availableWidth:le,availableHeight:oe})=>{const{width:ve,height:Ye}=Q.reference,ae=J.floating.style;ae.setProperty("--radix-popper-available-width",`${le}px`),ae.setProperty("--radix-popper-available-height",`${oe}px`),ae.setProperty("--radix-popper-anchor-width",`${ve}px`),ae.setProperty("--radix-popper-anchor-height",`${Ye}px`)}}),E&&bf({element:E,padding:i}),Mf({arrowWidth:M,arrowHeight:C}),m&&vf({strategy:"referenceHidden",...z})]}),[T,y]=vs(V),P=_e(b);ze(()=>{K&&(P==null||P())},[K,P]);const F=(Y=R.arrow)==null?void 0:Y.x,H=(ee=R.arrow)==null?void 0:ee.y,Z=((te=R.arrow)==null?void 0:te.centerOffset)!==0,[ne,ue]=u.useState();return ze(()=>{v&&ue(window.getComputedStyle(v).zIndex)},[v]),c.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:K?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ne,"--radix-popper-transform-origin":[(se=R.transformOrigin)==null?void 0:se.x,(Ee=R.transformOrigin)==null?void 0:Ee.y].join(" "),...((Ke=R.hide)==null?void 0:Ke.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(Sf,{scope:n,placedSide:T,onArrowChange:_,arrowX:F,arrowY:H,shouldHideArrow:Z,children:c.jsx(re.div,{"data-side":T,"data-align":y,...g,ref:S,style:{...g.style,animation:K?void 0:"none"}})})})});ms.displayName=_r;var hs="PopperArrow",_f={top:"bottom",right:"left",bottom:"top",left:"right"},gs=u.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=Ef(hs,r),s=_f[a.placedSide];return c.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:c.jsx(wf,{...o,ref:n,style:{...o.style,display:"block"}})})});gs.displayName=hs;function Rf(e){return e!==null}var Mf=e=>({name:"transformOrigin",options:e,fn(t){var x,v,w;const{placement:n,rects:r,middlewareData:o}=t,s=((x=o.arrow)==null?void 0:x.centerOffset)!==0,i=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[p,d]=vs(n),f={start:"0%",center:"50%",end:"100%"}[d],m=(((v=o.arrow)==null?void 0:v.x)??0)+i/2,h=(((w=o.arrow)==null?void 0:w.y)??0)+l/2;let b="",g="";return p==="bottom"?(b=s?f:`${m}px`,g=`${-l}px`):p==="top"?(b=s?f:`${m}px`,g=`${r.floating.height+l}px`):p==="right"?(b=`${-l}px`,g=s?f:`${h}px`):p==="left"&&(b=`${r.floating.width+l}px`,g=s?f:`${h}px`),{data:{x:b,y:g}}}});function vs(e){const[t,n="center"]=e.split("-");return[t,n]}var Rr=ds,bs=ps,xs=ms,ws=gs,Af=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Nf="VisuallyHidden",ys=u.forwardRef((e,t)=>c.jsx(re.span,{...e,ref:t,style:{...Af,...e.style}}));ys.displayName=Nf;var Tf=ys,[fn,k0]=Xe("Tooltip",[dn]),pn=dn(),Cs="TooltipProvider",Of=700,Mr="tooltip.open",[kf,Ar]=fn(Cs),Ss=e=>{const{__scopeTooltip:t,delayDuration:n=Of,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,s=u.useRef(!0),i=u.useRef(!1),l=u.useRef(0);return u.useEffect(()=>{const p=l.current;return()=>window.clearTimeout(p)},[]),c.jsx(kf,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:u.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:u.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:u.useCallback(p=>{i.current=p},[]),disableHoverableContent:o,children:a})};Ss.displayName=Cs;var Et="Tooltip",[Pf,mn]=fn(Et),Es=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,l=Ar(Et,e.__scopeTooltip),p=pn(t),[d,f]=u.useState(null),m=De(),h=u.useRef(0),b=s??l.disableHoverableContent,g=i??l.delayDuration,x=u.useRef(!1),[v,w]=wt({prop:r,defaultProp:o??!1,onChange:M=>{M?(l.onOpen(),document.dispatchEvent(new CustomEvent(Mr))):l.onClose(),a==null||a(M)},caller:Et}),S=u.useMemo(()=>v?x.current?"delayed-open":"instant-open":"closed",[v]),E=u.useCallback(()=>{window.clearTimeout(h.current),h.current=0,x.current=!1,w(!0)},[w]),_=u.useCallback(()=>{window.clearTimeout(h.current),h.current=0,w(!1)},[w]),N=u.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{x.current=!0,w(!0),h.current=0},g)},[g,w]);return u.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),c.jsx(Rr,{...p,children:c.jsx(Pf,{scope:t,contentId:m,open:v,stateAttribute:S,trigger:d,onTriggerChange:f,onTriggerEnter:u.useCallback(()=>{l.isOpenDelayedRef.current?N():E()},[l.isOpenDelayedRef,N,E]),onTriggerLeave:u.useCallback(()=>{b?_():(window.clearTimeout(h.current),h.current=0)},[_,b]),onOpen:E,onClose:_,disableHoverableContent:b,children:n})})};Es.displayName=Et;var Nr="TooltipTrigger",_s=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=mn(Nr,n),a=Ar(Nr,n),s=pn(n),i=u.useRef(null),l=ie(t,i,o.onTriggerChange),p=u.useRef(!1),d=u.useRef(!1),f=u.useCallback(()=>p.current=!1,[]);return u.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),c.jsx(bs,{asChild:!0,...s,children:c.jsx(re.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:$(e.onPointerMove,m=>{m.pointerType!=="touch"&&!d.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:$(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:$(e.onPointerDown,()=>{o.open&&o.onClose(),p.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:$(e.onFocus,()=>{p.current||o.onOpen()}),onBlur:$(e.onBlur,o.onClose),onClick:$(e.onClick,o.onClose)})})});_s.displayName=Nr;var Df="TooltipPortal",[P0,If]=fn(Df,{forceMount:void 0}),mt="TooltipContent",Rs=u.forwardRef((e,t)=>{const n=If(mt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,s=mn(mt,e.__scopeTooltip);return c.jsx(Ie,{present:r||s.open,children:s.disableHoverableContent?c.jsx(Ms,{side:o,...a,ref:t}):c.jsx(jf,{side:o,...a,ref:t})})}),jf=u.forwardRef((e,t)=>{const n=mn(mt,e.__scopeTooltip),r=Ar(mt,e.__scopeTooltip),o=u.useRef(null),a=ie(t,o),[s,i]=u.useState(null),{trigger:l,onClose:p}=n,d=o.current,{onPointerInTransitChange:f}=r,m=u.useCallback(()=>{i(null),f(!1)},[f]),h=u.useCallback((b,g)=>{const x=b.currentTarget,v={x:b.clientX,y:b.clientY},w=Hf(v,x.getBoundingClientRect()),S=zf(v,w),E=Wf(g.getBoundingClientRect()),_=Bf([...S,...E]);i(_),f(!0)},[f]);return u.useEffect(()=>()=>m(),[m]),u.useEffect(()=>{if(l&&d){const b=x=>h(x,d),g=x=>h(x,l);return l.addEventListener("pointerleave",b),d.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",b),d.removeEventListener("pointerleave",g)}}},[l,d,h,m]),u.useEffect(()=>{if(s){const b=g=>{const x=g.target,v={x:g.clientX,y:g.clientY},w=(l==null?void 0:l.contains(x))||(d==null?void 0:d.contains(x)),S=!Gf(v,s);w?m():S&&(m(),p())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,d,s,p,m]),c.jsx(Ms,{...e,ref:a})}),[Lf,Ff]=fn(Et,{isInside:!1}),$f=al("TooltipContent"),Ms=u.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,l=mn(mt,n),p=pn(n),{onClose:d}=l;return u.useEffect(()=>(document.addEventListener(Mr,d),()=>document.removeEventListener(Mr,d)),[d]),u.useEffect(()=>{if(l.trigger){const f=m=>{const h=m.target;h!=null&&h.contains(l.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,d]),c.jsx(Gt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:c.jsxs(xs,{"data-state":l.stateAttribute,...p,...i,ref:t,style:{...i.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:[c.jsx($f,{children:r}),c.jsx(Lf,{scope:n,isInside:!0,children:c.jsx(Tf,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Rs.displayName=mt;var As="TooltipArrow",Vf=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=pn(n);return Ff(As,n).isInside?null:c.jsx(ws,{...o,...r,ref:t})});Vf.displayName=As;function Hf(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 zf(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 Wf(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 Gf(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 i=t[a],l=t[s],p=i.x,d=i.y,f=l.x,m=l.y;d>r!=m>r&&n<(f-p)*(r-d)/(m-d)+p&&(o=!o)}return o}function Bf(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),Uf(t)}function Uf(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 Kf=Ss,Yf=Es,qf=_s,Ns=Rs;const Ts=Kf,Os=Yf,ks=qf,Tr=u.forwardRef(({className:e,sideOffset:t=4,...n},r)=>c.jsx(Ns,{ref:r,sideOffset:t,className:D("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md 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}));Tr.displayName=Ns.displayName;const Xf="sidebar_state",Zf=60*60*24*7,Jf="16rem",Qf="18rem",ep="3rem",tp="b",Ps=u.createContext(null);function _t(){const e=u.useContext(Ps);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function Ds({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:a,...s}){const i=ll(),[l,p]=u.useState(!1),[d,f]=u.useState(e),m=t??d,h=u.useCallback(v=>{const w=typeof v=="function"?v(m):v;n?n(w):f(w),document.cookie=`${Xf}=${w}; path=/; max-age=${Zf}`},[n,m]),b=u.useCallback(()=>i?p(v=>!v):h(v=>!v),[i,h,p]);u.useEffect(()=>{const v=w=>{w.key===tp&&(w.metaKey||w.ctrlKey)&&(w.preventDefault(),b())};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)},[b]);const g=m?"expanded":"collapsed",x=u.useMemo(()=>({state:g,open:m,setOpen:h,isMobile:i,openMobile:l,setOpenMobile:p,toggleSidebar:b}),[g,m,h,i,l,p,b]);return c.jsx(Ps.Provider,{value:x,children:c.jsx(Ts,{delayDuration:0,children:c.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":Jf,"--sidebar-width-icon":ep,...o},className:D("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",r),...s,children:a})})})}function Is({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...a}){const{isMobile:s,state:i,openMobile:l,setOpenMobile:p}=_t();return n==="none"?c.jsx("div",{"data-slot":"sidebar",className:D("bg-white text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",r),...a,children:o}):s?c.jsx(Ha,{open:l,onOpenChange:p,...a,children:c.jsxs(ir,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-white text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":Qf},side:e,children:[c.jsxs(cr,{className:"sr-only",children:[c.jsx(lr,{children:"Sidebar"}),c.jsx(ur,{children:"Displays the mobile sidebar."})]}),c.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):c.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":i,"data-collapsible":i==="collapsed"?n:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:[c.jsx("div",{"data-slot":"sidebar-gap",className:D("relative w-(--sidebar-width) bg-white transition-[width] duration-200 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)")}),c.jsx("div",{"data-slot":"sidebar-container",className:D("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 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:c.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-white group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col px-1 py-2 group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:o})})]})}function js({className:e,onClick:t,...n}){const{toggleSidebar:r}=_t();return c.jsxs(zt,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:D("size-7",e),onClick:o=>{t==null||t(o),r()},...n,children:[c.jsx(nl,{}),c.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function Ls({className:e,...t}){const{toggleSidebar:n}=_t();return c.jsx("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:D("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] 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","hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})}function Fs({className:e,...t}){return c.jsx("main",{"data-slot":"sidebar-inset",className:D("bg-white relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",e),...t})}function np({className:e,...t}){return c.jsx(Gn,{"data-slot":"sidebar-input","data-sidebar":"input",className:D("bg-background h-8 w-full shadow-none",e),...t})}function $s({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:D("flex flex-col gap-2 p-2",e),...t})}function rp({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:D("flex flex-col gap-2 p-2",e),...t})}function op({className:e,...t}){return c.jsx(Wt,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:D("bg-sidebar-border mx-2 w-auto",e),...t})}function Vs({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:D("flex min-h-0 flex-1 flex-col overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})}function Hs({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:D("relative flex w-full min-w-0 flex-col px-2 py-1",e),...t})}function ap({className:e,asChild:t=!1,...n}){const r=t?nt:"div";return c.jsx(r,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:D("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 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})}function sp({className:e,asChild:t=!1,...n}){const r=t?nt:"button";return c.jsx(r,{"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:D("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform 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})}function zs({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:D("w-full text-sm",e),...t})}function ip({className:e,...t}){return c.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:D("flex w-full min-w-0 flex-col gap-1",e),...t})}function cp({className:e,...t}){return c.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:D("group/menu-item relative",e),...t})}const lp=Ln("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"}});function up({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:a,...s}){const i=e?nt:"button",{isMobile:l,state:p}=_t(),d=c.jsx(i,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":r,"data-active":t,className:D(lp({variant:n,size:r}),a),...s});return o?(typeof o=="string"&&(o={children:o}),c.jsxs(Os,{children:[c.jsx(ks,{asChild:!0,children:d}),c.jsx(Tr,{side:"right",align:"center",hidden:p!=="collapsed"||l,...o})]})):d}function dp({className:e,asChild:t=!1,showOnHover:n=!1,...r}){const o=t?nt:"button";return c.jsx(o,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:D("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>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&&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",e),...r})}function fp({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:D("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-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})}function pp({className:e,showIcon:t=!1,...n}){const r=u.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return c.jsxs("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:D("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[t&&c.jsx(dr,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),c.jsx(dr,{className:"h-4 max-w-(--skeleton-width) flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})}function Ws({className:e,...t}){return c.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:D("border-sidebar-border mx-3 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t})}function Gs({className:e,...t}){return c.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:D("group/menu-sub-item relative",e),...t})}function Bs({asChild:e=!1,size:t="md",isActive:n=!1,className:r,...o}){const a=e?nt:"a";return c.jsx(a,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:D("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 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","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})}function Us({title:e,url:t,children:n,defaultOpen:r=!1,icon:o,isActive:a=!1}){const[s,i]=u.useState(r);return u.useEffect(()=>{a&&i(!0)},[a]),c.jsx(Hs,{children:c.jsxs("div",{className:"flex flex-col",children:[c.jsxs("div",{className:"flex flex-row items-center justify-between",children:[c.jsxs("a",{href:t,className:D("flex flex-1 cursor-pointer items-center gap-2 rounded-lg p-2 transition-colors hover:bg-gray-100"),children:[o&&c.jsx("span",{className:D("text-gray-600"),children:o}),c.jsx("span",{className:D("text-gray-600"),children:e})]}),c.jsx("button",{type:"button",className:"mr-3 rounded-lg p-2 text-gray-500 hover:bg-gray-100 hover:text-gray-700",onClick:l=>{l.preventDefault(),l.stopPropagation(),i(!s)},"aria-label":s?"Collapse section":"Expand section",children:s?c.jsx(Jc,{className:"h-4 w-4"}):c.jsx(yo,{className:"h-4 w-4"})})]}),c.jsx("div",{className:D("overflow-hidden transition-all",s?"max-h-96":"max-h-0"),children:n})]})})}const mp="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20141%2060'%3e%3cpath%20d='M0.059%2019.711V59.673H19.509V49.95H9.779V19.711H0.059Z'%20fill='%2385B9D1'%3e%3c/path%3e%3cpath%20d='M0%200L0.056%204.915V19.715H9.776V9.715H19.5V59.673H29.22V0H0Z'%20fill='%23F68029'%3e%3c/path%3e%3cpath%20d='M23.49%2019.717H9.776V29.439H23.49V19.717Z'%20fill='%23F68029'%3e%3c/path%3e%3cpath%20d='M0.0580006%2019.718L9.785%2029.445V19.718H0.0580006Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M9.777%2049.953L19.504%2059.679V49.953H9.777Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M50.213%2021.331C50.1839%2019.244%2050.325%2017.1581%2050.635%2015.094C50.8293%2013.6891%2051.2694%2012.3294%2051.935%2011.077C52.4295%2010.1519%2053.1979%209.4023%2054.135%208.93101C55.1033%208.49691%2056.1561%208.28375%2057.217%208.307C58.2628%208.27673%2059.3024%208.47715%2060.262%208.894C61.1441%209.33605%2061.8541%2010.059%2062.28%2010.949C62.8725%2012.1976%2063.2507%2013.5369%2063.399%2014.911C63.6554%2016.9922%2063.7717%2019.0882%2063.747%2021.185C63.7759%2023.338%2063.6421%2025.4901%2063.347%2027.623C63.1657%2029.0675%2062.7378%2030.4702%2062.082%2031.77C61.6022%2032.7122%2060.8471%2033.4862%2059.917%2033.989C58.9503%2034.4507%2057.888%2034.6768%2056.817%2034.649C55.7687%2034.6771%2054.7258%2034.4896%2053.753%2034.098C52.8534%2033.6775%2052.1275%2032.9579%2051.699%2032.062C51.0884%2030.7803%2050.7037%2029.4027%2050.562%2027.99C50.3018%2025.7802%2050.1852%2023.5559%2050.213%2021.331ZM54.913%2022.248C54.913%2023.6913%2054.9377%2024.9267%2054.987%2025.954C55.0147%2026.8043%2055.1127%2027.6509%2055.28%2028.485C55.3666%2029.0149%2055.5877%2029.5138%2055.922%2029.934C56.0643%2030.0868%2056.238%2030.207%2056.4312%2030.2862C56.6244%2030.3655%2056.8324%2030.4019%2057.041%2030.393C57.25%2030.3964%2057.4571%2030.3533%2057.6473%2030.2668C57.8375%2030.1803%2058.0062%2030.0526%2058.141%2029.893C58.4964%2029.4241%2058.7297%2028.8744%2058.82%2028.293C59.0025%2027.3609%2059.1128%2026.4161%2059.15%2025.467C59.2107%2024.3177%2059.2414%2022.936%2059.242%2021.322C59.242%2019.732%2059.224%2018.3747%2059.188%2017.25C59.169%2016.3373%2059.0736%2015.4278%2058.903%2014.531C58.8198%2013.9744%2058.5923%2013.4493%2058.243%2013.008C58.0929%2012.8491%2057.9104%2012.7244%2057.7078%2012.6422C57.5053%2012.5601%2057.2874%2012.5225%2057.069%2012.532C56.8667%2012.5304%2056.6668%2012.576%2056.4852%2012.6652C56.3036%2012.7544%2056.1453%2012.8848%2056.023%2013.046C55.6766%2013.5389%2055.4446%2014.103%2055.344%2014.697C55.1442%2015.6885%2055.0277%2016.695%2054.996%2017.706C54.9347%2018.9533%2054.904%2020.4697%2054.904%2022.255'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M83.329%2021.331C83.2999%2019.244%2083.441%2017.1581%2083.751%2015.094C83.9453%2013.6891%2084.3854%2012.3294%2085.051%2011.077C85.5455%2010.1519%2086.3139%209.40235%2087.251%208.93105C89.2087%208.112%2091.4106%208.09871%2093.378%208.89405C94.2601%209.33609%2094.9701%2010.0591%2095.396%2010.949C95.9885%2012.1976%2096.3667%2013.537%2096.515%2014.911C96.7714%2016.9922%2096.8877%2019.0883%2096.863%2021.185C96.8919%2023.3381%2096.7581%2025.4902%2096.463%2027.6231C96.2817%2029.0676%2095.8538%2030.4703%2095.198%2031.77C94.7182%2032.7123%2093.9631%2033.4862%2093.033%2033.989C92.0663%2034.4507%2091.004%2034.6769%2089.933%2034.649C88.8847%2034.6772%2087.8418%2034.4896%2086.869%2034.098C85.9694%2033.6775%2085.2435%2032.9579%2084.815%2032.062C84.2044%2030.7803%2083.8197%2029.4027%2083.678%2027.99C83.4178%2025.7803%2083.3012%2023.5559%2083.329%2021.331ZM88.029%2022.2481C88.029%2023.6914%2088.0537%2024.9267%2088.103%2025.954C88.1307%2026.8044%2088.2287%2027.6509%2088.396%2028.4851C88.4826%2029.015%2088.7037%2029.5139%2089.038%2029.934C89.1803%2030.0869%2089.354%2030.207%2089.5472%2030.2863C89.7404%2030.3655%2089.9484%2030.4019%2090.157%2030.393C90.366%2030.3964%2090.573%2030.3533%2090.7633%2030.2669C90.9535%2030.1804%2091.1222%2030.0527%2091.257%2029.893C91.6124%2029.4242%2091.8458%2028.8744%2091.936%2028.2931C92.1185%2027.3609%2092.2288%2026.4161%2092.266%2025.467C92.3267%2024.3177%2092.3574%2022.936%2092.358%2021.322C92.358%2019.732%2092.34%2018.3747%2092.304%2017.2501C92.2887%2016.3329%2092.1964%2015.4187%2092.028%2014.517C91.9448%2013.9605%2091.7173%2013.4354%2091.368%2012.994C91.2162%2012.8368%2091.0323%2012.7141%2090.8289%2012.6343C90.6255%2012.5544%2090.4072%2012.5192%2090.189%2012.531C89.9867%2012.5294%2089.7868%2012.575%2089.6052%2012.6643C89.4236%2012.7535%2089.2653%2012.8839%2089.143%2013.045C88.7966%2013.5379%2088.5646%2014.102%2088.464%2014.6961C88.2642%2015.6876%2088.1477%2016.6941%2088.116%2017.705C88.0547%2018.9524%2088.024%2020.4687%2088.024%2022.254'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M131.349%2034.65V8.32202H135.458V30.797H140.631V34.649L131.349%2034.65Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M71.95%2034.65V8.33203H76.059V30.796H81.232V34.648L71.95%2034.65Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M104.833%2014.692C104.934%2014.098%20105.166%2013.534%20105.512%2013.041C105.634%2012.8798%20105.793%2012.7494%20105.974%2012.6602C106.156%2012.571%20106.356%2012.5253%20106.558%2012.527H110.103V8.30798H106.703C105.642%208.2848%20104.589%208.49794%20103.621%208.93197C102.684%209.40306%20101.915%2010.1527%20101.421%2011.078C100.756%2012.3304%20100.316%2013.6901%20100.121%2015.095C99.8114%2017.1591%2099.6706%2019.245%2099.7%2021.332C99.6722%2023.5568%2099.7885%2025.7811%20100.048%2027.991C100.19%2029.4037%20100.574%2030.7812%20101.185%2032.063C101.614%2032.9584%20102.34%2033.6778%20103.239%2034.099C104.212%2034.4899%20105.255%2034.6771%20106.303%2034.649L110.103%2034.613V30.393H106.522C106.313%2030.402%20106.105%2030.3657%20105.912%2030.2866C105.719%2030.2076%20105.545%2030.0876%20105.403%2029.935C105.069%2029.5144%20104.848%2029.0152%20104.761%2028.485C104.594%2027.6509%20104.496%2026.8043%20104.468%2025.954C104.419%2024.9266%20104.394%2023.6916%20104.394%2022.249C104.394%2020.4636%20104.425%2018.9473%20104.486%2017.7C104.518%2016.6894%20104.633%2015.6832%20104.833%2014.692Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M46.728%2019.247H42.878V30.395H41.828C41.6182%2030.4039%2041.409%2030.3669%2041.2149%2030.2868C41.0208%2030.2067%2040.8465%2030.0853%2040.704%2029.931C40.3695%2029.5106%2040.1485%2029.0113%2040.062%2028.481C39.894%2027.647%2039.7956%2026.8004%2039.768%2025.95C39.7187%2024.9227%2039.6944%2023.6877%2039.695%2022.245C39.695%2020.4597%2039.7257%2018.9434%2039.787%2017.696C39.8191%2016.6854%2039.9355%2015.6792%2040.135%2014.688C40.2357%2014.094%2040.4677%2013.53%2040.814%2013.037C40.9376%2012.8768%2041.0968%2012.7476%2041.2791%2012.6598C41.4614%2012.5719%2041.6617%2012.5278%2041.864%2012.531H45.904V8.31202H42.012C40.9511%208.28877%2039.8983%208.50191%2038.93%208.93601C37.9927%209.40699%2037.2241%2010.1567%2036.73%2011.082C36.0644%2012.3344%2035.6243%2013.6941%2035.43%2015.099C35.1189%2017.1613%2034.9764%2019.2456%2035.004%2021.331C34.9762%2023.5559%2035.0925%2025.7802%2035.352%2027.99C35.494%2029.4026%2035.8787%2030.7802%2036.489%2032.062C36.9179%2032.9579%2037.6442%2033.6775%2038.544%2034.098C39.517%2034.4891%2040.5598%2034.6763%2041.608%2034.648L43.587%2034.629H46.727L46.728%2019.247Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M123.653%2029.87H118L116.691%2034.65H112.797L120.939%208L128.793%2034.65H124.856L123.653%2029.87ZM122.587%2026.212L120.893%2019.982L119.085%2026.212H122.587Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M39.016%2041.436H37.059V54.507H39.016V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M44.559%2041.436H46.384L48.331%2046.651C48.919%2048.1937%2049.4198%2049.7682%2049.831%2051.367C49.6744%2050.357%2049.5584%2049.4427%2049.483%2048.624C49.4077%2047.8054%2049.37%2047.0347%2049.37%2046.312V41.436H51.336V54.511H49.495L47.303%2048.627C47.103%2048.0797%2046.9134%2047.518%2046.734%2046.942C46.5547%2046.366%2046.39%2045.762%2046.24%2045.13C46.2274%2045.0507%2046.207%2044.9547%2046.179%2044.842C46.151%2044.7293%2046.1177%2044.5997%2046.079%2044.453C46.098%2044.6%2046.114%2044.725%2046.126%2044.829C46.138%2044.933%2046.148%2045.022%2046.154%2045.095L46.254%2046.424L46.354%2048.041C46.36%2048.131%2046.365%2048.241%2046.368%2048.371C46.371%2048.501%2046.368%2048.648%2046.368%2048.811L46.468%2054.511H44.559V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M55.493%2041.436H61.861V42.977H59.67V54.511H57.751V42.977H55.493V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M65.828%2041.436H71.028V42.926H67.787V47.065H70.665V48.555H67.787V53.016H71.028V54.506H65.828V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M75.906%2041.436H78.483C79.3332%2041.3696%2080.1787%2041.6132%2080.863%2042.122C81.2131%2042.4774%2081.4826%2042.904%2081.6531%2043.3729C81.8236%2043.8417%2081.8911%2044.3418%2081.851%2044.839C81.8876%2045.6248%2081.7066%2046.4055%2081.328%2047.095C81.1685%2047.3665%2080.9531%2047.6008%2080.696%2047.7826C80.4389%2047.9643%2080.1461%2048.0892%2079.837%2048.149L82.509%2054.507H80.525L77.863%2048.107V54.507H75.906V41.436ZM77.863%2047.227C78.1485%2047.2893%2078.4451%2047.279%2078.7256%2047.1969C79.0061%2047.1148%2079.2615%2046.9637%2079.4684%2046.7573C79.6753%2046.5509%2079.8271%2046.2959%2079.9098%2046.0156C79.9926%2045.7353%2080.0036%2045.4387%2079.942%2045.153C79.9472%2044.8034%2079.9137%2044.4543%2079.842%2044.112C79.7909%2043.8589%2079.6851%2043.62%2079.532%2043.412C79.3909%2043.2304%2079.2018%2043.0918%2078.986%2043.012C78.7308%2042.9221%2078.4615%2042.8791%2078.191%2042.885H77.862L77.863%2047.227Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M90.046%2041.06L85.913%2054.514H87.745L88.45%2051.974H91.496L92.135%2054.531H94.028L90.046%2041.06ZM88.876%2050.403L90.013%2046.703L91.048%2050.415L88.876%2050.403Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M106.344%2041.436H112.712V42.977H110.52V54.511H108.602V42.977H106.344V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M118.865%2041.462H116.908V54.533H118.865V41.462Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M134.181%2041.462H139.381V42.952H136.136V47.093H139.014V48.583H136.136V53.044H139.381V54.534H134.181V41.462Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M99.749%2044.338C99.8046%2044.0109%2099.9338%2043.7008%20100.127%2043.431C100.202%2043.3322%20100.3%2043.2523%20100.411%2043.1976C100.523%2043.1429%20100.646%2043.115%20100.77%2043.116H102.464V41.207H100.846C100.318%2041.1955%2099.7949%2041.3011%2099.313%2041.516C98.8543%2041.748%2098.4782%2042.1157%2098.236%2042.569C97.9008%2043.2016%2097.6788%2043.888%2097.58%2044.597C97.4215%2045.6561%2097.3493%2046.7263%2097.364%2047.797C97.3503%2048.9393%2097.4101%2050.0814%2097.543%2051.216C97.6145%2051.9294%2097.808%2052.6252%2098.115%2053.273C98.3244%2053.7086%2098.6776%2054.0586%2099.115%2054.264C99.6001%2054.458%20100.12%2054.5509%20100.642%2054.537L102.469%2054.52V52.61H100.755C100.629%2052.6147%20100.503%2052.592%20100.386%2052.5435C100.269%2052.495%20100.164%2052.4218%20100.078%2052.329C99.8888%2052.0951%2099.7637%2051.816%2099.715%2051.519C99.6273%2051.081%2099.5758%2050.6365%2099.561%2050.19C99.536%2049.66%2099.523%2049.014%2099.523%2048.27C99.523%2047.349%2099.539%2046.557%2099.57%2045.916C99.5873%2045.3865%2099.6485%2044.8594%2099.753%2044.34'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M128.799%2041.466L126.671%2048.91L124.671%2041.466H122.679L126.654%2054.953L130.774%2041.466H128.799Z'%20fill='%230A3763'%3e%3c/path%3e%3c/svg%3e";function hp(){const[e,t]=I.useState("");return I.useEffect(()=>{t(window.location.pathname);const r=()=>{t(window.location.pathname)},o=()=>{t(window.location.pathname)};return window.addEventListener("popstate",r),window.addEventListener("pushstate",o),window.addEventListener("replacestate",o),()=>{window.removeEventListener("popstate",r),window.removeEventListener("pushstate",o),window.removeEventListener("replacestate",o)}},[]),{currentPath:e,isActiveRoute:r=>!!(e===r||r!=="/"&&e.startsWith(r))}}const gp={navMain:[{title:"Essential Insights",url:"/essential-insights/overall-performance",icon:c.jsx(Xc,{className:"h-5 w-5"}),items:[{title:"Overall Performance",url:"/essential-insights/overall-performance",icon:c.jsx(Co,{className:"h-4 w-4"})},{title:"Organic Performance",url:"/essential-insights/organic-performance",icon:c.jsx(wo,{className:"h-4 w-4"})},{title:"Paid Performance",url:"/essential-insights/paid-performance",icon:c.jsx(qc,{className:"h-4 w-4"})},{title:"Keyword Performance",url:"/essential-insights/keyword-performance",icon:c.jsx(wo,{className:"h-4 w-4"})},{title:"More Components",url:"/essential-insights/more-components",icon:c.jsx(et,{className:"h-4 w-4"})}]},{title:"Price Monster",url:"/price-monster",icon:c.jsx(Qc,{className:"h-4 w-4"}),items:[{title:"Dashboard",url:"/price-monster/dashboard",icon:c.jsx(et,{className:"h-4 w-4"})},{title:"Documentation",url:"/price-monster/documentation",icon:c.jsx(Kc,{className:"h-4 w-4"})},{title:"Subscriptions",url:"/price-monster/subscriptions",icon:c.jsx(Yc,{className:"h-4 w-4"})}]},{title:"CMS",url:"/cms",icon:c.jsx(et,{className:"h-4 w-4"}),items:[{title:"Dashboard",url:"/cms/dashboard",icon:c.jsx(et,{className:"h-4 w-4"})}]},{title:"Storage Essentials",url:"/storage-essentials",icon:c.jsx(et,{className:"h-4 w-4"}),items:[{title:"Dashboard",url:"/storage-essentials/dashboard",icon:c.jsx(et,{className:"h-4 w-4"})}]}]};function vp({...e}){const{isActiveRoute:t}=hp();return c.jsxs(Is,{...e,children:[c.jsx($s,{children:c.jsx("div",{className:"relative h-12 w-32 overflow-hidden",children:c.jsx("img",{src:mp,alt:"GLI Logo",className:"h-full w-full object-contain"})})}),c.jsxs(Vs,{children:[c.jsx("div",{className:"relative flex w-full min-w-0 flex-col px-2 py-1",children:c.jsx("div",{className:"flex flex-col",children:c.jsxs("a",{href:"/",className:D("flex cursor-pointer items-center gap-2 rounded-lg px-2 py-2 transition-colors","hover:bg-gray-100",t("/")&&"bg-blue-50 text-gli-bluedark font-medium"),children:[c.jsx(Co,{className:D("h-5 w-5",t("/")?"text-gli-bluedark":"text-gray-600")}),c.jsx("span",{children:"Home"})]})})}),gp.navMain.map(n=>{const r=t(n.url)||n.items.some(o=>t(o.url));return c.jsx(Us,{title:n.title,url:n.url,icon:n.icon,isActive:r,children:c.jsx(zs,{children:c.jsx(Ws,{children:n.items.map(o=>{const a=t(o.url);return c.jsx(Gs,{children:c.jsx(Bs,{asChild:!0,children:c.jsxs("a",{href:o.url,className:D("flex items-center gap-2 pl-4 transition-colors","text-muted-foreground hover:bg-muted hover:text-foreground",a&&"bg-blue-50 text-gli-bluedark font-medium"),children:[c.jsx("span",{className:D(a?"text-gli-bluedark":"text-muted-foreground"),children:o.icon}),c.jsx("span",{className:D(a?"text-gli-bluedark":"text-muted-foreground"),children:o.title})]})})},o.title)})})})},n.title)})]}),c.jsx(Ls,{})]})}function Ks(e){const t=e+"CollectionProvider",[n,r]=Xe(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{const{scope:x,children:v}=g,w=I.useRef(null),S=I.useRef(new Map).current;return c.jsx(o,{scope:x,itemMap:S,collectionRef:w,children:v})};s.displayName=t;const i=e+"CollectionSlot",l=tt(i),p=I.forwardRef((g,x)=>{const{scope:v,children:w}=g,S=a(i,v),E=ie(x,S.collectionRef);return c.jsx(l,{ref:E,children:w})});p.displayName=i;const d=e+"CollectionItemSlot",f="data-radix-collection-item",m=tt(d),h=I.forwardRef((g,x)=>{const{scope:v,children:w,...S}=g,E=I.useRef(null),_=ie(x,E),N=a(d,v);return I.useEffect(()=>(N.itemMap.set(E,{ref:E,...S}),()=>void N.itemMap.delete(E))),c.jsx(m,{[f]:"",ref:_,children:w})});h.displayName=d;function b(g){const x=a(e+"CollectionConsumer",g);return I.useCallback(()=>{const w=x.collectionRef.current;if(!w)return[];const S=Array.from(w.querySelectorAll(`[${f}]`));return Array.from(x.itemMap.values()).sort((N,M)=>S.indexOf(N.ref.current)-S.indexOf(M.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:s,Slot:p,ItemSlot:h},b,r]}var bp=u.createContext(void 0);function Ys(e){const t=u.useContext(bp);return e||t||"ltr"}var Or="rovingFocusGroup.onEntryFocus",xp={bubbles:!1,cancelable:!0},Rt="RovingFocusGroup",[kr,qs,wp]=Ks(Rt),[yp,Xs]=Xe(Rt,[wp]),[Cp,Sp]=yp(Rt),Zs=u.forwardRef((e,t)=>c.jsx(kr.Provider,{scope:e.__scopeRovingFocusGroup,children:c.jsx(kr.Slot,{scope:e.__scopeRovingFocusGroup,children:c.jsx(Ep,{...e,ref:t})})}));Zs.displayName=Rt;var Ep=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:l,onEntryFocus:p,preventScrollOnEntryFocus:d=!1,...f}=e,m=u.useRef(null),h=ie(t,m),b=Ys(a),[g,x]=wt({prop:s,defaultProp:i??null,onChange:l,caller:Rt}),[v,w]=u.useState(!1),S=_e(p),E=qs(n),_=u.useRef(!1),[N,M]=u.useState(0);return u.useEffect(()=>{const C=m.current;if(C)return C.addEventListener(Or,S),()=>C.removeEventListener(Or,S)},[S]),c.jsx(Cp,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:g,onItemFocus:u.useCallback(C=>x(C),[x]),onItemShiftTab:u.useCallback(()=>w(!0),[]),onFocusableItemAdd:u.useCallback(()=>M(C=>C+1),[]),onFocusableItemRemove:u.useCallback(()=>M(C=>C-1),[]),children:c.jsx(re.div,{tabIndex:v||N===0?-1:0,"data-orientation":r,...f,ref:h,style:{outline:"none",...e.style},onMouseDown:$(e.onMouseDown,()=>{_.current=!0}),onFocus:$(e.onFocus,C=>{const j=!_.current;if(C.target===C.currentTarget&&j&&!v){const L=new CustomEvent(Or,xp);if(C.currentTarget.dispatchEvent(L),!L.defaultPrevented){const U=E().filter(V=>V.focusable),B=U.find(V=>V.active),z=U.find(V=>V.id===g),X=[B,z,...U].filter(Boolean).map(V=>V.ref.current);ei(X,d)}}_.current=!1}),onBlur:$(e.onBlur,()=>w(!1))})})}),Js="RovingFocusGroupItem",Qs=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:s,...i}=e,l=De(),p=a||l,d=Sp(Js,n),f=d.currentTabStopId===p,m=qs(n),{onFocusableItemAdd:h,onFocusableItemRemove:b,currentTabStopId:g}=d;return u.useEffect(()=>{if(r)return h(),()=>b()},[r,h,b]),c.jsx(kr.ItemSlot,{scope:n,id:p,focusable:r,active:o,children:c.jsx(re.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...i,ref:t,onMouseDown:$(e.onMouseDown,x=>{r?d.onItemFocus(p):x.preventDefault()}),onFocus:$(e.onFocus,()=>d.onItemFocus(p)),onKeyDown:$(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){d.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const v=Mp(x,d.orientation,d.dir);if(v!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let S=m().filter(E=>E.focusable).map(E=>E.ref.current);if(v==="last")S.reverse();else if(v==="prev"||v==="next"){v==="prev"&&S.reverse();const E=S.indexOf(x.currentTarget);S=d.loop?Ap(S,E+1):S.slice(E+1)}setTimeout(()=>ei(S))}}),children:typeof s=="function"?s({isCurrentTabStop:f,hasTabStop:g!=null}):s})})});Qs.displayName=Js;var _p={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Rp(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Mp(e,t,n){const r=Rp(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return _p[r]}function ei(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Ap(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Np=Zs,Tp=Qs,Pr=["Enter"," "],Op=["ArrowDown","PageUp","Home"],ti=["ArrowUp","PageDown","End"],kp=[...Op,...ti],Pp={ltr:[...Pr,"ArrowRight"],rtl:[...Pr,"ArrowLeft"]},Dp={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Mt="Menu",[At,Ip,jp]=Ks(Mt),[Qe,ni]=Xe(Mt,[jp,dn,Xs]),Nt=dn(),ri=Xs(),[oi,Ue]=Qe(Mt),[Lp,Tt]=Qe(Mt),ai=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:s=!0}=e,i=Nt(t),[l,p]=u.useState(null),d=u.useRef(!1),f=_e(a),m=Ys(o);return u.useEffect(()=>{const h=()=>{d.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>d.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),c.jsx(Rr,{...i,children:c.jsx(oi,{scope:t,open:n,onOpenChange:f,content:l,onContentChange:p,children:c.jsx(Lp,{scope:t,onClose:u.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:m,modal:s,children:r})})})};ai.displayName=Mt;var Fp="MenuAnchor",Dr=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Nt(n);return c.jsx(bs,{...o,...r,ref:t})});Dr.displayName=Fp;var Ir="MenuPortal",[$p,si]=Qe(Ir,{forceMount:void 0}),ii=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=Ue(Ir,t);return c.jsx($p,{scope:t,forceMount:n,children:c.jsx(Ie,{present:n||a.open,children:c.jsx(qn,{asChild:!0,container:o,children:r})})})};ii.displayName=Ir;var be="MenuContent",[Vp,jr]=Qe(be),ci=u.forwardRef((e,t)=>{const n=si(be,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Ue(be,e.__scopeMenu),s=Tt(be,e.__scopeMenu);return c.jsx(At.Provider,{scope:e.__scopeMenu,children:c.jsx(Ie,{present:r||a.open,children:c.jsx(At.Slot,{scope:e.__scopeMenu,children:s.modal?c.jsx(Hp,{...o,ref:t}):c.jsx(zp,{...o,ref:t})})})})}),Hp=u.forwardRef((e,t)=>{const n=Ue(be,e.__scopeMenu),r=u.useRef(null),o=ie(t,r);return u.useEffect(()=>{const a=r.current;if(a)return xa(a)},[]),c.jsx(Lr,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:$(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),zp=u.forwardRef((e,t)=>{const n=Ue(be,e.__scopeMenu);return c.jsx(Lr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Wp=tt("MenuContent.ScrollLock"),Lr=u.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEntryFocus:l,onEscapeKeyDown:p,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:m,onDismiss:h,disableOutsideScroll:b,...g}=e,x=Ue(be,n),v=Tt(be,n),w=Nt(n),S=ri(n),E=Ip(n),[_,N]=u.useState(null),M=u.useRef(null),C=ie(t,M,x.onContentChange),j=u.useRef(0),L=u.useRef(""),U=u.useRef(0),B=u.useRef(null),z=u.useRef("right"),W=u.useRef(0),X=b?tr:u.Fragment,V=b?{as:Wp,allowPinchZoom:!0}:void 0,K=T=>{var Y,ee;const y=L.current+T,P=E().filter(te=>!te.disabled),F=document.activeElement,H=(Y=P.find(te=>te.ref.current===F))==null?void 0:Y.textValue,Z=P.map(te=>te.textValue),ne=tm(Z,y,H),ue=(ee=P.find(te=>te.textValue===ne))==null?void 0:ee.ref.current;(function te(se){L.current=se,window.clearTimeout(j.current),se!==""&&(j.current=window.setTimeout(()=>te(""),1e3))})(y),ue&&setTimeout(()=>ue.focus())};u.useEffect(()=>()=>window.clearTimeout(j.current),[]),oa();const R=u.useCallback(T=>{var P,F;return z.current===((P=B.current)==null?void 0:P.side)&&rm(T,(F=B.current)==null?void 0:F.area)},[]);return c.jsx(Vp,{scope:n,searchRef:L,onItemEnter:u.useCallback(T=>{R(T)&&T.preventDefault()},[R]),onItemLeave:u.useCallback(T=>{var y;R(T)||((y=M.current)==null||y.focus(),N(null))},[R]),onTriggerLeave:u.useCallback(T=>{R(T)&&T.preventDefault()},[R]),pointerGraceTimerRef:U,onPointerGraceIntentChange:u.useCallback(T=>{B.current=T},[]),children:c.jsx(X,{...V,children:c.jsx(Yn,{asChild:!0,trapped:o,onMountAutoFocus:$(a,T=>{var y;T.preventDefault(),(y=M.current)==null||y.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:c.jsx(Gt,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:p,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:m,onDismiss:h,children:c.jsx(Np,{asChild:!0,...S,dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:_,onCurrentTabStopIdChange:N,onEntryFocus:$(l,T=>{v.isUsingKeyboardRef.current||T.preventDefault()}),preventScrollOnEntryFocus:!0,children:c.jsx(xs,{role:"menu","aria-orientation":"vertical","data-state":Ri(x.open),"data-radix-menu-content":"",dir:v.dir,...w,...g,ref:C,style:{outline:"none",...g.style},onKeyDown:$(g.onKeyDown,T=>{const P=T.target.closest("[data-radix-menu-content]")===T.currentTarget,F=T.ctrlKey||T.altKey||T.metaKey,H=T.key.length===1;P&&(T.key==="Tab"&&T.preventDefault(),!F&&H&&K(T.key));const Z=M.current;if(T.target!==Z||!kp.includes(T.key))return;T.preventDefault();const ue=E().filter(Y=>!Y.disabled).map(Y=>Y.ref.current);ti.includes(T.key)&&ue.reverse(),Qp(ue)}),onBlur:$(e.onBlur,T=>{T.currentTarget.contains(T.target)||(window.clearTimeout(j.current),L.current="")}),onPointerMove:$(e.onPointerMove,kt(T=>{const y=T.target,P=W.current!==T.clientX;if(T.currentTarget.contains(y)&&P){const F=T.clientX>W.current?"right":"left";z.current=F,W.current=T.clientX}}))})})})})})})});ci.displayName=be;var Gp="MenuGroup",Fr=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.jsx(re.div,{role:"group",...r,ref:t})});Fr.displayName=Gp;var Bp="MenuLabel",li=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.jsx(re.div,{...r,ref:t})});li.displayName=Bp;var hn="MenuItem",ui="menu.itemSelect",gn=u.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=u.useRef(null),s=Tt(hn,e.__scopeMenu),i=jr(hn,e.__scopeMenu),l=ie(t,a),p=u.useRef(!1),d=()=>{const f=a.current;if(!n&&f){const m=new CustomEvent(ui,{bubbles:!0,cancelable:!0});f.addEventListener(ui,h=>r==null?void 0:r(h),{once:!0}),Bo(f,m),m.defaultPrevented?p.current=!1:s.onClose()}};return c.jsx(di,{...o,ref:l,disabled:n,onClick:$(e.onClick,d),onPointerDown:f=>{var m;(m=e.onPointerDown)==null||m.call(e,f),p.current=!0},onPointerUp:$(e.onPointerUp,f=>{var m;p.current||(m=f.currentTarget)==null||m.click()}),onKeyDown:$(e.onKeyDown,f=>{const m=i.searchRef.current!=="";n||m&&f.key===" "||Pr.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});gn.displayName=hn;var di=u.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,s=jr(hn,n),i=ri(n),l=u.useRef(null),p=ie(t,l),[d,f]=u.useState(!1),[m,h]=u.useState("");return u.useEffect(()=>{const b=l.current;b&&h((b.textContent??"").trim())},[a.children]),c.jsx(At.ItemSlot,{scope:n,disabled:r,textValue:o??m,children:c.jsx(Tp,{asChild:!0,...i,focusable:!r,children:c.jsx(re.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:p,onPointerMove:$(e.onPointerMove,kt(b=>{r?s.onItemLeave(b):(s.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:$(e.onPointerLeave,kt(b=>s.onItemLeave(b))),onFocus:$(e.onFocus,()=>f(!0)),onBlur:$(e.onBlur,()=>f(!1))})})})}),Up="MenuCheckboxItem",fi=u.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return c.jsx(vi,{scope:e.__scopeMenu,checked:n,children:c.jsx(gn,{role:"menuitemcheckbox","aria-checked":vn(n)?"mixed":n,...o,ref:t,"data-state":Hr(n),onSelect:$(o.onSelect,()=>r==null?void 0:r(vn(n)?!0:!n),{checkForDefaultPrevented:!1})})})});fi.displayName=Up;var pi="MenuRadioGroup",[Kp,Yp]=Qe(pi,{value:void 0,onValueChange:()=>{}}),mi=u.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=_e(r);return c.jsx(Kp,{scope:e.__scopeMenu,value:n,onValueChange:a,children:c.jsx(Fr,{...o,ref:t})})});mi.displayName=pi;var hi="MenuRadioItem",gi=u.forwardRef((e,t)=>{const{value:n,...r}=e,o=Yp(hi,e.__scopeMenu),a=n===o.value;return c.jsx(vi,{scope:e.__scopeMenu,checked:a,children:c.jsx(gn,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":Hr(a),onSelect:$(r.onSelect,()=>{var s;return(s=o.onValueChange)==null?void 0:s.call(o,n)},{checkForDefaultPrevented:!1})})})});gi.displayName=hi;var $r="MenuItemIndicator",[vi,qp]=Qe($r,{checked:!1}),bi=u.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=qp($r,n);return c.jsx(Ie,{present:r||vn(a.checked)||a.checked===!0,children:c.jsx(re.span,{...o,ref:t,"data-state":Hr(a.checked)})})});bi.displayName=$r;var Xp="MenuSeparator",xi=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.jsx(re.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});xi.displayName=Xp;var Zp="MenuArrow",wi=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Nt(n);return c.jsx(ws,{...o,...r,ref:t})});wi.displayName=Zp;var Vr="MenuSub",[Jp,yi]=Qe(Vr),Ci=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,a=Ue(Vr,t),s=Nt(t),[i,l]=u.useState(null),[p,d]=u.useState(null),f=_e(o);return u.useEffect(()=>(a.open===!1&&f(!1),()=>f(!1)),[a.open,f]),c.jsx(Rr,{...s,children:c.jsx(oi,{scope:t,open:r,onOpenChange:f,content:p,onContentChange:d,children:c.jsx(Jp,{scope:t,contentId:De(),triggerId:De(),trigger:i,onTriggerChange:l,children:n})})})};Ci.displayName=Vr;var Ot="MenuSubTrigger",Si=u.forwardRef((e,t)=>{const n=Ue(Ot,e.__scopeMenu),r=Tt(Ot,e.__scopeMenu),o=yi(Ot,e.__scopeMenu),a=jr(Ot,e.__scopeMenu),s=u.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:l}=a,p={__scopeMenu:e.__scopeMenu},d=u.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return u.useEffect(()=>d,[d]),u.useEffect(()=>{const f=i.current;return()=>{window.clearTimeout(f),l(null)}},[i,l]),c.jsx(Dr,{asChild:!0,...p,children:c.jsx(di,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Ri(n.open),...e,ref:$t(t,o.onTriggerChange),onClick:f=>{var m;(m=e.onClick)==null||m.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:$(e.onPointerMove,kt(f=>{a.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:$(e.onPointerLeave,kt(f=>{var h,b;d();const m=(h=n.content)==null?void 0:h.getBoundingClientRect();if(m){const g=(b=n.content)==null?void 0:b.dataset.side,x=g==="right",v=x?-5:5,w=m[x?"left":"right"],S=m[x?"right":"left"];a.onPointerGraceIntentChange({area:[{x:f.clientX+v,y:f.clientY},{x:w,y:m.top},{x:S,y:m.top},{x:S,y:m.bottom},{x:w,y:m.bottom}],side:g}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(f),f.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:$(e.onKeyDown,f=>{var h;const m=a.searchRef.current!=="";e.disabled||m&&f.key===" "||Pp[r.dir].includes(f.key)&&(n.onOpenChange(!0),(h=n.content)==null||h.focus(),f.preventDefault())})})})});Si.displayName=Ot;var Ei="MenuSubContent",_i=u.forwardRef((e,t)=>{const n=si(be,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Ue(be,e.__scopeMenu),s=Tt(be,e.__scopeMenu),i=yi(Ei,e.__scopeMenu),l=u.useRef(null),p=ie(t,l);return c.jsx(At.Provider,{scope:e.__scopeMenu,children:c.jsx(Ie,{present:r||a.open,children:c.jsx(At.Slot,{scope:e.__scopeMenu,children:c.jsx(Lr,{id:i.contentId,"aria-labelledby":i.triggerId,...o,ref:p,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var f;s.isUsingKeyboardRef.current&&((f=l.current)==null||f.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:$(e.onFocusOutside,d=>{d.target!==i.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:$(e.onEscapeKeyDown,d=>{s.onClose(),d.preventDefault()}),onKeyDown:$(e.onKeyDown,d=>{var h;const f=d.currentTarget.contains(d.target),m=Dp[s.dir].includes(d.key);f&&m&&(a.onOpenChange(!1),(h=i.trigger)==null||h.focus(),d.preventDefault())})})})})})});_i.displayName=Ei;function Ri(e){return e?"open":"closed"}function vn(e){return e==="indeterminate"}function Hr(e){return vn(e)?"indeterminate":e?"checked":"unchecked"}function Qp(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function em(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function tm(e,t,n){const o=t.length>1&&Array.from(t).every(p=>p===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=em(e,Math.max(a,0));o.length===1&&(s=s.filter(p=>p!==n));const l=s.find(p=>p.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function nm(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 i=t[a],l=t[s],p=i.x,d=i.y,f=l.x,m=l.y;d>r!=m>r&&n<(f-p)*(r-d)/(m-d)+p&&(o=!o)}return o}function rm(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return nm(n,t)}function kt(e){return t=>t.pointerType==="mouse"?e(t):void 0}var om=ai,am=Dr,sm=ii,im=ci,cm=Fr,lm=li,um=gn,dm=fi,fm=mi,pm=gi,mm=bi,hm=xi,gm=wi,vm=Ci,bm=Si,xm=_i,bn="DropdownMenu",[wm,D0]=Xe(bn,[ni]),pe=ni(),[ym,Mi]=wm(bn),Ai=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:s,modal:i=!0}=e,l=pe(t),p=u.useRef(null),[d,f]=wt({prop:o,defaultProp:a??!1,onChange:s,caller:bn});return c.jsx(ym,{scope:t,triggerId:De(),triggerRef:p,contentId:De(),open:d,onOpenChange:f,onOpenToggle:u.useCallback(()=>f(m=>!m),[f]),modal:i,children:c.jsx(om,{...l,open:d,onOpenChange:f,dir:r,modal:i,children:n})})};Ai.displayName=bn;var Ni="DropdownMenuTrigger",Ti=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=Mi(Ni,n),s=pe(n);return c.jsx(am,{asChild:!0,...s,children:c.jsx(re.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:$t(t,a.triggerRef),onPointerDown:$(e.onPointerDown,i=>{!r&&i.button===0&&i.ctrlKey===!1&&(a.onOpenToggle(),a.open||i.preventDefault())}),onKeyDown:$(e.onKeyDown,i=>{r||(["Enter"," "].includes(i.key)&&a.onOpenToggle(),i.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});Ti.displayName=Ni;var Cm="DropdownMenuPortal",Oi=e=>{const{__scopeDropdownMenu:t,...n}=e,r=pe(t);return c.jsx(sm,{...r,...n})};Oi.displayName=Cm;var ki="DropdownMenuContent",Pi=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mi(ki,n),a=pe(n),s=u.useRef(!1);return c.jsx(im,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:$(e.onCloseAutoFocus,i=>{var l;s.current||(l=o.triggerRef.current)==null||l.focus(),s.current=!1,i.preventDefault()}),onInteractOutside:$(e.onInteractOutside,i=>{const l=i.detail.originalEvent,p=l.button===0&&l.ctrlKey===!0,d=l.button===2||p;(!o.modal||d)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Pi.displayName=ki;var Sm="DropdownMenuGroup",Di=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(cm,{...o,...r,ref:t})});Di.displayName=Sm;var Em="DropdownMenuLabel",Ii=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(lm,{...o,...r,ref:t})});Ii.displayName=Em;var _m="DropdownMenuItem",ji=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(um,{...o,...r,ref:t})});ji.displayName=_m;var Rm="DropdownMenuCheckboxItem",Li=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(dm,{...o,...r,ref:t})});Li.displayName=Rm;var Mm="DropdownMenuRadioGroup",Fi=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(fm,{...o,...r,ref:t})});Fi.displayName=Mm;var Am="DropdownMenuRadioItem",$i=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(pm,{...o,...r,ref:t})});$i.displayName=Am;var Nm="DropdownMenuItemIndicator",Vi=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(mm,{...o,...r,ref:t})});Vi.displayName=Nm;var Tm="DropdownMenuSeparator",Hi=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(hm,{...o,...r,ref:t})});Hi.displayName=Tm;var Om="DropdownMenuArrow",km=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(gm,{...o,...r,ref:t})});km.displayName=Om;var Pm=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,s=pe(t),[i,l]=wt({prop:r,defaultProp:a??!1,onChange:o,caller:"DropdownMenuSub"});return c.jsx(vm,{...s,open:i,onOpenChange:l,children:n})},Dm="DropdownMenuSubTrigger",zi=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(bm,{...o,...r,ref:t})});zi.displayName=Dm;var Im="DropdownMenuSubContent",Wi=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(xm,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Wi.displayName=Im;var jm=Ai,Lm=Ti,Gi=Oi,Fm=Pi,$m=Di,Vm=Ii,Hm=ji,zm=Li,Wm=Fi,Gm=$i,Bi=Vi,Bm=Hi,Um=Pm,Km=zi,Ym=Wi;function Ui({...e}){return c.jsx(jm,{"data-slot":"dropdown-menu",...e})}function qm({...e}){return c.jsx(Gi,{"data-slot":"dropdown-menu-portal",...e})}function Ki({...e}){return c.jsx(Lm,{"data-slot":"dropdown-menu-trigger",...e})}function Yi({className:e,sideOffset:t=4,...n}){return c.jsx(Gi,{children:c.jsx(Fm,{"data-slot":"dropdown-menu-content",sideOffset:t,className:D("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...n})})}function Xm({...e}){return c.jsx($m,{"data-slot":"dropdown-menu-group",...e})}function zr({className:e,inset:t,variant:n="default",...r}){return c.jsx(Hm,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:D("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r})}function Zm({className:e,children:t,checked:n,...r}){return c.jsxs(zm,{"data-slot":"dropdown-menu-checkbox-item",className:D("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:n,...r,children:[c.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:c.jsx(Bi,{children:c.jsx(Zc,{className:"size-4"})})}),t]})}function Jm({...e}){return c.jsx(Wm,{"data-slot":"dropdown-menu-radio-group",...e})}function Qm({className:e,children:t,...n}){return c.jsxs(Gm,{"data-slot":"dropdown-menu-radio-item",className:D("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[c.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:c.jsx(Bi,{children:c.jsx(el,{className:"size-2 fill-current"})})}),t]})}function qi({className:e,inset:t,...n}){return c.jsx(Vm,{"data-slot":"dropdown-menu-label","data-inset":t,className:D("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...n})}function Xi({className:e,...t}){return c.jsx(Bm,{"data-slot":"dropdown-menu-separator",className:D("bg-border -mx-1 my-1 h-px",e),...t})}function e0({className:e,...t}){return c.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:D("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}function t0({...e}){return c.jsx(Um,{"data-slot":"dropdown-menu-sub",...e})}function n0({className:e,inset:t,children:n,...r}){return c.jsxs(Km,{"data-slot":"dropdown-menu-sub-trigger","data-inset":t,className:D("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",e),...r,children:[n,c.jsx(yo,{className:"ml-auto size-4"})]})}function r0({className:e,...t}){return c.jsx(Ym,{"data-slot":"dropdown-menu-sub-content",className:D("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...t})}const Zi=({onLogout:e})=>{const{user:t,error:n,isLoading:r}=Vc(),o=async()=>{try{e&&await e(),window.location.href="/auth/logout"}catch(a){console.error("Error during logout:",a),window.location.href="/auth/logout"}};return r?c.jsx("div",{className:"h-10 w-10 animate-pulse rounded-full bg-gray-200"}):n?c.jsxs("div",{children:["Error: ",n.message]}):t?c.jsx("div",{className:"relative flex items-center gap-3",children:c.jsxs(Ui,{children:[c.jsx(Ki,{asChild:!0,children:c.jsx(zt,{variant:"ghost",size:"lg",className:"rounded-full cursor-pointer p-0",children:t.picture?c.jsx("img",{src:t.picture,alt:t.name||"User profile",width:40,height:40,className:"rounded-full"}):c.jsx(So,{className:"h-5 w-5 text-gray-500"})})}),c.jsxs(Yi,{align:"end",className:"w-72",children:[c.jsx(qi,{children:c.jsx("div",{className:"flex flex-col space-y-1",children:c.jsxs("div",{className:"flex flex-col space-y-1",children:[c.jsx("p",{className:"text-xs text-gray-500",children:t.name}),c.jsx("p",{className:"truncate text-xs text-gray-500",children:t.email})]})})}),c.jsx(Xi,{}),c.jsx(zr,{asChild:!0,children:c.jsxs("a",{href:"/profile",className:"flex w-full cursor-default",children:[c.jsx(So,{className:"mr-2 h-4 w-4"}),c.jsx("span",{children:"Profile"})]})}),c.jsxs(zr,{onClick:o,children:[c.jsx(tl,{className:"mr-2 h-4 w-4"}),c.jsx("span",{children:"Sign out"})]})]})]})}):null},Ji=({onLogout:e})=>c.jsx("div",{className:"sticky top-0 z-50",children:c.jsxs("header",{className:"flex h-16 items-center justify-between border-b bg-white px-4",children:[c.jsxs("div",{className:"flex h-full items-center gap-4 flex-1 min-w-0 overflow-hidden",children:[c.jsx(js,{}),c.jsx(Wt,{orientation:"vertical"})]}),c.jsx("div",{className:"flex-shrink-0",children:c.jsx(Zi,{onLogout:e})})]})}),o0=({children:e,onLogout:t})=>c.jsx(Hc,{children:c.jsx(Ds,{children:c.jsxs("div",{className:"flex h-screen w-full",children:[c.jsx(vp,{}),c.jsxs(Fs,{className:"flex-1 flex flex-col min-w-0",children:[c.jsx(Ji,{onLogout:t}),c.jsx("main",{className:"flex-1 bg-white",id:"page-content",children:e})]})]})})});function a0({className:e,...t}){return c.jsx("div",{"data-slot":"card",className:D("bg-card text-card-foreground flex flex-col gap-4 rounded-xl py-6 shadow-sm",e),...t})}function s0({className:e,...t}){return c.jsx("div",{"data-slot":"card-header",className:D("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function i0({className:e,...t}){return c.jsx("div",{"data-slot":"card-title",className:D("leading-none font-semibold",e),...t})}function c0({className:e,...t}){return c.jsx("div",{"data-slot":"card-description",className:D("text-muted-foreground text-sm",e),...t})}function l0({className:e,...t}){return c.jsx("div",{"data-slot":"card-action",className:D("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t})}function u0({className:e,...t}){return c.jsx("div",{"data-slot":"card-content",className:D("px-6",e),...t})}function d0({className:e,...t}){return c.jsx("div",{"data-slot":"card-footer",className:D("flex items-center px-6 [.border-t]:pt-6",e),...t})}A.AppHeader=Ji,A.Button=zt,A.Card=a0,A.CardAction=l0,A.CardContent=u0,A.CardDescription=c0,A.CardFooter=d0,A.CardHeader=s0,A.CardTitle=i0,A.CollapsibleSection=Us,A.DropdownMenu=Ui,A.DropdownMenuCheckboxItem=Zm,A.DropdownMenuContent=Yi,A.DropdownMenuGroup=Xm,A.DropdownMenuItem=zr,A.DropdownMenuLabel=qi,A.DropdownMenuPortal=qm,A.DropdownMenuRadioGroup=Jm,A.DropdownMenuRadioItem=Qm,A.DropdownMenuSeparator=Xi,A.DropdownMenuShortcut=e0,A.DropdownMenuSub=t0,A.DropdownMenuSubContent=r0,A.DropdownMenuSubTrigger=n0,A.DropdownMenuTrigger=Ki,A.GLICloudProvider=o0,A.Input=Gn,A.ProfileDropdown=Zi,A.Separator=Wt,A.Sheet=Ha,A.SheetClose=vd,A.SheetContent=ir,A.SheetDescription=ur,A.SheetFooter=Wa,A.SheetHeader=cr,A.SheetOverlay=sr,A.SheetPortal=za,A.SheetTitle=lr,A.SheetTrigger=gd,A.Sidebar=Is,A.SidebarContent=Vs,A.SidebarFooter=rp,A.SidebarGroup=Hs,A.SidebarGroupAction=sp,A.SidebarGroupContent=zs,A.SidebarGroupLabel=ap,A.SidebarHeader=$s,A.SidebarInput=np,A.SidebarInset=Fs,A.SidebarMenu=ip,A.SidebarMenuAction=dp,A.SidebarMenuBadge=fp,A.SidebarMenuButton=up,A.SidebarMenuItem=cp,A.SidebarMenuSkeleton=pp,A.SidebarMenuSub=Ws,A.SidebarMenuSubButton=Bs,A.SidebarMenuSubItem=Gs,A.SidebarProvider=Ds,A.SidebarRail=Ls,A.SidebarSeparator=op,A.SidebarTrigger=js,A.Skeleton=dr,A.Tooltip=Os,A.TooltipContent=Tr,A.TooltipProvider=Ts,A.TooltipTrigger=ks,A.buttonVariants=Go,A.useSidebar=_t,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})});