@golocalinteractive/golocal-cloud-wrapper 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("react"),zr=require("react-dom"),Hr=require("@auth0/nextjs-auth0"),ti=require("./token-B1R9SeIE.cjs"),ni=require("jwt-decode");function Vr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const u=Vr(q),Br=Vr(zr);var mt={exports:{}},Xe={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var ar;function ri(){if(ar)return Xe;ar=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,a){var s=null;if(a!==void 0&&(s=""+a),o.key!==void 0&&(s=""+o.key),"key"in o){a={};for(var i in o)i!=="key"&&(a[i]=o[i])}else a=o;return o=a.ref,{$$typeof:e,type:r,key:s,ref:o!==void 0?o:null,props:a}}return Xe.Fragment=t,Xe.jsx=n,Xe.jsxs=n,Xe}var Je={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,113 +14,198 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var sr;function oi(){return sr||(sr=1,process.env.NODE_ENV!=="production"&&function(){function e(w){if(w==null)return null;if(typeof w=="function")return w.$$typeof===z?null:w.displayName||w.name||null;if(typeof w=="string")return w;switch(w){case h:return"Fragment";case x:return"Profiler";case v:return"StrictMode";case k:return"Suspense";case T: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 C:return(w.displayName||"Context")+".Provider";case y:return(w._context.displayName||"Context")+".Consumer";case S:var j=w.render;return w=w.displayName,w||(w=j.displayName||j.name||"",w=w!==""?"ForwardRef("+w+")":"ForwardRef"),w;case R:return j=w.displayName||null,j!==null?j:e(w.type)||"Memo";case M:j=w._payload,w=w._init;try{return e(w(j))}catch{}}return null}function t(w){return""+w}function n(w){try{t(w);var j=!1}catch{j=!0}if(j){j=console;var F=j.error,$=typeof Symbol=="function"&&Symbol.toStringTag&&w[Symbol.toStringTag]||w.constructor.name||"Object";return F.call(j,"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===M)return"<...>";try{var j=e(w);return j?"<"+j+">":"<...>"}catch{return"<...>"}}function o(){var w=K.A;return w===null?null:w.getOwner()}function a(){return Error("react-stack-top-frame")}function s(w){if(G.call(w,"key")){var j=Object.getOwnPropertyDescriptor(w,"key").get;if(j&&j.isReactWarning)return!1}return w.key!==void 0}function i(w,j){function F(){Z||(Z=!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)",j))}F.isReactWarning=!0,Object.defineProperty(w,"key",{get:F,configurable:!0})}function l(){var w=e(this.type);return D[w]||(D[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 d(w,j,F,$,Y,ee,oe,W){return F=ee.ref,w={$$typeof:g,type:w,key:j,props:ee,_owner:Y},(F!==void 0?F:null)!==null?Object.defineProperty(w,"ref",{enumerable:!1,get:l}):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:oe}),Object.defineProperty(w,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:W}),Object.freeze&&(Object.freeze(w.props),Object.freeze(w)),w}function f(w,j,F,$,Y,ee,oe,W){var X=j.children;if(X!==void 0)if($)if(U(X)){for($=0;$<X.length;$++)p(X[$]);Object.freeze&&Object.freeze(X)}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 p(X);if(G.call(j,"key")){X=e(w);var J=Object.keys(j).filter(function(Se){return Se!=="key"});$=0<J.length?"{key: someKey, "+J.join(": ..., ")+": ...}":"{key: someKey}",P[X+$]||(J=0<J.length?"{"+J.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
18
|
let props = %s;
|
|
19
19
|
<%s {...props} />
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,$,X,q,X),_[X+$]=!0)}if(X=null,F!==void 0&&(n(F),X=""+F),s(O)&&(n(O.key),X=""+O.key),"key"in O){F={};for(var ae in O)ae!=="key"&&(F[ae]=O[ae])}else F=O;return X&&i(F,typeof w=="function"?w.displayName||w.name||"Unknown":w),d(w,X,Q,K,o(),F,oe,B)}function p(w){typeof w=="object"&&w!==null&&w.$$typeof===g&&w._store&&(w._store.validated=1)}var m=Z,g=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),C=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),z=Symbol.for("react.client.reference"),U=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=Object.prototype.hasOwnProperty,W=Array.isArray,H=console.createTask?console.createTask:function(){return null};m={"react-stack-bottom-frame":function(w){return w()}};var Y,D={},V=m["react-stack-bottom-frame"].bind(m,a)(),E=H(r(a)),_={};Je.Fragment=h,Je.jsx=function(w,O,F,$,K){var Q=1e4>U.recentlyCreatedOwnerStacks++;return f(w,O,F,!1,$,K,Q?Error("react-stack-top-frame"):V,Q?H(r(w)):E)},Je.jsxs=function(w,O,F,$,K){var Q=1e4>U.recentlyCreatedOwnerStacks++;return f(w,O,F,!0,$,K,Q?Error("react-stack-top-frame"):V,Q?H(r(w)):E)}}()),Je}var cr;function si(){return cr||(cr=1,process.env.NODE_ENV==="production"?mt.exports=oi():mt.exports=ai()),mt.exports}var c=si();function lr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ot(...e){return t=>{let n=!1;const r=e.map(o=>{const a=lr(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():lr(e[o],null)}}}}function te(...e){return u.useCallback(Ot(...e),e)}function Ve(e){const t=ii(e),n=u.forwardRef((r,o)=>{const{children:a,...s}=r,i=u.Children.toArray(a),l=i.find(li);if(l){const d=l.props.children,f=i.map(p=>p===l?u.Children.count(d)>1?u.Children.only(null):u.isValidElement(d)?d.props.children:null:p);return c.jsx(t,{...s,ref:o,children:u.isValidElement(d)?u.cloneElement(d,void 0,f):null})}return c.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var We=Ve("Slot");function ii(e){const t=u.forwardRef((n,r)=>{const{children:o,...a}=n;if(u.isValidElement(o)){const s=di(o),i=ui(a,o.props);return o.type!==u.Fragment&&(i.ref=r?Ot(r,s):s),u.cloneElement(o,i)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Wr=Symbol("radix.slottable");function ci(e){const t=({children:n})=>c.jsx(c.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Wr,t}function li(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Wr}function ui(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...i)=>{const l=a(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function di(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 fi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],J=fi.reduce((e,t)=>{const n=Ve(`Primitive.${t}`),r=u.forwardRef((o,a)=>{const{asChild:s,...i}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...i,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ur(e,t){e&&Gr.flushSync(()=>e.dispatchEvent(t))}var pi="Separator",ur="horizontal",mi=["horizontal","vertical"],Kr=u.forwardRef((e,t)=>{const{decorative:n,orientation:r=ur,...o}=e,a=hi(r)?r:ur,i=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return c.jsx(J.div,{"data-orientation":a,...i,...o,ref:t})});Kr.displayName=pi;function hi(e){return mi.includes(e)}var Yr=Kr;function Zr(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=Zr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Xr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Zr(e))&&(r&&(r+=" "),r+=t);return r}const Sn="-",gi=e=>{const t=bi(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const i=s.split(Sn);return i[0]===""&&i.length!==1&&i.shift(),qr(i,t)||vi(s)},getConflictingClassGroupIds:(s,i)=>{const l=n[s]||[];return i&&r[s]?[...l,...r[s]]:l}}},qr=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?qr(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(Sn);return(s=t.validators.find(({validator:i})=>i(a)))==null?void 0:s.classGroupId},dr=/^\[(.+)\]$/,vi=e=>{if(dr.test(e)){const t=dr.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},bi=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)ln(n[o],r,o,t);return r},ln=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:fr(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(xi(o)){ln(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,s])=>{ln(s,fr(t,a),n,r)})})},fr=(e,t)=>{let n=e;return t.split(Sn).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},xi=e=>e.isThemeGetter,wi=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(a,s)=>{n.set(a,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let s=n.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return o(a,s),s},set(a,s){n.has(a)?n.set(a,s):o(a,s)}}},un="!",dn=":",yi=dn.length,Ci=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const a=[];let s=0,i=0,l=0,d;for(let b=0;b<o.length;b++){let h=o[b];if(s===0&&i===0){if(h===dn){a.push(o.slice(l,b)),l=b+yi;continue}if(h==="/"){d=b;continue}}h==="["?s++:h==="]"?s--:h==="("?i++:h===")"&&i--}const f=a.length===0?o:o.substring(l),p=Si(f),m=p!==f,g=d&&d>l?d-l:void 0;return{modifiers:a,hasImportantModifier:m,baseClassName:p,maybePostfixModifierPosition:g}};if(t){const o=t+dn,a=r;r=s=>s.startsWith(o)?a(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=a=>n({className:a,parseClassName:o})}return r},Si=e=>e.endsWith(un)?e.substring(0,e.length-1):e.startsWith(un)?e.substring(1):e,Ei=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let a=[];return r.forEach(s=>{s[0]==="["||t[s]?(o.push(...a.sort(),s),a=[]):a.push(s)}),o.push(...a.sort()),o}},Ri=e=>({cache:wi(e.cacheSize),parseClassName:Ci(e),sortModifiers:Ei(e),...gi(e)}),Mi=/\s+/,ki=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],i=e.trim().split(Mi);let l="";for(let d=i.length-1;d>=0;d-=1){const f=i[d],{isExternal:p,modifiers:m,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:h}=n(f);if(p){l=f+(l.length>0?" "+l:l);continue}let v=!!h,x=r(v?b.substring(0,h):b);if(!x){if(!v){l=f+(l.length>0?" "+l:l);continue}if(x=r(b),!x){l=f+(l.length>0?" "+l:l);continue}v=!1}const y=a(m).join(":"),C=g?y+un:y,S=C+x;if(s.includes(S))continue;s.push(S);const M=o(x,v);for(let T=0;T<M.length;++T){const k=M[T];s.push(C+k)}l=f+(l.length>0?" "+l:l)}return l};function Ai(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Jr(t))&&(r&&(r+=" "),r+=n);return r}const Jr=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Jr(e[r]))&&(n&&(n+=" "),n+=t);return n};function Pi(e,...t){let n,r,o,a=s;function s(l){const d=t.reduce((f,p)=>p(f),e());return n=Ri(d),r=n.cache.get,o=n.cache.set,a=i,i(l)}function i(l){const d=r(l);if(d)return d;const f=ki(l,n);return o(l,f),f}return function(){return a(Ai.apply(null,arguments))}}const ee=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Qr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,eo=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ni=/^\d+\/\d+$/,_i=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ti=/\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$/,Oi=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ji=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Di=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ie=e=>Ni.test(e),L=e=>!!e&&!Number.isNaN(Number(e)),Ee=e=>!!e&&Number.isInteger(Number(e)),Zt=e=>e.endsWith("%")&&L(e.slice(0,-1)),be=e=>_i.test(e),Ii=()=>!0,Li=e=>Ti.test(e)&&!Oi.test(e),to=()=>!1,Fi=e=>ji.test(e),$i=e=>Di.test(e),zi=e=>!P(e)&&!N(e),Hi=e=>Ue(e,oo,to),P=e=>Qr.test(e),_e=e=>Ue(e,ao,Li),Xt=e=>Ue(e,Ui,L),pr=e=>Ue(e,no,to),Vi=e=>Ue(e,ro,$i),ht=e=>Ue(e,so,Fi),N=e=>eo.test(e),Qe=e=>Ke(e,ao),Bi=e=>Ke(e,Ki),mr=e=>Ke(e,no),Gi=e=>Ke(e,oo),Wi=e=>Ke(e,ro),gt=e=>Ke(e,so,!0),Ue=(e,t,n)=>{const r=Qr.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ke=(e,t,n=!1)=>{const r=eo.exec(e);return r?r[1]?t(r[1]):n:!1},no=e=>e==="position"||e==="percentage",ro=e=>e==="image"||e==="url",oo=e=>e==="length"||e==="size"||e==="bg-size",ao=e=>e==="length",Ui=e=>e==="number",Ki=e=>e==="family-name",so=e=>e==="shadow",Yi=()=>{const e=ee("color"),t=ee("font"),n=ee("text"),r=ee("font-weight"),o=ee("tracking"),a=ee("leading"),s=ee("breakpoint"),i=ee("container"),l=ee("spacing"),d=ee("radius"),f=ee("shadow"),p=ee("inset-shadow"),m=ee("text-shadow"),g=ee("drop-shadow"),b=ee("blur"),h=ee("perspective"),v=ee("aspect"),x=ee("ease"),y=ee("animate"),C=()=>["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"],M=()=>[...S(),N,P],T=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto","contain","none"],R=()=>[N,P,l],I=()=>[Ie,"full","auto",...R()],z=()=>[Ee,"none","subgrid",N,P],U=()=>["auto",{span:["full",Ee,N,P]},Ee,N,P],G=()=>[Ee,"auto",N,P],W=()=>["auto","min","max","fr",N,P],H=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Y=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...R()],V=()=>[Ie,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],E=()=>[e,N,P],_=()=>[...S(),mr,pr,{position:[N,P]}],w=()=>["no-repeat",{repeat:["","x","y","space","round"]}],O=()=>["auto","cover","contain",Gi,Hi,{size:[N,P]}],F=()=>[Zt,Qe,_e],$=()=>["","none","full",d,N,P],K=()=>["",L,Qe,_e],Q=()=>["solid","dashed","dotted","double"],oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],B=()=>[L,Zt,mr,pr],X=()=>["","none",b,N,P],q=()=>["none",L,N,P],ae=()=>["none",L,N,P],Se=()=>[L,N,P],Ne=()=>[Ie,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[be],breakpoint:[be],color:[Ii],container:[be],"drop-shadow":[be],ease:["in","out","in-out"],font:[zi],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[be],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[be],shadow:[be],spacing:["px",L],text:[be],"text-shadow":[be],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ie,P,N,v]}],container:["container"],columns:[{columns:[L,P,N,i]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"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:M()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],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:[Ee,"auto",N,P]}],basis:[{basis:[Ie,"full","auto",i,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[L,Ie,"auto","initial","none",P]}],grow:[{grow:["",L,N,P]}],shrink:[{shrink:["",L,N,P]}],order:[{order:[Ee,"first","last","none",N,P]}],"grid-cols":[{"grid-cols":z()}],"col-start-end":[{col:U()}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":z()}],"row-start-end":[{row:U()}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":W()}],"auto-rows":[{"auto-rows":W()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...H(),"normal"]}],"justify-items":[{"justify-items":[...Y(),"normal"]}],"justify-self":[{"justify-self":["auto",...Y()]}],"align-content":[{content:["normal",...H()]}],"align-items":[{items:[...Y(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Y(),{baseline:["","last"]}]}],"place-content":[{"place-content":H()}],"place-items":[{"place-items":[...Y(),"baseline"]}],"place-self":[{"place-self":["auto",...Y()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:V()}],w:[{w:[i,"screen",...V()]}],"min-w":[{"min-w":[i,"screen","none",...V()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...V()]}],h:[{h:["screen","lh",...V()]}],"min-h":[{"min-h":["screen","lh","none",...V()]}],"max-h":[{"max-h":["screen","lh",...V()]}],"font-size":[{text:["base",n,Qe,_e]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,N,Xt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Zt,P]}],"font-family":[{font:[Bi,P,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,N,P]}],"line-clamp":[{"line-clamp":[L,"none",N,Xt]}],leading:[{leading:[a,...R()]}],"list-image":[{"list-image":["none",N,P]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",N,P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:E()}],"text-color":[{text:E()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:[L,"from-font","auto",N,_e]}],"text-decoration-color":[{decoration:E()}],"underline-offset":[{"underline-offset":[L,"auto",N,P]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",N,P]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",N,P]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:_()}],"bg-repeat":[{bg:w()}],"bg-size":[{bg:O()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ee,N,P],radial:["",N,P],conic:[Ee,N,P]},Wi,Vi]}],"bg-color":[{bg:E()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"gradient-from":[{from:E()}],"gradient-via":[{via:E()}],"gradient-to":[{to:E()}],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:K()}],"border-w-x":[{"border-x":K()}],"border-w-y":[{"border-y":K()}],"border-w-s":[{"border-s":K()}],"border-w-e":[{"border-e":K()}],"border-w-t":[{"border-t":K()}],"border-w-r":[{"border-r":K()}],"border-w-b":[{"border-b":K()}],"border-w-l":[{"border-l":K()}],"divide-x":[{"divide-x":K()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":K()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Q(),"hidden","none"]}],"divide-style":[{divide:[...Q(),"hidden","none"]}],"border-color":[{border:E()}],"border-color-x":[{"border-x":E()}],"border-color-y":[{"border-y":E()}],"border-color-s":[{"border-s":E()}],"border-color-e":[{"border-e":E()}],"border-color-t":[{"border-t":E()}],"border-color-r":[{"border-r":E()}],"border-color-b":[{"border-b":E()}],"border-color-l":[{"border-l":E()}],"divide-color":[{divide:E()}],"outline-style":[{outline:[...Q(),"none","hidden"]}],"outline-offset":[{"outline-offset":[L,N,P]}],"outline-w":[{outline:["",L,Qe,_e]}],"outline-color":[{outline:E()}],shadow:[{shadow:["","none",f,gt,ht]}],"shadow-color":[{shadow:E()}],"inset-shadow":[{"inset-shadow":["none",p,gt,ht]}],"inset-shadow-color":[{"inset-shadow":E()}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:E()}],"ring-offset-w":[{"ring-offset":[L,_e]}],"ring-offset-color":[{"ring-offset":E()}],"inset-ring-w":[{"inset-ring":K()}],"inset-ring-color":[{"inset-ring":E()}],"text-shadow":[{"text-shadow":["none",m,gt,ht]}],"text-shadow-color":[{"text-shadow":E()}],opacity:[{opacity:[L,N,P]}],"mix-blend":[{"mix-blend":[...oe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":oe()}],"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":[L]}],"mask-image-linear-from-pos":[{"mask-linear-from":B()}],"mask-image-linear-to-pos":[{"mask-linear-to":B()}],"mask-image-linear-from-color":[{"mask-linear-from":E()}],"mask-image-linear-to-color":[{"mask-linear-to":E()}],"mask-image-t-from-pos":[{"mask-t-from":B()}],"mask-image-t-to-pos":[{"mask-t-to":B()}],"mask-image-t-from-color":[{"mask-t-from":E()}],"mask-image-t-to-color":[{"mask-t-to":E()}],"mask-image-r-from-pos":[{"mask-r-from":B()}],"mask-image-r-to-pos":[{"mask-r-to":B()}],"mask-image-r-from-color":[{"mask-r-from":E()}],"mask-image-r-to-color":[{"mask-r-to":E()}],"mask-image-b-from-pos":[{"mask-b-from":B()}],"mask-image-b-to-pos":[{"mask-b-to":B()}],"mask-image-b-from-color":[{"mask-b-from":E()}],"mask-image-b-to-color":[{"mask-b-to":E()}],"mask-image-l-from-pos":[{"mask-l-from":B()}],"mask-image-l-to-pos":[{"mask-l-to":B()}],"mask-image-l-from-color":[{"mask-l-from":E()}],"mask-image-l-to-color":[{"mask-l-to":E()}],"mask-image-x-from-pos":[{"mask-x-from":B()}],"mask-image-x-to-pos":[{"mask-x-to":B()}],"mask-image-x-from-color":[{"mask-x-from":E()}],"mask-image-x-to-color":[{"mask-x-to":E()}],"mask-image-y-from-pos":[{"mask-y-from":B()}],"mask-image-y-to-pos":[{"mask-y-to":B()}],"mask-image-y-from-color":[{"mask-y-from":E()}],"mask-image-y-to-color":[{"mask-y-to":E()}],"mask-image-radial":[{"mask-radial":[N,P]}],"mask-image-radial-from-pos":[{"mask-radial-from":B()}],"mask-image-radial-to-pos":[{"mask-radial-to":B()}],"mask-image-radial-from-color":[{"mask-radial-from":E()}],"mask-image-radial-to-color":[{"mask-radial-to":E()}],"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":[L]}],"mask-image-conic-from-pos":[{"mask-conic-from":B()}],"mask-image-conic-to-pos":[{"mask-conic-to":B()}],"mask-image-conic-from-color":[{"mask-conic-from":E()}],"mask-image-conic-to-color":[{"mask-conic-to":E()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:_()}],"mask-repeat":[{mask:w()}],"mask-size":[{mask:O()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",N,P]}],filter:[{filter:["","none",N,P]}],blur:[{blur:X()}],brightness:[{brightness:[L,N,P]}],contrast:[{contrast:[L,N,P]}],"drop-shadow":[{"drop-shadow":["","none",g,gt,ht]}],"drop-shadow-color":[{"drop-shadow":E()}],grayscale:[{grayscale:["",L,N,P]}],"hue-rotate":[{"hue-rotate":[L,N,P]}],invert:[{invert:["",L,N,P]}],saturate:[{saturate:[L,N,P]}],sepia:[{sepia:["",L,N,P]}],"backdrop-filter":[{"backdrop-filter":["","none",N,P]}],"backdrop-blur":[{"backdrop-blur":X()}],"backdrop-brightness":[{"backdrop-brightness":[L,N,P]}],"backdrop-contrast":[{"backdrop-contrast":[L,N,P]}],"backdrop-grayscale":[{"backdrop-grayscale":["",L,N,P]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[L,N,P]}],"backdrop-invert":[{"backdrop-invert":["",L,N,P]}],"backdrop-opacity":[{"backdrop-opacity":[L,N,P]}],"backdrop-saturate":[{"backdrop-saturate":[L,N,P]}],"backdrop-sepia":[{"backdrop-sepia":["",L,N,P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",N,P]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[L,"initial",N,P]}],ease:[{ease:["linear","initial",x,N,P]}],delay:[{delay:[L,N,P]}],animate:[{animate:["none",y,N,P]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,N,P]}],"perspective-origin":[{"perspective-origin":M()}],rotate:[{rotate:q()}],"rotate-x":[{"rotate-x":q()}],"rotate-y":[{"rotate-y":q()}],"rotate-z":[{"rotate-z":q()}],scale:[{scale:ae()}],"scale-x":[{"scale-x":ae()}],"scale-y":[{"scale-y":ae()}],"scale-z":[{"scale-z":ae()}],"scale-3d":["scale-3d"],skew:[{skew:Se()}],"skew-x":[{"skew-x":Se()}],"skew-y":[{"skew-y":Se()}],transform:[{transform:[N,P,"","none","gpu","cpu"]}],"transform-origin":[{origin:M()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ne()}],"translate-x":[{"translate-x":Ne()}],"translate-y":[{"translate-y":Ne()}],"translate-z":[{"translate-z":Ne()}],"translate-none":["translate-none"],accent:[{accent:E()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:E()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",N,P]}],"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":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",N,P]}],fill:[{fill:["none",...E()]}],"stroke-w":[{stroke:[L,Qe,_e,Xt]}],stroke:[{stroke:["none",...E()]}],"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"]}},Zi=Pi(Yi);function A(...e){return Zi(Xr(e))}const jt=u.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>c.jsx(Yr,{ref:o,decorative:n,orientation:t,className:A("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));jt.displayName=Yr.displayName;const hr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,gr=Xr,En=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return gr(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(d=>{const f=n==null?void 0:n[d],p=a==null?void 0:a[d];if(f===null)return null;const m=hr(f)||hr(p);return o[d][m]}),i=n&&Object.entries(n).reduce((d,f)=>{let[p,m]=f;return m===void 0||(d[p]=m),d},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,f)=>{let{class:p,className:m,...g}=f;return Object.entries(g).every(b=>{let[h,v]=b;return Array.isArray(v)?v.includes({...a,...i}[h]):{...a,...i}[h]===v})?[...d,p,m]:d},[]);return gr(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)};/**
|
|
22
|
+
<%s key={someKey} {...props} />`,$,X,J,X),P[X+$]=!0)}if(X=null,F!==void 0&&(n(F),X=""+F),s(j)&&(n(j.key),X=""+j.key),"key"in j){F={};for(var ae in j)ae!=="key"&&(F[ae]=j[ae])}else F=j;return X&&i(F,typeof w=="function"?w.displayName||w.name||"Unknown":w),d(w,X,ee,Y,o(),F,oe,W)}function p(w){typeof w=="object"&&w!==null&&w.$$typeof===g&&w._store&&(w._store.validated=1)}var m=q,g=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),C=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),z=Symbol.for("react.client.reference"),K=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=Object.prototype.hasOwnProperty,U=Array.isArray,H=console.createTask?console.createTask:function(){return null};m={"react-stack-bottom-frame":function(w){return w()}};var Z,D={},B=m["react-stack-bottom-frame"].bind(m,a)(),E=H(r(a)),P={};Je.Fragment=h,Je.jsx=function(w,j,F,$,Y){var ee=1e4>K.recentlyCreatedOwnerStacks++;return f(w,j,F,!1,$,Y,ee?Error("react-stack-top-frame"):B,ee?H(r(w)):E)},Je.jsxs=function(w,j,F,$,Y){var ee=1e4>K.recentlyCreatedOwnerStacks++;return f(w,j,F,!0,$,Y,ee?Error("react-stack-top-frame"):B,ee?H(r(w)):E)}}()),Je}var ir;function ai(){return ir||(ir=1,process.env.NODE_ENV==="production"?mt.exports=ri():mt.exports=oi()),mt.exports}var c=ai();function cr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function jt(...e){return t=>{let n=!1;const r=e.map(o=>{const a=cr(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():cr(e[o],null)}}}}function ne(...e){return u.useCallback(jt(...e),e)}function Ve(e){const t=si(e),n=u.forwardRef((r,o)=>{const{children:a,...s}=r,i=u.Children.toArray(a),l=i.find(ci);if(l){const d=l.props.children,f=i.map(p=>p===l?u.Children.count(d)>1?u.Children.only(null):u.isValidElement(d)?d.props.children:null:p);return c.jsx(t,{...s,ref:o,children:u.isValidElement(d)?u.cloneElement(d,void 0,f):null})}return c.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var Ge=Ve("Slot");function si(e){const t=u.forwardRef((n,r)=>{const{children:o,...a}=n;if(u.isValidElement(o)){const s=ui(o),i=li(a,o.props);return o.type!==u.Fragment&&(i.ref=r?jt(r,s):s),u.cloneElement(o,i)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Wr=Symbol("radix.slottable");function ii(e){const t=({children:n})=>c.jsx(c.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Wr,t}function ci(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Wr}function li(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...i)=>{const l=a(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function ui(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 di=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Q=di.reduce((e,t)=>{const n=Ve(`Primitive.${t}`),r=u.forwardRef((o,a)=>{const{asChild:s,...i}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...i,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Gr(e,t){e&&Br.flushSync(()=>e.dispatchEvent(t))}var fi="Separator",lr="horizontal",pi=["horizontal","vertical"],Ur=u.forwardRef((e,t)=>{const{decorative:n,orientation:r=lr,...o}=e,a=mi(r)?r:lr,i=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return c.jsx(Q.div,{"data-orientation":a,...i,...o,ref:t})});Ur.displayName=fi;function mi(e){return pi.includes(e)}var Kr=Ur;function Yr(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=Yr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Zr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Yr(e))&&(r&&(r+=" "),r+=t);return r}const Cn="-",hi=e=>{const t=vi(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const i=s.split(Cn);return i[0]===""&&i.length!==1&&i.shift(),qr(i,t)||gi(s)},getConflictingClassGroupIds:(s,i)=>{const l=n[s]||[];return i&&r[s]?[...l,...r[s]]:l}}},qr=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?qr(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(Cn);return(s=t.validators.find(({validator:i})=>i(a)))==null?void 0:s.classGroupId},ur=/^\[(.+)\]$/,gi=e=>{if(ur.test(e)){const t=ur.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},vi=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)cn(n[o],r,o,t);return r},cn=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:dr(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(bi(o)){cn(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,s])=>{cn(s,dr(t,a),n,r)})})},dr=(e,t)=>{let n=e;return t.split(Cn).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},bi=e=>e.isThemeGetter,xi=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(a,s)=>{n.set(a,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let s=n.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return o(a,s),s},set(a,s){n.has(a)?n.set(a,s):o(a,s)}}},ln="!",un=":",wi=un.length,yi=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const a=[];let s=0,i=0,l=0,d;for(let b=0;b<o.length;b++){let h=o[b];if(s===0&&i===0){if(h===un){a.push(o.slice(l,b)),l=b+wi;continue}if(h==="/"){d=b;continue}}h==="["?s++:h==="]"?s--:h==="("?i++:h===")"&&i--}const f=a.length===0?o:o.substring(l),p=Ci(f),m=p!==f,g=d&&d>l?d-l:void 0;return{modifiers:a,hasImportantModifier:m,baseClassName:p,maybePostfixModifierPosition:g}};if(t){const o=t+un,a=r;r=s=>s.startsWith(o)?a(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=a=>n({className:a,parseClassName:o})}return r},Ci=e=>e.endsWith(ln)?e.substring(0,e.length-1):e.startsWith(ln)?e.substring(1):e,Si=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let a=[];return r.forEach(s=>{s[0]==="["||t[s]?(o.push(...a.sort(),s),a=[]):a.push(s)}),o.push(...a.sort()),o}},Ei=e=>({cache:xi(e.cacheSize),parseClassName:yi(e),sortModifiers:Si(e),...hi(e)}),Mi=/\s+/,ki=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],i=e.trim().split(Mi);let l="";for(let d=i.length-1;d>=0;d-=1){const f=i[d],{isExternal:p,modifiers:m,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:h}=n(f);if(p){l=f+(l.length>0?" "+l:l);continue}let v=!!h,x=r(v?b.substring(0,h):b);if(!x){if(!v){l=f+(l.length>0?" "+l:l);continue}if(x=r(b),!x){l=f+(l.length>0?" "+l:l);continue}v=!1}const y=a(m).join(":"),C=g?y+ln:y,S=C+x;if(s.includes(S))continue;s.push(S);const k=o(x,v);for(let T=0;T<k.length;++T){const R=k[T];s.push(C+R)}l=f+(l.length>0?" "+l:l)}return l};function Ri(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Xr(t))&&(r&&(r+=" "),r+=n);return r}const Xr=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Xr(e[r]))&&(n&&(n+=" "),n+=t);return n};function Ai(e,...t){let n,r,o,a=s;function s(l){const d=t.reduce((f,p)=>p(f),e());return n=Ei(d),r=n.cache.get,o=n.cache.set,a=i,i(l)}function i(l){const d=r(l);if(d)return d;const f=ki(l,n);return o(l,f),f}return function(){return a(Ri.apply(null,arguments))}}const te=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Jr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Qr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ni=/^\d+\/\d+$/,_i=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Pi=/\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$/,Ti=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ji=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Oi=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ie=e=>Ni.test(e),L=e=>!!e&&!Number.isNaN(Number(e)),Ee=e=>!!e&&Number.isInteger(Number(e)),Zt=e=>e.endsWith("%")&&L(e.slice(0,-1)),be=e=>_i.test(e),Di=()=>!0,Ii=e=>Pi.test(e)&&!Ti.test(e),eo=()=>!1,Li=e=>ji.test(e),Fi=e=>Oi.test(e),$i=e=>!N(e)&&!_(e),zi=e=>Ue(e,ro,eo),N=e=>Jr.test(e),Pe=e=>Ue(e,oo,Ii),qt=e=>Ue(e,Gi,L),fr=e=>Ue(e,to,eo),Hi=e=>Ue(e,no,Fi),ht=e=>Ue(e,ao,Li),_=e=>Qr.test(e),Qe=e=>Ke(e,oo),Vi=e=>Ke(e,Ui),pr=e=>Ke(e,to),Bi=e=>Ke(e,ro),Wi=e=>Ke(e,no),gt=e=>Ke(e,ao,!0),Ue=(e,t,n)=>{const r=Jr.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ke=(e,t,n=!1)=>{const r=Qr.exec(e);return r?r[1]?t(r[1]):n:!1},to=e=>e==="position"||e==="percentage",no=e=>e==="image"||e==="url",ro=e=>e==="length"||e==="size"||e==="bg-size",oo=e=>e==="length",Gi=e=>e==="number",Ui=e=>e==="family-name",ao=e=>e==="shadow",Ki=()=>{const e=te("color"),t=te("font"),n=te("text"),r=te("font-weight"),o=te("tracking"),a=te("leading"),s=te("breakpoint"),i=te("container"),l=te("spacing"),d=te("radius"),f=te("shadow"),p=te("inset-shadow"),m=te("text-shadow"),g=te("drop-shadow"),b=te("blur"),h=te("perspective"),v=te("aspect"),x=te("ease"),y=te("animate"),C=()=>["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"],k=()=>[...S(),_,N],T=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],M=()=>[_,N,l],I=()=>[Ie,"full","auto",...M()],z=()=>[Ee,"none","subgrid",_,N],K=()=>["auto",{span:["full",Ee,_,N]},Ee,_,N],G=()=>[Ee,"auto",_,N],U=()=>["auto","min","max","fr",_,N],H=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Z=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...M()],B=()=>[Ie,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],E=()=>[e,_,N],P=()=>[...S(),pr,fr,{position:[_,N]}],w=()=>["no-repeat",{repeat:["","x","y","space","round"]}],j=()=>["auto","cover","contain",Bi,zi,{size:[_,N]}],F=()=>[Zt,Qe,Pe],$=()=>["","none","full",d,_,N],Y=()=>["",L,Qe,Pe],ee=()=>["solid","dashed","dotted","double"],oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],W=()=>[L,Zt,pr,fr],X=()=>["","none",b,_,N],J=()=>["none",L,_,N],ae=()=>["none",L,_,N],Se=()=>[L,_,N],_e=()=>[Ie,"full",...M()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[be],breakpoint:[be],color:[Di],container:[be],"drop-shadow":[be],ease:["in","out","in-out"],font:[$i],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[be],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[be],shadow:[be],spacing:["px",L],text:[be],"text-shadow":[be],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ie,N,_,v]}],container:["container"],columns:[{columns:[L,N,_,i]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"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:k()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],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:[Ee,"auto",_,N]}],basis:[{basis:[Ie,"full","auto",i,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[L,Ie,"auto","initial","none",N]}],grow:[{grow:["",L,_,N]}],shrink:[{shrink:["",L,_,N]}],order:[{order:[Ee,"first","last","none",_,N]}],"grid-cols":[{"grid-cols":z()}],"col-start-end":[{col:K()}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":z()}],"row-start-end":[{row:K()}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":U()}],"auto-rows":[{"auto-rows":U()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...H(),"normal"]}],"justify-items":[{"justify-items":[...Z(),"normal"]}],"justify-self":[{"justify-self":["auto",...Z()]}],"align-content":[{content:["normal",...H()]}],"align-items":[{items:[...Z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Z(),{baseline:["","last"]}]}],"place-content":[{"place-content":H()}],"place-items":[{"place-items":[...Z(),"baseline"]}],"place-self":[{"place-self":["auto",...Z()]}],p:[{p:M()}],px:[{px:M()}],py:[{py:M()}],ps:[{ps:M()}],pe:[{pe:M()}],pt:[{pt:M()}],pr:[{pr:M()}],pb:[{pb:M()}],pl:[{pl:M()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:B()}],w:[{w:[i,"screen",...B()]}],"min-w":[{"min-w":[i,"screen","none",...B()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...B()]}],h:[{h:["screen","lh",...B()]}],"min-h":[{"min-h":["screen","lh","none",...B()]}],"max-h":[{"max-h":["screen","lh",...B()]}],"font-size":[{text:["base",n,Qe,Pe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,_,qt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Zt,N]}],"font-family":[{font:[Vi,N,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,_,N]}],"line-clamp":[{"line-clamp":[L,"none",_,qt]}],leading:[{leading:[a,...M()]}],"list-image":[{"list-image":["none",_,N]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",_,N]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:E()}],"text-color":[{text:E()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[L,"from-font","auto",_,Pe]}],"text-decoration-color":[{decoration:E()}],"underline-offset":[{"underline-offset":[L,"auto",_,N]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_,N]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",_,N]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:P()}],"bg-repeat":[{bg:w()}],"bg-size":[{bg:j()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ee,_,N],radial:["",_,N],conic:[Ee,_,N]},Wi,Hi]}],"bg-color":[{bg:E()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"gradient-from":[{from:E()}],"gradient-via":[{via:E()}],"gradient-to":[{to:E()}],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:Y()}],"border-w-x":[{"border-x":Y()}],"border-w-y":[{"border-y":Y()}],"border-w-s":[{"border-s":Y()}],"border-w-e":[{"border-e":Y()}],"border-w-t":[{"border-t":Y()}],"border-w-r":[{"border-r":Y()}],"border-w-b":[{"border-b":Y()}],"border-w-l":[{"border-l":Y()}],"divide-x":[{"divide-x":Y()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Y()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ee(),"hidden","none"]}],"divide-style":[{divide:[...ee(),"hidden","none"]}],"border-color":[{border:E()}],"border-color-x":[{"border-x":E()}],"border-color-y":[{"border-y":E()}],"border-color-s":[{"border-s":E()}],"border-color-e":[{"border-e":E()}],"border-color-t":[{"border-t":E()}],"border-color-r":[{"border-r":E()}],"border-color-b":[{"border-b":E()}],"border-color-l":[{"border-l":E()}],"divide-color":[{divide:E()}],"outline-style":[{outline:[...ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[L,_,N]}],"outline-w":[{outline:["",L,Qe,Pe]}],"outline-color":[{outline:E()}],shadow:[{shadow:["","none",f,gt,ht]}],"shadow-color":[{shadow:E()}],"inset-shadow":[{"inset-shadow":["none",p,gt,ht]}],"inset-shadow-color":[{"inset-shadow":E()}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:E()}],"ring-offset-w":[{"ring-offset":[L,Pe]}],"ring-offset-color":[{"ring-offset":E()}],"inset-ring-w":[{"inset-ring":Y()}],"inset-ring-color":[{"inset-ring":E()}],"text-shadow":[{"text-shadow":["none",m,gt,ht]}],"text-shadow-color":[{"text-shadow":E()}],opacity:[{opacity:[L,_,N]}],"mix-blend":[{"mix-blend":[...oe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":oe()}],"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":[L]}],"mask-image-linear-from-pos":[{"mask-linear-from":W()}],"mask-image-linear-to-pos":[{"mask-linear-to":W()}],"mask-image-linear-from-color":[{"mask-linear-from":E()}],"mask-image-linear-to-color":[{"mask-linear-to":E()}],"mask-image-t-from-pos":[{"mask-t-from":W()}],"mask-image-t-to-pos":[{"mask-t-to":W()}],"mask-image-t-from-color":[{"mask-t-from":E()}],"mask-image-t-to-color":[{"mask-t-to":E()}],"mask-image-r-from-pos":[{"mask-r-from":W()}],"mask-image-r-to-pos":[{"mask-r-to":W()}],"mask-image-r-from-color":[{"mask-r-from":E()}],"mask-image-r-to-color":[{"mask-r-to":E()}],"mask-image-b-from-pos":[{"mask-b-from":W()}],"mask-image-b-to-pos":[{"mask-b-to":W()}],"mask-image-b-from-color":[{"mask-b-from":E()}],"mask-image-b-to-color":[{"mask-b-to":E()}],"mask-image-l-from-pos":[{"mask-l-from":W()}],"mask-image-l-to-pos":[{"mask-l-to":W()}],"mask-image-l-from-color":[{"mask-l-from":E()}],"mask-image-l-to-color":[{"mask-l-to":E()}],"mask-image-x-from-pos":[{"mask-x-from":W()}],"mask-image-x-to-pos":[{"mask-x-to":W()}],"mask-image-x-from-color":[{"mask-x-from":E()}],"mask-image-x-to-color":[{"mask-x-to":E()}],"mask-image-y-from-pos":[{"mask-y-from":W()}],"mask-image-y-to-pos":[{"mask-y-to":W()}],"mask-image-y-from-color":[{"mask-y-from":E()}],"mask-image-y-to-color":[{"mask-y-to":E()}],"mask-image-radial":[{"mask-radial":[_,N]}],"mask-image-radial-from-pos":[{"mask-radial-from":W()}],"mask-image-radial-to-pos":[{"mask-radial-to":W()}],"mask-image-radial-from-color":[{"mask-radial-from":E()}],"mask-image-radial-to-color":[{"mask-radial-to":E()}],"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":[L]}],"mask-image-conic-from-pos":[{"mask-conic-from":W()}],"mask-image-conic-to-pos":[{"mask-conic-to":W()}],"mask-image-conic-from-color":[{"mask-conic-from":E()}],"mask-image-conic-to-color":[{"mask-conic-to":E()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:P()}],"mask-repeat":[{mask:w()}],"mask-size":[{mask:j()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",_,N]}],filter:[{filter:["","none",_,N]}],blur:[{blur:X()}],brightness:[{brightness:[L,_,N]}],contrast:[{contrast:[L,_,N]}],"drop-shadow":[{"drop-shadow":["","none",g,gt,ht]}],"drop-shadow-color":[{"drop-shadow":E()}],grayscale:[{grayscale:["",L,_,N]}],"hue-rotate":[{"hue-rotate":[L,_,N]}],invert:[{invert:["",L,_,N]}],saturate:[{saturate:[L,_,N]}],sepia:[{sepia:["",L,_,N]}],"backdrop-filter":[{"backdrop-filter":["","none",_,N]}],"backdrop-blur":[{"backdrop-blur":X()}],"backdrop-brightness":[{"backdrop-brightness":[L,_,N]}],"backdrop-contrast":[{"backdrop-contrast":[L,_,N]}],"backdrop-grayscale":[{"backdrop-grayscale":["",L,_,N]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[L,_,N]}],"backdrop-invert":[{"backdrop-invert":["",L,_,N]}],"backdrop-opacity":[{"backdrop-opacity":[L,_,N]}],"backdrop-saturate":[{"backdrop-saturate":[L,_,N]}],"backdrop-sepia":[{"backdrop-sepia":["",L,_,N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":M()}],"border-spacing-x":[{"border-spacing-x":M()}],"border-spacing-y":[{"border-spacing-y":M()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",_,N]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[L,"initial",_,N]}],ease:[{ease:["linear","initial",x,_,N]}],delay:[{delay:[L,_,N]}],animate:[{animate:["none",y,_,N]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,_,N]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:J()}],"rotate-x":[{"rotate-x":J()}],"rotate-y":[{"rotate-y":J()}],"rotate-z":[{"rotate-z":J()}],scale:[{scale:ae()}],"scale-x":[{"scale-x":ae()}],"scale-y":[{"scale-y":ae()}],"scale-z":[{"scale-z":ae()}],"scale-3d":["scale-3d"],skew:[{skew:Se()}],"skew-x":[{"skew-x":Se()}],"skew-y":[{"skew-y":Se()}],transform:[{transform:[_,N,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:_e()}],"translate-x":[{"translate-x":_e()}],"translate-y":[{"translate-y":_e()}],"translate-z":[{"translate-z":_e()}],"translate-none":["translate-none"],accent:[{accent:E()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:E()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",_,N]}],"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":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",_,N]}],fill:[{fill:["none",...E()]}],"stroke-w":[{stroke:[L,Qe,Pe,qt]}],stroke:[{stroke:["none",...E()]}],"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"]}},Yi=Ai(Ki);function A(...e){return Yi(Zr(e))}const Ot=u.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>c.jsx(Kr,{ref:o,decorative:n,orientation:t,className:A("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));Ot.displayName=Kr.displayName;const mr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,hr=Zr,Sn=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return hr(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(d=>{const f=n==null?void 0:n[d],p=a==null?void 0:a[d];if(f===null)return null;const m=mr(f)||mr(p);return o[d][m]}),i=n&&Object.entries(n).reduce((d,f)=>{let[p,m]=f;return m===void 0||(d[p]=m),d},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,f)=>{let{class:p,className:m,...g}=f;return Object.entries(g).every(b=>{let[h,v]=b;return Array.isArray(v)?v.includes({...a,...i}[h]):{...a,...i}[h]===v})?[...d,p,m]:d},[]);return hr(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)};/**
|
|
23
23
|
* @license lucide-react v0.522.0 - ISC
|
|
24
24
|
*
|
|
25
25
|
* This source code is licensed under the ISC license.
|
|
26
26
|
* See the LICENSE file in the root directory of this source tree.
|
|
27
|
-
*/const
|
|
27
|
+
*/const Zi=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),qi=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),gr=e=>{const t=qi(e);return t.charAt(0).toUpperCase()+t.slice(1)},so=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Xi=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
|
|
28
28
|
* @license lucide-react v0.522.0 - ISC
|
|
29
29
|
*
|
|
30
30
|
* This source code is licensed under the ISC license.
|
|
31
31
|
* See the LICENSE file in the root directory of this source tree.
|
|
32
|
-
*/var
|
|
32
|
+
*/var Ji={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"};/**
|
|
33
33
|
* @license lucide-react v0.522.0 - ISC
|
|
34
34
|
*
|
|
35
35
|
* This source code is licensed under the ISC license.
|
|
36
36
|
* See the LICENSE file in the root directory of this source tree.
|
|
37
|
-
*/const
|
|
37
|
+
*/const Qi=q.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:s,...i},l)=>q.createElement("svg",{ref:l,...Ji,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:so("lucide",o),...!a&&!Xi(i)&&{"aria-hidden":"true"},...i},[...s.map(([d,f])=>q.createElement(d,f)),...Array.isArray(a)?a:[a]]));/**
|
|
38
38
|
* @license lucide-react v0.522.0 - ISC
|
|
39
39
|
*
|
|
40
40
|
* This source code is licensed under the ISC license.
|
|
41
41
|
* See the LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/const
|
|
42
|
+
*/const V=(e,t)=>{const n=q.forwardRef(({className:r,...o},a)=>q.createElement(Qi,{ref:a,iconNode:t,className:so(`lucide-${Zi(gr(e))}`,`lucide-${e}`,r),...o}));return n.displayName=gr(e),n};/**
|
|
43
43
|
* @license lucide-react v0.522.0 - ISC
|
|
44
44
|
*
|
|
45
45
|
* This source code is licensed under the ISC license.
|
|
46
46
|
* See the LICENSE file in the root directory of this source tree.
|
|
47
|
-
*/const
|
|
47
|
+
*/const ec=[["rect",{width:"13",height:"7",x:"3",y:"3",rx:"1",key:"11xb64"}],["path",{d:"m22 15-3-3 3-3",key:"26chmm"}],["rect",{width:"13",height:"7",x:"3",y:"14",rx:"1",key:"k6ky7n"}]],tc=V("between-horizontal-end",ec);/**
|
|
48
48
|
* @license lucide-react v0.522.0 - ISC
|
|
49
49
|
*
|
|
50
50
|
* This source code is licensed under the ISC license.
|
|
51
51
|
* See the LICENSE file in the root directory of this source tree.
|
|
52
|
-
*/const
|
|
52
|
+
*/const nc=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M16 12h2",key:"7q9ll5"}],["path",{d:"M16 8h2",key:"msurwy"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}],["path",{d:"M6 12h2",key:"32wvfc"}],["path",{d:"M6 8h2",key:"30oboj"}]],rc=V("book-open-text",nc);/**
|
|
53
53
|
* @license lucide-react v0.522.0 - ISC
|
|
54
54
|
*
|
|
55
55
|
* This source code is licensed under the ISC license.
|
|
56
56
|
* See the LICENSE file in the root directory of this source tree.
|
|
57
|
-
*/const
|
|
57
|
+
*/const oc=[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]],ac=V("building-2",oc);/**
|
|
58
58
|
* @license lucide-react v0.522.0 - ISC
|
|
59
59
|
*
|
|
60
60
|
* This source code is licensed under the ISC license.
|
|
61
61
|
* See the LICENSE file in the root directory of this source tree.
|
|
62
|
-
*/const sc=[["path",{d:"
|
|
62
|
+
*/const sc=[["path",{d:"M11 10v4h4",key:"172dkj"}],["path",{d:"m11 14 1.535-1.605a5 5 0 0 1 8 1.5",key:"vu0qm5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"m21 18-1.535 1.605a5 5 0 0 1-8-1.5",key:"1qgeyt"}],["path",{d:"M21 22v-4h-4",key:"hrummi"}],["path",{d:"M21 8.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h4.3",key:"mctw84"}],["path",{d:"M3 10h4",key:"1el30a"}],["path",{d:"M8 2v4",key:"1cmpym"}]],ic=V("calendar-sync",sc);/**
|
|
63
63
|
* @license lucide-react v0.522.0 - ISC
|
|
64
64
|
*
|
|
65
65
|
* This source code is licensed under the ISC license.
|
|
66
66
|
* See the LICENSE file in the root directory of this source tree.
|
|
67
|
-
*/const cc=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"
|
|
67
|
+
*/const cc=[["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"}]],lc=V("chart-area",cc);/**
|
|
68
68
|
* @license lucide-react v0.522.0 - ISC
|
|
69
69
|
*
|
|
70
70
|
* This source code is licensed under the ISC license.
|
|
71
71
|
* See the LICENSE file in the root directory of this source tree.
|
|
72
|
-
*/const
|
|
72
|
+
*/const uc=[["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"}]],dc=V("chart-column",uc);/**
|
|
73
73
|
* @license lucide-react v0.522.0 - ISC
|
|
74
74
|
*
|
|
75
75
|
* This source code is licensed under the ISC license.
|
|
76
76
|
* See the LICENSE file in the root directory of this source tree.
|
|
77
|
-
*/const
|
|
77
|
+
*/const fc=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]],vr=V("chart-line",fc);/**
|
|
78
78
|
* @license lucide-react v0.522.0 - ISC
|
|
79
79
|
*
|
|
80
80
|
* This source code is licensed under the ISC license.
|
|
81
81
|
* See the LICENSE file in the root directory of this source tree.
|
|
82
|
-
*/const pc=[["path",{d:"
|
|
82
|
+
*/const pc=[["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"}]],mc=V("chart-pie",pc);/**
|
|
83
83
|
* @license lucide-react v0.522.0 - ISC
|
|
84
84
|
*
|
|
85
85
|
* This source code is licensed under the ISC license.
|
|
86
86
|
* See the LICENSE file in the root directory of this source tree.
|
|
87
|
-
*/const hc=[["path",{d:"
|
|
87
|
+
*/const hc=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],gc=V("check",hc);/**
|
|
88
88
|
* @license lucide-react v0.522.0 - ISC
|
|
89
89
|
*
|
|
90
90
|
* This source code is licensed under the ISC license.
|
|
91
91
|
* See the LICENSE file in the root directory of this source tree.
|
|
92
|
-
*/const
|
|
92
|
+
*/const vc=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],bc=V("chevron-down",vc);/**
|
|
93
93
|
* @license lucide-react v0.522.0 - ISC
|
|
94
94
|
*
|
|
95
95
|
* This source code is licensed under the ISC license.
|
|
96
96
|
* See the LICENSE file in the root directory of this source tree.
|
|
97
|
-
*/const
|
|
97
|
+
*/const xc=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],io=V("chevron-right",xc);/**
|
|
98
98
|
* @license lucide-react v0.522.0 - ISC
|
|
99
99
|
*
|
|
100
100
|
* This source code is licensed under the ISC license.
|
|
101
101
|
* See the LICENSE file in the root directory of this source tree.
|
|
102
|
-
*/const wc=[["
|
|
102
|
+
*/const wc=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]],yc=V("circle-dollar-sign",wc);/**
|
|
103
103
|
* @license lucide-react v0.522.0 - ISC
|
|
104
104
|
*
|
|
105
105
|
* This source code is licensed under the ISC license.
|
|
106
106
|
* See the LICENSE file in the root directory of this source tree.
|
|
107
|
-
*/const
|
|
107
|
+
*/const Cc=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Sc=V("circle",Cc);/**
|
|
108
108
|
* @license lucide-react v0.522.0 - ISC
|
|
109
109
|
*
|
|
110
110
|
* This source code is licensed under the ISC license.
|
|
111
111
|
* See the LICENSE file in the root directory of this source tree.
|
|
112
|
-
*/const
|
|
112
|
+
*/const Ec=[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M4 20v-7a4 4 0 0 1 4-4h12",key:"1lu4f8"}]],Mc=V("corner-up-right",Ec);/**
|
|
113
113
|
* @license lucide-react v0.522.0 - ISC
|
|
114
114
|
*
|
|
115
115
|
* This source code is licensed under the ISC license.
|
|
116
116
|
* See the LICENSE file in the root directory of this source tree.
|
|
117
|
-
*/const
|
|
117
|
+
*/const kc=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],Rc=V("database",kc);/**
|
|
118
118
|
* @license lucide-react v0.522.0 - ISC
|
|
119
119
|
*
|
|
120
120
|
* This source code is licensed under the ISC license.
|
|
121
121
|
* See the LICENSE file in the root directory of this source tree.
|
|
122
|
-
*/const Mc=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],kc=ne("x",Mc);function uo(){const[e,t]=Z.useState(!1);return Z.useEffect(()=>{const n=()=>{t(window.innerWidth<768)};return n(),window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[]),e}const fo=En("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"}}),Dt=u.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},a)=>{const s=r?We:"button";return c.jsx(s,{className:A(fo({variant:t,size:n,className:e})),ref:a,...o})});Dt.displayName="Button";const Rn=u.forwardRef(({className:e,type:t,...n},r)=>c.jsx("input",{type:t,className:A("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}));Rn.displayName="Input";function j(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 Ac(e,t){const n=u.createContext(t),r=a=>{const{children:s,...i}=a,l=u.useMemo(()=>i,Object.values(i));return c.jsx(n.Provider,{value:l,children:s})};r.displayName=e+"Provider";function o(a){const s=u.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function je(e,t=[]){let n=[];function r(a,s){const i=u.createContext(s),l=n.length;n=[...n,s];const d=p=>{var x;const{scope:m,children:g,...b}=p,h=((x=m==null?void 0:m[e])==null?void 0:x[l])||i,v=u.useMemo(()=>b,Object.values(b));return c.jsx(h.Provider,{value:v,children:g})};d.displayName=a+"Provider";function f(p,m){var h;const g=((h=m==null?void 0:m[e])==null?void 0:h[l])||i,b=u.useContext(g);if(b)return b;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[d,f]}const o=()=>{const a=n.map(s=>u.createContext(s));return function(i){const l=(i==null?void 0:i[e])||a;return u.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,Pc(o,...t)]}function Pc(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=r.reduce((i,{useScope:l,scopeName:d})=>{const p=l(a)[`__scope${d}`];return{...i,...p}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var Me=globalThis!=null&&globalThis.document?u.useLayoutEffect:()=>{},Nc=u[" useId ".trim().toString()]||(()=>{}),_c=0;function xe(e){const[t,n]=u.useState(Nc());return Me(()=>{n(r=>r??String(_c++))},[e]),e||(t?`radix-${t}`:"")}var Tc=u[" useInsertionEffect ".trim().toString()]||Me;function st({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,s]=Oc({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:o;{const f=u.useRef(e!==void 0);u.useEffect(()=>{const p=f.current;p!==i&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=i},[i,r])}const d=u.useCallback(f=>{var p;if(i){const m=jc(f)?f(e):f;m!==e&&((p=s.current)==null||p.call(s,m))}else a(f)},[i,e,a,s]);return[l,d]}function Oc({defaultProp:e,onChange:t}){const[n,r]=u.useState(e),o=u.useRef(n),a=u.useRef(t);return Tc(()=>{a.current=t},[t]),u.useEffect(()=>{var s;o.current!==n&&((s=a.current)==null||s.call(a,n),o.current=n)},[n,o]),[n,r,a]}function jc(e){return typeof e=="function"}function he(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Dc(e,t=globalThis==null?void 0:globalThis.document){const n=he(e);u.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Ic="DismissableLayer",fn="dismissableLayer.update",Lc="dismissableLayer.pointerDownOutside",Fc="dismissableLayer.focusOutside",wr,po=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),It=u.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...l}=e,d=u.useContext(po),[f,p]=u.useState(null),m=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=u.useState({}),b=te(t,k=>p(k)),h=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=h.indexOf(v),y=f?h.indexOf(f):-1,C=d.layersWithOutsidePointerEventsDisabled.size>0,S=y>=x,M=Hc(k=>{const R=k.target,I=[...d.branches].some(z=>z.contains(R));!S||I||(o==null||o(k),s==null||s(k),k.defaultPrevented||i==null||i())},m),T=Vc(k=>{const R=k.target;[...d.branches].some(z=>z.contains(R))||(a==null||a(k),s==null||s(k),k.defaultPrevented||i==null||i())},m);return Dc(k=>{y===d.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&i&&(k.preventDefault(),i()))},m),u.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(wr=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),yr(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=wr)}},[f,m,n,d]),u.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),yr())},[f,d]),u.useEffect(()=>{const k=()=>g({});return document.addEventListener(fn,k),()=>document.removeEventListener(fn,k)},[]),c.jsx(J.div,{...l,ref:b,style:{pointerEvents:C?S?"auto":"none":void 0,...e.style},onFocusCapture:j(e.onFocusCapture,T.onFocusCapture),onBlurCapture:j(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:j(e.onPointerDownCapture,M.onPointerDownCapture)})});It.displayName=Ic;var $c="DismissableLayerBranch",zc=u.forwardRef((e,t)=>{const n=u.useContext(po),r=u.useRef(null),o=te(t,r);return u.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),c.jsx(J.div,{...e,ref:o})});zc.displayName=$c;function Hc(e,t=globalThis==null?void 0:globalThis.document){const n=he(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const a=i=>{if(i.target&&!r.current){let l=function(){mo(Lc,n,d,{discrete:!0})};const d={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Vc(e,t=globalThis==null?void 0:globalThis.document){const n=he(e),r=u.useRef(!1);return u.useEffect(()=>{const o=a=>{a.target&&!r.current&&mo(Fc,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function yr(){const e=new CustomEvent(fn);document.dispatchEvent(e)}function mo(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Ur(o,a):o.dispatchEvent(a)}var Jt="focusScope.autoFocusOnMount",Qt="focusScope.autoFocusOnUnmount",Cr={bubbles:!1,cancelable:!0},Bc="FocusScope",Mn=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,l]=u.useState(null),d=he(o),f=he(a),p=u.useRef(null),m=te(t,h=>l(h)),g=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let h=function(C){if(g.paused||!i)return;const S=C.target;i.contains(S)?p.current=S:Re(p.current,{select:!0})},v=function(C){if(g.paused||!i)return;const S=C.relatedTarget;S!==null&&(i.contains(S)||Re(p.current,{select:!0}))},x=function(C){if(document.activeElement===document.body)for(const M of C)M.removedNodes.length>0&&Re(i)};document.addEventListener("focusin",h),document.addEventListener("focusout",v);const y=new MutationObserver(x);return i&&y.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",v),y.disconnect()}}},[r,i,g.paused]),u.useEffect(()=>{if(i){Er.add(g);const h=document.activeElement;if(!i.contains(h)){const x=new CustomEvent(Jt,Cr);i.addEventListener(Jt,d),i.dispatchEvent(x),x.defaultPrevented||(Gc(Zc(ho(i)),{select:!0}),document.activeElement===h&&Re(i))}return()=>{i.removeEventListener(Jt,d),setTimeout(()=>{const x=new CustomEvent(Qt,Cr);i.addEventListener(Qt,f),i.dispatchEvent(x),x.defaultPrevented||Re(h??document.body,{select:!0}),i.removeEventListener(Qt,f),Er.remove(g)},0)}}},[i,d,f,g]);const b=u.useCallback(h=>{if(!n&&!r||g.paused)return;const v=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,x=document.activeElement;if(v&&x){const y=h.currentTarget,[C,S]=Wc(y);C&&S?!h.shiftKey&&x===S?(h.preventDefault(),n&&Re(C,{select:!0})):h.shiftKey&&x===C&&(h.preventDefault(),n&&Re(S,{select:!0})):x===y&&h.preventDefault()}},[n,r,g.paused]);return c.jsx(J.div,{tabIndex:-1,...s,ref:m,onKeyDown:b})});Mn.displayName=Bc;function Gc(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Re(r,{select:t}),document.activeElement!==n)return}function Wc(e){const t=ho(e),n=Sr(t,e),r=Sr(t.reverse(),e);return[n,r]}function ho(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 Sr(e,t){for(const n of e)if(!Uc(n,{upTo:t}))return n}function Uc(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 Kc(e){return e instanceof HTMLInputElement&&"select"in e}function Re(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Kc(e)&&t&&e.select()}}var Er=Yc();function Yc(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Rr(e,t),e.unshift(t)},remove(t){var n;e=Rr(e,t),(n=e[0])==null||n.resume()}}}function Rr(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Zc(e){return e.filter(t=>t.tagName!=="A")}var Xc="Portal",kn=u.forwardRef((e,t)=>{var i;const{container:n,...r}=e,[o,a]=u.useState(!1);Me(()=>a(!0),[]);const s=n||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?Hr.createPortal(c.jsx(J.div,{...r,ref:t}),s):null});kn.displayName=Xc;function qc(e,t){return u.useReducer((n,r)=>t[n][r]??n,e)}var Ce=e=>{const{present:t,children:n}=e,r=Jc(t),o=typeof n=="function"?n({present:r.isPresent}):u.Children.only(n),a=te(r.ref,Qc(o));return typeof n=="function"||r.isPresent?u.cloneElement(o,{ref:a}):null};Ce.displayName="Presence";function Jc(e){const[t,n]=u.useState(),r=u.useRef(null),o=u.useRef(e),a=u.useRef("none"),s=e?"mounted":"unmounted",[i,l]=qc(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const d=vt(r.current);a.current=i==="mounted"?d:"none"},[i]),Me(()=>{const d=r.current,f=o.current;if(f!==e){const m=a.current,g=vt(d);e?l("MOUNT"):g==="none"||(d==null?void 0:d.display)==="none"?l("UNMOUNT"):l(f&&m!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Me(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,p=g=>{const h=vt(r.current).includes(g.animationName);if(g.target===t&&h&&(l("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},m=g=>{g.target===t&&(a.current=vt(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:u.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function vt(e){return(e==null?void 0:e.animationName)||"none"}function Qc(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 en=0;function go(){u.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Mr()),document.body.insertAdjacentElement("beforeend",e[1]??Mr()),en++,()=>{en===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),en--}},[])}function Mr(){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 fe=function(){return fe=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},fe.apply(this,arguments)};function vo(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 el(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var St="right-scroll-bar-position",Et="width-before-scroll-bar",tl="with-scroll-bars-hidden",nl="--removed-body-scroll-bar-size";function tn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function rl(e,t){var n=Z.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"?u.useLayoutEffect:u.useEffect,kr=new WeakMap;function al(e,t){var n=rl(null,function(r){return e.forEach(function(o){return tn(o,r)})});return ol(function(){var r=kr.get(n);if(r){var o=new Set(r),a=new Set(e),s=n.current;o.forEach(function(i){a.has(i)||tn(i,null)}),a.forEach(function(i){o.has(i)||tn(i,s)})}kr.set(n,e)},[e]),n}function sl(e){return e}function il(e,t){t===void 0&&(t=sl);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var s=t(a,r);return n.push(s),function(){n=n.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(i){return a(i)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var i=n;n=[],i.forEach(a),s=n}var l=function(){var f=s;s=[],f.forEach(a)},d=function(){return Promise.resolve().then(l)};d(),n={push:function(f){s.push(f),d()},filter:function(f){return s=s.filter(f),n}}}};return o}function cl(e){e===void 0&&(e={});var t=il(null);return t.options=fe({async:!0,ssr:!1},e),t}var bo=function(e){var t=e.sideCar,n=vo(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return u.createElement(r,fe({},n))};bo.isSideCarExport=!0;function ll(e,t){return e.useMedium(t),bo}var xo=cl(),nn=function(){},Lt=u.forwardRef(function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:nn,onWheelCapture:nn,onTouchMoveCapture:nn}),o=r[0],a=r[1],s=e.forwardProps,i=e.children,l=e.className,d=e.removeScrollBar,f=e.enabled,p=e.shards,m=e.sideCar,g=e.noRelative,b=e.noIsolation,h=e.inert,v=e.allowPinchZoom,x=e.as,y=x===void 0?"div":x,C=e.gapMode,S=vo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),M=m,T=al([n,t]),k=fe(fe({},S),o);return u.createElement(u.Fragment,null,f&&u.createElement(M,{sideCar:xo,removeScrollBar:d,shards:p,noRelative:g,noIsolation:b,inert:h,setCallbacks:a,allowPinchZoom:!!v,lockRef:n,gapMode:C}),s?u.cloneElement(u.Children.only(i),fe(fe({},k),{ref:T})):u.createElement(y,fe({},k,{className:l,ref:T}),i))});Lt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Lt.classNames={fullWidth:Et,zeroRight:St};var ul=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function dl(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ul();return t&&e.setAttribute("nonce",t),e}function fl(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function pl(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ml=function(){var e=0,t=null;return{add:function(n){e==0&&(t=dl())&&(fl(t,n),pl(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},hl=function(){var e=ml();return function(t,n){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},wo=function(){var e=hl(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},gl={left:0,top:0,right:0,gap:0},rn=function(e){return parseInt(e||"",10)||0},vl=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[rn(n),rn(r),rn(o)]},bl=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return gl;var t=vl(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])}},xl=wo(),ze="data-scroll-locked",wl=function(e,t,n,r){var o=e.left,a=e.top,s=e.right,i=e.gap;return n===void 0&&(n="margin"),`
|
|
123
|
-
|
|
122
|
+
*/const Ac=[["path",{d:"M20 7h-3a2 2 0 0 1-2-2V2",key:"x099mo"}],["path",{d:"M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l4 4v10a2 2 0 0 1-2 2Z",key:"18t6ie"}],["path",{d:"M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8",key:"1nja0z"}]],Nc=V("files",Ac);/**
|
|
123
|
+
* @license lucide-react v0.522.0 - ISC
|
|
124
|
+
*
|
|
125
|
+
* This source code is licensed under the ISC license.
|
|
126
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
127
|
+
*/const _c=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Pc=V("folder",_c);/**
|
|
128
|
+
* @license lucide-react v0.522.0 - ISC
|
|
129
|
+
*
|
|
130
|
+
* This source code is licensed under the ISC license.
|
|
131
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
132
|
+
*/const Tc=[["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"}]],co=V("house",Tc);/**
|
|
133
|
+
* @license lucide-react v0.522.0 - ISC
|
|
134
|
+
*
|
|
135
|
+
* This source code is licensed under the ISC license.
|
|
136
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
137
|
+
*/const jc=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],Oc=V("image",jc);/**
|
|
138
|
+
* @license lucide-react v0.522.0 - ISC
|
|
139
|
+
*
|
|
140
|
+
* This source code is licensed under the ISC license.
|
|
141
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
142
|
+
*/const Dc=[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]],Ic=V("laptop",Dc);/**
|
|
143
|
+
* @license lucide-react v0.522.0 - ISC
|
|
144
|
+
*
|
|
145
|
+
* This source code is licensed under the ISC license.
|
|
146
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
147
|
+
*/const Lc=[["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"}]],Fc=V("log-out",Lc);/**
|
|
148
|
+
* @license lucide-react v0.522.0 - ISC
|
|
149
|
+
*
|
|
150
|
+
* This source code is licensed under the ISC license.
|
|
151
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
152
|
+
*/const $c=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],zc=V("map",$c);/**
|
|
153
|
+
* @license lucide-react v0.522.0 - ISC
|
|
154
|
+
*
|
|
155
|
+
* This source code is licensed under the ISC license.
|
|
156
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
157
|
+
*/const Hc=[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]],Vc=V("menu",Hc);/**
|
|
158
|
+
* @license lucide-react v0.522.0 - ISC
|
|
159
|
+
*
|
|
160
|
+
* This source code is licensed under the ISC license.
|
|
161
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
162
|
+
*/const Bc=[["path",{d:"m14.622 17.897-10.68-2.913",key:"vj2p1u"}],["path",{d:"M18.376 2.622a1 1 0 1 1 3.002 3.002L17.36 9.643a.5.5 0 0 0 0 .707l.944.944a2.41 2.41 0 0 1 0 3.408l-.944.944a.5.5 0 0 1-.707 0L8.354 7.348a.5.5 0 0 1 0-.707l.944-.944a2.41 2.41 0 0 1 3.408 0l.944.944a.5.5 0 0 0 .707 0z",key:"18tc5c"}],["path",{d:"M9 8c-1.804 2.71-3.97 3.46-6.583 3.948a.507.507 0 0 0-.302.819l7.32 8.883a1 1 0 0 0 1.185.204C12.735 20.405 16 16.792 16 15",key:"ytzfxy"}]],Wc=V("paintbrush",Bc);/**
|
|
163
|
+
* @license lucide-react v0.522.0 - ISC
|
|
164
|
+
*
|
|
165
|
+
* This source code is licensed under the ISC license.
|
|
166
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
167
|
+
*/const Gc=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],Uc=V("panel-left",Gc);/**
|
|
168
|
+
* @license lucide-react v0.522.0 - ISC
|
|
169
|
+
*
|
|
170
|
+
* This source code is licensed under the ISC license.
|
|
171
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
172
|
+
*/const Kc=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]],Yc=V("pin",Kc);/**
|
|
173
|
+
* @license lucide-react v0.522.0 - ISC
|
|
174
|
+
*
|
|
175
|
+
* This source code is licensed under the ISC license.
|
|
176
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
177
|
+
*/const Zc=[["path",{d:"m15 5 6.3 6.3a2.4 2.4 0 0 1 0 3.4L17 19",key:"1cbfv1"}],["path",{d:"M9.586 5.586A2 2 0 0 0 8.172 5H3a1 1 0 0 0-1 1v5.172a2 2 0 0 0 .586 1.414L8.29 18.29a2.426 2.426 0 0 0 3.42 0l3.58-3.58a2.426 2.426 0 0 0 0-3.42z",key:"135mg7"}],["circle",{cx:"6.5",cy:"9.5",r:".5",fill:"currentColor",key:"5pm5xn"}]],qc=V("tags",Zc);/**
|
|
178
|
+
* @license lucide-react v0.522.0 - ISC
|
|
179
|
+
*
|
|
180
|
+
* This source code is licensed under the ISC license.
|
|
181
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
182
|
+
*/const Xc=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]],Jc=V("trash",Xc);/**
|
|
183
|
+
* @license lucide-react v0.522.0 - ISC
|
|
184
|
+
*
|
|
185
|
+
* This source code is licensed under the ISC license.
|
|
186
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
187
|
+
*/const Qc=[["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"}]],br=V("user",Qc);/**
|
|
188
|
+
* @license lucide-react v0.522.0 - ISC
|
|
189
|
+
*
|
|
190
|
+
* This source code is licensed under the ISC license.
|
|
191
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
192
|
+
*/const el=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],tl=V("users",el);/**
|
|
193
|
+
* @license lucide-react v0.522.0 - ISC
|
|
194
|
+
*
|
|
195
|
+
* This source code is licensed under the ISC license.
|
|
196
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
197
|
+
*/const nl=[["path",{d:"M18 21V10a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v11",key:"pb2vm6"}],["path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 1.132-1.803l7.95-3.974a2 2 0 0 1 1.837 0l7.948 3.974A2 2 0 0 1 22 8z",key:"doq5xv"}],["path",{d:"M6 13h12",key:"yf64js"}],["path",{d:"M6 17h12",key:"1jwigz"}]],rl=V("warehouse",nl);/**
|
|
198
|
+
* @license lucide-react v0.522.0 - ISC
|
|
199
|
+
*
|
|
200
|
+
* This source code is licensed under the ISC license.
|
|
201
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
202
|
+
*/const ol=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]],al=V("wrench",ol);/**
|
|
203
|
+
* @license lucide-react v0.522.0 - ISC
|
|
204
|
+
*
|
|
205
|
+
* This source code is licensed under the ISC license.
|
|
206
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
207
|
+
*/const sl=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],il=V("x",sl);function lo(){const[e,t]=q.useState(!1);return q.useEffect(()=>{const n=()=>{t(window.innerWidth<768)};return n(),window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[]),e}const uo=Sn("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"}}),Dt=u.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},a)=>{const s=r?Ge:"button";return c.jsx(s,{className:A(uo({variant:t,size:n,className:e})),ref:a,...o})});Dt.displayName="Button";const En=u.forwardRef(({className:e,type:t,...n},r)=>c.jsx("input",{type:t,className:A("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}));En.displayName="Input";function O(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 cl(e,t){const n=u.createContext(t),r=a=>{const{children:s,...i}=a,l=u.useMemo(()=>i,Object.values(i));return c.jsx(n.Provider,{value:l,children:s})};r.displayName=e+"Provider";function o(a){const s=u.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function Oe(e,t=[]){let n=[];function r(a,s){const i=u.createContext(s),l=n.length;n=[...n,s];const d=p=>{var x;const{scope:m,children:g,...b}=p,h=((x=m==null?void 0:m[e])==null?void 0:x[l])||i,v=u.useMemo(()=>b,Object.values(b));return c.jsx(h.Provider,{value:v,children:g})};d.displayName=a+"Provider";function f(p,m){var h;const g=((h=m==null?void 0:m[e])==null?void 0:h[l])||i,b=u.useContext(g);if(b)return b;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[d,f]}const o=()=>{const a=n.map(s=>u.createContext(s));return function(i){const l=(i==null?void 0:i[e])||a;return u.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,ll(o,...t)]}function ll(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=r.reduce((i,{useScope:l,scopeName:d})=>{const p=l(a)[`__scope${d}`];return{...i,...p}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var ke=globalThis!=null&&globalThis.document?u.useLayoutEffect:()=>{},ul=u[" useId ".trim().toString()]||(()=>{}),dl=0;function xe(e){const[t,n]=u.useState(ul());return ke(()=>{n(r=>r??String(dl++))},[e]),e||(t?`radix-${t}`:"")}var fl=u[" useInsertionEffect ".trim().toString()]||ke;function st({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,s]=pl({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:o;{const f=u.useRef(e!==void 0);u.useEffect(()=>{const p=f.current;p!==i&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=i},[i,r])}const d=u.useCallback(f=>{var p;if(i){const m=ml(f)?f(e):f;m!==e&&((p=s.current)==null||p.call(s,m))}else a(f)},[i,e,a,s]);return[l,d]}function pl({defaultProp:e,onChange:t}){const[n,r]=u.useState(e),o=u.useRef(n),a=u.useRef(t);return fl(()=>{a.current=t},[t]),u.useEffect(()=>{var s;o.current!==n&&((s=a.current)==null||s.call(a,n),o.current=n)},[n,o]),[n,r,a]}function ml(e){return typeof e=="function"}function he(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function hl(e,t=globalThis==null?void 0:globalThis.document){const n=he(e);u.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var gl="DismissableLayer",dn="dismissableLayer.update",vl="dismissableLayer.pointerDownOutside",bl="dismissableLayer.focusOutside",xr,fo=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),It=u.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...l}=e,d=u.useContext(fo),[f,p]=u.useState(null),m=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=u.useState({}),b=ne(t,R=>p(R)),h=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=h.indexOf(v),y=f?h.indexOf(f):-1,C=d.layersWithOutsidePointerEventsDisabled.size>0,S=y>=x,k=yl(R=>{const M=R.target,I=[...d.branches].some(z=>z.contains(M));!S||I||(o==null||o(R),s==null||s(R),R.defaultPrevented||i==null||i())},m),T=Cl(R=>{const M=R.target;[...d.branches].some(z=>z.contains(M))||(a==null||a(R),s==null||s(R),R.defaultPrevented||i==null||i())},m);return hl(R=>{y===d.layers.size-1&&(r==null||r(R),!R.defaultPrevented&&i&&(R.preventDefault(),i()))},m),u.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(xr=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),wr(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=xr)}},[f,m,n,d]),u.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),wr())},[f,d]),u.useEffect(()=>{const R=()=>g({});return document.addEventListener(dn,R),()=>document.removeEventListener(dn,R)},[]),c.jsx(Q.div,{...l,ref:b,style:{pointerEvents:C?S?"auto":"none":void 0,...e.style},onFocusCapture:O(e.onFocusCapture,T.onFocusCapture),onBlurCapture:O(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:O(e.onPointerDownCapture,k.onPointerDownCapture)})});It.displayName=gl;var xl="DismissableLayerBranch",wl=u.forwardRef((e,t)=>{const n=u.useContext(fo),r=u.useRef(null),o=ne(t,r);return u.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),c.jsx(Q.div,{...e,ref:o})});wl.displayName=xl;function yl(e,t=globalThis==null?void 0:globalThis.document){const n=he(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const a=i=>{if(i.target&&!r.current){let l=function(){po(vl,n,d,{discrete:!0})};const d={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Cl(e,t=globalThis==null?void 0:globalThis.document){const n=he(e),r=u.useRef(!1);return u.useEffect(()=>{const o=a=>{a.target&&!r.current&&po(bl,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function wr(){const e=new CustomEvent(dn);document.dispatchEvent(e)}function po(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Gr(o,a):o.dispatchEvent(a)}var Xt="focusScope.autoFocusOnMount",Jt="focusScope.autoFocusOnUnmount",yr={bubbles:!1,cancelable:!0},Sl="FocusScope",Mn=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,l]=u.useState(null),d=he(o),f=he(a),p=u.useRef(null),m=ne(t,h=>l(h)),g=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let h=function(C){if(g.paused||!i)return;const S=C.target;i.contains(S)?p.current=S:Me(p.current,{select:!0})},v=function(C){if(g.paused||!i)return;const S=C.relatedTarget;S!==null&&(i.contains(S)||Me(p.current,{select:!0}))},x=function(C){if(document.activeElement===document.body)for(const k of C)k.removedNodes.length>0&&Me(i)};document.addEventListener("focusin",h),document.addEventListener("focusout",v);const y=new MutationObserver(x);return i&&y.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",v),y.disconnect()}}},[r,i,g.paused]),u.useEffect(()=>{if(i){Sr.add(g);const h=document.activeElement;if(!i.contains(h)){const x=new CustomEvent(Xt,yr);i.addEventListener(Xt,d),i.dispatchEvent(x),x.defaultPrevented||(El(Nl(mo(i)),{select:!0}),document.activeElement===h&&Me(i))}return()=>{i.removeEventListener(Xt,d),setTimeout(()=>{const x=new CustomEvent(Jt,yr);i.addEventListener(Jt,f),i.dispatchEvent(x),x.defaultPrevented||Me(h??document.body,{select:!0}),i.removeEventListener(Jt,f),Sr.remove(g)},0)}}},[i,d,f,g]);const b=u.useCallback(h=>{if(!n&&!r||g.paused)return;const v=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,x=document.activeElement;if(v&&x){const y=h.currentTarget,[C,S]=Ml(y);C&&S?!h.shiftKey&&x===S?(h.preventDefault(),n&&Me(C,{select:!0})):h.shiftKey&&x===C&&(h.preventDefault(),n&&Me(S,{select:!0})):x===y&&h.preventDefault()}},[n,r,g.paused]);return c.jsx(Q.div,{tabIndex:-1,...s,ref:m,onKeyDown:b})});Mn.displayName=Sl;function El(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Me(r,{select:t}),document.activeElement!==n)return}function Ml(e){const t=mo(e),n=Cr(t,e),r=Cr(t.reverse(),e);return[n,r]}function mo(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 Cr(e,t){for(const n of e)if(!kl(n,{upTo:t}))return n}function kl(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 Rl(e){return e instanceof HTMLInputElement&&"select"in e}function Me(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Rl(e)&&t&&e.select()}}var Sr=Al();function Al(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Er(e,t),e.unshift(t)},remove(t){var n;e=Er(e,t),(n=e[0])==null||n.resume()}}}function Er(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Nl(e){return e.filter(t=>t.tagName!=="A")}var _l="Portal",kn=u.forwardRef((e,t)=>{var i;const{container:n,...r}=e,[o,a]=u.useState(!1);ke(()=>a(!0),[]);const s=n||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?zr.createPortal(c.jsx(Q.div,{...r,ref:t}),s):null});kn.displayName=_l;function Pl(e,t){return u.useReducer((n,r)=>t[n][r]??n,e)}var Ce=e=>{const{present:t,children:n}=e,r=Tl(t),o=typeof n=="function"?n({present:r.isPresent}):u.Children.only(n),a=ne(r.ref,jl(o));return typeof n=="function"||r.isPresent?u.cloneElement(o,{ref:a}):null};Ce.displayName="Presence";function Tl(e){const[t,n]=u.useState(),r=u.useRef(null),o=u.useRef(e),a=u.useRef("none"),s=e?"mounted":"unmounted",[i,l]=Pl(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const d=vt(r.current);a.current=i==="mounted"?d:"none"},[i]),ke(()=>{const d=r.current,f=o.current;if(f!==e){const m=a.current,g=vt(d);e?l("MOUNT"):g==="none"||(d==null?void 0:d.display)==="none"?l("UNMOUNT"):l(f&&m!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),ke(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,p=g=>{const h=vt(r.current).includes(g.animationName);if(g.target===t&&h&&(l("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},m=g=>{g.target===t&&(a.current=vt(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:u.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function vt(e){return(e==null?void 0:e.animationName)||"none"}function jl(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 Qt=0;function ho(){u.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Mr()),document.body.insertAdjacentElement("beforeend",e[1]??Mr()),Qt++,()=>{Qt===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Qt--}},[])}function Mr(){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 fe=function(){return fe=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},fe.apply(this,arguments)};function go(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 Ol(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var St="right-scroll-bar-position",Et="width-before-scroll-bar",Dl="with-scroll-bars-hidden",Il="--removed-body-scroll-bar-size";function en(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ll(e,t){var n=q.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 Fl=typeof window<"u"?u.useLayoutEffect:u.useEffect,kr=new WeakMap;function $l(e,t){var n=Ll(null,function(r){return e.forEach(function(o){return en(o,r)})});return Fl(function(){var r=kr.get(n);if(r){var o=new Set(r),a=new Set(e),s=n.current;o.forEach(function(i){a.has(i)||en(i,null)}),a.forEach(function(i){o.has(i)||en(i,s)})}kr.set(n,e)},[e]),n}function zl(e){return e}function Hl(e,t){t===void 0&&(t=zl);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var s=t(a,r);return n.push(s),function(){n=n.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(i){return a(i)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var i=n;n=[],i.forEach(a),s=n}var l=function(){var f=s;s=[],f.forEach(a)},d=function(){return Promise.resolve().then(l)};d(),n={push:function(f){s.push(f),d()},filter:function(f){return s=s.filter(f),n}}}};return o}function Vl(e){e===void 0&&(e={});var t=Hl(null);return t.options=fe({async:!0,ssr:!1},e),t}var vo=function(e){var t=e.sideCar,n=go(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return u.createElement(r,fe({},n))};vo.isSideCarExport=!0;function Bl(e,t){return e.useMedium(t),vo}var bo=Vl(),tn=function(){},Lt=u.forwardRef(function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:tn,onWheelCapture:tn,onTouchMoveCapture:tn}),o=r[0],a=r[1],s=e.forwardProps,i=e.children,l=e.className,d=e.removeScrollBar,f=e.enabled,p=e.shards,m=e.sideCar,g=e.noRelative,b=e.noIsolation,h=e.inert,v=e.allowPinchZoom,x=e.as,y=x===void 0?"div":x,C=e.gapMode,S=go(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=m,T=$l([n,t]),R=fe(fe({},S),o);return u.createElement(u.Fragment,null,f&&u.createElement(k,{sideCar:bo,removeScrollBar:d,shards:p,noRelative:g,noIsolation:b,inert:h,setCallbacks:a,allowPinchZoom:!!v,lockRef:n,gapMode:C}),s?u.cloneElement(u.Children.only(i),fe(fe({},R),{ref:T})):u.createElement(y,fe({},R,{className:l,ref:T}),i))});Lt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Lt.classNames={fullWidth:Et,zeroRight:St};var Wl=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Gl(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Wl();return t&&e.setAttribute("nonce",t),e}function Ul(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Kl(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Yl=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Gl())&&(Ul(t,n),Kl(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Zl=function(){var e=Yl();return function(t,n){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},xo=function(){var e=Zl(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},ql={left:0,top:0,right:0,gap:0},nn=function(e){return parseInt(e||"",10)||0},Xl=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[nn(n),nn(r),nn(o)]},Jl=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ql;var t=Xl(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])}},Ql=xo(),ze="data-scroll-locked",eu=function(e,t,n,r){var o=e.left,a=e.top,s=e.right,i=e.gap;return n===void 0&&(n="margin"),`
|
|
208
|
+
.`.concat(Dl,` {
|
|
124
209
|
overflow: hidden `).concat(r,`;
|
|
125
210
|
padding-right: `).concat(i,"px ").concat(r,`;
|
|
126
211
|
}
|
|
@@ -154,13 +239,13 @@ React keys must be passed directly to JSX without using spread:
|
|
|
154
239
|
}
|
|
155
240
|
|
|
156
241
|
body[`).concat(ze,`] {
|
|
157
|
-
`).concat(
|
|
242
|
+
`).concat(Il,": ").concat(i,`px;
|
|
158
243
|
}
|
|
159
|
-
`)},
|
|
244
|
+
`)},Rr=function(){var e=parseInt(document.body.getAttribute(ze)||"0",10);return isFinite(e)?e:0},tu=function(){u.useEffect(function(){return document.body.setAttribute(ze,(Rr()+1).toString()),function(){var e=Rr()-1;e<=0?document.body.removeAttribute(ze):document.body.setAttribute(ze,e.toString())}},[])},nu=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;tu();var a=u.useMemo(function(){return Jl(o)},[o]);return u.createElement(Ql,{styles:eu(a,!t,o,n?"":"!important")})},fn=!1;if(typeof window<"u")try{var bt=Object.defineProperty({},"passive",{get:function(){return fn=!0,!0}});window.addEventListener("test",bt,bt),window.removeEventListener("test",bt,bt)}catch{fn=!1}var Le=fn?{passive:!1}:!1,ru=function(e){return e.tagName==="TEXTAREA"},wo=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!ru(e)&&n[t]==="visible")},ou=function(e){return wo(e,"overflowY")},au=function(e){return wo(e,"overflowX")},Ar=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=yo(e,r);if(o){var a=Co(e,r),s=a[1],i=a[2];if(s>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},su=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},iu=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},yo=function(e,t){return e==="v"?ou(t):au(t)},Co=function(e,t){return e==="v"?su(t):iu(t)},cu=function(e,t){return e==="h"&&t==="rtl"?-1:1},lu=function(e,t,n,r,o){var a=cu(e,window.getComputedStyle(t).direction),s=a*r,i=n.target,l=t.contains(i),d=!1,f=s>0,p=0,m=0;do{if(!i)break;var g=Co(e,i),b=g[0],h=g[1],v=g[2],x=h-v-a*b;(b||x)&&yo(e,i)&&(p+=x,m+=b);var y=i.parentNode;i=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!l&&i!==document.body||l&&(t.contains(i)||t===i));return(f&&Math.abs(p)<1||!f&&Math.abs(m)<1)&&(d=!0),d},xt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Nr=function(e){return[e.deltaX,e.deltaY]},_r=function(e){return e&&"current"in e?e.current:e},uu=function(e,t){return e[0]===t[0]&&e[1]===t[1]},du=function(e){return`
|
|
160
245
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
161
246
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
162
|
-
`)},
|
|
247
|
+
`)},fu=0,Fe=[];function pu(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),o=u.useState(fu++)[0],a=u.useState(xo)[0],s=u.useRef(e);u.useEffect(function(){s.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=Ol([e.lockRef.current],(e.shards||[]).map(_r),!0).filter(Boolean);return h.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=u.useCallback(function(h,v){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!s.current.allowPinchZoom;var x=xt(h),y=n.current,C="deltaX"in h?h.deltaX:y[0]-x[0],S="deltaY"in h?h.deltaY:y[1]-x[1],k,T=h.target,R=Math.abs(C)>Math.abs(S)?"h":"v";if("touches"in h&&R==="h"&&T.type==="range")return!1;var M=Ar(R,T);if(!M)return!0;if(M?k=R:(k=R==="v"?"h":"v",M=Ar(R,T)),!M)return!1;if(!r.current&&"changedTouches"in h&&(C||S)&&(r.current=k),!k)return!0;var I=r.current||k;return lu(I,v,h,I==="h"?C:S)},[]),l=u.useCallback(function(h){var v=h;if(!(!Fe.length||Fe[Fe.length-1]!==a)){var x="deltaY"in v?Nr(v):xt(v),y=t.current.filter(function(k){return k.name===v.type&&(k.target===v.target||v.target===k.shadowParent)&&uu(k.delta,x)})[0];if(y&&y.should){v.cancelable&&v.preventDefault();return}if(!y){var C=(s.current.shards||[]).map(_r).filter(Boolean).filter(function(k){return k.contains(v.target)}),S=C.length>0?i(v,C[0]):!s.current.noIsolation;S&&v.cancelable&&v.preventDefault()}}},[]),d=u.useCallback(function(h,v,x,y){var C={name:h,delta:v,target:x,should:y,shadowParent:mu(x)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(S){return S!==C})},1)},[]),f=u.useCallback(function(h){n.current=xt(h),r.current=void 0},[]),p=u.useCallback(function(h){d(h.type,Nr(h),h.target,i(h,e.lockRef.current))},[]),m=u.useCallback(function(h){d(h.type,xt(h),h.target,i(h,e.lockRef.current))},[]);u.useEffect(function(){return Fe.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",l,Le),document.addEventListener("touchmove",l,Le),document.addEventListener("touchstart",f,Le),function(){Fe=Fe.filter(function(h){return h!==a}),document.removeEventListener("wheel",l,Le),document.removeEventListener("touchmove",l,Le),document.removeEventListener("touchstart",f,Le)}},[]);var g=e.removeScrollBar,b=e.inert;return u.createElement(u.Fragment,null,b?u.createElement(a,{styles:du(o)}):null,g?u.createElement(nu,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function mu(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const hu=Bl(bo,pu);var Rn=u.forwardRef(function(e,t){return u.createElement(Lt,fe({},e,{ref:t,sideCar:hu}))});Rn.classNames=Lt.classNames;var gu=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},$e=new WeakMap,wt=new WeakMap,yt={},rn=0,So=function(e){return e&&(e.host||So(e.parentNode))},vu=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=So(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})},bu=function(e,t,n,r){var o=vu(t,Array.isArray(e)?e:[e]);yt[n]||(yt[n]=new WeakMap);var a=yt[n],s=[],i=new Set,l=new Set(o),d=function(p){!p||i.has(p)||(i.add(p),d(p.parentNode))};o.forEach(d);var f=function(p){!p||l.has(p)||Array.prototype.forEach.call(p.children,function(m){if(i.has(m))f(m);else try{var g=m.getAttribute(r),b=g!==null&&g!=="false",h=($e.get(m)||0)+1,v=(a.get(m)||0)+1;$e.set(m,h),a.set(m,v),s.push(m),h===1&&b&&wt.set(m,!0),v===1&&m.setAttribute(n,"true"),b||m.setAttribute(r,"true")}catch(x){console.error("aria-hidden: cannot operate on ",m,x)}})};return f(t),i.clear(),rn++,function(){s.forEach(function(p){var m=$e.get(p)-1,g=a.get(p)-1;$e.set(p,m),a.set(p,g),m||(wt.has(p)||p.removeAttribute(r),wt.delete(p)),g||p.removeAttribute(n)}),rn--,rn||($e=new WeakMap,$e=new WeakMap,wt=new WeakMap,yt={})}},Eo=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=gu(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),bu(r,o,n,"aria-hidden")):function(){return null}},Ft="Dialog",[Mo,R0]=Oe(Ft),[xu,de]=Mo(Ft),ko=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,i=u.useRef(null),l=u.useRef(null),[d,f]=st({prop:r,defaultProp:o??!1,onChange:a,caller:Ft});return c.jsx(xu,{scope:t,triggerRef:i,contentRef:l,contentId:xe(),titleId:xe(),descriptionId:xe(),open:d,onOpenChange:f,onOpenToggle:u.useCallback(()=>f(p=>!p),[f]),modal:s,children:n})};ko.displayName=Ft;var Ro="DialogTrigger",Ao=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=de(Ro,n),a=ne(t,o.triggerRef);return c.jsx(Q.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":_n(o.open),...r,ref:a,onClick:O(e.onClick,o.onOpenToggle)})});Ao.displayName=Ro;var An="DialogPortal",[wu,No]=Mo(An,{forceMount:void 0}),_o=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=de(An,t);return c.jsx(wu,{scope:t,forceMount:n,children:u.Children.map(r,s=>c.jsx(Ce,{present:n||a.open,children:c.jsx(kn,{asChild:!0,container:o,children:s})}))})};_o.displayName=An;var kt="DialogOverlay",Po=u.forwardRef((e,t)=>{const n=No(kt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=de(kt,e.__scopeDialog);return a.modal?c.jsx(Ce,{present:r||a.open,children:c.jsx(Cu,{...o,ref:t})}):null});Po.displayName=kt;var yu=Ve("DialogOverlay.RemoveScroll"),Cu=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=de(kt,n);return c.jsx(Rn,{as:yu,allowPinchZoom:!0,shards:[o.contentRef],children:c.jsx(Q.div,{"data-state":_n(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Te="DialogContent",To=u.forwardRef((e,t)=>{const n=No(Te,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=de(Te,e.__scopeDialog);return c.jsx(Ce,{present:r||a.open,children:a.modal?c.jsx(Su,{...o,ref:t}):c.jsx(Eu,{...o,ref:t})})});To.displayName=Te;var Su=u.forwardRef((e,t)=>{const n=de(Te,e.__scopeDialog),r=u.useRef(null),o=ne(t,n.contentRef,r);return u.useEffect(()=>{const a=r.current;if(a)return Eo(a)},[]),c.jsx(jo,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:O(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:O(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&a.preventDefault()}),onFocusOutside:O(e.onFocusOutside,a=>a.preventDefault())})}),Eu=u.forwardRef((e,t)=>{const n=de(Te,e.__scopeDialog),r=u.useRef(!1),o=u.useRef(!1);return c.jsx(jo,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(r.current||(i=n.triggerRef.current)==null||i.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var l,d;(l=e.onInteractOutside)==null||l.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((d=n.triggerRef.current)==null?void 0:d.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),jo=u.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,i=de(Te,n),l=u.useRef(null),d=ne(t,l);return ho(),c.jsxs(c.Fragment,{children:[c.jsx(Mn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:c.jsx(It,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":_n(i.open),...s,ref:d,onDismiss:()=>i.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx(Mu,{titleId:i.titleId}),c.jsx(Ru,{contentRef:l,descriptionId:i.descriptionId})]})]})}),Nn="DialogTitle",Oo=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=de(Nn,n);return c.jsx(Q.h2,{id:o.titleId,...r,ref:t})});Oo.displayName=Nn;var Do="DialogDescription",Io=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=de(Do,n);return c.jsx(Q.p,{id:o.descriptionId,...r,ref:t})});Io.displayName=Do;var Lo="DialogClose",Fo=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=de(Lo,n);return c.jsx(Q.button,{type:"button",...r,ref:t,onClick:O(e.onClick,()=>o.onOpenChange(!1))})});Fo.displayName=Lo;function _n(e){return e?"open":"closed"}var $o="DialogTitleWarning",[A0,zo]=cl($o,{contentName:Te,titleName:Nn,docsSlug:"dialog"}),Mu=({titleId:e})=>{const t=zo($o),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
163
248
|
|
|
164
249
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
165
250
|
|
|
166
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return u.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Ul="DialogDescriptionWarning",Kl=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ho(Ul).contentName}}.`;return u.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Yl=ko,Zl=Po,Xl=_o,Vo=To,Bo=Oo,Go=Do,Wo=Lo,Uo=$o;const Ko=Yl,ql=Zl,Jl=Uo,Yo=Xl,Tn=u.forwardRef(({className:e,...t},n)=>c.jsx(Vo,{className:A("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}));Tn.displayName=Vo.displayName;const Ql=En("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"}}),On=u.forwardRef(({side:e="right",className:t,children:n,...r},o)=>c.jsxs(Yo,{children:[c.jsx(Tn,{}),c.jsxs(Bo,{ref:o,className:A(Ql({side:e}),t),...r,children:[n,c.jsxs(Uo,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[c.jsx(kc,{className:"h-4 w-4"}),c.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));On.displayName=Bo.displayName;const jn=({className:e,...t})=>c.jsx("div",{className:A("flex flex-col space-y-2 text-center sm:text-left",e),...t});jn.displayName="SheetHeader";const Zo=({className:e,...t})=>c.jsx("div",{className:A("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Zo.displayName="SheetFooter";const Dn=u.forwardRef(({className:e,...t},n)=>c.jsx(Go,{ref:n,className:A("text-lg font-semibold text-foreground",e),...t}));Dn.displayName=Go.displayName;const In=u.forwardRef(({className:e,...t},n)=>c.jsx(Wo,{ref:n,className:A("text-sm text-muted-foreground",e),...t}));In.displayName=Wo.displayName;function mn({className:e,...t}){return c.jsx("div",{className:A("animate-pulse rounded-md bg-muted",e),...t})}const eu=["top","right","bottom","left"],ke=Math.min,se=Math.max,kt=Math.round,Ct=Math.floor,me=e=>({x:e,y:e}),tu={left:"right",right:"left",bottom:"top",top:"bottom"},nu={start:"end",end:"start"};function hn(e,t,n){return se(e,ke(t,n))}function we(e,t){return typeof e=="function"?e(t):e}function ye(e){return e.split("-")[0]}function Ye(e){return e.split("-")[1]}function Ln(e){return e==="x"?"y":"x"}function Fn(e){return e==="y"?"height":"width"}function pe(e){return["top","bottom"].includes(ye(e))?"y":"x"}function $n(e){return Ln(pe(e))}function ru(e,t,n){n===void 0&&(n=!1);const r=Ye(e),o=$n(e),a=Fn(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=At(s)),[s,At(s)]}function ou(e){const t=At(e);return[gn(e),t,gn(t)]}function gn(e){return e.replace(/start|end/g,t=>nu[t])}function au(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:s;default:return[]}}function su(e,t,n,r){const o=Ye(e);let a=au(ye(e),n==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(gn)))),a}function At(e){return e.replace(/left|right|bottom|top/g,t=>tu[t])}function iu(e){return{top:0,right:0,bottom:0,left:0,...e}}function Xo(e){return typeof e!="number"?iu(e):{top:e,right:e,bottom:e,left:e}}function Pt(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 Tr(e,t,n){let{reference:r,floating:o}=e;const a=pe(t),s=$n(t),i=Fn(s),l=ye(t),d=a==="y",f=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,m=r[i]/2-o[i]/2;let g;switch(l){case"top":g={x:f,y:r.y-o.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:p};break;case"left":g={x:r.x-o.width,y:p};break;default:g={x:r.x,y:r.y}}switch(Ye(t)){case"start":g[s]-=m*(n&&d?-1:1);break;case"end":g[s]+=m*(n&&d?-1:1);break}return g}const cu=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,i=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=Tr(d,r,l),m=r,g={},b=0;for(let h=0;h<i.length;h++){const{name:v,fn:x}=i[h],{x:y,y:C,data:S,reset:M}=await x({x:f,y:p,initialPlacement:r,placement:m,strategy:o,middlewareData:g,rects:d,platform:s,elements:{reference:e,floating:t}});f=y??f,p=C??p,g={...g,[v]:{...g[v],...S}},M&&b<=50&&(b++,typeof M=="object"&&(M.placement&&(m=M.placement),M.rects&&(d=M.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):M.rects),{x:f,y:p}=Tr(d,m,l)),h=-1)}return{x:f,y:p,placement:m,strategy:o,middlewareData:g}};async function tt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:s,elements:i,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:m=!1,padding:g=0}=we(t,e),b=Xo(g),v=i[m?p==="floating"?"reference":"floating":p],x=Pt(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(v)))==null||n?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:d,rootBoundary:f,strategy:l})),y=p==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),S=await(a.isElement==null?void 0:a.isElement(C))?await(a.getScale==null?void 0:a.getScale(C))||{x:1,y:1}:{x:1,y:1},M=Pt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:y,offsetParent:C,strategy:l}):y);return{top:(x.top-M.top+b.top)/S.y,bottom:(M.bottom-x.bottom+b.bottom)/S.y,left:(x.left-M.left+b.left)/S.x,right:(M.right-x.right+b.right)/S.x}}const lu=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:i,middlewareData:l}=t,{element:d,padding:f=0}=we(e,t)||{};if(d==null)return{};const p=Xo(f),m={x:n,y:r},g=$n(o),b=Fn(g),h=await s.getDimensions(d),v=g==="y",x=v?"top":"left",y=v?"bottom":"right",C=v?"clientHeight":"clientWidth",S=a.reference[b]+a.reference[g]-m[g]-a.floating[b],M=m[g]-a.reference[g],T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let k=T?T[C]:0;(!k||!await(s.isElement==null?void 0:s.isElement(T)))&&(k=i.floating[C]||a.floating[b]);const R=S/2-M/2,I=k/2-h[b]/2-1,z=ke(p[x],I),U=ke(p[y],I),G=z,W=k-h[b]-U,H=k/2-h[b]/2+R,Y=hn(G,H,W),D=!l.arrow&&Ye(o)!=null&&H!==Y&&a.reference[b]/2-(H<G?z:U)-h[b]/2<0,V=D?H<G?H-G:H-W:0;return{[g]:m[g]+V,data:{[g]:Y,centerOffset:H-Y-V,...D&&{alignmentOffset:V}},reset:D}}}),uu=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:l,elements:d}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:h=!0,...v}=we(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const x=ye(o),y=pe(i),C=ye(i)===i,S=await(l.isRTL==null?void 0:l.isRTL(d.floating)),M=m||(C||!h?[At(i)]:ou(i)),T=b!=="none";!m&&T&&M.push(...su(i,h,b,S));const k=[i,...M],R=await tt(t,v),I=[];let z=((r=a.flip)==null?void 0:r.overflows)||[];if(f&&I.push(R[x]),p){const H=ru(o,s,S);I.push(R[H[0]],R[H[1]])}if(z=[...z,{placement:o,overflows:I}],!I.every(H=>H<=0)){var U,G;const H=(((U=a.flip)==null?void 0:U.index)||0)+1,Y=k[H];if(Y&&(!(p==="alignment"?y!==pe(Y):!1)||z.every(E=>E.overflows[0]>0&&pe(E.placement)===y)))return{data:{index:H,overflows:z},reset:{placement:Y}};let D=(G=z.filter(V=>V.overflows[0]<=0).sort((V,E)=>V.overflows[1]-E.overflows[1])[0])==null?void 0:G.placement;if(!D)switch(g){case"bestFit":{var W;const V=(W=z.filter(E=>{if(T){const _=pe(E.placement);return _===y||_==="y"}return!0}).map(E=>[E.placement,E.overflows.filter(_=>_>0).reduce((_,w)=>_+w,0)]).sort((E,_)=>E[1]-_[1])[0])==null?void 0:W[0];V&&(D=V);break}case"initialPlacement":D=i;break}if(o!==D)return{reset:{placement:D}}}return{}}}};function Or(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function jr(e){return eu.some(t=>e[t]>=0)}const du=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=we(e,t);switch(r){case"referenceHidden":{const a=await tt(t,{...o,elementContext:"reference"}),s=Or(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:jr(s)}}}case"escaped":{const a=await tt(t,{...o,altBoundary:!0}),s=Or(a,n.floating);return{data:{escapedOffsets:s,escaped:jr(s)}}}default:return{}}}}};async function fu(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=ye(n),i=Ye(n),l=pe(n)==="y",d=["left","top"].includes(s)?-1:1,f=a&&l?-1:1,p=we(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return i&&typeof b=="number"&&(g=i==="end"?b*-1:b),l?{x:g*f,y:m*d}:{x:m*d,y:g*f}}const pu=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:s,middlewareData:i}=t,l=await fu(t,e);return s===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:s}}}}},mu=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:v=>{let{x,y}=v;return{x,y}}},...l}=we(e,t),d={x:n,y:r},f=await tt(t,l),p=pe(ye(o)),m=Ln(p);let g=d[m],b=d[p];if(a){const v=m==="y"?"top":"left",x=m==="y"?"bottom":"right",y=g+f[v],C=g-f[x];g=hn(y,g,C)}if(s){const v=p==="y"?"top":"left",x=p==="y"?"bottom":"right",y=b+f[v],C=b-f[x];b=hn(y,b,C)}const h=i.fn({...t,[m]:g,[p]:b});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[m]:a,[p]:s}}}}}},hu=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:l=!0,crossAxis:d=!0}=we(e,t),f={x:n,y:r},p=pe(o),m=Ln(p);let g=f[m],b=f[p];const h=we(i,t),v=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const C=m==="y"?"height":"width",S=a.reference[m]-a.floating[C]+v.mainAxis,M=a.reference[m]+a.reference[C]-v.mainAxis;g<S?g=S:g>M&&(g=M)}if(d){var x,y;const C=m==="y"?"width":"height",S=["top","left"].includes(ye(o)),M=a.reference[p]-a.floating[C]+(S&&((x=s.offset)==null?void 0:x[p])||0)+(S?0:v.crossAxis),T=a.reference[p]+a.reference[C]+(S?0:((y=s.offset)==null?void 0:y[p])||0)-(S?v.crossAxis:0);b<M?b=M:b>T&&(b=T)}return{[m]:g,[p]:b}}}},gu=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:s,elements:i}=t,{apply:l=()=>{},...d}=we(e,t),f=await tt(t,d),p=ye(o),m=Ye(o),g=pe(o)==="y",{width:b,height:h}=a.floating;let v,x;p==="top"||p==="bottom"?(v=p,x=m===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(x=p,v=m==="end"?"top":"bottom");const y=h-f.top-f.bottom,C=b-f.left-f.right,S=ke(h-f[v],y),M=ke(b-f[x],C),T=!t.middlewareData.shift;let k=S,R=M;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=y),T&&!m){const z=se(f.left,0),U=se(f.right,0),G=se(f.top,0),W=se(f.bottom,0);g?R=b-2*(z!==0||U!==0?z+U:se(f.left,f.right)):k=h-2*(G!==0||W!==0?G+W:se(f.top,f.bottom))}await l({...t,availableWidth:R,availableHeight:k});const I=await s.getDimensions(i.floating);return b!==I.width||h!==I.height?{reset:{rects:!0}}:{}}}};function $t(){return typeof window<"u"}function Ze(e){return qo(e)?(e.nodeName||"").toLowerCase():"#document"}function ie(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ve(e){var t;return(t=(qo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function qo(e){return $t()?e instanceof Node||e instanceof ie(e).Node:!1}function le(e){return $t()?e instanceof Element||e instanceof ie(e).Element:!1}function ge(e){return $t()?e instanceof HTMLElement||e instanceof ie(e).HTMLElement:!1}function Dr(e){return!$t()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ie(e).ShadowRoot}function it(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ue(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function vu(e){return["table","td","th"].includes(Ze(e))}function zt(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function zn(e){const t=Hn(),n=le(e)?ue(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=Ae(e);for(;ge(t)&&!Be(t);){if(zn(t))return t;if(zt(t))return null;t=Ae(t)}return null}function Hn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Be(e){return["html","body","#document"].includes(Ze(e))}function ue(e){return ie(e).getComputedStyle(e)}function Ht(e){return le(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ae(e){if(Ze(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Dr(e)&&e.host||ve(e);return Dr(t)?t.host:t}function Jo(e){const t=Ae(e);return Be(t)?e.ownerDocument?e.ownerDocument.body:e.body:ge(t)&&it(t)?t:Jo(t)}function nt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Jo(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),s=ie(o);if(a){const i=vn(s);return t.concat(s,s.visualViewport||[],it(o)?o:[],i&&n?nt(i):[])}return t.concat(o,nt(o,[],n))}function vn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Qo(e){const t=ue(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ge(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:r,i=kt(n)!==a||kt(r)!==s;return i&&(n=a,r=s),{width:n,height:r,$:i}}function Vn(e){return le(e)?e:e.contextElement}function He(e){const t=Vn(e);if(!ge(t))return me(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Qo(t);let s=(a?kt(n.width):n.width)/r,i=(a?kt(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const xu=me(0);function ea(e){const t=ie(e);return!Hn()||!t.visualViewport?xu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wu(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ie(e)?!1:t}function Oe(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Vn(e);let s=me(1);t&&(r?le(r)&&(s=He(r)):s=He(e));const i=wu(a,n,r)?ea(a):me(0);let l=(o.left+i.x)/s.x,d=(o.top+i.y)/s.y,f=o.width/s.x,p=o.height/s.y;if(a){const m=ie(a),g=r&&le(r)?ie(r):r;let b=m,h=vn(b);for(;h&&r&&g!==b;){const v=He(h),x=h.getBoundingClientRect(),y=ue(h),C=x.left+(h.clientLeft+parseFloat(y.paddingLeft))*v.x,S=x.top+(h.clientTop+parseFloat(y.paddingTop))*v.y;l*=v.x,d*=v.y,f*=v.x,p*=v.y,l+=C,d+=S,b=ie(h),h=vn(b)}}return Pt({width:f,height:p,x:l,y:d})}function Bn(e,t){const n=Ht(e).scrollLeft;return t?t.left+n:Oe(ve(e)).left+n}function ta(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Bn(e,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function yu(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",s=ve(r),i=t?zt(t.floating):!1;if(r===s||i&&a)return n;let l={scrollLeft:0,scrollTop:0},d=me(1);const f=me(0),p=ge(r);if((p||!p&&!a)&&((Ze(r)!=="body"||it(s))&&(l=Ht(r)),ge(r))){const g=Oe(r);d=He(r),f.x=g.x+r.clientLeft,f.y=g.y+r.clientTop}const m=s&&!p&&!a?ta(s,l,!0):me(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-l.scrollLeft*d.x+f.x+m.x,y:n.y*d.y-l.scrollTop*d.y+f.y+m.y}}function Cu(e){return Array.from(e.getClientRects())}function Su(e){const t=ve(e),n=Ht(e),r=e.ownerDocument.body,o=se(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=se(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Bn(e);const i=-n.scrollTop;return ue(r).direction==="rtl"&&(s+=se(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:i}}function Eu(e,t){const n=ie(e),r=ve(e),o=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,i=0,l=0;if(o){a=o.width,s=o.height;const d=Hn();(!d||d&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:i,y:l}}function Ru(e,t){const n=Oe(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=ge(e)?He(e):me(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,l=o*a.x,d=r*a.y;return{width:s,height:i,x:l,y:d}}function Ir(e,t,n){let r;if(t==="viewport")r=Eu(e,n);else if(t==="document")r=Su(ve(e));else if(le(t))r=Ru(t,n);else{const o=ea(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Pt(r)}function na(e,t){const n=Ae(e);return n===t||!le(n)||Be(n)?!1:ue(n).position==="fixed"||na(n,t)}function Mu(e,t){const n=t.get(e);if(n)return n;let r=nt(e,[],!1).filter(i=>le(i)&&Ze(i)!=="body"),o=null;const a=ue(e).position==="fixed";let s=a?Ae(e):e;for(;le(s)&&!Be(s);){const i=ue(s),l=zn(s);!l&&i.position==="fixed"&&(o=null),(a?!l&&!o:!l&&i.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||it(s)&&!l&&na(e,s))?r=r.filter(f=>f!==s):o=i,s=Ae(s)}return t.set(e,r),r}function ku(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?zt(t)?[]:Mu(t,this._c):[].concat(n),r],i=s[0],l=s.reduce((d,f)=>{const p=Ir(t,f,o);return d.top=se(p.top,d.top),d.right=ke(p.right,d.right),d.bottom=ke(p.bottom,d.bottom),d.left=se(p.left,d.left),d},Ir(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Au(e){const{width:t,height:n}=Qo(e);return{width:t,height:n}}function Pu(e,t,n){const r=ge(t),o=ve(t),a=n==="fixed",s=Oe(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const l=me(0);function d(){l.x=Bn(o)}if(r||!r&&!a)if((Ze(t)!=="body"||it(o))&&(i=Ht(t)),r){const g=Oe(t,!0,a,t);l.x=g.x+t.clientLeft,l.y=g.y+t.clientTop}else o&&d();a&&!r&&o&&d();const f=o&&!r&&!a?ta(o,i):me(0),p=s.left+i.scrollLeft-l.x-f.x,m=s.top+i.scrollTop-l.y-f.y;return{x:p,y:m,width:s.width,height:s.height}}function an(e){return ue(e).position==="static"}function Lr(e,t){if(!ge(e)||ue(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ve(e)===n&&(n=n.ownerDocument.body),n}function ra(e,t){const n=ie(e);if(zt(e))return n;if(!ge(e)){let o=Ae(e);for(;o&&!Be(o);){if(le(o)&&!an(o))return o;o=Ae(o)}return n}let r=Lr(e,t);for(;r&&vu(r)&&an(r);)r=Lr(r,t);return r&&Be(r)&&an(r)&&!zn(r)?n:r||bu(e)||n}const Nu=async function(e){const t=this.getOffsetParent||ra,n=this.getDimensions,r=await n(e.floating);return{reference:Pu(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function _u(e){return ue(e).direction==="rtl"}const Tu={convertOffsetParentRelativeRectToViewportRelativeRect:yu,getDocumentElement:ve,getClippingRect:ku,getOffsetParent:ra,getElementRects:Nu,getClientRects:Cu,getDimensions:Au,getScale:He,isElement:le,isRTL:_u};function oa(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ou(e,t){let n=null,r;const o=ve(e);function a(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function s(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),a();const d=e.getBoundingClientRect(),{left:f,top:p,width:m,height:g}=d;if(i||t(),!m||!g)return;const b=Ct(p),h=Ct(o.clientWidth-(f+m)),v=Ct(o.clientHeight-(p+g)),x=Ct(f),C={rootMargin:-b+"px "+-h+"px "+-v+"px "+-x+"px",threshold:se(0,ke(1,l))||1};let S=!0;function M(T){const k=T[0].intersectionRatio;if(k!==l){if(!S)return s();k?s(!1,k):r=setTimeout(()=>{s(!1,1e-7)},1e3)}k===1&&!oa(d,e.getBoundingClientRect())&&s(),S=!1}try{n=new IntersectionObserver(M,{...C,root:o.ownerDocument})}catch{n=new IntersectionObserver(M,C)}n.observe(e)}return s(!0),a}function ju(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,d=Vn(e),f=o||a?[...d?nt(d):[],...nt(t)]:[];f.forEach(x=>{o&&x.addEventListener("scroll",n,{passive:!0}),a&&x.addEventListener("resize",n)});const p=d&&i?Ou(d,n):null;let m=-1,g=null;s&&(g=new ResizeObserver(x=>{let[y]=x;y&&y.target===d&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var C;(C=g)==null||C.observe(t)})),n()}),d&&!l&&g.observe(d),g.observe(t));let b,h=l?Oe(e):null;l&&v();function v(){const x=Oe(e);h&&!oa(h,x)&&n(),h=x,b=requestAnimationFrame(v)}return n(),()=>{var x;f.forEach(y=>{o&&y.removeEventListener("scroll",n),a&&y.removeEventListener("resize",n)}),p==null||p(),(x=g)==null||x.disconnect(),g=null,l&&cancelAnimationFrame(b)}}const Du=pu,Iu=mu,Lu=uu,Fu=gu,$u=du,Fr=lu,zu=hu,Hu=(e,t,n)=>{const r=new Map,o={platform:Tu,...n},a={...o.platform,_c:r};return cu(e,t,{...o,platform:a})};var Vu=typeof document<"u",Bu=function(){},Rt=Vu?Z.useLayoutEffect:Bu;function Nt(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(!Nt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!Nt(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function aa(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function $r(e,t){const n=aa(e);return Math.round(t*n)/n}function sn(e){const t=u.useRef(e);return Rt(()=>{t.current=e}),t}function Gu(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:l,open:d}=e,[f,p]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=u.useState(r);Nt(m,r)||g(r);const[b,h]=u.useState(null),[v,x]=u.useState(null),y=u.useCallback(E=>{E!==T.current&&(T.current=E,h(E))},[]),C=u.useCallback(E=>{E!==k.current&&(k.current=E,x(E))},[]),S=a||b,M=s||v,T=u.useRef(null),k=u.useRef(null),R=u.useRef(f),I=l!=null,z=sn(l),U=sn(o),G=sn(d),W=u.useCallback(()=>{if(!T.current||!k.current)return;const E={placement:t,strategy:n,middleware:m};U.current&&(E.platform=U.current),Hu(T.current,k.current,E).then(_=>{const w={..._,isPositioned:G.current!==!1};H.current&&!Nt(R.current,w)&&(R.current=w,Gr.flushSync(()=>{p(w)}))})},[m,t,n,U,G]);Rt(()=>{d===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,p(E=>({...E,isPositioned:!1})))},[d]);const H=u.useRef(!1);Rt(()=>(H.current=!0,()=>{H.current=!1}),[]),Rt(()=>{if(S&&(T.current=S),M&&(k.current=M),S&&M){if(z.current)return z.current(S,M,W);W()}},[S,M,W,z,I]);const Y=u.useMemo(()=>({reference:T,floating:k,setReference:y,setFloating:C}),[y,C]),D=u.useMemo(()=>({reference:S,floating:M}),[S,M]),V=u.useMemo(()=>{const E={position:n,left:0,top:0};if(!D.floating)return E;const _=$r(D.floating,f.x),w=$r(D.floating,f.y);return i?{...E,transform:"translate("+_+"px, "+w+"px)",...aa(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:_,top:w}},[n,i,D.floating,f.x,f.y]);return u.useMemo(()=>({...f,update:W,refs:Y,elements:D,floatingStyles:V}),[f,W,Y,D,V])}const Wu=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?Fr({element:r.current,padding:o}).fn(n):{}:r?Fr({element:r,padding:o}).fn(n):{}}}},Uu=(e,t)=>({...Du(e),options:[e,t]}),Ku=(e,t)=>({...Iu(e),options:[e,t]}),Yu=(e,t)=>({...zu(e),options:[e,t]}),Zu=(e,t)=>({...Lu(e),options:[e,t]}),Xu=(e,t)=>({...Fu(e),options:[e,t]}),qu=(e,t)=>({...$u(e),options:[e,t]}),Ju=(e,t)=>({...Wu(e),options:[e,t]});var Qu="Arrow",sa=u.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return c.jsx(J.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});sa.displayName=Qu;var ed=sa;function td(e){const[t,n]=u.useState(void 0);return Me(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,i;if("borderBoxSize"in a){const l=a.borderBoxSize,d=Array.isArray(l)?l[0]:l;s=d.inlineSize,i=d.blockSize}else s=e.offsetWidth,i=e.offsetHeight;n({width:s,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Gn="Popper",[ia,Vt]=je(Gn),[nd,ca]=ia(Gn),la=e=>{const{__scopePopper:t,children:n}=e,[r,o]=u.useState(null);return c.jsx(nd,{scope:t,anchor:r,onAnchorChange:o,children:n})};la.displayName=Gn;var ua="PopperAnchor",da=u.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=ca(ua,n),s=u.useRef(null),i=te(t,s);return u.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:c.jsx(J.div,{...o,ref:i})});da.displayName=ua;var Wn="PopperContent",[rd,od]=ia(Wn),fa=u.forwardRef((e,t)=>{var B,X,q,ae,Se,Ne;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:l=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:g="optimized",onPlaced:b,...h}=e,v=ca(Wn,n),[x,y]=u.useState(null),C=te(t,Xe=>y(Xe)),[S,M]=u.useState(null),T=td(S),k=(T==null?void 0:T.width)??0,R=(T==null?void 0:T.height)??0,I=r+(a!=="center"?"-"+a:""),z=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},U=Array.isArray(d)?d:[d],G=U.length>0,W={padding:z,boundary:U.filter(sd),altBoundary:G},{refs:H,floatingStyles:Y,placement:D,isPositioned:V,middlewareData:E}=Gu({strategy:"fixed",placement:I,whileElementsMounted:(...Xe)=>ju(...Xe,{animationFrame:g==="always"}),elements:{reference:v.anchor},middleware:[Uu({mainAxis:o+R,alignmentAxis:s}),l&&Ku({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Yu():void 0,...W}),l&&Zu({...W}),Xu({...W,apply:({elements:Xe,rects:ar,availableWidth:Js,availableHeight:Qs})=>{const{width:ei,height:ti}=ar.reference,pt=Xe.floating.style;pt.setProperty("--radix-popper-available-width",`${Js}px`),pt.setProperty("--radix-popper-available-height",`${Qs}px`),pt.setProperty("--radix-popper-anchor-width",`${ei}px`),pt.setProperty("--radix-popper-anchor-height",`${ti}px`)}}),S&&Ju({element:S,padding:i}),id({arrowWidth:k,arrowHeight:R}),m&&qu({strategy:"referenceHidden",...W})]}),[_,w]=ha(D),O=he(b);Me(()=>{V&&(O==null||O())},[V,O]);const F=(B=E.arrow)==null?void 0:B.x,$=(X=E.arrow)==null?void 0:X.y,K=((q=E.arrow)==null?void 0:q.centerOffset)!==0,[Q,oe]=u.useState();return Me(()=>{x&&oe(window.getComputedStyle(x).zIndex)},[x]),c.jsx("div",{ref:H.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:V?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[(ae=E.transformOrigin)==null?void 0:ae.x,(Se=E.transformOrigin)==null?void 0:Se.y].join(" "),...((Ne=E.hide)==null?void 0:Ne.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(rd,{scope:n,placedSide:_,onArrowChange:M,arrowX:F,arrowY:$,shouldHideArrow:K,children:c.jsx(J.div,{"data-side":_,"data-align":w,...h,ref:C,style:{...h.style,animation:V?void 0:"none"}})})})});fa.displayName=Wn;var pa="PopperArrow",ad={top:"bottom",right:"left",bottom:"top",left:"right"},ma=u.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=od(pa,r),s=ad[a.placedSide];return c.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:c.jsx(ed,{...o,ref:n,style:{...o.style,display:"block"}})})});ma.displayName=pa;function sd(e){return e!==null}var id=e=>({name:"transformOrigin",options:e,fn(t){var v,x,y;const{placement:n,rects:r,middlewareData:o}=t,s=((v=o.arrow)==null?void 0:v.centerOffset)!==0,i=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[d,f]=ha(n),p={start:"0%",center:"50%",end:"100%"}[f],m=(((x=o.arrow)==null?void 0:x.x)??0)+i/2,g=(((y=o.arrow)==null?void 0:y.y)??0)+l/2;let b="",h="";return d==="bottom"?(b=s?p:`${m}px`,h=`${-l}px`):d==="top"?(b=s?p:`${m}px`,h=`${r.floating.height+l}px`):d==="right"?(b=`${-l}px`,h=s?p:`${g}px`):d==="left"&&(b=`${r.floating.width+l}px`,h=s?p:`${g}px`),{data:{x:b,y:h}}}});function ha(e){const[t,n="center"]=e.split("-");return[t,n]}var Un=la,ga=da,va=fa,ba=ma,cd=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"}),ld="VisuallyHidden",xa=u.forwardRef((e,t)=>c.jsx(J.span,{...e,ref:t,style:{...cd,...e.style}}));xa.displayName=ld;var ud=xa,[Bt,Zp]=je("Tooltip",[Vt]),Gt=Vt(),wa="TooltipProvider",dd=700,bn="tooltip.open",[fd,Kn]=Bt(wa),ya=e=>{const{__scopeTooltip:t,delayDuration:n=dd,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,s=u.useRef(!0),i=u.useRef(!1),l=u.useRef(0);return u.useEffect(()=>{const d=l.current;return()=>window.clearTimeout(d)},[]),c.jsx(fd,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:u.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:u.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:u.useCallback(d=>{i.current=d},[]),disableHoverableContent:o,children:a})};ya.displayName=wa;var rt="Tooltip",[pd,Wt]=Bt(rt),Ca=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,l=Kn(rt,e.__scopeTooltip),d=Gt(t),[f,p]=u.useState(null),m=xe(),g=u.useRef(0),b=s??l.disableHoverableContent,h=i??l.delayDuration,v=u.useRef(!1),[x,y]=st({prop:r,defaultProp:o??!1,onChange:k=>{k?(l.onOpen(),document.dispatchEvent(new CustomEvent(bn))):l.onClose(),a==null||a(k)},caller:rt}),C=u.useMemo(()=>x?v.current?"delayed-open":"instant-open":"closed",[x]),S=u.useCallback(()=>{window.clearTimeout(g.current),g.current=0,v.current=!1,y(!0)},[y]),M=u.useCallback(()=>{window.clearTimeout(g.current),g.current=0,y(!1)},[y]),T=u.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{v.current=!0,y(!0),g.current=0},h)},[h,y]);return u.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),c.jsx(Un,{...d,children:c.jsx(pd,{scope:t,contentId:m,open:x,stateAttribute:C,trigger:f,onTriggerChange:p,onTriggerEnter:u.useCallback(()=>{l.isOpenDelayedRef.current?T():S()},[l.isOpenDelayedRef,T,S]),onTriggerLeave:u.useCallback(()=>{b?M():(window.clearTimeout(g.current),g.current=0)},[M,b]),onOpen:S,onClose:M,disableHoverableContent:b,children:n})})};Ca.displayName=rt;var xn="TooltipTrigger",Sa=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Wt(xn,n),a=Kn(xn,n),s=Gt(n),i=u.useRef(null),l=te(t,i,o.onTriggerChange),d=u.useRef(!1),f=u.useRef(!1),p=u.useCallback(()=>d.current=!1,[]);return u.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),c.jsx(ga,{asChild:!0,...s,children:c.jsx(J.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:j(e.onPointerMove,m=>{m.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:j(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:j(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:j(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:j(e.onBlur,o.onClose),onClick:j(e.onClick,o.onClose)})})});Sa.displayName=xn;var md="TooltipPortal",[Xp,hd]=Bt(md,{forceMount:void 0}),Ge="TooltipContent",Ea=u.forwardRef((e,t)=>{const n=hd(Ge,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,s=Wt(Ge,e.__scopeTooltip);return c.jsx(Ce,{present:r||s.open,children:s.disableHoverableContent?c.jsx(Ra,{side:o,...a,ref:t}):c.jsx(gd,{side:o,...a,ref:t})})}),gd=u.forwardRef((e,t)=>{const n=Wt(Ge,e.__scopeTooltip),r=Kn(Ge,e.__scopeTooltip),o=u.useRef(null),a=te(t,o),[s,i]=u.useState(null),{trigger:l,onClose:d}=n,f=o.current,{onPointerInTransitChange:p}=r,m=u.useCallback(()=>{i(null),p(!1)},[p]),g=u.useCallback((b,h)=>{const v=b.currentTarget,x={x:b.clientX,y:b.clientY},y=yd(x,v.getBoundingClientRect()),C=Cd(x,y),S=Sd(h.getBoundingClientRect()),M=Rd([...C,...S]);i(M),p(!0)},[p]);return u.useEffect(()=>()=>m(),[m]),u.useEffect(()=>{if(l&&f){const b=v=>g(v,f),h=v=>g(v,l);return l.addEventListener("pointerleave",b),f.addEventListener("pointerleave",h),()=>{l.removeEventListener("pointerleave",b),f.removeEventListener("pointerleave",h)}}},[l,f,g,m]),u.useEffect(()=>{if(s){const b=h=>{const v=h.target,x={x:h.clientX,y:h.clientY},y=(l==null?void 0:l.contains(v))||(f==null?void 0:f.contains(v)),C=!Ed(x,s);y?m():C&&(m(),d())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,f,s,d,m]),c.jsx(Ra,{...e,ref:a})}),[vd,bd]=Bt(rt,{isInside:!1}),xd=ci("TooltipContent"),Ra=u.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,l=Wt(Ge,n),d=Gt(n),{onClose:f}=l;return u.useEffect(()=>(document.addEventListener(bn,f),()=>document.removeEventListener(bn,f)),[f]),u.useEffect(()=>{if(l.trigger){const p=m=>{const g=m.target;g!=null&&g.contains(l.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[l.trigger,f]),c.jsx(It,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:c.jsxs(va,{"data-state":l.stateAttribute,...d,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(xd,{children:r}),c.jsx(vd,{scope:n,isInside:!0,children:c.jsx(ud,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Ea.displayName=Ge;var Ma="TooltipArrow",wd=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Gt(n);return bd(Ma,n).isInside?null:c.jsx(ba,{...o,...r,ref:t})});wd.displayName=Ma;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),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Cd(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 Sd(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 Ed(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],l=t[s],d=i.x,f=i.y,p=l.x,m=l.y;f>r!=m>r&&n<(p-d)*(r-f)/(m-f)+d&&(o=!o)}return o}function Rd(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),Md(t)}function Md(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],s=n[n.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var kd=ya,Ad=Ca,Pd=Sa,ka=Ea;const Yn=kd,Zn=Ad,Xn=Pd,Ut=u.forwardRef(({className:e,sideOffset:t=4,...n},r)=>c.jsx(ka,{ref:r,sideOffset:t,className:A("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}));Ut.displayName=ka.displayName;const Nd="sidebar_state",_d=60*60*24*7,Td="16rem",Od="18rem",jd="3rem",Dd="b",Aa=u.createContext(null);function ct(){const e=u.useContext(Aa);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function Pa({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:a,...s}){const i=uo(),[l,d]=u.useState(!1),[f,p]=u.useState(e),m=t??f,g=u.useCallback(x=>{const y=typeof x=="function"?x(m):x;n?n(y):p(y),document.cookie=`${Nd}=${y}; path=/; max-age=${_d}`},[n,m]),b=u.useCallback(()=>i?d(x=>!x):g(x=>!x),[i,g,d]);u.useEffect(()=>{const x=y=>{y.key===Dd&&(y.metaKey||y.ctrlKey)&&(y.preventDefault(),b())};return window.addEventListener("keydown",x),()=>window.removeEventListener("keydown",x)},[b]);const h=m?"expanded":"collapsed",v=u.useMemo(()=>({state:h,open:m,setOpen:g,isMobile:i,openMobile:l,setOpenMobile:d,toggleSidebar:b}),[h,m,g,i,l,d,b]);return c.jsx(Aa.Provider,{value:v,children:c.jsx(Yn,{delayDuration:0,children:c.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":Td,"--sidebar-width-icon":jd,...o},className:A("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",r),...s,children:a})})})}function Na({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...a}){const{isMobile:s,state:i,openMobile:l,setOpenMobile:d}=ct();return n==="none"?c.jsx("div",{"data-slot":"sidebar",className:A("bg-white text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",r),...a,children:o}):s?c.jsx(Ko,{open:l,onOpenChange:d,...a,children:c.jsxs(On,{"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":Od},side:e,children:[c.jsxs(jn,{className:"sr-only",children:[c.jsx(Dn,{children:"Sidebar"}),c.jsx(In,{children:"Displays the mobile sidebar."})]}),c.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):c.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":i,"data-collapsible":i==="collapsed"?n:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:[c.jsx("div",{"data-slot":"sidebar-gap",className:A("relative w-(--sidebar-width) bg-white transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),c.jsx("div",{"data-slot":"sidebar-container",className:A("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...a,children:c.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-white group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col px-1 py-2 group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:o})})]})}function _a({className:e,onClick:t,...n}){const{toggleSidebar:r}=ct();return c.jsxs(Dt,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:A("size-7",e),onClick:o=>{t==null||t(o),r()},...n,children:[c.jsx(Ec,{}),c.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function Ta({className:e,...t}){const{toggleSidebar:n}=ct();return c.jsx("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:A("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 Oa({className:e,...t}){return c.jsx("main",{"data-slot":"sidebar-inset",className:A("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 Id({className:e,...t}){return c.jsx(Rn,{"data-slot":"sidebar-input","data-sidebar":"input",className:A("bg-background h-8 w-full shadow-none",e),...t})}function ja({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:A("flex flex-col gap-2 p-2",e),...t})}function Ld({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:A("flex flex-col gap-2 p-2",e),...t})}function Fd({className:e,...t}){return c.jsx(jt,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:A("bg-sidebar-border mx-2 w-auto",e),...t})}function Da({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:A("flex min-h-0 flex-1 flex-col overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})}function Ia({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:A("relative flex w-full min-w-0 flex-col px-2 py-1",e),...t})}function $d({className:e,asChild:t=!1,...n}){const r=t?We:"div";return c.jsx(r,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:A("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})}function zd({className:e,asChild:t=!1,...n}){const r=t?We:"button";return c.jsx(r,{"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:A("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",e),...n})}function La({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:A("w-full text-sm",e),...t})}function Hd({className:e,...t}){return c.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:A("flex w-full min-w-0 flex-col gap-1",e),...t})}function Vd({className:e,...t}){return c.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:A("group/menu-item relative",e),...t})}const Bd=En("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Gd({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:a,...s}){const i=e?We:"button",{isMobile:l,state:d}=ct(),f=c.jsx(i,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":r,"data-active":t,className:A(Bd({variant:n,size:r}),a),...s});return o?(typeof o=="string"&&(o={children:o}),c.jsxs(Zn,{children:[c.jsx(Xn,{asChild:!0,children:f}),c.jsx(Ut,{side:"right",align:"center",hidden:d!=="collapsed"||l,...o})]})):f}function Wd({className:e,asChild:t=!1,showOnHover:n=!1,...r}){const o=t?We:"button";return c.jsx(o,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:A("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",e),...r})}function Ud({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:A("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t})}function Kd({className:e,showIcon:t=!1,...n}){const r=u.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return c.jsxs("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:A("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[t&&c.jsx(mn,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),c.jsx(mn,{className:"h-4 max-w-(--skeleton-width) flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})}function Fa({className:e,...t}){return c.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:A("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 $a({className:e,...t}){return c.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:A("group/menu-sub-item relative",e),...t})}function za({asChild:e=!1,size:t="md",isActive:n=!1,className:r,...o}){const a=e?We:"a";return c.jsx(a,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:A("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 Ha(e){const t=e+"CollectionProvider",[n,r]=je(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=h=>{const{scope:v,children:x}=h,y=Z.useRef(null),C=Z.useRef(new Map).current;return c.jsx(o,{scope:v,itemMap:C,collectionRef:y,children:x})};s.displayName=t;const i=e+"CollectionSlot",l=Ve(i),d=Z.forwardRef((h,v)=>{const{scope:x,children:y}=h,C=a(i,x),S=te(v,C.collectionRef);return c.jsx(l,{ref:S,children:y})});d.displayName=i;const f=e+"CollectionItemSlot",p="data-radix-collection-item",m=Ve(f),g=Z.forwardRef((h,v)=>{const{scope:x,children:y,...C}=h,S=Z.useRef(null),M=te(v,S),T=a(f,x);return Z.useEffect(()=>(T.itemMap.set(S,{ref:S,...C}),()=>void T.itemMap.delete(S))),c.jsx(m,{[p]:"",ref:M,children:y})});g.displayName=f;function b(h){const v=a(e+"CollectionConsumer",h);return Z.useCallback(()=>{const y=v.collectionRef.current;if(!y)return[];const C=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(v.itemMap.values()).sort((T,k)=>C.indexOf(T.ref.current)-C.indexOf(k.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:s,Slot:d,ItemSlot:g},b,r]}var Yd=u.createContext(void 0);function Va(e){const t=u.useContext(Yd);return e||t||"ltr"}var cn="rovingFocusGroup.onEntryFocus",Zd={bubbles:!1,cancelable:!0},lt="RovingFocusGroup",[wn,Ba,Xd]=Ha(lt),[qd,Ga]=je(lt,[Xd]),[Jd,Qd]=qd(lt),Wa=u.forwardRef((e,t)=>c.jsx(wn.Provider,{scope:e.__scopeRovingFocusGroup,children:c.jsx(wn.Slot,{scope:e.__scopeRovingFocusGroup,children:c.jsx(ef,{...e,ref:t})})}));Wa.displayName=lt;var ef=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:l,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...p}=e,m=u.useRef(null),g=te(t,m),b=Va(a),[h,v]=st({prop:s,defaultProp:i??null,onChange:l,caller:lt}),[x,y]=u.useState(!1),C=he(d),S=Ba(n),M=u.useRef(!1),[T,k]=u.useState(0);return u.useEffect(()=>{const R=m.current;if(R)return R.addEventListener(cn,C),()=>R.removeEventListener(cn,C)},[C]),c.jsx(Jd,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:h,onItemFocus:u.useCallback(R=>v(R),[v]),onItemShiftTab:u.useCallback(()=>y(!0),[]),onFocusableItemAdd:u.useCallback(()=>k(R=>R+1),[]),onFocusableItemRemove:u.useCallback(()=>k(R=>R-1),[]),children:c.jsx(J.div,{tabIndex:x||T===0?-1:0,"data-orientation":r,...p,ref:g,style:{outline:"none",...e.style},onMouseDown:j(e.onMouseDown,()=>{M.current=!0}),onFocus:j(e.onFocus,R=>{const I=!M.current;if(R.target===R.currentTarget&&I&&!x){const z=new CustomEvent(cn,Zd);if(R.currentTarget.dispatchEvent(z),!z.defaultPrevented){const U=S().filter(D=>D.focusable),G=U.find(D=>D.active),W=U.find(D=>D.id===h),Y=[G,W,...U].filter(Boolean).map(D=>D.ref.current);Ya(Y,f)}}M.current=!1}),onBlur:j(e.onBlur,()=>y(!1))})})}),Ua="RovingFocusGroupItem",Ka=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:s,...i}=e,l=xe(),d=a||l,f=Qd(Ua,n),p=f.currentTabStopId===d,m=Ba(n),{onFocusableItemAdd:g,onFocusableItemRemove:b,currentTabStopId:h}=f;return u.useEffect(()=>{if(r)return g(),()=>b()},[r,g,b]),c.jsx(wn.ItemSlot,{scope:n,id:d,focusable:r,active:o,children:c.jsx(J.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...i,ref:t,onMouseDown:j(e.onMouseDown,v=>{r?f.onItemFocus(d):v.preventDefault()}),onFocus:j(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:j(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){f.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const x=rf(v,f.orientation,f.dir);if(x!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let C=m().filter(S=>S.focusable).map(S=>S.ref.current);if(x==="last")C.reverse();else if(x==="prev"||x==="next"){x==="prev"&&C.reverse();const S=C.indexOf(v.currentTarget);C=f.loop?of(C,S+1):C.slice(S+1)}setTimeout(()=>Ya(C))}}),children:typeof s=="function"?s({isCurrentTabStop:p,hasTabStop:h!=null}):s})})});Ka.displayName=Ua;var tf={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function nf(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function rf(e,t,n){const r=nf(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return tf[r]}function Ya(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function of(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var af=Wa,sf=Ka,yn=["Enter"," "],cf=["ArrowDown","PageUp","Home"],Za=["ArrowUp","PageDown","End"],lf=[...cf,...Za],uf={ltr:[...yn,"ArrowRight"],rtl:[...yn,"ArrowLeft"]},df={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ut="Menu",[ot,ff,pf]=Ha(ut),[De,Xa]=je(ut,[pf,Vt,Ga]),dt=Vt(),qa=Ga(),[Ja,Pe]=De(ut),[mf,ft]=De(ut),Qa=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:s=!0}=e,i=dt(t),[l,d]=u.useState(null),f=u.useRef(!1),p=he(a),m=Va(o);return u.useEffect(()=>{const g=()=>{f.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>f.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})}},[]),c.jsx(Un,{...i,children:c.jsx(Ja,{scope:t,open:n,onOpenChange:p,content:l,onContentChange:d,children:c.jsx(mf,{scope:t,onClose:u.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:m,modal:s,children:r})})})};Qa.displayName=ut;var hf="MenuAnchor",qn=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=dt(n);return c.jsx(ga,{...o,...r,ref:t})});qn.displayName=hf;var Jn="MenuPortal",[gf,es]=De(Jn,{forceMount:void 0}),ts=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=Pe(Jn,t);return c.jsx(gf,{scope:t,forceMount:n,children:c.jsx(Ce,{present:n||a.open,children:c.jsx(kn,{asChild:!0,container:o,children:r})})})};ts.displayName=Jn;var ce="MenuContent",[vf,Qn]=De(ce),ns=u.forwardRef((e,t)=>{const n=es(ce,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Pe(ce,e.__scopeMenu),s=ft(ce,e.__scopeMenu);return c.jsx(ot.Provider,{scope:e.__scopeMenu,children:c.jsx(Ce,{present:r||a.open,children:c.jsx(ot.Slot,{scope:e.__scopeMenu,children:s.modal?c.jsx(bf,{...o,ref:t}):c.jsx(xf,{...o,ref:t})})})})}),bf=u.forwardRef((e,t)=>{const n=Pe(ce,e.__scopeMenu),r=u.useRef(null),o=te(t,r);return u.useEffect(()=>{const a=r.current;if(a)return Ro(a)},[]),c.jsx(er,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:j(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),xf=u.forwardRef((e,t)=>{const n=Pe(ce,e.__scopeMenu);return c.jsx(er,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),wf=Ve("MenuContent.ScrollLock"),er=u.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEntryFocus:l,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:g,disableOutsideScroll:b,...h}=e,v=Pe(ce,n),x=ft(ce,n),y=dt(n),C=qa(n),S=ff(n),[M,T]=u.useState(null),k=u.useRef(null),R=te(t,k,v.onContentChange),I=u.useRef(0),z=u.useRef(""),U=u.useRef(0),G=u.useRef(null),W=u.useRef("right"),H=u.useRef(0),Y=b?An:u.Fragment,D=b?{as:wf,allowPinchZoom:!0}:void 0,V=_=>{var B,X;const w=z.current+_,O=S().filter(q=>!q.disabled),F=document.activeElement,$=(B=O.find(q=>q.ref.current===F))==null?void 0:B.textValue,K=O.map(q=>q.textValue),Q=Tf(K,w,$),oe=(X=O.find(q=>q.textValue===Q))==null?void 0:X.ref.current;(function q(ae){z.current=ae,window.clearTimeout(I.current),ae!==""&&(I.current=window.setTimeout(()=>q(""),1e3))})(w),oe&&setTimeout(()=>oe.focus())};u.useEffect(()=>()=>window.clearTimeout(I.current),[]),go();const E=u.useCallback(_=>{var O,F;return W.current===((O=G.current)==null?void 0:O.side)&&jf(_,(F=G.current)==null?void 0:F.area)},[]);return c.jsx(vf,{scope:n,searchRef:z,onItemEnter:u.useCallback(_=>{E(_)&&_.preventDefault()},[E]),onItemLeave:u.useCallback(_=>{var w;E(_)||((w=k.current)==null||w.focus(),T(null))},[E]),onTriggerLeave:u.useCallback(_=>{E(_)&&_.preventDefault()},[E]),pointerGraceTimerRef:U,onPointerGraceIntentChange:u.useCallback(_=>{G.current=_},[]),children:c.jsx(Y,{...D,children:c.jsx(Mn,{asChild:!0,trapped:o,onMountAutoFocus:j(a,_=>{var w;_.preventDefault(),(w=k.current)==null||w.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:c.jsx(It,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:g,children:c.jsx(af,{asChild:!0,...C,dir:x.dir,orientation:"vertical",loop:r,currentTabStopId:M,onCurrentTabStopIdChange:T,onEntryFocus:j(l,_=>{x.isUsingKeyboardRef.current||_.preventDefault()}),preventScrollOnEntryFocus:!0,children:c.jsx(va,{role:"menu","aria-orientation":"vertical","data-state":xs(v.open),"data-radix-menu-content":"",dir:x.dir,...y,...h,ref:R,style:{outline:"none",...h.style},onKeyDown:j(h.onKeyDown,_=>{const O=_.target.closest("[data-radix-menu-content]")===_.currentTarget,F=_.ctrlKey||_.altKey||_.metaKey,$=_.key.length===1;O&&(_.key==="Tab"&&_.preventDefault(),!F&&$&&V(_.key));const K=k.current;if(_.target!==K||!lf.includes(_.key))return;_.preventDefault();const oe=S().filter(B=>!B.disabled).map(B=>B.ref.current);Za.includes(_.key)&&oe.reverse(),Nf(oe)}),onBlur:j(e.onBlur,_=>{_.currentTarget.contains(_.target)||(window.clearTimeout(I.current),z.current="")}),onPointerMove:j(e.onPointerMove,at(_=>{const w=_.target,O=H.current!==_.clientX;if(_.currentTarget.contains(w)&&O){const F=_.clientX>H.current?"right":"left";W.current=F,H.current=_.clientX}}))})})})})})})});ns.displayName=ce;var yf="MenuGroup",tr=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.jsx(J.div,{role:"group",...r,ref:t})});tr.displayName=yf;var Cf="MenuLabel",rs=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.jsx(J.div,{...r,ref:t})});rs.displayName=Cf;var _t="MenuItem",zr="menu.itemSelect",Kt=u.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=u.useRef(null),s=ft(_t,e.__scopeMenu),i=Qn(_t,e.__scopeMenu),l=te(t,a),d=u.useRef(!1),f=()=>{const p=a.current;if(!n&&p){const m=new CustomEvent(zr,{bubbles:!0,cancelable:!0});p.addEventListener(zr,g=>r==null?void 0:r(g),{once:!0}),Ur(p,m),m.defaultPrevented?d.current=!1:s.onClose()}};return c.jsx(os,{...o,ref:l,disabled:n,onClick:j(e.onClick,f),onPointerDown:p=>{var m;(m=e.onPointerDown)==null||m.call(e,p),d.current=!0},onPointerUp:j(e.onPointerUp,p=>{var m;d.current||(m=p.currentTarget)==null||m.click()}),onKeyDown:j(e.onKeyDown,p=>{const m=i.searchRef.current!=="";n||m&&p.key===" "||yn.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});Kt.displayName=_t;var os=u.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,s=Qn(_t,n),i=qa(n),l=u.useRef(null),d=te(t,l),[f,p]=u.useState(!1),[m,g]=u.useState("");return u.useEffect(()=>{const b=l.current;b&&g((b.textContent??"").trim())},[a.children]),c.jsx(ot.ItemSlot,{scope:n,disabled:r,textValue:o??m,children:c.jsx(sf,{asChild:!0,...i,focusable:!r,children:c.jsx(J.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:d,onPointerMove:j(e.onPointerMove,at(b=>{r?s.onItemLeave(b):(s.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:j(e.onPointerLeave,at(b=>s.onItemLeave(b))),onFocus:j(e.onFocus,()=>p(!0)),onBlur:j(e.onBlur,()=>p(!1))})})})}),Sf="MenuCheckboxItem",as=u.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return c.jsx(us,{scope:e.__scopeMenu,checked:n,children:c.jsx(Kt,{role:"menuitemcheckbox","aria-checked":Tt(n)?"mixed":n,...o,ref:t,"data-state":or(n),onSelect:j(o.onSelect,()=>r==null?void 0:r(Tt(n)?!0:!n),{checkForDefaultPrevented:!1})})})});as.displayName=Sf;var ss="MenuRadioGroup",[Ef,Rf]=De(ss,{value:void 0,onValueChange:()=>{}}),is=u.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=he(r);return c.jsx(Ef,{scope:e.__scopeMenu,value:n,onValueChange:a,children:c.jsx(tr,{...o,ref:t})})});is.displayName=ss;var cs="MenuRadioItem",ls=u.forwardRef((e,t)=>{const{value:n,...r}=e,o=Rf(cs,e.__scopeMenu),a=n===o.value;return c.jsx(us,{scope:e.__scopeMenu,checked:a,children:c.jsx(Kt,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":or(a),onSelect:j(r.onSelect,()=>{var s;return(s=o.onValueChange)==null?void 0:s.call(o,n)},{checkForDefaultPrevented:!1})})})});ls.displayName=cs;var nr="MenuItemIndicator",[us,Mf]=De(nr,{checked:!1}),ds=u.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=Mf(nr,n);return c.jsx(Ce,{present:r||Tt(a.checked)||a.checked===!0,children:c.jsx(J.span,{...o,ref:t,"data-state":or(a.checked)})})});ds.displayName=nr;var kf="MenuSeparator",fs=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.jsx(J.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});fs.displayName=kf;var Af="MenuArrow",ps=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=dt(n);return c.jsx(ba,{...o,...r,ref:t})});ps.displayName=Af;var rr="MenuSub",[Pf,ms]=De(rr),hs=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,a=Pe(rr,t),s=dt(t),[i,l]=u.useState(null),[d,f]=u.useState(null),p=he(o);return u.useEffect(()=>(a.open===!1&&p(!1),()=>p(!1)),[a.open,p]),c.jsx(Un,{...s,children:c.jsx(Ja,{scope:t,open:r,onOpenChange:p,content:d,onContentChange:f,children:c.jsx(Pf,{scope:t,contentId:xe(),triggerId:xe(),trigger:i,onTriggerChange:l,children:n})})})};hs.displayName=rr;var et="MenuSubTrigger",gs=u.forwardRef((e,t)=>{const n=Pe(et,e.__scopeMenu),r=ft(et,e.__scopeMenu),o=ms(et,e.__scopeMenu),a=Qn(et,e.__scopeMenu),s=u.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:l}=a,d={__scopeMenu:e.__scopeMenu},f=u.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return u.useEffect(()=>f,[f]),u.useEffect(()=>{const p=i.current;return()=>{window.clearTimeout(p),l(null)}},[i,l]),c.jsx(qn,{asChild:!0,...d,children:c.jsx(os,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":xs(n.open),...e,ref:Ot(t,o.onTriggerChange),onClick:p=>{var m;(m=e.onClick)==null||m.call(e,p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:j(e.onPointerMove,at(p=>{a.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:j(e.onPointerLeave,at(p=>{var g,b;f();const m=(g=n.content)==null?void 0:g.getBoundingClientRect();if(m){const h=(b=n.content)==null?void 0:b.dataset.side,v=h==="right",x=v?-5:5,y=m[v?"left":"right"],C=m[v?"right":"left"];a.onPointerGraceIntentChange({area:[{x:p.clientX+x,y:p.clientY},{x:y,y:m.top},{x:C,y:m.top},{x:C,y:m.bottom},{x:y,y:m.bottom}],side:h}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(p),p.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:j(e.onKeyDown,p=>{var g;const m=a.searchRef.current!=="";e.disabled||m&&p.key===" "||uf[r.dir].includes(p.key)&&(n.onOpenChange(!0),(g=n.content)==null||g.focus(),p.preventDefault())})})})});gs.displayName=et;var vs="MenuSubContent",bs=u.forwardRef((e,t)=>{const n=es(ce,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Pe(ce,e.__scopeMenu),s=ft(ce,e.__scopeMenu),i=ms(vs,e.__scopeMenu),l=u.useRef(null),d=te(t,l);return c.jsx(ot.Provider,{scope:e.__scopeMenu,children:c.jsx(Ce,{present:r||a.open,children:c.jsx(ot.Slot,{scope:e.__scopeMenu,children:c.jsx(er,{id:i.contentId,"aria-labelledby":i.triggerId,...o,ref:d,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var p;s.isUsingKeyboardRef.current&&((p=l.current)==null||p.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:j(e.onFocusOutside,f=>{f.target!==i.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:j(e.onEscapeKeyDown,f=>{s.onClose(),f.preventDefault()}),onKeyDown:j(e.onKeyDown,f=>{var g;const p=f.currentTarget.contains(f.target),m=df[s.dir].includes(f.key);p&&m&&(a.onOpenChange(!1),(g=i.trigger)==null||g.focus(),f.preventDefault())})})})})})});bs.displayName=vs;function xs(e){return e?"open":"closed"}function Tt(e){return e==="indeterminate"}function or(e){return Tt(e)?"indeterminate":e?"checked":"unchecked"}function Nf(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function _f(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Tf(e,t,n){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=_f(e,Math.max(a,0));o.length===1&&(s=s.filter(d=>d!==n));const l=s.find(d=>d.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Of(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],l=t[s],d=i.x,f=i.y,p=l.x,m=l.y;f>r!=m>r&&n<(p-d)*(r-f)/(m-f)+d&&(o=!o)}return o}function jf(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Of(n,t)}function at(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Df=Qa,If=qn,Lf=ts,Ff=ns,$f=tr,zf=rs,Hf=Kt,Vf=as,Bf=is,Gf=ls,Wf=ds,Uf=fs,Kf=ps,Yf=hs,Zf=gs,Xf=bs,Yt="DropdownMenu",[qf,qp]=je(Yt,[Xa]),re=Xa(),[Jf,ws]=qf(Yt),ys=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:s,modal:i=!0}=e,l=re(t),d=u.useRef(null),[f,p]=st({prop:o,defaultProp:a??!1,onChange:s,caller:Yt});return c.jsx(Jf,{scope:t,triggerId:xe(),triggerRef:d,contentId:xe(),open:f,onOpenChange:p,onOpenToggle:u.useCallback(()=>p(m=>!m),[p]),modal:i,children:c.jsx(Df,{...l,open:f,onOpenChange:p,dir:r,modal:i,children:n})})};ys.displayName=Yt;var Cs="DropdownMenuTrigger",Ss=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=ws(Cs,n),s=re(n);return c.jsx(If,{asChild:!0,...s,children:c.jsx(J.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Ot(t,a.triggerRef),onPointerDown:j(e.onPointerDown,i=>{!r&&i.button===0&&i.ctrlKey===!1&&(a.onOpenToggle(),a.open||i.preventDefault())}),onKeyDown:j(e.onKeyDown,i=>{r||(["Enter"," "].includes(i.key)&&a.onOpenToggle(),i.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});Ss.displayName=Cs;var Qf="DropdownMenuPortal",Es=e=>{const{__scopeDropdownMenu:t,...n}=e,r=re(t);return c.jsx(Lf,{...r,...n})};Es.displayName=Qf;var Rs="DropdownMenuContent",Ms=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ws(Rs,n),a=re(n),s=u.useRef(!1);return c.jsx(Ff,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:j(e.onCloseAutoFocus,i=>{var l;s.current||(l=o.triggerRef.current)==null||l.focus(),s.current=!1,i.preventDefault()}),onInteractOutside:j(e.onInteractOutside,i=>{const l=i.detail.originalEvent,d=l.button===0&&l.ctrlKey===!0,f=l.button===2||d;(!o.modal||f)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Ms.displayName=Rs;var ep="DropdownMenuGroup",ks=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=re(n);return c.jsx($f,{...o,...r,ref:t})});ks.displayName=ep;var tp="DropdownMenuLabel",As=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=re(n);return c.jsx(zf,{...o,...r,ref:t})});As.displayName=tp;var np="DropdownMenuItem",Ps=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=re(n);return c.jsx(Hf,{...o,...r,ref:t})});Ps.displayName=np;var rp="DropdownMenuCheckboxItem",Ns=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=re(n);return c.jsx(Vf,{...o,...r,ref:t})});Ns.displayName=rp;var op="DropdownMenuRadioGroup",_s=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=re(n);return c.jsx(Bf,{...o,...r,ref:t})});_s.displayName=op;var ap="DropdownMenuRadioItem",Ts=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=re(n);return c.jsx(Gf,{...o,...r,ref:t})});Ts.displayName=ap;var sp="DropdownMenuItemIndicator",Os=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=re(n);return c.jsx(Wf,{...o,...r,ref:t})});Os.displayName=sp;var ip="DropdownMenuSeparator",js=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=re(n);return c.jsx(Uf,{...o,...r,ref:t})});js.displayName=ip;var cp="DropdownMenuArrow",lp=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=re(n);return c.jsx(Kf,{...o,...r,ref:t})});lp.displayName=cp;var up=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,s=re(t),[i,l]=st({prop:r,defaultProp:a??!1,onChange:o,caller:"DropdownMenuSub"});return c.jsx(Yf,{...s,open:i,onOpenChange:l,children:n})},dp="DropdownMenuSubTrigger",Ds=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=re(n);return c.jsx(Zf,{...o,...r,ref:t})});Ds.displayName=dp;var fp="DropdownMenuSubContent",Is=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=re(n);return c.jsx(Xf,{...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)"}})});Is.displayName=fp;var pp=ys,mp=Ss,Ls=Es,hp=Ms,gp=ks,vp=As,bp=Ps,xp=Ns,wp=_s,yp=Ts,Fs=Os,Cp=js,Sp=up,Ep=Ds,Rp=Is;function $s({...e}){return c.jsx(pp,{"data-slot":"dropdown-menu",...e})}function Mp({...e}){return c.jsx(Ls,{"data-slot":"dropdown-menu-portal",...e})}function zs({...e}){return c.jsx(mp,{"data-slot":"dropdown-menu-trigger",...e})}function Hs({className:e,sideOffset:t=4,...n}){return c.jsx(Ls,{children:c.jsx(hp,{"data-slot":"dropdown-menu-content",sideOffset:t,className:A("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 kp({...e}){return c.jsx(gp,{"data-slot":"dropdown-menu-group",...e})}function Cn({className:e,inset:t,variant:n="default",...r}){return c.jsx(bp,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:A("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 Ap({className:e,children:t,checked:n,...r}){return c.jsxs(xp,{"data-slot":"dropdown-menu-checkbox-item",className:A("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:n,...r,children:[c.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:c.jsx(Fs,{children:c.jsx(fc,{className:"size-4"})})}),t]})}function Pp({...e}){return c.jsx(wp,{"data-slot":"dropdown-menu-radio-group",...e})}function Np({className:e,children:t,...n}){return c.jsxs(yp,{"data-slot":"dropdown-menu-radio-item",className:A("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[c.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:c.jsx(Fs,{children:c.jsx(xc,{className:"size-2 fill-current"})})}),t]})}function Vs({className:e,inset:t,...n}){return c.jsx(vp,{"data-slot":"dropdown-menu-label","data-inset":t,className:A("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...n})}function Bs({className:e,...t}){return c.jsx(Cp,{"data-slot":"dropdown-menu-separator",className:A("bg-border -mx-1 my-1 h-px",e),...t})}function _p({className:e,...t}){return c.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:A("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}function Tp({...e}){return c.jsx(Sp,{"data-slot":"dropdown-menu-sub",...e})}function Op({className:e,inset:t,children:n,...r}){return c.jsxs(Ep,{"data-slot":"dropdown-menu-sub-trigger","data-inset":t,className:A("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",e),...r,children:[n,c.jsx(co,{className:"ml-auto size-4"})]})}function jp({className:e,...t}){return c.jsx(Rp,{"data-slot":"dropdown-menu-sub-content",className:A("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...t})}const Gs=({onLogout:e})=>{const{user:t,error:n,isLoading:r}=Vr.useUser(),o=async()=>{try{e&&await e(),window.location.href="/auth/logout"}catch(a){console.error("Error during logout:",a),window.location.href="/auth/logout"}};return r?c.jsx("div",{className:"h-10 w-10 animate-pulse rounded-full bg-gray-200"}):n?c.jsxs("div",{children:["Error: ",n.message]}):t?c.jsx("div",{className:"relative flex items-center gap-3",children:c.jsxs($s,{children:[c.jsx(zs,{asChild:!0,children:c.jsx(Dt,{variant:"ghost",size:"lg",className:"rounded-full cursor-pointer p-0",children:t.picture?c.jsx("img",{src:t.picture,alt:t.name||"User profile",width:40,height:40,className:"rounded-full"}):c.jsx(xr,{className:"h-5 w-5 text-gray-500"})})}),c.jsxs(Hs,{align:"end",className:"w-72",children:[c.jsx(Vs,{children:c.jsx("div",{className:"flex flex-col space-y-1",children:c.jsxs("div",{className:"flex flex-col space-y-1",children:[c.jsx("p",{className:"text-xs text-gray-500",children:t.name}),c.jsx("p",{className:"truncate text-xs text-gray-500",children:t.email})]})})}),c.jsx(Bs,{}),c.jsx(Cn,{asChild:!0,children:c.jsxs("a",{href:"/profile",className:"flex w-full cursor-default",children:[c.jsx(xr,{className:"mr-2 h-4 w-4"}),c.jsx("span",{children:"Profile"})]})}),c.jsxs(Cn,{onClick:o,children:[c.jsx(Cc,{className:"mr-2 h-4 w-4"}),c.jsx("span",{children:"Sign out"})]})]})]})}):null},Ws=({onLogout:e})=>c.jsx("div",{className:"sticky top-0 z-50 bg-white",children:c.jsxs("header",{className:"flex h-16 items-center justify-between border-b bg-white px-4",children:[c.jsxs("div",{className:"flex h-full items-center gap-4 flex-1 min-w-0 overflow-hidden",children:[c.jsx(_a,{}),c.jsx(jt,{orientation:"vertical"})]}),c.jsx("div",{className:"flex-shrink-0",children:c.jsx(Gs,{onLogout:e})})]})});function Dp({className:e,...t}){return c.jsx("div",{"data-slot":"card",className:A("bg-card text-card-foreground flex flex-col gap-4 rounded-xl py-6 shadow-sm",e),...t})}function Ip({className:e,...t}){return c.jsx("div",{"data-slot":"card-header",className:A("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function Lp({className:e,...t}){return c.jsx("div",{"data-slot":"card-title",className:A("leading-none font-semibold",e),...t})}function Fp({className:e,...t}){return c.jsx("div",{"data-slot":"card-description",className:A("text-muted-foreground text-sm",e),...t})}function $p({className:e,...t}){return c.jsx("div",{"data-slot":"card-action",className:A("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t})}function zp({className:e,...t}){return c.jsx("div",{"data-slot":"card-content",className:A("px-6",e),...t})}function Hp({className:e,...t}){return c.jsx("div",{"data-slot":"card-footer",className:A("flex items-center px-6 [.border-t]:pt-6",e),...t})}function Us({title:e,url:t,children:n,defaultOpen:r=!1,icon:o,isActive:a=!1,className:s,disabled:i=!1}){const[l,d]=u.useState(r);u.useEffect(()=>{a&&d(!0)},[a]);const f=!i&&t;return c.jsx(Ia,{className:s,children:c.jsxs("div",{className:"flex flex-col",children:[c.jsxs("div",{className:"flex flex-row items-center justify-between",children:[f?c.jsxs("a",{href:t,className:A("flex flex-1 cursor-pointer items-center gap-2 rounded-lg p-2 transition-colors hover:bg-gray-100"),children:[o&&c.jsx("span",{className:A("text-gray-600"),children:o}),c.jsx("span",{className:A("text-gray-600"),children:e})]}):c.jsxs("div",{className:A("flex flex-1 items-center gap-2 rounded-lg p-2",i&&"cursor-default"),children:[o&&c.jsx("span",{className:A("text-gray-600"),children:o}),c.jsx("span",{className:A("text-gray-600"),children:e})]}),c.jsx("button",{type:"button",className:A("mr-3 rounded-lg p-2 text-gray-500",i?"cursor-default opacity-50":"hover:bg-gray-100 hover:text-gray-700"),onClick:p=>{p.preventDefault(),p.stopPropagation(),i||d(!l)},disabled:i,"aria-label":l?"Collapse section":"Expand section",children:l?c.jsx(mc,{className:"h-4 w-4"}):c.jsx(co,{className:"h-4 w-4"})})]}),c.jsx("div",{className:A("overflow-hidden transition-all",l&&!i?"max-h-96":"max-h-0"),children:n})]})})}const Vp="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20141%2060'%3e%3cpath%20d='M0.059%2019.711V59.673H19.509V49.95H9.779V19.711H0.059Z'%20fill='%2385B9D1'%3e%3c/path%3e%3cpath%20d='M0%200L0.056%204.915V19.715H9.776V9.715H19.5V59.673H29.22V0H0Z'%20fill='%23F68029'%3e%3c/path%3e%3cpath%20d='M23.49%2019.717H9.776V29.439H23.49V19.717Z'%20fill='%23F68029'%3e%3c/path%3e%3cpath%20d='M0.0580006%2019.718L9.785%2029.445V19.718H0.0580006Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M9.777%2049.953L19.504%2059.679V49.953H9.777Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M50.213%2021.331C50.1839%2019.244%2050.325%2017.1581%2050.635%2015.094C50.8293%2013.6891%2051.2694%2012.3294%2051.935%2011.077C52.4295%2010.1519%2053.1979%209.4023%2054.135%208.93101C55.1033%208.49691%2056.1561%208.28375%2057.217%208.307C58.2628%208.27673%2059.3024%208.47715%2060.262%208.894C61.1441%209.33605%2061.8541%2010.059%2062.28%2010.949C62.8725%2012.1976%2063.2507%2013.5369%2063.399%2014.911C63.6554%2016.9922%2063.7717%2019.0882%2063.747%2021.185C63.7759%2023.338%2063.6421%2025.4901%2063.347%2027.623C63.1657%2029.0675%2062.7378%2030.4702%2062.082%2031.77C61.6022%2032.7122%2060.8471%2033.4862%2059.917%2033.989C58.9503%2034.4507%2057.888%2034.6768%2056.817%2034.649C55.7687%2034.6771%2054.7258%2034.4896%2053.753%2034.098C52.8534%2033.6775%2052.1275%2032.9579%2051.699%2032.062C51.0884%2030.7803%2050.7037%2029.4027%2050.562%2027.99C50.3018%2025.7802%2050.1852%2023.5559%2050.213%2021.331ZM54.913%2022.248C54.913%2023.6913%2054.9377%2024.9267%2054.987%2025.954C55.0147%2026.8043%2055.1127%2027.6509%2055.28%2028.485C55.3666%2029.0149%2055.5877%2029.5138%2055.922%2029.934C56.0643%2030.0868%2056.238%2030.207%2056.4312%2030.2862C56.6244%2030.3655%2056.8324%2030.4019%2057.041%2030.393C57.25%2030.3964%2057.4571%2030.3533%2057.6473%2030.2668C57.8375%2030.1803%2058.0062%2030.0526%2058.141%2029.893C58.4964%2029.4241%2058.7297%2028.8744%2058.82%2028.293C59.0025%2027.3609%2059.1128%2026.4161%2059.15%2025.467C59.2107%2024.3177%2059.2414%2022.936%2059.242%2021.322C59.242%2019.732%2059.224%2018.3747%2059.188%2017.25C59.169%2016.3373%2059.0736%2015.4278%2058.903%2014.531C58.8198%2013.9744%2058.5923%2013.4493%2058.243%2013.008C58.0929%2012.8491%2057.9104%2012.7244%2057.7078%2012.6422C57.5053%2012.5601%2057.2874%2012.5225%2057.069%2012.532C56.8667%2012.5304%2056.6668%2012.576%2056.4852%2012.6652C56.3036%2012.7544%2056.1453%2012.8848%2056.023%2013.046C55.6766%2013.5389%2055.4446%2014.103%2055.344%2014.697C55.1442%2015.6885%2055.0277%2016.695%2054.996%2017.706C54.9347%2018.9533%2054.904%2020.4697%2054.904%2022.255'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M83.329%2021.331C83.2999%2019.244%2083.441%2017.1581%2083.751%2015.094C83.9453%2013.6891%2084.3854%2012.3294%2085.051%2011.077C85.5455%2010.1519%2086.3139%209.40235%2087.251%208.93105C89.2087%208.112%2091.4106%208.09871%2093.378%208.89405C94.2601%209.33609%2094.9701%2010.0591%2095.396%2010.949C95.9885%2012.1976%2096.3667%2013.537%2096.515%2014.911C96.7714%2016.9922%2096.8877%2019.0883%2096.863%2021.185C96.8919%2023.3381%2096.7581%2025.4902%2096.463%2027.6231C96.2817%2029.0676%2095.8538%2030.4703%2095.198%2031.77C94.7182%2032.7123%2093.9631%2033.4862%2093.033%2033.989C92.0663%2034.4507%2091.004%2034.6769%2089.933%2034.649C88.8847%2034.6772%2087.8418%2034.4896%2086.869%2034.098C85.9694%2033.6775%2085.2435%2032.9579%2084.815%2032.062C84.2044%2030.7803%2083.8197%2029.4027%2083.678%2027.99C83.4178%2025.7803%2083.3012%2023.5559%2083.329%2021.331ZM88.029%2022.2481C88.029%2023.6914%2088.0537%2024.9267%2088.103%2025.954C88.1307%2026.8044%2088.2287%2027.6509%2088.396%2028.4851C88.4826%2029.015%2088.7037%2029.5139%2089.038%2029.934C89.1803%2030.0869%2089.354%2030.207%2089.5472%2030.2863C89.7404%2030.3655%2089.9484%2030.4019%2090.157%2030.393C90.366%2030.3964%2090.573%2030.3533%2090.7633%2030.2669C90.9535%2030.1804%2091.1222%2030.0527%2091.257%2029.893C91.6124%2029.4242%2091.8458%2028.8744%2091.936%2028.2931C92.1185%2027.3609%2092.2288%2026.4161%2092.266%2025.467C92.3267%2024.3177%2092.3574%2022.936%2092.358%2021.322C92.358%2019.732%2092.34%2018.3747%2092.304%2017.2501C92.2887%2016.3329%2092.1964%2015.4187%2092.028%2014.517C91.9448%2013.9605%2091.7173%2013.4354%2091.368%2012.994C91.2162%2012.8368%2091.0323%2012.7141%2090.8289%2012.6343C90.6255%2012.5544%2090.4072%2012.5192%2090.189%2012.531C89.9867%2012.5294%2089.7868%2012.575%2089.6052%2012.6643C89.4236%2012.7535%2089.2653%2012.8839%2089.143%2013.045C88.7966%2013.5379%2088.5646%2014.102%2088.464%2014.6961C88.2642%2015.6876%2088.1477%2016.6941%2088.116%2017.705C88.0547%2018.9524%2088.024%2020.4687%2088.024%2022.254'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M131.349%2034.65V8.32202H135.458V30.797H140.631V34.649L131.349%2034.65Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M71.95%2034.65V8.33203H76.059V30.796H81.232V34.648L71.95%2034.65Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M104.833%2014.692C104.934%2014.098%20105.166%2013.534%20105.512%2013.041C105.634%2012.8798%20105.793%2012.7494%20105.974%2012.6602C106.156%2012.571%20106.356%2012.5253%20106.558%2012.527H110.103V8.30798H106.703C105.642%208.2848%20104.589%208.49794%20103.621%208.93197C102.684%209.40306%20101.915%2010.1527%20101.421%2011.078C100.756%2012.3304%20100.316%2013.6901%20100.121%2015.095C99.8114%2017.1591%2099.6706%2019.245%2099.7%2021.332C99.6722%2023.5568%2099.7885%2025.7811%20100.048%2027.991C100.19%2029.4037%20100.574%2030.7812%20101.185%2032.063C101.614%2032.9584%20102.34%2033.6778%20103.239%2034.099C104.212%2034.4899%20105.255%2034.6771%20106.303%2034.649L110.103%2034.613V30.393H106.522C106.313%2030.402%20106.105%2030.3657%20105.912%2030.2866C105.719%2030.2076%20105.545%2030.0876%20105.403%2029.935C105.069%2029.5144%20104.848%2029.0152%20104.761%2028.485C104.594%2027.6509%20104.496%2026.8043%20104.468%2025.954C104.419%2024.9266%20104.394%2023.6916%20104.394%2022.249C104.394%2020.4636%20104.425%2018.9473%20104.486%2017.7C104.518%2016.6894%20104.633%2015.6832%20104.833%2014.692Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M46.728%2019.247H42.878V30.395H41.828C41.6182%2030.4039%2041.409%2030.3669%2041.2149%2030.2868C41.0208%2030.2067%2040.8465%2030.0853%2040.704%2029.931C40.3695%2029.5106%2040.1485%2029.0113%2040.062%2028.481C39.894%2027.647%2039.7956%2026.8004%2039.768%2025.95C39.7187%2024.9227%2039.6944%2023.6877%2039.695%2022.245C39.695%2020.4597%2039.7257%2018.9434%2039.787%2017.696C39.8191%2016.6854%2039.9355%2015.6792%2040.135%2014.688C40.2357%2014.094%2040.4677%2013.53%2040.814%2013.037C40.9376%2012.8768%2041.0968%2012.7476%2041.2791%2012.6598C41.4614%2012.5719%2041.6617%2012.5278%2041.864%2012.531H45.904V8.31202H42.012C40.9511%208.28877%2039.8983%208.50191%2038.93%208.93601C37.9927%209.40699%2037.2241%2010.1567%2036.73%2011.082C36.0644%2012.3344%2035.6243%2013.6941%2035.43%2015.099C35.1189%2017.1613%2034.9764%2019.2456%2035.004%2021.331C34.9762%2023.5559%2035.0925%2025.7802%2035.352%2027.99C35.494%2029.4026%2035.8787%2030.7802%2036.489%2032.062C36.9179%2032.9579%2037.6442%2033.6775%2038.544%2034.098C39.517%2034.4891%2040.5598%2034.6763%2041.608%2034.648L43.587%2034.629H46.727L46.728%2019.247Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M123.653%2029.87H118L116.691%2034.65H112.797L120.939%208L128.793%2034.65H124.856L123.653%2029.87ZM122.587%2026.212L120.893%2019.982L119.085%2026.212H122.587Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M39.016%2041.436H37.059V54.507H39.016V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M44.559%2041.436H46.384L48.331%2046.651C48.919%2048.1937%2049.4198%2049.7682%2049.831%2051.367C49.6744%2050.357%2049.5584%2049.4427%2049.483%2048.624C49.4077%2047.8054%2049.37%2047.0347%2049.37%2046.312V41.436H51.336V54.511H49.495L47.303%2048.627C47.103%2048.0797%2046.9134%2047.518%2046.734%2046.942C46.5547%2046.366%2046.39%2045.762%2046.24%2045.13C46.2274%2045.0507%2046.207%2044.9547%2046.179%2044.842C46.151%2044.7293%2046.1177%2044.5997%2046.079%2044.453C46.098%2044.6%2046.114%2044.725%2046.126%2044.829C46.138%2044.933%2046.148%2045.022%2046.154%2045.095L46.254%2046.424L46.354%2048.041C46.36%2048.131%2046.365%2048.241%2046.368%2048.371C46.371%2048.501%2046.368%2048.648%2046.368%2048.811L46.468%2054.511H44.559V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M55.493%2041.436H61.861V42.977H59.67V54.511H57.751V42.977H55.493V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M65.828%2041.436H71.028V42.926H67.787V47.065H70.665V48.555H67.787V53.016H71.028V54.506H65.828V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M75.906%2041.436H78.483C79.3332%2041.3696%2080.1787%2041.6132%2080.863%2042.122C81.2131%2042.4774%2081.4826%2042.904%2081.6531%2043.3729C81.8236%2043.8417%2081.8911%2044.3418%2081.851%2044.839C81.8876%2045.6248%2081.7066%2046.4055%2081.328%2047.095C81.1685%2047.3665%2080.9531%2047.6008%2080.696%2047.7826C80.4389%2047.9643%2080.1461%2048.0892%2079.837%2048.149L82.509%2054.507H80.525L77.863%2048.107V54.507H75.906V41.436ZM77.863%2047.227C78.1485%2047.2893%2078.4451%2047.279%2078.7256%2047.1969C79.0061%2047.1148%2079.2615%2046.9637%2079.4684%2046.7573C79.6753%2046.5509%2079.8271%2046.2959%2079.9098%2046.0156C79.9926%2045.7353%2080.0036%2045.4387%2079.942%2045.153C79.9472%2044.8034%2079.9137%2044.4543%2079.842%2044.112C79.7909%2043.8589%2079.6851%2043.62%2079.532%2043.412C79.3909%2043.2304%2079.2018%2043.0918%2078.986%2043.012C78.7308%2042.9221%2078.4615%2042.8791%2078.191%2042.885H77.862L77.863%2047.227Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M90.046%2041.06L85.913%2054.514H87.745L88.45%2051.974H91.496L92.135%2054.531H94.028L90.046%2041.06ZM88.876%2050.403L90.013%2046.703L91.048%2050.415L88.876%2050.403Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M106.344%2041.436H112.712V42.977H110.52V54.511H108.602V42.977H106.344V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M118.865%2041.462H116.908V54.533H118.865V41.462Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M134.181%2041.462H139.381V42.952H136.136V47.093H139.014V48.583H136.136V53.044H139.381V54.534H134.181V41.462Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M99.749%2044.338C99.8046%2044.0109%2099.9338%2043.7008%20100.127%2043.431C100.202%2043.3322%20100.3%2043.2523%20100.411%2043.1976C100.523%2043.1429%20100.646%2043.115%20100.77%2043.116H102.464V41.207H100.846C100.318%2041.1955%2099.7949%2041.3011%2099.313%2041.516C98.8543%2041.748%2098.4782%2042.1157%2098.236%2042.569C97.9008%2043.2016%2097.6788%2043.888%2097.58%2044.597C97.4215%2045.6561%2097.3493%2046.7263%2097.364%2047.797C97.3503%2048.9393%2097.4101%2050.0814%2097.543%2051.216C97.6145%2051.9294%2097.808%2052.6252%2098.115%2053.273C98.3244%2053.7086%2098.6776%2054.0586%2099.115%2054.264C99.6001%2054.458%20100.12%2054.5509%20100.642%2054.537L102.469%2054.52V52.61H100.755C100.629%2052.6147%20100.503%2052.592%20100.386%2052.5435C100.269%2052.495%20100.164%2052.4218%20100.078%2052.329C99.8888%2052.0951%2099.7637%2051.816%2099.715%2051.519C99.6273%2051.081%2099.5758%2050.6365%2099.561%2050.19C99.536%2049.66%2099.523%2049.014%2099.523%2048.27C99.523%2047.349%2099.539%2046.557%2099.57%2045.916C99.5873%2045.3865%2099.6485%2044.8594%2099.753%2044.34'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M128.799%2041.466L126.671%2048.91L124.671%2041.466H122.679L126.654%2054.953L130.774%2041.466H128.799Z'%20fill='%230A3763'%3e%3c/path%3e%3c/svg%3e";function Ks(){const[e,t]=Z.useState("");return Z.useEffect(()=>{t(window.location.pathname);const r=()=>{t(window.location.pathname)},o=()=>{t(window.location.pathname)};return window.addEventListener("popstate",r),window.addEventListener("pushstate",o),window.addEventListener("replacestate",o),()=>{window.removeEventListener("popstate",r),window.removeEventListener("pushstate",o),window.removeEventListener("replacestate",o)}},[]),{currentPath:e,isActiveRoute:r=>!!(e===r||r!=="/"&&e.startsWith(r))}}const Ys=Z.createContext(void 0),Zs=()=>{const e=Z.useContext(Ys);if(e===void 0)throw new Error("usePermissions must be used within PermissionsProvider");return e},Xs=()=>{const{permissions:e}=Zs();return{essentialInsights:e.essentialInsights,organic:e.organic,paid:e.paid,web:e.web,priceMonster:e.priceMonster,se_company_id:e.se_company_id}};function Bp({children:e,fetchPermissionsEndpoint:t="/api/auth/permissions",initialPermissions:n}){const[r,o]=Z.useState(n||{essentialInsights:!1,organic:!1,paid:!1,web:!1,priceMonster:!1,se_company_id:null}),[a,s]=Z.useState(!n),[i,l]=Z.useState(null),d=async()=>{try{s(!0),l(null);const f=await fetch(t);if(!f.ok)throw new Error(`Failed to fetch permissions: ${f.statusText}`);const p=await f.json();o(p)}catch(f){console.error("Error fetching product access:",f),l(f instanceof Error?f:new Error("Unknown error"))}finally{s(!1)}};return Z.useEffect(()=>{n||d()},[n]),c.jsx(Ys.Provider,{value:{permissions:r,loading:a,error:i,fetchPermissions:d},children:e})}const Gp={navMain:[{title:"Essential Insights",key:"essentialInsights",url:"/essential-insights/overall-performance",icon:c.jsx(uc,{className:"h-5 w-5"}),items:[{title:"Overall Performance",url:"/essential-insights/overall-performance",icon:c.jsx(lo,{className:"h-4 w-4"})},{title:"Organic Performance",url:"/essential-insights/organic-performance",icon:c.jsx(br,{className:"h-4 w-4"})},{title:"Paid Performance",url:"/essential-insights/paid-performance",icon:c.jsx(ic,{className:"h-4 w-4"})},{title:"Keyword Performance",url:"/essential-insights/keyword-performance",icon:c.jsx(br,{className:"h-4 w-4"})}]},{title:"Price Monster",key:"priceMonster",url:"/price-monster",icon:c.jsx(vc,{className:"h-4 w-4"}),items:[{title:"Dashboard",url:"/price-monster/dashboard",icon:c.jsx(qt,{className:"h-4 w-4"})},{title:"Documentation",url:"/price-monster/documentation",icon:c.jsx(nc,{className:"h-4 w-4"})},{title:"Subscriptions",url:"/price-monster/subscriptions",icon:c.jsx(oc,{className:"h-4 w-4"})}]},{title:"Web",key:"web",url:"/cms",icon:c.jsx(qt,{className:"h-4 w-4"}),items:[{title:"Dashboard",url:"/cms/dashboard",icon:c.jsx(qt,{className:"h-4 w-4"})}]}]};function qs({...e}){const{isActiveRoute:t}=Ks(),n=Xs();return c.jsxs(Na,{...e,children:[c.jsx(ja,{children:c.jsx("div",{className:"relative h-12 w-32 overflow-hidden",children:c.jsx("img",{src:Vp,alt:"GLI Logo",className:"h-full w-full object-contain"})})}),c.jsxs(Da,{children:[c.jsx("div",{className:"relative flex w-full min-w-0 flex-col px-2 py-1",children:c.jsxs("a",{href:"/",className:A("flex cursor-pointer items-center gap-2 rounded-lg px-2 py-2 transition-colors hover:bg-gray-100",t("/")&&"bg-blue-50 text-gli-bluedark font-medium"),children:[c.jsx(lo,{className:A("h-5 w-5",t("/")?"text-gli-bluedark":"text-gray-500")}),c.jsx("span",{children:"Home"})]})}),c.jsx(Yn,{delayDuration:150,children:Gp.navMain.map(r=>{const o=!r.key||n[r.key];let a=r.items;r.key==="essentialInsights"&&(a=r.items.filter(l=>o?l.url.includes("organic-performance")?n.organic:l.url.includes("paid-performance")?n.paid:l.url.includes("keyword-performance")?n.organic:!0:!1));const s=o&&(t(r.url)||a.some(l=>t(l.url))),i=c.jsx(Us,{url:o?r.url:void 0,title:r.title,icon:r.icon,isActive:!!s,disabled:!o,className:A(!o&&"opacity-50"),children:o&&c.jsx(La,{children:c.jsx(Fa,{children:a.map(l=>{const d=t(l.url);return c.jsx($a,{children:c.jsx(za,{asChild:!0,children:c.jsxs("a",{href:l.url,className:A("flex items-center gap-2 pl-4 transition-colors text-muted-foreground hover:bg-muted hover:text-foreground",d&&"bg-blue-50 text-gli-bluedark font-medium"),children:[c.jsx("span",{className:A(d?"text-gli-bluedark":"text-muted-foreground"),children:l.icon}),c.jsx("span",{className:A(d?"text-gli-bluedark":"text-muted-foreground"),children:l.title})]})})},l.title)})})})},r.title);return r.key==="priceMonster"&&!o?c.jsxs(Zn,{children:[c.jsx(Xn,{asChild:!0,children:c.jsx("div",{children:i})}),c.jsx(Ut,{side:"top",align:"center",children:"Coming soon"})]},r.title):i})})]}),c.jsx(Ta,{})]})}async function Wp(){var e,t,n,r,o,a;try{const s=await ni.accessToken();if(!s||s==="No token available")return{essentialInsights:!1,organic:!1,paid:!1,web:!1,priceMonster:!1,se_company_id:null};const l=(e=ri.jwtDecode(s)["https://cloud.golocal.com/org_metadata"])==null?void 0:e.metadata;return{essentialInsights:((t=l==null?void 0:l["essential-insights"])==null?void 0:t.enabled)===!0,organic:((n=l==null?void 0:l.organic)==null?void 0:n.enabled)===!0,paid:((r=l==null?void 0:l.paid)==null?void 0:r.enabled)===!0,web:((o=l==null?void 0:l.web)==null?void 0:o.enabled)===!0,priceMonster:((a=l==null?void 0:l["price-monster"])==null?void 0:a.enabled)===!0,se_company_id:(l==null?void 0:l.se_company_id)||null}}catch(s){return console.error("Error getting user permissions:",s),{essentialInsights:!1,organic:!1,paid:!1,web:!1,priceMonster:!1,se_company_id:null}}}const Up=({children:e,onLogout:t})=>c.jsx(Vr.Auth0Provider,{children:c.jsx(Pa,{children:c.jsxs("div",{className:"flex w-full",children:[c.jsx(qs,{}),c.jsxs(Oa,{className:"flex-1 flex flex-col min-w-0",children:[c.jsx(Ws,{onLogout:t}),c.jsx("main",{className:"flex-1 bg-white",id:"page-content",children:e})]})]})})});exports.AppHeader=Ws;exports.AppSidebar=qs;exports.Button=Dt;exports.Card=Dp;exports.CardAction=$p;exports.CardContent=zp;exports.CardDescription=Fp;exports.CardFooter=Hp;exports.CardHeader=Ip;exports.CardTitle=Lp;exports.CollapsibleSection=Us;exports.DropdownMenu=$s;exports.DropdownMenuCheckboxItem=Ap;exports.DropdownMenuContent=Hs;exports.DropdownMenuGroup=kp;exports.DropdownMenuItem=Cn;exports.DropdownMenuLabel=Vs;exports.DropdownMenuPortal=Mp;exports.DropdownMenuRadioGroup=Pp;exports.DropdownMenuRadioItem=Np;exports.DropdownMenuSeparator=Bs;exports.DropdownMenuShortcut=_p;exports.DropdownMenuSub=Tp;exports.DropdownMenuSubContent=jp;exports.DropdownMenuSubTrigger=Op;exports.DropdownMenuTrigger=zs;exports.GLICloudProvider=Up;exports.Input=Rn;exports.PermissionsProvider=Bp;exports.ProfileDropdown=Gs;exports.Separator=jt;exports.Sheet=Ko;exports.SheetClose=Jl;exports.SheetContent=On;exports.SheetDescription=In;exports.SheetFooter=Zo;exports.SheetHeader=jn;exports.SheetOverlay=Tn;exports.SheetPortal=Yo;exports.SheetTitle=Dn;exports.SheetTrigger=ql;exports.Sidebar=Na;exports.SidebarContent=Da;exports.SidebarFooter=Ld;exports.SidebarGroup=Ia;exports.SidebarGroupAction=zd;exports.SidebarGroupContent=La;exports.SidebarGroupLabel=$d;exports.SidebarHeader=ja;exports.SidebarInput=Id;exports.SidebarInset=Oa;exports.SidebarMenu=Hd;exports.SidebarMenuAction=Wd;exports.SidebarMenuBadge=Ud;exports.SidebarMenuButton=Gd;exports.SidebarMenuItem=Vd;exports.SidebarMenuSkeleton=Kd;exports.SidebarMenuSub=Fa;exports.SidebarMenuSubButton=za;exports.SidebarMenuSubItem=$a;exports.SidebarProvider=Pa;exports.SidebarRail=Ta;exports.SidebarSeparator=Fd;exports.SidebarTrigger=_a;exports.Skeleton=mn;exports.Tooltip=Zn;exports.TooltipContent=Ut;exports.TooltipProvider=Yn;exports.TooltipTrigger=Xn;exports.buttonVariants=fo;exports.getUserPermissions=Wp;exports.useActiveRoute=Ks;exports.useIsMobile=uo;exports.usePermissions=Zs;exports.useProductAccess=Xs;exports.useSidebar=ct;
|
|
251
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return u.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},ku="DialogDescriptionWarning",Ru=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${zo(ku).contentName}}.`;return u.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Au=ko,Nu=Ao,_u=_o,Ho=Po,Vo=To,Bo=Oo,Wo=Io,Go=Fo;const Uo=Au,Pu=Nu,Tu=Go,Ko=_u,Pn=u.forwardRef(({className:e,...t},n)=>c.jsx(Ho,{className:A("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}));Pn.displayName=Ho.displayName;const ju=Sn("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"}}),Tn=u.forwardRef(({side:e="right",className:t,children:n,...r},o)=>c.jsxs(Ko,{children:[c.jsx(Pn,{}),c.jsxs(Vo,{ref:o,className:A(ju({side:e}),t),...r,children:[n,c.jsxs(Go,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[c.jsx(il,{className:"h-4 w-4"}),c.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Tn.displayName=Vo.displayName;const jn=({className:e,...t})=>c.jsx("div",{className:A("flex flex-col space-y-2 text-center sm:text-left",e),...t});jn.displayName="SheetHeader";const Yo=({className:e,...t})=>c.jsx("div",{className:A("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Yo.displayName="SheetFooter";const On=u.forwardRef(({className:e,...t},n)=>c.jsx(Bo,{ref:n,className:A("text-lg font-semibold text-foreground",e),...t}));On.displayName=Bo.displayName;const Dn=u.forwardRef(({className:e,...t},n)=>c.jsx(Wo,{ref:n,className:A("text-sm text-muted-foreground",e),...t}));Dn.displayName=Wo.displayName;function pn({className:e,...t}){return c.jsx("div",{className:A("animate-pulse rounded-md bg-muted",e),...t})}const Ou=["top","right","bottom","left"],Re=Math.min,se=Math.max,Rt=Math.round,Ct=Math.floor,me=e=>({x:e,y:e}),Du={left:"right",right:"left",bottom:"top",top:"bottom"},Iu={start:"end",end:"start"};function mn(e,t,n){return se(e,Re(t,n))}function we(e,t){return typeof e=="function"?e(t):e}function ye(e){return e.split("-")[0]}function Ye(e){return e.split("-")[1]}function In(e){return e==="x"?"y":"x"}function Ln(e){return e==="y"?"height":"width"}function pe(e){return["top","bottom"].includes(ye(e))?"y":"x"}function Fn(e){return In(pe(e))}function Lu(e,t,n){n===void 0&&(n=!1);const r=Ye(e),o=Fn(e),a=Ln(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=At(s)),[s,At(s)]}function Fu(e){const t=At(e);return[hn(e),t,hn(t)]}function hn(e){return e.replace(/start|end/g,t=>Iu[t])}function $u(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:s;default:return[]}}function zu(e,t,n,r){const o=Ye(e);let a=$u(ye(e),n==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(hn)))),a}function At(e){return e.replace(/left|right|bottom|top/g,t=>Du[t])}function Hu(e){return{top:0,right:0,bottom:0,left:0,...e}}function Zo(e){return typeof e!="number"?Hu(e):{top:e,right:e,bottom:e,left:e}}function Nt(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 Pr(e,t,n){let{reference:r,floating:o}=e;const a=pe(t),s=Fn(t),i=Ln(s),l=ye(t),d=a==="y",f=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,m=r[i]/2-o[i]/2;let g;switch(l){case"top":g={x:f,y:r.y-o.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:p};break;case"left":g={x:r.x-o.width,y:p};break;default:g={x:r.x,y:r.y}}switch(Ye(t)){case"start":g[s]-=m*(n&&d?-1:1);break;case"end":g[s]+=m*(n&&d?-1:1);break}return g}const Vu=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,i=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=Pr(d,r,l),m=r,g={},b=0;for(let h=0;h<i.length;h++){const{name:v,fn:x}=i[h],{x:y,y:C,data:S,reset:k}=await x({x:f,y:p,initialPlacement:r,placement:m,strategy:o,middlewareData:g,rects:d,platform:s,elements:{reference:e,floating:t}});f=y??f,p=C??p,g={...g,[v]:{...g[v],...S}},k&&b<=50&&(b++,typeof k=="object"&&(k.placement&&(m=k.placement),k.rects&&(d=k.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):k.rects),{x:f,y:p}=Pr(d,m,l)),h=-1)}return{x:f,y:p,placement:m,strategy:o,middlewareData:g}};async function tt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:s,elements:i,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:m=!1,padding:g=0}=we(t,e),b=Zo(g),v=i[m?p==="floating"?"reference":"floating":p],x=Nt(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(v)))==null||n?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:d,rootBoundary:f,strategy:l})),y=p==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),S=await(a.isElement==null?void 0:a.isElement(C))?await(a.getScale==null?void 0:a.getScale(C))||{x:1,y:1}:{x:1,y:1},k=Nt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:y,offsetParent:C,strategy:l}):y);return{top:(x.top-k.top+b.top)/S.y,bottom:(k.bottom-x.bottom+b.bottom)/S.y,left:(x.left-k.left+b.left)/S.x,right:(k.right-x.right+b.right)/S.x}}const Bu=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:i,middlewareData:l}=t,{element:d,padding:f=0}=we(e,t)||{};if(d==null)return{};const p=Zo(f),m={x:n,y:r},g=Fn(o),b=Ln(g),h=await s.getDimensions(d),v=g==="y",x=v?"top":"left",y=v?"bottom":"right",C=v?"clientHeight":"clientWidth",S=a.reference[b]+a.reference[g]-m[g]-a.floating[b],k=m[g]-a.reference[g],T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let R=T?T[C]:0;(!R||!await(s.isElement==null?void 0:s.isElement(T)))&&(R=i.floating[C]||a.floating[b]);const M=S/2-k/2,I=R/2-h[b]/2-1,z=Re(p[x],I),K=Re(p[y],I),G=z,U=R-h[b]-K,H=R/2-h[b]/2+M,Z=mn(G,H,U),D=!l.arrow&&Ye(o)!=null&&H!==Z&&a.reference[b]/2-(H<G?z:K)-h[b]/2<0,B=D?H<G?H-G:H-U:0;return{[g]:m[g]+B,data:{[g]:Z,centerOffset:H-Z-B,...D&&{alignmentOffset:B}},reset:D}}}),Wu=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:l,elements:d}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:h=!0,...v}=we(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const x=ye(o),y=pe(i),C=ye(i)===i,S=await(l.isRTL==null?void 0:l.isRTL(d.floating)),k=m||(C||!h?[At(i)]:Fu(i)),T=b!=="none";!m&&T&&k.push(...zu(i,h,b,S));const R=[i,...k],M=await tt(t,v),I=[];let z=((r=a.flip)==null?void 0:r.overflows)||[];if(f&&I.push(M[x]),p){const H=Lu(o,s,S);I.push(M[H[0]],M[H[1]])}if(z=[...z,{placement:o,overflows:I}],!I.every(H=>H<=0)){var K,G;const H=(((K=a.flip)==null?void 0:K.index)||0)+1,Z=R[H];if(Z&&(!(p==="alignment"?y!==pe(Z):!1)||z.every(E=>E.overflows[0]>0&&pe(E.placement)===y)))return{data:{index:H,overflows:z},reset:{placement:Z}};let D=(G=z.filter(B=>B.overflows[0]<=0).sort((B,E)=>B.overflows[1]-E.overflows[1])[0])==null?void 0:G.placement;if(!D)switch(g){case"bestFit":{var U;const B=(U=z.filter(E=>{if(T){const P=pe(E.placement);return P===y||P==="y"}return!0}).map(E=>[E.placement,E.overflows.filter(P=>P>0).reduce((P,w)=>P+w,0)]).sort((E,P)=>E[1]-P[1])[0])==null?void 0:U[0];B&&(D=B);break}case"initialPlacement":D=i;break}if(o!==D)return{reset:{placement:D}}}return{}}}};function Tr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function jr(e){return Ou.some(t=>e[t]>=0)}const Gu=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=we(e,t);switch(r){case"referenceHidden":{const a=await tt(t,{...o,elementContext:"reference"}),s=Tr(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:jr(s)}}}case"escaped":{const a=await tt(t,{...o,altBoundary:!0}),s=Tr(a,n.floating);return{data:{escapedOffsets:s,escaped:jr(s)}}}default:return{}}}}};async function Uu(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=ye(n),i=Ye(n),l=pe(n)==="y",d=["left","top"].includes(s)?-1:1,f=a&&l?-1:1,p=we(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return i&&typeof b=="number"&&(g=i==="end"?b*-1:b),l?{x:g*f,y:m*d}:{x:m*d,y:g*f}}const Ku=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:s,middlewareData:i}=t,l=await Uu(t,e);return s===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:s}}}}},Yu=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:v=>{let{x,y}=v;return{x,y}}},...l}=we(e,t),d={x:n,y:r},f=await tt(t,l),p=pe(ye(o)),m=In(p);let g=d[m],b=d[p];if(a){const v=m==="y"?"top":"left",x=m==="y"?"bottom":"right",y=g+f[v],C=g-f[x];g=mn(y,g,C)}if(s){const v=p==="y"?"top":"left",x=p==="y"?"bottom":"right",y=b+f[v],C=b-f[x];b=mn(y,b,C)}const h=i.fn({...t,[m]:g,[p]:b});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[m]:a,[p]:s}}}}}},Zu=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:l=!0,crossAxis:d=!0}=we(e,t),f={x:n,y:r},p=pe(o),m=In(p);let g=f[m],b=f[p];const h=we(i,t),v=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const C=m==="y"?"height":"width",S=a.reference[m]-a.floating[C]+v.mainAxis,k=a.reference[m]+a.reference[C]-v.mainAxis;g<S?g=S:g>k&&(g=k)}if(d){var x,y;const C=m==="y"?"width":"height",S=["top","left"].includes(ye(o)),k=a.reference[p]-a.floating[C]+(S&&((x=s.offset)==null?void 0:x[p])||0)+(S?0:v.crossAxis),T=a.reference[p]+a.reference[C]+(S?0:((y=s.offset)==null?void 0:y[p])||0)-(S?v.crossAxis:0);b<k?b=k:b>T&&(b=T)}return{[m]:g,[p]:b}}}},qu=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:s,elements:i}=t,{apply:l=()=>{},...d}=we(e,t),f=await tt(t,d),p=ye(o),m=Ye(o),g=pe(o)==="y",{width:b,height:h}=a.floating;let v,x;p==="top"||p==="bottom"?(v=p,x=m===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(x=p,v=m==="end"?"top":"bottom");const y=h-f.top-f.bottom,C=b-f.left-f.right,S=Re(h-f[v],y),k=Re(b-f[x],C),T=!t.middlewareData.shift;let R=S,M=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(M=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(R=y),T&&!m){const z=se(f.left,0),K=se(f.right,0),G=se(f.top,0),U=se(f.bottom,0);g?M=b-2*(z!==0||K!==0?z+K:se(f.left,f.right)):R=h-2*(G!==0||U!==0?G+U:se(f.top,f.bottom))}await l({...t,availableWidth:M,availableHeight:R});const I=await s.getDimensions(i.floating);return b!==I.width||h!==I.height?{reset:{rects:!0}}:{}}}};function $t(){return typeof window<"u"}function Ze(e){return qo(e)?(e.nodeName||"").toLowerCase():"#document"}function ie(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ve(e){var t;return(t=(qo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function qo(e){return $t()?e instanceof Node||e instanceof ie(e).Node:!1}function le(e){return $t()?e instanceof Element||e instanceof ie(e).Element:!1}function ge(e){return $t()?e instanceof HTMLElement||e instanceof ie(e).HTMLElement:!1}function Or(e){return!$t()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ie(e).ShadowRoot}function it(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ue(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Xu(e){return["table","td","th"].includes(Ze(e))}function zt(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function $n(e){const t=zn(),n=le(e)?ue(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 Ju(e){let t=Ae(e);for(;ge(t)&&!Be(t);){if($n(t))return t;if(zt(t))return null;t=Ae(t)}return null}function zn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Be(e){return["html","body","#document"].includes(Ze(e))}function ue(e){return ie(e).getComputedStyle(e)}function Ht(e){return le(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ae(e){if(Ze(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Or(e)&&e.host||ve(e);return Or(t)?t.host:t}function Xo(e){const t=Ae(e);return Be(t)?e.ownerDocument?e.ownerDocument.body:e.body:ge(t)&&it(t)?t:Xo(t)}function nt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Xo(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),s=ie(o);if(a){const i=gn(s);return t.concat(s,s.visualViewport||[],it(o)?o:[],i&&n?nt(i):[])}return t.concat(o,nt(o,[],n))}function gn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Jo(e){const t=ue(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ge(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:r,i=Rt(n)!==a||Rt(r)!==s;return i&&(n=a,r=s),{width:n,height:r,$:i}}function Hn(e){return le(e)?e:e.contextElement}function He(e){const t=Hn(e);if(!ge(t))return me(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Jo(t);let s=(a?Rt(n.width):n.width)/r,i=(a?Rt(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const Qu=me(0);function Qo(e){const t=ie(e);return!zn()||!t.visualViewport?Qu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ed(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ie(e)?!1:t}function je(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Hn(e);let s=me(1);t&&(r?le(r)&&(s=He(r)):s=He(e));const i=ed(a,n,r)?Qo(a):me(0);let l=(o.left+i.x)/s.x,d=(o.top+i.y)/s.y,f=o.width/s.x,p=o.height/s.y;if(a){const m=ie(a),g=r&&le(r)?ie(r):r;let b=m,h=gn(b);for(;h&&r&&g!==b;){const v=He(h),x=h.getBoundingClientRect(),y=ue(h),C=x.left+(h.clientLeft+parseFloat(y.paddingLeft))*v.x,S=x.top+(h.clientTop+parseFloat(y.paddingTop))*v.y;l*=v.x,d*=v.y,f*=v.x,p*=v.y,l+=C,d+=S,b=ie(h),h=gn(b)}}return Nt({width:f,height:p,x:l,y:d})}function Vn(e,t){const n=Ht(e).scrollLeft;return t?t.left+n:je(ve(e)).left+n}function ea(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Vn(e,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function td(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",s=ve(r),i=t?zt(t.floating):!1;if(r===s||i&&a)return n;let l={scrollLeft:0,scrollTop:0},d=me(1);const f=me(0),p=ge(r);if((p||!p&&!a)&&((Ze(r)!=="body"||it(s))&&(l=Ht(r)),ge(r))){const g=je(r);d=He(r),f.x=g.x+r.clientLeft,f.y=g.y+r.clientTop}const m=s&&!p&&!a?ea(s,l,!0):me(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-l.scrollLeft*d.x+f.x+m.x,y:n.y*d.y-l.scrollTop*d.y+f.y+m.y}}function nd(e){return Array.from(e.getClientRects())}function rd(e){const t=ve(e),n=Ht(e),r=e.ownerDocument.body,o=se(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=se(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Vn(e);const i=-n.scrollTop;return ue(r).direction==="rtl"&&(s+=se(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:i}}function od(e,t){const n=ie(e),r=ve(e),o=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,i=0,l=0;if(o){a=o.width,s=o.height;const d=zn();(!d||d&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:i,y:l}}function ad(e,t){const n=je(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=ge(e)?He(e):me(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,l=o*a.x,d=r*a.y;return{width:s,height:i,x:l,y:d}}function Dr(e,t,n){let r;if(t==="viewport")r=od(e,n);else if(t==="document")r=rd(ve(e));else if(le(t))r=ad(t,n);else{const o=Qo(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Nt(r)}function ta(e,t){const n=Ae(e);return n===t||!le(n)||Be(n)?!1:ue(n).position==="fixed"||ta(n,t)}function sd(e,t){const n=t.get(e);if(n)return n;let r=nt(e,[],!1).filter(i=>le(i)&&Ze(i)!=="body"),o=null;const a=ue(e).position==="fixed";let s=a?Ae(e):e;for(;le(s)&&!Be(s);){const i=ue(s),l=$n(s);!l&&i.position==="fixed"&&(o=null),(a?!l&&!o:!l&&i.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||it(s)&&!l&&ta(e,s))?r=r.filter(f=>f!==s):o=i,s=Ae(s)}return t.set(e,r),r}function id(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?zt(t)?[]:sd(t,this._c):[].concat(n),r],i=s[0],l=s.reduce((d,f)=>{const p=Dr(t,f,o);return d.top=se(p.top,d.top),d.right=Re(p.right,d.right),d.bottom=Re(p.bottom,d.bottom),d.left=se(p.left,d.left),d},Dr(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function cd(e){const{width:t,height:n}=Jo(e);return{width:t,height:n}}function ld(e,t,n){const r=ge(t),o=ve(t),a=n==="fixed",s=je(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const l=me(0);function d(){l.x=Vn(o)}if(r||!r&&!a)if((Ze(t)!=="body"||it(o))&&(i=Ht(t)),r){const g=je(t,!0,a,t);l.x=g.x+t.clientLeft,l.y=g.y+t.clientTop}else o&&d();a&&!r&&o&&d();const f=o&&!r&&!a?ea(o,i):me(0),p=s.left+i.scrollLeft-l.x-f.x,m=s.top+i.scrollTop-l.y-f.y;return{x:p,y:m,width:s.width,height:s.height}}function on(e){return ue(e).position==="static"}function Ir(e,t){if(!ge(e)||ue(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ve(e)===n&&(n=n.ownerDocument.body),n}function na(e,t){const n=ie(e);if(zt(e))return n;if(!ge(e)){let o=Ae(e);for(;o&&!Be(o);){if(le(o)&&!on(o))return o;o=Ae(o)}return n}let r=Ir(e,t);for(;r&&Xu(r)&&on(r);)r=Ir(r,t);return r&&Be(r)&&on(r)&&!$n(r)?n:r||Ju(e)||n}const ud=async function(e){const t=this.getOffsetParent||na,n=this.getDimensions,r=await n(e.floating);return{reference:ld(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function dd(e){return ue(e).direction==="rtl"}const fd={convertOffsetParentRelativeRectToViewportRelativeRect:td,getDocumentElement:ve,getClippingRect:id,getOffsetParent:na,getElementRects:ud,getClientRects:nd,getDimensions:cd,getScale:He,isElement:le,isRTL:dd};function ra(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function pd(e,t){let n=null,r;const o=ve(e);function a(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function s(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),a();const d=e.getBoundingClientRect(),{left:f,top:p,width:m,height:g}=d;if(i||t(),!m||!g)return;const b=Ct(p),h=Ct(o.clientWidth-(f+m)),v=Ct(o.clientHeight-(p+g)),x=Ct(f),C={rootMargin:-b+"px "+-h+"px "+-v+"px "+-x+"px",threshold:se(0,Re(1,l))||1};let S=!0;function k(T){const R=T[0].intersectionRatio;if(R!==l){if(!S)return s();R?s(!1,R):r=setTimeout(()=>{s(!1,1e-7)},1e3)}R===1&&!ra(d,e.getBoundingClientRect())&&s(),S=!1}try{n=new IntersectionObserver(k,{...C,root:o.ownerDocument})}catch{n=new IntersectionObserver(k,C)}n.observe(e)}return s(!0),a}function md(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,d=Hn(e),f=o||a?[...d?nt(d):[],...nt(t)]:[];f.forEach(x=>{o&&x.addEventListener("scroll",n,{passive:!0}),a&&x.addEventListener("resize",n)});const p=d&&i?pd(d,n):null;let m=-1,g=null;s&&(g=new ResizeObserver(x=>{let[y]=x;y&&y.target===d&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var C;(C=g)==null||C.observe(t)})),n()}),d&&!l&&g.observe(d),g.observe(t));let b,h=l?je(e):null;l&&v();function v(){const x=je(e);h&&!ra(h,x)&&n(),h=x,b=requestAnimationFrame(v)}return n(),()=>{var x;f.forEach(y=>{o&&y.removeEventListener("scroll",n),a&&y.removeEventListener("resize",n)}),p==null||p(),(x=g)==null||x.disconnect(),g=null,l&&cancelAnimationFrame(b)}}const hd=Ku,gd=Yu,vd=Wu,bd=qu,xd=Gu,Lr=Bu,wd=Zu,yd=(e,t,n)=>{const r=new Map,o={platform:fd,...n},a={...o.platform,_c:r};return Vu(e,t,{...o,platform:a})};var Cd=typeof document<"u",Sd=function(){},Mt=Cd?q.useLayoutEffect:Sd;function _t(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(!_t(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!_t(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function oa(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Fr(e,t){const n=oa(e);return Math.round(t*n)/n}function an(e){const t=u.useRef(e);return Mt(()=>{t.current=e}),t}function Ed(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:l,open:d}=e,[f,p]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=u.useState(r);_t(m,r)||g(r);const[b,h]=u.useState(null),[v,x]=u.useState(null),y=u.useCallback(E=>{E!==T.current&&(T.current=E,h(E))},[]),C=u.useCallback(E=>{E!==R.current&&(R.current=E,x(E))},[]),S=a||b,k=s||v,T=u.useRef(null),R=u.useRef(null),M=u.useRef(f),I=l!=null,z=an(l),K=an(o),G=an(d),U=u.useCallback(()=>{if(!T.current||!R.current)return;const E={placement:t,strategy:n,middleware:m};K.current&&(E.platform=K.current),yd(T.current,R.current,E).then(P=>{const w={...P,isPositioned:G.current!==!1};H.current&&!_t(M.current,w)&&(M.current=w,Br.flushSync(()=>{p(w)}))})},[m,t,n,K,G]);Mt(()=>{d===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,p(E=>({...E,isPositioned:!1})))},[d]);const H=u.useRef(!1);Mt(()=>(H.current=!0,()=>{H.current=!1}),[]),Mt(()=>{if(S&&(T.current=S),k&&(R.current=k),S&&k){if(z.current)return z.current(S,k,U);U()}},[S,k,U,z,I]);const Z=u.useMemo(()=>({reference:T,floating:R,setReference:y,setFloating:C}),[y,C]),D=u.useMemo(()=>({reference:S,floating:k}),[S,k]),B=u.useMemo(()=>{const E={position:n,left:0,top:0};if(!D.floating)return E;const P=Fr(D.floating,f.x),w=Fr(D.floating,f.y);return i?{...E,transform:"translate("+P+"px, "+w+"px)",...oa(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:P,top:w}},[n,i,D.floating,f.x,f.y]);return u.useMemo(()=>({...f,update:U,refs:Z,elements:D,floatingStyles:B}),[f,U,Z,D,B])}const Md=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?Lr({element:r.current,padding:o}).fn(n):{}:r?Lr({element:r,padding:o}).fn(n):{}}}},kd=(e,t)=>({...hd(e),options:[e,t]}),Rd=(e,t)=>({...gd(e),options:[e,t]}),Ad=(e,t)=>({...wd(e),options:[e,t]}),Nd=(e,t)=>({...vd(e),options:[e,t]}),_d=(e,t)=>({...bd(e),options:[e,t]}),Pd=(e,t)=>({...xd(e),options:[e,t]}),Td=(e,t)=>({...Md(e),options:[e,t]});var jd="Arrow",aa=u.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return c.jsx(Q.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});aa.displayName=jd;var Od=aa;function Dd(e){const[t,n]=u.useState(void 0);return ke(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,i;if("borderBoxSize"in a){const l=a.borderBoxSize,d=Array.isArray(l)?l[0]:l;s=d.inlineSize,i=d.blockSize}else s=e.offsetWidth,i=e.offsetHeight;n({width:s,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Bn="Popper",[sa,Vt]=Oe(Bn),[Id,ia]=sa(Bn),ca=e=>{const{__scopePopper:t,children:n}=e,[r,o]=u.useState(null);return c.jsx(Id,{scope:t,anchor:r,onAnchorChange:o,children:n})};ca.displayName=Bn;var la="PopperAnchor",ua=u.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=ia(la,n),s=u.useRef(null),i=ne(t,s);return u.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:c.jsx(Q.div,{...o,ref:i})});ua.displayName=la;var Wn="PopperContent",[Ld,Fd]=sa(Wn),da=u.forwardRef((e,t)=>{var W,X,J,ae,Se,_e;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:l=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:g="optimized",onPlaced:b,...h}=e,v=ia(Wn,n),[x,y]=u.useState(null),C=ne(t,qe=>y(qe)),[S,k]=u.useState(null),T=Dd(S),R=(T==null?void 0:T.width)??0,M=(T==null?void 0:T.height)??0,I=r+(a!=="center"?"-"+a:""),z=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},K=Array.isArray(d)?d:[d],G=K.length>0,U={padding:z,boundary:K.filter(zd),altBoundary:G},{refs:H,floatingStyles:Z,placement:D,isPositioned:B,middlewareData:E}=Ed({strategy:"fixed",placement:I,whileElementsMounted:(...qe)=>md(...qe,{animationFrame:g==="always"}),elements:{reference:v.anchor},middleware:[kd({mainAxis:o+M,alignmentAxis:s}),l&&Rd({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Ad():void 0,...U}),l&&Nd({...U}),_d({...U,apply:({elements:qe,rects:or,availableWidth:Xs,availableHeight:Js})=>{const{width:Qs,height:ei}=or.reference,pt=qe.floating.style;pt.setProperty("--radix-popper-available-width",`${Xs}px`),pt.setProperty("--radix-popper-available-height",`${Js}px`),pt.setProperty("--radix-popper-anchor-width",`${Qs}px`),pt.setProperty("--radix-popper-anchor-height",`${ei}px`)}}),S&&Td({element:S,padding:i}),Hd({arrowWidth:R,arrowHeight:M}),m&&Pd({strategy:"referenceHidden",...U})]}),[P,w]=ma(D),j=he(b);ke(()=>{B&&(j==null||j())},[B,j]);const F=(W=E.arrow)==null?void 0:W.x,$=(X=E.arrow)==null?void 0:X.y,Y=((J=E.arrow)==null?void 0:J.centerOffset)!==0,[ee,oe]=u.useState();return ke(()=>{x&&oe(window.getComputedStyle(x).zIndex)},[x]),c.jsx("div",{ref:H.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:B?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[(ae=E.transformOrigin)==null?void 0:ae.x,(Se=E.transformOrigin)==null?void 0:Se.y].join(" "),...((_e=E.hide)==null?void 0:_e.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(Ld,{scope:n,placedSide:P,onArrowChange:k,arrowX:F,arrowY:$,shouldHideArrow:Y,children:c.jsx(Q.div,{"data-side":P,"data-align":w,...h,ref:C,style:{...h.style,animation:B?void 0:"none"}})})})});da.displayName=Wn;var fa="PopperArrow",$d={top:"bottom",right:"left",bottom:"top",left:"right"},pa=u.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=Fd(fa,r),s=$d[a.placedSide];return c.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:c.jsx(Od,{...o,ref:n,style:{...o.style,display:"block"}})})});pa.displayName=fa;function zd(e){return e!==null}var Hd=e=>({name:"transformOrigin",options:e,fn(t){var v,x,y;const{placement:n,rects:r,middlewareData:o}=t,s=((v=o.arrow)==null?void 0:v.centerOffset)!==0,i=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[d,f]=ma(n),p={start:"0%",center:"50%",end:"100%"}[f],m=(((x=o.arrow)==null?void 0:x.x)??0)+i/2,g=(((y=o.arrow)==null?void 0:y.y)??0)+l/2;let b="",h="";return d==="bottom"?(b=s?p:`${m}px`,h=`${-l}px`):d==="top"?(b=s?p:`${m}px`,h=`${r.floating.height+l}px`):d==="right"?(b=`${-l}px`,h=s?p:`${g}px`):d==="left"&&(b=`${r.floating.width+l}px`,h=s?p:`${g}px`),{data:{x:b,y:h}}}});function ma(e){const[t,n="center"]=e.split("-");return[t,n]}var Gn=ca,ha=ua,ga=da,va=pa,Vd=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"}),Bd="VisuallyHidden",ba=u.forwardRef((e,t)=>c.jsx(Q.span,{...e,ref:t,style:{...Vd,...e.style}}));ba.displayName=Bd;var Wd=ba,[Bt,N0]=Oe("Tooltip",[Vt]),Wt=Vt(),xa="TooltipProvider",Gd=700,vn="tooltip.open",[Ud,Un]=Bt(xa),wa=e=>{const{__scopeTooltip:t,delayDuration:n=Gd,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,s=u.useRef(!0),i=u.useRef(!1),l=u.useRef(0);return u.useEffect(()=>{const d=l.current;return()=>window.clearTimeout(d)},[]),c.jsx(Ud,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:u.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:u.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:u.useCallback(d=>{i.current=d},[]),disableHoverableContent:o,children:a})};wa.displayName=xa;var rt="Tooltip",[Kd,Gt]=Bt(rt),ya=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,l=Un(rt,e.__scopeTooltip),d=Wt(t),[f,p]=u.useState(null),m=xe(),g=u.useRef(0),b=s??l.disableHoverableContent,h=i??l.delayDuration,v=u.useRef(!1),[x,y]=st({prop:r,defaultProp:o??!1,onChange:R=>{R?(l.onOpen(),document.dispatchEvent(new CustomEvent(vn))):l.onClose(),a==null||a(R)},caller:rt}),C=u.useMemo(()=>x?v.current?"delayed-open":"instant-open":"closed",[x]),S=u.useCallback(()=>{window.clearTimeout(g.current),g.current=0,v.current=!1,y(!0)},[y]),k=u.useCallback(()=>{window.clearTimeout(g.current),g.current=0,y(!1)},[y]),T=u.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{v.current=!0,y(!0),g.current=0},h)},[h,y]);return u.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),c.jsx(Gn,{...d,children:c.jsx(Kd,{scope:t,contentId:m,open:x,stateAttribute:C,trigger:f,onTriggerChange:p,onTriggerEnter:u.useCallback(()=>{l.isOpenDelayedRef.current?T():S()},[l.isOpenDelayedRef,T,S]),onTriggerLeave:u.useCallback(()=>{b?k():(window.clearTimeout(g.current),g.current=0)},[k,b]),onOpen:S,onClose:k,disableHoverableContent:b,children:n})})};ya.displayName=rt;var bn="TooltipTrigger",Ca=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Gt(bn,n),a=Un(bn,n),s=Wt(n),i=u.useRef(null),l=ne(t,i,o.onTriggerChange),d=u.useRef(!1),f=u.useRef(!1),p=u.useCallback(()=>d.current=!1,[]);return u.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),c.jsx(ha,{asChild:!0,...s,children:c.jsx(Q.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:O(e.onPointerMove,m=>{m.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:O(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:O(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:O(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:O(e.onBlur,o.onClose),onClick:O(e.onClick,o.onClose)})})});Ca.displayName=bn;var Yd="TooltipPortal",[_0,Zd]=Bt(Yd,{forceMount:void 0}),We="TooltipContent",Sa=u.forwardRef((e,t)=>{const n=Zd(We,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,s=Gt(We,e.__scopeTooltip);return c.jsx(Ce,{present:r||s.open,children:s.disableHoverableContent?c.jsx(Ea,{side:o,...a,ref:t}):c.jsx(qd,{side:o,...a,ref:t})})}),qd=u.forwardRef((e,t)=>{const n=Gt(We,e.__scopeTooltip),r=Un(We,e.__scopeTooltip),o=u.useRef(null),a=ne(t,o),[s,i]=u.useState(null),{trigger:l,onClose:d}=n,f=o.current,{onPointerInTransitChange:p}=r,m=u.useCallback(()=>{i(null),p(!1)},[p]),g=u.useCallback((b,h)=>{const v=b.currentTarget,x={x:b.clientX,y:b.clientY},y=tf(x,v.getBoundingClientRect()),C=nf(x,y),S=rf(h.getBoundingClientRect()),k=af([...C,...S]);i(k),p(!0)},[p]);return u.useEffect(()=>()=>m(),[m]),u.useEffect(()=>{if(l&&f){const b=v=>g(v,f),h=v=>g(v,l);return l.addEventListener("pointerleave",b),f.addEventListener("pointerleave",h),()=>{l.removeEventListener("pointerleave",b),f.removeEventListener("pointerleave",h)}}},[l,f,g,m]),u.useEffect(()=>{if(s){const b=h=>{const v=h.target,x={x:h.clientX,y:h.clientY},y=(l==null?void 0:l.contains(v))||(f==null?void 0:f.contains(v)),C=!of(x,s);y?m():C&&(m(),d())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,f,s,d,m]),c.jsx(Ea,{...e,ref:a})}),[Xd,Jd]=Bt(rt,{isInside:!1}),Qd=ii("TooltipContent"),Ea=u.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,l=Gt(We,n),d=Wt(n),{onClose:f}=l;return u.useEffect(()=>(document.addEventListener(vn,f),()=>document.removeEventListener(vn,f)),[f]),u.useEffect(()=>{if(l.trigger){const p=m=>{const g=m.target;g!=null&&g.contains(l.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[l.trigger,f]),c.jsx(It,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:c.jsxs(ga,{"data-state":l.stateAttribute,...d,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(Qd,{children:r}),c.jsx(Xd,{scope:n,isInside:!0,children:c.jsx(Wd,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Sa.displayName=We;var Ma="TooltipArrow",ef=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Wt(n);return Jd(Ma,n).isInside?null:c.jsx(va,{...o,...r,ref:t})});ef.displayName=Ma;function tf(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function nf(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 rf(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 of(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],l=t[s],d=i.x,f=i.y,p=l.x,m=l.y;f>r!=m>r&&n<(p-d)*(r-f)/(m-f)+d&&(o=!o)}return o}function af(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),sf(t)}function sf(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],s=n[n.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var cf=wa,lf=ya,uf=Ca,ka=Sa;const Kn=cf,Yn=lf,Zn=uf,Ut=u.forwardRef(({className:e,sideOffset:t=4,...n},r)=>c.jsx(ka,{ref:r,sideOffset:t,className:A("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}));Ut.displayName=ka.displayName;const df="sidebar_state",ff=60*60*24*7,pf="16rem",mf="18rem",hf="3rem",gf="b",Ra=u.createContext(null);function ct(){const e=u.useContext(Ra);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function Aa({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:a,...s}){const i=lo(),[l,d]=u.useState(!1),[f,p]=u.useState(e),m=t??f,g=u.useCallback(x=>{const y=typeof x=="function"?x(m):x;n?n(y):p(y),document.cookie=`${df}=${y}; path=/; max-age=${ff}`},[n,m]),b=u.useCallback(()=>i?d(x=>!x):g(x=>!x),[i,g,d]);u.useEffect(()=>{const x=y=>{y.key===gf&&(y.metaKey||y.ctrlKey)&&(y.preventDefault(),b())};return window.addEventListener("keydown",x),()=>window.removeEventListener("keydown",x)},[b]);const h=m?"expanded":"collapsed",v=u.useMemo(()=>({state:h,open:m,setOpen:g,isMobile:i,openMobile:l,setOpenMobile:d,toggleSidebar:b}),[h,m,g,i,l,d,b]);return c.jsx(Ra.Provider,{value:v,children:c.jsx(Kn,{delayDuration:0,children:c.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":pf,"--sidebar-width-icon":hf,...o},className:A("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",r),...s,children:a})})})}function Na({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...a}){const{isMobile:s,state:i,openMobile:l,setOpenMobile:d}=ct();return n==="none"?c.jsx("div",{"data-slot":"sidebar",className:A("bg-white text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",r),...a,children:o}):s?c.jsx(Uo,{open:l,onOpenChange:d,...a,children:c.jsxs(Tn,{"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":mf},side:e,children:[c.jsxs(jn,{className:"sr-only",children:[c.jsx(On,{children:"Sidebar"}),c.jsx(Dn,{children:"Displays the mobile sidebar."})]}),c.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):c.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":i,"data-collapsible":i==="collapsed"?n:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:[c.jsx("div",{"data-slot":"sidebar-gap",className:A("relative w-(--sidebar-width) bg-white transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),c.jsx("div",{"data-slot":"sidebar-container",className:A("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...a,children:c.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-white group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col px-1 py-2 group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:o})})]})}function _a({className:e,onClick:t,...n}){const{toggleSidebar:r}=ct();return c.jsxs(Dt,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:A("size-7",e),onClick:o=>{t==null||t(o),r()},...n,children:[c.jsx(Uc,{}),c.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function Pa({className:e,...t}){const{toggleSidebar:n}=ct();return c.jsx("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:A("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 Ta({className:e,...t}){return c.jsx("main",{"data-slot":"sidebar-inset",className:A("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 vf({className:e,...t}){return c.jsx(En,{"data-slot":"sidebar-input","data-sidebar":"input",className:A("bg-background h-8 w-full shadow-none",e),...t})}function ja({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:A("flex flex-col gap-2 p-2",e),...t})}function bf({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:A("flex flex-col gap-2 p-2",e),...t})}function xf({className:e,...t}){return c.jsx(Ot,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:A("bg-sidebar-border mx-2 w-auto",e),...t})}function Oa({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:A("flex min-h-0 flex-1 flex-col overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})}function Da({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:A("relative flex w-full min-w-0 flex-col px-2 py-1",e),...t})}function wf({className:e,asChild:t=!1,...n}){const r=t?Ge:"div";return c.jsx(r,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:A("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})}function yf({className:e,asChild:t=!1,...n}){const r=t?Ge:"button";return c.jsx(r,{"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:A("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",e),...n})}function Ia({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:A("w-full text-sm",e),...t})}function Cf({className:e,...t}){return c.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:A("flex w-full min-w-0 flex-col gap-1",e),...t})}function Sf({className:e,...t}){return c.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:A("group/menu-item relative",e),...t})}const Ef=Sn("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Mf({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:a,...s}){const i=e?Ge:"button",{isMobile:l,state:d}=ct(),f=c.jsx(i,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":r,"data-active":t,className:A(Ef({variant:n,size:r}),a),...s});return o?(typeof o=="string"&&(o={children:o}),c.jsxs(Yn,{children:[c.jsx(Zn,{asChild:!0,children:f}),c.jsx(Ut,{side:"right",align:"center",hidden:d!=="collapsed"||l,...o})]})):f}function kf({className:e,asChild:t=!1,showOnHover:n=!1,...r}){const o=t?Ge:"button";return c.jsx(o,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:A("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",e),...r})}function Rf({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:A("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t})}function Af({className:e,showIcon:t=!1,...n}){const r=u.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return c.jsxs("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:A("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[t&&c.jsx(pn,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),c.jsx(pn,{className:"h-4 max-w-(--skeleton-width) flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})}function La({className:e,...t}){return c.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:A("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 Fa({className:e,...t}){return c.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:A("group/menu-sub-item relative",e),...t})}function $a({asChild:e=!1,size:t="md",isActive:n=!1,className:r,...o}){const a=e?Ge:"a";return c.jsx(a,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:A("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 za(e){const t=e+"CollectionProvider",[n,r]=Oe(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=h=>{const{scope:v,children:x}=h,y=q.useRef(null),C=q.useRef(new Map).current;return c.jsx(o,{scope:v,itemMap:C,collectionRef:y,children:x})};s.displayName=t;const i=e+"CollectionSlot",l=Ve(i),d=q.forwardRef((h,v)=>{const{scope:x,children:y}=h,C=a(i,x),S=ne(v,C.collectionRef);return c.jsx(l,{ref:S,children:y})});d.displayName=i;const f=e+"CollectionItemSlot",p="data-radix-collection-item",m=Ve(f),g=q.forwardRef((h,v)=>{const{scope:x,children:y,...C}=h,S=q.useRef(null),k=ne(v,S),T=a(f,x);return q.useEffect(()=>(T.itemMap.set(S,{ref:S,...C}),()=>void T.itemMap.delete(S))),c.jsx(m,{[p]:"",ref:k,children:y})});g.displayName=f;function b(h){const v=a(e+"CollectionConsumer",h);return q.useCallback(()=>{const y=v.collectionRef.current;if(!y)return[];const C=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(v.itemMap.values()).sort((T,R)=>C.indexOf(T.ref.current)-C.indexOf(R.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:s,Slot:d,ItemSlot:g},b,r]}var Nf=u.createContext(void 0);function Ha(e){const t=u.useContext(Nf);return e||t||"ltr"}var sn="rovingFocusGroup.onEntryFocus",_f={bubbles:!1,cancelable:!0},lt="RovingFocusGroup",[xn,Va,Pf]=za(lt),[Tf,Ba]=Oe(lt,[Pf]),[jf,Of]=Tf(lt),Wa=u.forwardRef((e,t)=>c.jsx(xn.Provider,{scope:e.__scopeRovingFocusGroup,children:c.jsx(xn.Slot,{scope:e.__scopeRovingFocusGroup,children:c.jsx(Df,{...e,ref:t})})}));Wa.displayName=lt;var Df=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:l,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...p}=e,m=u.useRef(null),g=ne(t,m),b=Ha(a),[h,v]=st({prop:s,defaultProp:i??null,onChange:l,caller:lt}),[x,y]=u.useState(!1),C=he(d),S=Va(n),k=u.useRef(!1),[T,R]=u.useState(0);return u.useEffect(()=>{const M=m.current;if(M)return M.addEventListener(sn,C),()=>M.removeEventListener(sn,C)},[C]),c.jsx(jf,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:h,onItemFocus:u.useCallback(M=>v(M),[v]),onItemShiftTab:u.useCallback(()=>y(!0),[]),onFocusableItemAdd:u.useCallback(()=>R(M=>M+1),[]),onFocusableItemRemove:u.useCallback(()=>R(M=>M-1),[]),children:c.jsx(Q.div,{tabIndex:x||T===0?-1:0,"data-orientation":r,...p,ref:g,style:{outline:"none",...e.style},onMouseDown:O(e.onMouseDown,()=>{k.current=!0}),onFocus:O(e.onFocus,M=>{const I=!k.current;if(M.target===M.currentTarget&&I&&!x){const z=new CustomEvent(sn,_f);if(M.currentTarget.dispatchEvent(z),!z.defaultPrevented){const K=S().filter(D=>D.focusable),G=K.find(D=>D.active),U=K.find(D=>D.id===h),Z=[G,U,...K].filter(Boolean).map(D=>D.ref.current);Ka(Z,f)}}k.current=!1}),onBlur:O(e.onBlur,()=>y(!1))})})}),Ga="RovingFocusGroupItem",Ua=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:s,...i}=e,l=xe(),d=a||l,f=Of(Ga,n),p=f.currentTabStopId===d,m=Va(n),{onFocusableItemAdd:g,onFocusableItemRemove:b,currentTabStopId:h}=f;return u.useEffect(()=>{if(r)return g(),()=>b()},[r,g,b]),c.jsx(xn.ItemSlot,{scope:n,id:d,focusable:r,active:o,children:c.jsx(Q.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...i,ref:t,onMouseDown:O(e.onMouseDown,v=>{r?f.onItemFocus(d):v.preventDefault()}),onFocus:O(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:O(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){f.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const x=Ff(v,f.orientation,f.dir);if(x!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let C=m().filter(S=>S.focusable).map(S=>S.ref.current);if(x==="last")C.reverse();else if(x==="prev"||x==="next"){x==="prev"&&C.reverse();const S=C.indexOf(v.currentTarget);C=f.loop?$f(C,S+1):C.slice(S+1)}setTimeout(()=>Ka(C))}}),children:typeof s=="function"?s({isCurrentTabStop:p,hasTabStop:h!=null}):s})})});Ua.displayName=Ga;var If={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Lf(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Ff(e,t,n){const r=Lf(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return If[r]}function Ka(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function $f(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var zf=Wa,Hf=Ua,wn=["Enter"," "],Vf=["ArrowDown","PageUp","Home"],Ya=["ArrowUp","PageDown","End"],Bf=[...Vf,...Ya],Wf={ltr:[...wn,"ArrowRight"],rtl:[...wn,"ArrowLeft"]},Gf={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ut="Menu",[ot,Uf,Kf]=za(ut),[De,Za]=Oe(ut,[Kf,Vt,Ba]),dt=Vt(),qa=Ba(),[Xa,Ne]=De(ut),[Yf,ft]=De(ut),Ja=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:s=!0}=e,i=dt(t),[l,d]=u.useState(null),f=u.useRef(!1),p=he(a),m=Ha(o);return u.useEffect(()=>{const g=()=>{f.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>f.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})}},[]),c.jsx(Gn,{...i,children:c.jsx(Xa,{scope:t,open:n,onOpenChange:p,content:l,onContentChange:d,children:c.jsx(Yf,{scope:t,onClose:u.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:m,modal:s,children:r})})})};Ja.displayName=ut;var Zf="MenuAnchor",qn=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=dt(n);return c.jsx(ha,{...o,...r,ref:t})});qn.displayName=Zf;var Xn="MenuPortal",[qf,Qa]=De(Xn,{forceMount:void 0}),es=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=Ne(Xn,t);return c.jsx(qf,{scope:t,forceMount:n,children:c.jsx(Ce,{present:n||a.open,children:c.jsx(kn,{asChild:!0,container:o,children:r})})})};es.displayName=Xn;var ce="MenuContent",[Xf,Jn]=De(ce),ts=u.forwardRef((e,t)=>{const n=Qa(ce,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Ne(ce,e.__scopeMenu),s=ft(ce,e.__scopeMenu);return c.jsx(ot.Provider,{scope:e.__scopeMenu,children:c.jsx(Ce,{present:r||a.open,children:c.jsx(ot.Slot,{scope:e.__scopeMenu,children:s.modal?c.jsx(Jf,{...o,ref:t}):c.jsx(Qf,{...o,ref:t})})})})}),Jf=u.forwardRef((e,t)=>{const n=Ne(ce,e.__scopeMenu),r=u.useRef(null),o=ne(t,r);return u.useEffect(()=>{const a=r.current;if(a)return Eo(a)},[]),c.jsx(Qn,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:O(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Qf=u.forwardRef((e,t)=>{const n=Ne(ce,e.__scopeMenu);return c.jsx(Qn,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),ep=Ve("MenuContent.ScrollLock"),Qn=u.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEntryFocus:l,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:g,disableOutsideScroll:b,...h}=e,v=Ne(ce,n),x=ft(ce,n),y=dt(n),C=qa(n),S=Uf(n),[k,T]=u.useState(null),R=u.useRef(null),M=ne(t,R,v.onContentChange),I=u.useRef(0),z=u.useRef(""),K=u.useRef(0),G=u.useRef(null),U=u.useRef("right"),H=u.useRef(0),Z=b?Rn:u.Fragment,D=b?{as:ep,allowPinchZoom:!0}:void 0,B=P=>{var W,X;const w=z.current+P,j=S().filter(J=>!J.disabled),F=document.activeElement,$=(W=j.find(J=>J.ref.current===F))==null?void 0:W.textValue,Y=j.map(J=>J.textValue),ee=fp(Y,w,$),oe=(X=j.find(J=>J.textValue===ee))==null?void 0:X.ref.current;(function J(ae){z.current=ae,window.clearTimeout(I.current),ae!==""&&(I.current=window.setTimeout(()=>J(""),1e3))})(w),oe&&setTimeout(()=>oe.focus())};u.useEffect(()=>()=>window.clearTimeout(I.current),[]),ho();const E=u.useCallback(P=>{var j,F;return U.current===((j=G.current)==null?void 0:j.side)&&mp(P,(F=G.current)==null?void 0:F.area)},[]);return c.jsx(Xf,{scope:n,searchRef:z,onItemEnter:u.useCallback(P=>{E(P)&&P.preventDefault()},[E]),onItemLeave:u.useCallback(P=>{var w;E(P)||((w=R.current)==null||w.focus(),T(null))},[E]),onTriggerLeave:u.useCallback(P=>{E(P)&&P.preventDefault()},[E]),pointerGraceTimerRef:K,onPointerGraceIntentChange:u.useCallback(P=>{G.current=P},[]),children:c.jsx(Z,{...D,children:c.jsx(Mn,{asChild:!0,trapped:o,onMountAutoFocus:O(a,P=>{var w;P.preventDefault(),(w=R.current)==null||w.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:c.jsx(It,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:g,children:c.jsx(zf,{asChild:!0,...C,dir:x.dir,orientation:"vertical",loop:r,currentTabStopId:k,onCurrentTabStopIdChange:T,onEntryFocus:O(l,P=>{x.isUsingKeyboardRef.current||P.preventDefault()}),preventScrollOnEntryFocus:!0,children:c.jsx(ga,{role:"menu","aria-orientation":"vertical","data-state":bs(v.open),"data-radix-menu-content":"",dir:x.dir,...y,...h,ref:M,style:{outline:"none",...h.style},onKeyDown:O(h.onKeyDown,P=>{const j=P.target.closest("[data-radix-menu-content]")===P.currentTarget,F=P.ctrlKey||P.altKey||P.metaKey,$=P.key.length===1;j&&(P.key==="Tab"&&P.preventDefault(),!F&&$&&B(P.key));const Y=R.current;if(P.target!==Y||!Bf.includes(P.key))return;P.preventDefault();const oe=S().filter(W=>!W.disabled).map(W=>W.ref.current);Ya.includes(P.key)&&oe.reverse(),up(oe)}),onBlur:O(e.onBlur,P=>{P.currentTarget.contains(P.target)||(window.clearTimeout(I.current),z.current="")}),onPointerMove:O(e.onPointerMove,at(P=>{const w=P.target,j=H.current!==P.clientX;if(P.currentTarget.contains(w)&&j){const F=P.clientX>H.current?"right":"left";U.current=F,H.current=P.clientX}}))})})})})})})});ts.displayName=ce;var tp="MenuGroup",er=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.jsx(Q.div,{role:"group",...r,ref:t})});er.displayName=tp;var np="MenuLabel",ns=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.jsx(Q.div,{...r,ref:t})});ns.displayName=np;var Pt="MenuItem",$r="menu.itemSelect",Kt=u.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=u.useRef(null),s=ft(Pt,e.__scopeMenu),i=Jn(Pt,e.__scopeMenu),l=ne(t,a),d=u.useRef(!1),f=()=>{const p=a.current;if(!n&&p){const m=new CustomEvent($r,{bubbles:!0,cancelable:!0});p.addEventListener($r,g=>r==null?void 0:r(g),{once:!0}),Gr(p,m),m.defaultPrevented?d.current=!1:s.onClose()}};return c.jsx(rs,{...o,ref:l,disabled:n,onClick:O(e.onClick,f),onPointerDown:p=>{var m;(m=e.onPointerDown)==null||m.call(e,p),d.current=!0},onPointerUp:O(e.onPointerUp,p=>{var m;d.current||(m=p.currentTarget)==null||m.click()}),onKeyDown:O(e.onKeyDown,p=>{const m=i.searchRef.current!=="";n||m&&p.key===" "||wn.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});Kt.displayName=Pt;var rs=u.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,s=Jn(Pt,n),i=qa(n),l=u.useRef(null),d=ne(t,l),[f,p]=u.useState(!1),[m,g]=u.useState("");return u.useEffect(()=>{const b=l.current;b&&g((b.textContent??"").trim())},[a.children]),c.jsx(ot.ItemSlot,{scope:n,disabled:r,textValue:o??m,children:c.jsx(Hf,{asChild:!0,...i,focusable:!r,children:c.jsx(Q.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:d,onPointerMove:O(e.onPointerMove,at(b=>{r?s.onItemLeave(b):(s.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:O(e.onPointerLeave,at(b=>s.onItemLeave(b))),onFocus:O(e.onFocus,()=>p(!0)),onBlur:O(e.onBlur,()=>p(!1))})})})}),rp="MenuCheckboxItem",os=u.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return c.jsx(ls,{scope:e.__scopeMenu,checked:n,children:c.jsx(Kt,{role:"menuitemcheckbox","aria-checked":Tt(n)?"mixed":n,...o,ref:t,"data-state":rr(n),onSelect:O(o.onSelect,()=>r==null?void 0:r(Tt(n)?!0:!n),{checkForDefaultPrevented:!1})})})});os.displayName=rp;var as="MenuRadioGroup",[op,ap]=De(as,{value:void 0,onValueChange:()=>{}}),ss=u.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=he(r);return c.jsx(op,{scope:e.__scopeMenu,value:n,onValueChange:a,children:c.jsx(er,{...o,ref:t})})});ss.displayName=as;var is="MenuRadioItem",cs=u.forwardRef((e,t)=>{const{value:n,...r}=e,o=ap(is,e.__scopeMenu),a=n===o.value;return c.jsx(ls,{scope:e.__scopeMenu,checked:a,children:c.jsx(Kt,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":rr(a),onSelect:O(r.onSelect,()=>{var s;return(s=o.onValueChange)==null?void 0:s.call(o,n)},{checkForDefaultPrevented:!1})})})});cs.displayName=is;var tr="MenuItemIndicator",[ls,sp]=De(tr,{checked:!1}),us=u.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=sp(tr,n);return c.jsx(Ce,{present:r||Tt(a.checked)||a.checked===!0,children:c.jsx(Q.span,{...o,ref:t,"data-state":rr(a.checked)})})});us.displayName=tr;var ip="MenuSeparator",ds=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.jsx(Q.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});ds.displayName=ip;var cp="MenuArrow",fs=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=dt(n);return c.jsx(va,{...o,...r,ref:t})});fs.displayName=cp;var nr="MenuSub",[lp,ps]=De(nr),ms=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,a=Ne(nr,t),s=dt(t),[i,l]=u.useState(null),[d,f]=u.useState(null),p=he(o);return u.useEffect(()=>(a.open===!1&&p(!1),()=>p(!1)),[a.open,p]),c.jsx(Gn,{...s,children:c.jsx(Xa,{scope:t,open:r,onOpenChange:p,content:d,onContentChange:f,children:c.jsx(lp,{scope:t,contentId:xe(),triggerId:xe(),trigger:i,onTriggerChange:l,children:n})})})};ms.displayName=nr;var et="MenuSubTrigger",hs=u.forwardRef((e,t)=>{const n=Ne(et,e.__scopeMenu),r=ft(et,e.__scopeMenu),o=ps(et,e.__scopeMenu),a=Jn(et,e.__scopeMenu),s=u.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:l}=a,d={__scopeMenu:e.__scopeMenu},f=u.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return u.useEffect(()=>f,[f]),u.useEffect(()=>{const p=i.current;return()=>{window.clearTimeout(p),l(null)}},[i,l]),c.jsx(qn,{asChild:!0,...d,children:c.jsx(rs,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":bs(n.open),...e,ref:jt(t,o.onTriggerChange),onClick:p=>{var m;(m=e.onClick)==null||m.call(e,p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:O(e.onPointerMove,at(p=>{a.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:O(e.onPointerLeave,at(p=>{var g,b;f();const m=(g=n.content)==null?void 0:g.getBoundingClientRect();if(m){const h=(b=n.content)==null?void 0:b.dataset.side,v=h==="right",x=v?-5:5,y=m[v?"left":"right"],C=m[v?"right":"left"];a.onPointerGraceIntentChange({area:[{x:p.clientX+x,y:p.clientY},{x:y,y:m.top},{x:C,y:m.top},{x:C,y:m.bottom},{x:y,y:m.bottom}],side:h}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(p),p.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:O(e.onKeyDown,p=>{var g;const m=a.searchRef.current!=="";e.disabled||m&&p.key===" "||Wf[r.dir].includes(p.key)&&(n.onOpenChange(!0),(g=n.content)==null||g.focus(),p.preventDefault())})})})});hs.displayName=et;var gs="MenuSubContent",vs=u.forwardRef((e,t)=>{const n=Qa(ce,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Ne(ce,e.__scopeMenu),s=ft(ce,e.__scopeMenu),i=ps(gs,e.__scopeMenu),l=u.useRef(null),d=ne(t,l);return c.jsx(ot.Provider,{scope:e.__scopeMenu,children:c.jsx(Ce,{present:r||a.open,children:c.jsx(ot.Slot,{scope:e.__scopeMenu,children:c.jsx(Qn,{id:i.contentId,"aria-labelledby":i.triggerId,...o,ref:d,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var p;s.isUsingKeyboardRef.current&&((p=l.current)==null||p.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:O(e.onFocusOutside,f=>{f.target!==i.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:O(e.onEscapeKeyDown,f=>{s.onClose(),f.preventDefault()}),onKeyDown:O(e.onKeyDown,f=>{var g;const p=f.currentTarget.contains(f.target),m=Gf[s.dir].includes(f.key);p&&m&&(a.onOpenChange(!1),(g=i.trigger)==null||g.focus(),f.preventDefault())})})})})})});vs.displayName=gs;function bs(e){return e?"open":"closed"}function Tt(e){return e==="indeterminate"}function rr(e){return Tt(e)?"indeterminate":e?"checked":"unchecked"}function up(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function dp(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function fp(e,t,n){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=dp(e,Math.max(a,0));o.length===1&&(s=s.filter(d=>d!==n));const l=s.find(d=>d.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function pp(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],l=t[s],d=i.x,f=i.y,p=l.x,m=l.y;f>r!=m>r&&n<(p-d)*(r-f)/(m-f)+d&&(o=!o)}return o}function mp(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return pp(n,t)}function at(e){return t=>t.pointerType==="mouse"?e(t):void 0}var hp=Ja,gp=qn,vp=es,bp=ts,xp=er,wp=ns,yp=Kt,Cp=os,Sp=ss,Ep=cs,Mp=us,kp=ds,Rp=fs,Ap=ms,Np=hs,_p=vs,Yt="DropdownMenu",[Pp,P0]=Oe(Yt,[Za]),re=Za(),[Tp,xs]=Pp(Yt),ws=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:s,modal:i=!0}=e,l=re(t),d=u.useRef(null),[f,p]=st({prop:o,defaultProp:a??!1,onChange:s,caller:Yt});return c.jsx(Tp,{scope:t,triggerId:xe(),triggerRef:d,contentId:xe(),open:f,onOpenChange:p,onOpenToggle:u.useCallback(()=>p(m=>!m),[p]),modal:i,children:c.jsx(hp,{...l,open:f,onOpenChange:p,dir:r,modal:i,children:n})})};ws.displayName=Yt;var ys="DropdownMenuTrigger",Cs=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=xs(ys,n),s=re(n);return c.jsx(gp,{asChild:!0,...s,children:c.jsx(Q.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:jt(t,a.triggerRef),onPointerDown:O(e.onPointerDown,i=>{!r&&i.button===0&&i.ctrlKey===!1&&(a.onOpenToggle(),a.open||i.preventDefault())}),onKeyDown:O(e.onKeyDown,i=>{r||(["Enter"," "].includes(i.key)&&a.onOpenToggle(),i.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});Cs.displayName=ys;var jp="DropdownMenuPortal",Ss=e=>{const{__scopeDropdownMenu:t,...n}=e,r=re(t);return c.jsx(vp,{...r,...n})};Ss.displayName=jp;var Es="DropdownMenuContent",Ms=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xs(Es,n),a=re(n),s=u.useRef(!1);return c.jsx(bp,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:O(e.onCloseAutoFocus,i=>{var l;s.current||(l=o.triggerRef.current)==null||l.focus(),s.current=!1,i.preventDefault()}),onInteractOutside:O(e.onInteractOutside,i=>{const l=i.detail.originalEvent,d=l.button===0&&l.ctrlKey===!0,f=l.button===2||d;(!o.modal||f)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Ms.displayName=Es;var Op="DropdownMenuGroup",ks=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=re(n);return c.jsx(xp,{...o,...r,ref:t})});ks.displayName=Op;var Dp="DropdownMenuLabel",Rs=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=re(n);return c.jsx(wp,{...o,...r,ref:t})});Rs.displayName=Dp;var Ip="DropdownMenuItem",As=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=re(n);return c.jsx(yp,{...o,...r,ref:t})});As.displayName=Ip;var Lp="DropdownMenuCheckboxItem",Ns=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=re(n);return c.jsx(Cp,{...o,...r,ref:t})});Ns.displayName=Lp;var Fp="DropdownMenuRadioGroup",_s=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=re(n);return c.jsx(Sp,{...o,...r,ref:t})});_s.displayName=Fp;var $p="DropdownMenuRadioItem",Ps=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=re(n);return c.jsx(Ep,{...o,...r,ref:t})});Ps.displayName=$p;var zp="DropdownMenuItemIndicator",Ts=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=re(n);return c.jsx(Mp,{...o,...r,ref:t})});Ts.displayName=zp;var Hp="DropdownMenuSeparator",js=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=re(n);return c.jsx(kp,{...o,...r,ref:t})});js.displayName=Hp;var Vp="DropdownMenuArrow",Bp=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=re(n);return c.jsx(Rp,{...o,...r,ref:t})});Bp.displayName=Vp;var Wp=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,s=re(t),[i,l]=st({prop:r,defaultProp:a??!1,onChange:o,caller:"DropdownMenuSub"});return c.jsx(Ap,{...s,open:i,onOpenChange:l,children:n})},Gp="DropdownMenuSubTrigger",Os=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=re(n);return c.jsx(Np,{...o,...r,ref:t})});Os.displayName=Gp;var Up="DropdownMenuSubContent",Ds=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=re(n);return c.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)"}})});Ds.displayName=Up;var Kp=ws,Yp=Cs,Is=Ss,Zp=Ms,qp=ks,Xp=Rs,Jp=As,Qp=Ns,e0=_s,t0=Ps,Ls=Ts,n0=js,r0=Wp,o0=Os,a0=Ds;function Fs({...e}){return c.jsx(Kp,{"data-slot":"dropdown-menu",...e})}function s0({...e}){return c.jsx(Is,{"data-slot":"dropdown-menu-portal",...e})}function $s({...e}){return c.jsx(Yp,{"data-slot":"dropdown-menu-trigger",...e})}function zs({className:e,sideOffset:t=4,...n}){return c.jsx(Is,{children:c.jsx(Zp,{"data-slot":"dropdown-menu-content",sideOffset:t,className:A("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 i0({...e}){return c.jsx(qp,{"data-slot":"dropdown-menu-group",...e})}function yn({className:e,inset:t,variant:n="default",...r}){return c.jsx(Jp,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:A("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 c0({className:e,children:t,checked:n,...r}){return c.jsxs(Qp,{"data-slot":"dropdown-menu-checkbox-item",className:A("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:n,...r,children:[c.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:c.jsx(Ls,{children:c.jsx(gc,{className:"size-4"})})}),t]})}function l0({...e}){return c.jsx(e0,{"data-slot":"dropdown-menu-radio-group",...e})}function u0({className:e,children:t,...n}){return c.jsxs(t0,{"data-slot":"dropdown-menu-radio-item",className:A("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[c.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:c.jsx(Ls,{children:c.jsx(Sc,{className:"size-2 fill-current"})})}),t]})}function Hs({className:e,inset:t,...n}){return c.jsx(Xp,{"data-slot":"dropdown-menu-label","data-inset":t,className:A("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...n})}function Vs({className:e,...t}){return c.jsx(n0,{"data-slot":"dropdown-menu-separator",className:A("bg-border -mx-1 my-1 h-px",e),...t})}function d0({className:e,...t}){return c.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:A("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}function f0({...e}){return c.jsx(r0,{"data-slot":"dropdown-menu-sub",...e})}function p0({className:e,inset:t,children:n,...r}){return c.jsxs(o0,{"data-slot":"dropdown-menu-sub-trigger","data-inset":t,className:A("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",e),...r,children:[n,c.jsx(io,{className:"ml-auto size-4"})]})}function m0({className:e,...t}){return c.jsx(a0,{"data-slot":"dropdown-menu-sub-content",className:A("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...t})}const Bs=({onLogout:e})=>{const{user:t,error:n,isLoading:r}=Hr.useUser(),o=async()=>{try{e&&await e(),window.location.href="/auth/logout"}catch(a){console.error("Error during logout:",a),window.location.href="/auth/logout"}};return r?c.jsx("div",{className:"h-10 w-10 animate-pulse rounded-full bg-gray-200"}):n?c.jsxs("div",{children:["Error: ",n.message]}):t?c.jsx("div",{className:"relative flex items-center gap-3",children:c.jsxs(Fs,{children:[c.jsx($s,{asChild:!0,children:c.jsx(Dt,{variant:"ghost",size:"lg",className:"rounded-full cursor-pointer p-0",children:t.picture?c.jsx("img",{src:t.picture,alt:t.name||"User profile",width:40,height:40,className:"rounded-full"}):c.jsx(br,{className:"h-5 w-5 text-gray-500"})})}),c.jsxs(zs,{align:"end",className:"w-72",children:[c.jsx(Hs,{children:c.jsx("div",{className:"flex flex-col space-y-1",children:c.jsxs("div",{className:"flex flex-col space-y-1",children:[c.jsx("p",{className:"text-xs text-gray-500",children:t.name}),c.jsx("p",{className:"truncate text-xs text-gray-500",children:t.email})]})})}),c.jsx(Vs,{}),c.jsx(yn,{asChild:!0,children:c.jsxs("a",{href:"/profile",className:"flex w-full cursor-default",children:[c.jsx(br,{className:"mr-2 h-4 w-4"}),c.jsx("span",{children:"Profile"})]})}),c.jsxs(yn,{onClick:o,children:[c.jsx(Fc,{className:"mr-2 h-4 w-4"}),c.jsx("span",{children:"Sign out"})]})]})]})}):null},Ws=({onLogout:e})=>c.jsx("div",{className:"sticky top-0 z-50 bg-white",children:c.jsxs("header",{className:"flex h-16 items-center justify-between border-b bg-white px-4",children:[c.jsxs("div",{className:"flex h-full items-center gap-4 flex-1 min-w-0 overflow-hidden",children:[c.jsx(_a,{}),c.jsx(Ot,{orientation:"vertical"})]}),c.jsx("div",{className:"flex-shrink-0",children:c.jsx(Bs,{onLogout:e})})]})});function h0({className:e,...t}){return c.jsx("div",{"data-slot":"card",className:A("bg-card text-card-foreground flex flex-col gap-4 rounded-xl py-6 shadow-sm",e),...t})}function g0({className:e,...t}){return c.jsx("div",{"data-slot":"card-header",className:A("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function v0({className:e,...t}){return c.jsx("div",{"data-slot":"card-title",className:A("leading-none font-semibold",e),...t})}function b0({className:e,...t}){return c.jsx("div",{"data-slot":"card-description",className:A("text-muted-foreground text-sm",e),...t})}function x0({className:e,...t}){return c.jsx("div",{"data-slot":"card-action",className:A("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t})}function w0({className:e,...t}){return c.jsx("div",{"data-slot":"card-content",className:A("px-6",e),...t})}function y0({className:e,...t}){return c.jsx("div",{"data-slot":"card-footer",className:A("flex items-center px-6 [.border-t]:pt-6",e),...t})}function Gs({title:e,url:t,children:n,defaultOpen:r=!1,icon:o,isActive:a=!1,className:s,disabled:i=!1}){const[l,d]=u.useState(r);u.useEffect(()=>{a&&d(!0)},[a]);const f=!i&&t;return c.jsx(Da,{className:s,children:c.jsxs("div",{className:"flex flex-col",children:[c.jsxs("div",{className:"flex flex-row items-center justify-between",children:[f?c.jsxs("a",{href:t,className:A("flex flex-1 cursor-pointer items-center gap-2 rounded-lg p-2 transition-colors hover:bg-gray-100"),children:[o&&c.jsx("span",{className:A("text-gray-600"),children:o}),c.jsx("span",{className:A("text-gray-600"),children:e})]}):c.jsxs("div",{className:A("flex flex-1 items-center gap-2 rounded-lg p-2",i&&"cursor-default"),children:[o&&c.jsx("span",{className:A("text-gray-600"),children:o}),c.jsx("span",{className:A("text-gray-600"),children:e})]}),c.jsx("button",{type:"button",className:A("mr-3 rounded-lg p-2 text-gray-500",i?"cursor-default opacity-50":"hover:bg-gray-100 hover:text-gray-700"),onClick:p=>{p.preventDefault(),p.stopPropagation(),i||d(!l)},disabled:i,"aria-label":l?"Collapse section":"Expand section",children:l?c.jsx(bc,{className:"h-4 w-4"}):c.jsx(io,{className:"h-4 w-4"})})]}),c.jsx("div",{className:A("overflow-hidden transition-all",l&&!i?"max-h-96":"max-h-0"),children:n})]})})}const C0="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20141%2060'%3e%3cpath%20d='M0.059%2019.711V59.673H19.509V49.95H9.779V19.711H0.059Z'%20fill='%2385B9D1'%3e%3c/path%3e%3cpath%20d='M0%200L0.056%204.915V19.715H9.776V9.715H19.5V59.673H29.22V0H0Z'%20fill='%23F68029'%3e%3c/path%3e%3cpath%20d='M23.49%2019.717H9.776V29.439H23.49V19.717Z'%20fill='%23F68029'%3e%3c/path%3e%3cpath%20d='M0.0580006%2019.718L9.785%2029.445V19.718H0.0580006Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M9.777%2049.953L19.504%2059.679V49.953H9.777Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M50.213%2021.331C50.1839%2019.244%2050.325%2017.1581%2050.635%2015.094C50.8293%2013.6891%2051.2694%2012.3294%2051.935%2011.077C52.4295%2010.1519%2053.1979%209.4023%2054.135%208.93101C55.1033%208.49691%2056.1561%208.28375%2057.217%208.307C58.2628%208.27673%2059.3024%208.47715%2060.262%208.894C61.1441%209.33605%2061.8541%2010.059%2062.28%2010.949C62.8725%2012.1976%2063.2507%2013.5369%2063.399%2014.911C63.6554%2016.9922%2063.7717%2019.0882%2063.747%2021.185C63.7759%2023.338%2063.6421%2025.4901%2063.347%2027.623C63.1657%2029.0675%2062.7378%2030.4702%2062.082%2031.77C61.6022%2032.7122%2060.8471%2033.4862%2059.917%2033.989C58.9503%2034.4507%2057.888%2034.6768%2056.817%2034.649C55.7687%2034.6771%2054.7258%2034.4896%2053.753%2034.098C52.8534%2033.6775%2052.1275%2032.9579%2051.699%2032.062C51.0884%2030.7803%2050.7037%2029.4027%2050.562%2027.99C50.3018%2025.7802%2050.1852%2023.5559%2050.213%2021.331ZM54.913%2022.248C54.913%2023.6913%2054.9377%2024.9267%2054.987%2025.954C55.0147%2026.8043%2055.1127%2027.6509%2055.28%2028.485C55.3666%2029.0149%2055.5877%2029.5138%2055.922%2029.934C56.0643%2030.0868%2056.238%2030.207%2056.4312%2030.2862C56.6244%2030.3655%2056.8324%2030.4019%2057.041%2030.393C57.25%2030.3964%2057.4571%2030.3533%2057.6473%2030.2668C57.8375%2030.1803%2058.0062%2030.0526%2058.141%2029.893C58.4964%2029.4241%2058.7297%2028.8744%2058.82%2028.293C59.0025%2027.3609%2059.1128%2026.4161%2059.15%2025.467C59.2107%2024.3177%2059.2414%2022.936%2059.242%2021.322C59.242%2019.732%2059.224%2018.3747%2059.188%2017.25C59.169%2016.3373%2059.0736%2015.4278%2058.903%2014.531C58.8198%2013.9744%2058.5923%2013.4493%2058.243%2013.008C58.0929%2012.8491%2057.9104%2012.7244%2057.7078%2012.6422C57.5053%2012.5601%2057.2874%2012.5225%2057.069%2012.532C56.8667%2012.5304%2056.6668%2012.576%2056.4852%2012.6652C56.3036%2012.7544%2056.1453%2012.8848%2056.023%2013.046C55.6766%2013.5389%2055.4446%2014.103%2055.344%2014.697C55.1442%2015.6885%2055.0277%2016.695%2054.996%2017.706C54.9347%2018.9533%2054.904%2020.4697%2054.904%2022.255'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M83.329%2021.331C83.2999%2019.244%2083.441%2017.1581%2083.751%2015.094C83.9453%2013.6891%2084.3854%2012.3294%2085.051%2011.077C85.5455%2010.1519%2086.3139%209.40235%2087.251%208.93105C89.2087%208.112%2091.4106%208.09871%2093.378%208.89405C94.2601%209.33609%2094.9701%2010.0591%2095.396%2010.949C95.9885%2012.1976%2096.3667%2013.537%2096.515%2014.911C96.7714%2016.9922%2096.8877%2019.0883%2096.863%2021.185C96.8919%2023.3381%2096.7581%2025.4902%2096.463%2027.6231C96.2817%2029.0676%2095.8538%2030.4703%2095.198%2031.77C94.7182%2032.7123%2093.9631%2033.4862%2093.033%2033.989C92.0663%2034.4507%2091.004%2034.6769%2089.933%2034.649C88.8847%2034.6772%2087.8418%2034.4896%2086.869%2034.098C85.9694%2033.6775%2085.2435%2032.9579%2084.815%2032.062C84.2044%2030.7803%2083.8197%2029.4027%2083.678%2027.99C83.4178%2025.7803%2083.3012%2023.5559%2083.329%2021.331ZM88.029%2022.2481C88.029%2023.6914%2088.0537%2024.9267%2088.103%2025.954C88.1307%2026.8044%2088.2287%2027.6509%2088.396%2028.4851C88.4826%2029.015%2088.7037%2029.5139%2089.038%2029.934C89.1803%2030.0869%2089.354%2030.207%2089.5472%2030.2863C89.7404%2030.3655%2089.9484%2030.4019%2090.157%2030.393C90.366%2030.3964%2090.573%2030.3533%2090.7633%2030.2669C90.9535%2030.1804%2091.1222%2030.0527%2091.257%2029.893C91.6124%2029.4242%2091.8458%2028.8744%2091.936%2028.2931C92.1185%2027.3609%2092.2288%2026.4161%2092.266%2025.467C92.3267%2024.3177%2092.3574%2022.936%2092.358%2021.322C92.358%2019.732%2092.34%2018.3747%2092.304%2017.2501C92.2887%2016.3329%2092.1964%2015.4187%2092.028%2014.517C91.9448%2013.9605%2091.7173%2013.4354%2091.368%2012.994C91.2162%2012.8368%2091.0323%2012.7141%2090.8289%2012.6343C90.6255%2012.5544%2090.4072%2012.5192%2090.189%2012.531C89.9867%2012.5294%2089.7868%2012.575%2089.6052%2012.6643C89.4236%2012.7535%2089.2653%2012.8839%2089.143%2013.045C88.7966%2013.5379%2088.5646%2014.102%2088.464%2014.6961C88.2642%2015.6876%2088.1477%2016.6941%2088.116%2017.705C88.0547%2018.9524%2088.024%2020.4687%2088.024%2022.254'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M131.349%2034.65V8.32202H135.458V30.797H140.631V34.649L131.349%2034.65Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M71.95%2034.65V8.33203H76.059V30.796H81.232V34.648L71.95%2034.65Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M104.833%2014.692C104.934%2014.098%20105.166%2013.534%20105.512%2013.041C105.634%2012.8798%20105.793%2012.7494%20105.974%2012.6602C106.156%2012.571%20106.356%2012.5253%20106.558%2012.527H110.103V8.30798H106.703C105.642%208.2848%20104.589%208.49794%20103.621%208.93197C102.684%209.40306%20101.915%2010.1527%20101.421%2011.078C100.756%2012.3304%20100.316%2013.6901%20100.121%2015.095C99.8114%2017.1591%2099.6706%2019.245%2099.7%2021.332C99.6722%2023.5568%2099.7885%2025.7811%20100.048%2027.991C100.19%2029.4037%20100.574%2030.7812%20101.185%2032.063C101.614%2032.9584%20102.34%2033.6778%20103.239%2034.099C104.212%2034.4899%20105.255%2034.6771%20106.303%2034.649L110.103%2034.613V30.393H106.522C106.313%2030.402%20106.105%2030.3657%20105.912%2030.2866C105.719%2030.2076%20105.545%2030.0876%20105.403%2029.935C105.069%2029.5144%20104.848%2029.0152%20104.761%2028.485C104.594%2027.6509%20104.496%2026.8043%20104.468%2025.954C104.419%2024.9266%20104.394%2023.6916%20104.394%2022.249C104.394%2020.4636%20104.425%2018.9473%20104.486%2017.7C104.518%2016.6894%20104.633%2015.6832%20104.833%2014.692Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M46.728%2019.247H42.878V30.395H41.828C41.6182%2030.4039%2041.409%2030.3669%2041.2149%2030.2868C41.0208%2030.2067%2040.8465%2030.0853%2040.704%2029.931C40.3695%2029.5106%2040.1485%2029.0113%2040.062%2028.481C39.894%2027.647%2039.7956%2026.8004%2039.768%2025.95C39.7187%2024.9227%2039.6944%2023.6877%2039.695%2022.245C39.695%2020.4597%2039.7257%2018.9434%2039.787%2017.696C39.8191%2016.6854%2039.9355%2015.6792%2040.135%2014.688C40.2357%2014.094%2040.4677%2013.53%2040.814%2013.037C40.9376%2012.8768%2041.0968%2012.7476%2041.2791%2012.6598C41.4614%2012.5719%2041.6617%2012.5278%2041.864%2012.531H45.904V8.31202H42.012C40.9511%208.28877%2039.8983%208.50191%2038.93%208.93601C37.9927%209.40699%2037.2241%2010.1567%2036.73%2011.082C36.0644%2012.3344%2035.6243%2013.6941%2035.43%2015.099C35.1189%2017.1613%2034.9764%2019.2456%2035.004%2021.331C34.9762%2023.5559%2035.0925%2025.7802%2035.352%2027.99C35.494%2029.4026%2035.8787%2030.7802%2036.489%2032.062C36.9179%2032.9579%2037.6442%2033.6775%2038.544%2034.098C39.517%2034.4891%2040.5598%2034.6763%2041.608%2034.648L43.587%2034.629H46.727L46.728%2019.247Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M123.653%2029.87H118L116.691%2034.65H112.797L120.939%208L128.793%2034.65H124.856L123.653%2029.87ZM122.587%2026.212L120.893%2019.982L119.085%2026.212H122.587Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M39.016%2041.436H37.059V54.507H39.016V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M44.559%2041.436H46.384L48.331%2046.651C48.919%2048.1937%2049.4198%2049.7682%2049.831%2051.367C49.6744%2050.357%2049.5584%2049.4427%2049.483%2048.624C49.4077%2047.8054%2049.37%2047.0347%2049.37%2046.312V41.436H51.336V54.511H49.495L47.303%2048.627C47.103%2048.0797%2046.9134%2047.518%2046.734%2046.942C46.5547%2046.366%2046.39%2045.762%2046.24%2045.13C46.2274%2045.0507%2046.207%2044.9547%2046.179%2044.842C46.151%2044.7293%2046.1177%2044.5997%2046.079%2044.453C46.098%2044.6%2046.114%2044.725%2046.126%2044.829C46.138%2044.933%2046.148%2045.022%2046.154%2045.095L46.254%2046.424L46.354%2048.041C46.36%2048.131%2046.365%2048.241%2046.368%2048.371C46.371%2048.501%2046.368%2048.648%2046.368%2048.811L46.468%2054.511H44.559V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M55.493%2041.436H61.861V42.977H59.67V54.511H57.751V42.977H55.493V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M65.828%2041.436H71.028V42.926H67.787V47.065H70.665V48.555H67.787V53.016H71.028V54.506H65.828V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M75.906%2041.436H78.483C79.3332%2041.3696%2080.1787%2041.6132%2080.863%2042.122C81.2131%2042.4774%2081.4826%2042.904%2081.6531%2043.3729C81.8236%2043.8417%2081.8911%2044.3418%2081.851%2044.839C81.8876%2045.6248%2081.7066%2046.4055%2081.328%2047.095C81.1685%2047.3665%2080.9531%2047.6008%2080.696%2047.7826C80.4389%2047.9643%2080.1461%2048.0892%2079.837%2048.149L82.509%2054.507H80.525L77.863%2048.107V54.507H75.906V41.436ZM77.863%2047.227C78.1485%2047.2893%2078.4451%2047.279%2078.7256%2047.1969C79.0061%2047.1148%2079.2615%2046.9637%2079.4684%2046.7573C79.6753%2046.5509%2079.8271%2046.2959%2079.9098%2046.0156C79.9926%2045.7353%2080.0036%2045.4387%2079.942%2045.153C79.9472%2044.8034%2079.9137%2044.4543%2079.842%2044.112C79.7909%2043.8589%2079.6851%2043.62%2079.532%2043.412C79.3909%2043.2304%2079.2018%2043.0918%2078.986%2043.012C78.7308%2042.9221%2078.4615%2042.8791%2078.191%2042.885H77.862L77.863%2047.227Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M90.046%2041.06L85.913%2054.514H87.745L88.45%2051.974H91.496L92.135%2054.531H94.028L90.046%2041.06ZM88.876%2050.403L90.013%2046.703L91.048%2050.415L88.876%2050.403Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M106.344%2041.436H112.712V42.977H110.52V54.511H108.602V42.977H106.344V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M118.865%2041.462H116.908V54.533H118.865V41.462Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M134.181%2041.462H139.381V42.952H136.136V47.093H139.014V48.583H136.136V53.044H139.381V54.534H134.181V41.462Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M99.749%2044.338C99.8046%2044.0109%2099.9338%2043.7008%20100.127%2043.431C100.202%2043.3322%20100.3%2043.2523%20100.411%2043.1976C100.523%2043.1429%20100.646%2043.115%20100.77%2043.116H102.464V41.207H100.846C100.318%2041.1955%2099.7949%2041.3011%2099.313%2041.516C98.8543%2041.748%2098.4782%2042.1157%2098.236%2042.569C97.9008%2043.2016%2097.6788%2043.888%2097.58%2044.597C97.4215%2045.6561%2097.3493%2046.7263%2097.364%2047.797C97.3503%2048.9393%2097.4101%2050.0814%2097.543%2051.216C97.6145%2051.9294%2097.808%2052.6252%2098.115%2053.273C98.3244%2053.7086%2098.6776%2054.0586%2099.115%2054.264C99.6001%2054.458%20100.12%2054.5509%20100.642%2054.537L102.469%2054.52V52.61H100.755C100.629%2052.6147%20100.503%2052.592%20100.386%2052.5435C100.269%2052.495%20100.164%2052.4218%20100.078%2052.329C99.8888%2052.0951%2099.7637%2051.816%2099.715%2051.519C99.6273%2051.081%2099.5758%2050.6365%2099.561%2050.19C99.536%2049.66%2099.523%2049.014%2099.523%2048.27C99.523%2047.349%2099.539%2046.557%2099.57%2045.916C99.5873%2045.3865%2099.6485%2044.8594%2099.753%2044.34'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M128.799%2041.466L126.671%2048.91L124.671%2041.466H122.679L126.654%2054.953L130.774%2041.466H128.799Z'%20fill='%230A3763'%3e%3c/path%3e%3c/svg%3e";function Us(){const[e,t]=q.useState("");return q.useEffect(()=>{t(window.location.pathname);const r=()=>{t(window.location.pathname)},o=()=>{t(window.location.pathname)};return window.addEventListener("popstate",r),window.addEventListener("pushstate",o),window.addEventListener("replacestate",o),()=>{window.removeEventListener("popstate",r),window.removeEventListener("pushstate",o),window.removeEventListener("replacestate",o)}},[]),{currentPath:e,isActiveRoute:r=>!!(e===r||r!=="/"&&e.startsWith(r))}}const Ks=q.createContext(void 0),Ys=()=>{const e=q.useContext(Ks);if(e===void 0)throw new Error("usePermissions must be used within PermissionsProvider");return e},Zs=()=>{const{permissions:e}=Ys();return{essentialInsights:e.essentialInsights,organic:e.organic,paid:e.paid,web:e.web,priceMonster:e.priceMonster,se_company_id:e.se_company_id}};function S0({children:e,fetchPermissionsEndpoint:t="/api/auth/permissions",initialPermissions:n}){const[r,o]=q.useState(n||{essentialInsights:!1,organic:!1,paid:!1,web:!1,priceMonster:!1,se_company_id:null}),[a,s]=q.useState(!n),[i,l]=q.useState(null),d=async()=>{try{s(!0),l(null);const f=await fetch(t);if(!f.ok)throw new Error(`Failed to fetch permissions: ${f.statusText}`);const p=await f.json();o(p)}catch(f){console.error("Error fetching product access:",f),l(f instanceof Error?f:new Error("Unknown error"))}finally{s(!1)}};return q.useEffect(()=>{n||d()},[n]),c.jsx(Ks.Provider,{value:{permissions:r,loading:a,error:i,fetchPermissions:d},children:e})}const E0={navMain:[{title:"Essential Insights",key:"essentialInsights",url:"/essential-insights/overall-performance",icon:c.jsx(mc,{className:"h-5 w-5"}),items:[{title:"Overall Performance",url:"/essential-insights/overall-performance",icon:c.jsx(co,{className:"h-4 w-4"})},{title:"Organic Performance",url:"/essential-insights/organic-performance",icon:c.jsx(vr,{className:"h-4 w-4"})},{title:"Paid Performance",url:"/essential-insights/paid-performance",icon:c.jsx(dc,{className:"h-4 w-4"})},{title:"Keyword Performance",url:"/essential-insights/keyword-performance",icon:c.jsx(vr,{className:"h-4 w-4"})}]},{title:"Web",key:"web",url:"/cms",icon:c.jsx(Ic,{className:"h-4 w-4"}),items:[{title:"Pages",url:"/cms/collections/pages",icon:c.jsx(Nc,{className:"h-4 w-4"})},{title:"Facilities",url:"/cms/collections/facilities",icon:c.jsx(rl,{className:"h-4 w-4"})},{title:"Facility Features",url:"/cms/collections/facility-features",icon:c.jsx(qc,{className:"h-4 w-4"})},{title:"Markets",url:"/cms/collections/markets",icon:c.jsx(zc,{className:"h-4 w-4"})},{title:"Blog Posts",url:"/cms/collections/posts",icon:c.jsx(Yc,{className:"h-4 w-4"})},{title:"Blog Categories",url:"/cms/collections/categories",icon:c.jsx(Pc,{className:"h-4 w-4"})},{title:"Media",url:"/cms/collections/media",icon:c.jsx(Oc,{className:"h-4 w-4"})},{title:"Menus",url:"/cms/collections/menus",icon:c.jsx(Vc,{className:"h-4 w-4"})},{title:"Brands",url:"/cms/collections/brands",icon:c.jsx(Wc,{className:"h-4 w-4"})},{title:"Forms",url:"/cms/collections/forms",icon:c.jsx(tc,{className:"h-4 w-4"})},{title:"Form Submissions",url:"/cms/collections/form-submissions",icon:c.jsx(Rc,{className:"h-4 w-4"})},{title:"Organization",url:"/cms/collections/tenants",icon:c.jsx(ac,{className:"h-4 w-4"})},{title:"Redirects",url:"/cms/collections/redirects",icon:c.jsx(Mc,{className:"h-4 w-4"})},{title:"Users",url:"/cms/collections/users",icon:c.jsx(tl,{className:"h-4 w-4"})},{title:"Builds",url:"/cms/collections/builds",icon:c.jsx(al,{className:"h-4 w-4"})},{title:"Deletion Logs",url:"/cms/collections/deletion-logs",icon:c.jsx(Jc,{className:"h-4 w-4"})}]},{title:"Price Monster",key:"priceMonster",url:"/price-monster",icon:c.jsx(yc,{className:"h-4 w-4"}),items:[{title:"Dashboard",url:"/price-monster/dashboard",icon:c.jsx(lc,{className:"h-4 w-4"})},{title:"Documentation",url:"/price-monster/documentation",icon:c.jsx(rc,{className:"h-4 w-4"})},{title:"Subscriptions",url:"/price-monster/subscriptions",icon:c.jsx(ic,{className:"h-4 w-4"})}]}]};function qs({...e}){const{isActiveRoute:t}=Us(),n=Zs();return c.jsxs(Na,{...e,children:[c.jsx(ja,{children:c.jsx("div",{className:"relative h-12 w-32 overflow-hidden",children:c.jsx("img",{src:C0,alt:"GLI Logo",className:"h-full w-full object-contain"})})}),c.jsxs(Oa,{children:[c.jsx("div",{className:"relative flex w-full min-w-0 flex-col px-2 py-1",children:c.jsxs("a",{href:"/",className:A("flex cursor-pointer items-center gap-2 rounded-lg px-2 py-2 transition-colors hover:bg-gray-100",t("/")&&"bg-blue-50 text-gli-bluedark font-medium"),children:[c.jsx(co,{className:A("h-5 w-5",t("/")?"text-gli-bluedark":"text-gray-500")}),c.jsx("span",{children:"Home"})]})}),c.jsx(Kn,{delayDuration:150,children:E0.navMain.map(r=>{const o=!r.key||n[r.key];let a=r.items;r.key==="essentialInsights"&&(a=r.items.filter(l=>o?l.url.includes("organic-performance")?n.organic:l.url.includes("paid-performance")?n.paid:l.url.includes("keyword-performance")?n.organic:!0:!1));const s=o&&(t(r.url)||a.some(l=>t(l.url))),i=c.jsx(Gs,{url:o?r.url:void 0,title:r.title,icon:r.icon,isActive:!!s,disabled:!o,className:A(!o&&"opacity-50"),children:o&&c.jsx(Ia,{children:c.jsx(La,{children:a.map(l=>{const d=t(l.url);return c.jsx(Fa,{children:c.jsx($a,{asChild:!0,children:c.jsxs("a",{href:l.url,className:A("flex items-center gap-2 pl-4 transition-colors text-muted-foreground hover:bg-muted hover:text-foreground",d&&"bg-blue-50 text-gli-bluedark font-medium"),children:[c.jsx("span",{className:A(d?"text-gli-bluedark":"text-muted-foreground"),children:l.icon}),c.jsx("span",{className:A(d?"text-gli-bluedark":"text-muted-foreground"),children:l.title})]})})},l.title)})})})},r.title);return r.key==="priceMonster"&&!o?c.jsxs(Yn,{children:[c.jsx(Zn,{asChild:!0,children:c.jsx("div",{children:i})}),c.jsx(Ut,{side:"top",align:"center",children:"Coming soon"})]},r.title):i})})]}),c.jsx(Pa,{})]})}async function M0(){var e,t,n,r,o,a;try{const s=await ti.accessToken();if(!s||s==="No token available")return{essentialInsights:!1,organic:!1,paid:!1,web:!1,priceMonster:!1,se_company_id:null};const l=(e=ni.jwtDecode(s)["https://cloud.golocal.com/org_metadata"])==null?void 0:e.metadata;return{essentialInsights:((t=l==null?void 0:l["essential-insights"])==null?void 0:t.enabled)===!0,organic:((n=l==null?void 0:l.organic)==null?void 0:n.enabled)===!0,paid:((r=l==null?void 0:l.paid)==null?void 0:r.enabled)===!0,web:((o=l==null?void 0:l.web)==null?void 0:o.enabled)===!0,priceMonster:((a=l==null?void 0:l["price-monster"])==null?void 0:a.enabled)===!0,se_company_id:(l==null?void 0:l.se_company_id)||null}}catch(s){return console.error("Error getting user permissions:",s),{essentialInsights:!1,organic:!1,paid:!1,web:!1,priceMonster:!1,se_company_id:null}}}const k0=({children:e,onLogout:t})=>c.jsx(Hr.Auth0Provider,{children:c.jsx(Aa,{children:c.jsxs("div",{className:"flex w-full",children:[c.jsx(qs,{}),c.jsxs(Ta,{className:"flex-1 flex flex-col min-w-0",children:[c.jsx(Ws,{onLogout:t}),c.jsx("main",{className:"flex-1 bg-white",id:"page-content",children:e})]})]})})});exports.AppHeader=Ws;exports.AppSidebar=qs;exports.Button=Dt;exports.Card=h0;exports.CardAction=x0;exports.CardContent=w0;exports.CardDescription=b0;exports.CardFooter=y0;exports.CardHeader=g0;exports.CardTitle=v0;exports.CollapsibleSection=Gs;exports.DropdownMenu=Fs;exports.DropdownMenuCheckboxItem=c0;exports.DropdownMenuContent=zs;exports.DropdownMenuGroup=i0;exports.DropdownMenuItem=yn;exports.DropdownMenuLabel=Hs;exports.DropdownMenuPortal=s0;exports.DropdownMenuRadioGroup=l0;exports.DropdownMenuRadioItem=u0;exports.DropdownMenuSeparator=Vs;exports.DropdownMenuShortcut=d0;exports.DropdownMenuSub=f0;exports.DropdownMenuSubContent=m0;exports.DropdownMenuSubTrigger=p0;exports.DropdownMenuTrigger=$s;exports.GLICloudProvider=k0;exports.Input=En;exports.PermissionsProvider=S0;exports.ProfileDropdown=Bs;exports.Separator=Ot;exports.Sheet=Uo;exports.SheetClose=Tu;exports.SheetContent=Tn;exports.SheetDescription=Dn;exports.SheetFooter=Yo;exports.SheetHeader=jn;exports.SheetOverlay=Pn;exports.SheetPortal=Ko;exports.SheetTitle=On;exports.SheetTrigger=Pu;exports.Sidebar=Na;exports.SidebarContent=Oa;exports.SidebarFooter=bf;exports.SidebarGroup=Da;exports.SidebarGroupAction=yf;exports.SidebarGroupContent=Ia;exports.SidebarGroupLabel=wf;exports.SidebarHeader=ja;exports.SidebarInput=vf;exports.SidebarInset=Ta;exports.SidebarMenu=Cf;exports.SidebarMenuAction=kf;exports.SidebarMenuBadge=Rf;exports.SidebarMenuButton=Mf;exports.SidebarMenuItem=Sf;exports.SidebarMenuSkeleton=Af;exports.SidebarMenuSub=La;exports.SidebarMenuSubButton=$a;exports.SidebarMenuSubItem=Fa;exports.SidebarProvider=Aa;exports.SidebarRail=Pa;exports.SidebarSeparator=xf;exports.SidebarTrigger=_a;exports.Skeleton=pn;exports.Tooltip=Yn;exports.TooltipContent=Ut;exports.TooltipProvider=Kn;exports.TooltipTrigger=Zn;exports.buttonVariants=uo;exports.getUserPermissions=M0;exports.useActiveRoute=Us;exports.useIsMobile=lo;exports.usePermissions=Ys;exports.useProductAccess=Zs;exports.useSidebar=ct;
|