@golocalinteractive/golocal-cloud-wrapper 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/README.md +34 -0
  2. package/dist/components/app-header.d.ts +2 -0
  3. package/dist/components/app-header.d.ts.map +1 -0
  4. package/dist/components/app-sidebar.d.ts +4 -0
  5. package/dist/components/app-sidebar.d.ts.map +1 -0
  6. package/dist/components/profile-dropdown.d.ts +2 -0
  7. package/dist/components/profile-dropdown.d.ts.map +1 -0
  8. package/dist/components/ui/button.d.ts +12 -0
  9. package/dist/components/ui/button.d.ts.map +1 -0
  10. package/dist/components/ui/collapsible-section.d.ts +12 -0
  11. package/dist/components/ui/collapsible-section.d.ts.map +1 -0
  12. package/dist/components/ui/dropdown-menu.d.ts +26 -0
  13. package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
  14. package/dist/components/ui/input.d.ts +6 -0
  15. package/dist/components/ui/input.d.ts.map +1 -0
  16. package/dist/components/ui/separator.d.ts +5 -0
  17. package/dist/components/ui/separator.d.ts.map +1 -0
  18. package/dist/components/ui/sheet.d.ts +26 -0
  19. package/dist/components/ui/sheet.d.ts.map +1 -0
  20. package/dist/components/ui/sidebar.d.ts +70 -0
  21. package/dist/components/ui/sidebar.d.ts.map +1 -0
  22. package/dist/components/ui/skeleton.d.ts +4 -0
  23. package/dist/components/ui/skeleton.d.ts.map +1 -0
  24. package/dist/components/ui/tooltip.d.ts +8 -0
  25. package/dist/components/ui/tooltip.d.ts.map +1 -0
  26. package/dist/golocal-cloud-wrapper.es.js +8890 -0
  27. package/dist/golocal-cloud-wrapper.umd.js +157 -0
  28. package/dist/hooks/use-mobile.d.ts +2 -0
  29. package/dist/hooks/use-mobile.d.ts.map +1 -0
  30. package/dist/index.d.ts +2 -0
  31. package/dist/index.d.ts.map +1 -0
  32. package/dist/lib/utils.d.ts +3 -0
  33. package/dist/lib/utils.d.ts.map +1 -0
  34. package/dist/providers/GLICloudProvider.d.ts +5 -0
  35. package/dist/providers/GLICloudProvider.d.ts.map +1 -0
  36. package/package.json +66 -0
