@datawire-ai/busyfile-design-library 1.10.0 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(ne,oe){typeof exports=="object"&&typeof module<"u"?oe(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],oe):(ne=typeof globalThis<"u"?globalThis:ne||self,oe(ne.BusyFileDesignSystem={},ne.React,ne.ReactDOM))})(this,function(ne,oe,mr){"use strict";function gr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const l=gr(oe),Rt=gr(mr);var un={exports:{}},lt={};/**
1
+ (function(Q,oe){typeof exports=="object"&&typeof module<"u"?oe(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],oe):(Q=typeof globalThis<"u"?globalThis:Q||self,oe(Q.BusyFileDesignSystem={},Q.React,Q.ReactDOM))})(this,function(Q,oe,br){"use strict";function yr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const l=yr(oe),At=yr(br);var dn={exports:{}},ct={};/**
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 hr;function Ra(){if(hr)return lt;hr=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var a=null;if(s!==void 0&&(a=""+s),o.key!==void 0&&(a=""+o.key),"key"in o){s={};for(var i in o)i!=="key"&&(s[i]=o[i])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:a,ref:o!==void 0?o:null,props:s}}return lt.Fragment=t,lt.jsx=n,lt.jsxs=n,lt}var ct={};/**
9
+ */var wr;function Wa(){if(wr)return ct;wr=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var a=null;if(s!==void 0&&(a=""+s),o.key!==void 0&&(a=""+o.key),"key"in o){s={};for(var i in o)i!=="key"&&(s[i]=o[i])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:a,ref:o!==void 0?o:null,props:s}}return ct.Fragment=t,ct.jsx=n,ct.jsxs=n,ct}var ut={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,17 +14,17 @@
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 vr;function Aa(){return vr||(vr=1,process.env.NODE_ENV!=="production"&&function(){function e(S){if(S==null)return null;if(typeof S=="function")return S.$$typeof===G?null:S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case m:return"Fragment";case y:return"Profiler";case b:return"StrictMode";case P:return"Suspense";case N:return"SuspenseList";case V:return"Activity"}if(typeof S=="object")switch(typeof S.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),S.$$typeof){case v:return"Portal";case w:return(S.displayName||"Context")+".Provider";case x:return(S._context.displayName||"Context")+".Consumer";case E:var L=S.render;return S=S.displayName,S||(S=L.displayName||L.name||"",S=S!==""?"ForwardRef("+S+")":"ForwardRef"),S;case R:return L=S.displayName||null,L!==null?L:e(S.type)||"Memo";case T:L=S._payload,S=S._init;try{return e(S(L))}catch{}}return null}function t(S){return""+S}function n(S){try{t(S);var L=!1}catch{L=!0}if(L){L=console;var C=L.error,O=typeof Symbol=="function"&&Symbol.toStringTag&&S[Symbol.toStringTag]||S.constructor.name||"Object";return C.call(L,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",O),t(S)}}function r(S){if(S===m)return"<>";if(typeof S=="object"&&S!==null&&S.$$typeof===T)return"<...>";try{var L=e(S);return L?"<"+L+">":"<...>"}catch{return"<...>"}}function o(){var S=Z.A;return S===null?null:S.getOwner()}function s(){return Error("react-stack-top-frame")}function a(S){if(X.call(S,"key")){var L=Object.getOwnPropertyDescriptor(S,"key").get;if(L&&L.isReactWarning)return!1}return S.key!==void 0}function i(S,L){function C(){Y||(Y=!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)",L))}C.isReactWarning=!0,Object.defineProperty(S,"key",{get:C,configurable:!0})}function c(){var S=e(this.type);return $[S]||($[S]=!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.")),S=this.props.ref,S!==void 0?S:null}function u(S,L,C,O,M,_,B,A){return C=_.ref,S={$$typeof:h,type:S,key:L,props:_,_owner:M},(C!==void 0?C:null)!==null?Object.defineProperty(S,"ref",{enumerable:!1,get:c}):Object.defineProperty(S,"ref",{enumerable:!1,value:null}),S._store={},Object.defineProperty(S._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(S,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(S,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:B}),Object.defineProperty(S,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:A}),Object.freeze&&(Object.freeze(S.props),Object.freeze(S)),S}function d(S,L,C,O,M,_,B,A){var D=L.children;if(D!==void 0)if(O)if(J(D)){for(O=0;O<D.length;O++)f(D[O]);Object.freeze&&Object.freeze(D)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else f(D);if(X.call(L,"key")){D=e(S);var W=Object.keys(L).filter(function(ee){return ee!=="key"});O=0<W.length?"{key: someKey, "+W.join(": ..., ")+": ...}":"{key: someKey}",Q[D+O]||(W=0<W.length?"{"+W.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var Sr;function Ha(){return Sr||(Sr=1,process.env.NODE_ENV!=="production"&&function(){function e(C){if(C==null)return null;if(typeof C=="function")return C.$$typeof===Y?null:C.displayName||C.name||null;if(typeof C=="string")return C;switch(C){case m:return"Fragment";case y:return"Profiler";case x:return"StrictMode";case R:return"Suspense";case _:return"SuspenseList";case V:return"Activity"}if(typeof C=="object")switch(typeof C.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),C.$$typeof){case v:return"Portal";case w:return(C.displayName||"Context")+".Provider";case b:return(C._context.displayName||"Context")+".Consumer";case E:var L=C.render;return C=C.displayName,C||(C=L.displayName||L.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case P:return L=C.displayName||null,L!==null?L:e(C.type)||"Memo";case T:L=C._payload,C=C._init;try{return e(C(L))}catch{}}return null}function t(C){return""+C}function n(C){try{t(C);var L=!1}catch{L=!0}if(L){L=console;var S=L.error,N=typeof Symbol=="function"&&Symbol.toStringTag&&C[Symbol.toStringTag]||C.constructor.name||"Object";return S.call(L,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",N),t(C)}}function r(C){if(C===m)return"<>";if(typeof C=="object"&&C!==null&&C.$$typeof===T)return"<...>";try{var L=e(C);return L?"<"+L+">":"<...>"}catch{return"<...>"}}function o(){var C=Z.A;return C===null?null:C.getOwner()}function s(){return Error("react-stack-top-frame")}function a(C){if(q.call(C,"key")){var L=Object.getOwnPropertyDescriptor(C,"key").get;if(L&&L.isReactWarning)return!1}return C.key!==void 0}function i(C,L){function S(){K||(K=!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)",L))}S.isReactWarning=!0,Object.defineProperty(C,"key",{get:S,configurable:!0})}function c(){var C=e(this.type);return $[C]||($[C]=!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.")),C=this.props.ref,C!==void 0?C:null}function u(C,L,S,N,M,O,W,A){return S=O.ref,C={$$typeof:g,type:C,key:L,props:O,_owner:M},(S!==void 0?S:null)!==null?Object.defineProperty(C,"ref",{enumerable:!1,get:c}):Object.defineProperty(C,"ref",{enumerable:!1,value:null}),C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(C,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(C,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:W}),Object.defineProperty(C,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:A}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C}function f(C,L,S,N,M,O,W,A){var D=L.children;if(D!==void 0)if(N)if(J(D)){for(N=0;N<D.length;N++)d(D[N]);Object.freeze&&Object.freeze(D)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else d(D);if(q.call(L,"key")){D=e(C);var B=Object.keys(L).filter(function(te){return te!=="key"});N=0<B.length?"{key: someKey, "+B.join(": ..., ")+": ...}":"{key: someKey}",ee[D+N]||(B=0<B.length?"{"+B.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} />`,O,D,W,D),Q[D+O]=!0)}if(D=null,C!==void 0&&(n(C),D=""+C),a(L)&&(n(L.key),D=""+L.key),"key"in L){C={};for(var H in L)H!=="key"&&(C[H]=L[H])}else C=L;return D&&i(C,typeof S=="function"?S.displayName||S.name||"Unknown":S),u(S,D,_,M,o(),C,B,A)}function f(S){typeof S=="object"&&S!==null&&S.$$typeof===h&&S._store&&(S._store.validated=1)}var g=oe,h=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),G=Symbol.for("react.client.reference"),Z=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=Object.prototype.hasOwnProperty,J=Array.isArray,F=console.createTask?console.createTask:function(){return null};g={"react-stack-bottom-frame":function(S){return S()}};var Y,$={},z=g["react-stack-bottom-frame"].bind(g,s)(),k=F(r(s)),Q={};ct.Fragment=m,ct.jsx=function(S,L,C,O,M){var _=1e4>Z.recentlyCreatedOwnerStacks++;return d(S,L,C,!1,O,M,_?Error("react-stack-top-frame"):z,_?F(r(S)):k)},ct.jsxs=function(S,L,C,O,M){var _=1e4>Z.recentlyCreatedOwnerStacks++;return d(S,L,C,!0,O,M,_?Error("react-stack-top-frame"):z,_?F(r(S)):k)}}()),ct}process.env.NODE_ENV==="production"?un.exports=Ra():un.exports=Aa();var p=un.exports;function br(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Me(...e){return t=>{let n=!1;const r=e.map(o=>{const s=br(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():br(e[o],null)}}}}function se(...e){return l.useCallback(Me(...e),e)}function De(e){const t=Ta(e),n=l.forwardRef((r,o)=>{const{children:s,...a}=r,i=l.Children.toArray(s),c=i.find(Oa);if(c){const u=c.props.children,d=i.map(f=>f===c?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:f);return p.jsx(t,{...a,ref:o,children:l.isValidElement(u)?l.cloneElement(u,void 0,d):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var dn=De("Slot");function Ta(e){const t=l.forwardRef((n,r)=>{const{children:o,...s}=n;if(l.isValidElement(o)){const a=Ia(o),i=_a(s,o.props);return o.type!==l.Fragment&&(i.ref=r?Me(r,a):a),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var xr=Symbol("radix.slottable");function Na(e){const t=({children:n})=>p.jsx(p.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=xr,t}function Oa(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===xr}function _a(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const c=s(...i);return o(...i),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Ia(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function 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 wr(){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 fn="-",ja=e=>{const t=Da(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const i=a.split(fn);return i[0]===""&&i.length!==1&&i.shift(),Cr(i,t)||Ma(a)},getConflictingClassGroupIds:(a,i)=>{const c=n[a]||[];return i&&r[a]?[...c,...r[a]]:c}}},Cr=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Cr(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(fn);return(a=t.validators.find(({validator:i})=>i(s)))==null?void 0:a.classGroupId},Sr=/^\[(.+)\]$/,Ma=e=>{if(Sr.test(e)){const t=Sr.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Da=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)pn(n[o],r,o,t);return r},pn=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:Er(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(La(o)){pn(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,a])=>{pn(a,Er(t,s),n,r)})})},Er=(e,t)=>{let n=e;return t.split(fn).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},La=e=>e.isThemeGetter,$a=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,a)=>{n.set(s,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return o(s,a),a},set(s,a){n.has(s)?n.set(s,a):o(s,a)}}},mn="!",gn=":",Fa=gn.length,za=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let a=0,i=0,c=0,u;for(let v=0;v<o.length;v++){let m=o[v];if(a===0&&i===0){if(m===gn){s.push(o.slice(c,v)),c=v+Fa;continue}if(m==="/"){u=v;continue}}m==="["?a++:m==="]"?a--:m==="("?i++:m===")"&&i--}const d=s.length===0?o:o.substring(c),f=Va(d),g=f!==d,h=u&&u>c?u-c:void 0;return{modifiers:s,hasImportantModifier:g,baseClassName:f,maybePostfixModifierPosition:h}};if(t){const o=t+gn,s=r;r=a=>a.startsWith(o)?s(a.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:a,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},Va=e=>e.endsWith(mn)?e.substring(0,e.length-1):e.startsWith(mn)?e.substring(1):e,Wa=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let s=[];return r.forEach(a=>{a[0]==="["||t[a]?(o.push(...s.sort(),a),s=[]):s.push(a)}),o.push(...s.sort()),o}},Ba=e=>({cache:$a(e.cacheSize),parseClassName:za(e),sortModifiers:Wa(e),...ja(e)}),Ha=/\s+/,Ua=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,a=[],i=e.trim().split(Ha);let c="";for(let u=i.length-1;u>=0;u-=1){const d=i[u],{isExternal:f,modifiers:g,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:m}=n(d);if(f){c=d+(c.length>0?" "+c:c);continue}let b=!!m,y=r(b?v.substring(0,m):v);if(!y){if(!b){c=d+(c.length>0?" "+c:c);continue}if(y=r(v),!y){c=d+(c.length>0?" "+c:c);continue}b=!1}const x=s(g).join(":"),w=h?x+mn:x,E=w+y;if(a.includes(E))continue;a.push(E);const P=o(y,b);for(let N=0;N<P.length;++N){const R=P[N];a.push(w+R)}c=d+(c.length>0?" "+c:c)}return c};function Ga(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=kr(t))&&(r&&(r+=" "),r+=n);return r}const kr=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=kr(e[r]))&&(n&&(n+=" "),n+=t);return n};function Ya(e,...t){let n,r,o,s=a;function a(c){const u=t.reduce((d,f)=>f(d),e());return n=Ba(u),r=n.cache.get,o=n.cache.set,s=i,i(c)}function i(c){const u=r(c);if(u)return u;const d=Ua(c,n);return o(c,d),d}return function(){return s(Ga.apply(null,arguments))}}const ae=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Pr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Rr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ka=/^\d+\/\d+$/,Xa=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qa=/\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$/,Za=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ja=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Qa=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,He=e=>Ka.test(e),U=e=>!!e&&!Number.isNaN(Number(e)),Pe=e=>!!e&&Number.isInteger(Number(e)),hn=e=>e.endsWith("%")&&U(e.slice(0,-1)),Ce=e=>Xa.test(e),ei=()=>!0,ti=e=>qa.test(e)&&!Za.test(e),Ar=()=>!1,ni=e=>Ja.test(e),ri=e=>Qa.test(e),oi=e=>!I(e)&&!j(e),si=e=>Ue(e,Ir,Ar),I=e=>Pr.test(e),Le=e=>Ue(e,jr,ti),vn=e=>Ue(e,ui,U),Tr=e=>Ue(e,Or,Ar),ai=e=>Ue(e,_r,ri),At=e=>Ue(e,Mr,ni),j=e=>Rr.test(e),ut=e=>Ge(e,jr),ii=e=>Ge(e,di),Nr=e=>Ge(e,Or),li=e=>Ge(e,Ir),ci=e=>Ge(e,_r),Tt=e=>Ge(e,Mr,!0),Ue=(e,t,n)=>{const r=Pr.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ge=(e,t,n=!1)=>{const r=Rr.exec(e);return r?r[1]?t(r[1]):n:!1},Or=e=>e==="position"||e==="percentage",_r=e=>e==="image"||e==="url",Ir=e=>e==="length"||e==="size"||e==="bg-size",jr=e=>e==="length",ui=e=>e==="number",di=e=>e==="family-name",Mr=e=>e==="shadow",fi=Ya(()=>{const e=ae("color"),t=ae("font"),n=ae("text"),r=ae("font-weight"),o=ae("tracking"),s=ae("leading"),a=ae("breakpoint"),i=ae("container"),c=ae("spacing"),u=ae("radius"),d=ae("shadow"),f=ae("inset-shadow"),g=ae("text-shadow"),h=ae("drop-shadow"),v=ae("blur"),m=ae("perspective"),b=ae("aspect"),y=ae("ease"),x=ae("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...E(),j,I],N=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],T=()=>[j,I,c],V=()=>[He,"full","auto",...T()],G=()=>[Pe,"none","subgrid",j,I],Z=()=>["auto",{span:["full",Pe,j,I]},Pe,j,I],X=()=>[Pe,"auto",j,I],J=()=>["auto","min","max","fr",j,I],F=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Y=()=>["start","end","center","stretch","center-safe","end-safe"],$=()=>["auto",...T()],z=()=>[He,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...T()],k=()=>[e,j,I],Q=()=>[...E(),Nr,Tr,{position:[j,I]}],S=()=>["no-repeat",{repeat:["","x","y","space","round"]}],L=()=>["auto","cover","contain",li,si,{size:[j,I]}],C=()=>[hn,ut,Le],O=()=>["","none","full",u,j,I],M=()=>["",U,ut,Le],_=()=>["solid","dashed","dotted","double"],B=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],A=()=>[U,hn,Nr,Tr],D=()=>["","none",v,j,I],W=()=>["none",U,j,I],H=()=>["none",U,j,I],ee=()=>[U,j,I],te=()=>[He,"full",...T()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ce],breakpoint:[Ce],color:[ei],container:[Ce],"drop-shadow":[Ce],ease:["in","out","in-out"],font:[oi],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ce],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ce],shadow:[Ce],spacing:["px",U],text:[Ce],"text-shadow":[Ce],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",He,I,j,b]}],container:["container"],columns:[{columns:[U,I,j,i]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:P()}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:V()}],"inset-x":[{"inset-x":V()}],"inset-y":[{"inset-y":V()}],start:[{start:V()}],end:[{end:V()}],top:[{top:V()}],right:[{right:V()}],bottom:[{bottom:V()}],left:[{left:V()}],visibility:["visible","invisible","collapse"],z:[{z:[Pe,"auto",j,I]}],basis:[{basis:[He,"full","auto",i,...T()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[U,He,"auto","initial","none",I]}],grow:[{grow:["",U,j,I]}],shrink:[{shrink:["",U,j,I]}],order:[{order:[Pe,"first","last","none",j,I]}],"grid-cols":[{"grid-cols":G()}],"col-start-end":[{col:Z()}],"col-start":[{"col-start":X()}],"col-end":[{"col-end":X()}],"grid-rows":[{"grid-rows":G()}],"row-start-end":[{row:Z()}],"row-start":[{"row-start":X()}],"row-end":[{"row-end":X()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":J()}],"auto-rows":[{"auto-rows":J()}],gap:[{gap:T()}],"gap-x":[{"gap-x":T()}],"gap-y":[{"gap-y":T()}],"justify-content":[{justify:[...F(),"normal"]}],"justify-items":[{"justify-items":[...Y(),"normal"]}],"justify-self":[{"justify-self":["auto",...Y()]}],"align-content":[{content:["normal",...F()]}],"align-items":[{items:[...Y(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Y(),{baseline:["","last"]}]}],"place-content":[{"place-content":F()}],"place-items":[{"place-items":[...Y(),"baseline"]}],"place-self":[{"place-self":["auto",...Y()]}],p:[{p:T()}],px:[{px:T()}],py:[{py:T()}],ps:[{ps:T()}],pe:[{pe:T()}],pt:[{pt:T()}],pr:[{pr:T()}],pb:[{pb:T()}],pl:[{pl:T()}],m:[{m:$()}],mx:[{mx:$()}],my:[{my:$()}],ms:[{ms:$()}],me:[{me:$()}],mt:[{mt:$()}],mr:[{mr:$()}],mb:[{mb:$()}],ml:[{ml:$()}],"space-x":[{"space-x":T()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":T()}],"space-y-reverse":["space-y-reverse"],size:[{size:z()}],w:[{w:[i,"screen",...z()]}],"min-w":[{"min-w":[i,"screen","none",...z()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[a]},...z()]}],h:[{h:["screen","lh",...z()]}],"min-h":[{"min-h":["screen","lh","none",...z()]}],"max-h":[{"max-h":["screen","lh",...z()]}],"font-size":[{text:["base",n,ut,Le]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,j,vn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",hn,I]}],"font-family":[{font:[ii,I,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,j,I]}],"line-clamp":[{"line-clamp":[U,"none",j,vn]}],leading:[{leading:[s,...T()]}],"list-image":[{"list-image":["none",j,I]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",j,I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[..._(),"wavy"]}],"text-decoration-thickness":[{decoration:[U,"from-font","auto",j,Le]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[U,"auto",j,I]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",j,I]}],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",j,I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Q()}],"bg-repeat":[{bg:S()}],"bg-size":[{bg:L()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Pe,j,I],radial:["",j,I],conic:[Pe,j,I]},ci,ai]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:C()}],"gradient-via-pos":[{via:C()}],"gradient-to-pos":[{to:C()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:O()}],"rounded-s":[{"rounded-s":O()}],"rounded-e":[{"rounded-e":O()}],"rounded-t":[{"rounded-t":O()}],"rounded-r":[{"rounded-r":O()}],"rounded-b":[{"rounded-b":O()}],"rounded-l":[{"rounded-l":O()}],"rounded-ss":[{"rounded-ss":O()}],"rounded-se":[{"rounded-se":O()}],"rounded-ee":[{"rounded-ee":O()}],"rounded-es":[{"rounded-es":O()}],"rounded-tl":[{"rounded-tl":O()}],"rounded-tr":[{"rounded-tr":O()}],"rounded-br":[{"rounded-br":O()}],"rounded-bl":[{"rounded-bl":O()}],"border-w":[{border:M()}],"border-w-x":[{"border-x":M()}],"border-w-y":[{"border-y":M()}],"border-w-s":[{"border-s":M()}],"border-w-e":[{"border-e":M()}],"border-w-t":[{"border-t":M()}],"border-w-r":[{"border-r":M()}],"border-w-b":[{"border-b":M()}],"border-w-l":[{"border-l":M()}],"divide-x":[{"divide-x":M()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":M()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[..._(),"hidden","none"]}],"divide-style":[{divide:[..._(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[..._(),"none","hidden"]}],"outline-offset":[{"outline-offset":[U,j,I]}],"outline-w":[{outline:["",U,ut,Le]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",d,Tt,At]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",f,Tt,At]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[U,Le]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":M()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",g,Tt,At]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[U,j,I]}],"mix-blend":[{"mix-blend":[...B(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":B()}],"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":[U]}],"mask-image-linear-from-pos":[{"mask-linear-from":A()}],"mask-image-linear-to-pos":[{"mask-linear-to":A()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":A()}],"mask-image-t-to-pos":[{"mask-t-to":A()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":A()}],"mask-image-r-to-pos":[{"mask-r-to":A()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":A()}],"mask-image-b-to-pos":[{"mask-b-to":A()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":A()}],"mask-image-l-to-pos":[{"mask-l-to":A()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":A()}],"mask-image-x-to-pos":[{"mask-x-to":A()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":A()}],"mask-image-y-to-pos":[{"mask-y-to":A()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[j,I]}],"mask-image-radial-from-pos":[{"mask-radial-from":A()}],"mask-image-radial-to-pos":[{"mask-radial-to":A()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":E()}],"mask-image-conic-pos":[{"mask-conic":[U]}],"mask-image-conic-from-pos":[{"mask-conic-from":A()}],"mask-image-conic-to-pos":[{"mask-conic-to":A()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Q()}],"mask-repeat":[{mask:S()}],"mask-size":[{mask:L()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",j,I]}],filter:[{filter:["","none",j,I]}],blur:[{blur:D()}],brightness:[{brightness:[U,j,I]}],contrast:[{contrast:[U,j,I]}],"drop-shadow":[{"drop-shadow":["","none",h,Tt,At]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",U,j,I]}],"hue-rotate":[{"hue-rotate":[U,j,I]}],invert:[{invert:["",U,j,I]}],saturate:[{saturate:[U,j,I]}],sepia:[{sepia:["",U,j,I]}],"backdrop-filter":[{"backdrop-filter":["","none",j,I]}],"backdrop-blur":[{"backdrop-blur":D()}],"backdrop-brightness":[{"backdrop-brightness":[U,j,I]}],"backdrop-contrast":[{"backdrop-contrast":[U,j,I]}],"backdrop-grayscale":[{"backdrop-grayscale":["",U,j,I]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[U,j,I]}],"backdrop-invert":[{"backdrop-invert":["",U,j,I]}],"backdrop-opacity":[{"backdrop-opacity":[U,j,I]}],"backdrop-saturate":[{"backdrop-saturate":[U,j,I]}],"backdrop-sepia":[{"backdrop-sepia":["",U,j,I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":T()}],"border-spacing-x":[{"border-spacing-x":T()}],"border-spacing-y":[{"border-spacing-y":T()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",j,I]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[U,"initial",j,I]}],ease:[{ease:["linear","initial",y,j,I]}],delay:[{delay:[U,j,I]}],animate:[{animate:["none",x,j,I]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,j,I]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:W()}],"rotate-x":[{"rotate-x":W()}],"rotate-y":[{"rotate-y":W()}],"rotate-z":[{"rotate-z":W()}],scale:[{scale:H()}],"scale-x":[{"scale-x":H()}],"scale-y":[{"scale-y":H()}],"scale-z":[{"scale-z":H()}],"scale-3d":["scale-3d"],skew:[{skew:ee()}],"skew-x":[{"skew-x":ee()}],"skew-y":[{"skew-y":ee()}],transform:[{transform:[j,I,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:te()}],"translate-x":[{"translate-x":te()}],"translate-y":[{"translate-y":te()}],"translate-z":[{"translate-z":te()}],"translate-none":["translate-none"],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}],"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",j,I]}],"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":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"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",j,I]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[U,ut,Le,vn]}],stroke:[{stroke:["none",...k()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function re(...e){return fi(wr(e))}const Dr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Lr=wr,Nt=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Lr(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,a=Object.keys(o).map(u=>{const d=n==null?void 0:n[u],f=s==null?void 0:s[u];if(d===null)return null;const g=Dr(d)||Dr(f);return o[u][g]}),i=n&&Object.entries(n).reduce((u,d)=>{let[f,g]=d;return g===void 0||(u[f]=g),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:f,className:g,...h}=d;return Object.entries(h).every(v=>{let[m,b]=v;return Array.isArray(b)?b.includes({...s,...i}[m]):{...s,...i}[m]===b})?[...u,f,g]:u},[]);return Lr(e,a,c,n==null?void 0:n.class,n==null?void 0:n.className)},pi=Nt("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:ring-2 focus-visible:ring-offset-2",{variants:{variant:{default:"bg-neutral-black-1 text-sm font-normal text-white shadow-sm hover:bg-neutral-black-2 focus-visible:ring-neutral-black-1",primary:"bg-neutral-black-5 text-sm font-normal text-neutral-70 hover:bg-neutral-black-5 focus-visible:ring-bg-neutral-black-5",outline:"bg-transparent text-black hover:bg-neutral-black-2 focus-visible:ring-4 focus-visible:ring-bg-surface border border-bg-neutral-black-2"},size:{default:"h-9 px-4 py-2",sm:"h-8 px-3 text-xs",lg:"h-10 px-6",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}});function mi({className:e,variant:t,size:n,asChild:r=!1,children:o,...s}){const a=r?dn:"button";return p.jsx(a,{"data-slot":"button",className:re(pi({variant:t,size:n}),e),...s,children:o})}function q(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 gi(e,t){const n=l.createContext(t),r=s=>{const{children:a,...i}=s,c=l.useMemo(()=>i,Object.values(i));return p.jsx(n.Provider,{value:c,children:a})};r.displayName=e+"Provider";function o(s){const a=l.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function Ye(e,t=[]){let n=[];function r(s,a){const i=l.createContext(a),c=n.length;n=[...n,a];const u=f=>{var y;const{scope:g,children:h,...v}=f,m=((y=g==null?void 0:g[e])==null?void 0:y[c])||i,b=l.useMemo(()=>v,Object.values(v));return p.jsx(m.Provider,{value:b,children:h})};u.displayName=s+"Provider";function d(f,g){var m;const h=((m=g==null?void 0:g[e])==null?void 0:m[c])||i,v=l.useContext(h);if(v)return v;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[u,d]}const o=()=>{const s=n.map(a=>l.createContext(a));return function(i){const c=(i==null?void 0:i[e])||s;return l.useMemo(()=>({[`__scope${e}`]:{...i,[e]:c}}),[i,c])}};return o.scopeName=e,[r,hi(o,...t)]}function hi(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((i,{useScope:c,scopeName:u})=>{const f=c(s)[`__scope${u}`];return{...i,...f}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var ie=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},vi=l[" useId ".trim().toString()]||(()=>{}),bi=0;function le(e){const[t,n]=l.useState(vi());return ie(()=>{n(r=>r??String(bi++))},[e]),e||(t?`radix-${t}`:"")}var xi=l[" useInsertionEffect ".trim().toString()]||ie;function dt({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,a]=yi({defaultProp:t,onChange:n}),i=e!==void 0,c=i?e:o;{const d=l.useRef(e!==void 0);l.useEffect(()=>{const f=d.current;f!==i&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=i},[i,r])}const u=l.useCallback(d=>{var f;if(i){const g=wi(d)?d(e):d;g!==e&&((f=a.current)==null||f.call(a,g))}else s(d)},[i,e,s,a]);return[c,u]}function yi({defaultProp:e,onChange:t}){const[n,r]=l.useState(e),o=l.useRef(n),s=l.useRef(t);return xi(()=>{s.current=t},[t]),l.useEffect(()=>{var a;o.current!==n&&((a=s.current)==null||a.call(s,n),o.current=n)},[n,o]),[n,r,s]}function wi(e){return typeof e=="function"}var Ci=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],K=Ci.reduce((e,t)=>{const n=De(`Primitive.${t}`),r=l.forwardRef((o,s)=>{const{asChild:a,...i}=o,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(c,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Si(e,t){e&&Rt.flushSync(()=>e.dispatchEvent(t))}function $e(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Ei(e,t=globalThis==null?void 0:globalThis.document){const n=$e(e);l.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var ki="DismissableLayer",bn="dismissableLayer.update",Pi="dismissableLayer.pointerDownOutside",Ri="dismissableLayer.focusOutside",$r,Fr=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ft=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:i,...c}=e,u=l.useContext(Fr),[d,f]=l.useState(null),g=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=l.useState({}),v=se(t,R=>f(R)),m=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(b),x=d?m.indexOf(d):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,E=x>=y,P=Ni(R=>{const T=R.target,V=[...u.branches].some(G=>G.contains(T));!E||V||(o==null||o(R),a==null||a(R),R.defaultPrevented||i==null||i())},g),N=Oi(R=>{const T=R.target;[...u.branches].some(G=>G.contains(T))||(s==null||s(R),a==null||a(R),R.defaultPrevented||i==null||i())},g);return Ei(R=>{x===u.layers.size-1&&(r==null||r(R),!R.defaultPrevented&&i&&(R.preventDefault(),i()))},g),l.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&($r=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),zr(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=$r)}},[d,g,n,u]),l.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),zr())},[d,u]),l.useEffect(()=>{const R=()=>h({});return document.addEventListener(bn,R),()=>document.removeEventListener(bn,R)},[]),p.jsx(K.div,{...c,ref:v,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:q(e.onFocusCapture,N.onFocusCapture),onBlurCapture:q(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:q(e.onPointerDownCapture,P.onPointerDownCapture)})});ft.displayName=ki;var Ai="DismissableLayerBranch",Ti=l.forwardRef((e,t)=>{const n=l.useContext(Fr),r=l.useRef(null),o=se(t,r);return l.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),p.jsx(K.div,{...e,ref:o})});Ti.displayName=Ai;function Ni(e,t=globalThis==null?void 0:globalThis.document){const n=$e(e),r=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const s=i=>{if(i.target&&!r.current){let c=function(){Vr(Pi,n,u,{discrete:!0})};const u={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Oi(e,t=globalThis==null?void 0:globalThis.document){const n=$e(e),r=l.useRef(!1);return l.useEffect(()=>{const o=s=>{s.target&&!r.current&&Vr(Ri,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function zr(){const e=new CustomEvent(bn);document.dispatchEvent(e)}function Vr(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Si(o,s):o.dispatchEvent(s)}var xn="focusScope.autoFocusOnMount",yn="focusScope.autoFocusOnUnmount",Wr={bubbles:!1,cancelable:!0},_i="FocusScope",Ot=l.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[i,c]=l.useState(null),u=$e(o),d=$e(s),f=l.useRef(null),g=se(t,m=>c(m)),h=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let m=function(w){if(h.paused||!i)return;const E=w.target;i.contains(E)?f.current=E:Re(f.current,{select:!0})},b=function(w){if(h.paused||!i)return;const E=w.relatedTarget;E!==null&&(i.contains(E)||Re(f.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const P of w)P.removedNodes.length>0&&Re(i)};document.addEventListener("focusin",m),document.addEventListener("focusout",b);const x=new MutationObserver(y);return i&&x.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",b),x.disconnect()}}},[r,i,h.paused]),l.useEffect(()=>{if(i){Ur.add(h);const m=document.activeElement;if(!i.contains(m)){const y=new CustomEvent(xn,Wr);i.addEventListener(xn,u),i.dispatchEvent(y),y.defaultPrevented||(Ii($i(Br(i)),{select:!0}),document.activeElement===m&&Re(i))}return()=>{i.removeEventListener(xn,u),setTimeout(()=>{const y=new CustomEvent(yn,Wr);i.addEventListener(yn,d),i.dispatchEvent(y),y.defaultPrevented||Re(m??document.body,{select:!0}),i.removeEventListener(yn,d),Ur.remove(h)},0)}}},[i,u,d,h]);const v=l.useCallback(m=>{if(!n&&!r||h.paused)return;const b=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,y=document.activeElement;if(b&&y){const x=m.currentTarget,[w,E]=ji(x);w&&E?!m.shiftKey&&y===E?(m.preventDefault(),n&&Re(w,{select:!0})):m.shiftKey&&y===w&&(m.preventDefault(),n&&Re(E,{select:!0})):y===x&&m.preventDefault()}},[n,r,h.paused]);return p.jsx(K.div,{tabIndex:-1,...a,ref:g,onKeyDown:v})});Ot.displayName=_i;function Ii(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Re(r,{select:t}),document.activeElement!==n)return}function ji(e){const t=Br(e),n=Hr(t,e),r=Hr(t.reverse(),e);return[n,r]}function Br(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 Hr(e,t){for(const n of e)if(!Mi(n,{upTo:t}))return n}function Mi(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 Di(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&&Di(e)&&t&&e.select()}}var Ur=Li();function Li(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Gr(e,t),e.unshift(t)},remove(t){var n;e=Gr(e,t),(n=e[0])==null||n.resume()}}}function Gr(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function $i(e){return e.filter(t=>t.tagName!=="A")}var Fi="Portal",pt=l.forwardRef((e,t)=>{var i;const{container:n,...r}=e,[o,s]=l.useState(!1);ie(()=>s(!0),[]);const a=n||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return a?mr.createPortal(p.jsx(K.div,{...r,ref:t}),a):null});pt.displayName=Fi;function zi(e,t){return l.useReducer((n,r)=>t[n][r]??n,e)}var Ae=e=>{const{present:t,children:n}=e,r=Vi(t),o=typeof n=="function"?n({present:r.isPresent}):l.Children.only(n),s=se(r.ref,Wi(o));return typeof n=="function"||r.isPresent?l.cloneElement(o,{ref:s}):null};Ae.displayName="Presence";function Vi(e){const[t,n]=l.useState(),r=l.useRef(null),o=l.useRef(e),s=l.useRef("none"),a=e?"mounted":"unmounted",[i,c]=zi(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const u=_t(r.current);s.current=i==="mounted"?u:"none"},[i]),ie(()=>{const u=r.current,d=o.current;if(d!==e){const g=s.current,h=_t(u);e?c("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&g!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ie(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,f=h=>{const m=_t(r.current).includes(CSS.escape(h.animationName));if(h.target===t&&m&&(c("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},g=h=>{h.target===t&&(s.current=_t(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:l.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function _t(e){return(e==null?void 0:e.animationName)||"none"}function Wi(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 wn=0;function Cn(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Yr()),document.body.insertAdjacentElement("beforeend",e[1]??Yr()),wn++,()=>{wn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),wn--}},[])}function Yr(){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 he=function(){return he=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},he.apply(this,arguments)};function Kr(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 Bi(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var It="right-scroll-bar-position",jt="width-before-scroll-bar",Hi="with-scroll-bars-hidden",Ui="--removed-body-scroll-bar-size";function Sn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Gi(e,t){var n=oe.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 Yi=typeof window<"u"?l.useLayoutEffect:l.useEffect,Xr=new WeakMap;function Ki(e,t){var n=Gi(null,function(r){return e.forEach(function(o){return Sn(o,r)})});return Yi(function(){var r=Xr.get(n);if(r){var o=new Set(r),s=new Set(e),a=n.current;o.forEach(function(i){s.has(i)||Sn(i,null)}),s.forEach(function(i){o.has(i)||Sn(i,a)})}Xr.set(n,e)},[e]),n}function Xi(e){return e}function qi(e,t){t===void 0&&(t=Xi);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,r);return n.push(a),function(){n=n.filter(function(i){return i!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(i){return s(i)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var i=n;n=[],i.forEach(s),a=n}var c=function(){var d=a;a=[],d.forEach(s)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(d){a.push(d),u()},filter:function(d){return a=a.filter(d),n}}}};return o}function Zi(e){e===void 0&&(e={});var t=qi(null);return t.options=he({async:!0,ssr:!1},e),t}var qr=function(e){var t=e.sideCar,n=Kr(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return l.createElement(r,he({},n))};qr.isSideCarExport=!0;function Ji(e,t){return e.useMedium(t),qr}var Zr=Zi(),En=function(){},Mt=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:En,onWheelCapture:En,onTouchMoveCapture:En}),o=r[0],s=r[1],a=e.forwardProps,i=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,g=e.sideCar,h=e.noRelative,v=e.noIsolation,m=e.inert,b=e.allowPinchZoom,y=e.as,x=y===void 0?"div":y,w=e.gapMode,E=Kr(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=g,N=Ki([n,t]),R=he(he({},E),o);return l.createElement(l.Fragment,null,d&&l.createElement(P,{sideCar:Zr,removeScrollBar:u,shards:f,noRelative:h,noIsolation:v,inert:m,setCallbacks:s,allowPinchZoom:!!b,lockRef:n,gapMode:w}),a?l.cloneElement(l.Children.only(i),he(he({},R),{ref:N})):l.createElement(x,he({},R,{className:c,ref:N}),i))});Mt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Mt.classNames={fullWidth:jt,zeroRight:It};var Qi=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function el(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Qi();return t&&e.setAttribute("nonce",t),e}function tl(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function nl(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var rl=function(){var e=0,t=null;return{add:function(n){e==0&&(t=el())&&(tl(t,n),nl(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ol=function(){var e=rl();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Jr=function(){var e=ol(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},sl={left:0,top:0,right:0,gap:0},kn=function(e){return parseInt(e||"",10)||0},al=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[kn(n),kn(r),kn(o)]},il=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return sl;var t=al(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])}},ll=Jr(),Ke="data-scroll-locked",cl=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,i=e.gap;return n===void 0&&(n="margin"),`
23
- .`.concat(Hi,` {
22
+ <%s key={someKey} {...props} />`,N,D,B,D),ee[D+N]=!0)}if(D=null,S!==void 0&&(n(S),D=""+S),a(L)&&(n(L.key),D=""+L.key),"key"in L){S={};for(var U in L)U!=="key"&&(S[U]=L[U])}else S=L;return D&&i(S,typeof C=="function"?C.displayName||C.name||"Unknown":C),u(C,D,O,M,o(),S,W,A)}function d(C){typeof C=="object"&&C!==null&&C.$$typeof===g&&C._store&&(C._store.validated=1)}var h=oe,g=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),Y=Symbol.for("react.client.reference"),Z=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=Object.prototype.hasOwnProperty,J=Array.isArray,F=console.createTask?console.createTask:function(){return null};h={"react-stack-bottom-frame":function(C){return C()}};var K,$={},z=h["react-stack-bottom-frame"].bind(h,s)(),k=F(r(s)),ee={};ut.Fragment=m,ut.jsx=function(C,L,S,N,M){var O=1e4>Z.recentlyCreatedOwnerStacks++;return f(C,L,S,!1,N,M,O?Error("react-stack-top-frame"):z,O?F(r(C)):k)},ut.jsxs=function(C,L,S,N,M){var O=1e4>Z.recentlyCreatedOwnerStacks++;return f(C,L,S,!0,N,M,O?Error("react-stack-top-frame"):z,O?F(r(C)):k)}}()),ut}process.env.NODE_ENV==="production"?dn.exports=Wa():dn.exports=Ha();var p=dn.exports;function Cr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Le(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Cr(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():Cr(e[o],null)}}}}function se(...e){return l.useCallback(Le(...e),e)}function $e(e){const t=Ua(e),n=l.forwardRef((r,o)=>{const{children:s,...a}=r,i=l.Children.toArray(s),c=i.find(Ya);if(c){const u=c.props.children,f=i.map(d=>d===c?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:d);return p.jsx(t,{...a,ref:o,children:l.isValidElement(u)?l.cloneElement(u,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var fn=$e("Slot");function Ua(e){const t=l.forwardRef((n,r)=>{const{children:o,...s}=n;if(l.isValidElement(o)){const a=qa(o),i=Ka(s,o.props);return o.type!==l.Fragment&&(i.ref=r?Le(r,a):a),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Er=Symbol("radix.slottable");function Ga(e){const t=({children:n})=>p.jsx(p.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Er,t}function Ya(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Er}function Ka(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const c=s(...i);return o(...i),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function qa(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function kr(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=kr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Rr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=kr(e))&&(r&&(r+=" "),r+=t);return r}const pn="-",Xa=e=>{const t=Ja(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const i=a.split(pn);return i[0]===""&&i.length!==1&&i.shift(),Pr(i,t)||Za(a)},getConflictingClassGroupIds:(a,i)=>{const c=n[a]||[];return i&&r[a]?[...c,...r[a]]:c}}},Pr=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Pr(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(pn);return(a=t.validators.find(({validator:i})=>i(s)))==null?void 0:a.classGroupId},Ar=/^\[(.+)\]$/,Za=e=>{if(Ar.test(e)){const t=Ar.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Ja=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)mn(n[o],r,o,t);return r},mn=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:Tr(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(Qa(o)){mn(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,a])=>{mn(a,Tr(t,s),n,r)})})},Tr=(e,t)=>{let n=e;return t.split(pn).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Qa=e=>e.isThemeGetter,ei=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,a)=>{n.set(s,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return o(s,a),a},set(s,a){n.has(s)?n.set(s,a):o(s,a)}}},gn="!",hn=":",ti=hn.length,ni=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let a=0,i=0,c=0,u;for(let v=0;v<o.length;v++){let m=o[v];if(a===0&&i===0){if(m===hn){s.push(o.slice(c,v)),c=v+ti;continue}if(m==="/"){u=v;continue}}m==="["?a++:m==="]"?a--:m==="("?i++:m===")"&&i--}const f=s.length===0?o:o.substring(c),d=ri(f),h=d!==f,g=u&&u>c?u-c:void 0;return{modifiers:s,hasImportantModifier:h,baseClassName:d,maybePostfixModifierPosition:g}};if(t){const o=t+hn,s=r;r=a=>a.startsWith(o)?s(a.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:a,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},ri=e=>e.endsWith(gn)?e.substring(0,e.length-1):e.startsWith(gn)?e.substring(1):e,oi=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let s=[];return r.forEach(a=>{a[0]==="["||t[a]?(o.push(...s.sort(),a),s=[]):s.push(a)}),o.push(...s.sort()),o}},si=e=>({cache:ei(e.cacheSize),parseClassName:ni(e),sortModifiers:oi(e),...Xa(e)}),ai=/\s+/,ii=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,a=[],i=e.trim().split(ai);let c="";for(let u=i.length-1;u>=0;u-=1){const f=i[u],{isExternal:d,modifiers:h,hasImportantModifier:g,baseClassName:v,maybePostfixModifierPosition:m}=n(f);if(d){c=f+(c.length>0?" "+c:c);continue}let x=!!m,y=r(x?v.substring(0,m):v);if(!y){if(!x){c=f+(c.length>0?" "+c:c);continue}if(y=r(v),!y){c=f+(c.length>0?" "+c:c);continue}x=!1}const b=s(h).join(":"),w=g?b+gn:b,E=w+y;if(a.includes(E))continue;a.push(E);const R=o(y,x);for(let _=0;_<R.length;++_){const P=R[_];a.push(w+P)}c=f+(c.length>0?" "+c:c)}return c};function li(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=_r(t))&&(r&&(r+=" "),r+=n);return r}const _r=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=_r(e[r]))&&(n&&(n+=" "),n+=t);return n};function ci(e,...t){let n,r,o,s=a;function a(c){const u=t.reduce((f,d)=>d(f),e());return n=si(u),r=n.cache.get,o=n.cache.set,s=i,i(c)}function i(c){const u=r(c);if(u)return u;const f=ii(c,n);return o(c,f),f}return function(){return s(li.apply(null,arguments))}}const ae=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Nr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Or=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ui=/^\d+\/\d+$/,di=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,fi=/\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$/,pi=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,mi=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,gi=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ge=e=>ui.test(e),G=e=>!!e&&!Number.isNaN(Number(e)),Re=e=>!!e&&Number.isInteger(Number(e)),vn=e=>e.endsWith("%")&&G(e.slice(0,-1)),Ce=e=>di.test(e),hi=()=>!0,vi=e=>fi.test(e)&&!pi.test(e),Ir=()=>!1,xi=e=>mi.test(e),bi=e=>gi.test(e),yi=e=>!I(e)&&!j(e),wi=e=>Ye(e,$r,Ir),I=e=>Nr.test(e),Fe=e=>Ye(e,Fr,vi),xn=e=>Ye(e,Ri,G),jr=e=>Ye(e,Dr,Ir),Si=e=>Ye(e,Lr,bi),Tt=e=>Ye(e,zr,xi),j=e=>Or.test(e),dt=e=>Ke(e,Fr),Ci=e=>Ke(e,Pi),Mr=e=>Ke(e,Dr),Ei=e=>Ke(e,$r),ki=e=>Ke(e,Lr),_t=e=>Ke(e,zr,!0),Ye=(e,t,n)=>{const r=Nr.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ke=(e,t,n=!1)=>{const r=Or.exec(e);return r?r[1]?t(r[1]):n:!1},Dr=e=>e==="position"||e==="percentage",Lr=e=>e==="image"||e==="url",$r=e=>e==="length"||e==="size"||e==="bg-size",Fr=e=>e==="length",Ri=e=>e==="number",Pi=e=>e==="family-name",zr=e=>e==="shadow",Ai=ci(()=>{const e=ae("color"),t=ae("font"),n=ae("text"),r=ae("font-weight"),o=ae("tracking"),s=ae("leading"),a=ae("breakpoint"),i=ae("container"),c=ae("spacing"),u=ae("radius"),f=ae("shadow"),d=ae("inset-shadow"),h=ae("text-shadow"),g=ae("drop-shadow"),v=ae("blur"),m=ae("perspective"),x=ae("aspect"),y=ae("ease"),b=ae("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],R=()=>[...E(),j,I],_=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],T=()=>[j,I,c],V=()=>[Ge,"full","auto",...T()],Y=()=>[Re,"none","subgrid",j,I],Z=()=>["auto",{span:["full",Re,j,I]},Re,j,I],q=()=>[Re,"auto",j,I],J=()=>["auto","min","max","fr",j,I],F=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],K=()=>["start","end","center","stretch","center-safe","end-safe"],$=()=>["auto",...T()],z=()=>[Ge,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...T()],k=()=>[e,j,I],ee=()=>[...E(),Mr,jr,{position:[j,I]}],C=()=>["no-repeat",{repeat:["","x","y","space","round"]}],L=()=>["auto","cover","contain",Ei,wi,{size:[j,I]}],S=()=>[vn,dt,Fe],N=()=>["","none","full",u,j,I],M=()=>["",G,dt,Fe],O=()=>["solid","dashed","dotted","double"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],A=()=>[G,vn,Mr,jr],D=()=>["","none",v,j,I],B=()=>["none",G,j,I],U=()=>["none",G,j,I],te=()=>[G,j,I],ne=()=>[Ge,"full",...T()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ce],breakpoint:[Ce],color:[hi],container:[Ce],"drop-shadow":[Ce],ease:["in","out","in-out"],font:[yi],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ce],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ce],shadow:[Ce],spacing:["px",G],text:[Ce],"text-shadow":[Ce],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ge,I,j,x]}],container:["container"],columns:[{columns:[G,I,j,i]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:R()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:V()}],"inset-x":[{"inset-x":V()}],"inset-y":[{"inset-y":V()}],start:[{start:V()}],end:[{end:V()}],top:[{top:V()}],right:[{right:V()}],bottom:[{bottom:V()}],left:[{left:V()}],visibility:["visible","invisible","collapse"],z:[{z:[Re,"auto",j,I]}],basis:[{basis:[Ge,"full","auto",i,...T()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[G,Ge,"auto","initial","none",I]}],grow:[{grow:["",G,j,I]}],shrink:[{shrink:["",G,j,I]}],order:[{order:[Re,"first","last","none",j,I]}],"grid-cols":[{"grid-cols":Y()}],"col-start-end":[{col:Z()}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":Y()}],"row-start-end":[{row:Z()}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":J()}],"auto-rows":[{"auto-rows":J()}],gap:[{gap:T()}],"gap-x":[{"gap-x":T()}],"gap-y":[{"gap-y":T()}],"justify-content":[{justify:[...F(),"normal"]}],"justify-items":[{"justify-items":[...K(),"normal"]}],"justify-self":[{"justify-self":["auto",...K()]}],"align-content":[{content:["normal",...F()]}],"align-items":[{items:[...K(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...K(),{baseline:["","last"]}]}],"place-content":[{"place-content":F()}],"place-items":[{"place-items":[...K(),"baseline"]}],"place-self":[{"place-self":["auto",...K()]}],p:[{p:T()}],px:[{px:T()}],py:[{py:T()}],ps:[{ps:T()}],pe:[{pe:T()}],pt:[{pt:T()}],pr:[{pr:T()}],pb:[{pb:T()}],pl:[{pl:T()}],m:[{m:$()}],mx:[{mx:$()}],my:[{my:$()}],ms:[{ms:$()}],me:[{me:$()}],mt:[{mt:$()}],mr:[{mr:$()}],mb:[{mb:$()}],ml:[{ml:$()}],"space-x":[{"space-x":T()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":T()}],"space-y-reverse":["space-y-reverse"],size:[{size:z()}],w:[{w:[i,"screen",...z()]}],"min-w":[{"min-w":[i,"screen","none",...z()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[a]},...z()]}],h:[{h:["screen","lh",...z()]}],"min-h":[{"min-h":["screen","lh","none",...z()]}],"max-h":[{"max-h":["screen","lh",...z()]}],"font-size":[{text:["base",n,dt,Fe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,j,xn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",vn,I]}],"font-family":[{font:[Ci,I,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,j,I]}],"line-clamp":[{"line-clamp":[G,"none",j,xn]}],leading:[{leading:[s,...T()]}],"list-image":[{"list-image":["none",j,I]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",j,I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...O(),"wavy"]}],"text-decoration-thickness":[{decoration:[G,"from-font","auto",j,Fe]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[G,"auto",j,I]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",j,I]}],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",j,I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ee()}],"bg-repeat":[{bg:C()}],"bg-size":[{bg:L()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Re,j,I],radial:["",j,I],conic:[Re,j,I]},ki,Si]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:S()}],"gradient-via-pos":[{via:S()}],"gradient-to-pos":[{to:S()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:N()}],"rounded-s":[{"rounded-s":N()}],"rounded-e":[{"rounded-e":N()}],"rounded-t":[{"rounded-t":N()}],"rounded-r":[{"rounded-r":N()}],"rounded-b":[{"rounded-b":N()}],"rounded-l":[{"rounded-l":N()}],"rounded-ss":[{"rounded-ss":N()}],"rounded-se":[{"rounded-se":N()}],"rounded-ee":[{"rounded-ee":N()}],"rounded-es":[{"rounded-es":N()}],"rounded-tl":[{"rounded-tl":N()}],"rounded-tr":[{"rounded-tr":N()}],"rounded-br":[{"rounded-br":N()}],"rounded-bl":[{"rounded-bl":N()}],"border-w":[{border:M()}],"border-w-x":[{"border-x":M()}],"border-w-y":[{"border-y":M()}],"border-w-s":[{"border-s":M()}],"border-w-e":[{"border-e":M()}],"border-w-t":[{"border-t":M()}],"border-w-r":[{"border-r":M()}],"border-w-b":[{"border-b":M()}],"border-w-l":[{"border-l":M()}],"divide-x":[{"divide-x":M()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":M()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...O(),"hidden","none"]}],"divide-style":[{divide:[...O(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...O(),"none","hidden"]}],"outline-offset":[{"outline-offset":[G,j,I]}],"outline-w":[{outline:["",G,dt,Fe]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",f,_t,Tt]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",d,_t,Tt]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[G,Fe]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":M()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",h,_t,Tt]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[G,j,I]}],"mix-blend":[{"mix-blend":[...W(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":W()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[G]}],"mask-image-linear-from-pos":[{"mask-linear-from":A()}],"mask-image-linear-to-pos":[{"mask-linear-to":A()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":A()}],"mask-image-t-to-pos":[{"mask-t-to":A()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":A()}],"mask-image-r-to-pos":[{"mask-r-to":A()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":A()}],"mask-image-b-to-pos":[{"mask-b-to":A()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":A()}],"mask-image-l-to-pos":[{"mask-l-to":A()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":A()}],"mask-image-x-to-pos":[{"mask-x-to":A()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":A()}],"mask-image-y-to-pos":[{"mask-y-to":A()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[j,I]}],"mask-image-radial-from-pos":[{"mask-radial-from":A()}],"mask-image-radial-to-pos":[{"mask-radial-to":A()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":E()}],"mask-image-conic-pos":[{"mask-conic":[G]}],"mask-image-conic-from-pos":[{"mask-conic-from":A()}],"mask-image-conic-to-pos":[{"mask-conic-to":A()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ee()}],"mask-repeat":[{mask:C()}],"mask-size":[{mask:L()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",j,I]}],filter:[{filter:["","none",j,I]}],blur:[{blur:D()}],brightness:[{brightness:[G,j,I]}],contrast:[{contrast:[G,j,I]}],"drop-shadow":[{"drop-shadow":["","none",g,_t,Tt]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",G,j,I]}],"hue-rotate":[{"hue-rotate":[G,j,I]}],invert:[{invert:["",G,j,I]}],saturate:[{saturate:[G,j,I]}],sepia:[{sepia:["",G,j,I]}],"backdrop-filter":[{"backdrop-filter":["","none",j,I]}],"backdrop-blur":[{"backdrop-blur":D()}],"backdrop-brightness":[{"backdrop-brightness":[G,j,I]}],"backdrop-contrast":[{"backdrop-contrast":[G,j,I]}],"backdrop-grayscale":[{"backdrop-grayscale":["",G,j,I]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[G,j,I]}],"backdrop-invert":[{"backdrop-invert":["",G,j,I]}],"backdrop-opacity":[{"backdrop-opacity":[G,j,I]}],"backdrop-saturate":[{"backdrop-saturate":[G,j,I]}],"backdrop-sepia":[{"backdrop-sepia":["",G,j,I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":T()}],"border-spacing-x":[{"border-spacing-x":T()}],"border-spacing-y":[{"border-spacing-y":T()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",j,I]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[G,"initial",j,I]}],ease:[{ease:["linear","initial",y,j,I]}],delay:[{delay:[G,j,I]}],animate:[{animate:["none",b,j,I]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,j,I]}],"perspective-origin":[{"perspective-origin":R()}],rotate:[{rotate:B()}],"rotate-x":[{"rotate-x":B()}],"rotate-y":[{"rotate-y":B()}],"rotate-z":[{"rotate-z":B()}],scale:[{scale:U()}],"scale-x":[{"scale-x":U()}],"scale-y":[{"scale-y":U()}],"scale-z":[{"scale-z":U()}],"scale-3d":["scale-3d"],skew:[{skew:te()}],"skew-x":[{"skew-x":te()}],"skew-y":[{"skew-y":te()}],transform:[{transform:[j,I,"","none","gpu","cpu"]}],"transform-origin":[{origin:R()}],"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:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}],"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",j,I]}],"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":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"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",j,I]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[G,dt,Fe,xn]}],stroke:[{stroke:["none",...k()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function re(...e){return Ai(Rr(e))}const Vr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Br=Rr,Pe=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Br(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,a=Object.keys(o).map(u=>{const f=n==null?void 0:n[u],d=s==null?void 0:s[u];if(f===null)return null;const h=Vr(f)||Vr(d);return o[u][h]}),i=n&&Object.entries(n).reduce((u,f)=>{let[d,h]=f;return h===void 0||(u[d]=h),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:d,className:h,...g}=f;return Object.entries(g).every(v=>{let[m,x]=v;return Array.isArray(x)?x.includes({...s,...i}[m]):{...s,...i}[m]===x})?[...u,d,h]:u},[]);return Br(e,a,c,n==null?void 0:n.class,n==null?void 0:n.className)},Ti=Pe("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:ring-2 focus-visible:ring-offset-2",{variants:{variant:{default:"bg-neutral-black-1 text-sm font-normal text-white shadow-sm hover:bg-neutral-black-2 focus-visible:ring-neutral-black-1",primary:"bg-neutral-black-5 text-sm font-normal text-neutral-70 hover:bg-neutral-black-5 focus-visible:ring-bg-neutral-black-5",outline:"bg-transparent text-black hover:bg-neutral-black-2 focus-visible:ring-4 focus-visible:ring-bg-surface border border-bg-neutral-black-2"},size:{default:"h-9 px-4 py-2",sm:"h-8 px-3 text-xs",lg:"h-10 px-6",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}});function _i({className:e,variant:t,size:n,asChild:r=!1,children:o,...s}){const a=r?fn:"button";return p.jsx(a,{"data-slot":"button",className:re(Ti({variant:t,size:n}),e),...s,children:o})}function X(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 Ni(e,t){const n=l.createContext(t),r=s=>{const{children:a,...i}=s,c=l.useMemo(()=>i,Object.values(i));return p.jsx(n.Provider,{value:c,children:a})};r.displayName=e+"Provider";function o(s){const a=l.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function ze(e,t=[]){let n=[];function r(s,a){const i=l.createContext(a),c=n.length;n=[...n,a];const u=d=>{var y;const{scope:h,children:g,...v}=d,m=((y=h==null?void 0:h[e])==null?void 0:y[c])||i,x=l.useMemo(()=>v,Object.values(v));return p.jsx(m.Provider,{value:x,children:g})};u.displayName=s+"Provider";function f(d,h){var m;const g=((m=h==null?void 0:h[e])==null?void 0:m[c])||i,v=l.useContext(g);if(v)return v;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=n.map(a=>l.createContext(a));return function(i){const c=(i==null?void 0:i[e])||s;return l.useMemo(()=>({[`__scope${e}`]:{...i,[e]:c}}),[i,c])}};return o.scopeName=e,[r,Oi(o,...t)]}function Oi(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((i,{useScope:c,scopeName:u})=>{const d=c(s)[`__scope${u}`];return{...i,...d}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var ie=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},Ii=l[" useId ".trim().toString()]||(()=>{}),ji=0;function le(e){const[t,n]=l.useState(Ii());return ie(()=>{n(r=>r??String(ji++))},[e]),e||(t?`radix-${t}`:"")}var Mi=l[" useInsertionEffect ".trim().toString()]||ie;function ft({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,a]=Di({defaultProp:t,onChange:n}),i=e!==void 0,c=i?e:o;{const f=l.useRef(e!==void 0);l.useEffect(()=>{const d=f.current;d!==i&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=i},[i,r])}const u=l.useCallback(f=>{var d;if(i){const h=Li(f)?f(e):f;h!==e&&((d=a.current)==null||d.call(a,h))}else s(f)},[i,e,s,a]);return[c,u]}function Di({defaultProp:e,onChange:t}){const[n,r]=l.useState(e),o=l.useRef(n),s=l.useRef(t);return Mi(()=>{s.current=t},[t]),l.useEffect(()=>{var a;o.current!==n&&((a=s.current)==null||a.call(s,n),o.current=n)},[n,o]),[n,r,s]}function Li(e){return typeof e=="function"}var $i=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],H=$i.reduce((e,t)=>{const n=$e(`Primitive.${t}`),r=l.forwardRef((o,s)=>{const{asChild:a,...i}=o,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(c,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Fi(e,t){e&&At.flushSync(()=>e.dispatchEvent(t))}function Ae(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function zi(e,t=globalThis==null?void 0:globalThis.document){const n=Ae(e);l.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Vi="DismissableLayer",bn="dismissableLayer.update",Bi="dismissableLayer.pointerDownOutside",Wi="dismissableLayer.focusOutside",Wr,Hr=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pt=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:i,...c}=e,u=l.useContext(Hr),[f,d]=l.useState(null),h=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=l.useState({}),v=se(t,P=>d(P)),m=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(x),b=f?m.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,E=b>=y,R=Gi(P=>{const T=P.target,V=[...u.branches].some(Y=>Y.contains(T));!E||V||(o==null||o(P),a==null||a(P),P.defaultPrevented||i==null||i())},h),_=Yi(P=>{const T=P.target;[...u.branches].some(Y=>Y.contains(T))||(s==null||s(P),a==null||a(P),P.defaultPrevented||i==null||i())},h);return zi(P=>{b===u.layers.size-1&&(r==null||r(P),!P.defaultPrevented&&i&&(P.preventDefault(),i()))},h),l.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Wr=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Ur(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Wr)}},[f,h,n,u]),l.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Ur())},[f,u]),l.useEffect(()=>{const P=()=>g({});return document.addEventListener(bn,P),()=>document.removeEventListener(bn,P)},[]),p.jsx(H.div,{...c,ref:v,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:X(e.onFocusCapture,_.onFocusCapture),onBlurCapture:X(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:X(e.onPointerDownCapture,R.onPointerDownCapture)})});pt.displayName=Vi;var Hi="DismissableLayerBranch",Ui=l.forwardRef((e,t)=>{const n=l.useContext(Hr),r=l.useRef(null),o=se(t,r);return l.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),p.jsx(H.div,{...e,ref:o})});Ui.displayName=Hi;function Gi(e,t=globalThis==null?void 0:globalThis.document){const n=Ae(e),r=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const s=i=>{if(i.target&&!r.current){let c=function(){Gr(Bi,n,u,{discrete:!0})};const u={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Yi(e,t=globalThis==null?void 0:globalThis.document){const n=Ae(e),r=l.useRef(!1);return l.useEffect(()=>{const o=s=>{s.target&&!r.current&&Gr(Wi,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ur(){const e=new CustomEvent(bn);document.dispatchEvent(e)}function Gr(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Fi(o,s):o.dispatchEvent(s)}var yn="focusScope.autoFocusOnMount",wn="focusScope.autoFocusOnUnmount",Yr={bubbles:!1,cancelable:!0},Ki="FocusScope",Nt=l.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[i,c]=l.useState(null),u=Ae(o),f=Ae(s),d=l.useRef(null),h=se(t,m=>c(m)),g=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let m=function(w){if(g.paused||!i)return;const E=w.target;i.contains(E)?d.current=E:Te(d.current,{select:!0})},x=function(w){if(g.paused||!i)return;const E=w.relatedTarget;E!==null&&(i.contains(E)||Te(d.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const R of w)R.removedNodes.length>0&&Te(i)};document.addEventListener("focusin",m),document.addEventListener("focusout",x);const b=new MutationObserver(y);return i&&b.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",x),b.disconnect()}}},[r,i,g.paused]),l.useEffect(()=>{if(i){Xr.add(g);const m=document.activeElement;if(!i.contains(m)){const y=new CustomEvent(yn,Yr);i.addEventListener(yn,u),i.dispatchEvent(y),y.defaultPrevented||(qi(el(Kr(i)),{select:!0}),document.activeElement===m&&Te(i))}return()=>{i.removeEventListener(yn,u),setTimeout(()=>{const y=new CustomEvent(wn,Yr);i.addEventListener(wn,f),i.dispatchEvent(y),y.defaultPrevented||Te(m??document.body,{select:!0}),i.removeEventListener(wn,f),Xr.remove(g)},0)}}},[i,u,f,g]);const v=l.useCallback(m=>{if(!n&&!r||g.paused)return;const x=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,y=document.activeElement;if(x&&y){const b=m.currentTarget,[w,E]=Xi(b);w&&E?!m.shiftKey&&y===E?(m.preventDefault(),n&&Te(w,{select:!0})):m.shiftKey&&y===w&&(m.preventDefault(),n&&Te(E,{select:!0})):y===b&&m.preventDefault()}},[n,r,g.paused]);return p.jsx(H.div,{tabIndex:-1,...a,ref:h,onKeyDown:v})});Nt.displayName=Ki;function qi(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Te(r,{select:t}),document.activeElement!==n)return}function Xi(e){const t=Kr(e),n=qr(t,e),r=qr(t.reverse(),e);return[n,r]}function Kr(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 qr(e,t){for(const n of e)if(!Zi(n,{upTo:t}))return n}function Zi(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 Ji(e){return e instanceof HTMLInputElement&&"select"in e}function Te(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ji(e)&&t&&e.select()}}var Xr=Qi();function Qi(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Zr(e,t),e.unshift(t)},remove(t){var n;e=Zr(e,t),(n=e[0])==null||n.resume()}}}function Zr(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function el(e){return e.filter(t=>t.tagName!=="A")}var tl="Portal",mt=l.forwardRef((e,t)=>{var i;const{container:n,...r}=e,[o,s]=l.useState(!1);ie(()=>s(!0),[]);const a=n||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return a?br.createPortal(p.jsx(H.div,{...r,ref:t}),a):null});mt.displayName=tl;function nl(e,t){return l.useReducer((n,r)=>t[n][r]??n,e)}var _e=e=>{const{present:t,children:n}=e,r=rl(t),o=typeof n=="function"?n({present:r.isPresent}):l.Children.only(n),s=se(r.ref,ol(o));return typeof n=="function"||r.isPresent?l.cloneElement(o,{ref:s}):null};_e.displayName="Presence";function rl(e){const[t,n]=l.useState(),r=l.useRef(null),o=l.useRef(e),s=l.useRef("none"),a=e?"mounted":"unmounted",[i,c]=nl(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const u=Ot(r.current);s.current=i==="mounted"?u:"none"},[i]),ie(()=>{const u=r.current,f=o.current;if(f!==e){const h=s.current,g=Ot(u);e?c("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(f&&h!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ie(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,d=g=>{const m=Ot(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&m&&(c("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},h=g=>{g.target===t&&(s.current=Ot(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:l.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Ot(e){return(e==null?void 0:e.animationName)||"none"}function ol(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 Sn=0;function Cn(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Jr()),document.body.insertAdjacentElement("beforeend",e[1]??Jr()),Sn++,()=>{Sn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Sn--}},[])}function Jr(){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 ve=function(){return ve=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},ve.apply(this,arguments)};function Qr(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 sl(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var It="right-scroll-bar-position",jt="width-before-scroll-bar",al="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=oe.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 cl=typeof window<"u"?l.useLayoutEffect:l.useEffect,eo=new WeakMap;function ul(e,t){var n=ll(null,function(r){return e.forEach(function(o){return En(o,r)})});return cl(function(){var r=eo.get(n);if(r){var o=new Set(r),s=new Set(e),a=n.current;o.forEach(function(i){s.has(i)||En(i,null)}),s.forEach(function(i){o.has(i)||En(i,a)})}eo.set(n,e)},[e]),n}function dl(e){return e}function fl(e,t){t===void 0&&(t=dl);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,r);return n.push(a),function(){n=n.filter(function(i){return i!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(i){return s(i)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var i=n;n=[],i.forEach(s),a=n}var c=function(){var f=a;a=[],f.forEach(s)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(f){a.push(f),u()},filter:function(f){return a=a.filter(f),n}}}};return o}function pl(e){e===void 0&&(e={});var t=fl(null);return t.options=ve({async:!0,ssr:!1},e),t}var to=function(e){var t=e.sideCar,n=Qr(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return l.createElement(r,ve({},n))};to.isSideCarExport=!0;function ml(e,t){return e.useMedium(t),to}var no=pl(),kn=function(){},Mt=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:kn,onWheelCapture:kn,onTouchMoveCapture:kn}),o=r[0],s=r[1],a=e.forwardProps,i=e.children,c=e.className,u=e.removeScrollBar,f=e.enabled,d=e.shards,h=e.sideCar,g=e.noRelative,v=e.noIsolation,m=e.inert,x=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,E=Qr(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=h,_=ul([n,t]),P=ve(ve({},E),o);return l.createElement(l.Fragment,null,f&&l.createElement(R,{sideCar:no,removeScrollBar:u,shards:d,noRelative:g,noIsolation:v,inert:m,setCallbacks:s,allowPinchZoom:!!x,lockRef:n,gapMode:w}),a?l.cloneElement(l.Children.only(i),ve(ve({},P),{ref:_})):l.createElement(b,ve({},P,{className:c,ref:_}),i))});Mt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Mt.classNames={fullWidth:jt,zeroRight:It};var gl=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function hl(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=gl();return t&&e.setAttribute("nonce",t),e}function vl(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function xl(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var bl=function(){var e=0,t=null;return{add:function(n){e==0&&(t=hl())&&(vl(t,n),xl(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},yl=function(){var e=bl();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ro=function(){var e=yl(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},wl={left:0,top:0,right:0,gap:0},Rn=function(e){return parseInt(e||"",10)||0},Sl=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)]},Cl=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return wl;var t=Sl(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])}},El=ro(),qe="data-scroll-locked",kl=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,i=e.gap;return n===void 0&&(n="margin"),`
23
+ .`.concat(al,` {
24
24
  overflow: hidden `).concat(r,`;
25
25
  padding-right: `).concat(i,"px ").concat(r,`;
26
26
  }
27
- body[`).concat(Ke,`] {
27
+ body[`).concat(qe,`] {
28
28
  overflow: hidden `).concat(r,`;
29
29
  overscroll-behavior: contain;
30
30
  `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
@@ -53,79 +53,105 @@ React keys must be passed directly to JSX without using spread:
53
53
  margin-right: 0 `).concat(r,`;
54
54
  }
55
55
 
56
- body[`).concat(Ke,`] {
57
- `).concat(Ui,": ").concat(i,`px;
56
+ body[`).concat(qe,`] {
57
+ `).concat(il,": ").concat(i,`px;
58
58
  }
59
- `)},Qr=function(){var e=parseInt(document.body.getAttribute(Ke)||"0",10);return isFinite(e)?e:0},ul=function(){l.useEffect(function(){return document.body.setAttribute(Ke,(Qr()+1).toString()),function(){var e=Qr()-1;e<=0?document.body.removeAttribute(Ke):document.body.setAttribute(Ke,e.toString())}},[])},dl=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;ul();var s=l.useMemo(function(){return il(o)},[o]);return l.createElement(ll,{styles:cl(s,!t,o,n?"":"!important")})},Pn=!1;if(typeof window<"u")try{var Dt=Object.defineProperty({},"passive",{get:function(){return Pn=!0,!0}});window.addEventListener("test",Dt,Dt),window.removeEventListener("test",Dt,Dt)}catch{Pn=!1}var Xe=Pn?{passive:!1}:!1,fl=function(e){return e.tagName==="TEXTAREA"},eo=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!fl(e)&&n[t]==="visible")},pl=function(e){return eo(e,"overflowY")},ml=function(e){return eo(e,"overflowX")},to=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=no(e,r);if(o){var s=ro(e,r),a=s[1],i=s[2];if(a>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},gl=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},hl=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},no=function(e,t){return e==="v"?pl(t):ml(t)},ro=function(e,t){return e==="v"?gl(t):hl(t)},vl=function(e,t){return e==="h"&&t==="rtl"?-1:1},bl=function(e,t,n,r,o){var s=vl(e,window.getComputedStyle(t).direction),a=s*r,i=n.target,c=t.contains(i),u=!1,d=a>0,f=0,g=0;do{if(!i)break;var h=ro(e,i),v=h[0],m=h[1],b=h[2],y=m-b-s*v;(v||y)&&no(e,i)&&(f+=y,g+=v);var x=i.parentNode;i=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!c&&i!==document.body||c&&(t.contains(i)||t===i));return(d&&Math.abs(f)<1||!d&&Math.abs(g)<1)&&(u=!0),u},Lt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},oo=function(e){return[e.deltaX,e.deltaY]},so=function(e){return e&&"current"in e?e.current:e},xl=function(e,t){return e[0]===t[0]&&e[1]===t[1]},yl=function(e){return`
59
+ `)},oo=function(){var e=parseInt(document.body.getAttribute(qe)||"0",10);return isFinite(e)?e:0},Rl=function(){l.useEffect(function(){return document.body.setAttribute(qe,(oo()+1).toString()),function(){var e=oo()-1;e<=0?document.body.removeAttribute(qe):document.body.setAttribute(qe,e.toString())}},[])},Pl=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Rl();var s=l.useMemo(function(){return Cl(o)},[o]);return l.createElement(El,{styles:kl(s,!t,o,n?"":"!important")})},Pn=!1;if(typeof window<"u")try{var Dt=Object.defineProperty({},"passive",{get:function(){return Pn=!0,!0}});window.addEventListener("test",Dt,Dt),window.removeEventListener("test",Dt,Dt)}catch{Pn=!1}var Xe=Pn?{passive:!1}:!1,Al=function(e){return e.tagName==="TEXTAREA"},so=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Al(e)&&n[t]==="visible")},Tl=function(e){return so(e,"overflowY")},_l=function(e){return so(e,"overflowX")},ao=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=io(e,r);if(o){var s=lo(e,r),a=s[1],i=s[2];if(a>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Nl=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Ol=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},io=function(e,t){return e==="v"?Tl(t):_l(t)},lo=function(e,t){return e==="v"?Nl(t):Ol(t)},Il=function(e,t){return e==="h"&&t==="rtl"?-1:1},jl=function(e,t,n,r,o){var s=Il(e,window.getComputedStyle(t).direction),a=s*r,i=n.target,c=t.contains(i),u=!1,f=a>0,d=0,h=0;do{if(!i)break;var g=lo(e,i),v=g[0],m=g[1],x=g[2],y=m-x-s*v;(v||y)&&io(e,i)&&(d+=y,h+=v);var b=i.parentNode;i=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!c&&i!==document.body||c&&(t.contains(i)||t===i));return(f&&Math.abs(d)<1||!f&&Math.abs(h)<1)&&(u=!0),u},Lt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},co=function(e){return[e.deltaX,e.deltaY]},uo=function(e){return e&&"current"in e?e.current:e},Ml=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Dl=function(e){return`
60
60
  .block-interactivity-`.concat(e,` {pointer-events: none;}
61
61
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
62
- `)},wl=0,qe=[];function Cl(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState(wl++)[0],s=l.useState(Jr)[0],a=l.useRef(e);l.useEffect(function(){a.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=Bi([e.lockRef.current],(e.shards||[]).map(so),!0).filter(Boolean);return m.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=l.useCallback(function(m,b){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!a.current.allowPinchZoom;var y=Lt(m),x=n.current,w="deltaX"in m?m.deltaX:x[0]-y[0],E="deltaY"in m?m.deltaY:x[1]-y[1],P,N=m.target,R=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in m&&R==="h"&&N.type==="range")return!1;var T=to(R,N);if(!T)return!0;if(T?P=R:(P=R==="v"?"h":"v",T=to(R,N)),!T)return!1;if(!r.current&&"changedTouches"in m&&(w||E)&&(r.current=P),!P)return!0;var V=r.current||P;return bl(V,b,m,V==="h"?w:E)},[]),c=l.useCallback(function(m){var b=m;if(!(!qe.length||qe[qe.length-1]!==s)){var y="deltaY"in b?oo(b):Lt(b),x=t.current.filter(function(P){return P.name===b.type&&(P.target===b.target||b.target===P.shadowParent)&&xl(P.delta,y)})[0];if(x&&x.should){b.cancelable&&b.preventDefault();return}if(!x){var w=(a.current.shards||[]).map(so).filter(Boolean).filter(function(P){return P.contains(b.target)}),E=w.length>0?i(b,w[0]):!a.current.noIsolation;E&&b.cancelable&&b.preventDefault()}}},[]),u=l.useCallback(function(m,b,y,x){var w={name:m,delta:b,target:y,should:x,shadowParent:Sl(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),d=l.useCallback(function(m){n.current=Lt(m),r.current=void 0},[]),f=l.useCallback(function(m){u(m.type,oo(m),m.target,i(m,e.lockRef.current))},[]),g=l.useCallback(function(m){u(m.type,Lt(m),m.target,i(m,e.lockRef.current))},[]);l.useEffect(function(){return qe.push(s),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:g}),document.addEventListener("wheel",c,Xe),document.addEventListener("touchmove",c,Xe),document.addEventListener("touchstart",d,Xe),function(){qe=qe.filter(function(m){return m!==s}),document.removeEventListener("wheel",c,Xe),document.removeEventListener("touchmove",c,Xe),document.removeEventListener("touchstart",d,Xe)}},[]);var h=e.removeScrollBar,v=e.inert;return l.createElement(l.Fragment,null,v?l.createElement(s,{styles:yl(o)}):null,h?l.createElement(dl,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Sl(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const El=Ji(Zr,Cl);var $t=l.forwardRef(function(e,t){return l.createElement(Mt,he({},e,{ref:t,sideCar:El}))});$t.classNames=Mt.classNames;var kl=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ze=new WeakMap,Ft=new WeakMap,zt={},Rn=0,ao=function(e){return e&&(e.host||ao(e.parentNode))},Pl=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=ao(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})},Rl=function(e,t,n,r){var o=Pl(t,Array.isArray(e)?e:[e]);zt[n]||(zt[n]=new WeakMap);var s=zt[n],a=[],i=new Set,c=new Set(o),u=function(f){!f||i.has(f)||(i.add(f),u(f.parentNode))};o.forEach(u);var d=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(g){if(i.has(g))d(g);else try{var h=g.getAttribute(r),v=h!==null&&h!=="false",m=(Ze.get(g)||0)+1,b=(s.get(g)||0)+1;Ze.set(g,m),s.set(g,b),a.push(g),m===1&&v&&Ft.set(g,!0),b===1&&g.setAttribute(n,"true"),v||g.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",g,y)}})};return d(t),i.clear(),Rn++,function(){a.forEach(function(f){var g=Ze.get(f)-1,h=s.get(f)-1;Ze.set(f,g),s.set(f,h),g||(Ft.has(f)||f.removeAttribute(r),Ft.delete(f)),h||f.removeAttribute(n)}),Rn--,Rn||(Ze=new WeakMap,Ze=new WeakMap,Ft=new WeakMap,zt={})}},An=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=kl(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Rl(r,o,n,"aria-hidden")):function(){return null}},Vt="Dialog",[io,Gf]=Ye(Vt),[Al,fe]=io(Vt),lo=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,i=l.useRef(null),c=l.useRef(null),[u,d]=dt({prop:r,defaultProp:o??!1,onChange:s,caller:Vt});return p.jsx(Al,{scope:t,triggerRef:i,contentRef:c,contentId:le(),titleId:le(),descriptionId:le(),open:u,onOpenChange:d,onOpenToggle:l.useCallback(()=>d(f=>!f),[d]),modal:a,children:n})};lo.displayName=Vt;var co="DialogTrigger",uo=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=fe(co,n),s=se(t,o.triggerRef);return p.jsx(K.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":On(o.open),...r,ref:s,onClick:q(e.onClick,o.onOpenToggle)})});uo.displayName=co;var Tn="DialogPortal",[Tl,fo]=io(Tn,{forceMount:void 0}),po=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=fe(Tn,t);return p.jsx(Tl,{scope:t,forceMount:n,children:l.Children.map(r,a=>p.jsx(Ae,{present:n||s.open,children:p.jsx(pt,{asChild:!0,container:o,children:a})}))})};po.displayName=Tn;var Wt="DialogOverlay",mo=l.forwardRef((e,t)=>{const n=fo(Wt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=fe(Wt,e.__scopeDialog);return s.modal?p.jsx(Ae,{present:r||s.open,children:p.jsx(Ol,{...o,ref:t})}):null});mo.displayName=Wt;var Nl=De("DialogOverlay.RemoveScroll"),Ol=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=fe(Wt,n);return p.jsx($t,{as:Nl,allowPinchZoom:!0,shards:[o.contentRef],children:p.jsx(K.div,{"data-state":On(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Fe="DialogContent",go=l.forwardRef((e,t)=>{const n=fo(Fe,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=fe(Fe,e.__scopeDialog);return p.jsx(Ae,{present:r||s.open,children:s.modal?p.jsx(_l,{...o,ref:t}):p.jsx(Il,{...o,ref:t})})});go.displayName=Fe;var _l=l.forwardRef((e,t)=>{const n=fe(Fe,e.__scopeDialog),r=l.useRef(null),o=se(t,n.contentRef,r);return l.useEffect(()=>{const s=r.current;if(s)return An(s)},[]),p.jsx(ho,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:q(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:q(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,i=a.button===0&&a.ctrlKey===!0;(a.button===2||i)&&s.preventDefault()}),onFocusOutside:q(e.onFocusOutside,s=>s.preventDefault())})}),Il=l.forwardRef((e,t)=>{const n=fe(Fe,e.__scopeDialog),r=l.useRef(!1),o=l.useRef(!1);return p.jsx(ho,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,i;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(r.current||(i=n.triggerRef.current)==null||i.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),ho=l.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,i=fe(Fe,n),c=l.useRef(null),u=se(t,c);return Cn(),p.jsxs(p.Fragment,{children:[p.jsx(Ot,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:p.jsx(ft,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":On(i.open),...a,ref:u,onDismiss:()=>i.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(jl,{titleId:i.titleId}),p.jsx(Dl,{contentRef:c,descriptionId:i.descriptionId})]})]})}),Nn="DialogTitle",vo=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=fe(Nn,n);return p.jsx(K.h2,{id:o.titleId,...r,ref:t})});vo.displayName=Nn;var bo="DialogDescription",xo=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=fe(bo,n);return p.jsx(K.p,{id:o.descriptionId,...r,ref:t})});xo.displayName=bo;var yo="DialogClose",wo=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=fe(yo,n);return p.jsx(K.button,{type:"button",...r,ref:t,onClick:q(e.onClick,()=>o.onOpenChange(!1))})});wo.displayName=yo;function On(e){return e?"open":"closed"}var Co="DialogTitleWarning",[Yf,So]=gi(Co,{contentName:Fe,titleName:Nn,docsSlug:"dialog"}),jl=({titleId:e})=>{const t=So(Co),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
62
+ `)},Ll=0,Ze=[];function $l(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState(Ll++)[0],s=l.useState(ro)[0],a=l.useRef(e);l.useEffect(function(){a.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=sl([e.lockRef.current],(e.shards||[]).map(uo),!0).filter(Boolean);return m.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=l.useCallback(function(m,x){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!a.current.allowPinchZoom;var y=Lt(m),b=n.current,w="deltaX"in m?m.deltaX:b[0]-y[0],E="deltaY"in m?m.deltaY:b[1]-y[1],R,_=m.target,P=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in m&&P==="h"&&_.type==="range")return!1;var T=ao(P,_);if(!T)return!0;if(T?R=P:(R=P==="v"?"h":"v",T=ao(P,_)),!T)return!1;if(!r.current&&"changedTouches"in m&&(w||E)&&(r.current=R),!R)return!0;var V=r.current||R;return jl(V,x,m,V==="h"?w:E)},[]),c=l.useCallback(function(m){var x=m;if(!(!Ze.length||Ze[Ze.length-1]!==s)){var y="deltaY"in x?co(x):Lt(x),b=t.current.filter(function(R){return R.name===x.type&&(R.target===x.target||x.target===R.shadowParent)&&Ml(R.delta,y)})[0];if(b&&b.should){x.cancelable&&x.preventDefault();return}if(!b){var w=(a.current.shards||[]).map(uo).filter(Boolean).filter(function(R){return R.contains(x.target)}),E=w.length>0?i(x,w[0]):!a.current.noIsolation;E&&x.cancelable&&x.preventDefault()}}},[]),u=l.useCallback(function(m,x,y,b){var w={name:m,delta:x,target:y,should:b,shadowParent:Fl(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),f=l.useCallback(function(m){n.current=Lt(m),r.current=void 0},[]),d=l.useCallback(function(m){u(m.type,co(m),m.target,i(m,e.lockRef.current))},[]),h=l.useCallback(function(m){u(m.type,Lt(m),m.target,i(m,e.lockRef.current))},[]);l.useEffect(function(){return Ze.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",c,Xe),document.addEventListener("touchmove",c,Xe),document.addEventListener("touchstart",f,Xe),function(){Ze=Ze.filter(function(m){return m!==s}),document.removeEventListener("wheel",c,Xe),document.removeEventListener("touchmove",c,Xe),document.removeEventListener("touchstart",f,Xe)}},[]);var g=e.removeScrollBar,v=e.inert;return l.createElement(l.Fragment,null,v?l.createElement(s,{styles:Dl(o)}):null,g?l.createElement(Pl,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Fl(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const zl=ml(no,$l);var $t=l.forwardRef(function(e,t){return l.createElement(Mt,ve({},e,{ref:t,sideCar:zl}))});$t.classNames=Mt.classNames;var Vl=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Je=new WeakMap,Ft=new WeakMap,zt={},An=0,fo=function(e){return e&&(e.host||fo(e.parentNode))},Bl=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=fo(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})},Wl=function(e,t,n,r){var o=Bl(t,Array.isArray(e)?e:[e]);zt[n]||(zt[n]=new WeakMap);var s=zt[n],a=[],i=new Set,c=new Set(o),u=function(d){!d||i.has(d)||(i.add(d),u(d.parentNode))};o.forEach(u);var f=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(h){if(i.has(h))f(h);else try{var g=h.getAttribute(r),v=g!==null&&g!=="false",m=(Je.get(h)||0)+1,x=(s.get(h)||0)+1;Je.set(h,m),s.set(h,x),a.push(h),m===1&&v&&Ft.set(h,!0),x===1&&h.setAttribute(n,"true"),v||h.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",h,y)}})};return f(t),i.clear(),An++,function(){a.forEach(function(d){var h=Je.get(d)-1,g=s.get(d)-1;Je.set(d,h),s.set(d,g),h||(Ft.has(d)||d.removeAttribute(r),Ft.delete(d)),g||d.removeAttribute(n)}),An--,An||(Je=new WeakMap,Je=new WeakMap,Ft=new WeakMap,zt={})}},Tn=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Vl(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Wl(r,o,n,"aria-hidden")):function(){return null}},Vt="Dialog",[po,kp]=ze(Vt),[Hl,fe]=po(Vt),mo=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,i=l.useRef(null),c=l.useRef(null),[u,f]=ft({prop:r,defaultProp:o??!1,onChange:s,caller:Vt});return p.jsx(Hl,{scope:t,triggerRef:i,contentRef:c,contentId:le(),titleId:le(),descriptionId:le(),open:u,onOpenChange:f,onOpenToggle:l.useCallback(()=>f(d=>!d),[f]),modal:a,children:n})};mo.displayName=Vt;var go="DialogTrigger",ho=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=fe(go,n),s=se(t,o.triggerRef);return p.jsx(H.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":On(o.open),...r,ref:s,onClick:X(e.onClick,o.onOpenToggle)})});ho.displayName=go;var _n="DialogPortal",[Ul,vo]=po(_n,{forceMount:void 0}),xo=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=fe(_n,t);return p.jsx(Ul,{scope:t,forceMount:n,children:l.Children.map(r,a=>p.jsx(_e,{present:n||s.open,children:p.jsx(mt,{asChild:!0,container:o,children:a})}))})};xo.displayName=_n;var Bt="DialogOverlay",bo=l.forwardRef((e,t)=>{const n=vo(Bt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=fe(Bt,e.__scopeDialog);return s.modal?p.jsx(_e,{present:r||s.open,children:p.jsx(Yl,{...o,ref:t})}):null});bo.displayName=Bt;var Gl=$e("DialogOverlay.RemoveScroll"),Yl=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=fe(Bt,n);return p.jsx($t,{as:Gl,allowPinchZoom:!0,shards:[o.contentRef],children:p.jsx(H.div,{"data-state":On(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Ve="DialogContent",yo=l.forwardRef((e,t)=>{const n=vo(Ve,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=fe(Ve,e.__scopeDialog);return p.jsx(_e,{present:r||s.open,children:s.modal?p.jsx(Kl,{...o,ref:t}):p.jsx(ql,{...o,ref:t})})});yo.displayName=Ve;var Kl=l.forwardRef((e,t)=>{const n=fe(Ve,e.__scopeDialog),r=l.useRef(null),o=se(t,n.contentRef,r);return l.useEffect(()=>{const s=r.current;if(s)return Tn(s)},[]),p.jsx(wo,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:X(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:X(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,i=a.button===0&&a.ctrlKey===!0;(a.button===2||i)&&s.preventDefault()}),onFocusOutside:X(e.onFocusOutside,s=>s.preventDefault())})}),ql=l.forwardRef((e,t)=>{const n=fe(Ve,e.__scopeDialog),r=l.useRef(!1),o=l.useRef(!1);return p.jsx(wo,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,i;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(r.current||(i=n.triggerRef.current)==null||i.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),wo=l.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,i=fe(Ve,n),c=l.useRef(null),u=se(t,c);return Cn(),p.jsxs(p.Fragment,{children:[p.jsx(Nt,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:p.jsx(pt,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":On(i.open),...a,ref:u,onDismiss:()=>i.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(Xl,{titleId:i.titleId}),p.jsx(Jl,{contentRef:c,descriptionId:i.descriptionId})]})]})}),Nn="DialogTitle",So=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=fe(Nn,n);return p.jsx(H.h2,{id:o.titleId,...r,ref:t})});So.displayName=Nn;var Co="DialogDescription",Eo=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=fe(Co,n);return p.jsx(H.p,{id:o.descriptionId,...r,ref:t})});Eo.displayName=Co;var ko="DialogClose",Ro=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=fe(ko,n);return p.jsx(H.button,{type:"button",...r,ref:t,onClick:X(e.onClick,()=>o.onOpenChange(!1))})});Ro.displayName=ko;function On(e){return e?"open":"closed"}var Po="DialogTitleWarning",[Rp,Ao]=Ni(Po,{contentName:Ve,titleName:Nn,docsSlug:"dialog"}),Xl=({titleId:e})=>{const t=Ao(Po),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
63
63
 
64
64
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
65
65
 
66
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Ml="DialogDescriptionWarning",Dl=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${So(Ml).contentName}}.`;return l.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Eo=lo,Ll=uo,ko=po,Po=mo,Ro=go,$l=vo,Fl=xo,Ao=wo;/**
66
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Zl="DialogDescriptionWarning",Jl=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ao(Zl).contentName}}.`;return l.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},To=mo,Ql=ho,_o=xo,No=bo,Oo=yo,ec=So,tc=Eo,Io=Ro;/**
67
67
  * @license lucide-react v0.542.0 - ISC
68
68
  *
69
69
  * This source code is licensed under the ISC license.
70
70
  * See the LICENSE file in the root directory of this source tree.
71
- */const zl=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Vl=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),To=e=>{const t=Vl(e);return t.charAt(0).toUpperCase()+t.slice(1)},No=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Wl=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
71
+ */const nc=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),rc=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),jo=e=>{const t=rc(e);return t.charAt(0).toUpperCase()+t.slice(1)},Mo=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),oc=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
72
72
  * @license lucide-react v0.542.0 - ISC
73
73
  *
74
74
  * This source code is licensed under the ISC license.
75
75
  * See the LICENSE file in the root directory of this source tree.
76
- */var Bl={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"};/**
76
+ */var sc={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"};/**
77
77
  * @license lucide-react v0.542.0 - ISC
78
78
  *
79
79
  * This source code is licensed under the ISC license.
80
80
  * See the LICENSE file in the root directory of this source tree.
81
- */const Hl=oe.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:a,...i},c)=>oe.createElement("svg",{ref:c,...Bl,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:No("lucide",o),...!s&&!Wl(i)&&{"aria-hidden":"true"},...i},[...a.map(([u,d])=>oe.createElement(u,d)),...Array.isArray(s)?s:[s]]));/**
81
+ */const ac=oe.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:a,...i},c)=>oe.createElement("svg",{ref:c,...sc,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Mo("lucide",o),...!s&&!oc(i)&&{"aria-hidden":"true"},...i},[...a.map(([u,f])=>oe.createElement(u,f)),...Array.isArray(s)?s:[s]]));/**
82
82
  * @license lucide-react v0.542.0 - ISC
83
83
  *
84
84
  * This source code is licensed under the ISC license.
85
85
  * See the LICENSE file in the root directory of this source tree.
86
- */const Se=(e,t)=>{const n=oe.forwardRef(({className:r,...o},s)=>oe.createElement(Hl,{ref:s,iconNode:t,className:No(`lucide-${zl(To(e))}`,`lucide-${e}`,r),...o}));return n.displayName=To(e),n};/**
86
+ */const pe=(e,t)=>{const n=oe.forwardRef(({className:r,...o},s)=>oe.createElement(ac,{ref:s,iconNode:t,className:Mo(`lucide-${nc(jo(e))}`,`lucide-${e}`,r),...o}));return n.displayName=jo(e),n};/**
87
87
  * @license lucide-react v0.542.0 - ISC
88
88
  *
89
89
  * This source code is licensed under the ISC license.
90
90
  * See the LICENSE file in the root directory of this source tree.
91
- */const Ul=Se("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
91
+ */const ic=pe("camera",[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/**
92
92
  * @license lucide-react v0.542.0 - ISC
93
93
  *
94
94
  * This source code is licensed under the ISC license.
95
95
  * See the LICENSE file in the root directory of this source tree.
96
- */const _n=Se("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
96
+ */const lc=pe("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
97
97
  * @license lucide-react v0.542.0 - ISC
98
98
  *
99
99
  * This source code is licensed under the ISC license.
100
100
  * See the LICENSE file in the root directory of this source tree.
101
- */const Gl=Se("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
101
+ */const In=pe("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
102
102
  * @license lucide-react v0.542.0 - ISC
103
103
  *
104
104
  * This source code is licensed under the ISC license.
105
105
  * See the LICENSE file in the root directory of this source tree.
106
- */const Yl=Se("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
106
+ */const cc=pe("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
107
107
  * @license lucide-react v0.542.0 - ISC
108
108
  *
109
109
  * This source code is licensed under the ISC license.
110
110
  * See the LICENSE file in the root directory of this source tree.
111
- */const Kl=Se("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
111
+ */const uc=pe("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
112
112
  * @license lucide-react v0.542.0 - ISC
113
113
  *
114
114
  * This source code is licensed under the ISC license.
115
115
  * See the LICENSE file in the root directory of this source tree.
116
- */const Xl=Se("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
116
+ */const dc=pe("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
117
117
  * @license lucide-react v0.542.0 - ISC
118
118
  *
119
119
  * This source code is licensed under the ISC license.
120
120
  * See the LICENSE file in the root directory of this source tree.
121
- */const ql=Se("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
121
+ */const fc=pe("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
122
122
  * @license lucide-react v0.542.0 - ISC
123
123
  *
124
124
  * This source code is licensed under the ISC license.
125
125
  * See the LICENSE file in the root directory of this source tree.
126
- */const Oo=Se("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/**
126
+ */const pc=pe("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
127
127
  * @license lucide-react v0.542.0 - ISC
128
128
  *
129
129
  * This source code is licensed under the ISC license.
130
130
  * See the LICENSE file in the root directory of this source tree.
131
- */const _o=Se("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Zl({...e}){return p.jsx(Eo,{"data-slot":"dialog",...e})}function Jl({...e}){return p.jsx(Ll,{"data-slot":"dialog-trigger",...e})}function Io({...e}){return p.jsx(ko,{"data-slot":"dialog-portal",...e})}function Ql({...e}){return p.jsx(Ao,{"data-slot":"dialog-close",...e})}function jo({className:e,...t}){return p.jsx(Po,{"data-slot":"dialog-overlay",className:re("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function ec({className:e,children:t,showCloseButton:n=!0,...r}){return p.jsxs(Io,{"data-slot":"dialog-portal",children:[p.jsx(jo,{}),p.jsxs(Ro,{"data-slot":"dialog-content",className:re("bg-background bg-white 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border border-none p-6 shadow-lg duration-200 sm:max-w-lg",e),...r,children:[t,n&&p.jsxs(Ao,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[p.jsx(_o,{}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function tc({className:e,...t}){return p.jsx("div",{"data-slot":"dialog-header",className:re("flex flex-col gap-2 text-center sm:text-left",e),...t})}function nc({className:e,...t}){return p.jsx("div",{"data-slot":"dialog-footer",className:re("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function rc({className:e,...t}){return p.jsx($l,{"data-slot":"dialog-title",className:re("text-lg leading-none font-semibold ",e),...t})}function oc({className:e,...t}){return p.jsx(Fl,{"data-slot":"dialog-description",className:re("text-muted-foreground text-sm",e),...t})}const sc=Nt("inline-flex items-center justify-center rounded-full font-medium w-fit whitespace-nowrap shrink-0 gap-1 text-sm",{variants:{variant:{primary:"bg-tag-light-blue text-tag-dark-blue border-tag-light-blue",neutral:"bg-tag-light-gray text-tag-dark-gray border-tag-light-gray",warning:"bg-tag-light-brown text-tag-dark-brown border-tag-stroke-warning-border",success:"bg-tag-light-green text-tag-dark-green border-tag-stroke-success-border",error:"bg-tag-light-red-light text-tag-dark-red-dark border-tag-stroke-error-border",secondary:"bg-tag-light-ice-blue text-tag-dark-ice-blue border-tag-stroke-dark-border"},type:{filled:"border-0",outline:"border bg-transparent"},size:{md:"px-3 py-0.5 text-sm"}},defaultVariants:{variant:"primary",type:"filled",size:"md"}});function Mo({className:e,variant:t,type:n="filled",asChild:r=!1,children:o,...s}){const a=r?dn:"span";return p.jsx(a,{"data-slot":"badge",className:re(sc({variant:t,type:n}),e),...s,children:o})}const ac=["top","right","bottom","left"],Te=Math.min,ce=Math.max,Bt=Math.round,Ht=Math.floor,ve=e=>({x:e,y:e}),ic={left:"right",right:"left",bottom:"top",top:"bottom"},lc={start:"end",end:"start"};function In(e,t,n){return ce(e,Te(t,n))}function Ee(e,t){return typeof e=="function"?e(t):e}function ke(e){return e.split("-")[0]}function Je(e){return e.split("-")[1]}function jn(e){return e==="x"?"y":"x"}function Mn(e){return e==="y"?"height":"width"}const cc=new Set(["top","bottom"]);function be(e){return cc.has(ke(e))?"y":"x"}function Dn(e){return jn(be(e))}function uc(e,t,n){n===void 0&&(n=!1);const r=Je(e),o=Dn(e),s=Mn(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=Ut(a)),[a,Ut(a)]}function dc(e){const t=Ut(e);return[Ln(e),t,Ln(t)]}function Ln(e){return e.replace(/start|end/g,t=>lc[t])}const Do=["left","right"],Lo=["right","left"],fc=["top","bottom"],pc=["bottom","top"];function mc(e,t,n){switch(e){case"top":case"bottom":return n?t?Lo:Do:t?Do:Lo;case"left":case"right":return t?fc:pc;default:return[]}}function gc(e,t,n,r){const o=Je(e);let s=mc(ke(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(Ln)))),s}function Ut(e){return e.replace(/left|right|bottom|top/g,t=>ic[t])}function hc(e){return{top:0,right:0,bottom:0,left:0,...e}}function $o(e){return typeof e!="number"?hc(e):{top:e,right:e,bottom:e,left:e}}function Gt(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 Fo(e,t,n){let{reference:r,floating:o}=e;const s=be(t),a=Dn(t),i=Mn(a),c=ke(t),u=s==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,g=r[i]/2-o[i]/2;let h;switch(c){case"top":h={x:d,y:r.y-o.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-o.width,y:f};break;default:h={x:r.x,y:r.y}}switch(Je(t)){case"start":h[a]-=g*(n&&u?-1:1);break;case"end":h[a]+=g*(n&&u?-1:1);break}return h}const vc=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,i=s.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=Fo(u,r,c),g=r,h={},v=0;for(let m=0;m<i.length;m++){const{name:b,fn:y}=i[m],{x,y:w,data:E,reset:P}=await y({x:d,y:f,initialPlacement:r,placement:g,strategy:o,middlewareData:h,rects:u,platform:a,elements:{reference:e,floating:t}});d=x??d,f=w??f,h={...h,[b]:{...h[b],...E}},P&&v<=50&&(v++,typeof P=="object"&&(P.placement&&(g=P.placement),P.rects&&(u=P.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):P.rects),{x:d,y:f}=Fo(u,g,c)),m=-1)}return{x:d,y:f,placement:g,strategy:o,middlewareData:h}};async function mt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:a,elements:i,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:g=!1,padding:h=0}=Ee(t,e),v=$o(h),b=i[g?f==="floating"?"reference":"floating":f],y=Gt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(b)))==null||n?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:u,rootBoundary:d,strategy:c})),x=f==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),E=await(s.isElement==null?void 0:s.isElement(w))?await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1}:{x:1,y:1},P=Gt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:x,offsetParent:w,strategy:c}):x);return{top:(y.top-P.top+v.top)/E.y,bottom:(P.bottom-y.bottom+v.bottom)/E.y,left:(y.left-P.left+v.left)/E.x,right:(P.right-y.right+v.right)/E.x}}const bc=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:i,middlewareData:c}=t,{element:u,padding:d=0}=Ee(e,t)||{};if(u==null)return{};const f=$o(d),g={x:n,y:r},h=Dn(o),v=Mn(h),m=await a.getDimensions(u),b=h==="y",y=b?"top":"left",x=b?"bottom":"right",w=b?"clientHeight":"clientWidth",E=s.reference[v]+s.reference[h]-g[h]-s.floating[v],P=g[h]-s.reference[h],N=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let R=N?N[w]:0;(!R||!await(a.isElement==null?void 0:a.isElement(N)))&&(R=i.floating[w]||s.floating[v]);const T=E/2-P/2,V=R/2-m[v]/2-1,G=Te(f[y],V),Z=Te(f[x],V),X=G,J=R-m[v]-Z,F=R/2-m[v]/2+T,Y=In(X,F,J),$=!c.arrow&&Je(o)!=null&&F!==Y&&s.reference[v]/2-(F<X?G:Z)-m[v]/2<0,z=$?F<X?F-X:F-J:0;return{[h]:g[h]+z,data:{[h]:Y,centerOffset:F-Y-z,...$&&{alignmentOffset:z}},reset:$}}}),xc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:a,initialPlacement:i,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...b}=Ee(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=ke(o),x=be(i),w=ke(i)===i,E=await(c.isRTL==null?void 0:c.isRTL(u.floating)),P=g||(w||!m?[Ut(i)]:dc(i)),N=v!=="none";!g&&N&&P.push(...gc(i,m,v,E));const R=[i,...P],T=await mt(t,b),V=[];let G=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&V.push(T[y]),f){const F=uc(o,a,E);V.push(T[F[0]],T[F[1]])}if(G=[...G,{placement:o,overflows:V}],!V.every(F=>F<=0)){var Z,X;const F=(((Z=s.flip)==null?void 0:Z.index)||0)+1,Y=R[F];if(Y&&(!(f==="alignment"?x!==be(Y):!1)||G.every(k=>be(k.placement)===x?k.overflows[0]>0:!0)))return{data:{index:F,overflows:G},reset:{placement:Y}};let $=(X=G.filter(z=>z.overflows[0]<=0).sort((z,k)=>z.overflows[1]-k.overflows[1])[0])==null?void 0:X.placement;if(!$)switch(h){case"bestFit":{var J;const z=(J=G.filter(k=>{if(N){const Q=be(k.placement);return Q===x||Q==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(Q=>Q>0).reduce((Q,S)=>Q+S,0)]).sort((k,Q)=>k[1]-Q[1])[0])==null?void 0:J[0];z&&($=z);break}case"initialPlacement":$=i;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function zo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Vo(e){return ac.some(t=>e[t]>=0)}const yc=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Ee(e,t);switch(r){case"referenceHidden":{const s=await mt(t,{...o,elementContext:"reference"}),a=zo(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Vo(a)}}}case"escaped":{const s=await mt(t,{...o,altBoundary:!0}),a=zo(s,n.floating);return{data:{escapedOffsets:a,escaped:Vo(a)}}}default:return{}}}}},Wo=new Set(["left","top"]);async function wc(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=ke(n),i=Je(n),c=be(n)==="y",u=Wo.has(a)?-1:1,d=s&&c?-1:1,f=Ee(t,e);let{mainAxis:g,crossAxis:h,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return i&&typeof v=="number"&&(h=i==="end"?v*-1:v),c?{x:h*d,y:g*u}:{x:g*u,y:h*d}}const Cc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:i}=t,c=await wc(t,e);return a===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:a}}}}},Sc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:i={fn:b=>{let{x:y,y:x}=b;return{x:y,y:x}}},...c}=Ee(e,t),u={x:n,y:r},d=await mt(t,c),f=be(ke(o)),g=jn(f);let h=u[g],v=u[f];if(s){const b=g==="y"?"top":"left",y=g==="y"?"bottom":"right",x=h+d[b],w=h-d[y];h=In(x,h,w)}if(a){const b=f==="y"?"top":"left",y=f==="y"?"bottom":"right",x=v+d[b],w=v-d[y];v=In(x,v,w)}const m=i.fn({...t,[g]:h,[f]:v});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[g]:s,[f]:a}}}}}},Ec=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:i=0,mainAxis:c=!0,crossAxis:u=!0}=Ee(e,t),d={x:n,y:r},f=be(o),g=jn(f);let h=d[g],v=d[f];const m=Ee(i,t),b=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const w=g==="y"?"height":"width",E=s.reference[g]-s.floating[w]+b.mainAxis,P=s.reference[g]+s.reference[w]-b.mainAxis;h<E?h=E:h>P&&(h=P)}if(u){var y,x;const w=g==="y"?"width":"height",E=Wo.has(ke(o)),P=s.reference[f]-s.floating[w]+(E&&((y=a.offset)==null?void 0:y[f])||0)+(E?0:b.crossAxis),N=s.reference[f]+s.reference[w]+(E?0:((x=a.offset)==null?void 0:x[f])||0)-(E?b.crossAxis:0);v<P?v=P:v>N&&(v=N)}return{[g]:h,[f]:v}}}},kc=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:a,elements:i}=t,{apply:c=()=>{},...u}=Ee(e,t),d=await mt(t,u),f=ke(o),g=Je(o),h=be(o)==="y",{width:v,height:m}=s.floating;let b,y;f==="top"||f==="bottom"?(b=f,y=g===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(y=f,b=g==="end"?"top":"bottom");const x=m-d.top-d.bottom,w=v-d.left-d.right,E=Te(m-d[b],x),P=Te(v-d[y],w),N=!t.middlewareData.shift;let R=E,T=P;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(R=x),N&&!g){const G=ce(d.left,0),Z=ce(d.right,0),X=ce(d.top,0),J=ce(d.bottom,0);h?T=v-2*(G!==0||Z!==0?G+Z:ce(d.left,d.right)):R=m-2*(X!==0||J!==0?X+J:ce(d.top,d.bottom))}await c({...t,availableWidth:T,availableHeight:R});const V=await a.getDimensions(i.floating);return v!==V.width||m!==V.height?{reset:{rects:!0}}:{}}}};function Yt(){return typeof window<"u"}function Qe(e){return Bo(e)?(e.nodeName||"").toLowerCase():"#document"}function ue(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function xe(e){var t;return(t=(Bo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Bo(e){return Yt()?e instanceof Node||e instanceof ue(e).Node:!1}function pe(e){return Yt()?e instanceof Element||e instanceof ue(e).Element:!1}function ye(e){return Yt()?e instanceof HTMLElement||e instanceof ue(e).HTMLElement:!1}function Ho(e){return!Yt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ue(e).ShadowRoot}const Pc=new Set(["inline","contents"]);function gt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=me(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Pc.has(o)}const Rc=new Set(["table","td","th"]);function Ac(e){return Rc.has(Qe(e))}const Tc=[":popover-open",":modal"];function Kt(e){return Tc.some(t=>{try{return e.matches(t)}catch{return!1}})}const Nc=["transform","translate","scale","rotate","perspective"],Oc=["transform","translate","scale","rotate","perspective","filter"],_c=["paint","layout","strict","content"];function $n(e){const t=Fn(),n=pe(e)?me(e):e;return Nc.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)||Oc.some(r=>(n.willChange||"").includes(r))||_c.some(r=>(n.contain||"").includes(r))}function Ic(e){let t=Ne(e);for(;ye(t)&&!et(t);){if($n(t))return t;if(Kt(t))return null;t=Ne(t)}return null}function Fn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const jc=new Set(["html","body","#document"]);function et(e){return jc.has(Qe(e))}function me(e){return ue(e).getComputedStyle(e)}function Xt(e){return pe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ne(e){if(Qe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ho(e)&&e.host||xe(e);return Ho(t)?t.host:t}function Uo(e){const t=Ne(e);return et(t)?e.ownerDocument?e.ownerDocument.body:e.body:ye(t)&&gt(t)?t:Uo(t)}function ht(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Uo(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=ue(o);if(s){const i=zn(a);return t.concat(a,a.visualViewport||[],gt(o)?o:[],i&&n?ht(i):[])}return t.concat(o,ht(o,[],n))}function zn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Go(e){const t=me(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ye(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,i=Bt(n)!==s||Bt(r)!==a;return i&&(n=s,r=a),{width:n,height:r,$:i}}function Vn(e){return pe(e)?e:e.contextElement}function tt(e){const t=Vn(e);if(!ye(t))return ve(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Go(t);let a=(s?Bt(n.width):n.width)/r,i=(s?Bt(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const Mc=ve(0);function Yo(e){const t=ue(e);return!Fn()||!t.visualViewport?Mc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Dc(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ue(e)?!1:t}function ze(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Vn(e);let a=ve(1);t&&(r?pe(r)&&(a=tt(r)):a=tt(e));const i=Dc(s,n,r)?Yo(s):ve(0);let c=(o.left+i.x)/a.x,u=(o.top+i.y)/a.y,d=o.width/a.x,f=o.height/a.y;if(s){const g=ue(s),h=r&&pe(r)?ue(r):r;let v=g,m=zn(v);for(;m&&r&&h!==v;){const b=tt(m),y=m.getBoundingClientRect(),x=me(m),w=y.left+(m.clientLeft+parseFloat(x.paddingLeft))*b.x,E=y.top+(m.clientTop+parseFloat(x.paddingTop))*b.y;c*=b.x,u*=b.y,d*=b.x,f*=b.y,c+=w,u+=E,v=ue(m),m=zn(v)}}return Gt({width:d,height:f,x:c,y:u})}function qt(e,t){const n=Xt(e).scrollLeft;return t?t.left+n:ze(xe(e)).left+n}function Ko(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-qt(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Lc(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=xe(r),i=t?Kt(t.floating):!1;if(r===a||i&&s)return n;let c={scrollLeft:0,scrollTop:0},u=ve(1);const d=ve(0),f=ye(r);if((f||!f&&!s)&&((Qe(r)!=="body"||gt(a))&&(c=Xt(r)),ye(r))){const h=ze(r);u=tt(r),d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}const g=a&&!f&&!s?Ko(a,c):ve(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+g.x,y:n.y*u.y-c.scrollTop*u.y+d.y+g.y}}function $c(e){return Array.from(e.getClientRects())}function Fc(e){const t=xe(e),n=Xt(e),r=e.ownerDocument.body,o=ce(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=ce(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+qt(e);const i=-n.scrollTop;return me(r).direction==="rtl"&&(a+=ce(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:i}}const Xo=25;function zc(e,t){const n=ue(e),r=xe(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,i=0,c=0;if(o){s=o.width,a=o.height;const d=Fn();(!d||d&&t==="fixed")&&(i=o.offsetLeft,c=o.offsetTop)}const u=qt(r);if(u<=0){const d=r.ownerDocument,f=d.body,g=getComputedStyle(f),h=d.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,v=Math.abs(r.clientWidth-f.clientWidth-h);v<=Xo&&(s-=v)}else u<=Xo&&(s+=u);return{width:s,height:a,x:i,y:c}}const Vc=new Set(["absolute","fixed"]);function Wc(e,t){const n=ze(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=ye(e)?tt(e):ve(1),a=e.clientWidth*s.x,i=e.clientHeight*s.y,c=o*s.x,u=r*s.y;return{width:a,height:i,x:c,y:u}}function qo(e,t,n){let r;if(t==="viewport")r=zc(e,n);else if(t==="document")r=Fc(xe(e));else if(pe(t))r=Wc(t,n);else{const o=Yo(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Gt(r)}function Zo(e,t){const n=Ne(e);return n===t||!pe(n)||et(n)?!1:me(n).position==="fixed"||Zo(n,t)}function Bc(e,t){const n=t.get(e);if(n)return n;let r=ht(e,[],!1).filter(i=>pe(i)&&Qe(i)!=="body"),o=null;const s=me(e).position==="fixed";let a=s?Ne(e):e;for(;pe(a)&&!et(a);){const i=me(a),c=$n(a);!c&&i.position==="fixed"&&(o=null),(s?!c&&!o:!c&&i.position==="static"&&!!o&&Vc.has(o.position)||gt(a)&&!c&&Zo(e,a))?r=r.filter(d=>d!==a):o=i,a=Ne(a)}return t.set(e,r),r}function Hc(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Kt(t)?[]:Bc(t,this._c):[].concat(n),r],i=a[0],c=a.reduce((u,d)=>{const f=qo(t,d,o);return u.top=ce(f.top,u.top),u.right=Te(f.right,u.right),u.bottom=Te(f.bottom,u.bottom),u.left=ce(f.left,u.left),u},qo(t,i,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Uc(e){const{width:t,height:n}=Go(e);return{width:t,height:n}}function Gc(e,t,n){const r=ye(t),o=xe(t),s=n==="fixed",a=ze(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const c=ve(0);function u(){c.x=qt(o)}if(r||!r&&!s)if((Qe(t)!=="body"||gt(o))&&(i=Xt(t)),r){const h=ze(t,!0,s,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else o&&u();s&&!r&&o&&u();const d=o&&!r&&!s?Ko(o,i):ve(0),f=a.left+i.scrollLeft-c.x-d.x,g=a.top+i.scrollTop-c.y-d.y;return{x:f,y:g,width:a.width,height:a.height}}function Wn(e){return me(e).position==="static"}function Jo(e,t){if(!ye(e)||me(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return xe(e)===n&&(n=n.ownerDocument.body),n}function Qo(e,t){const n=ue(e);if(Kt(e))return n;if(!ye(e)){let o=Ne(e);for(;o&&!et(o);){if(pe(o)&&!Wn(o))return o;o=Ne(o)}return n}let r=Jo(e,t);for(;r&&Ac(r)&&Wn(r);)r=Jo(r,t);return r&&et(r)&&Wn(r)&&!$n(r)?n:r||Ic(e)||n}const Yc=async function(e){const t=this.getOffsetParent||Qo,n=this.getDimensions,r=await n(e.floating);return{reference:Gc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Kc(e){return me(e).direction==="rtl"}const Xc={convertOffsetParentRelativeRectToViewportRelativeRect:Lc,getDocumentElement:xe,getClippingRect:Hc,getOffsetParent:Qo,getElementRects:Yc,getClientRects:$c,getDimensions:Uc,getScale:tt,isElement:pe,isRTL:Kc};function es(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function qc(e,t){let n=null,r;const o=xe(e);function s(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function a(i,c){i===void 0&&(i=!1),c===void 0&&(c=1),s();const u=e.getBoundingClientRect(),{left:d,top:f,width:g,height:h}=u;if(i||t(),!g||!h)return;const v=Ht(f),m=Ht(o.clientWidth-(d+g)),b=Ht(o.clientHeight-(f+h)),y=Ht(d),w={rootMargin:-v+"px "+-m+"px "+-b+"px "+-y+"px",threshold:ce(0,Te(1,c))||1};let E=!0;function P(N){const R=N[0].intersectionRatio;if(R!==c){if(!E)return a();R?a(!1,R):r=setTimeout(()=>{a(!1,1e-7)},1e3)}R===1&&!es(u,e.getBoundingClientRect())&&a(),E=!1}try{n=new IntersectionObserver(P,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(P,w)}n.observe(e)}return a(!0),s}function Zc(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=Vn(e),d=o||s?[...u?ht(u):[],...ht(t)]:[];d.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const f=u&&i?qc(u,n):null;let g=-1,h=null;a&&(h=new ResizeObserver(y=>{let[x]=y;x&&x.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),n()}),u&&!c&&h.observe(u),h.observe(t));let v,m=c?ze(e):null;c&&b();function b(){const y=ze(e);m&&!es(m,y)&&n(),m=y,v=requestAnimationFrame(b)}return n(),()=>{var y;d.forEach(x=>{o&&x.removeEventListener("scroll",n),s&&x.removeEventListener("resize",n)}),f==null||f(),(y=h)==null||y.disconnect(),h=null,c&&cancelAnimationFrame(v)}}const Jc=Cc,Qc=Sc,eu=xc,tu=kc,nu=yc,ts=bc,ru=Ec,ou=(e,t,n)=>{const r=new Map,o={platform:Xc,...n},s={...o.platform,_c:r};return vc(e,t,{...o,platform:s})};var su=typeof document<"u",au=function(){},Zt=su?oe.useLayoutEffect:au;function Jt(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(!Jt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Jt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function ns(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function rs(e,t){const n=ns(e);return Math.round(t*n)/n}function Bn(e){const t=l.useRef(e);return Zt(()=>{t.current=e}),t}function iu(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:i=!0,whileElementsMounted:c,open:u}=e,[d,f]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,h]=l.useState(r);Jt(g,r)||h(r);const[v,m]=l.useState(null),[b,y]=l.useState(null),x=l.useCallback(k=>{k!==N.current&&(N.current=k,m(k))},[]),w=l.useCallback(k=>{k!==R.current&&(R.current=k,y(k))},[]),E=s||v,P=a||b,N=l.useRef(null),R=l.useRef(null),T=l.useRef(d),V=c!=null,G=Bn(c),Z=Bn(o),X=Bn(u),J=l.useCallback(()=>{if(!N.current||!R.current)return;const k={placement:t,strategy:n,middleware:g};Z.current&&(k.platform=Z.current),ou(N.current,R.current,k).then(Q=>{const S={...Q,isPositioned:X.current!==!1};F.current&&!Jt(T.current,S)&&(T.current=S,Rt.flushSync(()=>{f(S)}))})},[g,t,n,Z,X]);Zt(()=>{u===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,f(k=>({...k,isPositioned:!1})))},[u]);const F=l.useRef(!1);Zt(()=>(F.current=!0,()=>{F.current=!1}),[]),Zt(()=>{if(E&&(N.current=E),P&&(R.current=P),E&&P){if(G.current)return G.current(E,P,J);J()}},[E,P,J,G,V]);const Y=l.useMemo(()=>({reference:N,floating:R,setReference:x,setFloating:w}),[x,w]),$=l.useMemo(()=>({reference:E,floating:P}),[E,P]),z=l.useMemo(()=>{const k={position:n,left:0,top:0};if(!$.floating)return k;const Q=rs($.floating,d.x),S=rs($.floating,d.y);return i?{...k,transform:"translate("+Q+"px, "+S+"px)",...ns($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Q,top:S}},[n,i,$.floating,d.x,d.y]);return l.useMemo(()=>({...d,update:J,refs:Y,elements:$,floatingStyles:z}),[d,J,Y,$,z])}const lu=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?ts({element:r.current,padding:o}).fn(n):{}:r?ts({element:r,padding:o}).fn(n):{}}}},cu=(e,t)=>({...Jc(e),options:[e,t]}),uu=(e,t)=>({...Qc(e),options:[e,t]}),du=(e,t)=>({...ru(e),options:[e,t]}),fu=(e,t)=>({...eu(e),options:[e,t]}),pu=(e,t)=>({...tu(e),options:[e,t]}),mu=(e,t)=>({...nu(e),options:[e,t]}),gu=(e,t)=>({...lu(e),options:[e,t]});var hu="Arrow",os=l.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return p.jsx(K.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});os.displayName=hu;var vu=os;function bu(e){const[t,n]=l.useState(void 0);return ie(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,i;if("borderBoxSize"in s){const c=s.borderBoxSize,u=Array.isArray(c)?c[0]:c;a=u.inlineSize,i=u.blockSize}else a=e.offsetWidth,i=e.offsetHeight;n({width:a,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Hn="Popper",[ss,nt]=Ye(Hn),[xu,as]=ss(Hn),is=e=>{const{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return p.jsx(xu,{scope:t,anchor:r,onAnchorChange:o,children:n})};is.displayName=Hn;var ls="PopperAnchor",cs=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=as(ls,n),a=l.useRef(null),i=se(t,a),c=l.useRef(null);return l.useEffect(()=>{const u=c.current;c.current=(r==null?void 0:r.current)||a.current,u!==c.current&&s.onAnchorChange(c.current)}),r?null:p.jsx(K.div,{...o,ref:i})});cs.displayName=ls;var Un="PopperContent",[yu,wu]=ss(Un),us=l.forwardRef((e,t)=>{var A,D,W,H,ee,te;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:i=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:g=!1,updatePositionStrategy:h="optimized",onPlaced:v,...m}=e,b=as(Un,n),[y,x]=l.useState(null),w=se(t,de=>x(de)),[E,P]=l.useState(null),N=bu(E),R=(N==null?void 0:N.width)??0,T=(N==null?void 0:N.height)??0,V=r+(s!=="center"?"-"+s:""),G=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},Z=Array.isArray(u)?u:[u],X=Z.length>0,J={padding:G,boundary:Z.filter(Su),altBoundary:X},{refs:F,floatingStyles:Y,placement:$,isPositioned:z,middlewareData:k}=iu({strategy:"fixed",placement:V,whileElementsMounted:(...de)=>Zc(...de,{animationFrame:h==="always"}),elements:{reference:b.anchor},middleware:[cu({mainAxis:o+T,alignmentAxis:a}),c&&uu({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?du():void 0,...J}),c&&fu({...J}),pu({...J,apply:({elements:de,rects:we,availableWidth:Et,availableHeight:kt})=>{const{width:Pt,height:Wf}=we.reference,cn=de.floating.style;cn.setProperty("--radix-popper-available-width",`${Et}px`),cn.setProperty("--radix-popper-available-height",`${kt}px`),cn.setProperty("--radix-popper-anchor-width",`${Pt}px`),cn.setProperty("--radix-popper-anchor-height",`${Wf}px`)}}),E&&gu({element:E,padding:i}),Eu({arrowWidth:R,arrowHeight:T}),g&&mu({strategy:"referenceHidden",...J})]}),[Q,S]=ps($),L=$e(v);ie(()=>{z&&(L==null||L())},[z,L]);const C=(A=k.arrow)==null?void 0:A.x,O=(D=k.arrow)==null?void 0:D.y,M=((W=k.arrow)==null?void 0:W.centerOffset)!==0,[_,B]=l.useState();return ie(()=>{y&&B(window.getComputedStyle(y).zIndex)},[y]),p.jsx("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:z?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:_,"--radix-popper-transform-origin":[(H=k.transformOrigin)==null?void 0:H.x,(ee=k.transformOrigin)==null?void 0:ee.y].join(" "),...((te=k.hide)==null?void 0:te.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(yu,{scope:n,placedSide:Q,onArrowChange:P,arrowX:C,arrowY:O,shouldHideArrow:M,children:p.jsx(K.div,{"data-side":Q,"data-align":S,...m,ref:w,style:{...m.style,animation:z?void 0:"none"}})})})});us.displayName=Un;var ds="PopperArrow",Cu={top:"bottom",right:"left",bottom:"top",left:"right"},fs=l.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=wu(ds,r),a=Cu[s.placedSide];return p.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:p.jsx(vu,{...o,ref:n,style:{...o.style,display:"block"}})})});fs.displayName=ds;function Su(e){return e!==null}var Eu=e=>({name:"transformOrigin",options:e,fn(t){var b,y,x;const{placement:n,rects:r,middlewareData:o}=t,a=((b=o.arrow)==null?void 0:b.centerOffset)!==0,i=a?0:e.arrowWidth,c=a?0:e.arrowHeight,[u,d]=ps(n),f={start:"0%",center:"50%",end:"100%"}[d],g=(((y=o.arrow)==null?void 0:y.x)??0)+i/2,h=(((x=o.arrow)==null?void 0:x.y)??0)+c/2;let v="",m="";return u==="bottom"?(v=a?f:`${g}px`,m=`${-c}px`):u==="top"?(v=a?f:`${g}px`,m=`${r.floating.height+c}px`):u==="right"?(v=`${-c}px`,m=a?f:`${h}px`):u==="left"&&(v=`${r.floating.width+c}px`,m=a?f:`${h}px`),{data:{x:v,y:m}}}});function ps(e){const[t,n="center"]=e.split("-");return[t,n]}var Gn=is,Qt=cs,Yn=us,Kn=fs,ms=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"}),ku="VisuallyHidden",gs=l.forwardRef((e,t)=>p.jsx(K.span,{...e,ref:t,style:{...ms,...e.style}}));gs.displayName=ku;var Pu=gs,[en,rp]=Ye("Tooltip",[nt]),tn=nt(),hs="TooltipProvider",Ru=700,Xn="tooltip.open",[Au,qn]=en(hs),vs=e=>{const{__scopeTooltip:t,delayDuration:n=Ru,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,a=l.useRef(!0),i=l.useRef(!1),c=l.useRef(0);return l.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),p.jsx(Au,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:l.useCallback(()=>{window.clearTimeout(c.current),a.current=!1},[]),onClose:l.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:l.useCallback(u=>{i.current=u},[]),disableHoverableContent:o,children:s})};vs.displayName=hs;var vt="Tooltip",[Tu,bt]=en(vt),bs=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:a,delayDuration:i}=e,c=qn(vt,e.__scopeTooltip),u=tn(t),[d,f]=l.useState(null),g=le(),h=l.useRef(0),v=a??c.disableHoverableContent,m=i??c.delayDuration,b=l.useRef(!1),[y,x]=dt({prop:r,defaultProp:o??!1,onChange:R=>{R?(c.onOpen(),document.dispatchEvent(new CustomEvent(Xn))):c.onClose(),s==null||s(R)},caller:vt}),w=l.useMemo(()=>y?b.current?"delayed-open":"instant-open":"closed",[y]),E=l.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b.current=!1,x(!0)},[x]),P=l.useCallback(()=>{window.clearTimeout(h.current),h.current=0,x(!1)},[x]),N=l.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{b.current=!0,x(!0),h.current=0},m)},[m,x]);return l.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),p.jsx(Gn,{...u,children:p.jsx(Tu,{scope:t,contentId:g,open:y,stateAttribute:w,trigger:d,onTriggerChange:f,onTriggerEnter:l.useCallback(()=>{c.isOpenDelayedRef.current?N():E()},[c.isOpenDelayedRef,N,E]),onTriggerLeave:l.useCallback(()=>{v?P():(window.clearTimeout(h.current),h.current=0)},[P,v]),onOpen:E,onClose:P,disableHoverableContent:v,children:n})})};bs.displayName=vt;var Zn="TooltipTrigger",xs=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=bt(Zn,n),s=qn(Zn,n),a=tn(n),i=l.useRef(null),c=se(t,i,o.onTriggerChange),u=l.useRef(!1),d=l.useRef(!1),f=l.useCallback(()=>u.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),p.jsx(Qt,{asChild:!0,...a,children:p.jsx(K.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:q(e.onPointerMove,g=>{g.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:q(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:q(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:q(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:q(e.onBlur,o.onClose),onClick:q(e.onClick,o.onClose)})})});xs.displayName=Zn;var Jn="TooltipPortal",[Nu,Ou]=en(Jn,{forceMount:void 0}),ys=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=bt(Jn,t);return p.jsx(Nu,{scope:t,forceMount:n,children:p.jsx(Ae,{present:n||s.open,children:p.jsx(pt,{asChild:!0,container:o,children:r})})})};ys.displayName=Jn;var rt="TooltipContent",ws=l.forwardRef((e,t)=>{const n=Ou(rt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,a=bt(rt,e.__scopeTooltip);return p.jsx(Ae,{present:r||a.open,children:a.disableHoverableContent?p.jsx(Cs,{side:o,...s,ref:t}):p.jsx(_u,{side:o,...s,ref:t})})}),_u=l.forwardRef((e,t)=>{const n=bt(rt,e.__scopeTooltip),r=qn(rt,e.__scopeTooltip),o=l.useRef(null),s=se(t,o),[a,i]=l.useState(null),{trigger:c,onClose:u}=n,d=o.current,{onPointerInTransitChange:f}=r,g=l.useCallback(()=>{i(null),f(!1)},[f]),h=l.useCallback((v,m)=>{const b=v.currentTarget,y={x:v.clientX,y:v.clientY},x=Du(y,b.getBoundingClientRect()),w=Lu(y,x),E=$u(m.getBoundingClientRect()),P=zu([...w,...E]);i(P),f(!0)},[f]);return l.useEffect(()=>()=>g(),[g]),l.useEffect(()=>{if(c&&d){const v=b=>h(b,d),m=b=>h(b,c);return c.addEventListener("pointerleave",v),d.addEventListener("pointerleave",m),()=>{c.removeEventListener("pointerleave",v),d.removeEventListener("pointerleave",m)}}},[c,d,h,g]),l.useEffect(()=>{if(a){const v=m=>{const b=m.target,y={x:m.clientX,y:m.clientY},x=(c==null?void 0:c.contains(b))||(d==null?void 0:d.contains(b)),w=!Fu(y,a);x?g():w&&(g(),u())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[c,d,a,u,g]),p.jsx(Cs,{...e,ref:s})}),[Iu,ju]=en(vt,{isInside:!1}),Mu=Na("TooltipContent"),Cs=l.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...i}=e,c=bt(rt,n),u=tn(n),{onClose:d}=c;return l.useEffect(()=>(document.addEventListener(Xn,d),()=>document.removeEventListener(Xn,d)),[d]),l.useEffect(()=>{if(c.trigger){const f=g=>{const h=g.target;h!=null&&h.contains(c.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,d]),p.jsx(ft,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:p.jsxs(Yn,{"data-state":c.stateAttribute,...u,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[p.jsx(Mu,{children:r}),p.jsx(Iu,{scope:n,isInside:!0,children:p.jsx(Pu,{id:c.contentId,role:"tooltip",children:o||r})})]})})});ws.displayName=rt;var Ss="TooltipArrow",Es=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=tn(n);return ju(Ss,n).isInside?null:p.jsx(Kn,{...o,...r,ref:t})});Es.displayName=Ss;function Du(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Lu(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 $u(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 Fu(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const i=t[s],c=t[a],u=i.x,d=i.y,f=c.x,g=c.y;d>r!=g>r&&n<(f-u)*(r-d)/(g-d)+u&&(o=!o)}return o}function zu(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),Vu(t)}function Vu(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],a=n[n.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Wu=vs,Bu=bs,Hu=xs,Uu=ys,Gu=ws,Yu=Es;function ks({delayDuration:e=0,...t}){return p.jsx(Wu,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function Ku({...e}){return p.jsx(ks,{children:p.jsx(Bu,{"data-slot":"tooltip",...e})})}function Xu({...e}){return p.jsx(Hu,{"data-slot":"tooltip-trigger",...e})}function qu({className:e,sideOffset:t=0,children:n,...r}){return p.jsx(Uu,{children:p.jsxs(Gu,{"data-slot":"tooltip-content",sideOffset:t,className:re("bg-neutral-black-1 text-white 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 z-50 max-w-[362px]! origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs",e),...r,children:[n,p.jsx(Yu,{className:"bg-neutral-black-1 fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const Zu=Nt("flex items-center rounded-lg border transition-colors p-2",{variants:{size:{small:"h-6 w-80 text-sm px-2",medium:"h-12 w-92 text-base px-3"},status:{default:"border-neutral-black-4 text-foreground focus-within:ring-2 focus-within:ring-neutral-black-2",error:"border-primary-2 text-primary-1 focus-within:ring-2 focus-within:ring-primary-2",disabled:"border-neutral-black-4 bg-neutral-black-4 text-neutral-black-2 cursor-not-allowed"}},defaultVariants:{size:"medium",status:"default"}}),Qn=({label:e,helperText:t,errorText:n,leftIcon:r,rightIcon:o,size:s="medium",className:a,disabled:i=!1,...c})=>p.jsxs("div",{className:"flex flex-col gap-1",children:[e&&p.jsx("label",{className:"text-sm font-normal text-neutral-black-1",children:e}),p.jsxs("div",{className:re(Zu({size:s,status:n?"error":i?"disabled":"default"}),a),children:[r&&p.jsx("span",{className:"mr-2 flex-shrink-0",children:r}),p.jsx("input",{disabled:i,className:re("flex-1 bg-transparent outline-none placeholder:text-neutral-black-2 disabled:cursor-not-allowed disabled:opacity-50"),...c}),o&&p.jsx("span",{className:"ml-2 flex-shrink-0",children:o})]}),(t||n)&&p.jsx("p",{className:re("text-xs mt-1",n?"text-primary-1":"text-neutral-black-2"),children:n||t})]}),Ju=e=>p.jsx(Qn,{type:"email",inputMode:"email",...e}),Qu=({showForgot:e=!1,onValidityChange:t,customValidator:n,...r})=>{const[o,s]=oe.useState(!1),[a,i]=oe.useState(""),u=n?n(a):(f=>[{label:"minimum 8 characters",isValid:f.length>=8},{label:"one uppercase character",isValid:/[A-Z]/.test(f)},{label:"one lowercase character",isValid:/[a-z]/.test(f)},{label:"one special character",isValid:/[^A-Za-z0-9]/.test(f)},{label:"one number",isValid:/\d/.test(f)}])(a),d=u.every(f=>f.isValid);return oe.useEffect(()=>{t&&t(d,u)},[a,d,u,t]),p.jsx("div",{className:"flex flex-col gap-2",children:p.jsxs("div",{className:"flex flex-col gap-2 w-full max-w-sm",children:[p.jsxs("div",{className:"flex justify-between items-center",children:[p.jsx("label",{className:"text-sm font-medium text-neutral-0",children:"Password"}),e&&p.jsx("button",{type:"button",className:"text-xs text-neutral-0 hover:underline",children:"Forgot Password?"})]}),p.jsx(Qn,{type:o?"text":"password",value:a,onChange:f=>i(f.target.value),...r,rightIcon:p.jsx("button",{type:"button",onClick:()=>s(!o),className:"p-1 text-neutral-0 hover:text-text-neutral-0",children:o?p.jsx(Xl,{size:18,className:"text-neutral-black-2"}):p.jsx(ql,{size:18,className:"text-neutral-black-2"})})}),p.jsx("div",{className:"grid grid-cols-2 gap-y-1 text-xs mt-3",children:u.map((f,g)=>p.jsxs("div",{className:"flex items-center gap-1",children:[f.isValid?p.jsx(Yl,{size:14,className:"text-success-d"}):p.jsx(Kl,{size:14,className:"text-stroke"}),p.jsx("span",{className:f.isValid?"text-success-d":"text-input",children:f.label})]},g))})]})})},ed=e=>p.jsx(Qn,{type:"search",leftIcon:p.jsx(Oo,{"data-testid":"search-icon",className:"w-4 h-4 text-input-placeholder"}),placeholder:"Search...",...e});function Ps(e,[t,n]){return Math.min(n,Math.max(t,e))}function td(e){const t=e+"CollectionProvider",[n,r]=Ye(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=m=>{const{scope:b,children:y}=m,x=oe.useRef(null),w=oe.useRef(new Map).current;return p.jsx(o,{scope:b,itemMap:w,collectionRef:x,children:y})};a.displayName=t;const i=e+"CollectionSlot",c=De(i),u=oe.forwardRef((m,b)=>{const{scope:y,children:x}=m,w=s(i,y),E=se(b,w.collectionRef);return p.jsx(c,{ref:E,children:x})});u.displayName=i;const d=e+"CollectionItemSlot",f="data-radix-collection-item",g=De(d),h=oe.forwardRef((m,b)=>{const{scope:y,children:x,...w}=m,E=oe.useRef(null),P=se(b,E),N=s(d,y);return oe.useEffect(()=>(N.itemMap.set(E,{ref:E,...w}),()=>void N.itemMap.delete(E))),p.jsx(g,{[f]:"",ref:P,children:x})});h.displayName=d;function v(m){const b=s(e+"CollectionConsumer",m);return oe.useCallback(()=>{const x=b.collectionRef.current;if(!x)return[];const w=Array.from(x.querySelectorAll(`[${f}]`));return Array.from(b.itemMap.values()).sort((N,R)=>w.indexOf(N.ref.current)-w.indexOf(R.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:a,Slot:u,ItemSlot:h},v,r]}var nd=l.createContext(void 0);function rd(e){const t=l.useContext(nd);return e||t||"ltr"}function od(e){const t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var sd=[" ","Enter","ArrowUp","ArrowDown"],ad=[" ","Enter"],Ve="Select",[nn,rn,id]=td(Ve),[ot,op]=Ye(Ve,[id,nt]),on=nt(),[ld,Oe]=ot(Ve),[cd,ud]=ot(Ve),Rs=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:a,defaultValue:i,onValueChange:c,dir:u,name:d,autoComplete:f,disabled:g,required:h,form:v}=e,m=on(t),[b,y]=l.useState(null),[x,w]=l.useState(null),[E,P]=l.useState(!1),N=rd(u),[R,T]=dt({prop:r,defaultProp:o??!1,onChange:s,caller:Ve}),[V,G]=dt({prop:a,defaultProp:i,onChange:c,caller:Ve}),Z=l.useRef(null),X=b?v||!!b.closest("form"):!0,[J,F]=l.useState(new Set),Y=Array.from(J).map($=>$.props.value).join(";");return p.jsx(Gn,{...m,children:p.jsxs(ld,{required:h,scope:t,trigger:b,onTriggerChange:y,valueNode:x,onValueNodeChange:w,valueNodeHasChildren:E,onValueNodeHasChildrenChange:P,contentId:le(),value:V,onValueChange:G,open:R,onOpenChange:T,dir:N,triggerPointerDownPosRef:Z,disabled:g,children:[p.jsx(nn.Provider,{scope:t,children:p.jsx(cd,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback($=>{F(z=>new Set(z).add($))},[]),onNativeOptionRemove:l.useCallback($=>{F(z=>{const k=new Set(z);return k.delete($),k})},[]),children:n})}),X?p.jsxs(Zs,{"aria-hidden":!0,required:h,tabIndex:-1,name:d,autoComplete:f,value:V,onChange:$=>G($.target.value),disabled:g,form:v,children:[V===void 0?p.jsx("option",{value:""}):null,Array.from(J)]},Y):null]})})};Rs.displayName=Ve;var As="SelectTrigger",Ts=l.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=on(n),a=Oe(As,n),i=a.disabled||r,c=se(t,a.onTriggerChange),u=rn(n),d=l.useRef("touch"),[f,g,h]=Qs(m=>{const b=u().filter(w=>!w.disabled),y=b.find(w=>w.value===a.value),x=ea(b,m,y);x!==void 0&&a.onValueChange(x.value)}),v=m=>{i||(a.onOpenChange(!0),h()),m&&(a.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return p.jsx(Qt,{asChild:!0,...s,children:p.jsx(K.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":Js(a.value)?"":void 0,...o,ref:c,onClick:q(o.onClick,m=>{m.currentTarget.focus(),d.current!=="mouse"&&v(m)}),onPointerDown:q(o.onPointerDown,m=>{d.current=m.pointerType;const b=m.target;b.hasPointerCapture(m.pointerId)&&b.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(v(m),m.preventDefault())}),onKeyDown:q(o.onKeyDown,m=>{const b=f.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&g(m.key),!(b&&m.key===" ")&&sd.includes(m.key)&&(v(),m.preventDefault())})})})});Ts.displayName=As;var Ns="SelectValue",Os=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:a="",...i}=e,c=Oe(Ns,n),{onValueNodeHasChildrenChange:u}=c,d=s!==void 0,f=se(t,c.onValueNodeChange);return ie(()=>{u(d)},[u,d]),p.jsx(K.span,{...i,ref:f,style:{pointerEvents:"none"},children:Js(c.value)?p.jsx(p.Fragment,{children:a}):s})});Os.displayName=Ns;var dd="SelectIcon",_s=l.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return p.jsx(K.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});_s.displayName=dd;var fd="SelectPortal",Is=e=>p.jsx(pt,{asChild:!0,...e});Is.displayName=fd;var We="SelectContent",js=l.forwardRef((e,t)=>{const n=Oe(We,e.__scopeSelect),[r,o]=l.useState();if(ie(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?Rt.createPortal(p.jsx(Ms,{scope:e.__scopeSelect,children:p.jsx(nn.Slot,{scope:e.__scopeSelect,children:p.jsx("div",{children:e.children})})}),s):null}return p.jsx(Ds,{...e,ref:t})});js.displayName=We;var ge=10,[Ms,_e]=ot(We),pd="SelectContentImpl",md=De("SelectContent.RemoveScroll"),Ds=l.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:a,side:i,sideOffset:c,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:g,collisionPadding:h,sticky:v,hideWhenDetached:m,avoidCollisions:b,...y}=e,x=Oe(We,n),[w,E]=l.useState(null),[P,N]=l.useState(null),R=se(t,A=>E(A)),[T,V]=l.useState(null),[G,Z]=l.useState(null),X=rn(n),[J,F]=l.useState(!1),Y=l.useRef(!1);l.useEffect(()=>{if(w)return An(w)},[w]),Cn();const $=l.useCallback(A=>{const[D,...W]=X().map(te=>te.ref.current),[H]=W.slice(-1),ee=document.activeElement;for(const te of A)if(te===ee||(te==null||te.scrollIntoView({block:"nearest"}),te===D&&P&&(P.scrollTop=0),te===H&&P&&(P.scrollTop=P.scrollHeight),te==null||te.focus(),document.activeElement!==ee))return},[X,P]),z=l.useCallback(()=>$([T,w]),[$,T,w]);l.useEffect(()=>{J&&z()},[J,z]);const{onOpenChange:k,triggerPointerDownPosRef:Q}=x;l.useEffect(()=>{if(w){let A={x:0,y:0};const D=H=>{var ee,te;A={x:Math.abs(Math.round(H.pageX)-(((ee=Q.current)==null?void 0:ee.x)??0)),y:Math.abs(Math.round(H.pageY)-(((te=Q.current)==null?void 0:te.y)??0))}},W=H=>{A.x<=10&&A.y<=10?H.preventDefault():w.contains(H.target)||k(!1),document.removeEventListener("pointermove",D),Q.current=null};return Q.current!==null&&(document.addEventListener("pointermove",D),document.addEventListener("pointerup",W,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",D),document.removeEventListener("pointerup",W,{capture:!0})}}},[w,k,Q]),l.useEffect(()=>{const A=()=>k(!1);return window.addEventListener("blur",A),window.addEventListener("resize",A),()=>{window.removeEventListener("blur",A),window.removeEventListener("resize",A)}},[k]);const[S,L]=Qs(A=>{const D=X().filter(ee=>!ee.disabled),W=D.find(ee=>ee.ref.current===document.activeElement),H=ea(D,A,W);H&&setTimeout(()=>H.ref.current.focus())}),C=l.useCallback((A,D,W)=>{const H=!Y.current&&!W;(x.value!==void 0&&x.value===D||H)&&(V(A),H&&(Y.current=!0))},[x.value]),O=l.useCallback(()=>w==null?void 0:w.focus(),[w]),M=l.useCallback((A,D,W)=>{const H=!Y.current&&!W;(x.value!==void 0&&x.value===D||H)&&Z(A)},[x.value]),_=r==="popper"?er:Ls,B=_===er?{side:i,sideOffset:c,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:g,collisionPadding:h,sticky:v,hideWhenDetached:m,avoidCollisions:b}:{};return p.jsx(Ms,{scope:n,content:w,viewport:P,onViewportChange:N,itemRefCallback:C,selectedItem:T,onItemLeave:O,itemTextRefCallback:M,focusSelectedItem:z,selectedItemText:G,position:r,isPositioned:J,searchRef:S,children:p.jsx($t,{as:md,allowPinchZoom:!0,children:p.jsx(Ot,{asChild:!0,trapped:x.open,onMountAutoFocus:A=>{A.preventDefault()},onUnmountAutoFocus:q(o,A=>{var D;(D=x.trigger)==null||D.focus({preventScroll:!0}),A.preventDefault()}),children:p.jsx(ft,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:A=>A.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:p.jsx(_,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:A=>A.preventDefault(),...y,...B,onPlaced:()=>F(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:q(y.onKeyDown,A=>{const D=A.ctrlKey||A.altKey||A.metaKey;if(A.key==="Tab"&&A.preventDefault(),!D&&A.key.length===1&&L(A.key),["ArrowUp","ArrowDown","Home","End"].includes(A.key)){let H=X().filter(ee=>!ee.disabled).map(ee=>ee.ref.current);if(["ArrowUp","End"].includes(A.key)&&(H=H.slice().reverse()),["ArrowUp","ArrowDown"].includes(A.key)){const ee=A.target,te=H.indexOf(ee);H=H.slice(te+1)}setTimeout(()=>$(H)),A.preventDefault()}})})})})})})});Ds.displayName=pd;var gd="SelectItemAlignedPosition",Ls=l.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=Oe(We,n),a=_e(We,n),[i,c]=l.useState(null),[u,d]=l.useState(null),f=se(t,R=>d(R)),g=rn(n),h=l.useRef(!1),v=l.useRef(!0),{viewport:m,selectedItem:b,selectedItemText:y,focusSelectedItem:x}=a,w=l.useCallback(()=>{if(s.trigger&&s.valueNode&&i&&u&&m&&b&&y){const R=s.trigger.getBoundingClientRect(),T=u.getBoundingClientRect(),V=s.valueNode.getBoundingClientRect(),G=y.getBoundingClientRect();if(s.dir!=="rtl"){const ee=G.left-T.left,te=V.left-ee,de=R.left-te,we=R.width+de,Et=Math.max(we,T.width),kt=window.innerWidth-ge,Pt=Ps(te,[ge,Math.max(ge,kt-Et)]);i.style.minWidth=we+"px",i.style.left=Pt+"px"}else{const ee=T.right-G.right,te=window.innerWidth-V.right-ee,de=window.innerWidth-R.right-te,we=R.width+de,Et=Math.max(we,T.width),kt=window.innerWidth-ge,Pt=Ps(te,[ge,Math.max(ge,kt-Et)]);i.style.minWidth=we+"px",i.style.right=Pt+"px"}const Z=g(),X=window.innerHeight-ge*2,J=m.scrollHeight,F=window.getComputedStyle(u),Y=parseInt(F.borderTopWidth,10),$=parseInt(F.paddingTop,10),z=parseInt(F.borderBottomWidth,10),k=parseInt(F.paddingBottom,10),Q=Y+$+J+k+z,S=Math.min(b.offsetHeight*5,Q),L=window.getComputedStyle(m),C=parseInt(L.paddingTop,10),O=parseInt(L.paddingBottom,10),M=R.top+R.height/2-ge,_=X-M,B=b.offsetHeight/2,A=b.offsetTop+B,D=Y+$+A,W=Q-D;if(D<=M){const ee=Z.length>0&&b===Z[Z.length-1].ref.current;i.style.bottom="0px";const te=u.clientHeight-m.offsetTop-m.offsetHeight,de=Math.max(_,B+(ee?O:0)+te+z),we=D+de;i.style.height=we+"px"}else{const ee=Z.length>0&&b===Z[0].ref.current;i.style.top="0px";const de=Math.max(M,Y+m.offsetTop+(ee?C:0)+B)+W;i.style.height=de+"px",m.scrollTop=D-M+m.offsetTop}i.style.margin=`${ge}px 0`,i.style.minHeight=S+"px",i.style.maxHeight=X+"px",r==null||r(),requestAnimationFrame(()=>h.current=!0)}},[g,s.trigger,s.valueNode,i,u,m,b,y,s.dir,r]);ie(()=>w(),[w]);const[E,P]=l.useState();ie(()=>{u&&P(window.getComputedStyle(u).zIndex)},[u]);const N=l.useCallback(R=>{R&&v.current===!0&&(w(),x==null||x(),v.current=!1)},[w,x]);return p.jsx(vd,{scope:n,contentWrapper:i,shouldExpandOnScrollRef:h,onScrollButtonChange:N,children:p.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:p.jsx(K.div,{...o,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Ls.displayName=gd;var hd="SelectPopperPosition",er=l.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=ge,...s}=e,a=on(n);return p.jsx(Yn,{...a,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});er.displayName=hd;var[vd,tr]=ot(We,{}),nr="SelectViewport",$s=l.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=_e(nr,n),a=tr(nr,n),i=se(t,s.onViewportChange),c=l.useRef(0);return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),p.jsx(nn.Slot,{scope:n,children:p.jsx(K.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:q(o.onScroll,u=>{const d=u.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:g}=a;if(g!=null&&g.current&&f){const h=Math.abs(c.current-d.scrollTop);if(h>0){const v=window.innerHeight-ge*2,m=parseFloat(f.style.minHeight),b=parseFloat(f.style.height),y=Math.max(m,b);if(y<v){const x=y+h,w=Math.min(v,x),E=x-w;f.style.height=w+"px",f.style.bottom==="0px"&&(d.scrollTop=E>0?E:0,f.style.justifyContent="flex-end")}}}c.current=d.scrollTop})})})]})});$s.displayName=nr;var Fs="SelectGroup",[bd,xd]=ot(Fs),zs=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=le();return p.jsx(bd,{scope:n,id:o,children:p.jsx(K.div,{role:"group","aria-labelledby":o,...r,ref:t})})});zs.displayName=Fs;var Vs="SelectLabel",Ws=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=xd(Vs,n);return p.jsx(K.div,{id:o.id,...r,ref:t})});Ws.displayName=Vs;var sn="SelectItem",[yd,Bs]=ot(sn),Hs=l.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...a}=e,i=Oe(sn,n),c=_e(sn,n),u=i.value===r,[d,f]=l.useState(s??""),[g,h]=l.useState(!1),v=se(t,x=>{var w;return(w=c.itemRefCallback)==null?void 0:w.call(c,x,r,o)}),m=le(),b=l.useRef("touch"),y=()=>{o||(i.onValueChange(r),i.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return p.jsx(yd,{scope:n,value:r,disabled:o,textId:m,isSelected:u,onItemTextChange:l.useCallback(x=>{f(w=>w||((x==null?void 0:x.textContent)??"").trim())},[]),children:p.jsx(nn.ItemSlot,{scope:n,value:r,disabled:o,textValue:d,children:p.jsx(K.div,{role:"option","aria-labelledby":m,"data-highlighted":g?"":void 0,"aria-selected":u&&g,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:v,onFocus:q(a.onFocus,()=>h(!0)),onBlur:q(a.onBlur,()=>h(!1)),onClick:q(a.onClick,()=>{b.current!=="mouse"&&y()}),onPointerUp:q(a.onPointerUp,()=>{b.current==="mouse"&&y()}),onPointerDown:q(a.onPointerDown,x=>{b.current=x.pointerType}),onPointerMove:q(a.onPointerMove,x=>{var w;b.current=x.pointerType,o?(w=c.onItemLeave)==null||w.call(c):b.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:q(a.onPointerLeave,x=>{var w;x.currentTarget===document.activeElement&&((w=c.onItemLeave)==null||w.call(c))}),onKeyDown:q(a.onKeyDown,x=>{var E;((E=c.searchRef)==null?void 0:E.current)!==""&&x.key===" "||(ad.includes(x.key)&&y(),x.key===" "&&x.preventDefault())})})})})});Hs.displayName=sn;var xt="SelectItemText",Us=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,a=Oe(xt,n),i=_e(xt,n),c=Bs(xt,n),u=ud(xt,n),[d,f]=l.useState(null),g=se(t,y=>f(y),c.onItemTextChange,y=>{var x;return(x=i.itemTextRefCallback)==null?void 0:x.call(i,y,c.value,c.disabled)}),h=d==null?void 0:d.textContent,v=l.useMemo(()=>p.jsx("option",{value:c.value,disabled:c.disabled,children:h},c.value),[c.disabled,c.value,h]),{onNativeOptionAdd:m,onNativeOptionRemove:b}=u;return ie(()=>(m(v),()=>b(v)),[m,b,v]),p.jsxs(p.Fragment,{children:[p.jsx(K.span,{id:c.textId,...s,ref:g}),c.isSelected&&a.valueNode&&!a.valueNodeHasChildren?Rt.createPortal(s.children,a.valueNode):null]})});Us.displayName=xt;var Gs="SelectItemIndicator",Ys=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Bs(Gs,n).isSelected?p.jsx(K.span,{"aria-hidden":!0,...r,ref:t}):null});Ys.displayName=Gs;var rr="SelectScrollUpButton",Ks=l.forwardRef((e,t)=>{const n=_e(rr,e.__scopeSelect),r=tr(rr,e.__scopeSelect),[o,s]=l.useState(!1),a=se(t,r.onScrollButtonChange);return ie(()=>{if(n.viewport&&n.isPositioned){let i=function(){const u=c.scrollTop>0;s(u)};const c=n.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?p.jsx(qs,{...e,ref:a,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=n;i&&c&&(i.scrollTop=i.scrollTop-c.offsetHeight)}}):null});Ks.displayName=rr;var or="SelectScrollDownButton",Xs=l.forwardRef((e,t)=>{const n=_e(or,e.__scopeSelect),r=tr(or,e.__scopeSelect),[o,s]=l.useState(!1),a=se(t,r.onScrollButtonChange);return ie(()=>{if(n.viewport&&n.isPositioned){let i=function(){const u=c.scrollHeight-c.clientHeight,d=Math.ceil(c.scrollTop)<u;s(d)};const c=n.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?p.jsx(qs,{...e,ref:a,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=n;i&&c&&(i.scrollTop=i.scrollTop+c.offsetHeight)}}):null});Xs.displayName=or;var qs=l.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=_e("SelectScrollButton",n),a=l.useRef(null),i=rn(n),c=l.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return l.useEffect(()=>()=>c(),[c]),ie(()=>{var d;const u=i().find(f=>f.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"})},[i]),p.jsx(K.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:q(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:q(o.onPointerMove,()=>{var u;(u=s.onItemLeave)==null||u.call(s),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:q(o.onPointerLeave,()=>{c()})})}),wd="SelectSeparator",Cd=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return p.jsx(K.div,{"aria-hidden":!0,...r,ref:t})});Cd.displayName=wd;var sr="SelectArrow",Sd=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=on(n),s=Oe(sr,n),a=_e(sr,n);return s.open&&a.position==="popper"?p.jsx(Kn,{...o,...r,ref:t}):null});Sd.displayName=sr;var Ed="SelectBubbleInput",Zs=l.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=l.useRef(null),s=se(r,o),a=od(t);return l.useEffect(()=>{const i=o.current;if(!i)return;const c=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(c,"value").set;if(a!==t&&d){const f=new Event("change",{bubbles:!0});d.call(i,t),i.dispatchEvent(f)}},[a,t]),p.jsx(K.select,{...n,style:{...ms,...n.style},ref:s,defaultValue:t})});Zs.displayName=Ed;function Js(e){return e===""||e===void 0}function Qs(e){const t=$e(e),n=l.useRef(""),r=l.useRef(0),o=l.useCallback(a=>{const i=n.current+a;t(i),function c(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>c(""),1e3))}(i)},[t]),s=l.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function ea(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=kd(e,Math.max(s,0));o.length===1&&(a=a.filter(u=>u!==n));const c=a.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function kd(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Pd=Rs,Rd=Ts,Ad=Os,Td=_s,Nd=Is,Od=js,_d=$s,Id=zs,jd=Ws,Md=Hs,Dd=Us,Ld=Ys,$d=Ks,Fd=Xs;function zd({...e}){return p.jsx(Pd,{"data-slot":"select",...e})}function Vd({...e}){return p.jsx(Id,{"data-slot":"select-group",...e})}function Wd({...e}){return p.jsx(Ad,{"data-slot":"select-value",...e})}function Bd({className:e,size:t="default",children:n,...r}){return p.jsxs(Rd,{"data-slot":"select-trigger","data-size":t,className:re("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[n,p.jsx(Td,{asChild:!0,children:p.jsx(_n,{className:"size-4 opacity-50"})})]})}function Hd({className:e,children:t,position:n="popper",...r}){return p.jsx(Nd,{children:p.jsxs(Od,{"data-slot":"select-content",className:re("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 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[p.jsx(Gd,{}),p.jsx(_d,{className:re("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),p.jsx(Yd,{})]})})}function Ud({className:e,...t}){return p.jsx(jd,{"data-slot":"select-label",className:re("text-muted-foreground px-2 py-1.5 text-xs",e),...t})}function ta({className:e,children:t,...n}){return p.jsxs(Md,{"data-slot":"select-item",className:re("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 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 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...n,children:[p.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:p.jsx(Ld,{children:p.jsx(Ul,{className:"size-4"})})}),p.jsx(Dd,{children:t})]})}function Gd({className:e,...t}){return p.jsx($d,{"data-slot":"select-scroll-up-button",className:re("flex cursor-default items-center justify-center py-1",e),...t,children:p.jsx(Gl,{className:"size-4"})})}function Yd({className:e,...t}){return p.jsx(Fd,{"data-slot":"select-scroll-down-button",className:re("flex cursor-default items-center justify-center py-1",e),...t,children:p.jsx(_n,{className:"size-4"})})}var an="Popover",[na,sp]=Ye(an,[nt]),yt=nt(),[Kd,Ie]=na(an),ra=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!1}=e,i=yt(t),c=l.useRef(null),[u,d]=l.useState(!1),[f,g]=dt({prop:r,defaultProp:o??!1,onChange:s,caller:an});return p.jsx(Gn,{...i,children:p.jsx(Kd,{scope:t,contentId:le(),triggerRef:c,open:f,onOpenChange:g,onOpenToggle:l.useCallback(()=>g(h=>!h),[g]),hasCustomAnchor:u,onCustomAnchorAdd:l.useCallback(()=>d(!0),[]),onCustomAnchorRemove:l.useCallback(()=>d(!1),[]),modal:a,children:n})})};ra.displayName=an;var oa="PopoverAnchor",Xd=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Ie(oa,n),s=yt(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:i}=o;return l.useEffect(()=>(a(),()=>i()),[a,i]),p.jsx(Qt,{...s,...r,ref:t})});Xd.displayName=oa;var sa="PopoverTrigger",aa=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Ie(sa,n),s=yt(n),a=se(t,o.triggerRef),i=p.jsx(K.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":da(o.open),...r,ref:a,onClick:q(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:p.jsx(Qt,{asChild:!0,...s,children:i})});aa.displayName=sa;var ar="PopoverPortal",[qd,Zd]=na(ar,{forceMount:void 0}),ia=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,s=Ie(ar,t);return p.jsx(qd,{scope:t,forceMount:n,children:p.jsx(Ae,{present:n||s.open,children:p.jsx(pt,{asChild:!0,container:o,children:r})})})};ia.displayName=ar;var st="PopoverContent",la=l.forwardRef((e,t)=>{const n=Zd(st,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,s=Ie(st,e.__scopePopover);return p.jsx(Ae,{present:r||s.open,children:s.modal?p.jsx(Qd,{...o,ref:t}):p.jsx(ef,{...o,ref:t})})});la.displayName=st;var Jd=De("PopoverContent.RemoveScroll"),Qd=l.forwardRef((e,t)=>{const n=Ie(st,e.__scopePopover),r=l.useRef(null),o=se(t,r),s=l.useRef(!1);return l.useEffect(()=>{const a=r.current;if(a)return An(a)},[]),p.jsx($t,{as:Jd,allowPinchZoom:!0,children:p.jsx(ca,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:q(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),s.current||(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:q(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0,u=i.button===2||c;s.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:q(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),ef=l.forwardRef((e,t)=>{const n=Ie(st,e.__scopePopover),r=l.useRef(!1),o=l.useRef(!1);return p.jsx(ca,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,i;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(r.current||(i=n.triggerRef.current)==null||i.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),ca=l.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:d,...f}=e,g=Ie(st,n),h=yt(n);return Cn(),p.jsx(Ot,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:p.jsx(ft,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:d,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>g.onOpenChange(!1),children:p.jsx(Yn,{"data-state":da(g.open),role:"dialog",id:g.contentId,...h,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),ua="PopoverClose",tf=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Ie(ua,n);return p.jsx(K.button,{type:"button",...r,ref:t,onClick:q(e.onClick,()=>o.onOpenChange(!1))})});tf.displayName=ua;var nf="PopoverArrow",rf=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=yt(n);return p.jsx(Kn,{...o,...r,ref:t})});rf.displayName=nf;function da(e){return e?"open":"closed"}var of=ra,sf=aa,af=ia,lf=la;function cf({...e}){return p.jsx(of,{"data-slot":"popover",...e})}function uf({...e}){return p.jsx(sf,{"data-slot":"popover-trigger",...e})}function df({className:e,align:t="center",sideOffset:n=4,...r}){return p.jsx(af,{children:p.jsx(lf,{"data-slot":"popover-content",align:t,sideOffset:n,className:re("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 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...r})})}var fa=1,ff=.9,pf=.8,mf=.17,ir=.1,lr=.999,gf=.9999,hf=.99,vf=/[\\\/_+.#"@\[\(\{&]/,bf=/[\\\/_+.#"@\[\(\{&]/g,xf=/[\s-]/,pa=/[\s-]/g;function cr(e,t,n,r,o,s,a){if(s===t.length)return o===e.length?fa:hf;var i=`${o},${s}`;if(a[i]!==void 0)return a[i];for(var c=r.charAt(s),u=n.indexOf(c,o),d=0,f,g,h,v;u>=0;)f=cr(e,t,n,r,u+1,s+1,a),f>d&&(u===o?f*=fa:vf.test(e.charAt(u-1))?(f*=pf,h=e.slice(o,u-1).match(bf),h&&o>0&&(f*=Math.pow(lr,h.length))):xf.test(e.charAt(u-1))?(f*=ff,v=e.slice(o,u-1).match(pa),v&&o>0&&(f*=Math.pow(lr,v.length))):(f*=mf,o>0&&(f*=Math.pow(lr,u-o))),e.charAt(u)!==t.charAt(s)&&(f*=gf)),(f<ir&&n.charAt(u-1)===r.charAt(s+1)||r.charAt(s+1)===r.charAt(s)&&n.charAt(u-1)!==r.charAt(s))&&(g=cr(e,t,n,r,u+1,s+2,a),g*ir>f&&(f=g*ir)),f>d&&(d=f),u=n.indexOf(c,u+1);return a[i]=d,d}function ma(e){return e.toLowerCase().replace(pa," ")}function yf(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,cr(e,t,ma(e),ma(t),0,0,{})}var wt='[cmdk-group=""]',ur='[cmdk-group-items=""]',wf='[cmdk-group-heading=""]',ga='[cmdk-item=""]',ha=`${ga}:not([aria-disabled="true"])`,dr="cmdk-item-select",at="data-value",Cf=(e,t,n)=>yf(e,t,n),va=l.createContext(void 0),Ct=()=>l.useContext(va),ba=l.createContext(void 0),fr=()=>l.useContext(ba),xa=l.createContext(void 0),ya=l.forwardRef((e,t)=>{let n=it(()=>{var C,O;return{search:"",value:(O=(C=e.value)!=null?C:e.defaultValue)!=null?O:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=it(()=>new Set),o=it(()=>new Map),s=it(()=>new Map),a=it(()=>new Set),i=wa(e),{label:c,children:u,value:d,onValueChange:f,filter:g,shouldFilter:h,loop:v,disablePointerSelection:m=!1,vimBindings:b=!0,...y}=e,x=le(),w=le(),E=le(),P=l.useRef(null),N=If();Be(()=>{if(d!==void 0){let C=d.trim();n.current.value=C,R.emit()}},[d]),Be(()=>{N(6,J)},[]);let R=l.useMemo(()=>({subscribe:C=>(a.current.add(C),()=>a.current.delete(C)),snapshot:()=>n.current,setState:(C,O,M)=>{var _,B,A,D;if(!Object.is(n.current[C],O)){if(n.current[C]=O,C==="search")X(),G(),N(1,Z);else if(C==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let W=document.getElementById(E);W?W.focus():(_=document.getElementById(x))==null||_.focus()}if(N(7,()=>{var W;n.current.selectedItemId=(W=F())==null?void 0:W.id,R.emit()}),M||N(5,J),((B=i.current)==null?void 0:B.value)!==void 0){let W=O??"";(D=(A=i.current).onValueChange)==null||D.call(A,W);return}}R.emit()}},emit:()=>{a.current.forEach(C=>C())}}),[]),T=l.useMemo(()=>({value:(C,O,M)=>{var _;O!==((_=s.current.get(C))==null?void 0:_.value)&&(s.current.set(C,{value:O,keywords:M}),n.current.filtered.items.set(C,V(O,M)),N(2,()=>{G(),R.emit()}))},item:(C,O)=>(r.current.add(C),O&&(o.current.has(O)?o.current.get(O).add(C):o.current.set(O,new Set([C]))),N(3,()=>{X(),G(),n.current.value||Z(),R.emit()}),()=>{s.current.delete(C),r.current.delete(C),n.current.filtered.items.delete(C);let M=F();N(4,()=>{X(),(M==null?void 0:M.getAttribute("id"))===C&&Z(),R.emit()})}),group:C=>(o.current.has(C)||o.current.set(C,new Set),()=>{s.current.delete(C),o.current.delete(C)}),filter:()=>i.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>i.current.disablePointerSelection,listId:x,inputId:E,labelId:w,listInnerRef:P}),[]);function V(C,O){var M,_;let B=(_=(M=i.current)==null?void 0:M.filter)!=null?_:Cf;return C?B(C,n.current.search,O):0}function G(){if(!n.current.search||i.current.shouldFilter===!1)return;let C=n.current.filtered.items,O=[];n.current.filtered.groups.forEach(_=>{let B=o.current.get(_),A=0;B.forEach(D=>{let W=C.get(D);A=Math.max(W,A)}),O.push([_,A])});let M=P.current;Y().sort((_,B)=>{var A,D;let W=_.getAttribute("id"),H=B.getAttribute("id");return((A=C.get(H))!=null?A:0)-((D=C.get(W))!=null?D:0)}).forEach(_=>{let B=_.closest(ur);B?B.appendChild(_.parentElement===B?_:_.closest(`${ur} > *`)):M.appendChild(_.parentElement===M?_:_.closest(`${ur} > *`))}),O.sort((_,B)=>B[1]-_[1]).forEach(_=>{var B;let A=(B=P.current)==null?void 0:B.querySelector(`${wt}[${at}="${encodeURIComponent(_[0])}"]`);A==null||A.parentElement.appendChild(A)})}function Z(){let C=Y().find(M=>M.getAttribute("aria-disabled")!=="true"),O=C==null?void 0:C.getAttribute(at);R.setState("value",O||void 0)}function X(){var C,O,M,_;if(!n.current.search||i.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let B=0;for(let A of r.current){let D=(O=(C=s.current.get(A))==null?void 0:C.value)!=null?O:"",W=(_=(M=s.current.get(A))==null?void 0:M.keywords)!=null?_:[],H=V(D,W);n.current.filtered.items.set(A,H),H>0&&B++}for(let[A,D]of o.current)for(let W of D)if(n.current.filtered.items.get(W)>0){n.current.filtered.groups.add(A);break}n.current.filtered.count=B}function J(){var C,O,M;let _=F();_&&(((C=_.parentElement)==null?void 0:C.firstChild)===_&&((M=(O=_.closest(wt))==null?void 0:O.querySelector(wf))==null||M.scrollIntoView({block:"nearest"})),_.scrollIntoView({block:"nearest"}))}function F(){var C;return(C=P.current)==null?void 0:C.querySelector(`${ga}[aria-selected="true"]`)}function Y(){var C;return Array.from(((C=P.current)==null?void 0:C.querySelectorAll(ha))||[])}function $(C){let O=Y()[C];O&&R.setState("value",O.getAttribute(at))}function z(C){var O;let M=F(),_=Y(),B=_.findIndex(D=>D===M),A=_[B+C];(O=i.current)!=null&&O.loop&&(A=B+C<0?_[_.length-1]:B+C===_.length?_[0]:_[B+C]),A&&R.setState("value",A.getAttribute(at))}function k(C){let O=F(),M=O==null?void 0:O.closest(wt),_;for(;M&&!_;)M=C>0?Of(M,wt):_f(M,wt),_=M==null?void 0:M.querySelector(ha);_?R.setState("value",_.getAttribute(at)):z(C)}let Q=()=>$(Y().length-1),S=C=>{C.preventDefault(),C.metaKey?Q():C.altKey?k(1):z(1)},L=C=>{C.preventDefault(),C.metaKey?$(0):C.altKey?k(-1):z(-1)};return l.createElement(K.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:C=>{var O;(O=y.onKeyDown)==null||O.call(y,C);let M=C.nativeEvent.isComposing||C.keyCode===229;if(!(C.defaultPrevented||M))switch(C.key){case"n":case"j":{b&&C.ctrlKey&&S(C);break}case"ArrowDown":{S(C);break}case"p":case"k":{b&&C.ctrlKey&&L(C);break}case"ArrowUp":{L(C);break}case"Home":{C.preventDefault(),$(0);break}case"End":{C.preventDefault(),Q();break}case"Enter":{C.preventDefault();let _=F();if(_){let B=new Event(dr);_.dispatchEvent(B)}}}}},l.createElement("label",{"cmdk-label":"",htmlFor:T.inputId,id:T.labelId,style:Mf},c),ln(e,C=>l.createElement(ba.Provider,{value:R},l.createElement(va.Provider,{value:T},C))))}),Sf=l.forwardRef((e,t)=>{var n,r;let o=le(),s=l.useRef(null),a=l.useContext(xa),i=Ct(),c=wa(e),u=(r=(n=c.current)==null?void 0:n.forceMount)!=null?r:a==null?void 0:a.forceMount;Be(()=>{if(!u)return i.item(o,a==null?void 0:a.id)},[u]);let d=Ca(o,s,[e.value,e.children,s],e.keywords),f=fr(),g=je(N=>N.value&&N.value===d.current),h=je(N=>u||i.filter()===!1?!0:N.search?N.filtered.items.get(o)>0:!0);l.useEffect(()=>{let N=s.current;if(!(!N||e.disabled))return N.addEventListener(dr,v),()=>N.removeEventListener(dr,v)},[h,e.onSelect,e.disabled]);function v(){var N,R;m(),(R=(N=c.current).onSelect)==null||R.call(N,d.current)}function m(){f.setState("value",d.current,!0)}if(!h)return null;let{disabled:b,value:y,onSelect:x,forceMount:w,keywords:E,...P}=e;return l.createElement(K.div,{ref:Me(s,t),...P,id:o,"cmdk-item":"",role:"option","aria-disabled":!!b,"aria-selected":!!g,"data-disabled":!!b,"data-selected":!!g,onPointerMove:b||i.getDisablePointerSelection()?void 0:m,onClick:b?void 0:v},e.children)}),Ef=l.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...s}=e,a=le(),i=l.useRef(null),c=l.useRef(null),u=le(),d=Ct(),f=je(h=>o||d.filter()===!1?!0:h.search?h.filtered.groups.has(a):!0);Be(()=>d.group(a),[]),Ca(a,i,[e.value,e.heading,c]);let g=l.useMemo(()=>({id:a,forceMount:o}),[o]);return l.createElement(K.div,{ref:Me(i,t),...s,"cmdk-group":"",role:"presentation",hidden:f?void 0:!0},n&&l.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),ln(e,h=>l.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},l.createElement(xa.Provider,{value:g},h))))}),kf=l.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=l.useRef(null),s=je(a=>!a.search);return!n&&!s?null:l.createElement(K.div,{ref:Me(o,t),...r,"cmdk-separator":"",role:"separator"})}),Pf=l.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,s=fr(),a=je(u=>u.search),i=je(u=>u.selectedItemId),c=Ct();return l.useEffect(()=>{e.value!=null&&s.setState("search",e.value)},[e.value]),l.createElement(K.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":i,id:c.inputId,type:"text",value:o?e.value:a,onChange:u=>{o||s.setState("search",u.target.value),n==null||n(u.target.value)}})}),Rf=l.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,s=l.useRef(null),a=l.useRef(null),i=je(u=>u.selectedItemId),c=Ct();return l.useEffect(()=>{if(a.current&&s.current){let u=a.current,d=s.current,f,g=new ResizeObserver(()=>{f=requestAnimationFrame(()=>{let h=u.offsetHeight;d.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return g.observe(u),()=>{cancelAnimationFrame(f),g.unobserve(u)}}},[]),l.createElement(K.div,{ref:Me(s,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":r,id:c.listId},ln(e,u=>l.createElement("div",{ref:Me(a,c.listInnerRef),"cmdk-list-sizer":""},u)))}),Af=l.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:s,container:a,...i}=e;return l.createElement(Eo,{open:n,onOpenChange:r},l.createElement(ko,{container:a},l.createElement(Po,{"cmdk-overlay":"",className:o}),l.createElement(Ro,{"aria-label":e.label,"cmdk-dialog":"",className:s},l.createElement(ya,{ref:t,...i}))))}),Tf=l.forwardRef((e,t)=>je(n=>n.filtered.count===0)?l.createElement(K.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Nf=l.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...s}=e;return l.createElement(K.div,{ref:t,...s,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},ln(e,a=>l.createElement("div",{"aria-hidden":!0},a)))}),St=Object.assign(ya,{List:Rf,Item:Sf,Input:Pf,Group:Ef,Separator:kf,Dialog:Af,Empty:Tf,Loading:Nf});function Of(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function _f(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function wa(e){let t=l.useRef(e);return Be(()=>{t.current=e}),t}var Be=typeof window>"u"?l.useEffect:l.useLayoutEffect;function it(e){let t=l.useRef();return t.current===void 0&&(t.current=e()),t}function je(e){let t=fr(),n=()=>e(t.snapshot());return l.useSyncExternalStore(t.subscribe,n,n)}function Ca(e,t,n,r=[]){let o=l.useRef(),s=Ct();return Be(()=>{var a;let i=(()=>{var u;for(let d of n){if(typeof d=="string")return d.trim();if(typeof d=="object"&&"current"in d)return d.current?(u=d.current.textContent)==null?void 0:u.trim():o.current}})(),c=r.map(u=>u.trim());s.value(e,i,c),(a=t.current)==null||a.setAttribute(at,i),o.current=i}),o}var If=()=>{let[e,t]=l.useState(),n=it(()=>new Map);return Be(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function jf(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function ln({asChild:e,children:t},n){return e&&l.isValidElement(t)?l.cloneElement(jf(t),{ref:t.ref},n(t.props.children)):n(t)}var Mf={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function Df({className:e,...t}){return p.jsx(St,{"data-slot":"command",className:re("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function Lf({className:e,...t}){return p.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[p.jsx(Oo,{className:"size-4 shrink-0 opacity-50"}),p.jsx(St.Input,{"data-slot":"command-input",className:re("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function $f({...e}){return p.jsx(St.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function Sa({className:e,...t}){return p.jsx(St.Group,{"data-slot":"command-group",className:re("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}function Ea({className:e,...t}){return p.jsx(St.Item,{"data-slot":"command-item",className:re("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_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=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function pr(e){return e.length>0&&e[0].kind==="group"}function Ff(e){return e.multiple?p.jsx(Pa,{...e}):p.jsx(ka,{...e})}const ka=({options:e,placeholder:t="Select...",disabled:n,error:r,helperText:o,value:s,onChange:a})=>{const[i,c]=oe.useState(""),u=s??i,d=f=>{c(f),a==null||a(f)};return p.jsxs("div",{className:"w-94",children:[p.jsxs(zd,{value:u,onValueChange:d,disabled:n,children:[p.jsx(Bd,{"aria-invalid":!!r,className:re("flex w-full items-center justify-between rounded-md border bg-white px-3 py-2 text-sm",n&&"cursor-not-allowed bg-neutral-black-4 border border-neutral-black-4 rounded",r?"border-primary-1":"border-neutral-black-4"),children:p.jsx(Wd,{placeholder:t})}),p.jsx(Hd,{className:"w-full bg-white border border-neutral-black-4",children:pr(e)?e.map(f=>p.jsxs(Vd,{className:"p-2",children:[p.jsx(Ud,{children:f.label}),f.options.map(g=>p.jsx(ta,{value:g.value,disabled:g.disabled,children:g.label},g.value))]},f.label)):e.map(f=>p.jsx(ta,{value:f.value,disabled:f.disabled,className:"hover:cursor-pointer hover:bg-neutral-black-5",children:f.label},f.value))})]}),r&&p.jsx("p",{className:"mt-1 text-xs text-primary-1",children:r}),o&&p.jsx("p",{className:"mt-1 text-xs text-neutral-black-3",children:o})]})},Pa=({options:e,placeholder:t="Select...",disabled:n,error:r,helperText:o,value:s,onChange:a})=>{const[i,c]=oe.useState(!1),[u,d]=oe.useState([]),f=s??u,g=oe.useMemo(()=>pr(e)?e.flatMap(v=>v.options):e,[e]),h=v=>{const m=f.includes(v)?f.filter(b=>b!==v):[...f,v];d(m),a==null||a(m)};return p.jsxs("div",{className:"w-94",children:[p.jsxs(cf,{open:i,onOpenChange:c,children:[p.jsx(uf,{asChild:!0,children:p.jsxs("button",{type:"button",disabled:n,"aria-haspopup":"listbox","aria-expanded":i,className:re("flex w-full items-center justify-between rounded-md border bg-white px-3 py-2 text-sm",n&&"cursor-not-allowed bg-neutral-black-4 border border-neutral-black-4 rounded",r?"border-primary-1":"border-neutral-black-4"),children:[p.jsx("div",{className:"flex flex-wrap gap-1",children:f.length>0?f.map(v=>p.jsxs(Mo,{type:"outline",onClick:m=>{m.stopPropagation(),h(v)},className:"cursor-pointer border-neutral-black-4 bg-transparent hover:bg-neutral-black-4",children:[p.jsx("span",{className:"text-neutral-black-1",children:v}),p.jsx("div",{className:"flex items-center justify-center rounded-full border border-neutral-black-2 h-5 w-5 ml-1",children:p.jsx(_o,{className:"h-3 w-3 text-neutral-black-1",strokeWidth:2})})]},v)):p.jsx("span",{className:"truncate text-xs text-neutral-black-1",children:t})}),p.jsx(_n,{className:"h-4 w-4 text-neutral-black-1"})]})}),p.jsx(df,{className:"p-0 w-full bg-white border border-neutral-black-4",children:p.jsxs(Df,{className:"w-full",children:[p.jsx(Lf,{placeholder:"Search..."}),p.jsx($f,{children:"No results found."}),pr(e)?e.map(v=>p.jsx(Sa,{heading:v.label,children:v.options.map(m=>p.jsxs(Ea,{value:m.label,onSelect:()=>!m.disabled&&h(m.value),disabled:m.disabled,children:[p.jsx("input",{type:"checkbox",readOnly:!0,checked:f.includes(m.value),className:"mr-2"}),m.label]},m.value))},v.label)):p.jsx(Sa,{children:g.map(v=>p.jsxs(Ea,{value:v.label,onSelect:()=>!v.disabled&&h(v.value),disabled:v.disabled,children:[p.jsx("input",{type:"checkbox",readOnly:!0,checked:f.includes(v.value),className:"mr-2"}),v.label]},v.value))})]})})]}),r&&p.jsx("p",{className:"mt-1 text-xs text-primary-1",children:r}),o&&p.jsx("p",{className:"mt-1 text-xs text-neutral-black-3",children:o})]})},zf=Nt("w-full",{variants:{variant:{"widget-1":"bg-white rounded-lg p-6 flex flex-col items-start gap-4 shadow-[0_0_8px_0_rgba(0,0,0,0.08),6px_0_0_0_var(--color-primary-1)_inset]","widget-2":"bg-white rounded-lg p-6 flex flex-col items-start gap-4 border border-neutral-black-4 shadow-[0_0_8px_0_rgba(0,0,0,0.08)]"}},defaultVariants:{variant:"widget-1"}});function Vf({className:e,variant:t,asChild:n=!1,children:r,...o}){const s=n?dn:"div";return p.jsx(s,{"data-slot":"card",className:re(zf({variant:t}),e),...o,children:r})}ne.Badge=Mo,ne.Button=mi,ne.Card=Vf,ne.Dialog=Zl,ne.DialogClose=Ql,ne.DialogContent=ec,ne.DialogDescription=oc,ne.DialogFooter=nc,ne.DialogHeader=tc,ne.DialogOverlay=jo,ne.DialogPortal=Io,ne.DialogTitle=rc,ne.DialogTrigger=Jl,ne.EmailInput=Ju,ne.MultiSelect=Pa,ne.PasswordInput=Qu,ne.SearchInput=ed,ne.SelectOption=Ff,ne.SingleSelect=ka,ne.Tooltip=Ku,ne.TooltipContent=qu,ne.TooltipProvider=ks,ne.TooltipTrigger=Xu,ne.cn=re,Object.defineProperty(ne,Symbol.toStringTag,{value:"Module"})});
131
+ */const Do=pe("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/**
132
+ * @license lucide-react v0.542.0 - ISC
133
+ *
134
+ * This source code is licensed under the ISC license.
135
+ * See the LICENSE file in the root directory of this source tree.
136
+ */const Lo=pe("user-round",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);/**
137
+ * @license lucide-react v0.542.0 - ISC
138
+ *
139
+ * This source code is licensed under the ISC license.
140
+ * See the LICENSE file in the root directory of this source tree.
141
+ */const $o=pe("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function mc({...e}){return p.jsx(To,{"data-slot":"dialog",...e})}function gc({...e}){return p.jsx(Ql,{"data-slot":"dialog-trigger",...e})}function Fo({...e}){return p.jsx(_o,{"data-slot":"dialog-portal",...e})}function hc({...e}){return p.jsx(Io,{"data-slot":"dialog-close",...e})}function zo({className:e,...t}){return p.jsx(No,{"data-slot":"dialog-overlay",className:re("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function vc({className:e,children:t,showCloseButton:n=!0,...r}){return p.jsxs(Fo,{"data-slot":"dialog-portal",children:[p.jsx(zo,{}),p.jsxs(Oo,{"data-slot":"dialog-content",className:re("bg-background bg-white 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border border-none p-6 shadow-lg duration-200 sm:max-w-lg",e),...r,children:[t,n&&p.jsxs(Io,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[p.jsx($o,{}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function xc({className:e,...t}){return p.jsx("div",{"data-slot":"dialog-header",className:re("flex flex-col gap-2 text-center sm:text-left",e),...t})}function bc({className:e,...t}){return p.jsx("div",{"data-slot":"dialog-footer",className:re("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function yc({className:e,...t}){return p.jsx(ec,{"data-slot":"dialog-title",className:re("text-lg leading-none font-semibold ",e),...t})}function wc({className:e,...t}){return p.jsx(tc,{"data-slot":"dialog-description",className:re("text-muted-foreground text-sm",e),...t})}const Sc=Pe("inline-flex items-center justify-center rounded-full font-medium w-fit whitespace-nowrap shrink-0 gap-1 text-sm",{variants:{variant:{primary:"bg-tag-light-blue text-tag-dark-blue border-tag-light-blue",neutral:"bg-tag-light-gray text-tag-dark-gray border-tag-light-gray",warning:"bg-tag-light-brown text-tag-dark-brown border-tag-stroke-warning-border",success:"bg-tag-light-green text-tag-dark-green border-tag-stroke-success-border",error:"bg-tag-light-red-light text-tag-dark-red-dark border-tag-stroke-error-border",secondary:"bg-tag-light-ice-blue text-tag-dark-ice-blue border-tag-stroke-dark-border"},type:{filled:"border-0",outline:"border bg-transparent"},size:{md:"px-3 py-0.5 text-sm"}},defaultVariants:{variant:"primary",type:"filled",size:"md"}});function Vo({className:e,variant:t,type:n="filled",asChild:r=!1,children:o,...s}){const a=r?fn:"span";return p.jsx(a,{"data-slot":"badge",className:re(Sc({variant:t,type:n}),e),...s,children:o})}const Cc=["top","right","bottom","left"],Ne=Math.min,ce=Math.max,Wt=Math.round,Ht=Math.floor,xe=e=>({x:e,y:e}),Ec={left:"right",right:"left",bottom:"top",top:"bottom"},kc={start:"end",end:"start"};function jn(e,t,n){return ce(e,Ne(t,n))}function Ee(e,t){return typeof e=="function"?e(t):e}function ke(e){return e.split("-")[0]}function Qe(e){return e.split("-")[1]}function Mn(e){return e==="x"?"y":"x"}function Dn(e){return e==="y"?"height":"width"}const Rc=new Set(["top","bottom"]);function be(e){return Rc.has(ke(e))?"y":"x"}function Ln(e){return Mn(be(e))}function Pc(e,t,n){n===void 0&&(n=!1);const r=Qe(e),o=Ln(e),s=Dn(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=Ut(a)),[a,Ut(a)]}function Ac(e){const t=Ut(e);return[$n(e),t,$n(t)]}function $n(e){return e.replace(/start|end/g,t=>kc[t])}const Bo=["left","right"],Wo=["right","left"],Tc=["top","bottom"],_c=["bottom","top"];function Nc(e,t,n){switch(e){case"top":case"bottom":return n?t?Wo:Bo:t?Bo:Wo;case"left":case"right":return t?Tc:_c;default:return[]}}function Oc(e,t,n,r){const o=Qe(e);let s=Nc(ke(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map($n)))),s}function Ut(e){return e.replace(/left|right|bottom|top/g,t=>Ec[t])}function Ic(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ho(e){return typeof e!="number"?Ic(e):{top:e,right:e,bottom:e,left:e}}function Gt(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 Uo(e,t,n){let{reference:r,floating:o}=e;const s=be(t),a=Ln(t),i=Dn(a),c=ke(t),u=s==="y",f=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,h=r[i]/2-o[i]/2;let g;switch(c){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:d};break;case"left":g={x:r.x-o.width,y:d};break;default:g={x:r.x,y:r.y}}switch(Qe(t)){case"start":g[a]-=h*(n&&u?-1:1);break;case"end":g[a]+=h*(n&&u?-1:1);break}return g}const jc=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,i=s.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:d}=Uo(u,r,c),h=r,g={},v=0;for(let m=0;m<i.length;m++){const{name:x,fn:y}=i[m],{x:b,y:w,data:E,reset:R}=await y({x:f,y:d,initialPlacement:r,placement:h,strategy:o,middlewareData:g,rects:u,platform:a,elements:{reference:e,floating:t}});f=b??f,d=w??d,g={...g,[x]:{...g[x],...E}},R&&v<=50&&(v++,typeof R=="object"&&(R.placement&&(h=R.placement),R.rects&&(u=R.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):R.rects),{x:f,y:d}=Uo(u,h,c)),m=-1)}return{x:f,y:d,placement:h,strategy:o,middlewareData:g}};async function gt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:a,elements:i,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:h=!1,padding:g=0}=Ee(t,e),v=Ho(g),x=i[h?d==="floating"?"reference":"floating":d],y=Gt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(x)))==null||n?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:u,rootBoundary:f,strategy:c})),b=d==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),E=await(s.isElement==null?void 0:s.isElement(w))?await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1}:{x:1,y:1},R=Gt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:b,offsetParent:w,strategy:c}):b);return{top:(y.top-R.top+v.top)/E.y,bottom:(R.bottom-y.bottom+v.bottom)/E.y,left:(y.left-R.left+v.left)/E.x,right:(R.right-y.right+v.right)/E.x}}const Mc=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:i,middlewareData:c}=t,{element:u,padding:f=0}=Ee(e,t)||{};if(u==null)return{};const d=Ho(f),h={x:n,y:r},g=Ln(o),v=Dn(g),m=await a.getDimensions(u),x=g==="y",y=x?"top":"left",b=x?"bottom":"right",w=x?"clientHeight":"clientWidth",E=s.reference[v]+s.reference[g]-h[g]-s.floating[v],R=h[g]-s.reference[g],_=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let P=_?_[w]:0;(!P||!await(a.isElement==null?void 0:a.isElement(_)))&&(P=i.floating[w]||s.floating[v]);const T=E/2-R/2,V=P/2-m[v]/2-1,Y=Ne(d[y],V),Z=Ne(d[b],V),q=Y,J=P-m[v]-Z,F=P/2-m[v]/2+T,K=jn(q,F,J),$=!c.arrow&&Qe(o)!=null&&F!==K&&s.reference[v]/2-(F<q?Y:Z)-m[v]/2<0,z=$?F<q?F-q:F-J:0;return{[g]:h[g]+z,data:{[g]:K,centerOffset:F-K-z,...$&&{alignmentOffset:z}},reset:$}}}),Dc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:a,initialPlacement:i,platform:c,elements:u}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...x}=Ee(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=ke(o),b=be(i),w=ke(i)===i,E=await(c.isRTL==null?void 0:c.isRTL(u.floating)),R=h||(w||!m?[Ut(i)]:Ac(i)),_=v!=="none";!h&&_&&R.push(...Oc(i,m,v,E));const P=[i,...R],T=await gt(t,x),V=[];let Y=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&V.push(T[y]),d){const F=Pc(o,a,E);V.push(T[F[0]],T[F[1]])}if(Y=[...Y,{placement:o,overflows:V}],!V.every(F=>F<=0)){var Z,q;const F=(((Z=s.flip)==null?void 0:Z.index)||0)+1,K=P[F];if(K&&(!(d==="alignment"?b!==be(K):!1)||Y.every(k=>be(k.placement)===b?k.overflows[0]>0:!0)))return{data:{index:F,overflows:Y},reset:{placement:K}};let $=(q=Y.filter(z=>z.overflows[0]<=0).sort((z,k)=>z.overflows[1]-k.overflows[1])[0])==null?void 0:q.placement;if(!$)switch(g){case"bestFit":{var J;const z=(J=Y.filter(k=>{if(_){const ee=be(k.placement);return ee===b||ee==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(ee=>ee>0).reduce((ee,C)=>ee+C,0)]).sort((k,ee)=>k[1]-ee[1])[0])==null?void 0:J[0];z&&($=z);break}case"initialPlacement":$=i;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function Go(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Yo(e){return Cc.some(t=>e[t]>=0)}const Lc=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Ee(e,t);switch(r){case"referenceHidden":{const s=await gt(t,{...o,elementContext:"reference"}),a=Go(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Yo(a)}}}case"escaped":{const s=await gt(t,{...o,altBoundary:!0}),a=Go(s,n.floating);return{data:{escapedOffsets:a,escaped:Yo(a)}}}default:return{}}}}},Ko=new Set(["left","top"]);async function $c(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=ke(n),i=Qe(n),c=be(n)==="y",u=Ko.has(a)?-1:1,f=s&&c?-1:1,d=Ee(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return i&&typeof v=="number"&&(g=i==="end"?v*-1:v),c?{x:g*f,y:h*u}:{x:h*u,y:g*f}}const Fc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:i}=t,c=await $c(t,e);return a===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:a}}}}},zc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:i={fn:x=>{let{x:y,y:b}=x;return{x:y,y:b}}},...c}=Ee(e,t),u={x:n,y:r},f=await gt(t,c),d=be(ke(o)),h=Mn(d);let g=u[h],v=u[d];if(s){const x=h==="y"?"top":"left",y=h==="y"?"bottom":"right",b=g+f[x],w=g-f[y];g=jn(b,g,w)}if(a){const x=d==="y"?"top":"left",y=d==="y"?"bottom":"right",b=v+f[x],w=v-f[y];v=jn(b,v,w)}const m=i.fn({...t,[h]:g,[d]:v});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[h]:s,[d]:a}}}}}},Vc=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:i=0,mainAxis:c=!0,crossAxis:u=!0}=Ee(e,t),f={x:n,y:r},d=be(o),h=Mn(d);let g=f[h],v=f[d];const m=Ee(i,t),x=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const w=h==="y"?"height":"width",E=s.reference[h]-s.floating[w]+x.mainAxis,R=s.reference[h]+s.reference[w]-x.mainAxis;g<E?g=E:g>R&&(g=R)}if(u){var y,b;const w=h==="y"?"width":"height",E=Ko.has(ke(o)),R=s.reference[d]-s.floating[w]+(E&&((y=a.offset)==null?void 0:y[d])||0)+(E?0:x.crossAxis),_=s.reference[d]+s.reference[w]+(E?0:((b=a.offset)==null?void 0:b[d])||0)-(E?x.crossAxis:0);v<R?v=R:v>_&&(v=_)}return{[h]:g,[d]:v}}}},Bc=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:a,elements:i}=t,{apply:c=()=>{},...u}=Ee(e,t),f=await gt(t,u),d=ke(o),h=Qe(o),g=be(o)==="y",{width:v,height:m}=s.floating;let x,y;d==="top"||d==="bottom"?(x=d,y=h===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(y=d,x=h==="end"?"top":"bottom");const b=m-f.top-f.bottom,w=v-f.left-f.right,E=Ne(m-f[x],b),R=Ne(v-f[y],w),_=!t.middlewareData.shift;let P=E,T=R;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=b),_&&!h){const Y=ce(f.left,0),Z=ce(f.right,0),q=ce(f.top,0),J=ce(f.bottom,0);g?T=v-2*(Y!==0||Z!==0?Y+Z:ce(f.left,f.right)):P=m-2*(q!==0||J!==0?q+J:ce(f.top,f.bottom))}await c({...t,availableWidth:T,availableHeight:P});const V=await a.getDimensions(i.floating);return v!==V.width||m!==V.height?{reset:{rects:!0}}:{}}}};function Yt(){return typeof window<"u"}function et(e){return qo(e)?(e.nodeName||"").toLowerCase():"#document"}function ue(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ye(e){var t;return(t=(qo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function qo(e){return Yt()?e instanceof Node||e instanceof ue(e).Node:!1}function me(e){return Yt()?e instanceof Element||e instanceof ue(e).Element:!1}function we(e){return Yt()?e instanceof HTMLElement||e instanceof ue(e).HTMLElement:!1}function Xo(e){return!Yt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ue(e).ShadowRoot}const Wc=new Set(["inline","contents"]);function ht(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ge(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Wc.has(o)}const Hc=new Set(["table","td","th"]);function Uc(e){return Hc.has(et(e))}const Gc=[":popover-open",":modal"];function Kt(e){return Gc.some(t=>{try{return e.matches(t)}catch{return!1}})}const Yc=["transform","translate","scale","rotate","perspective"],Kc=["transform","translate","scale","rotate","perspective","filter"],qc=["paint","layout","strict","content"];function Fn(e){const t=zn(),n=me(e)?ge(e):e;return Yc.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)||Kc.some(r=>(n.willChange||"").includes(r))||qc.some(r=>(n.contain||"").includes(r))}function Xc(e){let t=Oe(e);for(;we(t)&&!tt(t);){if(Fn(t))return t;if(Kt(t))return null;t=Oe(t)}return null}function zn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Zc=new Set(["html","body","#document"]);function tt(e){return Zc.has(et(e))}function ge(e){return ue(e).getComputedStyle(e)}function qt(e){return me(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Oe(e){if(et(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Xo(e)&&e.host||ye(e);return Xo(t)?t.host:t}function Zo(e){const t=Oe(e);return tt(t)?e.ownerDocument?e.ownerDocument.body:e.body:we(t)&&ht(t)?t:Zo(t)}function vt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Zo(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=ue(o);if(s){const i=Vn(a);return t.concat(a,a.visualViewport||[],ht(o)?o:[],i&&n?vt(i):[])}return t.concat(o,vt(o,[],n))}function Vn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Jo(e){const t=ge(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=we(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,i=Wt(n)!==s||Wt(r)!==a;return i&&(n=s,r=a),{width:n,height:r,$:i}}function Bn(e){return me(e)?e:e.contextElement}function nt(e){const t=Bn(e);if(!we(t))return xe(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Jo(t);let a=(s?Wt(n.width):n.width)/r,i=(s?Wt(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const Jc=xe(0);function Qo(e){const t=ue(e);return!zn()||!t.visualViewport?Jc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Qc(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ue(e)?!1:t}function Be(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Bn(e);let a=xe(1);t&&(r?me(r)&&(a=nt(r)):a=nt(e));const i=Qc(s,n,r)?Qo(s):xe(0);let c=(o.left+i.x)/a.x,u=(o.top+i.y)/a.y,f=o.width/a.x,d=o.height/a.y;if(s){const h=ue(s),g=r&&me(r)?ue(r):r;let v=h,m=Vn(v);for(;m&&r&&g!==v;){const x=nt(m),y=m.getBoundingClientRect(),b=ge(m),w=y.left+(m.clientLeft+parseFloat(b.paddingLeft))*x.x,E=y.top+(m.clientTop+parseFloat(b.paddingTop))*x.y;c*=x.x,u*=x.y,f*=x.x,d*=x.y,c+=w,u+=E,v=ue(m),m=Vn(v)}}return Gt({width:f,height:d,x:c,y:u})}function Xt(e,t){const n=qt(e).scrollLeft;return t?t.left+n:Be(ye(e)).left+n}function es(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Xt(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function eu(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=ye(r),i=t?Kt(t.floating):!1;if(r===a||i&&s)return n;let c={scrollLeft:0,scrollTop:0},u=xe(1);const f=xe(0),d=we(r);if((d||!d&&!s)&&((et(r)!=="body"||ht(a))&&(c=qt(r)),we(r))){const g=Be(r);u=nt(r),f.x=g.x+r.clientLeft,f.y=g.y+r.clientTop}const h=a&&!d&&!s?es(a,c):xe(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+f.x+h.x,y:n.y*u.y-c.scrollTop*u.y+f.y+h.y}}function tu(e){return Array.from(e.getClientRects())}function nu(e){const t=ye(e),n=qt(e),r=e.ownerDocument.body,o=ce(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=ce(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Xt(e);const i=-n.scrollTop;return ge(r).direction==="rtl"&&(a+=ce(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:i}}const ts=25;function ru(e,t){const n=ue(e),r=ye(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,i=0,c=0;if(o){s=o.width,a=o.height;const f=zn();(!f||f&&t==="fixed")&&(i=o.offsetLeft,c=o.offsetTop)}const u=Xt(r);if(u<=0){const f=r.ownerDocument,d=f.body,h=getComputedStyle(d),g=f.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,v=Math.abs(r.clientWidth-d.clientWidth-g);v<=ts&&(s-=v)}else u<=ts&&(s+=u);return{width:s,height:a,x:i,y:c}}const ou=new Set(["absolute","fixed"]);function su(e,t){const n=Be(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=we(e)?nt(e):xe(1),a=e.clientWidth*s.x,i=e.clientHeight*s.y,c=o*s.x,u=r*s.y;return{width:a,height:i,x:c,y:u}}function ns(e,t,n){let r;if(t==="viewport")r=ru(e,n);else if(t==="document")r=nu(ye(e));else if(me(t))r=su(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 Gt(r)}function rs(e,t){const n=Oe(e);return n===t||!me(n)||tt(n)?!1:ge(n).position==="fixed"||rs(n,t)}function au(e,t){const n=t.get(e);if(n)return n;let r=vt(e,[],!1).filter(i=>me(i)&&et(i)!=="body"),o=null;const s=ge(e).position==="fixed";let a=s?Oe(e):e;for(;me(a)&&!tt(a);){const i=ge(a),c=Fn(a);!c&&i.position==="fixed"&&(o=null),(s?!c&&!o:!c&&i.position==="static"&&!!o&&ou.has(o.position)||ht(a)&&!c&&rs(e,a))?r=r.filter(f=>f!==a):o=i,a=Oe(a)}return t.set(e,r),r}function iu(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Kt(t)?[]:au(t,this._c):[].concat(n),r],i=a[0],c=a.reduce((u,f)=>{const d=ns(t,f,o);return u.top=ce(d.top,u.top),u.right=Ne(d.right,u.right),u.bottom=Ne(d.bottom,u.bottom),u.left=ce(d.left,u.left),u},ns(t,i,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function lu(e){const{width:t,height:n}=Jo(e);return{width:t,height:n}}function cu(e,t,n){const r=we(t),o=ye(t),s=n==="fixed",a=Be(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const c=xe(0);function u(){c.x=Xt(o)}if(r||!r&&!s)if((et(t)!=="body"||ht(o))&&(i=qt(t)),r){const g=Be(t,!0,s,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else o&&u();s&&!r&&o&&u();const f=o&&!r&&!s?es(o,i):xe(0),d=a.left+i.scrollLeft-c.x-f.x,h=a.top+i.scrollTop-c.y-f.y;return{x:d,y:h,width:a.width,height:a.height}}function Wn(e){return ge(e).position==="static"}function os(e,t){if(!we(e)||ge(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ye(e)===n&&(n=n.ownerDocument.body),n}function ss(e,t){const n=ue(e);if(Kt(e))return n;if(!we(e)){let o=Oe(e);for(;o&&!tt(o);){if(me(o)&&!Wn(o))return o;o=Oe(o)}return n}let r=os(e,t);for(;r&&Uc(r)&&Wn(r);)r=os(r,t);return r&&tt(r)&&Wn(r)&&!Fn(r)?n:r||Xc(e)||n}const uu=async function(e){const t=this.getOffsetParent||ss,n=this.getDimensions,r=await n(e.floating);return{reference:cu(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function du(e){return ge(e).direction==="rtl"}const fu={convertOffsetParentRelativeRectToViewportRelativeRect:eu,getDocumentElement:ye,getClippingRect:iu,getOffsetParent:ss,getElementRects:uu,getClientRects:tu,getDimensions:lu,getScale:nt,isElement:me,isRTL:du};function as(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function pu(e,t){let n=null,r;const o=ye(e);function s(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function a(i,c){i===void 0&&(i=!1),c===void 0&&(c=1),s();const u=e.getBoundingClientRect(),{left:f,top:d,width:h,height:g}=u;if(i||t(),!h||!g)return;const v=Ht(d),m=Ht(o.clientWidth-(f+h)),x=Ht(o.clientHeight-(d+g)),y=Ht(f),w={rootMargin:-v+"px "+-m+"px "+-x+"px "+-y+"px",threshold:ce(0,Ne(1,c))||1};let E=!0;function R(_){const P=_[0].intersectionRatio;if(P!==c){if(!E)return a();P?a(!1,P):r=setTimeout(()=>{a(!1,1e-7)},1e3)}P===1&&!as(u,e.getBoundingClientRect())&&a(),E=!1}try{n=new IntersectionObserver(R,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(R,w)}n.observe(e)}return a(!0),s}function mu(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=Bn(e),f=o||s?[...u?vt(u):[],...vt(t)]:[];f.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const d=u&&i?pu(u,n):null;let h=-1,g=null;a&&(g=new ResizeObserver(y=>{let[b]=y;b&&b.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),n()}),u&&!c&&g.observe(u),g.observe(t));let v,m=c?Be(e):null;c&&x();function x(){const y=Be(e);m&&!as(m,y)&&n(),m=y,v=requestAnimationFrame(x)}return n(),()=>{var y;f.forEach(b=>{o&&b.removeEventListener("scroll",n),s&&b.removeEventListener("resize",n)}),d==null||d(),(y=g)==null||y.disconnect(),g=null,c&&cancelAnimationFrame(v)}}const gu=Fc,hu=zc,vu=Dc,xu=Bc,bu=Lc,is=Mc,yu=Vc,wu=(e,t,n)=>{const r=new Map,o={platform:fu,...n},s={...o.platform,_c:r};return jc(e,t,{...o,platform:s})};var Su=typeof document<"u",Cu=function(){},Zt=Su?oe.useLayoutEffect:Cu;function Jt(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(!Jt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Jt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function ls(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function cs(e,t){const n=ls(e);return Math.round(t*n)/n}function Hn(e){const t=l.useRef(e);return Zt(()=>{t.current=e}),t}function Eu(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:i=!0,whileElementsMounted:c,open:u}=e,[f,d]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=l.useState(r);Jt(h,r)||g(r);const[v,m]=l.useState(null),[x,y]=l.useState(null),b=l.useCallback(k=>{k!==_.current&&(_.current=k,m(k))},[]),w=l.useCallback(k=>{k!==P.current&&(P.current=k,y(k))},[]),E=s||v,R=a||x,_=l.useRef(null),P=l.useRef(null),T=l.useRef(f),V=c!=null,Y=Hn(c),Z=Hn(o),q=Hn(u),J=l.useCallback(()=>{if(!_.current||!P.current)return;const k={placement:t,strategy:n,middleware:h};Z.current&&(k.platform=Z.current),wu(_.current,P.current,k).then(ee=>{const C={...ee,isPositioned:q.current!==!1};F.current&&!Jt(T.current,C)&&(T.current=C,At.flushSync(()=>{d(C)}))})},[h,t,n,Z,q]);Zt(()=>{u===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(k=>({...k,isPositioned:!1})))},[u]);const F=l.useRef(!1);Zt(()=>(F.current=!0,()=>{F.current=!1}),[]),Zt(()=>{if(E&&(_.current=E),R&&(P.current=R),E&&R){if(Y.current)return Y.current(E,R,J);J()}},[E,R,J,Y,V]);const K=l.useMemo(()=>({reference:_,floating:P,setReference:b,setFloating:w}),[b,w]),$=l.useMemo(()=>({reference:E,floating:R}),[E,R]),z=l.useMemo(()=>{const k={position:n,left:0,top:0};if(!$.floating)return k;const ee=cs($.floating,f.x),C=cs($.floating,f.y);return i?{...k,transform:"translate("+ee+"px, "+C+"px)",...ls($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ee,top:C}},[n,i,$.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:J,refs:K,elements:$,floatingStyles:z}),[f,J,K,$,z])}const ku=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?is({element:r.current,padding:o}).fn(n):{}:r?is({element:r,padding:o}).fn(n):{}}}},Ru=(e,t)=>({...gu(e),options:[e,t]}),Pu=(e,t)=>({...hu(e),options:[e,t]}),Au=(e,t)=>({...yu(e),options:[e,t]}),Tu=(e,t)=>({...vu(e),options:[e,t]}),_u=(e,t)=>({...xu(e),options:[e,t]}),Nu=(e,t)=>({...bu(e),options:[e,t]}),Ou=(e,t)=>({...ku(e),options:[e,t]});var Iu="Arrow",us=l.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return p.jsx(H.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});us.displayName=Iu;var ju=us;function Mu(e){const[t,n]=l.useState(void 0);return ie(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,i;if("borderBoxSize"in s){const c=s.borderBoxSize,u=Array.isArray(c)?c[0]:c;a=u.inlineSize,i=u.blockSize}else a=e.offsetWidth,i=e.offsetHeight;n({width:a,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Un="Popper",[ds,rt]=ze(Un),[Du,fs]=ds(Un),ps=e=>{const{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return p.jsx(Du,{scope:t,anchor:r,onAnchorChange:o,children:n})};ps.displayName=Un;var ms="PopperAnchor",gs=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=fs(ms,n),a=l.useRef(null),i=se(t,a),c=l.useRef(null);return l.useEffect(()=>{const u=c.current;c.current=(r==null?void 0:r.current)||a.current,u!==c.current&&s.onAnchorChange(c.current)}),r?null:p.jsx(H.div,{...o,ref:i})});gs.displayName=ms;var Gn="PopperContent",[Lu,$u]=ds(Gn),hs=l.forwardRef((e,t)=>{var A,D,B,U,te,ne;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:i=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:g="optimized",onPlaced:v,...m}=e,x=fs(Gn,n),[y,b]=l.useState(null),w=se(t,de=>b(de)),[E,R]=l.useState(null),_=Mu(E),P=(_==null?void 0:_.width)??0,T=(_==null?void 0:_.height)??0,V=r+(s!=="center"?"-"+s:""),Y=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},Z=Array.isArray(u)?u:[u],q=Z.length>0,J={padding:Y,boundary:Z.filter(zu),altBoundary:q},{refs:F,floatingStyles:K,placement:$,isPositioned:z,middlewareData:k}=Eu({strategy:"fixed",placement:V,whileElementsMounted:(...de)=>mu(...de,{animationFrame:g==="always"}),elements:{reference:x.anchor},middleware:[Ru({mainAxis:o+T,alignmentAxis:a}),c&&Pu({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Au():void 0,...J}),c&&Tu({...J}),_u({...J,apply:({elements:de,rects:Se,availableWidth:kt,availableHeight:Rt})=>{const{width:Pt,height:wp}=Se.reference,un=de.floating.style;un.setProperty("--radix-popper-available-width",`${kt}px`),un.setProperty("--radix-popper-available-height",`${Rt}px`),un.setProperty("--radix-popper-anchor-width",`${Pt}px`),un.setProperty("--radix-popper-anchor-height",`${wp}px`)}}),E&&Ou({element:E,padding:i}),Vu({arrowWidth:P,arrowHeight:T}),h&&Nu({strategy:"referenceHidden",...J})]}),[ee,C]=bs($),L=Ae(v);ie(()=>{z&&(L==null||L())},[z,L]);const S=(A=k.arrow)==null?void 0:A.x,N=(D=k.arrow)==null?void 0:D.y,M=((B=k.arrow)==null?void 0:B.centerOffset)!==0,[O,W]=l.useState();return ie(()=>{y&&W(window.getComputedStyle(y).zIndex)},[y]),p.jsx("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:z?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:O,"--radix-popper-transform-origin":[(U=k.transformOrigin)==null?void 0:U.x,(te=k.transformOrigin)==null?void 0:te.y].join(" "),...((ne=k.hide)==null?void 0:ne.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(Lu,{scope:n,placedSide:ee,onArrowChange:R,arrowX:S,arrowY:N,shouldHideArrow:M,children:p.jsx(H.div,{"data-side":ee,"data-align":C,...m,ref:w,style:{...m.style,animation:z?void 0:"none"}})})})});hs.displayName=Gn;var vs="PopperArrow",Fu={top:"bottom",right:"left",bottom:"top",left:"right"},xs=l.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=$u(vs,r),a=Fu[s.placedSide];return p.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:p.jsx(ju,{...o,ref:n,style:{...o.style,display:"block"}})})});xs.displayName=vs;function zu(e){return e!==null}var Vu=e=>({name:"transformOrigin",options:e,fn(t){var x,y,b;const{placement:n,rects:r,middlewareData:o}=t,a=((x=o.arrow)==null?void 0:x.centerOffset)!==0,i=a?0:e.arrowWidth,c=a?0:e.arrowHeight,[u,f]=bs(n),d={start:"0%",center:"50%",end:"100%"}[f],h=(((y=o.arrow)==null?void 0:y.x)??0)+i/2,g=(((b=o.arrow)==null?void 0:b.y)??0)+c/2;let v="",m="";return u==="bottom"?(v=a?d:`${h}px`,m=`${-c}px`):u==="top"?(v=a?d:`${h}px`,m=`${r.floating.height+c}px`):u==="right"?(v=`${-c}px`,m=a?d:`${g}px`):u==="left"&&(v=`${r.floating.width+c}px`,m=a?d:`${g}px`),{data:{x:v,y:m}}}});function bs(e){const[t,n="center"]=e.split("-");return[t,n]}var Yn=ps,Qt=gs,Kn=hs,qn=xs,ys=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"}),Bu="VisuallyHidden",ws=l.forwardRef((e,t)=>p.jsx(H.span,{...e,ref:t,style:{...ys,...e.style}}));ws.displayName=Bu;var Wu=ws,[en,$p]=ze("Tooltip",[rt]),tn=rt(),Ss="TooltipProvider",Hu=700,Xn="tooltip.open",[Uu,Zn]=en(Ss),Cs=e=>{const{__scopeTooltip:t,delayDuration:n=Hu,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,a=l.useRef(!0),i=l.useRef(!1),c=l.useRef(0);return l.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),p.jsx(Uu,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:l.useCallback(()=>{window.clearTimeout(c.current),a.current=!1},[]),onClose:l.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:l.useCallback(u=>{i.current=u},[]),disableHoverableContent:o,children:s})};Cs.displayName=Ss;var xt="Tooltip",[Gu,bt]=en(xt),Es=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:a,delayDuration:i}=e,c=Zn(xt,e.__scopeTooltip),u=tn(t),[f,d]=l.useState(null),h=le(),g=l.useRef(0),v=a??c.disableHoverableContent,m=i??c.delayDuration,x=l.useRef(!1),[y,b]=ft({prop:r,defaultProp:o??!1,onChange:P=>{P?(c.onOpen(),document.dispatchEvent(new CustomEvent(Xn))):c.onClose(),s==null||s(P)},caller:xt}),w=l.useMemo(()=>y?x.current?"delayed-open":"instant-open":"closed",[y]),E=l.useCallback(()=>{window.clearTimeout(g.current),g.current=0,x.current=!1,b(!0)},[b]),R=l.useCallback(()=>{window.clearTimeout(g.current),g.current=0,b(!1)},[b]),_=l.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{x.current=!0,b(!0),g.current=0},m)},[m,b]);return l.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),p.jsx(Yn,{...u,children:p.jsx(Gu,{scope:t,contentId:h,open:y,stateAttribute:w,trigger:f,onTriggerChange:d,onTriggerEnter:l.useCallback(()=>{c.isOpenDelayedRef.current?_():E()},[c.isOpenDelayedRef,_,E]),onTriggerLeave:l.useCallback(()=>{v?R():(window.clearTimeout(g.current),g.current=0)},[R,v]),onOpen:E,onClose:R,disableHoverableContent:v,children:n})})};Es.displayName=xt;var Jn="TooltipTrigger",ks=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=bt(Jn,n),s=Zn(Jn,n),a=tn(n),i=l.useRef(null),c=se(t,i,o.onTriggerChange),u=l.useRef(!1),f=l.useRef(!1),d=l.useCallback(()=>u.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),p.jsx(Qt,{asChild:!0,...a,children:p.jsx(H.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:X(e.onPointerMove,h=>{h.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:X(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:X(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:X(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:X(e.onBlur,o.onClose),onClick:X(e.onClick,o.onClose)})})});ks.displayName=Jn;var Qn="TooltipPortal",[Yu,Ku]=en(Qn,{forceMount:void 0}),Rs=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=bt(Qn,t);return p.jsx(Yu,{scope:t,forceMount:n,children:p.jsx(_e,{present:n||s.open,children:p.jsx(mt,{asChild:!0,container:o,children:r})})})};Rs.displayName=Qn;var ot="TooltipContent",Ps=l.forwardRef((e,t)=>{const n=Ku(ot,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,a=bt(ot,e.__scopeTooltip);return p.jsx(_e,{present:r||a.open,children:a.disableHoverableContent?p.jsx(As,{side:o,...s,ref:t}):p.jsx(qu,{side:o,...s,ref:t})})}),qu=l.forwardRef((e,t)=>{const n=bt(ot,e.__scopeTooltip),r=Zn(ot,e.__scopeTooltip),o=l.useRef(null),s=se(t,o),[a,i]=l.useState(null),{trigger:c,onClose:u}=n,f=o.current,{onPointerInTransitChange:d}=r,h=l.useCallback(()=>{i(null),d(!1)},[d]),g=l.useCallback((v,m)=>{const x=v.currentTarget,y={x:v.clientX,y:v.clientY},b=Qu(y,x.getBoundingClientRect()),w=ed(y,b),E=td(m.getBoundingClientRect()),R=rd([...w,...E]);i(R),d(!0)},[d]);return l.useEffect(()=>()=>h(),[h]),l.useEffect(()=>{if(c&&f){const v=x=>g(x,f),m=x=>g(x,c);return c.addEventListener("pointerleave",v),f.addEventListener("pointerleave",m),()=>{c.removeEventListener("pointerleave",v),f.removeEventListener("pointerleave",m)}}},[c,f,g,h]),l.useEffect(()=>{if(a){const v=m=>{const x=m.target,y={x:m.clientX,y:m.clientY},b=(c==null?void 0:c.contains(x))||(f==null?void 0:f.contains(x)),w=!nd(y,a);b?h():w&&(h(),u())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[c,f,a,u,h]),p.jsx(As,{...e,ref:s})}),[Xu,Zu]=en(xt,{isInside:!1}),Ju=Ga("TooltipContent"),As=l.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...i}=e,c=bt(ot,n),u=tn(n),{onClose:f}=c;return l.useEffect(()=>(document.addEventListener(Xn,f),()=>document.removeEventListener(Xn,f)),[f]),l.useEffect(()=>{if(c.trigger){const d=h=>{const g=h.target;g!=null&&g.contains(c.trigger)&&f()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[c.trigger,f]),p.jsx(pt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:d=>d.preventDefault(),onDismiss:f,children:p.jsxs(Kn,{"data-state":c.stateAttribute,...u,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[p.jsx(Ju,{children:r}),p.jsx(Xu,{scope:n,isInside:!0,children:p.jsx(Wu,{id:c.contentId,role:"tooltip",children:o||r})})]})})});Ps.displayName=ot;var Ts="TooltipArrow",_s=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=tn(n);return Zu(Ts,n).isInside?null:p.jsx(qn,{...o,...r,ref:t})});_s.displayName=Ts;function Qu(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function ed(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 td(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 nd(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const i=t[s],c=t[a],u=i.x,f=i.y,d=c.x,h=c.y;f>r!=h>r&&n<(d-u)*(r-f)/(h-f)+u&&(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),od(t)}function od(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],a=n[n.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var sd=Cs,ad=Es,id=ks,ld=Rs,cd=Ps,ud=_s;function Ns({delayDuration:e=0,...t}){return p.jsx(sd,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function dd({...e}){return p.jsx(Ns,{children:p.jsx(ad,{"data-slot":"tooltip",...e})})}function fd({...e}){return p.jsx(id,{"data-slot":"tooltip-trigger",...e})}function pd({className:e,sideOffset:t=0,children:n,...r}){return p.jsx(ld,{children:p.jsxs(cd,{"data-slot":"tooltip-content",sideOffset:t,className:re("bg-neutral-black-1 text-white 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 z-50 max-w-[362px]! origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs",e),...r,children:[n,p.jsx(ud,{className:"bg-neutral-black-1 fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const md=Pe("flex items-center rounded-lg border transition-colors p-2",{variants:{size:{small:"h-6 w-80 text-sm px-2",medium:"h-12 w-92 text-base px-3"},status:{default:"border-neutral-black-4 text-foreground focus-within:ring-2 focus-within:ring-neutral-black-2",error:"border-primary-2 text-primary-1 focus-within:ring-2 focus-within:ring-primary-2",disabled:"border-neutral-black-4 bg-neutral-black-4 text-neutral-black-2 cursor-not-allowed"}},defaultVariants:{size:"medium",status:"default"}}),er=({label:e,helperText:t,errorText:n,leftIcon:r,rightIcon:o,size:s="medium",className:a,disabled:i=!1,...c})=>p.jsxs("div",{className:"flex flex-col gap-1",children:[e&&p.jsx("label",{className:"text-sm font-normal text-neutral-black-1",children:e}),p.jsxs("div",{className:re(md({size:s,status:n?"error":i?"disabled":"default"}),a),children:[r&&p.jsx("span",{className:"mr-2 flex-shrink-0",children:r}),p.jsx("input",{disabled:i,className:re("flex-1 bg-transparent outline-none placeholder:text-neutral-black-2 disabled:cursor-not-allowed disabled:opacity-50"),...c}),o&&p.jsx("span",{className:"ml-2 flex-shrink-0",children:o})]}),(t||n)&&p.jsx("p",{className:re("text-xs mt-1",n?"text-primary-1":"text-neutral-black-2"),children:n||t})]}),gd=e=>p.jsx(er,{type:"email",inputMode:"email",...e}),hd=({showForgot:e=!1,onValidityChange:t,customValidator:n,...r})=>{const[o,s]=oe.useState(!1),[a,i]=oe.useState(""),u=n?n(a):(d=>[{label:"minimum 8 characters",isValid:d.length>=8},{label:"one uppercase character",isValid:/[A-Z]/.test(d)},{label:"one lowercase character",isValid:/[a-z]/.test(d)},{label:"one special character",isValid:/[^A-Za-z0-9]/.test(d)},{label:"one number",isValid:/\d/.test(d)}])(a),f=u.every(d=>d.isValid);return oe.useEffect(()=>{t&&t(f,u)},[a,f,u,t]),p.jsx("div",{className:"flex flex-col gap-2",children:p.jsxs("div",{className:"flex flex-col gap-2 w-full max-w-sm",children:[p.jsxs("div",{className:"flex justify-between items-center",children:[p.jsx("label",{className:"text-sm font-medium text-neutral-0",children:"Password"}),e&&p.jsx("button",{type:"button",className:"text-xs text-neutral-0 hover:underline",children:"Forgot Password?"})]}),p.jsx(er,{type:o?"text":"password",value:a,onChange:d=>i(d.target.value),...r,rightIcon:p.jsx("button",{type:"button",onClick:()=>s(!o),className:"p-1 text-neutral-0 hover:text-text-neutral-0",children:o?p.jsx(fc,{size:18,className:"text-neutral-black-2"}):p.jsx(pc,{size:18,className:"text-neutral-black-2"})})}),p.jsx("div",{className:"grid grid-cols-2 gap-y-1 text-xs mt-3",children:u.map((d,h)=>p.jsxs("div",{className:"flex items-center gap-1",children:[d.isValid?p.jsx(uc,{size:14,className:"text-success-d"}):p.jsx(dc,{size:14,className:"text-stroke"}),p.jsx("span",{className:d.isValid?"text-success-d":"text-input",children:d.label})]},h))})]})})},vd=e=>p.jsx(er,{type:"search",leftIcon:p.jsx(Do,{"data-testid":"search-icon",className:"w-4 h-4 text-input-placeholder"}),placeholder:"Search...",...e});function Os(e,[t,n]){return Math.min(n,Math.max(t,e))}function xd(e){const t=e+"CollectionProvider",[n,r]=ze(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=m=>{const{scope:x,children:y}=m,b=oe.useRef(null),w=oe.useRef(new Map).current;return p.jsx(o,{scope:x,itemMap:w,collectionRef:b,children:y})};a.displayName=t;const i=e+"CollectionSlot",c=$e(i),u=oe.forwardRef((m,x)=>{const{scope:y,children:b}=m,w=s(i,y),E=se(x,w.collectionRef);return p.jsx(c,{ref:E,children:b})});u.displayName=i;const f=e+"CollectionItemSlot",d="data-radix-collection-item",h=$e(f),g=oe.forwardRef((m,x)=>{const{scope:y,children:b,...w}=m,E=oe.useRef(null),R=se(x,E),_=s(f,y);return oe.useEffect(()=>(_.itemMap.set(E,{ref:E,...w}),()=>void _.itemMap.delete(E))),p.jsx(h,{[d]:"",ref:R,children:b})});g.displayName=f;function v(m){const x=s(e+"CollectionConsumer",m);return oe.useCallback(()=>{const b=x.collectionRef.current;if(!b)return[];const w=Array.from(b.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((_,P)=>w.indexOf(_.ref.current)-w.indexOf(P.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:a,Slot:u,ItemSlot:g},v,r]}var bd=l.createContext(void 0);function yd(e){const t=l.useContext(bd);return e||t||"ltr"}function wd(e){const t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Sd=[" ","Enter","ArrowUp","ArrowDown"],Cd=[" ","Enter"],We="Select",[nn,rn,Ed]=xd(We),[st,Fp]=ze(We,[Ed,rt]),on=rt(),[kd,Ie]=st(We),[Rd,Pd]=st(We),Is=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:a,defaultValue:i,onValueChange:c,dir:u,name:f,autoComplete:d,disabled:h,required:g,form:v}=e,m=on(t),[x,y]=l.useState(null),[b,w]=l.useState(null),[E,R]=l.useState(!1),_=yd(u),[P,T]=ft({prop:r,defaultProp:o??!1,onChange:s,caller:We}),[V,Y]=ft({prop:a,defaultProp:i,onChange:c,caller:We}),Z=l.useRef(null),q=x?v||!!x.closest("form"):!0,[J,F]=l.useState(new Set),K=Array.from(J).map($=>$.props.value).join(";");return p.jsx(Yn,{...m,children:p.jsxs(kd,{required:g,scope:t,trigger:x,onTriggerChange:y,valueNode:b,onValueNodeChange:w,valueNodeHasChildren:E,onValueNodeHasChildrenChange:R,contentId:le(),value:V,onValueChange:Y,open:P,onOpenChange:T,dir:_,triggerPointerDownPosRef:Z,disabled:h,children:[p.jsx(nn.Provider,{scope:t,children:p.jsx(Rd,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback($=>{F(z=>new Set(z).add($))},[]),onNativeOptionRemove:l.useCallback($=>{F(z=>{const k=new Set(z);return k.delete($),k})},[]),children:n})}),q?p.jsxs(ra,{"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:d,value:V,onChange:$=>Y($.target.value),disabled:h,form:v,children:[V===void 0?p.jsx("option",{value:""}):null,Array.from(J)]},K):null]})})};Is.displayName=We;var js="SelectTrigger",Ms=l.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=on(n),a=Ie(js,n),i=a.disabled||r,c=se(t,a.onTriggerChange),u=rn(n),f=l.useRef("touch"),[d,h,g]=sa(m=>{const x=u().filter(w=>!w.disabled),y=x.find(w=>w.value===a.value),b=aa(x,m,y);b!==void 0&&a.onValueChange(b.value)}),v=m=>{i||(a.onOpenChange(!0),g()),m&&(a.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return p.jsx(Qt,{asChild:!0,...s,children:p.jsx(H.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":oa(a.value)?"":void 0,...o,ref:c,onClick:X(o.onClick,m=>{m.currentTarget.focus(),f.current!=="mouse"&&v(m)}),onPointerDown:X(o.onPointerDown,m=>{f.current=m.pointerType;const x=m.target;x.hasPointerCapture(m.pointerId)&&x.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(v(m),m.preventDefault())}),onKeyDown:X(o.onKeyDown,m=>{const x=d.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&h(m.key),!(x&&m.key===" ")&&Sd.includes(m.key)&&(v(),m.preventDefault())})})})});Ms.displayName=js;var Ds="SelectValue",Ls=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:a="",...i}=e,c=Ie(Ds,n),{onValueNodeHasChildrenChange:u}=c,f=s!==void 0,d=se(t,c.onValueNodeChange);return ie(()=>{u(f)},[u,f]),p.jsx(H.span,{...i,ref:d,style:{pointerEvents:"none"},children:oa(c.value)?p.jsx(p.Fragment,{children:a}):s})});Ls.displayName=Ds;var Ad="SelectIcon",$s=l.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return p.jsx(H.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});$s.displayName=Ad;var Td="SelectPortal",Fs=e=>p.jsx(mt,{asChild:!0,...e});Fs.displayName=Td;var He="SelectContent",zs=l.forwardRef((e,t)=>{const n=Ie(He,e.__scopeSelect),[r,o]=l.useState();if(ie(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?At.createPortal(p.jsx(Vs,{scope:e.__scopeSelect,children:p.jsx(nn.Slot,{scope:e.__scopeSelect,children:p.jsx("div",{children:e.children})})}),s):null}return p.jsx(Bs,{...e,ref:t})});zs.displayName=He;var he=10,[Vs,je]=st(He),_d="SelectContentImpl",Nd=$e("SelectContent.RemoveScroll"),Bs=l.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:a,side:i,sideOffset:c,align:u,alignOffset:f,arrowPadding:d,collisionBoundary:h,collisionPadding:g,sticky:v,hideWhenDetached:m,avoidCollisions:x,...y}=e,b=Ie(He,n),[w,E]=l.useState(null),[R,_]=l.useState(null),P=se(t,A=>E(A)),[T,V]=l.useState(null),[Y,Z]=l.useState(null),q=rn(n),[J,F]=l.useState(!1),K=l.useRef(!1);l.useEffect(()=>{if(w)return Tn(w)},[w]),Cn();const $=l.useCallback(A=>{const[D,...B]=q().map(ne=>ne.ref.current),[U]=B.slice(-1),te=document.activeElement;for(const ne of A)if(ne===te||(ne==null||ne.scrollIntoView({block:"nearest"}),ne===D&&R&&(R.scrollTop=0),ne===U&&R&&(R.scrollTop=R.scrollHeight),ne==null||ne.focus(),document.activeElement!==te))return},[q,R]),z=l.useCallback(()=>$([T,w]),[$,T,w]);l.useEffect(()=>{J&&z()},[J,z]);const{onOpenChange:k,triggerPointerDownPosRef:ee}=b;l.useEffect(()=>{if(w){let A={x:0,y:0};const D=U=>{var te,ne;A={x:Math.abs(Math.round(U.pageX)-(((te=ee.current)==null?void 0:te.x)??0)),y:Math.abs(Math.round(U.pageY)-(((ne=ee.current)==null?void 0:ne.y)??0))}},B=U=>{A.x<=10&&A.y<=10?U.preventDefault():w.contains(U.target)||k(!1),document.removeEventListener("pointermove",D),ee.current=null};return ee.current!==null&&(document.addEventListener("pointermove",D),document.addEventListener("pointerup",B,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",D),document.removeEventListener("pointerup",B,{capture:!0})}}},[w,k,ee]),l.useEffect(()=>{const A=()=>k(!1);return window.addEventListener("blur",A),window.addEventListener("resize",A),()=>{window.removeEventListener("blur",A),window.removeEventListener("resize",A)}},[k]);const[C,L]=sa(A=>{const D=q().filter(te=>!te.disabled),B=D.find(te=>te.ref.current===document.activeElement),U=aa(D,A,B);U&&setTimeout(()=>U.ref.current.focus())}),S=l.useCallback((A,D,B)=>{const U=!K.current&&!B;(b.value!==void 0&&b.value===D||U)&&(V(A),U&&(K.current=!0))},[b.value]),N=l.useCallback(()=>w==null?void 0:w.focus(),[w]),M=l.useCallback((A,D,B)=>{const U=!K.current&&!B;(b.value!==void 0&&b.value===D||U)&&Z(A)},[b.value]),O=r==="popper"?tr:Ws,W=O===tr?{side:i,sideOffset:c,align:u,alignOffset:f,arrowPadding:d,collisionBoundary:h,collisionPadding:g,sticky:v,hideWhenDetached:m,avoidCollisions:x}:{};return p.jsx(Vs,{scope:n,content:w,viewport:R,onViewportChange:_,itemRefCallback:S,selectedItem:T,onItemLeave:N,itemTextRefCallback:M,focusSelectedItem:z,selectedItemText:Y,position:r,isPositioned:J,searchRef:C,children:p.jsx($t,{as:Nd,allowPinchZoom:!0,children:p.jsx(Nt,{asChild:!0,trapped:b.open,onMountAutoFocus:A=>{A.preventDefault()},onUnmountAutoFocus:X(o,A=>{var D;(D=b.trigger)==null||D.focus({preventScroll:!0}),A.preventDefault()}),children:p.jsx(pt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:A=>A.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:p.jsx(O,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:A=>A.preventDefault(),...y,...W,onPlaced:()=>F(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:X(y.onKeyDown,A=>{const D=A.ctrlKey||A.altKey||A.metaKey;if(A.key==="Tab"&&A.preventDefault(),!D&&A.key.length===1&&L(A.key),["ArrowUp","ArrowDown","Home","End"].includes(A.key)){let U=q().filter(te=>!te.disabled).map(te=>te.ref.current);if(["ArrowUp","End"].includes(A.key)&&(U=U.slice().reverse()),["ArrowUp","ArrowDown"].includes(A.key)){const te=A.target,ne=U.indexOf(te);U=U.slice(ne+1)}setTimeout(()=>$(U)),A.preventDefault()}})})})})})})});Bs.displayName=_d;var Od="SelectItemAlignedPosition",Ws=l.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=Ie(He,n),a=je(He,n),[i,c]=l.useState(null),[u,f]=l.useState(null),d=se(t,P=>f(P)),h=rn(n),g=l.useRef(!1),v=l.useRef(!0),{viewport:m,selectedItem:x,selectedItemText:y,focusSelectedItem:b}=a,w=l.useCallback(()=>{if(s.trigger&&s.valueNode&&i&&u&&m&&x&&y){const P=s.trigger.getBoundingClientRect(),T=u.getBoundingClientRect(),V=s.valueNode.getBoundingClientRect(),Y=y.getBoundingClientRect();if(s.dir!=="rtl"){const te=Y.left-T.left,ne=V.left-te,de=P.left-ne,Se=P.width+de,kt=Math.max(Se,T.width),Rt=window.innerWidth-he,Pt=Os(ne,[he,Math.max(he,Rt-kt)]);i.style.minWidth=Se+"px",i.style.left=Pt+"px"}else{const te=T.right-Y.right,ne=window.innerWidth-V.right-te,de=window.innerWidth-P.right-ne,Se=P.width+de,kt=Math.max(Se,T.width),Rt=window.innerWidth-he,Pt=Os(ne,[he,Math.max(he,Rt-kt)]);i.style.minWidth=Se+"px",i.style.right=Pt+"px"}const Z=h(),q=window.innerHeight-he*2,J=m.scrollHeight,F=window.getComputedStyle(u),K=parseInt(F.borderTopWidth,10),$=parseInt(F.paddingTop,10),z=parseInt(F.borderBottomWidth,10),k=parseInt(F.paddingBottom,10),ee=K+$+J+k+z,C=Math.min(x.offsetHeight*5,ee),L=window.getComputedStyle(m),S=parseInt(L.paddingTop,10),N=parseInt(L.paddingBottom,10),M=P.top+P.height/2-he,O=q-M,W=x.offsetHeight/2,A=x.offsetTop+W,D=K+$+A,B=ee-D;if(D<=M){const te=Z.length>0&&x===Z[Z.length-1].ref.current;i.style.bottom="0px";const ne=u.clientHeight-m.offsetTop-m.offsetHeight,de=Math.max(O,W+(te?N:0)+ne+z),Se=D+de;i.style.height=Se+"px"}else{const te=Z.length>0&&x===Z[0].ref.current;i.style.top="0px";const de=Math.max(M,K+m.offsetTop+(te?S:0)+W)+B;i.style.height=de+"px",m.scrollTop=D-M+m.offsetTop}i.style.margin=`${he}px 0`,i.style.minHeight=C+"px",i.style.maxHeight=q+"px",r==null||r(),requestAnimationFrame(()=>g.current=!0)}},[h,s.trigger,s.valueNode,i,u,m,x,y,s.dir,r]);ie(()=>w(),[w]);const[E,R]=l.useState();ie(()=>{u&&R(window.getComputedStyle(u).zIndex)},[u]);const _=l.useCallback(P=>{P&&v.current===!0&&(w(),b==null||b(),v.current=!1)},[w,b]);return p.jsx(jd,{scope:n,contentWrapper:i,shouldExpandOnScrollRef:g,onScrollButtonChange:_,children:p.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:p.jsx(H.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Ws.displayName=Od;var Id="SelectPopperPosition",tr=l.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=he,...s}=e,a=on(n);return p.jsx(Kn,{...a,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});tr.displayName=Id;var[jd,nr]=st(He,{}),rr="SelectViewport",Hs=l.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=je(rr,n),a=nr(rr,n),i=se(t,s.onViewportChange),c=l.useRef(0);return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),p.jsx(nn.Slot,{scope:n,children:p.jsx(H.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:X(o.onScroll,u=>{const f=u.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:h}=a;if(h!=null&&h.current&&d){const g=Math.abs(c.current-f.scrollTop);if(g>0){const v=window.innerHeight-he*2,m=parseFloat(d.style.minHeight),x=parseFloat(d.style.height),y=Math.max(m,x);if(y<v){const b=y+g,w=Math.min(v,b),E=b-w;d.style.height=w+"px",d.style.bottom==="0px"&&(f.scrollTop=E>0?E:0,d.style.justifyContent="flex-end")}}}c.current=f.scrollTop})})})]})});Hs.displayName=rr;var Us="SelectGroup",[Md,Dd]=st(Us),Gs=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=le();return p.jsx(Md,{scope:n,id:o,children:p.jsx(H.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Gs.displayName=Us;var Ys="SelectLabel",Ks=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Dd(Ys,n);return p.jsx(H.div,{id:o.id,...r,ref:t})});Ks.displayName=Ys;var sn="SelectItem",[Ld,qs]=st(sn),Xs=l.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...a}=e,i=Ie(sn,n),c=je(sn,n),u=i.value===r,[f,d]=l.useState(s??""),[h,g]=l.useState(!1),v=se(t,b=>{var w;return(w=c.itemRefCallback)==null?void 0:w.call(c,b,r,o)}),m=le(),x=l.useRef("touch"),y=()=>{o||(i.onValueChange(r),i.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return p.jsx(Ld,{scope:n,value:r,disabled:o,textId:m,isSelected:u,onItemTextChange:l.useCallback(b=>{d(w=>w||((b==null?void 0:b.textContent)??"").trim())},[]),children:p.jsx(nn.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:p.jsx(H.div,{role:"option","aria-labelledby":m,"data-highlighted":h?"":void 0,"aria-selected":u&&h,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:v,onFocus:X(a.onFocus,()=>g(!0)),onBlur:X(a.onBlur,()=>g(!1)),onClick:X(a.onClick,()=>{x.current!=="mouse"&&y()}),onPointerUp:X(a.onPointerUp,()=>{x.current==="mouse"&&y()}),onPointerDown:X(a.onPointerDown,b=>{x.current=b.pointerType}),onPointerMove:X(a.onPointerMove,b=>{var w;x.current=b.pointerType,o?(w=c.onItemLeave)==null||w.call(c):x.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:X(a.onPointerLeave,b=>{var w;b.currentTarget===document.activeElement&&((w=c.onItemLeave)==null||w.call(c))}),onKeyDown:X(a.onKeyDown,b=>{var E;((E=c.searchRef)==null?void 0:E.current)!==""&&b.key===" "||(Cd.includes(b.key)&&y(),b.key===" "&&b.preventDefault())})})})})});Xs.displayName=sn;var yt="SelectItemText",Zs=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,a=Ie(yt,n),i=je(yt,n),c=qs(yt,n),u=Pd(yt,n),[f,d]=l.useState(null),h=se(t,y=>d(y),c.onItemTextChange,y=>{var b;return(b=i.itemTextRefCallback)==null?void 0:b.call(i,y,c.value,c.disabled)}),g=f==null?void 0:f.textContent,v=l.useMemo(()=>p.jsx("option",{value:c.value,disabled:c.disabled,children:g},c.value),[c.disabled,c.value,g]),{onNativeOptionAdd:m,onNativeOptionRemove:x}=u;return ie(()=>(m(v),()=>x(v)),[m,x,v]),p.jsxs(p.Fragment,{children:[p.jsx(H.span,{id:c.textId,...s,ref:h}),c.isSelected&&a.valueNode&&!a.valueNodeHasChildren?At.createPortal(s.children,a.valueNode):null]})});Zs.displayName=yt;var Js="SelectItemIndicator",Qs=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return qs(Js,n).isSelected?p.jsx(H.span,{"aria-hidden":!0,...r,ref:t}):null});Qs.displayName=Js;var or="SelectScrollUpButton",ea=l.forwardRef((e,t)=>{const n=je(or,e.__scopeSelect),r=nr(or,e.__scopeSelect),[o,s]=l.useState(!1),a=se(t,r.onScrollButtonChange);return ie(()=>{if(n.viewport&&n.isPositioned){let i=function(){const u=c.scrollTop>0;s(u)};const c=n.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?p.jsx(na,{...e,ref:a,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=n;i&&c&&(i.scrollTop=i.scrollTop-c.offsetHeight)}}):null});ea.displayName=or;var sr="SelectScrollDownButton",ta=l.forwardRef((e,t)=>{const n=je(sr,e.__scopeSelect),r=nr(sr,e.__scopeSelect),[o,s]=l.useState(!1),a=se(t,r.onScrollButtonChange);return ie(()=>{if(n.viewport&&n.isPositioned){let i=function(){const u=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<u;s(f)};const c=n.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?p.jsx(na,{...e,ref:a,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=n;i&&c&&(i.scrollTop=i.scrollTop+c.offsetHeight)}}):null});ta.displayName=sr;var na=l.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=je("SelectScrollButton",n),a=l.useRef(null),i=rn(n),c=l.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return l.useEffect(()=>()=>c(),[c]),ie(()=>{var f;const u=i().find(d=>d.ref.current===document.activeElement);(f=u==null?void 0:u.ref.current)==null||f.scrollIntoView({block:"nearest"})},[i]),p.jsx(H.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:X(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:X(o.onPointerMove,()=>{var u;(u=s.onItemLeave)==null||u.call(s),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:X(o.onPointerLeave,()=>{c()})})}),$d="SelectSeparator",Fd=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return p.jsx(H.div,{"aria-hidden":!0,...r,ref:t})});Fd.displayName=$d;var ar="SelectArrow",zd=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=on(n),s=Ie(ar,n),a=je(ar,n);return s.open&&a.position==="popper"?p.jsx(qn,{...o,...r,ref:t}):null});zd.displayName=ar;var Vd="SelectBubbleInput",ra=l.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=l.useRef(null),s=se(r,o),a=wd(t);return l.useEffect(()=>{const i=o.current;if(!i)return;const c=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(a!==t&&f){const d=new Event("change",{bubbles:!0});f.call(i,t),i.dispatchEvent(d)}},[a,t]),p.jsx(H.select,{...n,style:{...ys,...n.style},ref:s,defaultValue:t})});ra.displayName=Vd;function oa(e){return e===""||e===void 0}function sa(e){const t=Ae(e),n=l.useRef(""),r=l.useRef(0),o=l.useCallback(a=>{const i=n.current+a;t(i),function c(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>c(""),1e3))}(i)},[t]),s=l.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function aa(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=Bd(e,Math.max(s,0));o.length===1&&(a=a.filter(u=>u!==n));const c=a.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function Bd(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Wd=Is,Hd=Ms,Ud=Ls,Gd=$s,Yd=Fs,Kd=zs,qd=Hs,Xd=Gs,Zd=Ks,Jd=Xs,Qd=Zs,ef=Qs,tf=ea,nf=ta;function rf({...e}){return p.jsx(Wd,{"data-slot":"select",...e})}function of({...e}){return p.jsx(Xd,{"data-slot":"select-group",...e})}function sf({...e}){return p.jsx(Ud,{"data-slot":"select-value",...e})}function af({className:e,size:t="default",children:n,...r}){return p.jsxs(Hd,{"data-slot":"select-trigger","data-size":t,className:re("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[n,p.jsx(Gd,{asChild:!0,children:p.jsx(In,{className:"size-4 opacity-50"})})]})}function lf({className:e,children:t,position:n="popper",...r}){return p.jsx(Yd,{children:p.jsxs(Kd,{"data-slot":"select-content",className:re("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 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[p.jsx(uf,{}),p.jsx(qd,{className:re("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),p.jsx(df,{})]})})}function cf({className:e,...t}){return p.jsx(Zd,{"data-slot":"select-label",className:re("text-muted-foreground px-2 py-1.5 text-xs",e),...t})}function ia({className:e,children:t,...n}){return p.jsxs(Jd,{"data-slot":"select-item",className:re("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 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 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...n,children:[p.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:p.jsx(ef,{children:p.jsx(lc,{className:"size-4"})})}),p.jsx(Qd,{children:t})]})}function uf({className:e,...t}){return p.jsx(tf,{"data-slot":"select-scroll-up-button",className:re("flex cursor-default items-center justify-center py-1",e),...t,children:p.jsx(cc,{className:"size-4"})})}function df({className:e,...t}){return p.jsx(nf,{"data-slot":"select-scroll-down-button",className:re("flex cursor-default items-center justify-center py-1",e),...t,children:p.jsx(In,{className:"size-4"})})}var an="Popover",[la,zp]=ze(an,[rt]),wt=rt(),[ff,Me]=la(an),ca=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!1}=e,i=wt(t),c=l.useRef(null),[u,f]=l.useState(!1),[d,h]=ft({prop:r,defaultProp:o??!1,onChange:s,caller:an});return p.jsx(Yn,{...i,children:p.jsx(ff,{scope:t,contentId:le(),triggerRef:c,open:d,onOpenChange:h,onOpenToggle:l.useCallback(()=>h(g=>!g),[h]),hasCustomAnchor:u,onCustomAnchorAdd:l.useCallback(()=>f(!0),[]),onCustomAnchorRemove:l.useCallback(()=>f(!1),[]),modal:a,children:n})})};ca.displayName=an;var ua="PopoverAnchor",pf=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Me(ua,n),s=wt(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:i}=o;return l.useEffect(()=>(a(),()=>i()),[a,i]),p.jsx(Qt,{...s,...r,ref:t})});pf.displayName=ua;var da="PopoverTrigger",fa=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Me(da,n),s=wt(n),a=se(t,o.triggerRef),i=p.jsx(H.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":va(o.open),...r,ref:a,onClick:X(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:p.jsx(Qt,{asChild:!0,...s,children:i})});fa.displayName=da;var ir="PopoverPortal",[mf,gf]=la(ir,{forceMount:void 0}),pa=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,s=Me(ir,t);return p.jsx(mf,{scope:t,forceMount:n,children:p.jsx(_e,{present:n||s.open,children:p.jsx(mt,{asChild:!0,container:o,children:r})})})};pa.displayName=ir;var at="PopoverContent",ma=l.forwardRef((e,t)=>{const n=gf(at,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,s=Me(at,e.__scopePopover);return p.jsx(_e,{present:r||s.open,children:s.modal?p.jsx(vf,{...o,ref:t}):p.jsx(xf,{...o,ref:t})})});ma.displayName=at;var hf=$e("PopoverContent.RemoveScroll"),vf=l.forwardRef((e,t)=>{const n=Me(at,e.__scopePopover),r=l.useRef(null),o=se(t,r),s=l.useRef(!1);return l.useEffect(()=>{const a=r.current;if(a)return Tn(a)},[]),p.jsx($t,{as:hf,allowPinchZoom:!0,children:p.jsx(ga,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:X(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),s.current||(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:X(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0,u=i.button===2||c;s.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:X(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),xf=l.forwardRef((e,t)=>{const n=Me(at,e.__scopePopover),r=l.useRef(!1),o=l.useRef(!1);return p.jsx(ga,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,i;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(r.current||(i=n.triggerRef.current)==null||i.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),ga=l.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:f,...d}=e,h=Me(at,n),g=wt(n);return Cn(),p.jsx(Nt,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:p.jsx(pt,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:f,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>h.onOpenChange(!1),children:p.jsx(Kn,{"data-state":va(h.open),role:"dialog",id:h.contentId,...g,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),ha="PopoverClose",bf=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Me(ha,n);return p.jsx(H.button,{type:"button",...r,ref:t,onClick:X(e.onClick,()=>o.onOpenChange(!1))})});bf.displayName=ha;var yf="PopoverArrow",wf=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=wt(n);return p.jsx(qn,{...o,...r,ref:t})});wf.displayName=yf;function va(e){return e?"open":"closed"}var Sf=ca,Cf=fa,Ef=pa,kf=ma;function Rf({...e}){return p.jsx(Sf,{"data-slot":"popover",...e})}function Pf({...e}){return p.jsx(Cf,{"data-slot":"popover-trigger",...e})}function Af({className:e,align:t="center",sideOffset:n=4,...r}){return p.jsx(Ef,{children:p.jsx(kf,{"data-slot":"popover-content",align:t,sideOffset:n,className:re("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 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...r})})}var xa=1,Tf=.9,_f=.8,Nf=.17,lr=.1,cr=.999,Of=.9999,If=.99,jf=/[\\\/_+.#"@\[\(\{&]/,Mf=/[\\\/_+.#"@\[\(\{&]/g,Df=/[\s-]/,ba=/[\s-]/g;function ur(e,t,n,r,o,s,a){if(s===t.length)return o===e.length?xa:If;var i=`${o},${s}`;if(a[i]!==void 0)return a[i];for(var c=r.charAt(s),u=n.indexOf(c,o),f=0,d,h,g,v;u>=0;)d=ur(e,t,n,r,u+1,s+1,a),d>f&&(u===o?d*=xa:jf.test(e.charAt(u-1))?(d*=_f,g=e.slice(o,u-1).match(Mf),g&&o>0&&(d*=Math.pow(cr,g.length))):Df.test(e.charAt(u-1))?(d*=Tf,v=e.slice(o,u-1).match(ba),v&&o>0&&(d*=Math.pow(cr,v.length))):(d*=Nf,o>0&&(d*=Math.pow(cr,u-o))),e.charAt(u)!==t.charAt(s)&&(d*=Of)),(d<lr&&n.charAt(u-1)===r.charAt(s+1)||r.charAt(s+1)===r.charAt(s)&&n.charAt(u-1)!==r.charAt(s))&&(h=ur(e,t,n,r,u+1,s+2,a),h*lr>d&&(d=h*lr)),d>f&&(f=d),u=n.indexOf(c,u+1);return a[i]=f,f}function ya(e){return e.toLowerCase().replace(ba," ")}function Lf(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,ur(e,t,ya(e),ya(t),0,0,{})}var St='[cmdk-group=""]',dr='[cmdk-group-items=""]',$f='[cmdk-group-heading=""]',wa='[cmdk-item=""]',Sa=`${wa}:not([aria-disabled="true"])`,fr="cmdk-item-select",it="data-value",Ff=(e,t,n)=>Lf(e,t,n),Ca=l.createContext(void 0),Ct=()=>l.useContext(Ca),Ea=l.createContext(void 0),pr=()=>l.useContext(Ea),ka=l.createContext(void 0),Ra=l.forwardRef((e,t)=>{let n=lt(()=>{var S,N;return{search:"",value:(N=(S=e.value)!=null?S:e.defaultValue)!=null?N:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=lt(()=>new Set),o=lt(()=>new Map),s=lt(()=>new Map),a=lt(()=>new Set),i=Pa(e),{label:c,children:u,value:f,onValueChange:d,filter:h,shouldFilter:g,loop:v,disablePointerSelection:m=!1,vimBindings:x=!0,...y}=e,b=le(),w=le(),E=le(),R=l.useRef(null),_=Xf();Ue(()=>{if(f!==void 0){let S=f.trim();n.current.value=S,P.emit()}},[f]),Ue(()=>{_(6,J)},[]);let P=l.useMemo(()=>({subscribe:S=>(a.current.add(S),()=>a.current.delete(S)),snapshot:()=>n.current,setState:(S,N,M)=>{var O,W,A,D;if(!Object.is(n.current[S],N)){if(n.current[S]=N,S==="search")q(),Y(),_(1,Z);else if(S==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let B=document.getElementById(E);B?B.focus():(O=document.getElementById(b))==null||O.focus()}if(_(7,()=>{var B;n.current.selectedItemId=(B=F())==null?void 0:B.id,P.emit()}),M||_(5,J),((W=i.current)==null?void 0:W.value)!==void 0){let B=N??"";(D=(A=i.current).onValueChange)==null||D.call(A,B);return}}P.emit()}},emit:()=>{a.current.forEach(S=>S())}}),[]),T=l.useMemo(()=>({value:(S,N,M)=>{var O;N!==((O=s.current.get(S))==null?void 0:O.value)&&(s.current.set(S,{value:N,keywords:M}),n.current.filtered.items.set(S,V(N,M)),_(2,()=>{Y(),P.emit()}))},item:(S,N)=>(r.current.add(S),N&&(o.current.has(N)?o.current.get(N).add(S):o.current.set(N,new Set([S]))),_(3,()=>{q(),Y(),n.current.value||Z(),P.emit()}),()=>{s.current.delete(S),r.current.delete(S),n.current.filtered.items.delete(S);let M=F();_(4,()=>{q(),(M==null?void 0:M.getAttribute("id"))===S&&Z(),P.emit()})}),group:S=>(o.current.has(S)||o.current.set(S,new Set),()=>{s.current.delete(S),o.current.delete(S)}),filter:()=>i.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>i.current.disablePointerSelection,listId:b,inputId:E,labelId:w,listInnerRef:R}),[]);function V(S,N){var M,O;let W=(O=(M=i.current)==null?void 0:M.filter)!=null?O:Ff;return S?W(S,n.current.search,N):0}function Y(){if(!n.current.search||i.current.shouldFilter===!1)return;let S=n.current.filtered.items,N=[];n.current.filtered.groups.forEach(O=>{let W=o.current.get(O),A=0;W.forEach(D=>{let B=S.get(D);A=Math.max(B,A)}),N.push([O,A])});let M=R.current;K().sort((O,W)=>{var A,D;let B=O.getAttribute("id"),U=W.getAttribute("id");return((A=S.get(U))!=null?A:0)-((D=S.get(B))!=null?D:0)}).forEach(O=>{let W=O.closest(dr);W?W.appendChild(O.parentElement===W?O:O.closest(`${dr} > *`)):M.appendChild(O.parentElement===M?O:O.closest(`${dr} > *`))}),N.sort((O,W)=>W[1]-O[1]).forEach(O=>{var W;let A=(W=R.current)==null?void 0:W.querySelector(`${St}[${it}="${encodeURIComponent(O[0])}"]`);A==null||A.parentElement.appendChild(A)})}function Z(){let S=K().find(M=>M.getAttribute("aria-disabled")!=="true"),N=S==null?void 0:S.getAttribute(it);P.setState("value",N||void 0)}function q(){var S,N,M,O;if(!n.current.search||i.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let W=0;for(let A of r.current){let D=(N=(S=s.current.get(A))==null?void 0:S.value)!=null?N:"",B=(O=(M=s.current.get(A))==null?void 0:M.keywords)!=null?O:[],U=V(D,B);n.current.filtered.items.set(A,U),U>0&&W++}for(let[A,D]of o.current)for(let B of D)if(n.current.filtered.items.get(B)>0){n.current.filtered.groups.add(A);break}n.current.filtered.count=W}function J(){var S,N,M;let O=F();O&&(((S=O.parentElement)==null?void 0:S.firstChild)===O&&((M=(N=O.closest(St))==null?void 0:N.querySelector($f))==null||M.scrollIntoView({block:"nearest"})),O.scrollIntoView({block:"nearest"}))}function F(){var S;return(S=R.current)==null?void 0:S.querySelector(`${wa}[aria-selected="true"]`)}function K(){var S;return Array.from(((S=R.current)==null?void 0:S.querySelectorAll(Sa))||[])}function $(S){let N=K()[S];N&&P.setState("value",N.getAttribute(it))}function z(S){var N;let M=F(),O=K(),W=O.findIndex(D=>D===M),A=O[W+S];(N=i.current)!=null&&N.loop&&(A=W+S<0?O[O.length-1]:W+S===O.length?O[0]:O[W+S]),A&&P.setState("value",A.getAttribute(it))}function k(S){let N=F(),M=N==null?void 0:N.closest(St),O;for(;M&&!O;)M=S>0?Kf(M,St):qf(M,St),O=M==null?void 0:M.querySelector(Sa);O?P.setState("value",O.getAttribute(it)):z(S)}let ee=()=>$(K().length-1),C=S=>{S.preventDefault(),S.metaKey?ee():S.altKey?k(1):z(1)},L=S=>{S.preventDefault(),S.metaKey?$(0):S.altKey?k(-1):z(-1)};return l.createElement(H.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:S=>{var N;(N=y.onKeyDown)==null||N.call(y,S);let M=S.nativeEvent.isComposing||S.keyCode===229;if(!(S.defaultPrevented||M))switch(S.key){case"n":case"j":{x&&S.ctrlKey&&C(S);break}case"ArrowDown":{C(S);break}case"p":case"k":{x&&S.ctrlKey&&L(S);break}case"ArrowUp":{L(S);break}case"Home":{S.preventDefault(),$(0);break}case"End":{S.preventDefault(),ee();break}case"Enter":{S.preventDefault();let O=F();if(O){let W=new Event(fr);O.dispatchEvent(W)}}}}},l.createElement("label",{"cmdk-label":"",htmlFor:T.inputId,id:T.labelId,style:Jf},c),ln(e,S=>l.createElement(Ea.Provider,{value:P},l.createElement(Ca.Provider,{value:T},S))))}),zf=l.forwardRef((e,t)=>{var n,r;let o=le(),s=l.useRef(null),a=l.useContext(ka),i=Ct(),c=Pa(e),u=(r=(n=c.current)==null?void 0:n.forceMount)!=null?r:a==null?void 0:a.forceMount;Ue(()=>{if(!u)return i.item(o,a==null?void 0:a.id)},[u]);let f=Aa(o,s,[e.value,e.children,s],e.keywords),d=pr(),h=De(_=>_.value&&_.value===f.current),g=De(_=>u||i.filter()===!1?!0:_.search?_.filtered.items.get(o)>0:!0);l.useEffect(()=>{let _=s.current;if(!(!_||e.disabled))return _.addEventListener(fr,v),()=>_.removeEventListener(fr,v)},[g,e.onSelect,e.disabled]);function v(){var _,P;m(),(P=(_=c.current).onSelect)==null||P.call(_,f.current)}function m(){d.setState("value",f.current,!0)}if(!g)return null;let{disabled:x,value:y,onSelect:b,forceMount:w,keywords:E,...R}=e;return l.createElement(H.div,{ref:Le(s,t),...R,id:o,"cmdk-item":"",role:"option","aria-disabled":!!x,"aria-selected":!!h,"data-disabled":!!x,"data-selected":!!h,onPointerMove:x||i.getDisablePointerSelection()?void 0:m,onClick:x?void 0:v},e.children)}),Vf=l.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...s}=e,a=le(),i=l.useRef(null),c=l.useRef(null),u=le(),f=Ct(),d=De(g=>o||f.filter()===!1?!0:g.search?g.filtered.groups.has(a):!0);Ue(()=>f.group(a),[]),Aa(a,i,[e.value,e.heading,c]);let h=l.useMemo(()=>({id:a,forceMount:o}),[o]);return l.createElement(H.div,{ref:Le(i,t),...s,"cmdk-group":"",role:"presentation",hidden:d?void 0:!0},n&&l.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),ln(e,g=>l.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},l.createElement(ka.Provider,{value:h},g))))}),Bf=l.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=l.useRef(null),s=De(a=>!a.search);return!n&&!s?null:l.createElement(H.div,{ref:Le(o,t),...r,"cmdk-separator":"",role:"separator"})}),Wf=l.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,s=pr(),a=De(u=>u.search),i=De(u=>u.selectedItemId),c=Ct();return l.useEffect(()=>{e.value!=null&&s.setState("search",e.value)},[e.value]),l.createElement(H.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":i,id:c.inputId,type:"text",value:o?e.value:a,onChange:u=>{o||s.setState("search",u.target.value),n==null||n(u.target.value)}})}),Hf=l.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,s=l.useRef(null),a=l.useRef(null),i=De(u=>u.selectedItemId),c=Ct();return l.useEffect(()=>{if(a.current&&s.current){let u=a.current,f=s.current,d,h=new ResizeObserver(()=>{d=requestAnimationFrame(()=>{let g=u.offsetHeight;f.style.setProperty("--cmdk-list-height",g.toFixed(1)+"px")})});return h.observe(u),()=>{cancelAnimationFrame(d),h.unobserve(u)}}},[]),l.createElement(H.div,{ref:Le(s,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":r,id:c.listId},ln(e,u=>l.createElement("div",{ref:Le(a,c.listInnerRef),"cmdk-list-sizer":""},u)))}),Uf=l.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:s,container:a,...i}=e;return l.createElement(To,{open:n,onOpenChange:r},l.createElement(_o,{container:a},l.createElement(No,{"cmdk-overlay":"",className:o}),l.createElement(Oo,{"aria-label":e.label,"cmdk-dialog":"",className:s},l.createElement(Ra,{ref:t,...i}))))}),Gf=l.forwardRef((e,t)=>De(n=>n.filtered.count===0)?l.createElement(H.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Yf=l.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...s}=e;return l.createElement(H.div,{ref:t,...s,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},ln(e,a=>l.createElement("div",{"aria-hidden":!0},a)))}),Et=Object.assign(Ra,{List:Hf,Item:zf,Input:Wf,Group:Vf,Separator:Bf,Dialog:Uf,Empty:Gf,Loading:Yf});function Kf(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function qf(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function Pa(e){let t=l.useRef(e);return Ue(()=>{t.current=e}),t}var Ue=typeof window>"u"?l.useEffect:l.useLayoutEffect;function lt(e){let t=l.useRef();return t.current===void 0&&(t.current=e()),t}function De(e){let t=pr(),n=()=>e(t.snapshot());return l.useSyncExternalStore(t.subscribe,n,n)}function Aa(e,t,n,r=[]){let o=l.useRef(),s=Ct();return Ue(()=>{var a;let i=(()=>{var u;for(let f of n){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(u=f.current.textContent)==null?void 0:u.trim():o.current}})(),c=r.map(u=>u.trim());s.value(e,i,c),(a=t.current)==null||a.setAttribute(it,i),o.current=i}),o}var Xf=()=>{let[e,t]=l.useState(),n=lt(()=>new Map);return Ue(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function Zf(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function ln({asChild:e,children:t},n){return e&&l.isValidElement(t)?l.cloneElement(Zf(t),{ref:t.ref},n(t.props.children)):n(t)}var Jf={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function Qf({className:e,...t}){return p.jsx(Et,{"data-slot":"command",className:re("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function ep({className:e,...t}){return p.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[p.jsx(Do,{className:"size-4 shrink-0 opacity-50"}),p.jsx(Et.Input,{"data-slot":"command-input",className:re("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function tp({...e}){return p.jsx(Et.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function Ta({className:e,...t}){return p.jsx(Et.Group,{"data-slot":"command-group",className:re("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}function _a({className:e,...t}){return p.jsx(Et.Item,{"data-slot":"command-item",className:re("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_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=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function mr(e){return e.length>0&&e[0].kind==="group"}function np(e){return e.multiple?p.jsx(Oa,{...e}):p.jsx(Na,{...e})}const Na=({options:e,placeholder:t="Select...",disabled:n,error:r,helperText:o,value:s,onChange:a})=>{const[i,c]=oe.useState(""),u=s??i,f=d=>{c(d),a==null||a(d)};return p.jsxs("div",{className:"w-94",children:[p.jsxs(rf,{value:u,onValueChange:f,disabled:n,children:[p.jsx(af,{"aria-invalid":!!r,className:re("flex w-full items-center justify-between rounded-md border bg-white px-3 py-2 text-sm",n&&"cursor-not-allowed bg-neutral-black-4 border border-neutral-black-4 rounded",r?"border-primary-1":"border-neutral-black-4"),children:p.jsx(sf,{placeholder:t})}),p.jsx(lf,{className:"w-full bg-white border border-neutral-black-4",children:mr(e)?e.map(d=>p.jsxs(of,{className:"p-2",children:[p.jsx(cf,{children:d.label}),d.options.map(h=>p.jsx(ia,{value:h.value,disabled:h.disabled,children:h.label},h.value))]},d.label)):e.map(d=>p.jsx(ia,{value:d.value,disabled:d.disabled,className:"hover:cursor-pointer hover:bg-neutral-black-5",children:d.label},d.value))})]}),r&&p.jsx("p",{className:"mt-1 text-xs text-primary-1",children:r}),o&&p.jsx("p",{className:"mt-1 text-xs text-neutral-black-3",children:o})]})},Oa=({options:e,placeholder:t="Select...",disabled:n,error:r,helperText:o,value:s,onChange:a})=>{const[i,c]=oe.useState(!1),[u,f]=oe.useState([]),d=s??u,h=oe.useMemo(()=>mr(e)?e.flatMap(v=>v.options):e,[e]),g=v=>{const m=d.includes(v)?d.filter(x=>x!==v):[...d,v];f(m),a==null||a(m)};return p.jsxs("div",{className:"w-94",children:[p.jsxs(Rf,{open:i,onOpenChange:c,children:[p.jsx(Pf,{asChild:!0,children:p.jsxs("button",{type:"button",disabled:n,"aria-haspopup":"listbox","aria-expanded":i,className:re("flex w-full items-center justify-between rounded-md border bg-white px-3 py-2 text-sm",n&&"cursor-not-allowed bg-neutral-black-4 border border-neutral-black-4 rounded",r?"border-primary-1":"border-neutral-black-4"),children:[p.jsx("div",{className:"flex flex-wrap gap-1",children:d.length>0?d.map(v=>p.jsxs(Vo,{type:"outline",onClick:m=>{m.stopPropagation(),g(v)},className:"cursor-pointer border-neutral-black-4 bg-transparent hover:bg-neutral-black-4",children:[p.jsx("span",{className:"text-neutral-black-1",children:v}),p.jsx("div",{className:"flex items-center justify-center rounded-full border border-neutral-black-2 h-5 w-5 ml-1",children:p.jsx($o,{className:"h-3 w-3 text-neutral-black-1",strokeWidth:2})})]},v)):p.jsx("span",{className:"truncate text-xs text-neutral-black-1",children:t})}),p.jsx(In,{className:"h-4 w-4 text-neutral-black-1"})]})}),p.jsx(Af,{className:"p-0 w-full bg-white border border-neutral-black-4",children:p.jsxs(Qf,{className:"w-full",children:[p.jsx(ep,{placeholder:"Search..."}),p.jsx(tp,{children:"No results found."}),mr(e)?e.map(v=>p.jsx(Ta,{heading:v.label,children:v.options.map(m=>p.jsxs(_a,{value:m.label,onSelect:()=>!m.disabled&&g(m.value),disabled:m.disabled,children:[p.jsx("input",{type:"checkbox",readOnly:!0,checked:d.includes(m.value),className:"mr-2"}),m.label]},m.value))},v.label)):p.jsx(Ta,{children:h.map(v=>p.jsxs(_a,{value:v.label,onSelect:()=>!v.disabled&&g(v.value),disabled:v.disabled,children:[p.jsx("input",{type:"checkbox",readOnly:!0,checked:d.includes(v.value),className:"mr-2"}),v.label]},v.value))})]})})]}),r&&p.jsx("p",{className:"mt-1 text-xs text-primary-1",children:r}),o&&p.jsx("p",{className:"mt-1 text-xs text-neutral-black-3",children:o})]})},rp=Pe("w-full",{variants:{variant:{"widget-1":"bg-white rounded-lg p-6 flex flex-col items-start gap-4 shadow-[0_0_8px_0_rgba(0,0,0,0.08),6px_0_0_0_var(--color-primary-1)_inset]","widget-2":"bg-white rounded-lg p-6 flex flex-col items-start gap-4 border border-neutral-black-4 shadow-[0_0_8px_0_rgba(0,0,0,0.08)]"}},defaultVariants:{variant:"widget-1"}});function op({className:e,variant:t,asChild:n=!1,children:r,...o}){const s=n?fn:"div";return p.jsx(s,{"data-slot":"card",className:re(rp({variant:t}),e),...o,children:r})}var gr={exports:{}},hr={};/**
142
+ * @license React
143
+ * use-sync-external-store-shim.production.js
144
+ *
145
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
146
+ *
147
+ * This source code is licensed under the MIT license found in the
148
+ * LICENSE file in the root directory of this source tree.
149
+ */var Ia;function sp(){if(Ia)return hr;Ia=1;var e=oe;function t(d,h){return d===h&&(d!==0||1/d===1/h)||d!==d&&h!==h}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,s=e.useLayoutEffect,a=e.useDebugValue;function i(d,h){var g=h(),v=r({inst:{value:g,getSnapshot:h}}),m=v[0].inst,x=v[1];return s(function(){m.value=g,m.getSnapshot=h,c(m)&&x({inst:m})},[d,g,h]),o(function(){return c(m)&&x({inst:m}),d(function(){c(m)&&x({inst:m})})},[d]),a(g),g}function c(d){var h=d.getSnapshot;d=d.value;try{var g=h();return!n(d,g)}catch{return!0}}function u(d,h){return h()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:i;return hr.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,hr}var vr={};/**
150
+ * @license React
151
+ * use-sync-external-store-shim.development.js
152
+ *
153
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
154
+ *
155
+ * This source code is licensed under the MIT license found in the
156
+ * LICENSE file in the root directory of this source tree.
157
+ */var ja;function ap(){return ja||(ja=1,process.env.NODE_ENV!=="production"&&function(){function e(g,v){return g===v&&(g!==0||1/g===1/v)||g!==g&&v!==v}function t(g,v){f||o.startTransition===void 0||(f=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var m=v();if(!d){var x=v();s(m,x)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}x=a({inst:{value:m,getSnapshot:v}});var y=x[0].inst,b=x[1];return c(function(){y.value=m,y.getSnapshot=v,n(y)&&b({inst:y})},[g,m,v]),i(function(){return n(y)&&b({inst:y}),g(function(){n(y)&&b({inst:y})})},[g]),u(m),m}function n(g){var v=g.getSnapshot;g=g.value;try{var m=v();return!s(g,m)}catch{return!0}}function r(g,v){return v()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=oe,s=typeof Object.is=="function"?Object.is:e,a=o.useState,i=o.useEffect,c=o.useLayoutEffect,u=o.useDebugValue,f=!1,d=!1,h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;vr.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:h,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),vr}process.env.NODE_ENV==="production"?gr.exports=sp():gr.exports=ap();var ip=gr.exports;function lp(){return ip.useSyncExternalStore(cp,()=>!0,()=>!1)}function cp(){return()=>{}}var xr="Avatar",[up,Vp]=ze(xr),[dp,Ma]=up(xr),Da=l.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,s]=l.useState("idle");return p.jsx(dp,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:s,children:p.jsx(H.span,{...r,ref:t})})});Da.displayName=xr;var La="AvatarImage",$a=l.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...s}=e,a=Ma(La,n),i=fp(r,s),c=Ae(u=>{o(u),a.onImageLoadingStatusChange(u)});return ie(()=>{i!=="idle"&&c(i)},[i,c]),i==="loaded"?p.jsx(H.img,{...s,ref:t,src:r}):null});$a.displayName=La;var Fa="AvatarFallback",za=l.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,s=Ma(Fa,n),[a,i]=l.useState(r===void 0);return l.useEffect(()=>{if(r!==void 0){const c=window.setTimeout(()=>i(!0),r);return()=>window.clearTimeout(c)}},[r]),a&&s.imageLoadingStatus!=="loaded"?p.jsx(H.span,{...o,ref:t}):null});za.displayName=Fa;function Va(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function fp(e,{referrerPolicy:t,crossOrigin:n}){const r=lp(),o=l.useRef(null),s=r?(o.current||(o.current=new window.Image),o.current):null,[a,i]=l.useState(()=>Va(s,e));return ie(()=>{i(Va(s,e))},[s,e]),ie(()=>{const c=d=>()=>{i(d)};if(!s)return;const u=c("loaded"),f=c("error");return s.addEventListener("load",u),s.addEventListener("error",f),t&&(s.referrerPolicy=t),typeof n=="string"&&(s.crossOrigin=n),()=>{s.removeEventListener("load",u),s.removeEventListener("error",f)}},[s,n,t]),a}var pp=Da,Ba=$a,cn=za;const mp=Pe("relative flex items-center justify-center rounded-full bg-[var(--color-neutral-black-4)] text-black font-medium select-none",{variants:{size:{sm:"w-[30px] h-[30px] text-xs",md:"w-[40px] h-[40px] text-sm",lg:"w-[50px] h-[50px] text-lg",xl:"w-[60px] h-[60px] text-xl","2xl":"w-[70px] h-[70px] text-2xl"},progress:{true:"ring-2 ring-offset-4 ring-black",false:""}},defaultVariants:{size:"md",progress:!1}}),gp=Pe("absolute bottom-0 right-0 rounded-full border-2 border-white",{variants:{status:{Neutral:"bg-transparent",Online:"bg-[var(--color-success-1)]",Busy:"bg-[var(--color-error-1)]",Away:"bg-[var(--color-warning-1)]",Offline:"bg-[var(--color-neutral-black-2)]"},size:{sm:"w-[10px] h-[10px]",md:"w-[12px] h-[12px]",lg:"w-[14px] h-[14px]",xl:"w-[16px] h-[16px]","2xl":"w-[18px] h-[18px]"}},defaultVariants:{status:"Neutral",size:"md"}}),hp=Pe("absolute bottom-0 right-0 flex items-center justify-center rounded-full border-2 border-white font-medium",{variants:{size:{sm:"w-[14px] h-[14px] text-[10px]",md:"w-[16px] h-[16px] text-[11px]",lg:"w-[18px] h-[18px] text-[12px]",xl:"w-[21px] h-[21px] text-[13px]","2xl":"w-[24px] h-[24px] text-[14px]"},priority:{low:"bg-[var(--color-neutral-black-2)] text-black",mid:"bg-[var(--color-neutral-black-2)] text-black",high:"bg-black text-white"}},defaultVariants:{size:"md",priority:"low"}}),vp=Pe("absolute bottom-0 right-0 flex items-center justify-center rounded-full bg-[var(--color-neutral-black-2)] border-2 border-white",{variants:{size:{sm:"w-[14px] h-[14px]",md:"w-[16px] h-[16px]",lg:"w-[18px] h-[18px]",xl:"w-[21px] h-[21px]","2xl":"w-[24px] h-[24px]"}},defaultVariants:{size:"md"}});function xp(e){const{type:t,size:n="md",status:r="Neutral",notification:o,CTAIndicator:s=!1,progress:a=!1,className:i,...c}=e;return p.jsxs(pp,{className:re(mp({size:n,progress:a}),i),...c,children:[t==="picture"&&p.jsxs(p.Fragment,{children:[p.jsx(Ba,{src:e.src,alt:"avatar",className:"w-full h-full object-cover rounded-full"}),p.jsx(cn,{children:p.jsx(Lo,{className:"text-black",size:n==="sm"?16:n==="md"?20:n==="lg"?24:n==="xl"?28:32})})]}),t==="initials"&&p.jsx(cn,{className:"uppercase",children:e.initials}),t==="placeholder"&&p.jsx(cn,{children:p.jsx(Lo,{"data-testid":"avatar-placeholder",className:"text-black",size:n==="sm"?16:n==="md"?20:n==="lg"?24:n==="xl"?28:32})}),r!=="Neutral"&&p.jsx("span",{"data-testid":"avatar-status",className:gp({status:r,size:n})}),o&&p.jsx("span",{"data-testid":"avatar-notification",className:hp({size:n,priority:o.priority}),children:o.value}),s&&p.jsx("span",{"data-testid":"avatar-camera-icon",className:vp({size:n}),children:p.jsx(ic,{"data-testid":"avatar-camera",className:"text-[var(--color-neutral-black-1)]",size:12})})]})}function bp({className:e,...t}){return p.jsx(Ba,{className:re("aspect-square h-full w-full",e),...t})}function yp({className:e,...t}){return p.jsx(cn,{className:re("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t})}Q.Avatar=xp,Q.AvatarFallback=yp,Q.AvatarImage=bp,Q.Badge=Vo,Q.Button=_i,Q.Card=op,Q.Dialog=mc,Q.DialogClose=hc,Q.DialogContent=vc,Q.DialogDescription=wc,Q.DialogFooter=bc,Q.DialogHeader=xc,Q.DialogOverlay=zo,Q.DialogPortal=Fo,Q.DialogTitle=yc,Q.DialogTrigger=gc,Q.EmailInput=gd,Q.MultiSelect=Oa,Q.PasswordInput=hd,Q.SearchInput=vd,Q.SelectOption=np,Q.SingleSelect=Na,Q.Tooltip=dd,Q.TooltipContent=pd,Q.TooltipProvider=Ns,Q.TooltipTrigger=fd,Q.cn=re,Object.defineProperty(Q,Symbol.toStringTag,{value:"Module"})});