@@ -0,0 +1,157 @@
1
+ (function(Oe,k){typeof exports=="object"&&typeof module<"u"?k(exports,require("react"),require("react-router-dom"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-router-dom","react-dom"],k):(Oe=typeof globalThis<"u"?globalThis:Oe||self,k(Oe.GoLocalCloudWrapper={},Oe.React,Oe.ReactRouterDOM,Oe.ReactDOM))})(this,function(Oe,k,At,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:{}},pt={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Pr;function la(){if(Pr)return pt;Pr=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var i=null;if(s!==void 0&&(i=""+s),o.key!==void 0&&(i=""+o.key),"key"in o){s={};for(var a in o)a!=="key"&&(s[a]=o[a])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:i,ref:o!==void 0?o:null,props:s}}return pt.Fragment=t,pt.jsx=n,pt.jsxs=n,pt}var mt={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Nr;function ua(){return Nr||(Nr=1,process.env.NODE_ENV!=="production"&&function(){function e(w){if(w==null)return null;if(typeof w=="function")return w.$$typeof===D?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 I: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 N=w.render;return w=w.displayName,w||(w=N.displayName||N.name||"",w=w!==""?"ForwardRef("+w+")":"ForwardRef"),w;case A:return N=w.displayName||null,N!==null?N:e(w.type)||"Memo";case C:N=w._payload,w=w._init;try{return e(w(N))}catch{}}return null}function t(w){return""+w}function n(w){try{t(w);var N=!1}catch{N=!0}if(N){N=console;var j=N.error,$=typeof Symbol=="function"&&Symbol.toStringTag&&w[Symbol.toStringTag]||w.constructor.name||"Object";return j.call(N,"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 N=e(w);return N?"<"+N+">":"<...>"}catch{return"<...>"}}function o(){var w=G.A;return w===null?null:w.getOwner()}function s(){return Error("react-stack-top-frame")}function i(w){if(z.call(w,"key")){var N=Object.getOwnPropertyDescriptor(w,"key").get;if(N&&N.isReactWarning)return!1}return w.key!==void 0}function a(w,N){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)",N))}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,N,j,$,X,te,le,K){return j=te.ref,w={$$typeof:g,type:w,key:N,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,N,j,$,X,te,le,K){var Q=N.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(N,"key")){Q=e(w);var ee=Object.keys(N).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:
18
+ let props = %s;
19
+ <%s {...props} />
20
+ React keys must be passed directly to JSX without using spread:
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),i(N)&&(n(N.key),Q=""+N.key),"key"in N){j={};for(var se in N)se!=="key"&&(j[se]=N[se])}else j=N;return Q&&a(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"),I=Symbol.for("react.activity"),D=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={};mt.Fragment=h,mt.jsx=function(w,N,j,$,X){var te=1e4>G.recentlyCreatedOwnerStacks++;return u(w,N,j,!1,$,X,te?Error("react-stack-top-frame"):U,te?H(r(w)):R)},mt.jsxs=function(w,N,j,$,X){var te=1e4>G.recentlyCreatedOwnerStacks++;return u(w,N,j,!0,$,X,te?Error("react-stack-top-frame"):U,te?H(r(w)):R)}}()),mt}var kr;function da(){return kr||(kr=1,process.env.NODE_ENV==="production"?Mt.exports=la():Mt.exports=ua()),Mt.exports}var p=da(),Ot={exports:{}},fn={};/**
23
+ * @license React
24
+ * use-sync-external-store-shim.production.js
25
+ *
26
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
27
+ *
28
+ * This source code is licensed under the MIT license found in the
29
+ * LICENSE file in the root directory of this source tree.
30
+ */var Ir;function fa(){if(Ir)return fn;Ir=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,i=e.useDebugValue;function a(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]),i(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:a;return fn.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,fn}var pn={};/**
31
+ * @license React
32
+ * use-sync-external-store-shim.development.js
33
+ *
34
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
35
+ *
36
+ * This source code is licensed under the MIT license found in the
37
+ * LICENSE file in the root directory of this source tree.
38
+ */var Dr;function pa(){return Dr||(Dr=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=i({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]),a(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,i=o.useState,a=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 ma(){return jr||(jr=1,process.env.NODE_ENV==="production"?Ot.exports=fa():Ot.exports=pa()),Ot.exports}var ha=ma();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 Te=new WeakMap,$e=()=>{},ue=$e(),Tt=Object,Y=e=>e===ue,be=e=>typeof e=="function",Pe=(e,t)=>({...e,...t}),Wr=e=>be(e.then),hn={},Pt={},gn="undefined",ht=typeof window!=gn,vn=typeof document!=gn,ga=ht&&"Deno"in window,va=()=>ht&&typeof window.requestAnimationFrame!=gn,zr=(e,t)=>{const n=Te.get(e);return[()=>!Y(t)&&e.get(t)||hn,r=>{if(!Y(t)){const o=e.get(t);t in Pt||(Pt[t]=o),n[5](t,Pe(o,r),o||hn)}},n[6],()=>!Y(t)&&t in Pt?Pt[t]:!Y(t)&&e.get(t)||hn]};let bn=!0;const ba=()=>bn,[xn,wn]=ht&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[$e,$e],xa=()=>{const e=vn&&document.visibilityState;return Y(e)||e!=="hidden"},wa=e=>(vn&&document.addEventListener("visibilitychange",e),xn("focus",e),()=>{vn&&document.removeEventListener("visibilitychange",e),wn("focus",e)}),ya=e=>{const t=()=>{bn=!0,e()},n=()=>{bn=!1};return xn("online",t),xn("offline",n),()=>{wn("online",t),wn("offline",n)}},Ca={isOnline:ba,isVisible:xa},Ea={initFocus:wa,initReconnect:ya},Br=!k.useId,gt=!ht||ga,Sa=e=>va()?window.requestAnimationFrame(e):setTimeout(e,1),Nt=gt?k.useEffect:k.useLayoutEffect,yn=typeof navigator<"u"&&navigator.connection,Gr=!gt&&yn&&(["slow-2g","2g"].includes(yn.effectiveType)||yn.saveData),kt=new WeakMap,Cn=(e,t)=>Tt.prototype.toString.call(e)===`[object ${t}]`;let Ra=0;const En=e=>{const t=typeof e,n=Cn(e,"Date"),r=Cn(e,"RegExp"),o=Cn(e,"Object");let s,i;if(Tt(e)===e&&!n&&!r){if(s=kt.get(e),s)return s;if(s=++Ra+"~",kt.set(e,s),Array.isArray(e)){for(s="@",i=0;i<e.length;i++)s+=En(e[i])+",";kt.set(e,s)}if(o){s="#";const a=Tt.keys(e).sort();for(;!Y(i=a.pop());)Y(e[i])||(s+=i+":"+En(e[i])+",");kt.set(e,s)}}else s=n?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return s},Sn=e=>{if(be(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 _a=0;const Rn=()=>++_a;async function Ur(...e){const[t,n,r,o]=e,s=Pe({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let i=s.populateCache;const a=s.rollbackOnError;let c=s.optimisticData;const f=m=>typeof a=="function"?a(m):a!==!1,u=s.throwOnError;if(be(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]=Te.get(t),S=()=>{const V=x[g];return(be(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),I=b(),D=I.data,G=I._c,z=Y(G)?D:G;if(C&&(c=be(c)?c(z,D):c,h({data:c,_c:z})),be(_))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)&&(i=!0,h({data:z,_c:ue}));if(i&&!M)if(be(i)){const V=i(_,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(!Te.has(e)){const n=Pe(Ea,t),r=Object.create(null),o=Ur.bind(ue,e);let s=$e;const i=Object.create(null),a=(u,d)=>{const m=i[u]||[];return i[u]=m,m.push(d),()=>m.splice(m.indexOf(d),1)},c=(u,d,m)=>{e.set(u,d);const g=i[u];if(g)for(const b of g)b(d,m)},f=()=>{if(!Te.has(e)&&(Te.set(e,[r,Object.create(null),Object.create(null),Object.create(null),o,c,a]),!gt)){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(),Te.delete(e)}}};return f(),[e,o,f,s]}return[e,Te.get(e)[4]]},Aa=(e,t,n,r,o)=>{const s=n.errorRetryCount,i=o.retryCount,a=~~((Math.random()+.5)*(1<<(i<8?i:8)))*n.errorRetryInterval;!Y(s)&&i>s||setTimeout(r,a,o)},Ma=mn,[_n,Oa]=Yr(new Map),qr=Pe({onLoadingSlow:$e,onSuccess:$e,onError:$e,onErrorRetry:Aa,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:Ma,isPaused:()=>!1,cache:_n,mutate:Oa,fallback:{}},Ca),Xr=(e,t)=>{const n=Pe(e,t);if(t){const{use:r,fallback:o}=e,{use:s,fallback:i}=t;r&&s&&(n.use=r.concat(s)),o&&i&&(n.fallback=Pe(o,i))}return n},An=k.createContext({}),Ta=e=>{const{value:t}=e,n=k.useContext(An),r=be(t),o=k.useMemo(()=>r?t(n):t,[r,n,t]),s=k.useMemo(()=>r?o:Xr(n,o),[r,n,o]),i=o&&o.provider,a=k.useRef(ue);i&&!a.current&&(a.current=Yr(i(s.cache||_n),o));const c=a.current;return c&&(s.cache=c[0],s.mutate=c[1]),Nt(()=>{if(c)return c[2]&&c[2](),c[3]},[]),k.createElement(An.Provider,Pe(e,{value:s}))},Pa="$inf$",Zr=ht&&window.__SWR_DEVTOOLS_USE__,Na=Zr?window.__SWR_DEVTOOLS_USE__:[],ka=()=>{Zr&&(window.__SWR_DEVTOOLS_REACT__=k)},Ia=e=>be(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],Da=()=>Pe(qr,k.useContext(An)),ja=e=>(t,n,r)=>e(t,n&&((...s)=>{const[i]=Sn(t),[,,,a]=Te.get(_n);if(i.startsWith(Pa))return n(...s);const c=a[i];return Y(c)?n(...s):(delete a[i],c)}),r),La=Na.concat(ja),Fa=e=>function(...n){const r=Da(),[o,s,i]=Ia(n),a=Xr(r,i);let c=e;const{use:f}=a,u=(f||[]).concat(La);for(let d=u.length;d--;)c=u[d](c);return c(o,s||a.fetcher||null,a)},$a=(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())}};ka();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},Va=(e,t,n)=>{const{cache:r,compare:o,suspense:s,fallbackData:i,revalidateOnMount:a,revalidateIfStale:c,refreshInterval:f,refreshWhenHidden:u,refreshWhenOffline:d,keepPreviousData:m}=n,[g,b,h,x]=Te.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,I=()=>C().isVisible()&&C().isOnline(),[D,G,z,V]=zr(r,v),H=k.useRef({}).current,q=Y(i)?Y(n.fallback)?ue:n.fallback[v]:i,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(a)?C().isPaused()||s?!1:c!==!1:a,J=fe=>{const Le=Pe(fe);return delete Le._k,Z?{isValidating:!0,isLoading:!0,...Le}:Le},ce=D(),re=V(),he=J(ce),Ue=ce===re?he:J(re);let oe=he;return[()=>{const fe=J(D());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=ha.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,N=R.data,j=Y(N)?q&&Wr(q)?Mn(q):q:N,$=R.error,X=k.useRef(j),te=m?Y(N)?Y(X.current)?j:X.current:N:j,le=w&&!Y($)?!1:O&&!Y(a)?a: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,he=!0;const Ue=Z||{},oe=!h[v]||!Ue.dedupe,fe=()=>Br?!S.current&&v===_.current&&E.current:v===_.current,Le={isValidating:!1,isLoading:!1},ia=()=>{G(Le)},aa=()=>{const ve=h[v];ve&&ve[1]===re&&delete h[v]},ca={isValidating:!0};Y(D().data)&&(ca.isLoading=!0);try{if(oe&&(G(ca),n.loadingTimeout&&Y(D().data)&&setTimeout(()=>{he&&fe()&&C().onLoadingSlow(v,n)},n.loadingTimeout),h[v]=[J(y),Rn()]),[ce,re]=h[v],ce=await ce,oe&&setTimeout(aa,n.dedupingInterval),!h[v]||h[v][1]!==re)return oe&&fe()&&C().onDiscarded(v),!1;Le.error=ue;const ve=b[v];if(!Y(ve)&&(re<=ve[0]||re<=ve[1]||ve[1]===0))return ia(),oe&&fe()&&C().onDiscarded(v),!1;const Fe=D().data;Le.data=o(Fe,ce)?Fe:ce,oe&&fe()&&C().onSuccess(ce,v,n)}catch(ve){aa();const Fe=C(),{shouldRetryOnError:_r}=Fe;Fe.isPaused()||(Le.error=ve,oe&&fe()&&(Fe.onError(ve,v,Fe),(_r===!0||be(_r)&&_r(ve))&&(!C().revalidateOnFocus||!C().revalidateOnReconnect||I())&&Fe.onErrorRetry(ve,v,Fe,u0=>{const Ar=g[v];Ar&&Ar[0]&&Ar[0](Vr,u0)},{retryCount:(Ue.retryCount||0)+1,dedupe:!0})))}return he=!1,ia(),!0},[v,r]),Ee=k.useCallback((...Z)=>Ur(r,_.current,...Z),[]);if(Nt(()=>{M.current=t,A.current=n,Y(N)||(X.current=N)}),Nt(()=>{if(!v)return;const Z=se.bind(ue,On);let J=0;C().revalidateOnFocus&&(J=Date.now()+C().focusThrottleInterval);const re=$a(v,g,(he,Ue={})=>{if(he==Lr){const oe=Date.now();C().revalidateOnFocus&&oe>J&&I()&&(J=oe+C().focusThrottleInterval,Z())}else if(he==Fr)C().revalidateOnReconnect&&I()&&Z();else{if(he==$r)return se();if(he==Vr)return se(Ue)}});return S.current=!1,_.current=v,E.current=!0,G({_k:y}),le&&(Y(j)||gt?Z():Sa(Z)),()=>{S.current=!0,re()}},[v]),Nt(()=>{let Z;function J(){const re=be(f)?f(D().data):f;re&&Z!==-1&&(Z=setTimeout(ce,re))}function ce(){!D().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&&gt)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}}},Ha=Tt.defineProperty(Ta,"defaultValue",{value:qr}),Wa=Fa(Va);function za(e){return e&&!e.startsWith("/")?`/${e}`:e}function Ba(e){return e&&!e.endsWith("/")?`${e}/`:e}function Ga(e){return e.startsWith("/")?e.substring(1,e.length):e}const Ua=e=>{const t=process.env.NEXT_PUBLIC_BASE_PATH;if(!t)return e;const n=za(t);return Ba(n)+Ga(e)};function Ka(){const{data:e,error:t,isLoading:n,mutate:r}=Wa(Ua(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 Ya({user:e,children:t}){return k.createElement(Ha,{value:{fallback:{[process.env.NEXT_PUBLIC_PROFILE_ROUTE||"/auth/profile"]:e}}},t)}/**
39
+ * @license lucide-react v0.522.0 - ISC
40
+ *
41
+ * This source code is licensed under the ISC license.
42
+ * See the LICENSE file in the root directory of this source tree.
43
+ */const qa=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Xa=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),eo=e=>{const t=Xa(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(),Za=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
44
+ * @license lucide-react v0.522.0 - ISC
45
+ *
46
+ * This source code is licensed under the ISC license.
47
+ * See the LICENSE file in the root directory of this source tree.
48
+ */var Ja={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
+ * @license lucide-react v0.522.0 - ISC
50
+ *
51
+ * This source code is licensed under the ISC license.
52
+ * See the LICENSE file in the root directory of this source tree.
53
+ */const Qa=k.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...a},c)=>k.createElement("svg",{ref:c,...Ja,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:to("lucide",o),...!s&&!Za(a)&&{"aria-hidden":"true"},...a},[...i.map(([f,u])=>k.createElement(f,u)),...Array.isArray(s)?s:[s]]));/**
54
+ * @license lucide-react v0.522.0 - ISC
55
+ *
56
+ * This source code is licensed under the ISC license.
57
+ * See the LICENSE file in the root directory of this source tree.
58
+ */const xe=(e,t)=>{const n=k.forwardRef(({className:r,...o},s)=>k.createElement(Qa,{ref:s,iconNode:t,className:to(`lucide-${qa(eo(e))}`,`lucide-${e}`,r),...o}));return n.displayName=eo(e),n};/**
59
+ * @license lucide-react v0.522.0 - ISC
60
+ *
61
+ * This source code is licensed under the ISC license.
62
+ * See the LICENSE file in the root directory of this source tree.
63
+ */const ec=xe("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"}]]);/**
64
+ * @license lucide-react v0.522.0 - ISC
65
+ *
66
+ * This source code is licensed under the ISC license.
67
+ * See the LICENSE file in the root directory of this source tree.
68
+ */const tc=xe("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"}]]);/**
69
+ * @license lucide-react v0.522.0 - ISC
70
+ *
71
+ * This source code is licensed under the ISC license.
72
+ * See the LICENSE file in the root directory of this source tree.
73
+ */const no=xe("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"}]]);/**
74
+ * @license lucide-react v0.522.0 - ISC
75
+ *
76
+ * This source code is licensed under the ISC license.
77
+ * See the LICENSE file in the root directory of this source tree.
78
+ */const nc=xe("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"}]]);/**
79
+ * @license lucide-react v0.522.0 - ISC
80
+ *
81
+ * This source code is licensed under the ISC license.
82
+ * See the LICENSE file in the root directory of this source tree.
83
+ */const rc=xe("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
84
+ * @license lucide-react v0.522.0 - ISC
85
+ *
86
+ * This source code is licensed under the ISC license.
87
+ * See the LICENSE file in the root directory of this source tree.
88
+ */const oc=xe("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
89
+ * @license lucide-react v0.522.0 - ISC
90
+ *
91
+ * This source code is licensed under the ISC license.
92
+ * See the LICENSE file in the root directory of this source tree.
93
+ */const ro=xe("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"}]]);/**
94
+ * @license lucide-react v0.522.0 - ISC
95
+ *
96
+ * This source code is licensed under the ISC license.
97
+ * See the LICENSE file in the root directory of this source tree.
98
+ */const sc=xe("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"}]]);/**
99
+ * @license lucide-react v0.522.0 - ISC
100
+ *
101
+ * This source code is licensed under the ISC license.
102
+ * See the LICENSE file in the root directory of this source tree.
103
+ */const ic=xe("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
104
+ * @license lucide-react v0.522.0 - ISC
105
+ *
106
+ * This source code is licensed under the ISC license.
107
+ * See the LICENSE file in the root directory of this source tree.
108
+ */const oo=xe("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"}]]);/**
109
+ * @license lucide-react v0.522.0 - ISC
110
+ *
111
+ * This source code is licensed under the ISC license.
112
+ * See the LICENSE file in the root directory of this source tree.
113
+ */const ac=xe("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 It(...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 ie(...e){return l.useCallback(It(...e),e)}function Qe(e){const t=cc(e),n=l.forwardRef((r,o)=>{const{children:s,...i}=r,a=l.Children.toArray(s),c=a.find(uc);if(c){const f=c.props.children,u=a.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,{...i,ref:o,children:l.isValidElement(f)?l.cloneElement(f,void 0,u):null})}return p.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var io=Qe("Slot");function cc(e){const t=l.forwardRef((n,r)=>{const{children:o,...s}=n;if(l.isValidElement(o)){const i=fc(o),a=dc(s,o.props);return o.type!==l.Fragment&&(a.ref=r?It(r,i):i),l.cloneElement(o,a)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ao=Symbol("radix.slottable");function lc(e){const t=({children:n})=>p.jsx(p.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=ao,t}function uc(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ao}function dc(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]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function fc(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,i=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]}),a=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,...a}[h]):{...s,...a}[h]===x})?[...f,d,m]:f},[]);return fo(e,i,c,n==null?void 0:n.class,n==null?void 0:n.className)};function pc(){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="-",mc=e=>{const t=gc(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=i.split(Tn);return a[0]===""&&a.length!==1&&a.shift(),mo(a,t)||hc(i)},getConflictingClassGroupIds:(i,a)=>{const c=n[i]||[];return a&&r[i]?[...c,...r[i]]:c}}},mo=(e,t)=>{var i;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(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId},ho=/^\[(.+)\]$/,hc=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}},gc=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)Pn(n[o],r,o,t);return r},Pn=(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(vc(o)){Pn(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{Pn(i,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},vc=e=>e.isThemeGetter,bc=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}},Nn="!",kn=":",xc=kn.length,wc=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let i=0,a=0,c=0,f;for(let b=0;b<o.length;b++){let h=o[b];if(i===0&&a===0){if(h===kn){s.push(o.slice(c,b)),c=b+xc;continue}if(h==="/"){f=b;continue}}h==="["?i++:h==="]"?i--:h==="("?a++:h===")"&&a--}const u=s.length===0?o:o.substring(c),d=yc(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=i=>i.startsWith(o)?s(i.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},yc=e=>e.endsWith(Nn)?e.substring(0,e.length-1):e.startsWith(Nn)?e.substring(1):e,Cc=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(i=>{i[0]==="["||t[i]?(o.push(...s.sort(),i),s=[]):s.push(i)}),o.push(...s.sort()),o}},Ec=e=>({cache:bc(e.cacheSize),parseClassName:wc(e),sortModifiers:Cc(e),...mc(e)}),Sc=/\s+/,Rc=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,i=[],a=e.trim().split(Sc);let c="";for(let f=a.length-1;f>=0;f-=1){const u=a[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+Nn:y,S=E+v;if(i.includes(S))continue;i.push(S);const _=o(v,x);for(let M=0;M<_.length;++M){const A=_[M];i.push(E+A)}c=u+(c.length>0?" "+c:c)}return c};function _c(){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 Ac(e,...t){let n,r,o,s=i;function i(c){const f=t.reduce((u,d)=>d(u),e());return n=Ec(f),r=n.cache.get,o=n.cache.set,s=a,a(c)}function a(c){const f=r(c);if(f)return f;const u=Rc(c,n);return o(c,u),u}return function(){return s(_c.apply(null,arguments))}}const ae=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},bo=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,xo=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Mc=/^\d+\/\d+$/,Oc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Tc=/\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)\(.+\)$/,Nc=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,kc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,et=e=>Mc.test(e),W=e=>!!e&&!Number.isNaN(Number(e)),Ve=e=>!!e&&Number.isInteger(Number(e)),In=e=>e.endsWith("%")&&W(e.slice(0,-1)),Ne=e=>Oc.test(e),Ic=()=>!0,Dc=e=>Tc.test(e)&&!Pc.test(e),wo=()=>!1,jc=e=>Nc.test(e),Lc=e=>kc.test(e),Fc=e=>!T(e)&&!P(e),$c=e=>tt(e,Ro,wo),T=e=>bo.test(e),Ke=e=>tt(e,_o,Dc),Dn=e=>tt(e,Bc,W),yo=e=>tt(e,Eo,wo),Vc=e=>tt(e,So,Lc),Dt=e=>tt(e,Ao,jc),P=e=>xo.test(e),vt=e=>nt(e,_o),Hc=e=>nt(e,Gc),Co=e=>nt(e,Eo),Wc=e=>nt(e,Ro),zc=e=>nt(e,So),jt=e=>nt(e,Ao,!0),tt=(e,t,n)=>{const r=bo.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},nt=(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",Bc=e=>e==="number",Gc=e=>e==="family-name",Ao=e=>e==="shadow",Uc=Ac(()=>{const e=ae("color"),t=ae("font"),n=ae("text"),r=ae("font-weight"),o=ae("tracking"),s=ae("leading"),i=ae("breakpoint"),a=ae("container"),c=ae("spacing"),f=ae("radius"),u=ae("shadow"),d=ae("inset-shadow"),m=ae("text-shadow"),g=ae("drop-shadow"),b=ae("blur"),h=ae("perspective"),x=ae("aspect"),v=ae("ease"),y=ae("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(),P,T],M=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],C=()=>[P,T,c],I=()=>[et,"full","auto",...C()],D=()=>[Ve,"none","subgrid",P,T],G=()=>["auto",{span:["full",Ve,P,T]},Ve,P,T],z=()=>[Ve,"auto",P,T],V=()=>["auto","min","max","fr",P,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=()=>[et,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],R=()=>[e,P,T],O=()=>[...S(),Co,yo,{position:[P,T]}],w=()=>["no-repeat",{repeat:["","x","y","space","round"]}],N=()=>["auto","cover","contain",Wc,$c,{size:[P,T]}],j=()=>[In,vt,Ke],$=()=>["","none","full",f,P,T],X=()=>["",W,vt,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,In,Co,yo],Q=()=>["","none",b,P,T],ee=()=>["none",W,P,T],se=()=>["none",W,P,T],Ee=()=>[W,P,T],Ge=()=>[et,"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:[Fc],"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",et,T,P,x]}],container:["container"],columns:[{columns:[W,T,P,a]}],"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:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[Ve,"auto",P,T]}],basis:[{basis:[et,"full","auto",a,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[W,et,"auto","initial","none",T]}],grow:[{grow:["",W,P,T]}],shrink:[{shrink:["",W,P,T]}],order:[{order:[Ve,"first","last","none",P,T]}],"grid-cols":[{"grid-cols":D()}],"col-start-end":[{col:G()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":D()}],"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:[a,"screen",...U()]}],"min-w":[{"min-w":[a,"screen","none",...U()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...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,vt,Ke]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,P,Dn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",In,T]}],"font-family":[{font:[Hc,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,P,T]}],"line-clamp":[{"line-clamp":[W,"none",P,Dn]}],leading:[{leading:[s,...C()]}],"list-image":[{"list-image":["none",P,T]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",P,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",P,Ke]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[W,"auto",P,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",P,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",P,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:N()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ve,P,T],radial:["",P,T],conic:[Ve,P,T]},zc,Vc]}],"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,P,T]}],"outline-w":[{outline:["",W,vt,Ke]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",u,jt,Dt]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",d,jt,Dt]}],"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,Dt]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[W,P,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":[P,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:N()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",P,T]}],filter:[{filter:["","none",P,T]}],blur:[{blur:Q()}],brightness:[{brightness:[W,P,T]}],contrast:[{contrast:[W,P,T]}],"drop-shadow":[{"drop-shadow":["","none",g,jt,Dt]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",W,P,T]}],"hue-rotate":[{"hue-rotate":[W,P,T]}],invert:[{invert:["",W,P,T]}],saturate:[{saturate:[W,P,T]}],sepia:[{sepia:["",W,P,T]}],"backdrop-filter":[{"backdrop-filter":["","none",P,T]}],"backdrop-blur":[{"backdrop-blur":Q()}],"backdrop-brightness":[{"backdrop-brightness":[W,P,T]}],"backdrop-contrast":[{"backdrop-contrast":[W,P,T]}],"backdrop-grayscale":[{"backdrop-grayscale":["",W,P,T]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[W,P,T]}],"backdrop-invert":[{"backdrop-invert":["",W,P,T]}],"backdrop-opacity":[{"backdrop-opacity":[W,P,T]}],"backdrop-saturate":[{"backdrop-saturate":[W,P,T]}],"backdrop-sepia":[{"backdrop-sepia":["",W,P,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",P,T]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[W,"initial",P,T]}],ease:[{ease:["linear","initial",v,P,T]}],delay:[{delay:[W,P,T]}],animate:[{animate:["none",y,P,T]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,P,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:[P,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",P,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",P,T]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[W,vt,Ke,Dn]}],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 Uc(lo(e))}const Kc=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 i=r?io:"button";return p.jsx(i,{className:B(Kc({variant:t,size:n,className:e})),ref:s,...o})});jn.displayName="Button";const Yc=l.forwardRef(({className:e,type:t,...n},r)=>p.jsx("input",{type:t,className:B("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}));Yc.displayName="Input";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=Qe(`Primitive.${t}`),r=l.forwardRef((o,s)=>{const{asChild:i,...a}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(c,{...a,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,a=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return p.jsx(ne.div,{"data-orientation":s,...a,...o,ref:t})});To.displayName=Xc;function Jc(e){return Zc.includes(e)}var Po=To;const No=l.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>p.jsx(Po,{ref:o,decorative:n,orientation:t,className:B("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));No.displayName=Po.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:i,...a}=s,c=l.useMemo(()=>a,Object.values(a));return p.jsx(n.Provider,{value:c,children:i})};r.displayName=e+"Provider";function o(s){const i=l.useContext(n);if(i)return i;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,i){const a=l.createContext(i),c=n.length;n=[...n,i];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])||a,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])||a,b=l.useContext(g);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[f,u]}const o=()=>{const s=n.map(i=>l.createContext(i));return function(a){const c=(a==null?void 0:a[e])||s;return l.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,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 i=r.reduce((a,{useScope:c,scopeName:f})=>{const d=c(s)[`__scope${f}`];return{...a,...d}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var He=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},tl=l[" useId ".trim().toString()]||(()=>{}),nl=0;function rt(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,i]=ol({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:o;{const u=l.useRef(e!==void 0);l.useEffect(()=>{const d=u.current;d!==a&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${a?"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=a},[a,r])}const f=l.useCallback(u=>{var d;if(a){const m=sl(u)?u(e):u;m!==e&&((d=i.current)==null||d.call(i,m))}else s(u)},[a,e,s,i]);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 i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function sl(e){return typeof e=="function"}function ke(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 il(e,t=globalThis==null?void 0:globalThis.document){const n=ke(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 al="DismissableLayer",Fn="dismissableLayer.update",cl="dismissableLayer.pointerDownOutside",ll="dismissableLayer.focusOutside",ko,Io=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:i,onDismiss:a,...c}=e,f=l.useContext(Io),[u,d]=l.useState(null),m=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=l.useState({}),b=ie(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,I=[...f.branches].some(D=>D.contains(C));!S||I||(o==null||o(A),i==null||i(A),A.defaultPrevented||a==null||a())},m),M=pl(A=>{const C=A.target;[...f.branches].some(D=>D.contains(C))||(s==null||s(A),i==null||i(A),A.defaultPrevented||a==null||a())},m);return il(A=>{y===f.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},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),Do(),()=>{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),Do())},[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=al;var ul="DismissableLayerBranch",dl=l.forwardRef((e,t)=>{const n=l.useContext(Io),r=l.useRef(null),o=ie(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=ke(e),r=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let c=function(){jo(cl,n,f,{discrete:!0})};const f={originalEvent:a};a.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},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),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=ke(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 Do(){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,...i}=e,[a,c]=l.useState(null),f=ke(o),u=ke(s),d=l.useRef(null),m=ie(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||!a)return;const S=E.target;a.contains(S)?d.current=S:We(d.current,{select:!0})},x=function(E){if(g.paused||!a)return;const S=E.relatedTarget;S!==null&&(a.contains(S)||We(d.current,{select:!0}))},v=function(E){if(document.activeElement===document.body)for(const _ of E)_.removedNodes.length>0&&We(a)};document.addEventListener("focusin",h),document.addEventListener("focusout",x);const y=new MutationObserver(v);return a&&y.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",x),y.disconnect()}}},[r,a,g.paused]),l.useEffect(()=>{if(a){Vo.add(g);const h=document.activeElement;if(!a.contains(h)){const v=new CustomEvent($n,Lo);a.addEventListener($n,f),a.dispatchEvent(v),v.defaultPrevented||(hl(wl(Fo(a)),{select:!0}),document.activeElement===h&&We(a))}return()=>{a.removeEventListener($n,f),setTimeout(()=>{const v=new CustomEvent(Vn,Lo);a.addEventListener(Vn,u),a.dispatchEvent(v),v.defaultPrevented||We(h??document.body,{select:!0}),a.removeEventListener(Vn,u),Vo.remove(g)},0)}}},[a,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,...i,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 a;const{container:n,...r}=e,[o,s]=l.useState(!1);He(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Mr.createPortal(p.jsx(ne.div,{...r,ref:t}),i):null});Wn.displayName=yl;function Cl(e,t){return l.useReducer((n,r)=>t[n][r]??n,e)}var Ie=e=>{const{present:t,children:n}=e,r=El(t),o=typeof n=="function"?n({present:r.isPresent}):l.Children.only(n),s=ie(r.ref,Sl(o));return typeof n=="function"||r.isPresent?l.cloneElement(o,{ref:s}):null};Ie.displayName="Presence";function El(e){const[t,n]=l.useState(),r=l.useRef(null),o=l.useRef(e),s=l.useRef("none"),i=e?"mounted":"unmounted",[a,c]=Cl(i,{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=a==="mounted"?f:"none"},[a]),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(a),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),i=n.current;o.forEach(function(a){s.has(a)||Bn(a,null)}),s.forEach(function(a){o.has(a)||Bn(a,i)})}Go.set(n,e)},[e]),n}function Pl(e){return e}function Nl(e,t){t===void 0&&(t=Pl);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 i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var c=function(){var u=i;i=[],u.forEach(s)},f=function(){return Promise.resolve().then(c)};f(),n={push:function(u){i.push(u),f()},filter:function(u){return i=i.filter(u),n}}}};return o}function kl(e){e===void 0&&(e={});var t=Nl(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 Il(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],i=e.forwardProps,a=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}),i?l.cloneElement(l.Children.only(a),Se(Se({},A),{ref:M})):l.createElement(y,Se({},A,{className:c,ref:M}),a))});Ht.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ht.classNames={fullWidth:Vt,zeroRight:$t};var Dl=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=Dl();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(),ot="data-scroll-locked",Gl=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
114
+ .`.concat(_l,` {
115
+ overflow: hidden `).concat(r,`;
116
+ padding-right: `).concat(a,"px ").concat(r,`;
117
+ }
118
+ body[`).concat(ot,`] {
119
+ overflow: hidden `).concat(r,`;
120
+ overscroll-behavior: contain;
121
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
122
+ padding-left: `.concat(o,`px;
123
+ padding-top: `).concat(s,`px;
124
+ padding-right: `).concat(i,`px;
125
+ margin-left:0;
126
+ margin-top:0;
127
+ margin-right: `).concat(a,"px ").concat(r,`;
128
+ `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
129
+ }
130
+
131
+ .`).concat($t,` {
132
+ right: `).concat(a,"px ").concat(r,`;
133
+ }
134
+
135
+ .`).concat(Vt,` {
136
+ margin-right: `).concat(a,"px ").concat(r,`;
137
+ }
138
+
139
+ .`).concat($t," .").concat($t,` {
140
+ right: 0 `).concat(r,`;
141
+ }
142
+
143
+ .`).concat(Vt," .").concat(Vt,` {
144
+ margin-right: 0 `).concat(r,`;
145
+ }
146
+
147
+ body[`).concat(ot,`] {
148
+ `).concat(Al,": ").concat(a,`px;
149
+ }
150
+ `)},qo=function(){var e=parseInt(document.body.getAttribute(ot)||"0",10);return isFinite(e)?e:0},Ul=function(){l.useEffect(function(){return document.body.setAttribute(ot,(qo()+1).toString()),function(){var e=qo()-1;e<=0?document.body.removeAttribute(ot):document.body.setAttribute(ot,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 st=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),i=s[1],a=s[2];if(i>a)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),i=s*r,a=n.target,c=t.contains(a),f=!1,u=i>0,d=0,m=0;do{if(!a)break;var g=Qo(e,a),b=g[0],h=g[1],x=g[2],v=h-x-s*b;(b||v)&&Jo(e,a)&&(d+=v,m+=b);var y=a.parentNode;a=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));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`
151
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
152
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
153
+ `)},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],i=l.useRef(e);l.useEffect(function(){i.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 a=l.useCallback(function(h,x){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!i.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 I=r.current||_;return eu(I,x,h,I==="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=(i.current.shards||[]).map(ts).filter(Boolean).filter(function(_){return _.contains(x.target)}),S=E.length>0?a(x,E[0]):!i.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,a(h,e.lockRef.current))},[]),m=l.useCallback(function(h){f(h.type,zt(h),h.target,a(h,e.lockRef.current))},[]);l.useEffect(function(){return it.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:m}),document.addEventListener("wheel",c,st),document.addEventListener("touchmove",c,st),document.addEventListener("touchstart",u,st),function(){it=it.filter(function(h){return h!==s}),document.removeEventListener("wheel",c,st),document.removeEventListener("touchmove",c,st),document.removeEventListener("touchstart",u,st)}},[]);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 iu=Il(Ko,ou);var Yn=l.forwardRef(function(e,t){return l.createElement(Ht,Se({},e,{ref:t,sideCar:iu}))});Yn.classNames=Ht.classNames;var au=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},at=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],i=[],a=new Set,c=new Set(o),f=function(d){!d||a.has(d)||(a.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(a.has(m))u(m);else try{var g=m.getAttribute(r),b=g!==null&&g!=="false",h=(at.get(m)||0)+1,x=(s.get(m)||0)+1;at.set(m,h),s.set(m,x),i.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),a.clear(),qn++,function(){i.forEach(function(d){var m=at.get(d)-1,g=s.get(d)-1;at.set(d,m),s.set(d,g),m||(Bt.has(d)||d.removeAttribute(r),Bt.delete(d)),g||d.removeAttribute(n)}),qn--,qn||(at=new WeakMap,at=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=au(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,E0]=Ye(Ut),[uu,we]=os(Ut),ss=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!0}=e,a=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:a,contentRef:c,contentId:rt(),titleId:rt(),descriptionId:rt(),open:f,onOpenChange:u,onOpenToggle:l.useCallback(()=>u(d=>!d),[u]),modal:i,children:n})};ss.displayName=Ut;var is="DialogTrigger",du=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=we(is,n),s=ie(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=is;var Xn="DialogPortal",[fu,as]=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,i=>p.jsx(Ie,{present:n||s.open,children:p.jsx(Wn,{asChild:!0,container:o,children:i})}))})};cs.displayName=Xn;var Kt="DialogOverlay",ls=l.forwardRef((e,t)=>{const n=as(Kt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=we(Kt,e.__scopeDialog);return s.modal?p.jsx(Ie,{present:r||s.open,children:p.jsx(mu,{...o,ref:t})}):null});ls.displayName=Kt;var pu=Qe("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=as(qe,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=we(qe,e.__scopeDialog);return p.jsx(Ie,{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=ie(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 i;s.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:L(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&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 i,a;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.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 i=s.target;((f=n.triggerRef.current)==null?void 0:f.contains(i))&&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,...i}=e,a=we(qe,n),c=l.useRef(null),f=ie(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:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Jn(a.open),...i,ref:f,onDismiss:()=>a.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(vu,{titleId:a.titleId}),p.jsx(xu,{contentRef:c,descriptionId:a.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",[S0,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.
154
+
155
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
156
+
157
+ 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(ac,{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,pe=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 pe(e,ze(t,n))}function De(e,t){return typeof e=="function"?e(t):e}function je(e){return e.split("-")[0]}function ct(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(je(e))?"y":"x"}function nr(e){return er(_e(e))}function Ou(e,t,n){n===void 0&&(n=!1);const r=ct(e),o=nr(e),s=tr(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Xt(i)),[i,Xt(i)]}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 Pu(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:i;default:return[]}}function Nu(e,t,n,r){const o=ct(e);let s=Pu(je(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+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),i=nr(t),a=tr(i),c=je(t),f=s==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,m=r[a]/2-o[a]/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(ct(t)){case"start":g[i]-=m*(n&&f?-1:1);break;case"end":g[i]+=m*(n&&f?-1:1);break}return g}const Iu=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let f=await i.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<a.length;h++){const{name:x,fn:v}=a[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:i,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 i.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 bt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,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=a[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(a.floating)),boundary:f,rootBoundary:u,strategy:c})),y=d==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.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:a,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 Du=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,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 i.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(i.getOffsetParent==null?void 0:i.getOffsetParent(f));let A=M?M[E]:0;(!A||!await(i.isElement==null?void 0:i.isElement(M)))&&(A=a.floating[E]||s.floating[b]);const C=S/2-_/2,I=A/2-h[b]/2-1,D=ze(d[v],I),G=ze(d[y],I),z=D,V=A-h[b]-G,H=A/2-h[b]/2+C,q=Qn(z,H,V),F=!c.arrow&&ct(o)!=null&&H!==q&&s.reference[b]/2-(H<z?D: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:i,initialPlacement:a,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=je(o),y=_e(a),E=je(a)===a,S=await(c.isRTL==null?void 0:c.isRTL(f.floating)),_=m||(E||!h?[Xt(a)]:Tu(a)),M=b!=="none";!m&&M&&_.push(...Nu(a,h,b,S));const A=[a,..._],C=await bt(t,x),I=[];let D=((r=s.flip)==null?void 0:r.overflows)||[];if(u&&I.push(C[v]),d){const H=Ou(o,i,S);I.push(C[H[0]],C[H[1]])}if(D=[...D,{placement:o,overflows:I}],!I.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)||D.every(R=>R.overflows[0]>0&&_e(R.placement)===y)))return{data:{index:H,overflows:D},reset:{placement:q}};let F=(z=D.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=D.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=a;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 Ps(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 bt(t,{...o,elementContext:"reference"}),i=Ts(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Ps(i)}}}case"escaped":{const s=await bt(t,{...o,altBoundary:!0}),i=Ts(s,n.floating);return{data:{escapedOffsets:i,escaped:Ps(i)}}}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)),i=je(n),a=ct(n),c=_e(n)==="y",f=["left","top"].includes(i)?-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 a&&typeof b=="number"&&(g=a==="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:i,middlewareData:a}=t,c=await Fu(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},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:i=!1,limiter:a={fn:x=>{let{x:v,y}=x;return{x:v,y}}},...c}=De(e,t),f={x:n,y:r},u=await bt(t,c),d=_e(je(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(i){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=a.fn({...t,[m]:g,[d]:b});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[m]:s,[d]:i}}}}}},Hu=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=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(a,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(je(o)),_=s.reference[d]-s.floating[E]+(S&&((v=i.offset)==null?void 0:v[d])||0)+(S?0:x.crossAxis),M=s.reference[d]+s.reference[E]+(S?0:((y=i.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:i,elements:a}=t,{apply:c=()=>{},...f}=De(e,t),u=await bt(t,f),d=je(o),m=ct(o),g=_e(o)==="y",{width:b,height:h}=s.floating;let x,v;d==="top"||d==="bottom"?(x=d,v=m===(await(i.isRTL==null?void 0:i.isRTL(a.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 D=pe(u.left,0),G=pe(u.right,0),z=pe(u.top,0),V=pe(u.bottom,0);g?C=b-2*(D!==0||G!==0?D+G:pe(u.left,u.right)):A=h-2*(z!==0||V!==0?z+V:pe(u.top,u.bottom))}await c({...t,availableWidth:C,availableHeight:A});const I=await i.getDimensions(a.floating);return b!==I.width||h!==I.height?{reset:{rects:!0}}:{}}}};function Jt(){return typeof window<"u"}function lt(e){return Ns(e)?(e.nodeName||"").toLowerCase():"#document"}function me(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ae(e){var t;return(t=(Ns(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ns(e){return Jt()?e instanceof Node||e instanceof me(e).Node:!1}function ye(e){return Jt()?e instanceof Element||e instanceof me(e).Element:!1}function Me(e){return Jt()?e instanceof HTMLElement||e instanceof me(e).HTMLElement:!1}function ks(e){return!Jt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof me(e).ShadowRoot}function xt(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(lt(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)&&!ut(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 ut(e){return["html","body","#document"].includes(lt(e))}function Ce(e){return me(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(lt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ks(e)&&e.host||Ae(e);return ks(t)?t.host:t}function Is(e){const t=Be(e);return ut(t)?e.ownerDocument?e.ownerDocument.body:e.body:Me(t)&&xt(t)?t:Is(t)}function wt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Is(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=me(o);if(s){const a=ir(i);return t.concat(i,i.visualViewport||[],xt(o)?o:[],a&&n?wt(a):[])}return t.concat(o,wt(o,[],n))}function ir(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ds(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,i=o?e.offsetHeight:r,a=Yt(n)!==s||Yt(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function ar(e){return ye(e)?e:e.contextElement}function dt(e){const t=ar(e);if(!Me(t))return Re(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Ds(t);let i=(s?Yt(n.width):n.width)/r,a=(s?Yt(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const Gu=Re(0);function js(e){const t=me(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!==me(e)?!1:t}function Xe(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=ar(e);let i=Re(1);t&&(r?ye(r)&&(i=dt(r)):i=dt(e));const a=Uu(s,n,r)?js(s):Re(0);let c=(o.left+a.x)/i.x,f=(o.top+a.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(s){const m=me(s),g=r&&ye(r)?me(r):r;let b=m,h=ir(b);for(;h&&r&&g!==b;){const x=dt(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=me(h),h=ir(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",i=Ae(r),a=t?Qt(t.floating):!1;if(r===i||a&&s)return n;let c={scrollLeft:0,scrollTop:0},f=Re(1);const u=Re(0),d=Me(r);if((d||!d&&!s)&&((lt(r)!=="body"||xt(i))&&(c=en(r)),Me(r))){const g=Xe(r);f=dt(r),u.x=g.x+r.clientLeft,u.y=g.y+r.clientTop}const m=i&&!d&&!s?Ls(i,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=pe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=pe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+cr(e);const a=-n.scrollTop;return Ce(r).direction==="rtl"&&(i+=pe(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}function Xu(e,t){const n=me(e),r=Ae(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,c=0;if(o){s=o.width,i=o.height;const f=sr();(!f||f&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:s,height:i,x:a,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)?dt(e):Re(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,c=o*s.x,f=r*s.y;return{width:i,height:a,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)||ut(n)?!1:Ce(n).position==="fixed"||$s(n,t)}function Ju(e,t){const n=t.get(e);if(n)return n;let r=wt(e,[],!1).filter(a=>ye(a)&&lt(a)!=="body"),o=null;const s=Ce(e).position==="fixed";let i=s?Be(e):e;for(;ye(i)&&!ut(i);){const a=Ce(i),c=or(i);!c&&a.position==="fixed"&&(o=null),(s?!c&&!o:!c&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||xt(i)&&!c&&$s(e,i))?r=r.filter(u=>u!==i):o=a,i=Be(i)}return t.set(e,r),r}function Qu(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Qt(t)?[]:Ju(t,this._c):[].concat(n),r],a=i[0],c=i.reduce((f,u)=>{const d=Fs(t,u,o);return f.top=pe(d.top,f.top),f.right=ze(d.right,f.right),f.bottom=ze(d.bottom,f.bottom),f.left=pe(d.left,f.left),f},Fs(t,a,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}=Ds(e);return{width:t,height:n}}function td(e,t,n){const r=Me(t),o=Ae(t),s=n==="fixed",i=Xe(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const c=Re(0);function f(){c.x=cr(o)}if(r||!r&&!s)if((lt(t)!=="body"||xt(o))&&(a=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,a):Re(0),d=i.left+a.scrollLeft-c.x-u.x,m=i.top+a.scrollTop-c.y-u.y;return{x:d,y:m,width:i.width,height:i.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=me(e);if(Qt(e))return n;if(!Me(e)){let o=Be(e);for(;o&&!ut(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&&ut(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:dt,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 a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),s();const f=e.getBoundingClientRect(),{left:u,top:d,width:m,height:g}=f;if(a||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:pe(0,ze(1,c))||1};let S=!0;function _(M){const A=M[0].intersectionRatio;if(A!==c){if(!S)return i();A?i(!1,A):r=setTimeout(()=>{i(!1,1e-7)},1e3)}A===1&&!Ws(f,e.getBoundingClientRect())&&i(),S=!1}try{n=new IntersectionObserver(_,{...E,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,E)}n.observe(e)}return i(!0),s}function id(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,f=ar(e),u=o||s?[...f?wt(f):[],...wt(t)]:[];u.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const d=f&&a?sd(f,n):null;let m=-1,g=null;i&&(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 ad=$u,cd=Vu,ld=ju,ud=Wu,dd=Lu,zs=Du,fd=Hu,pd=(e,t,n)=>{const r=new Map,o={platform:od,...n},s={...o.platform,_c:r};return Iu(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:i}={},transform:a=!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,_=i||x,M=l.useRef(null),A=l.useRef(null),C=l.useRef(u),I=c!=null,D=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(D.current)return D.current(S,_,V);V()}},[S,_,V,D,I]);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 a?{...R,transform:"translate("+O+"px, "+w+"px)",...Bs(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:w}},[n,a,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)=>({...ad(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 i,a;if("borderBoxSize"in s){const c=s.borderBoxSize,f=Array.isArray(c)?c[0]:c;i=f.inlineSize,a=f.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});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),i=l.useRef(null),a=ie(t,i);return l.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:p.jsx(ne.div,{...o,ref:a})});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:i=0,arrowPadding:a=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=ie(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,I=r+(s!=="center"?"-"+s:""),D=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:D,boundary:G.filter(Nd),altBoundary:z},{refs:H,floatingStyles:q,placement:F,isPositioned:U,middlewareData:R}=gd({strategy:"fixed",placement:I,whileElementsMounted:(...Z)=>id(...Z,{animationFrame:g==="always"}),elements:{reference:x.anchor},middleware:[bd({mainAxis:o+C,alignmentAxis:i}),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:he,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",`${he}px`),oe.setProperty("--radix-popper-anchor-height",`${Ue}px`)}}),S&&Sd({element:S,padding:a}),kd({arrowWidth:A,arrowHeight:C}),m&&Ed({strategy:"referenceHidden",...V})]}),[O,w]=ti(F),N=ke(b);He(()=>{U&&(N==null||N())},[U,N]);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",Pd={top:"bottom",right:"left",bottom:"top",left:"right"},ei=l.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Td(Qs,r),i=Pd[s.placedSide];return p.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]: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"}})})});ei.displayName=Qs;function Nd(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,i=((x=o.arrow)==null?void 0:x.centerOffset)!==0,a=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[f,u]=ti(n),d={start:"0%",center:"50%",end:"100%"}[u],m=(((v=o.arrow)==null?void 0:v.x)??0)+a/2,g=(((y=o.arrow)==null?void 0:y.y)??0)+c/2;let b="",h="";return f==="bottom"?(b=i?d:`${m}px`,h=`${-c}px`):f==="top"?(b=i?d:`${m}px`,h=`${r.floating.height+c}px`):f==="right"?(b=`${-c}px`,h=i?d:`${g}px`):f==="left"&&(b=`${r.floating.width+c}px`,h=i?d:`${g}px`),{data:{x:b,y:h}}}});function ti(e){const[t,n="center"]=e.split("-");return[t,n]}var Id=qs,ni=Zs,ri=Js,oi=ei,Dd=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",si=l.forwardRef((e,t)=>p.jsx(ne.span,{...e,ref:t,style:{...Dd,...e.style}}));si.displayName=jd;var Ld=si,[on,R0]=Ye("Tooltip",[rn]),pr=rn(),ii="TooltipProvider",Fd=700,ai="tooltip.open",[$d,ci]=on(ii),li=e=>{const{__scopeTooltip:t,delayDuration:n=Fd,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=l.useRef(!0),a=l.useRef(!1),c=l.useRef(0);return l.useEffect(()=>{const f=c.current;return()=>window.clearTimeout(f)},[]),p.jsx($d,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:l.useCallback(()=>{window.clearTimeout(c.current),i.current=!1},[]),onClose:l.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:l.useCallback(f=>{a.current=f},[]),disableHoverableContent:o,children:s})};li.displayName=ii;var ui="Tooltip",[_0,sn]=on(ui),mr="TooltipTrigger",Vd=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=sn(mr,n),s=ci(mr,n),i=pr(n),a=l.useRef(null),c=ie(t,a,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(ni,{asChild:!0,...i,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",[A0,Wd]=on(Hd,{forceMount:void 0}),ft="TooltipContent",di=l.forwardRef((e,t)=>{const n=Wd(ft,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=sn(ft,e.__scopeTooltip);return p.jsx(Ie,{present:r||i.open,children:i.disableHoverableContent?p.jsx(fi,{side:o,...s,ref:t}):p.jsx(zd,{side:o,...s,ref:t})})}),zd=l.forwardRef((e,t)=>{const n=sn(ft,e.__scopeTooltip),r=ci(ft,e.__scopeTooltip),o=l.useRef(null),s=ie(t,o),[i,a]=l.useState(null),{trigger:c,onClose:f}=n,u=o.current,{onPointerInTransitChange:d}=r,m=l.useCallback(()=>{a(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]);a(_),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(i){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,i);y?m():E&&(m(),f())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[c,u,i,f,m]),p.jsx(fi,{...e,ref:s})}),[Bd,Gd]=on(ui,{isInside:!1}),Ud=lc("TooltipContent"),fi=l.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...a}=e,c=sn(ft,n),f=pr(n),{onClose:u}=c;return l.useEffect(()=>(document.addEventListener(ai,u),()=>document.removeEventListener(ai,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:i,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:p.jsxs(ri,{"data-state":c.stateAttribute,...f,...a,ref:t,style:{...a.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})})]})})});di.displayName=ft;var pi="TooltipArrow",Kd=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=pr(n);return Gd(pi,n).isInside?null:p.jsx(oi,{...o,...r,ref:t})});Kd.displayName=pi;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,i=t.length-1;s<t.length;i=s++){const a=t[s],c=t[i],f=a.x,u=a.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],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.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],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.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=li,mi=di;const tf=ef,nf=l.forwardRef(({className:e,sideOffset:t=4,...n},r)=>p.jsx(mi,{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=mi.displayName;const rf="sidebar_state",of=60*60*24*7,sf="16rem",af="18rem",cf="3rem",lf="b",hi=l.createContext(null);function hr(){const e=l.useContext(hi);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,...i}){const a=pc(),[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(()=>a?f(v=>!v):g(v=>!v),[a,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:a,openMobile:c,setOpenMobile:f,toggleSidebar:b}),[h,m,g,a,c,f,b]);return p.jsx(hi.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),...i,children:s})})})}function df({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...s}){const{isMobile:i,state:a,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}):i?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":a,"data-collapsible":a==="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?io:"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[i,a]=l.useState(r);return l.useEffect(()=>{s&&a(!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(At.Link,{to:t,className:B("flex flex-1 cursor-pointer items-center gap-2 rounded-lg p-2 hover:bg-gray-100",s&&"font-medium"),children:[o&&p.jsx("span",{className:B("text-gray-600",s&&"font-medium"),children:o}),p.jsx("span",{className:B(s&&"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(),a(!i)},"aria-label":i?"Collapse section":"Expand section",children:i?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",i?"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",Sf={navMain:[{title:"Essential Insights",url:"/overall-performance",icon:p.jsx(nc,{className:"h-5 w-5"}),items:[{title:"Overall Performance",url:"/overall-performance",icon:p.jsx(ro,{className:"h-4 w-4"})},{title:"Organic Performance",url:"/organic-performance",icon:p.jsx(no,{className:"h-4 w-4"})},{title:"Paid Performance",url:"/paid-performance",icon:p.jsx(tc,{className:"h-4 w-4"})},{title:"Keyword Performance",url:"/keyword-performance",icon:p.jsx(no,{className:"h-4 w-4"})},{title:"More Components",url:"/more-components",icon:p.jsx(ec,{className:"h-4 w-4"})}]}]};function gi({...e}){const n=At.useLocation().pathname,r=i=>n===i?!0:i==="/essential-insights"?!1:!!n.startsWith(i+"/"),o=i=>i.some(a=>r(a.url)),s=i=>r(i.url)||o(i.items);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(At.Link,{to:"/home",className:B("flex cursor-pointer items-center gap-2 rounded-lg px-2 py-2",n==="/home"?"bg-gli-blue font-medium":"hover:bg-gray-100"),children:[p.jsx(ro,{className:B("h-5 w-5",n==="/home"?"font-medium":"text-gray-600")}),p.jsx("span",{children:"Home"})]})})}),Sf.navMain.map(i=>p.jsx(Cf,{title:i.title,url:i.url,defaultOpen:o(i.items)||r(i.url),icon:i.icon,isActive:s(i),children:p.jsx(bf,{children:p.jsx(xf,{children:i.items.map(a=>p.jsx(wf,{children:p.jsx(yf,{asChild:!0,children:p.jsxs(At.Link,{to:a.url,className:B("flex items-center gap-2 pl-4 transition-colors",r(a.url)?"bg-gli-blue font-medium text-gli-bluedark":"text-muted-foreground hover:bg-muted hover:text-foreground"),children:[p.jsx("span",{className:B(r(a.url)?"font-medium text-gli-bluedark":"text-muted-foreground"),children:a.icon}),p.jsx("span",{className:B(r(a.url)?"font-medium text-gli-bluedark":"text-muted-foreground"),children:a.title})]})})},a.title))})})},i.title))]}),p.jsx(pf,{})]})}function vi(e){const t=e+"CollectionProvider",[n,r]=Ye(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=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})};i.displayName=t;const a=e+"CollectionSlot",c=Qe(a),f=k.forwardRef((h,x)=>{const{scope:v,children:y}=h,E=s(a,v),S=ie(x,E.collectionRef);return p.jsx(c,{ref:S,children:y})});f.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",m=Qe(u),g=k.forwardRef((h,x)=>{const{scope:v,children:y,...E}=h,S=k.useRef(null),_=ie(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:i,Slot:f,ItemSlot:g},b,r]}var Rf=l.createContext(void 0);function bi(e){const t=l.useContext(Rf);return e||t||"ltr"}var gr="rovingFocusGroup.onEntryFocus",_f={bubbles:!1,cancelable:!0},yt="RovingFocusGroup",[vr,xi,Af]=vi(yt),[Mf,wi]=Ye(yt,[Af]),[Of,Tf]=Mf(yt),yi=l.forwardRef((e,t)=>p.jsx(vr.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx(vr.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(Pf,{...e,ref:t})})}));yi.displayName=yt;var Pf=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:c,onEntryFocus:f,preventScrollOnEntryFocus:u=!1,...d}=e,m=l.useRef(null),g=ie(t,m),b=bi(s),[h,x]=Ln({prop:i,defaultProp:a??null,onChange:c,caller:yt}),[v,y]=l.useState(!1),E=ke(f),S=xi(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(Of,{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 I=!_.current;if(C.target===C.currentTarget&&I&&!v){const D=new CustomEvent(gr,_f);if(C.currentTarget.dispatchEvent(D),!D.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);Si(q,u)}}_.current=!1}),onBlur:L(e.onBlur,()=>y(!1))})})}),Ci="RovingFocusGroupItem",Ei=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:i,...a}=e,c=rt(),f=s||c,u=Tf(Ci,n),d=u.currentTabStopId===f,m=xi(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,...a,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=If(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?Df(E,S+1):E.slice(S+1)}setTimeout(()=>Si(E))}}),children:typeof i=="function"?i({isCurrentTabStop:d,hasTabStop:h!=null}):i})})});Ei.displayName=Ci;var Nf={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function kf(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function If(e,t,n){const r=kf(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Nf[r]}function Si(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Df(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var jf=yi,Lf=Ei,br=["Enter"," "],Ff=["ArrowDown","PageUp","Home"],Ri=["ArrowUp","PageDown","End"],$f=[...Ff,...Ri],Vf={ltr:[...br,"ArrowRight"],rtl:[...br,"ArrowLeft"]},Hf={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Ct="Menu",[Et,Wf,zf]=vi(Ct),[Ze,_i]=Ye(Ct,[zf,rn,wi]),an=rn(),Ai=wi(),[Bf,Je]=Ze(Ct),[Gf,St]=Ze(Ct),Mi=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:i=!0}=e,a=an(t),[c,f]=l.useState(null),u=l.useRef(!1),d=ke(s),m=bi(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(Id,{...a,children:p.jsx(Bf,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:f,children:p.jsx(Gf,{scope:t,onClose:l.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:m,modal:i,children:r})})})};Mi.displayName=Ct;var Uf="MenuAnchor",xr=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=an(n);return p.jsx(ni,{...o,...r,ref:t})});xr.displayName=Uf;var wr="MenuPortal",[Kf,Oi]=Ze(wr,{forceMount:void 0}),Ti=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,s=Je(wr,t);return p.jsx(Kf,{scope:t,forceMount:n,children:p.jsx(Ie,{present:n||s.open,children:p.jsx(Wn,{asChild:!0,container:o,children:r})})})};Ti.displayName=wr;var ge="MenuContent",[Yf,yr]=Ze(ge),Pi=l.forwardRef((e,t)=>{const n=Oi(ge,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=Je(ge,e.__scopeMenu),i=St(ge,e.__scopeMenu);return p.jsx(Et.Provider,{scope:e.__scopeMenu,children:p.jsx(Ie,{present:r||s.open,children:p.jsx(Et.Slot,{scope:e.__scopeMenu,children:i.modal?p.jsx(qf,{...o,ref:t}):p.jsx(Xf,{...o,ref:t})})})})}),qf=l.forwardRef((e,t)=>{const n=Je(ge,e.__scopeMenu),r=l.useRef(null),o=ie(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)})}),Xf=l.forwardRef((e,t)=>{const n=Je(ge,e.__scopeMenu);return p.jsx(Cr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Zf=Qe("MenuContent.ScrollLock"),Cr=l.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEntryFocus:c,onEscapeKeyDown:f,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:m,onDismiss:g,disableOutsideScroll:b,...h}=e,x=Je(ge,n),v=St(ge,n),y=an(n),E=Ai(n),S=Wf(n),[_,M]=l.useState(null),A=l.useRef(null),C=ie(t,A,x.onContentChange),I=l.useRef(0),D=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:Zf,allowPinchZoom:!0}:void 0,U=O=>{var K,Q;const w=D.current+O,N=S().filter(ee=>!ee.disabled),j=document.activeElement,$=(K=N.find(ee=>ee.ref.current===j))==null?void 0:K.textValue,X=N.map(ee=>ee.textValue),te=lp(X,w,$),le=(Q=N.find(ee=>ee.textValue===te))==null?void 0:Q.ref.current;(function ee(se){D.current=se,window.clearTimeout(I.current),se!==""&&(I.current=window.setTimeout(()=>ee(""),1e3))})(w),le&&setTimeout(()=>le.focus())};l.useEffect(()=>()=>window.clearTimeout(I.current),[]),Wo();const R=l.useCallback(O=>{var N,j;return V.current===((N=z.current)==null?void 0:N.side)&&dp(O,(j=z.current)==null?void 0:j.area)},[]);return p.jsx(Yf,{scope:n,searchRef:D,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:i,children:p.jsx(Lt,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:f,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:m,onDismiss:g,children:p.jsx(jf,{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(ri,{role:"menu","aria-orientation":"vertical","data-state":Yi(x.open),"data-radix-menu-content":"",dir:v.dir,...y,...h,ref:C,style:{outline:"none",...h.style},onKeyDown:L(h.onKeyDown,O=>{const N=O.target.closest("[data-radix-menu-content]")===O.currentTarget,j=O.ctrlKey||O.altKey||O.metaKey,$=O.key.length===1;N&&(O.key==="Tab"&&O.preventDefault(),!j&&$&&U(O.key));const X=A.current;if(O.target!==X||!$f.includes(O.key))return;O.preventDefault();const le=S().filter(K=>!K.disabled).map(K=>K.ref.current);Ri.includes(O.key)&&le.reverse(),ap(le)}),onBlur:L(e.onBlur,O=>{O.currentTarget.contains(O.target)||(window.clearTimeout(I.current),D.current="")}),onPointerMove:L(e.onPointerMove,_t(O=>{const w=O.target,N=H.current!==O.clientX;if(O.currentTarget.contains(w)&&N){const j=O.clientX>H.current?"right":"left";V.current=j,H.current=O.clientX}}))})})})})})})});Pi.displayName=ge;var Jf="MenuGroup",Er=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ne.div,{role:"group",...r,ref:t})});Er.displayName=Jf;var Qf="MenuLabel",Ni=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ne.div,{...r,ref:t})});Ni.displayName=Qf;var cn="MenuItem",ki="menu.itemSelect",ln=l.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,s=l.useRef(null),i=St(cn,e.__scopeMenu),a=yr(cn,e.__scopeMenu),c=ie(t,s),f=l.useRef(!1),u=()=>{const d=s.current;if(!n&&d){const m=new CustomEvent(ki,{bubbles:!0,cancelable:!0});d.addEventListener(ki,g=>r==null?void 0:r(g),{once:!0}),Mo(d,m),m.defaultPrevented?f.current=!1:i.onClose()}};return p.jsx(Ii,{...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=a.searchRef.current!=="";n||m&&d.key===" "||br.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});ln.displayName=cn;var Ii=l.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...s}=e,i=yr(cn,n),a=Ai(n),c=l.useRef(null),f=ie(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(Et.ItemSlot,{scope:n,disabled:r,textValue:o??m,children:p.jsx(Lf,{asChild:!0,...a,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,_t(b=>{r?i.onItemLeave(b):(i.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:L(e.onPointerLeave,_t(b=>i.onItemLeave(b))),onFocus:L(e.onFocus,()=>d(!0)),onBlur:L(e.onBlur,()=>d(!1))})})})}),ep="MenuCheckboxItem",Di=l.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return p.jsx(Vi,{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})})})});Di.displayName=ep;var ji="MenuRadioGroup",[tp,np]=Ze(ji,{value:void 0,onValueChange:()=>{}}),Li=l.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,s=ke(r);return p.jsx(tp,{scope:e.__scopeMenu,value:n,onValueChange:s,children:p.jsx(Er,{...o,ref:t})})});Li.displayName=ji;var Fi="MenuRadioItem",$i=l.forwardRef((e,t)=>{const{value:n,...r}=e,o=np(Fi,e.__scopeMenu),s=n===o.value;return p.jsx(Vi,{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 i;return(i=o.onValueChange)==null?void 0:i.call(o,n)},{checkForDefaultPrevented:!1})})})});$i.displayName=Fi;var Sr="MenuItemIndicator",[Vi,rp]=Ze(Sr,{checked:!1}),Hi=l.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,s=rp(Sr,n);return p.jsx(Ie,{present:r||un(s.checked)||s.checked===!0,children:p.jsx(ne.span,{...o,ref:t,"data-state":Rr(s.checked)})})});Hi.displayName=Sr;var op="MenuSeparator",Wi=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ne.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Wi.displayName=op;var sp="MenuArrow",zi=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=an(n);return p.jsx(oi,{...o,...r,ref:t})});zi.displayName=sp;var ip="MenuSub",[M0,Bi]=Ze(ip),Rt="MenuSubTrigger",Gi=l.forwardRef((e,t)=>{const n=Je(Rt,e.__scopeMenu),r=St(Rt,e.__scopeMenu),o=Bi(Rt,e.__scopeMenu),s=yr(Rt,e.__scopeMenu),i=l.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:c}=s,f={__scopeMenu:e.__scopeMenu},u=l.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return l.useEffect(()=>u,[u]),l.useEffect(()=>{const d=a.current;return()=>{window.clearTimeout(d),c(null)}},[a,c]),p.jsx(xr,{asChild:!0,...f,children:p.jsx(Ii,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Yi(n.open),...e,ref:It(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,_t(d=>{s.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(s.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:L(e.onPointerLeave,_t(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(a.current),a.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===" "||Vf[r.dir].includes(d.key)&&(n.onOpenChange(!0),(g=n.content)==null||g.focus(),d.preventDefault())})})})});Gi.displayName=Rt;var Ui="MenuSubContent",Ki=l.forwardRef((e,t)=>{const n=Oi(ge,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=Je(ge,e.__scopeMenu),i=St(ge,e.__scopeMenu),a=Bi(Ui,e.__scopeMenu),c=l.useRef(null),f=ie(t,c);return p.jsx(Et.Provider,{scope:e.__scopeMenu,children:p.jsx(Ie,{present:r||s.open,children:p.jsx(Et.Slot,{scope:e.__scopeMenu,children:p.jsx(Cr,{id:a.contentId,"aria-labelledby":a.triggerId,...o,ref:f,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{var d;i.isUsingKeyboardRef.current&&((d=c.current)==null||d.focus()),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:L(e.onFocusOutside,u=>{u.target!==a.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:L(e.onEscapeKeyDown,u=>{i.onClose(),u.preventDefault()}),onKeyDown:L(e.onKeyDown,u=>{var g;const d=u.currentTarget.contains(u.target),m=Hf[i.dir].includes(u.key);d&&m&&(s.onOpenChange(!1),(g=a.trigger)==null||g.focus(),u.preventDefault())})})})})})});Ki.displayName=Ui;function Yi(e){return e?"open":"closed"}function un(e){return e==="indeterminate"}function Rr(e){return un(e)?"indeterminate":e?"checked":"unchecked"}function ap(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function cp(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function lp(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 i=cp(e,Math.max(s,0));o.length===1&&(i=i.filter(f=>f!==n));const c=i.find(f=>f.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function up(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s],c=t[i],f=a.x,u=a.y,d=c.x,m=c.y;u>r!=m>r&&n<(d-f)*(r-u)/(m-u)+f&&(o=!o)}return o}function dp(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return up(n,t)}function _t(e){return t=>t.pointerType==="mouse"?e(t):void 0}var fp=Mi,pp=xr,mp=Ti,hp=Pi,gp=Er,vp=Ni,bp=ln,xp=Di,wp=Li,yp=$i,Cp=Hi,Ep=Wi,Sp=zi,Rp=Gi,_p=Ki,dn="DropdownMenu",[Ap,O0]=Ye(dn,[_i]),de=_i(),[Mp,qi]=Ap(dn),Xi=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:s,onOpenChange:i,modal:a=!0}=e,c=de(t),f=l.useRef(null),[u,d]=Ln({prop:o,defaultProp:s??!1,onChange:i,caller:dn});return p.jsx(Mp,{scope:t,triggerId:rt(),triggerRef:f,contentId:rt(),open:u,onOpenChange:d,onOpenToggle:l.useCallback(()=>d(m=>!m),[d]),modal:a,children:p.jsx(fp,{...c,open:u,onOpenChange:d,dir:r,modal:a,children:n})})};Xi.displayName=dn;var Zi="DropdownMenuTrigger",Ji=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,s=qi(Zi,n),i=de(n);return p.jsx(pp,{asChild:!0,...i,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:It(t,s.triggerRef),onPointerDown:L(e.onPointerDown,a=>{!r&&a.button===0&&a.ctrlKey===!1&&(s.onOpenToggle(),s.open||a.preventDefault())}),onKeyDown:L(e.onKeyDown,a=>{r||(["Enter"," "].includes(a.key)&&s.onOpenToggle(),a.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});Ji.displayName=Zi;var Op="DropdownMenuPortal",Qi=e=>{const{__scopeDropdownMenu:t,...n}=e,r=de(t);return p.jsx(mp,{...r,...n})};Qi.displayName=Op;var ea="DropdownMenuContent",ta=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=qi(ea,n),s=de(n),i=l.useRef(!1);return p.jsx(hp,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...r,ref:t,onCloseAutoFocus:L(e.onCloseAutoFocus,a=>{var c;i.current||(c=o.triggerRef.current)==null||c.focus(),i.current=!1,a.preventDefault()}),onInteractOutside:L(e.onInteractOutside,a=>{const c=a.detail.originalEvent,f=c.button===0&&c.ctrlKey===!0,u=c.button===2||f;(!o.modal||u)&&(i.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)"}})});ta.displayName=ea;var Tp="DropdownMenuGroup",Pp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(gp,{...o,...r,ref:t})});Pp.displayName=Tp;var Np="DropdownMenuLabel",na=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(vp,{...o,...r,ref:t})});na.displayName=Np;var kp="DropdownMenuItem",ra=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(bp,{...o,...r,ref:t})});ra.displayName=kp;var Ip="DropdownMenuCheckboxItem",Dp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(xp,{...o,...r,ref:t})});Dp.displayName=Ip;var jp="DropdownMenuRadioGroup",Lp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(wp,{...o,...r,ref:t})});Lp.displayName=jp;var Fp="DropdownMenuRadioItem",$p=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(yp,{...o,...r,ref:t})});$p.displayName=Fp;var Vp="DropdownMenuItemIndicator",Hp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(Cp,{...o,...r,ref:t})});Hp.displayName=Vp;var Wp="DropdownMenuSeparator",oa=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(Ep,{...o,...r,ref:t})});oa.displayName=Wp;var zp="DropdownMenuArrow",Bp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(Sp,{...o,...r,ref:t})});Bp.displayName=zp;var Gp="DropdownMenuSubTrigger",Up=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(Rp,{...o,...r,ref:t})});Up.displayName=Gp;var Kp="DropdownMenuSubContent",Yp=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(_p,{...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)"}})});Yp.displayName=Kp;var qp=Xi,Xp=Ji,Zp=Qi,Jp=ta,Qp=na,e0=ra,t0=oa;function n0({...e}){return p.jsx(qp,{"data-slot":"dropdown-menu",...e})}function r0({...e}){return p.jsx(Xp,{"data-slot":"dropdown-menu-trigger",...e})}function o0({className:e,sideOffset:t=4,...n}){return p.jsx(Zp,{children:p.jsx(Jp,{"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 sa({className:e,inset:t,variant:n="default",...r}){return p.jsx(e0,{"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 s0({className:e,inset:t,...n}){return p.jsx(Qp,{"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 i0({className:e,...t}){return p.jsx(t0,{"data-slot":"dropdown-menu-separator",className:B("bg-border -mx-1 my-1 h-px",e),...t})}const a0=()=>{const{user:e,error:t,isLoading:n}=Ka(),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(n0,{children:[p.jsx(r0,{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(o0,{align:"end",className:"w-72",children:[p.jsx(s0,{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(i0,{}),p.jsx(sa,{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(sa,{onClick:r,children:[p.jsx(sc,{className:"mr-2 h-4 w-4"}),p.jsx("span",{children:"Sign out"})]})]})]})}):null},c0=()=>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(No,{orientation:"vertical"})]}),p.jsx("div",{className:"flex-shrink-0",children:p.jsx(a0,{})})]})}),l0=({children:e})=>p.jsxs(Ya,{children:[p.jsx(gi,{}),p.jsx(uf,{children:p.jsxs("div",{className:"flex h-screen w-full",children:[p.jsx(gi,{}),p.jsxs(mf,{className:"flex-1 flex flex-col min-w-0",children:[p.jsx(c0,{}),p.jsx("main",{className:"flex-1 bg-white",id:"page-content",children:e})]})]})})]});Oe.GLICloudProvider=l0,Object.defineProperty(Oe,Symbol.toStringTag,{value:"Module"})});
@@ -0,0 +1,2 @@
1
+ export declare function useIsMobile(): boolean;
2
+ //# sourceMappingURL=use-mobile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-mobile.d.ts","sourceRoot":"","sources":["../../src/hooks/use-mobile.ts"],"names":[],"mappings":"AAEA,wBAAgB,WAAW,YAe1B"}