@datawire-ai/busyfile-design-library 1.28.1 → 1.29.1

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(L,ae){typeof exports=="object"&&typeof module<"u"?ae(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],ae):(L=typeof globalThis<"u"?globalThis:L||self,ae(L.BusyFileDesignSystem={},L.React,L.ReactDOM))})(this,function(L,ae,Mn){"use strict";function Dn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const l=Dn(ae),Tt=Dn(Mn);var Sr={exports:{}},dt={};/**
1
+ (function(D,O){typeof exports=="object"&&typeof module<"u"?O(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],O):(D=typeof globalThis<"u"?globalThis:D||self,O(D.BusyFileDesignSystem={},D.React,D.ReactDOM))})(this,function(D,O,$o){"use strict";function Bo(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const u=Bo(O),gn=Bo($o);var ir={exports:{}},Yt={};/**
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 Ln;function sl(){if(Ln)return dt;Ln=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var s=null;if(a!==void 0&&(s=""+a),o.key!==void 0&&(s=""+o.key),"key"in o){a={};for(var i in o)i!=="key"&&(a[i]=o[i])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:s,ref:o!==void 0?o:null,props:a}}return dt.Fragment=t,dt.jsx=r,dt.jsxs=r,dt}var ft={};/**
9
+ */var zo;function Jc(){if(zo)return Yt;zo=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,a){var s=null;if(a!==void 0&&(s=""+a),o.key!==void 0&&(s=""+o.key),"key"in o){a={};for(var i in o)i!=="key"&&(a[i]=o[i])}else a=o;return o=a.ref,{$$typeof:e,type:r,key:s,ref:o!==void 0?o:null,props:a}}return Yt.Fragment=t,Yt.jsx=n,Yt.jsxs=n,Yt}var Ht={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,156 +14,171 @@
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 $n;function il(){return $n||($n=1,process.env.NODE_ENV!=="production"&&function(){function e(k){if(k==null)return null;if(typeof k=="function")return k.$$typeof===K?null:k.displayName||k.name||null;if(typeof k=="string")return k;switch(k){case m:return"Fragment";case x:return"Profiler";case b:return"StrictMode";case E:return"Suspense";case T:return"SuspenseList";case G:return"Activity"}if(typeof k=="object")switch(typeof k.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),k.$$typeof){case v:return"Portal";case y:return(k.displayName||"Context")+".Provider";case w:return(k._context.displayName||"Context")+".Consumer";case C:var B=k.render;return k=k.displayName,k||(k=B.displayName||B.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case _:return B=k.displayName||null,B!==null?B:e(k.type)||"Memo";case R:B=k._payload,k=k._init;try{return e(k(B))}catch{}}return null}function t(k){return""+k}function r(k){try{t(k);var B=!1}catch{B=!0}if(B){B=console;var S=B.error,A=typeof Symbol=="function"&&Symbol.toStringTag&&k[Symbol.toStringTag]||k.constructor.name||"Object";return S.call(B,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",A),t(k)}}function n(k){if(k===m)return"<>";if(typeof k=="object"&&k!==null&&k.$$typeof===R)return"<...>";try{var B=e(k);return B?"<"+B+">":"<...>"}catch{return"<...>"}}function o(){var k=X.A;return k===null?null:k.getOwner()}function a(){return Error("react-stack-top-frame")}function s(k){if(Q.call(k,"key")){var B=Object.getOwnPropertyDescriptor(k,"key").get;if(B&&B.isReactWarning)return!1}return k.key!==void 0}function i(k,B){function S(){q||(q=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",B))}S.isReactWarning=!0,Object.defineProperty(k,"key",{get:S,configurable:!0})}function c(){var k=e(this.type);return $[k]||($[k]=!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.")),k=this.props.ref,k!==void 0?k:null}function d(k,B,S,A,D,I,Y,P){return S=I.ref,k={$$typeof:h,type:k,key:B,props:I,_owner:D},(S!==void 0?S:null)!==null?Object.defineProperty(k,"ref",{enumerable:!1,get:c}):Object.defineProperty(k,"ref",{enumerable:!1,value:null}),k._store={},Object.defineProperty(k._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(k,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(k,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Y}),Object.defineProperty(k,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:P}),Object.freeze&&(Object.freeze(k.props),Object.freeze(k)),k}function f(k,B,S,A,D,I,Y,P){var F=B.children;if(F!==void 0)if(A)if(ee(F)){for(A=0;A<F.length;A++)p(F[A]);Object.freeze&&Object.freeze(F)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(F);if(Q.call(B,"key")){F=e(k);var U=Object.keys(B).filter(function(re){return re!=="key"});A=0<U.length?"{key: someKey, "+U.join(": ..., ")+": ...}":"{key: someKey}",te[F+A]||(U=0<U.length?"{"+U.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var Vo;function ed(){return Vo||(Vo=1,process.env.NODE_ENV!=="production"&&function(){function e(T){if(T==null)return null;if(typeof T=="function")return T.$$typeof===z?null:T.displayName||T.name||null;if(typeof T=="string")return T;switch(T){case h:return"Fragment";case x:return"Profiler";case v:return"StrictMode";case k:return"Suspense";case _:return"SuspenseList";case $:return"Activity"}if(typeof T=="object")switch(typeof T.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),T.$$typeof){case b:return"Portal";case w:return(T.displayName||"Context")+".Provider";case y:return(T._context.displayName||"Context")+".Consumer";case S:var V=T.render;return T=T.displayName,T||(T=V.displayName||V.name||"",T=T!==""?"ForwardRef("+T+")":"ForwardRef"),T;case C:return V=T.displayName||null,V!==null?V:e(T.type)||"Memo";case E:V=T._payload,T=T._init;try{return e(T(V))}catch{}}return null}function t(T){return""+T}function n(T){try{t(T);var V=!1}catch{V=!0}if(V){V=console;var M=V.error,j=typeof Symbol=="function"&&Symbol.toStringTag&&T[Symbol.toStringTag]||T.constructor.name||"Object";return M.call(V,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",j),t(T)}}function r(T){if(T===h)return"<>";if(typeof T=="object"&&T!==null&&T.$$typeof===E)return"<...>";try{var V=e(T);return V?"<"+V+">":"<...>"}catch{return"<...>"}}function o(){var T=G.A;return T===null?null:T.getOwner()}function a(){return Error("react-stack-top-frame")}function s(T){if(K.call(T,"key")){var V=Object.getOwnPropertyDescriptor(T,"key").get;if(V&&V.isReactWarning)return!1}return T.key!==void 0}function i(T,V){function M(){Q||(Q=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",V))}M.isReactWarning=!0,Object.defineProperty(T,"key",{get:M,configurable:!0})}function l(){var T=e(this.type);return L[T]||(L[T]=!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.")),T=this.props.ref,T!==void 0?T:null}function d(T,V,M,j,I,R,J,A){return M=R.ref,T={$$typeof:g,type:T,key:V,props:R,_owner:I},(M!==void 0?M:null)!==null?Object.defineProperty(T,"ref",{enumerable:!1,get:l}):Object.defineProperty(T,"ref",{enumerable:!1,value:null}),T._store={},Object.defineProperty(T._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(T,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(T,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:J}),Object.defineProperty(T,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:A}),Object.freeze&&(Object.freeze(T.props),Object.freeze(T)),T}function f(T,V,M,j,I,R,J,A){var B=V.children;if(B!==void 0)if(j)if(te(B)){for(j=0;j<B.length;j++)m(B[j]);Object.freeze&&Object.freeze(B)}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 m(B);if(K.call(V,"key")){B=e(T);var Z=Object.keys(V).filter(function(se){return se!=="key"});j=0<Z.length?"{key: someKey, "+Z.join(": ..., ")+": ...}":"{key: someKey}",ee[B+j]||(Z=0<Z.length?"{"+Z.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} />`,A,F,U,F),te[F+A]=!0)}if(F=null,S!==void 0&&(r(S),F=""+S),s(B)&&(r(B.key),F=""+B.key),"key"in B){S={};for(var Z in B)Z!=="key"&&(S[Z]=B[Z])}else S=B;return F&&i(S,typeof k=="function"?k.displayName||k.name||"Unknown":k),d(k,F,I,D,o(),S,Y,P)}function p(k){typeof k=="object"&&k!==null&&k.$$typeof===h&&k._store&&(k._store.validated=1)}var g=ae,h=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),y=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),K=Symbol.for("react.client.reference"),X=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=Object.prototype.hasOwnProperty,ee=Array.isArray,W=console.createTask?console.createTask:function(){return null};g={"react-stack-bottom-frame":function(k){return k()}};var q,$={},H=g["react-stack-bottom-frame"].bind(g,a)(),N=W(n(a)),te={};ft.Fragment=m,ft.jsx=function(k,B,S,A,D){var I=1e4>X.recentlyCreatedOwnerStacks++;return f(k,B,S,!1,A,D,I?Error("react-stack-top-frame"):H,I?W(n(k)):N)},ft.jsxs=function(k,B,S,A,D){var I=1e4>X.recentlyCreatedOwnerStacks++;return f(k,B,S,!0,A,D,I?Error("react-stack-top-frame"):H,I?W(n(k)):N)}}()),ft}process.env.NODE_ENV==="production"?Sr.exports=sl():Sr.exports=il();var u=Sr.exports;function Fn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ve(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Fn(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Fn(e[o],null)}}}}function ne(...e){return l.useCallback(Ve(...e),e)}function Be(e){const t=ll(e),r=l.forwardRef((n,o)=>{const{children:a,...s}=n,i=l.Children.toArray(a),c=i.find(ul);if(c){const d=c.props.children,f=i.map(p=>p===c?l.Children.count(d)>1?l.Children.only(null):l.isValidElement(d)?d.props.children:null:p);return u.jsx(t,{...s,ref:o,children:l.isValidElement(d)?l.cloneElement(d,void 0,f):null})}return u.jsx(t,{...s,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var At=Be("Slot");function ll(e){const t=l.forwardRef((r,n)=>{const{children:o,...a}=r;if(l.isValidElement(o)){const s=fl(o),i=dl(a,o.props);return o.type!==l.Fragment&&(i.ref=n?Ve(n,s):s),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Vn=Symbol("radix.slottable");function cl(e){const t=({children:r})=>u.jsx(u.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Vn,t}function ul(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Vn}function dl(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{const c=a(...i);return o(...i),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function fl(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Bn(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Bn(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function zn(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Bn(e))&&(n&&(n+=" "),n+=t);return n}const Cr="-",pl=e=>{const t=hl(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const i=s.split(Cr);return i[0]===""&&i.length!==1&&i.shift(),Wn(i,t)||ml(s)},getConflictingClassGroupIds:(s,i)=>{const c=r[s]||[];return i&&n[s]?[...c,...n[s]]:c}}},Wn=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Wn(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(Cr);return(s=t.validators.find(({validator:i})=>i(a)))==null?void 0:s.classGroupId},Gn=/^\[(.+)\]$/,ml=e=>{if(Gn.test(e)){const t=Gn.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},hl=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)kr(r[o],n,o,t);return n},kr=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Hn(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(gl(o)){kr(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,s])=>{kr(s,Hn(t,a),r,n)})})},Hn=(e,t)=>{let r=e;return t.split(Cr).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},gl=e=>e.isThemeGetter,vl=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(a,s)=>{r.set(a,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let s=r.get(a);if(s!==void 0)return s;if((s=n.get(a))!==void 0)return o(a,s),s},set(a,s){r.has(a)?r.set(a,s):o(a,s)}}},Er="!",Rr=":",bl=Rr.length,xl=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let s=0,i=0,c=0,d;for(let v=0;v<o.length;v++){let m=o[v];if(s===0&&i===0){if(m===Rr){a.push(o.slice(c,v)),c=v+bl;continue}if(m==="/"){d=v;continue}}m==="["?s++:m==="]"?s--:m==="("?i++:m===")"&&i--}const f=a.length===0?o:o.substring(c),p=wl(f),g=p!==f,h=d&&d>c?d-c:void 0;return{modifiers:a,hasImportantModifier:g,baseClassName:p,maybePostfixModifierPosition:h}};if(t){const o=t+Rr,a=n;n=s=>s.startsWith(o)?a(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=a=>r({className:a,parseClassName:o})}return n},wl=e=>e.endsWith(Er)?e.substring(0,e.length-1):e.startsWith(Er)?e.substring(1):e,yl=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let a=[];return n.forEach(s=>{s[0]==="["||t[s]?(o.push(...a.sort(),s),a=[]):a.push(s)}),o.push(...a.sort()),o}},Sl=e=>({cache:vl(e.cacheSize),parseClassName:xl(e),sortModifiers:yl(e),...pl(e)}),Cl=/\s+/,kl=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],i=e.trim().split(Cl);let c="";for(let d=i.length-1;d>=0;d-=1){const f=i[d],{isExternal:p,modifiers:g,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:m}=r(f);if(p){c=f+(c.length>0?" "+c:c);continue}let b=!!m,x=n(b?v.substring(0,m):v);if(!x){if(!b){c=f+(c.length>0?" "+c:c);continue}if(x=n(v),!x){c=f+(c.length>0?" "+c:c);continue}b=!1}const w=a(g).join(":"),y=h?w+Er:w,C=y+x;if(s.includes(C))continue;s.push(C);const E=o(x,b);for(let T=0;T<E.length;++T){const _=E[T];s.push(y+_)}c=f+(c.length>0?" "+c:c)}return c};function El(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Un(t))&&(n&&(n+=" "),n+=r);return n}const Un=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Un(e[n]))&&(r&&(r+=" "),r+=t);return r};function Rl(e,...t){let r,n,o,a=s;function s(c){const d=t.reduce((f,p)=>p(f),e());return r=Sl(d),n=r.cache.get,o=r.cache.set,a=i,i(c)}function i(c){const d=n(c);if(d)return d;const f=kl(c,r);return o(c,f),f}return function(){return a(El.apply(null,arguments))}}const se=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Kn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Yn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,_l=/^\d+\/\d+$/,Nl=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Pl=/\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$/,Tl=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Al=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Il=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ye=e=>_l.test(e),J=e=>!!e&&!Number.isNaN(Number(e)),Ae=e=>!!e&&Number.isInteger(Number(e)),_r=e=>e.endsWith("%")&&J(e.slice(0,-1)),_e=e=>Nl.test(e),jl=()=>!0,Ol=e=>Pl.test(e)&&!Tl.test(e),qn=()=>!1,Ml=e=>Al.test(e),Dl=e=>Il.test(e),Ll=e=>!O(e)&&!M(e),$l=e=>qe(e,eo,qn),O=e=>Kn.test(e),ze=e=>qe(e,to,Ol),Nr=e=>qe(e,Wl,J),Xn=e=>qe(e,Jn,qn),Fl=e=>qe(e,Qn,Dl),It=e=>qe(e,ro,Ml),M=e=>Yn.test(e),pt=e=>Xe(e,to),Vl=e=>Xe(e,Gl),Zn=e=>Xe(e,Jn),Bl=e=>Xe(e,eo),zl=e=>Xe(e,Qn),jt=e=>Xe(e,ro,!0),qe=(e,t,r)=>{const n=Kn.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Xe=(e,t,r=!1)=>{const n=Yn.exec(e);return n?n[1]?t(n[1]):r:!1},Jn=e=>e==="position"||e==="percentage",Qn=e=>e==="image"||e==="url",eo=e=>e==="length"||e==="size"||e==="bg-size",to=e=>e==="length",Wl=e=>e==="number",Gl=e=>e==="family-name",ro=e=>e==="shadow",Hl=Rl(()=>{const e=se("color"),t=se("font"),r=se("text"),n=se("font-weight"),o=se("tracking"),a=se("leading"),s=se("breakpoint"),i=se("container"),c=se("spacing"),d=se("radius"),f=se("shadow"),p=se("inset-shadow"),g=se("text-shadow"),h=se("drop-shadow"),v=se("blur"),m=se("perspective"),b=se("aspect"),x=se("ease"),w=se("animate"),y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...C(),M,O],T=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],R=()=>[M,O,c],G=()=>[Ye,"full","auto",...R()],K=()=>[Ae,"none","subgrid",M,O],X=()=>["auto",{span:["full",Ae,M,O]},Ae,M,O],Q=()=>[Ae,"auto",M,O],ee=()=>["auto","min","max","fr",M,O],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],q=()=>["start","end","center","stretch","center-safe","end-safe"],$=()=>["auto",...R()],H=()=>[Ye,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],N=()=>[e,M,O],te=()=>[...C(),Zn,Xn,{position:[M,O]}],k=()=>["no-repeat",{repeat:["","x","y","space","round"]}],B=()=>["auto","cover","contain",Bl,$l,{size:[M,O]}],S=()=>[_r,pt,ze],A=()=>["","none","full",d,M,O],D=()=>["",J,pt,ze],I=()=>["solid","dashed","dotted","double"],Y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>[J,_r,Zn,Xn],F=()=>["","none",v,M,O],U=()=>["none",J,M,O],Z=()=>["none",J,M,O],re=()=>[J,M,O],oe=()=>[Ye,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[_e],breakpoint:[_e],color:[jl],container:[_e],"drop-shadow":[_e],ease:["in","out","in-out"],font:[Ll],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[_e],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[_e],shadow:[_e],spacing:["px",J],text:[_e],"text-shadow":[_e],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ye,O,M,b]}],container:["container"],columns:[{columns:[J,O,M,i]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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:E()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:G()}],"inset-x":[{"inset-x":G()}],"inset-y":[{"inset-y":G()}],start:[{start:G()}],end:[{end:G()}],top:[{top:G()}],right:[{right:G()}],bottom:[{bottom:G()}],left:[{left:G()}],visibility:["visible","invisible","collapse"],z:[{z:[Ae,"auto",M,O]}],basis:[{basis:[Ye,"full","auto",i,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[J,Ye,"auto","initial","none",O]}],grow:[{grow:["",J,M,O]}],shrink:[{shrink:["",J,M,O]}],order:[{order:[Ae,"first","last","none",M,O]}],"grid-cols":[{"grid-cols":K()}],"col-start-end":[{col:X()}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":K()}],"row-start-end":[{row:X()}],"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":ee()}],"auto-rows":[{"auto-rows":ee()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...q(),"normal"]}],"justify-self":[{"justify-self":["auto",...q()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...q(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...q(),"baseline"]}],"place-self":[{"place-self":["auto",...q()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:$()}],mx:[{mx:$()}],my:[{my:$()}],ms:[{ms:$()}],me:[{me:$()}],mt:[{mt:$()}],mr:[{mr:$()}],mb:[{mb:$()}],ml:[{ml:$()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:H()}],w:[{w:[i,"screen",...H()]}],"min-w":[{"min-w":[i,"screen","none",...H()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...H()]}],h:[{h:["screen","lh",...H()]}],"min-h":[{"min-h":["screen","lh","none",...H()]}],"max-h":[{"max-h":["screen","lh",...H()]}],"font-size":[{text:["base",r,pt,ze]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,M,Nr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",_r,O]}],"font-family":[{font:[Vl,O,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,M,O]}],"line-clamp":[{"line-clamp":[J,"none",M,Nr]}],leading:[{leading:[a,...R()]}],"list-image":[{"list-image":["none",M,O]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",M,O]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...I(),"wavy"]}],"text-decoration-thickness":[{decoration:[J,"from-font","auto",M,ze]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[J,"auto",M,O]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",M,O]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",M,O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:te()}],"bg-repeat":[{bg:k()}],"bg-size":[{bg:B()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ae,M,O],radial:["",M,O],conic:[Ae,M,O]},zl,Fl]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:S()}],"gradient-via-pos":[{via:S()}],"gradient-to-pos":[{to:S()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:A()}],"rounded-s":[{"rounded-s":A()}],"rounded-e":[{"rounded-e":A()}],"rounded-t":[{"rounded-t":A()}],"rounded-r":[{"rounded-r":A()}],"rounded-b":[{"rounded-b":A()}],"rounded-l":[{"rounded-l":A()}],"rounded-ss":[{"rounded-ss":A()}],"rounded-se":[{"rounded-se":A()}],"rounded-ee":[{"rounded-ee":A()}],"rounded-es":[{"rounded-es":A()}],"rounded-tl":[{"rounded-tl":A()}],"rounded-tr":[{"rounded-tr":A()}],"rounded-br":[{"rounded-br":A()}],"rounded-bl":[{"rounded-bl":A()}],"border-w":[{border:D()}],"border-w-x":[{"border-x":D()}],"border-w-y":[{"border-y":D()}],"border-w-s":[{"border-s":D()}],"border-w-e":[{"border-e":D()}],"border-w-t":[{"border-t":D()}],"border-w-r":[{"border-r":D()}],"border-w-b":[{"border-b":D()}],"border-w-l":[{"border-l":D()}],"divide-x":[{"divide-x":D()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":D()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...I(),"hidden","none"]}],"divide-style":[{divide:[...I(),"hidden","none"]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:[...I(),"none","hidden"]}],"outline-offset":[{"outline-offset":[J,M,O]}],"outline-w":[{outline:["",J,pt,ze]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",f,jt,It]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",p,jt,It]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[J,ze]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":D()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",g,jt,It]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[J,M,O]}],"mix-blend":[{"mix-blend":[...Y(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Y()}],"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":[J]}],"mask-image-linear-from-pos":[{"mask-linear-from":P()}],"mask-image-linear-to-pos":[{"mask-linear-to":P()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":P()}],"mask-image-t-to-pos":[{"mask-t-to":P()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":P()}],"mask-image-r-to-pos":[{"mask-r-to":P()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":P()}],"mask-image-b-to-pos":[{"mask-b-to":P()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":P()}],"mask-image-l-to-pos":[{"mask-l-to":P()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":P()}],"mask-image-x-to-pos":[{"mask-x-to":P()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":P()}],"mask-image-y-to-pos":[{"mask-y-to":P()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[M,O]}],"mask-image-radial-from-pos":[{"mask-radial-from":P()}],"mask-image-radial-to-pos":[{"mask-radial-to":P()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"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":C()}],"mask-image-conic-pos":[{"mask-conic":[J]}],"mask-image-conic-from-pos":[{"mask-conic-from":P()}],"mask-image-conic-to-pos":[{"mask-conic-to":P()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:te()}],"mask-repeat":[{mask:k()}],"mask-size":[{mask:B()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",M,O]}],filter:[{filter:["","none",M,O]}],blur:[{blur:F()}],brightness:[{brightness:[J,M,O]}],contrast:[{contrast:[J,M,O]}],"drop-shadow":[{"drop-shadow":["","none",h,jt,It]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",J,M,O]}],"hue-rotate":[{"hue-rotate":[J,M,O]}],invert:[{invert:["",J,M,O]}],saturate:[{saturate:[J,M,O]}],sepia:[{sepia:["",J,M,O]}],"backdrop-filter":[{"backdrop-filter":["","none",M,O]}],"backdrop-blur":[{"backdrop-blur":F()}],"backdrop-brightness":[{"backdrop-brightness":[J,M,O]}],"backdrop-contrast":[{"backdrop-contrast":[J,M,O]}],"backdrop-grayscale":[{"backdrop-grayscale":["",J,M,O]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[J,M,O]}],"backdrop-invert":[{"backdrop-invert":["",J,M,O]}],"backdrop-opacity":[{"backdrop-opacity":[J,M,O]}],"backdrop-saturate":[{"backdrop-saturate":[J,M,O]}],"backdrop-sepia":[{"backdrop-sepia":["",J,M,O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",M,O]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[J,"initial",M,O]}],ease:[{ease:["linear","initial",x,M,O]}],delay:[{delay:[J,M,O]}],animate:[{animate:["none",w,M,O]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,M,O]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:U()}],"rotate-x":[{"rotate-x":U()}],"rotate-y":[{"rotate-y":U()}],"rotate-z":[{"rotate-z":U()}],scale:[{scale:Z()}],"scale-x":[{"scale-x":Z()}],"scale-y":[{"scale-y":Z()}],"scale-z":[{"scale-z":Z()}],"scale-3d":["scale-3d"],skew:[{skew:re()}],"skew-x":[{"skew-x":re()}],"skew-y":[{"skew-y":re()}],transform:[{transform:[M,O,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:oe()}],"translate-x":[{"translate-x":oe()}],"translate-y":[{"translate-y":oe()}],"translate-z":[{"translate-z":oe()}],"translate-none":["translate-none"],accent:[{accent:N()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:N()}],"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",M,O]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",M,O]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[J,pt,ze,Nr]}],stroke:[{stroke:["none",...N()]}],"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 j(...e){return Hl(zn(e))}const no=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,oo=zn,le=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return oo(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(d=>{const f=r==null?void 0:r[d],p=a==null?void 0:a[d];if(f===null)return null;const g=no(f)||no(p);return o[d][g]}),i=r&&Object.entries(r).reduce((d,f)=>{let[p,g]=f;return g===void 0||(d[p]=g),d},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((d,f)=>{let{class:p,className:g,...h}=f;return Object.entries(h).every(v=>{let[m,b]=v;return Array.isArray(b)?b.includes({...a,...i}[m]):{...a,...i}[m]===b})?[...d,p,g]:d},[]);return oo(e,s,c,r==null?void 0:r.class,r==null?void 0:r.className)},Ul=le("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 cursor-pointer",{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 Ot({className:e,variant:t,size:r,asChild:n=!1,children:o,...a}){const s=n?At:"button";return u.jsx(s,{"data-slot":"button",className:j(Ul({variant:t,size:r}),e),...a,children:o})}function z(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Kl(e,t){const r=l.createContext(t),n=a=>{const{children:s,...i}=a,c=l.useMemo(()=>i,Object.values(i));return u.jsx(r.Provider,{value:c,children:s})};n.displayName=e+"Provider";function o(a){const s=l.useContext(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function de(e,t=[]){let r=[];function n(a,s){const i=l.createContext(s),c=r.length;r=[...r,s];const d=p=>{var x;const{scope:g,children:h,...v}=p,m=((x=g==null?void 0:g[e])==null?void 0:x[c])||i,b=l.useMemo(()=>v,Object.values(v));return u.jsx(m.Provider,{value:b,children:h})};d.displayName=a+"Provider";function f(p,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(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[d,f]}const o=()=>{const a=r.map(s=>l.createContext(s));return function(i){const c=(i==null?void 0:i[e])||a;return l.useMemo(()=>({[`__scope${e}`]:{...i,[e]:c}}),[i,c])}};return o.scopeName=e,[n,Yl(o,...t)]}function Yl(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=n.reduce((i,{useScope:c,scopeName:d})=>{const p=c(a)[`__scope${d}`];return{...i,...p}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}var ie=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},ql=l[" useInsertionEffect ".trim().toString()]||ie;function we({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,s]=Xl({defaultProp:t,onChange:r}),i=e!==void 0,c=i?e:o;{const f=l.useRef(e!==void 0);l.useEffect(()=>{const p=f.current;p!==i&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=i},[i,n])}const d=l.useCallback(f=>{var p;if(i){const g=Zl(f)?f(e):f;g!==e&&((p=s.current)==null||p.call(s,g))}else a(f)},[i,e,a,s]);return[c,d]}function Xl({defaultProp:e,onChange:t}){const[r,n]=l.useState(e),o=l.useRef(r),a=l.useRef(t);return ql(()=>{a.current=t},[t]),l.useEffect(()=>{var s;o.current!==r&&((s=a.current)==null||s.call(a,r),o.current=r)},[r,o]),[r,n,a]}function Zl(e){return typeof e=="function"}function Mt(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])}function Dt(e){const[t,r]=l.useState(void 0);return ie(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,i;if("borderBoxSize"in a){const c=a.borderBoxSize,d=Array.isArray(c)?c[0]:c;s=d.inlineSize,i=d.blockSize}else s=e.offsetWidth,i=e.offsetHeight;r({width:s,height:i})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Jl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],V=Jl.reduce((e,t)=>{const r=Be(`Primitive.${t}`),n=l.forwardRef((o,a)=>{const{asChild:s,...i}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(c,{...i,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Ql(e,t){e&&Tt.flushSync(()=>e.dispatchEvent(t))}var Lt="Switch",[ec,sg]=de(Lt),[tc,rc]=ec(Lt),ao=l.forwardRef((e,t)=>{const{__scopeSwitch:r,name:n,checked:o,defaultChecked:a,required:s,disabled:i,value:c="on",onCheckedChange:d,form:f,...p}=e,[g,h]=l.useState(null),v=ne(t,y=>h(y)),m=l.useRef(!1),b=g?f||!!g.closest("form"):!0,[x,w]=we({prop:o,defaultProp:a??!1,onChange:d,caller:Lt});return u.jsxs(tc,{scope:r,checked:x,disabled:i,children:[u.jsx(V.button,{type:"button",role:"switch","aria-checked":x,"aria-required":s,"data-state":co(x),"data-disabled":i?"":void 0,disabled:i,value:c,...p,ref:v,onClick:z(e.onClick,y=>{w(C=>!C),b&&(m.current=y.isPropagationStopped(),m.current||y.stopPropagation())})}),b&&u.jsx(lo,{control:g,bubbles:!m.current,name:n,value:c,checked:x,required:s,disabled:i,form:f,style:{transform:"translateX(-100%)"}})]})});ao.displayName=Lt;var so="SwitchThumb",io=l.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,o=rc(so,r);return u.jsx(V.span,{"data-state":co(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:t})});io.displayName=so;var nc="SwitchBubbleInput",lo=l.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:n=!0,...o},a)=>{const s=l.useRef(null),i=ne(s,a),c=Mt(r),d=Dt(t);return l.useEffect(()=>{const f=s.current;if(!f)return;const p=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(p,"checked").set;if(c!==r&&h){const v=new Event("click",{bubbles:n});h.call(f,r),f.dispatchEvent(v)}},[c,r,n]),u.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:i,style:{...o.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});lo.displayName=nc;function co(e){return e?"checked":"unchecked"}var oc=ao,ac=io;const sc=le(["group relative inline-flex items-center cursor-pointer transition-all duration-200 ease-in-out","focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-100","h-[13px] w-[25px] rounded-full p-[1px]","bg-neutral-black-2","hover:shadow-[0_0_0_3px_var(--color-neutral-black-5)]","focus-visible:shadow-[0_0_0_3px_var(--color-neutral-black-5)]","active:shadow-[0_0_0_3px_var(--color-neutral-black-5)]","data-[state=checked]:bg-neutral-black-1 data-[state=checked]:hover:shadow-[0_0_0_3px_rgba(10,10,10,.1)]","data-[state=checked]:focus-visible:shadow-[0_0_0_3px_rgba(10,10,10,0.2)]","data-[state=checked]:active:shadow-[0_0_0_3px_rgba(10,10,10,0.2)]","disabled:bg-neutral-black-5 disabled:hover:shadow-none disabled:focus-visible:shadow-none disabled:active:shadow-none","data-[state=checked]:disabled:bg-neutral-black-5 data-[state=checked]:disabled:hover:shadow-none data-[state=checked]:disabled:focus-visible:shadow-none data-[state=checked]:disabled:active:shadow-none"]),ic=le(["block rounded-full transition-transform duration-200 ease-in-out","shadow-[0_3px_6px_-3px_rgba(0,0,0,0.05),0_2px_4px_-2px_rgba(0,0,0,0.05)]","h-[11px] w-[11px] bg-white","translate-x-0 group-data-[state=checked]:translate-x-[12px]"]);function lc({className:e,...t}){return u.jsx(oc,{"data-slot":"switch",className:j(sc(),e),...t,children:u.jsx(ac,{"data-slot":"switch-thumb",className:j(ic())})})}function uo(e){const t=e+"CollectionProvider",[r,n]=de(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{const{scope:b,children:x}=m,w=ae.useRef(null),y=ae.useRef(new Map).current;return u.jsx(o,{scope:b,itemMap:y,collectionRef:w,children:x})};s.displayName=t;const i=e+"CollectionSlot",c=Be(i),d=ae.forwardRef((m,b)=>{const{scope:x,children:w}=m,y=a(i,x),C=ne(b,y.collectionRef);return u.jsx(c,{ref:C,children:w})});d.displayName=i;const f=e+"CollectionItemSlot",p="data-radix-collection-item",g=Be(f),h=ae.forwardRef((m,b)=>{const{scope:x,children:w,...y}=m,C=ae.useRef(null),E=ne(b,C),T=a(f,x);return ae.useEffect(()=>(T.itemMap.set(C,{ref:C,...y}),()=>void T.itemMap.delete(C))),u.jsx(g,{[p]:"",ref:E,children:w})});h.displayName=f;function v(m){const b=a(e+"CollectionConsumer",m);return ae.useCallback(()=>{const w=b.collectionRef.current;if(!w)return[];const y=Array.from(w.querySelectorAll(`[${p}]`));return Array.from(b.itemMap.values()).sort((T,_)=>y.indexOf(T.ref.current)-y.indexOf(_.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:s,Slot:d,ItemSlot:h},v,n]}var cc=l[" useId ".trim().toString()]||(()=>{}),uc=0;function ce(e){const[t,r]=l.useState(cc());return ie(()=>{r(n=>n??String(uc++))},[e]),t?`radix-${t}`:""}function Ne(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}var dc=l.createContext(void 0);function $t(e){const t=l.useContext(dc);return e||t||"ltr"}var Pr="rovingFocusGroup.onEntryFocus",fc={bubbles:!1,cancelable:!0},mt="RovingFocusGroup",[Tr,fo,pc]=uo(mt),[mc,Ft]=de(mt,[pc]),[hc,gc]=mc(mt),po=l.forwardRef((e,t)=>u.jsx(Tr.Provider,{scope:e.__scopeRovingFocusGroup,children:u.jsx(Tr.Slot,{scope:e.__scopeRovingFocusGroup,children:u.jsx(vc,{...e,ref:t})})}));po.displayName=mt;var vc=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...p}=e,g=l.useRef(null),h=ne(t,g),v=$t(a),[m,b]=we({prop:s,defaultProp:i??null,onChange:c,caller:mt}),[x,w]=l.useState(!1),y=Ne(d),C=fo(r),E=l.useRef(!1),[T,_]=l.useState(0);return l.useEffect(()=>{const R=g.current;if(R)return R.addEventListener(Pr,y),()=>R.removeEventListener(Pr,y)},[y]),u.jsx(hc,{scope:r,orientation:n,dir:v,loop:o,currentTabStopId:m,onItemFocus:l.useCallback(R=>b(R),[b]),onItemShiftTab:l.useCallback(()=>w(!0),[]),onFocusableItemAdd:l.useCallback(()=>_(R=>R+1),[]),onFocusableItemRemove:l.useCallback(()=>_(R=>R-1),[]),children:u.jsx(V.div,{tabIndex:x||T===0?-1:0,"data-orientation":n,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:z(e.onMouseDown,()=>{E.current=!0}),onFocus:z(e.onFocus,R=>{const G=!E.current;if(R.target===R.currentTarget&&G&&!x){const K=new CustomEvent(Pr,fc);if(R.currentTarget.dispatchEvent(K),!K.defaultPrevented){const X=C().filter($=>$.focusable),Q=X.find($=>$.active),ee=X.find($=>$.id===m),q=[Q,ee,...X].filter(Boolean).map($=>$.ref.current);go(q,f)}}E.current=!1}),onBlur:z(e.onBlur,()=>w(!1))})})}),mo="RovingFocusGroupItem",ho=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:s,...i}=e,c=ce(),d=a||c,f=gc(mo,r),p=f.currentTabStopId===d,g=fo(r),{onFocusableItemAdd:h,onFocusableItemRemove:v,currentTabStopId:m}=f;return l.useEffect(()=>{if(n)return h(),()=>v()},[n,h,v]),u.jsx(Tr.ItemSlot,{scope:r,id:d,focusable:n,active:o,children:u.jsx(V.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...i,ref:t,onMouseDown:z(e.onMouseDown,b=>{n?f.onItemFocus(d):b.preventDefault()}),onFocus:z(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:z(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){f.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const x=wc(b,f.orientation,f.dir);if(x!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let y=g().filter(C=>C.focusable).map(C=>C.ref.current);if(x==="last")y.reverse();else if(x==="prev"||x==="next"){x==="prev"&&y.reverse();const C=y.indexOf(b.currentTarget);y=f.loop?yc(y,C+1):y.slice(C+1)}setTimeout(()=>go(y))}}),children:typeof s=="function"?s({isCurrentTabStop:p,hasTabStop:m!=null}):s})})});ho.displayName=mo;var bc={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function xc(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function wc(e,t,r){const n=xc(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return bc[n]}function go(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function yc(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var vo=po,bo=ho;function Sc(e,t){return l.useReducer((r,n)=>t[r][n]??r,e)}var he=e=>{const{present:t,children:r}=e,n=Cc(t),o=typeof r=="function"?r({present:n.isPresent}):l.Children.only(r),a=ne(n.ref,kc(o));return typeof r=="function"||n.isPresent?l.cloneElement(o,{ref:a}):null};he.displayName="Presence";function Cc(e){const[t,r]=l.useState(),n=l.useRef(null),o=l.useRef(e),a=l.useRef("none"),s=e?"mounted":"unmounted",[i,c]=Sc(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const d=Vt(n.current);a.current=i==="mounted"?d:"none"},[i]),ie(()=>{const d=n.current,f=o.current;if(f!==e){const g=a.current,h=Vt(d);e?c("MOUNT"):h==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(f&&g!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ie(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,p=h=>{const m=Vt(n.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",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},g=h=>{h.target===t&&(a.current=Vt(n.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:l.useCallback(d=>{n.current=d?getComputedStyle(d):null,r(d)},[])}}function Vt(e){return(e==null?void 0:e.animationName)||"none"}function kc(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Ar="Radio",[Ec,xo]=de(Ar),[Rc,_c]=Ec(Ar),wo=l.forwardRef((e,t)=>{const{__scopeRadio:r,name:n,checked:o=!1,required:a,disabled:s,value:i="on",onCheck:c,form:d,...f}=e,[p,g]=l.useState(null),h=ne(t,b=>g(b)),v=l.useRef(!1),m=p?d||!!p.closest("form"):!0;return u.jsxs(Rc,{scope:r,checked:o,disabled:s,children:[u.jsx(V.button,{type:"button",role:"radio","aria-checked":o,"data-state":ko(o),"data-disabled":s?"":void 0,disabled:s,value:i,...f,ref:h,onClick:z(e.onClick,b=>{o||c==null||c(),m&&(v.current=b.isPropagationStopped(),v.current||b.stopPropagation())})}),m&&u.jsx(Co,{control:p,bubbles:!v.current,name:n,value:i,checked:o,required:a,disabled:s,form:d,style:{transform:"translateX(-100%)"}})]})});wo.displayName=Ar;var yo="RadioIndicator",So=l.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:n,...o}=e,a=_c(yo,r);return u.jsx(he,{present:n||a.checked,children:u.jsx(V.span,{"data-state":ko(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});So.displayName=yo;var Nc="RadioBubbleInput",Co=l.forwardRef(({__scopeRadio:e,control:t,checked:r,bubbles:n=!0,...o},a)=>{const s=l.useRef(null),i=ne(s,a),c=Mt(r),d=Dt(t);return l.useEffect(()=>{const f=s.current;if(!f)return;const p=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(p,"checked").set;if(c!==r&&h){const v=new Event("click",{bubbles:n});h.call(f,r),f.dispatchEvent(v)}},[c,r,n]),u.jsx(V.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:i,style:{...o.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Co.displayName=Nc;function ko(e){return e?"checked":"unchecked"}var Pc=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Bt="RadioGroup",[Tc,ig]=de(Bt,[Ft,xo]),Eo=Ft(),Ro=xo(),[Ac,Ic]=Tc(Bt),_o=l.forwardRef((e,t)=>{const{__scopeRadioGroup:r,name:n,defaultValue:o,value:a,required:s=!1,disabled:i=!1,orientation:c,dir:d,loop:f=!0,onValueChange:p,...g}=e,h=Eo(r),v=$t(d),[m,b]=we({prop:a,defaultProp:o??null,onChange:p,caller:Bt});return u.jsx(Ac,{scope:r,name:n,required:s,disabled:i,value:m,onValueChange:b,children:u.jsx(vo,{asChild:!0,...h,orientation:c,dir:v,loop:f,children:u.jsx(V.div,{role:"radiogroup","aria-required":s,"aria-orientation":c,"data-disabled":i?"":void 0,dir:v,...g,ref:t})})})});_o.displayName=Bt;var No="RadioGroupItem",Po=l.forwardRef((e,t)=>{const{__scopeRadioGroup:r,disabled:n,...o}=e,a=Ic(No,r),s=a.disabled||n,i=Eo(r),c=Ro(r),d=l.useRef(null),f=ne(t,d),p=a.value===o.value,g=l.useRef(!1);return l.useEffect(()=>{const h=m=>{Pc.includes(m.key)&&(g.current=!0)},v=()=>g.current=!1;return document.addEventListener("keydown",h),document.addEventListener("keyup",v),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",v)}},[]),u.jsx(bo,{asChild:!0,...i,focusable:!s,active:p,children:u.jsx(wo,{disabled:s,required:a.required,checked:p,...c,...o,name:a.name,ref:f,onCheck:()=>a.onValueChange(o.value),onKeyDown:z(h=>{h.key==="Enter"&&h.preventDefault()}),onFocus:z(o.onFocus,()=>{var h;g.current&&((h=d.current)==null||h.click())})})})});Po.displayName=No;var jc="RadioGroupIndicator",To=l.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...n}=e,o=Ro(r);return u.jsx(So,{...o,...n,ref:t})});To.displayName=jc;var Ao=_o,Io=Po,Oc=To;const Mc=()=>({root:j("relative inline-flex items-center cursor-pointer","data-[disabled]:cursor-not-allowed"),indicator:j("relative flex items-center justify-center","w-4 h-4 rounded-full border-2 transition-all duration-200","border-neutral-black-2","hover:shadow-[0_0_0_3px_var(--color-neutral-black-5)] hover:bg-neutral-black-5","focus:shadow-[0_0_0_3px_var(--color-neutral-black-3)] focus:bg-neutral-black-3","data-[state=checked]:border-neutral-black-1","data-[state=checked]:hover:shadow-[0_0_0_3px_var(--color-neutral-black-4)]","data-[state=checked]:hover:bg-neutral-black-4","data-[state=checked]:focus:shadow-[0_0_0_3px_var(--color-neutral-black-1)]","data-[state=checked]:focus:bg-neutral-black-1","data-[disabled]:hover:shadow-none data-[disabled]:hover:bg-transparent data-[disabled]:data-[state=checked]:bg-transparent data-[disabled]:data-[state=checked]:shadow-none data-[disabled]:focus:shadow-none data-[disabled]:border-neutral-black-3"),innerCircle:j("w-2 h-2 rounded-full transition-all duration-200","bg-neutral-black-1"),label:j("ml-2.5 text-md cursor-pointer select-none","data-[disabled]:cursor-not-allowed")}),jo=l.forwardRef(({className:e,...t},r)=>u.jsx(Ao,{className:j("grid gap-2",e),...t,ref:r}));jo.displayName=Ao.displayName;const Oo=l.forwardRef(({children:e,disabled:t,...r},n)=>{const o=Mc();return u.jsxs("label",{className:o.root,"data-disabled":t,children:[u.jsx(Io,{ref:n,className:j(o.indicator),disabled:t,...r,children:u.jsx(Oc,{className:"flex items-center justify-center",children:u.jsx("div",{className:o.innerCircle})})}),e&&u.jsx("span",{className:o.label,"data-disabled":t,children:e})]})});Oo.displayName=Io.displayName;var zt="Checkbox",[Dc,lg]=de(zt),[Lc,Ir]=Dc(zt);function $c(e){const{__scopeCheckbox:t,checked:r,children:n,defaultChecked:o,disabled:a,form:s,name:i,onCheckedChange:c,required:d,value:f="on",internal_do_not_use_render:p}=e,[g,h]=we({prop:r,defaultProp:o??!1,onChange:c,caller:zt}),[v,m]=l.useState(null),[b,x]=l.useState(null),w=l.useRef(!1),y=v?!!s||!!v.closest("form"):!0,C={checked:g,disabled:a,setChecked:h,control:v,setControl:m,name:i,form:s,value:f,hasConsumerStoppedPropagationRef:w,required:d,defaultChecked:Ie(o)?!1:o,isFormControl:y,bubbleInput:b,setBubbleInput:x};return u.jsx(Lc,{scope:t,...C,children:Fc(p)?p(C):n})}var Mo="CheckboxTrigger",Do=l.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...n},o)=>{const{control:a,value:s,disabled:i,checked:c,required:d,setControl:f,setChecked:p,hasConsumerStoppedPropagationRef:g,isFormControl:h,bubbleInput:v}=Ir(Mo,e),m=ne(o,f),b=l.useRef(c);return l.useEffect(()=>{const x=a==null?void 0:a.form;if(x){const w=()=>p(b.current);return x.addEventListener("reset",w),()=>x.removeEventListener("reset",w)}},[a,p]),u.jsx(V.button,{type:"button",role:"checkbox","aria-checked":Ie(c)?"mixed":c,"aria-required":d,"data-state":zo(c),"data-disabled":i?"":void 0,disabled:i,value:s,...n,ref:m,onKeyDown:z(t,x=>{x.key==="Enter"&&x.preventDefault()}),onClick:z(r,x=>{p(w=>Ie(w)?!0:!w),v&&h&&(g.current=x.isPropagationStopped(),g.current||x.stopPropagation())})})});Do.displayName=Mo;var Lo=l.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:n,checked:o,defaultChecked:a,required:s,disabled:i,value:c,onCheckedChange:d,form:f,...p}=e;return u.jsx($c,{__scopeCheckbox:r,checked:o,defaultChecked:a,disabled:i,required:s,onCheckedChange:d,name:n,form:f,value:c,internal_do_not_use_render:({isFormControl:g})=>u.jsxs(u.Fragment,{children:[u.jsx(Do,{...p,ref:t,__scopeCheckbox:r}),g&&u.jsx(Bo,{__scopeCheckbox:r})]})})});Lo.displayName=zt;var $o="CheckboxIndicator",Fo=l.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...o}=e,a=Ir($o,r);return u.jsx(he,{present:n||Ie(a.checked)||a.checked===!0,children:u.jsx(V.span,{"data-state":zo(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});Fo.displayName=$o;var Vo="CheckboxBubbleInput",Bo=l.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:n,hasConsumerStoppedPropagationRef:o,checked:a,defaultChecked:s,required:i,disabled:c,name:d,value:f,form:p,bubbleInput:g,setBubbleInput:h}=Ir(Vo,e),v=ne(r,h),m=Mt(a),b=Dt(n);l.useEffect(()=>{const w=g;if(!w)return;const y=window.HTMLInputElement.prototype,E=Object.getOwnPropertyDescriptor(y,"checked").set,T=!o.current;if(m!==a&&E){const _=new Event("click",{bubbles:T});w.indeterminate=Ie(a),E.call(w,Ie(a)?!1:a),w.dispatchEvent(_)}},[g,m,a,o]);const x=l.useRef(Ie(a)?!1:a);return u.jsx(V.input,{type:"checkbox","aria-hidden":!0,defaultChecked:s??x.current,required:i,disabled:c,name:d,value:f,form:p,...t,tabIndex:-1,ref:v,style:{...t.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Bo.displayName=Vo;function Fc(e){return typeof e=="function"}function Ie(e){return e==="indeterminate"}function zo(e){return Ie(e)?"indeterminate":e?"checked":"unchecked"}/**
22
+ <%s key={someKey} {...props} />`,j,B,Z,B),ee[B+j]=!0)}if(B=null,M!==void 0&&(n(M),B=""+M),s(V)&&(n(V.key),B=""+V.key),"key"in V){M={};for(var ne in V)ne!=="key"&&(M[ne]=V[ne])}else M=V;return B&&i(M,typeof T=="function"?T.displayName||T.name||"Unknown":T),d(T,B,R,I,o(),M,J,A)}function m(T){typeof T=="object"&&T!==null&&T.$$typeof===g&&T._store&&(T._store.validated=1)}var p=O,g=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),w=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),z=Symbol.for("react.client.reference"),G=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=Object.prototype.hasOwnProperty,te=Array.isArray,U=console.createTask?console.createTask:function(){return null};p={"react-stack-bottom-frame":function(T){return T()}};var Q,L={},X=p["react-stack-bottom-frame"].bind(p,a)(),P=U(r(a)),ee={};Ht.Fragment=h,Ht.jsx=function(T,V,M,j,I){var R=1e4>G.recentlyCreatedOwnerStacks++;return f(T,V,M,!1,j,I,R?Error("react-stack-top-frame"):X,R?U(r(T)):P)},Ht.jsxs=function(T,V,M,j,I){var R=1e4>G.recentlyCreatedOwnerStacks++;return f(T,V,M,!0,j,I,R?Error("react-stack-top-frame"):X,R?U(r(T)):P)}}()),Ht}process.env.NODE_ENV==="production"?ir.exports=Jc():ir.exports=ed();var c=ir.exports;function Yo(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ct(...e){return t=>{let n=!1;const r=e.map(o=>{const a=Yo(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():Yo(e[o],null)}}}}function le(...e){return u.useCallback(ct(...e),e)}function dt(e){const t=td(e),n=u.forwardRef((r,o)=>{const{children:a,...s}=r,i=u.Children.toArray(a),l=i.find(rd);if(l){const d=l.props.children,f=i.map(m=>m===l?u.Children.count(d)>1?u.Children.only(null):u.isValidElement(d)?d.props.children:null:m);return c.jsx(t,{...s,ref:o,children:u.isValidElement(d)?u.cloneElement(d,void 0,f):null})}return c.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var Ge=dt("Slot");function td(e){const t=u.forwardRef((n,r)=>{const{children:o,...a}=n;if(u.isValidElement(o)){const s=ad(o),i=od(a,o.props);return o.type!==u.Fragment&&(i.ref=r?ct(r,s):s),u.cloneElement(o,i)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ho=Symbol("radix.slottable");function nd(e){const t=({children:n})=>c.jsx(c.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Ho,t}function rd(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ho}function od(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...i)=>{const l=a(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function ad(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 Go(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=Go(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Uo(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Go(e))&&(r&&(r+=" "),r+=t);return r}const lr="-",sd=e=>{const t=ld(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const i=s.split(lr);return i[0]===""&&i.length!==1&&i.shift(),qo(i,t)||id(s)},getConflictingClassGroupIds:(s,i)=>{const l=n[s]||[];return i&&r[s]?[...l,...r[s]]:l}}},qo=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?qo(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(lr);return(s=t.validators.find(({validator:i})=>i(a)))==null?void 0:s.classGroupId},Ko=/^\[(.+)\]$/,id=e=>{if(Ko.test(e)){const t=Ko.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},ld=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)cr(n[o],r,o,t);return r},cr=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Xo(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(cd(o)){cr(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,s])=>{cr(s,Xo(t,a),n,r)})})},Xo=(e,t)=>{let n=e;return t.split(lr).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},cd=e=>e.isThemeGetter,dd=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(a,s)=>{n.set(a,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let s=n.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return o(a,s),s},set(a,s){n.has(a)?n.set(a,s):o(a,s)}}},dr="!",ur=":",ud=ur.length,fd=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const a=[];let s=0,i=0,l=0,d;for(let b=0;b<o.length;b++){let h=o[b];if(s===0&&i===0){if(h===ur){a.push(o.slice(l,b)),l=b+ud;continue}if(h==="/"){d=b;continue}}h==="["?s++:h==="]"?s--:h==="("?i++:h===")"&&i--}const f=a.length===0?o:o.substring(l),m=md(f),p=m!==f,g=d&&d>l?d-l:void 0;return{modifiers:a,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:g}};if(t){const o=t+ur,a=r;r=s=>s.startsWith(o)?a(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=a=>n({className:a,parseClassName:o})}return r},md=e=>e.endsWith(dr)?e.substring(0,e.length-1):e.startsWith(dr)?e.substring(1):e,hd=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let a=[];return r.forEach(s=>{s[0]==="["||t[s]?(o.push(...a.sort(),s),a=[]):a.push(s)}),o.push(...a.sort()),o}},pd=e=>({cache:dd(e.cacheSize),parseClassName:fd(e),sortModifiers:hd(e),...sd(e)}),gd=/\s+/,bd=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],i=e.trim().split(gd);let l="";for(let d=i.length-1;d>=0;d-=1){const f=i[d],{isExternal:m,modifiers:p,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:h}=n(f);if(m){l=f+(l.length>0?" "+l:l);continue}let v=!!h,x=r(v?b.substring(0,h):b);if(!x){if(!v){l=f+(l.length>0?" "+l:l);continue}if(x=r(b),!x){l=f+(l.length>0?" "+l:l);continue}v=!1}const y=a(p).join(":"),w=g?y+dr:y,S=w+x;if(s.includes(S))continue;s.push(S);const k=o(x,v);for(let _=0;_<k.length;++_){const C=k[_];s.push(w+C)}l=f+(l.length>0?" "+l:l)}return l};function vd(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Zo(t))&&(r&&(r+=" "),r+=n);return r}const Zo=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Zo(e[r]))&&(n&&(n+=" "),n+=t);return n};function xd(e,...t){let n,r,o,a=s;function s(l){const d=t.reduce((f,m)=>m(f),e());return n=pd(d),r=n.cache.get,o=n.cache.set,a=i,i(l)}function i(l){const d=r(l);if(d)return d;const f=bd(l,n);return o(l,f),f}return function(){return a(vd.apply(null,arguments))}}const pe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Qo=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Jo=/^\((?:(\w[\w-]*):)?(.+)\)$/i,yd=/^\d+\/\d+$/,wd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,kd=/\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$/,Sd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Cd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Nd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,kt=e=>yd.test(e),oe=e=>!!e&&!Number.isNaN(Number(e)),Je=e=>!!e&&Number.isInteger(Number(e)),fr=e=>e.endsWith("%")&&oe(e.slice(0,-1)),Ue=e=>wd.test(e),Ed=()=>!0,_d=e=>kd.test(e)&&!Sd.test(e),ea=()=>!1,Md=e=>Cd.test(e),Od=e=>Nd.test(e),Td=e=>!W(e)&&!F(e),Pd=e=>St(e,aa,ea),W=e=>Qo.test(e),ut=e=>St(e,sa,_d),mr=e=>St(e,Id,oe),ta=e=>St(e,ra,ea),Dd=e=>St(e,oa,Od),bn=e=>St(e,ia,Md),F=e=>Jo.test(e),Gt=e=>Ct(e,sa),Ad=e=>Ct(e,Wd),na=e=>Ct(e,ra),jd=e=>Ct(e,aa),Rd=e=>Ct(e,oa),vn=e=>Ct(e,ia,!0),St=(e,t,n)=>{const r=Qo.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ct=(e,t,n=!1)=>{const r=Jo.exec(e);return r?r[1]?t(r[1]):n:!1},ra=e=>e==="position"||e==="percentage",oa=e=>e==="image"||e==="url",aa=e=>e==="length"||e==="size"||e==="bg-size",sa=e=>e==="length",Id=e=>e==="number",Wd=e=>e==="family-name",ia=e=>e==="shadow",Fd=xd(()=>{const e=pe("color"),t=pe("font"),n=pe("text"),r=pe("font-weight"),o=pe("tracking"),a=pe("leading"),s=pe("breakpoint"),i=pe("container"),l=pe("spacing"),d=pe("radius"),f=pe("shadow"),m=pe("inset-shadow"),p=pe("text-shadow"),g=pe("drop-shadow"),b=pe("blur"),h=pe("perspective"),v=pe("aspect"),x=pe("ease"),y=pe("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...S(),F,W],_=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto","contain","none"],E=()=>[F,W,l],$=()=>[kt,"full","auto",...E()],z=()=>[Je,"none","subgrid",F,W],G=()=>["auto",{span:["full",Je,F,W]},Je,F,W],K=()=>[Je,"auto",F,W],te=()=>["auto","min","max","fr",F,W],U=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Q=()=>["start","end","center","stretch","center-safe","end-safe"],L=()=>["auto",...E()],X=()=>[kt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],P=()=>[e,F,W],ee=()=>[...S(),na,ta,{position:[F,W]}],T=()=>["no-repeat",{repeat:["","x","y","space","round"]}],V=()=>["auto","cover","contain",jd,Pd,{size:[F,W]}],M=()=>[fr,Gt,ut],j=()=>["","none","full",d,F,W],I=()=>["",oe,Gt,ut],R=()=>["solid","dashed","dotted","double"],J=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],A=()=>[oe,fr,na,ta],B=()=>["","none",b,F,W],Z=()=>["none",oe,F,W],ne=()=>["none",oe,F,W],se=()=>[oe,F,W],ie=()=>[kt,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ue],breakpoint:[Ue],color:[Ed],container:[Ue],"drop-shadow":[Ue],ease:["in","out","in-out"],font:[Td],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ue],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ue],shadow:[Ue],spacing:["px",oe],text:[Ue],"text-shadow":[Ue],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",kt,W,F,v]}],container:["container"],columns:[{columns:[oe,W,F,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:k()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{start:$()}],end:[{end:$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[Je,"auto",F,W]}],basis:[{basis:[kt,"full","auto",i,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[oe,kt,"auto","initial","none",W]}],grow:[{grow:["",oe,F,W]}],shrink:[{shrink:["",oe,F,W]}],order:[{order:[Je,"first","last","none",F,W]}],"grid-cols":[{"grid-cols":z()}],"col-start-end":[{col:G()}],"col-start":[{"col-start":K()}],"col-end":[{"col-end":K()}],"grid-rows":[{"grid-rows":z()}],"row-start-end":[{row:G()}],"row-start":[{"row-start":K()}],"row-end":[{"row-end":K()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...U(),"normal"]}],"justify-items":[{"justify-items":[...Q(),"normal"]}],"justify-self":[{"justify-self":["auto",...Q()]}],"align-content":[{content:["normal",...U()]}],"align-items":[{items:[...Q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Q(),{baseline:["","last"]}]}],"place-content":[{"place-content":U()}],"place-items":[{"place-items":[...Q(),"baseline"]}],"place-self":[{"place-self":["auto",...Q()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:L()}],mx:[{mx:L()}],my:[{my:L()}],ms:[{ms:L()}],me:[{me:L()}],mt:[{mt:L()}],mr:[{mr:L()}],mb:[{mb:L()}],ml:[{ml:L()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],w:[{w:[i,"screen",...X()]}],"min-w":[{"min-w":[i,"screen","none",...X()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",n,Gt,ut]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,F,mr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",fr,W]}],"font-family":[{font:[Ad,W,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,F,W]}],"line-clamp":[{"line-clamp":[oe,"none",F,mr]}],leading:[{leading:[a,...E()]}],"list-image":[{"list-image":["none",F,W]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",F,W]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...R(),"wavy"]}],"text-decoration-thickness":[{decoration:[oe,"from-font","auto",F,ut]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[oe,"auto",F,W]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",F,W]}],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",F,W]}],"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:T()}],"bg-size":[{bg:V()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Je,F,W],radial:["",F,W],conic:[Je,F,W]},Rd,Dd]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:M()}],"gradient-via-pos":[{via:M()}],"gradient-to-pos":[{to:M()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:j()}],"rounded-s":[{"rounded-s":j()}],"rounded-e":[{"rounded-e":j()}],"rounded-t":[{"rounded-t":j()}],"rounded-r":[{"rounded-r":j()}],"rounded-b":[{"rounded-b":j()}],"rounded-l":[{"rounded-l":j()}],"rounded-ss":[{"rounded-ss":j()}],"rounded-se":[{"rounded-se":j()}],"rounded-ee":[{"rounded-ee":j()}],"rounded-es":[{"rounded-es":j()}],"rounded-tl":[{"rounded-tl":j()}],"rounded-tr":[{"rounded-tr":j()}],"rounded-br":[{"rounded-br":j()}],"rounded-bl":[{"rounded-bl":j()}],"border-w":[{border:I()}],"border-w-x":[{"border-x":I()}],"border-w-y":[{"border-y":I()}],"border-w-s":[{"border-s":I()}],"border-w-e":[{"border-e":I()}],"border-w-t":[{"border-t":I()}],"border-w-r":[{"border-r":I()}],"border-w-b":[{"border-b":I()}],"border-w-l":[{"border-l":I()}],"divide-x":[{"divide-x":I()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":I()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...R(),"hidden","none"]}],"divide-style":[{divide:[...R(),"hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...R(),"none","hidden"]}],"outline-offset":[{"outline-offset":[oe,F,W]}],"outline-w":[{outline:["",oe,Gt,ut]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",f,vn,bn]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",m,vn,bn]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:I()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[oe,ut]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":I()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",p,vn,bn]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[oe,F,W]}],"mix-blend":[{"mix-blend":[...J(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":J()}],"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":[oe]}],"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":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"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":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"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":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"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":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"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":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"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":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"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":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[F,W]}],"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":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[oe]}],"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":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ee()}],"mask-repeat":[{mask:T()}],"mask-size":[{mask:V()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",F,W]}],filter:[{filter:["","none",F,W]}],blur:[{blur:B()}],brightness:[{brightness:[oe,F,W]}],contrast:[{contrast:[oe,F,W]}],"drop-shadow":[{"drop-shadow":["","none",g,vn,bn]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",oe,F,W]}],"hue-rotate":[{"hue-rotate":[oe,F,W]}],invert:[{invert:["",oe,F,W]}],saturate:[{saturate:[oe,F,W]}],sepia:[{sepia:["",oe,F,W]}],"backdrop-filter":[{"backdrop-filter":["","none",F,W]}],"backdrop-blur":[{"backdrop-blur":B()}],"backdrop-brightness":[{"backdrop-brightness":[oe,F,W]}],"backdrop-contrast":[{"backdrop-contrast":[oe,F,W]}],"backdrop-grayscale":[{"backdrop-grayscale":["",oe,F,W]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[oe,F,W]}],"backdrop-invert":[{"backdrop-invert":["",oe,F,W]}],"backdrop-opacity":[{"backdrop-opacity":[oe,F,W]}],"backdrop-saturate":[{"backdrop-saturate":[oe,F,W]}],"backdrop-sepia":[{"backdrop-sepia":["",oe,F,W]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",F,W]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[oe,"initial",F,W]}],ease:[{ease:["linear","initial",x,F,W]}],delay:[{delay:[oe,F,W]}],animate:[{animate:["none",y,F,W]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,F,W]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:Z()}],"rotate-x":[{"rotate-x":Z()}],"rotate-y":[{"rotate-y":Z()}],"rotate-z":[{"rotate-z":Z()}],scale:[{scale:ne()}],"scale-x":[{"scale-x":ne()}],"scale-y":[{"scale-y":ne()}],"scale-z":[{"scale-z":ne()}],"scale-3d":["scale-3d"],skew:[{skew:se()}],"skew-x":[{"skew-x":se()}],"skew-y":[{"skew-y":se()}],transform:[{transform:[F,W,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ie()}],"translate-x":[{"translate-x":ie()}],"translate-y":[{"translate-y":ie()}],"translate-z":[{"translate-z":ie()}],"translate-none":["translate-none"],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"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",F,W]}],"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":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"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",F,W]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[oe,Gt,ut,mr]}],stroke:[{stroke:["none",...P()]}],"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 N(...e){return Fd(Uo(e))}const la=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ca=Uo,ge=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return ca(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(d=>{const f=n==null?void 0:n[d],m=a==null?void 0:a[d];if(f===null)return null;const p=la(f)||la(m);return o[d][p]}),i=n&&Object.entries(n).reduce((d,f)=>{let[m,p]=f;return p===void 0||(d[m]=p),d},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,f)=>{let{class:m,className:p,...g}=f;return Object.entries(g).every(b=>{let[h,v]=b;return Array.isArray(v)?v.includes({...a,...i}[h]):{...a,...i}[h]===v})?[...d,m,p]:d},[]);return ca(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)},hr=ge("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 cursor-pointer",{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 Se({className:e,variant:t,size:n,asChild:r=!1,children:o,...a}){const s=r?Ge:"button";return c.jsx(s,{"data-slot":"button",className:N(hr({variant:t,size:n}),e),...a,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 Ld(e,t){const n=u.createContext(t),r=a=>{const{children:s,...i}=a,l=u.useMemo(()=>i,Object.values(i));return c.jsx(n.Provider,{value:l,children:s})};r.displayName=e+"Provider";function o(a){const s=u.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function Ce(e,t=[]){let n=[];function r(a,s){const i=u.createContext(s),l=n.length;n=[...n,s];const d=m=>{var x;const{scope:p,children:g,...b}=m,h=((x=p==null?void 0:p[e])==null?void 0:x[l])||i,v=u.useMemo(()=>b,Object.values(b));return c.jsx(h.Provider,{value:v,children:g})};d.displayName=a+"Provider";function f(m,p){var h;const g=((h=p==null?void 0:p[e])==null?void 0:h[l])||i,b=u.useContext(g);if(b)return b;if(s!==void 0)return s;throw new Error(`\`${m}\` must be used within \`${a}\``)}return[d,f]}const o=()=>{const a=n.map(s=>u.createContext(s));return function(i){const l=(i==null?void 0:i[e])||a;return u.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,$d(o,...t)]}function $d(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=r.reduce((i,{useScope:l,scopeName:d})=>{const m=l(a)[`__scope${d}`];return{...i,...m}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var be=globalThis!=null&&globalThis.document?u.useLayoutEffect:()=>{},Bd=u[" useInsertionEffect ".trim().toString()]||be;function We({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,s]=zd({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:o;{const f=u.useRef(e!==void 0);u.useEffect(()=>{const m=f.current;m!==i&&console.warn(`${r} is changing from ${m?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=i},[i,r])}const d=u.useCallback(f=>{var m;if(i){const p=Vd(f)?f(e):f;p!==e&&((m=s.current)==null||m.call(s,p))}else a(f)},[i,e,a,s]);return[l,d]}function zd({defaultProp:e,onChange:t}){const[n,r]=u.useState(e),o=u.useRef(n),a=u.useRef(t);return Bd(()=>{a.current=t},[t]),u.useEffect(()=>{var s;o.current!==n&&((s=a.current)==null||s.call(a,n),o.current=n)},[n,o]),[n,r,a]}function Vd(e){return typeof e=="function"}function xn(e){const t=u.useRef({value:e,previous:e});return u.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function yn(e){const[t,n]=u.useState(void 0);return be(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,i;if("borderBoxSize"in a){const l=a.borderBoxSize,d=Array.isArray(l)?l[0]:l;s=d.inlineSize,i=d.blockSize}else s=e.offsetWidth,i=e.offsetHeight;n({width:s,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Yd=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Y=Yd.reduce((e,t)=>{const n=dt(`Primitive.${t}`),r=u.forwardRef((o,a)=>{const{asChild:s,...i}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...i,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Hd(e,t){e&&gn.flushSync(()=>e.dispatchEvent(t))}var wn="Switch",[Gd,Qw]=Ce(wn),[Ud,qd]=Gd(wn),da=u.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:a,required:s,disabled:i,value:l="on",onCheckedChange:d,form:f,...m}=e,[p,g]=u.useState(null),b=le(t,w=>g(w)),h=u.useRef(!1),v=p?f||!!p.closest("form"):!0,[x,y]=We({prop:o,defaultProp:a??!1,onChange:d,caller:wn});return c.jsxs(Ud,{scope:n,checked:x,disabled:i,children:[c.jsx(Y.button,{type:"button",role:"switch","aria-checked":x,"aria-required":s,"data-state":ha(x),"data-disabled":i?"":void 0,disabled:i,value:l,...m,ref:b,onClick:q(e.onClick,w=>{y(S=>!S),v&&(h.current=w.isPropagationStopped(),h.current||w.stopPropagation())})}),v&&c.jsx(ma,{control:p,bubbles:!h.current,name:r,value:l,checked:x,required:s,disabled:i,form:f,style:{transform:"translateX(-100%)"}})]})});da.displayName=wn;var ua="SwitchThumb",fa=u.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=qd(ua,n);return c.jsx(Y.span,{"data-state":ha(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});fa.displayName=ua;var Kd="SwitchBubbleInput",ma=u.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},a)=>{const s=u.useRef(null),i=le(s,a),l=xn(n),d=yn(t);return u.useEffect(()=>{const f=s.current;if(!f)return;const m=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(m,"checked").set;if(l!==n&&g){const b=new Event("click",{bubbles:r});g.call(f,n),f.dispatchEvent(b)}},[l,n,r]),c.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:i,style:{...o.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});ma.displayName=Kd;function ha(e){return e?"checked":"unchecked"}var Xd=da,Zd=fa;const Qd=ge(["group relative inline-flex items-center cursor-pointer transition-all duration-200 ease-in-out","focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-100","h-[13px] w-[25px] rounded-full p-[1px]","bg-neutral-black-2","hover:shadow-[0_0_0_3px_var(--color-neutral-black-5)]","focus-visible:shadow-[0_0_0_3px_var(--color-neutral-black-5)]","active:shadow-[0_0_0_3px_var(--color-neutral-black-5)]","data-[state=checked]:bg-neutral-black-1 data-[state=checked]:hover:shadow-[0_0_0_3px_rgba(10,10,10,.1)]","data-[state=checked]:focus-visible:shadow-[0_0_0_3px_rgba(10,10,10,0.2)]","data-[state=checked]:active:shadow-[0_0_0_3px_rgba(10,10,10,0.2)]","disabled:bg-neutral-black-5 disabled:hover:shadow-none disabled:focus-visible:shadow-none disabled:active:shadow-none","data-[state=checked]:disabled:bg-neutral-black-5 data-[state=checked]:disabled:hover:shadow-none data-[state=checked]:disabled:focus-visible:shadow-none data-[state=checked]:disabled:active:shadow-none"]),Jd=ge(["block rounded-full transition-transform duration-200 ease-in-out","shadow-[0_3px_6px_-3px_rgba(0,0,0,0.05),0_2px_4px_-2px_rgba(0,0,0,0.05)]","h-[11px] w-[11px] bg-white","translate-x-0 group-data-[state=checked]:translate-x-[12px]"]);function eu({className:e,...t}){return c.jsx(Xd,{"data-slot":"switch",className:N(Qd(),e),...t,children:c.jsx(Zd,{"data-slot":"switch-thumb",className:N(Jd())})})}function pa(e){const t=e+"CollectionProvider",[n,r]=Ce(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=h=>{const{scope:v,children:x}=h,y=O.useRef(null),w=O.useRef(new Map).current;return c.jsx(o,{scope:v,itemMap:w,collectionRef:y,children:x})};s.displayName=t;const i=e+"CollectionSlot",l=dt(i),d=O.forwardRef((h,v)=>{const{scope:x,children:y}=h,w=a(i,x),S=le(v,w.collectionRef);return c.jsx(l,{ref:S,children:y})});d.displayName=i;const f=e+"CollectionItemSlot",m="data-radix-collection-item",p=dt(f),g=O.forwardRef((h,v)=>{const{scope:x,children:y,...w}=h,S=O.useRef(null),k=le(v,S),_=a(f,x);return O.useEffect(()=>(_.itemMap.set(S,{ref:S,...w}),()=>void _.itemMap.delete(S))),c.jsx(p,{[m]:"",ref:k,children:y})});g.displayName=f;function b(h){const v=a(e+"CollectionConsumer",h);return O.useCallback(()=>{const y=v.collectionRef.current;if(!y)return[];const w=Array.from(y.querySelectorAll(`[${m}]`));return Array.from(v.itemMap.values()).sort((_,C)=>w.indexOf(_.ref.current)-w.indexOf(C.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:s,Slot:d,ItemSlot:g},b,r]}var tu=u[" useId ".trim().toString()]||(()=>{}),nu=0;function ye(e){const[t,n]=u.useState(tu());return be(()=>{n(r=>r??String(nu++))},[e]),t?`radix-${t}`:""}function qe(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}var ru=u.createContext(void 0);function kn(e){const t=u.useContext(ru);return e||t||"ltr"}var pr="rovingFocusGroup.onEntryFocus",ou={bubbles:!1,cancelable:!0},Ut="RovingFocusGroup",[gr,ga,au]=pa(Ut),[su,Sn]=Ce(Ut,[au]),[iu,lu]=su(Ut),ba=u.forwardRef((e,t)=>c.jsx(gr.Provider,{scope:e.__scopeRovingFocusGroup,children:c.jsx(gr.Slot,{scope:e.__scopeRovingFocusGroup,children:c.jsx(cu,{...e,ref:t})})}));ba.displayName=Ut;var cu=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:l,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...m}=e,p=u.useRef(null),g=le(t,p),b=kn(a),[h,v]=We({prop:s,defaultProp:i??null,onChange:l,caller:Ut}),[x,y]=u.useState(!1),w=qe(d),S=ga(n),k=u.useRef(!1),[_,C]=u.useState(0);return u.useEffect(()=>{const E=p.current;if(E)return E.addEventListener(pr,w),()=>E.removeEventListener(pr,w)},[w]),c.jsx(iu,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:h,onItemFocus:u.useCallback(E=>v(E),[v]),onItemShiftTab:u.useCallback(()=>y(!0),[]),onFocusableItemAdd:u.useCallback(()=>C(E=>E+1),[]),onFocusableItemRemove:u.useCallback(()=>C(E=>E-1),[]),children:c.jsx(Y.div,{tabIndex:x||_===0?-1:0,"data-orientation":r,...m,ref:g,style:{outline:"none",...e.style},onMouseDown:q(e.onMouseDown,()=>{k.current=!0}),onFocus:q(e.onFocus,E=>{const $=!k.current;if(E.target===E.currentTarget&&$&&!x){const z=new CustomEvent(pr,ou);if(E.currentTarget.dispatchEvent(z),!z.defaultPrevented){const G=S().filter(L=>L.focusable),K=G.find(L=>L.active),te=G.find(L=>L.id===h),Q=[K,te,...G].filter(Boolean).map(L=>L.ref.current);ya(Q,f)}}k.current=!1}),onBlur:q(e.onBlur,()=>y(!1))})})}),va="RovingFocusGroupItem",xa=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:s,...i}=e,l=ye(),d=a||l,f=lu(va,n),m=f.currentTabStopId===d,p=ga(n),{onFocusableItemAdd:g,onFocusableItemRemove:b,currentTabStopId:h}=f;return u.useEffect(()=>{if(r)return g(),()=>b()},[r,g,b]),c.jsx(gr.ItemSlot,{scope:n,id:d,focusable:r,active:o,children:c.jsx(Y.span,{tabIndex:m?0:-1,"data-orientation":f.orientation,...i,ref:t,onMouseDown:q(e.onMouseDown,v=>{r?f.onItemFocus(d):v.preventDefault()}),onFocus:q(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:q(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){f.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const x=fu(v,f.orientation,f.dir);if(x!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let w=p().filter(S=>S.focusable).map(S=>S.ref.current);if(x==="last")w.reverse();else if(x==="prev"||x==="next"){x==="prev"&&w.reverse();const S=w.indexOf(v.currentTarget);w=f.loop?mu(w,S+1):w.slice(S+1)}setTimeout(()=>ya(w))}}),children:typeof s=="function"?s({isCurrentTabStop:m,hasTabStop:h!=null}):s})})});xa.displayName=va;var du={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function uu(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function fu(e,t,n){const r=uu(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return du[r]}function ya(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function mu(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var wa=ba,ka=xa;function hu(e,t){return u.useReducer((n,r)=>t[n][r]??n,e)}var Pe=e=>{const{present:t,children:n}=e,r=pu(t),o=typeof n=="function"?n({present:r.isPresent}):u.Children.only(n),a=le(r.ref,gu(o));return typeof n=="function"||r.isPresent?u.cloneElement(o,{ref:a}):null};Pe.displayName="Presence";function pu(e){const[t,n]=u.useState(),r=u.useRef(null),o=u.useRef(e),a=u.useRef("none"),s=e?"mounted":"unmounted",[i,l]=hu(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const d=Cn(r.current);a.current=i==="mounted"?d:"none"},[i]),be(()=>{const d=r.current,f=o.current;if(f!==e){const p=a.current,g=Cn(d);e?l("MOUNT"):g==="none"||(d==null?void 0:d.display)==="none"?l("UNMOUNT"):l(f&&p!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),be(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,m=g=>{const h=Cn(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&h&&(l("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},p=g=>{g.target===t&&(a.current=Cn(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:u.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function Cn(e){return(e==null?void 0:e.animationName)||"none"}function gu(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 br="Radio",[bu,Sa]=Ce(br),[vu,xu]=bu(br),Ca=u.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:a,disabled:s,value:i="on",onCheck:l,form:d,...f}=e,[m,p]=u.useState(null),g=le(t,v=>p(v)),b=u.useRef(!1),h=m?d||!!m.closest("form"):!0;return c.jsxs(vu,{scope:n,checked:o,disabled:s,children:[c.jsx(Y.button,{type:"button",role:"radio","aria-checked":o,"data-state":Ma(o),"data-disabled":s?"":void 0,disabled:s,value:i,...f,ref:g,onClick:q(e.onClick,v=>{o||l==null||l(),h&&(b.current=v.isPropagationStopped(),b.current||v.stopPropagation())})}),h&&c.jsx(_a,{control:m,bubbles:!b.current,name:r,value:i,checked:o,required:a,disabled:s,form:d,style:{transform:"translateX(-100%)"}})]})});Ca.displayName=br;var Na="RadioIndicator",Ea=u.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,a=xu(Na,n);return c.jsx(Pe,{present:r||a.checked,children:c.jsx(Y.span,{"data-state":Ma(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});Ea.displayName=Na;var yu="RadioBubbleInput",_a=u.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...o},a)=>{const s=u.useRef(null),i=le(s,a),l=xn(n),d=yn(t);return u.useEffect(()=>{const f=s.current;if(!f)return;const m=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(m,"checked").set;if(l!==n&&g){const b=new Event("click",{bubbles:r});g.call(f,n),f.dispatchEvent(b)}},[l,n,r]),c.jsx(Y.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:i,style:{...o.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_a.displayName=yu;function Ma(e){return e?"checked":"unchecked"}var wu=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Nn="RadioGroup",[ku,Jw]=Ce(Nn,[Sn,Sa]),Oa=Sn(),Ta=Sa(),[Su,Cu]=ku(Nn),Pa=u.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:a,required:s=!1,disabled:i=!1,orientation:l,dir:d,loop:f=!0,onValueChange:m,...p}=e,g=Oa(n),b=kn(d),[h,v]=We({prop:a,defaultProp:o??null,onChange:m,caller:Nn});return c.jsx(Su,{scope:n,name:r,required:s,disabled:i,value:h,onValueChange:v,children:c.jsx(wa,{asChild:!0,...g,orientation:l,dir:b,loop:f,children:c.jsx(Y.div,{role:"radiogroup","aria-required":s,"aria-orientation":l,"data-disabled":i?"":void 0,dir:b,...p,ref:t})})})});Pa.displayName=Nn;var Da="RadioGroupItem",Aa=u.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,a=Cu(Da,n),s=a.disabled||r,i=Oa(n),l=Ta(n),d=u.useRef(null),f=le(t,d),m=a.value===o.value,p=u.useRef(!1);return u.useEffect(()=>{const g=h=>{wu.includes(h.key)&&(p.current=!0)},b=()=>p.current=!1;return document.addEventListener("keydown",g),document.addEventListener("keyup",b),()=>{document.removeEventListener("keydown",g),document.removeEventListener("keyup",b)}},[]),c.jsx(ka,{asChild:!0,...i,focusable:!s,active:m,children:c.jsx(Ca,{disabled:s,required:a.required,checked:m,...l,...o,name:a.name,ref:f,onCheck:()=>a.onValueChange(o.value),onKeyDown:q(g=>{g.key==="Enter"&&g.preventDefault()}),onFocus:q(o.onFocus,()=>{var g;p.current&&((g=d.current)==null||g.click())})})})});Aa.displayName=Da;var Nu="RadioGroupIndicator",ja=u.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=Ta(n);return c.jsx(Ea,{...o,...r,ref:t})});ja.displayName=Nu;var Ra=Pa,Ia=Aa,Eu=ja;const _u=()=>({root:N("relative inline-flex items-center cursor-pointer","data-[disabled]:cursor-not-allowed"),indicator:N("relative flex items-center justify-center","w-4 h-4 rounded-full border-2 transition-all duration-200","border-neutral-black-2","hover:shadow-[0_0_0_3px_var(--color-neutral-black-5)] hover:bg-neutral-black-5","focus:shadow-[0_0_0_3px_var(--color-neutral-black-3)] focus:bg-neutral-black-3","data-[state=checked]:border-neutral-black-1","data-[state=checked]:hover:shadow-[0_0_0_3px_var(--color-neutral-black-4)]","data-[state=checked]:hover:bg-neutral-black-4","data-[state=checked]:focus:shadow-[0_0_0_3px_var(--color-neutral-black-1)]","data-[state=checked]:focus:bg-neutral-black-1","data-[disabled]:hover:shadow-none data-[disabled]:hover:bg-transparent data-[disabled]:data-[state=checked]:bg-transparent data-[disabled]:data-[state=checked]:shadow-none data-[disabled]:focus:shadow-none data-[disabled]:border-neutral-black-3"),innerCircle:N("w-2 h-2 rounded-full transition-all duration-200","bg-neutral-black-1"),label:N("ml-2.5 text-md cursor-pointer select-none","data-[disabled]:cursor-not-allowed")}),Wa=u.forwardRef(({className:e,...t},n)=>c.jsx(Ra,{className:N("grid gap-2",e),...t,ref:n}));Wa.displayName=Ra.displayName;const Fa=u.forwardRef(({children:e,disabled:t,...n},r)=>{const o=_u();return c.jsxs("label",{className:o.root,"data-disabled":t,children:[c.jsx(Ia,{ref:r,className:N(o.indicator),disabled:t,...n,children:c.jsx(Eu,{className:"flex items-center justify-center",children:c.jsx("div",{className:o.innerCircle})})}),e&&c.jsx("span",{className:o.label,"data-disabled":t,children:e})]})});Fa.displayName=Ia.displayName;var En="Checkbox",[Mu,e0]=Ce(En),[Ou,vr]=Mu(En);function Tu(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:a,form:s,name:i,onCheckedChange:l,required:d,value:f="on",internal_do_not_use_render:m}=e,[p,g]=We({prop:n,defaultProp:o??!1,onChange:l,caller:En}),[b,h]=u.useState(null),[v,x]=u.useState(null),y=u.useRef(!1),w=b?!!s||!!b.closest("form"):!0,S={checked:p,disabled:a,setChecked:g,control:b,setControl:h,name:i,form:s,value:f,hasConsumerStoppedPropagationRef:y,required:d,defaultChecked:et(o)?!1:o,isFormControl:w,bubbleInput:v,setBubbleInput:x};return c.jsx(Ou,{scope:t,...S,children:Pu(m)?m(S):r})}var La="CheckboxTrigger",$a=u.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:a,value:s,disabled:i,checked:l,required:d,setControl:f,setChecked:m,hasConsumerStoppedPropagationRef:p,isFormControl:g,bubbleInput:b}=vr(La,e),h=le(o,f),v=u.useRef(l);return u.useEffect(()=>{const x=a==null?void 0:a.form;if(x){const y=()=>m(v.current);return x.addEventListener("reset",y),()=>x.removeEventListener("reset",y)}},[a,m]),c.jsx(Y.button,{type:"button",role:"checkbox","aria-checked":et(l)?"mixed":l,"aria-required":d,"data-state":Ga(l),"data-disabled":i?"":void 0,disabled:i,value:s,...r,ref:h,onKeyDown:q(t,x=>{x.key==="Enter"&&x.preventDefault()}),onClick:q(n,x=>{m(y=>et(y)?!0:!y),b&&g&&(p.current=x.isPropagationStopped(),p.current||x.stopPropagation())})})});$a.displayName=La;var Ba=u.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:s,disabled:i,value:l,onCheckedChange:d,form:f,...m}=e;return c.jsx(Tu,{__scopeCheckbox:n,checked:o,defaultChecked:a,disabled:i,required:s,onCheckedChange:d,name:r,form:f,value:l,internal_do_not_use_render:({isFormControl:p})=>c.jsxs(c.Fragment,{children:[c.jsx($a,{...m,ref:t,__scopeCheckbox:n}),p&&c.jsx(Ha,{__scopeCheckbox:n})]})})});Ba.displayName=En;var za="CheckboxIndicator",Va=u.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=vr(za,n);return c.jsx(Pe,{present:r||et(a.checked)||a.checked===!0,children:c.jsx(Y.span,{"data-state":Ga(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});Va.displayName=za;var Ya="CheckboxBubbleInput",Ha=u.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:a,defaultChecked:s,required:i,disabled:l,name:d,value:f,form:m,bubbleInput:p,setBubbleInput:g}=vr(Ya,e),b=le(n,g),h=xn(a),v=yn(r);u.useEffect(()=>{const y=p;if(!y)return;const w=window.HTMLInputElement.prototype,k=Object.getOwnPropertyDescriptor(w,"checked").set,_=!o.current;if(h!==a&&k){const C=new Event("click",{bubbles:_});y.indeterminate=et(a),k.call(y,et(a)?!1:a),y.dispatchEvent(C)}},[p,h,a,o]);const x=u.useRef(et(a)?!1:a);return c.jsx(Y.input,{type:"checkbox","aria-hidden":!0,defaultChecked:s??x.current,required:i,disabled:l,name:d,value:f,form:m,...t,tabIndex:-1,ref:b,style:{...t.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Ha.displayName=Ya;function Pu(e){return typeof e=="function"}function et(e){return e==="indeterminate"}function Ga(e){return et(e)?"indeterminate":e?"checked":"unchecked"}/**
23
23
  * @license lucide-react v0.542.0 - ISC
24
24
  *
25
25
  * This source code is licensed under the ISC license.
26
26
  * See the LICENSE file in the root directory of this source tree.
27
- */const Vc=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Bc=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),Wo=e=>{const t=Bc(e);return t.charAt(0).toUpperCase()+t.slice(1)},Go=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),zc=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
27
+ */const Du=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Au=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Ua=e=>{const t=Au(e);return t.charAt(0).toUpperCase()+t.slice(1)},qa=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),ju=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
28
28
  * @license lucide-react v0.542.0 - ISC
29
29
  *
30
30
  * This source code is licensed under the ISC license.
31
31
  * See the LICENSE file in the root directory of this source tree.
32
- */var Wc={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"};/**
32
+ */var Ru={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
33
33
  * @license lucide-react v0.542.0 - ISC
34
34
  *
35
35
  * This source code is licensed under the ISC license.
36
36
  * See the LICENSE file in the root directory of this source tree.
37
- */const Gc=ae.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:s,...i},c)=>ae.createElement("svg",{ref:c,...Wc,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:Go("lucide",o),...!a&&!zc(i)&&{"aria-hidden":"true"},...i},[...s.map(([d,f])=>ae.createElement(d,f)),...Array.isArray(a)?a:[a]]));/**
37
+ */const Iu=O.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:s,...i},l)=>O.createElement("svg",{ref:l,...Ru,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:qa("lucide",o),...!a&&!ju(i)&&{"aria-hidden":"true"},...i},[...s.map(([d,f])=>O.createElement(d,f)),...Array.isArray(a)?a:[a]]));/**
38
38
  * @license lucide-react v0.542.0 - ISC
39
39
  *
40
40
  * This source code is licensed under the ISC license.
41
41
  * See the LICENSE file in the root directory of this source tree.
42
- */const ue=(e,t)=>{const r=ae.forwardRef(({className:n,...o},a)=>ae.createElement(Gc,{ref:a,iconNode:t,className:Go(`lucide-${Vc(Wo(e))}`,`lucide-${e}`,n),...o}));return r.displayName=Wo(e),r};/**
42
+ */const ve=(e,t)=>{const n=O.forwardRef(({className:r,...o},a)=>O.createElement(Iu,{ref:a,iconNode:t,className:qa(`lucide-${Du(Ua(e))}`,`lucide-${e}`,r),...o}));return n.displayName=Ua(e),n};/**
43
43
  * @license lucide-react v0.542.0 - ISC
44
44
  *
45
45
  * This source code is licensed under the ISC license.
46
46
  * See the LICENSE file in the root directory of this source tree.
47
- */const Hc=ue("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"}]]);/**
47
+ */const Wu=ve("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);/**
48
48
  * @license lucide-react v0.542.0 - ISC
49
49
  *
50
50
  * This source code is licensed under the ISC license.
51
51
  * See the LICENSE file in the root directory of this source tree.
52
- */const Uc=ue("chart-pie",[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]]);/**
52
+ */const Fu=ve("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"}]]);/**
53
53
  * @license lucide-react v0.542.0 - ISC
54
54
  *
55
55
  * This source code is licensed under the ISC license.
56
56
  * See the LICENSE file in the root directory of this source tree.
57
- */const Ho=ue("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
57
+ */const Lu=ve("chart-pie",[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]]);/**
58
58
  * @license lucide-react v0.542.0 - ISC
59
59
  *
60
60
  * This source code is licensed under the ISC license.
61
61
  * See the LICENSE file in the root directory of this source tree.
62
- */const jr=ue("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
62
+ */const Ka=ve("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
63
63
  * @license lucide-react v0.542.0 - ISC
64
64
  *
65
65
  * This source code is licensed under the ISC license.
66
66
  * See the LICENSE file in the root directory of this source tree.
67
- */const Kc=ue("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
67
+ */const Nt=ve("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
68
68
  * @license lucide-react v0.542.0 - ISC
69
69
  *
70
70
  * This source code is licensed under the ISC license.
71
71
  * See the LICENSE file in the root directory of this source tree.
72
- */const Yc=ue("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
72
+ */const xr=ve("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
73
73
  * @license lucide-react v0.542.0 - ISC
74
74
  *
75
75
  * This source code is licensed under the ISC license.
76
76
  * See the LICENSE file in the root directory of this source tree.
77
- */const qc=ue("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
77
+ */const _n=ve("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
78
78
  * @license lucide-react v0.542.0 - ISC
79
79
  *
80
80
  * This source code is licensed under the ISC license.
81
81
  * See the LICENSE file in the root directory of this source tree.
82
- */const Xc=ue("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"}]]);/**
82
+ */const $u=ve("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
83
83
  * @license lucide-react v0.542.0 - ISC
84
84
  *
85
85
  * This source code is licensed under the ISC license.
86
86
  * See the LICENSE file in the root directory of this source tree.
87
- */const Zc=ue("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"}]]);/**
87
+ */const Bu=ve("chevrons-left",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]);/**
88
88
  * @license lucide-react v0.542.0 - ISC
89
89
  *
90
90
  * This source code is licensed under the ISC license.
91
91
  * See the LICENSE file in the root directory of this source tree.
92
- */const Jc=ue("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
92
+ */const zu=ve("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
93
93
  * @license lucide-react v0.542.0 - ISC
94
94
  *
95
95
  * This source code is licensed under the ISC license.
96
96
  * See the LICENSE file in the root directory of this source tree.
97
- */const Qc=ue("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
97
+ */const Vu=ve("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"}]]);/**
98
98
  * @license lucide-react v0.542.0 - ISC
99
99
  *
100
100
  * This source code is licensed under the ISC license.
101
101
  * See the LICENSE file in the root directory of this source tree.
102
- */const Uo=ue("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/**
102
+ */const Yu=ve("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"}]]);/**
103
103
  * @license lucide-react v0.542.0 - ISC
104
104
  *
105
105
  * This source code is licensed under the ISC license.
106
106
  * See the LICENSE file in the root directory of this source tree.
107
- */const eu=ue("smile",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]);/**
107
+ */const Hu=ve("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
108
108
  * @license lucide-react v0.542.0 - ISC
109
109
  *
110
110
  * This source code is licensed under the ISC license.
111
111
  * See the LICENSE file in the root directory of this source tree.
112
- */const Ko=ue("user-round",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);/**
112
+ */const Gu=ve("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
113
113
  * @license lucide-react v0.542.0 - ISC
114
114
  *
115
115
  * This source code is licensed under the ISC license.
116
116
  * See the LICENSE file in the root directory of this source tree.
117
- */const tu=ue("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);/**
117
+ */const Xa=ve("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/**
118
118
  * @license lucide-react v0.542.0 - ISC
119
119
  *
120
120
  * This source code is licensed under the ISC license.
121
121
  * See the LICENSE file in the root directory of this source tree.
122
- */const Yo=ue("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),ru=le(["w-4 h-4 rounded border transition-all duration-200 flex items-center justify-center","data-[state=unchecked]:bg-white data-[state=unchecked]:border-neutral-black-2","data-[state=checked]:bg-neutral-black-1 data-[state=checked]:border-neutral-black-1","data-[state=indeterminate]:bg-neutral-black-1 data-[state=indeterminate]:border-neutral-black-1","hover:data-[state=unchecked]:bg-neutral-black-4 hover:data-[state=unchecked]:shadow-[0_0_0_3px_var(--color-neutral-black-4)]","hover:data-[state=checked]:shadow-[0_0_0_3px_var(--color-neutral-black-4)]","hover:data-[state=indeterminate]:shadow-[0_0_0_3px_var(--color-neutral-black-4)]","focus:data-[state=unchecked]:bg-neutral-black-3 focus:data-[state=unchecked]:shadow-[0_0_0_3px_var(--color-neutral-black-3)]","focus:data-[state=checked]:shadow-[0_0_0_3px_var(--color-neutral-black-1)]","focus:data-[state=indeterminate]:shadow-[0_0_0_3px_var(--color-neutral-black-1)]","disabled:data-[state=unchecked]:bg-white disabled:data-[state=unchecked]:border-neutral-black-3","disabled:data-[state=checked]:bg-neutral-black-1 disabled:data-[state=checked]:border-neutral-black-1","disabled:data-[state=indeterminate]:bg-neutral-black-1 disabled:data-[state=indeterminate]:border-neutral-black-1","disabled:data-[state=unchecked]:hover:shadow-none disabled:focus:shadow-none disabled:data-[state=checked]:hover:shadow-none disabled:data-[state=indeterminate]:hover:shadow-none"]),qo=({className:e,...t})=>u.jsx(Lo,{className:j(ru(),e),...t,children:u.jsx(Fo,{className:"flex items-center justify-center text-white cursor-pointer",children:u.jsx(Ho,{className:"w-3 h-3",strokeWidth:2})})});qo.displayName="Checkbox";function nu(e,t=globalThis==null?void 0:globalThis.document){const r=Ne(e);l.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var ou="DismissableLayer",Or="dismissableLayer.update",au="dismissableLayer.pointerDownOutside",su="dismissableLayer.focusOutside",Xo,Zo=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ht=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...c}=e,d=l.useContext(Zo),[f,p]=l.useState(null),g=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=l.useState({}),v=ne(t,_=>p(_)),m=Array.from(d.layers),[b]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=m.indexOf(b),w=f?m.indexOf(f):-1,y=d.layersWithOutsidePointerEventsDisabled.size>0,C=w>=x,E=cu(_=>{const R=_.target,G=[...d.branches].some(K=>K.contains(R));!C||G||(o==null||o(_),s==null||s(_),_.defaultPrevented||i==null||i())},g),T=uu(_=>{const R=_.target;[...d.branches].some(K=>K.contains(R))||(a==null||a(_),s==null||s(_),_.defaultPrevented||i==null||i())},g);return nu(_=>{w===d.layers.size-1&&(n==null||n(_),!_.defaultPrevented&&i&&(_.preventDefault(),i()))},g),l.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Xo=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Jo(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Xo)}},[f,g,r,d]),l.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Jo())},[f,d]),l.useEffect(()=>{const _=()=>h({});return document.addEventListener(Or,_),()=>document.removeEventListener(Or,_)},[]),u.jsx(V.div,{...c,ref:v,style:{pointerEvents:y?C?"auto":"none":void 0,...e.style},onFocusCapture:z(e.onFocusCapture,T.onFocusCapture),onBlurCapture:z(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:z(e.onPointerDownCapture,E.onPointerDownCapture)})});ht.displayName=ou;var iu="DismissableLayerBranch",lu=l.forwardRef((e,t)=>{const r=l.useContext(Zo),n=l.useRef(null),o=ne(t,n);return l.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),u.jsx(V.div,{...e,ref:o})});lu.displayName=iu;function cu(e,t=globalThis==null?void 0:globalThis.document){const r=Ne(e),n=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const a=i=>{if(i.target&&!n.current){let c=function(){Qo(au,r,d,{discrete:!0})};const d={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);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function uu(e,t=globalThis==null?void 0:globalThis.document){const r=Ne(e),n=l.useRef(!1);return l.useEffect(()=>{const o=a=>{a.target&&!n.current&&Qo(su,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Jo(){const e=new CustomEvent(Or);document.dispatchEvent(e)}function Qo(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Ql(o,a):o.dispatchEvent(a)}var Mr="focusScope.autoFocusOnMount",Dr="focusScope.autoFocusOnUnmount",ea={bubbles:!1,cancelable:!0},du="FocusScope",Wt=l.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,c]=l.useState(null),d=Ne(o),f=Ne(a),p=l.useRef(null),g=ne(t,m=>c(m)),h=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(n){let m=function(y){if(h.paused||!i)return;const C=y.target;i.contains(C)?p.current=C:je(p.current,{select:!0})},b=function(y){if(h.paused||!i)return;const C=y.relatedTarget;C!==null&&(i.contains(C)||je(p.current,{select:!0}))},x=function(y){if(document.activeElement===document.body)for(const E of y)E.removedNodes.length>0&&je(i)};document.addEventListener("focusin",m),document.addEventListener("focusout",b);const w=new MutationObserver(x);return i&&w.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",b),w.disconnect()}}},[n,i,h.paused]),l.useEffect(()=>{if(i){na.add(h);const m=document.activeElement;if(!i.contains(m)){const x=new CustomEvent(Mr,ea);i.addEventListener(Mr,d),i.dispatchEvent(x),x.defaultPrevented||(fu(vu(ta(i)),{select:!0}),document.activeElement===m&&je(i))}return()=>{i.removeEventListener(Mr,d),setTimeout(()=>{const x=new CustomEvent(Dr,ea);i.addEventListener(Dr,f),i.dispatchEvent(x),x.defaultPrevented||je(m??document.body,{select:!0}),i.removeEventListener(Dr,f),na.remove(h)},0)}}},[i,d,f,h]);const v=l.useCallback(m=>{if(!r&&!n||h.paused)return;const b=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,x=document.activeElement;if(b&&x){const w=m.currentTarget,[y,C]=pu(w);y&&C?!m.shiftKey&&x===C?(m.preventDefault(),r&&je(y,{select:!0})):m.shiftKey&&x===y&&(m.preventDefault(),r&&je(C,{select:!0})):x===w&&m.preventDefault()}},[r,n,h.paused]);return u.jsx(V.div,{tabIndex:-1,...s,ref:g,onKeyDown:v})});Wt.displayName=du;function fu(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(je(n,{select:t}),document.activeElement!==r)return}function pu(e){const t=ta(e),r=ra(t,e),n=ra(t.reverse(),e);return[r,n]}function ta(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function ra(e,t){for(const r of e)if(!mu(r,{upTo:t}))return r}function mu(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 hu(e){return e instanceof HTMLInputElement&&"select"in e}function je(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&hu(e)&&t&&e.select()}}var na=gu();function gu(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=oa(e,t),e.unshift(t)},remove(t){var r;e=oa(e,t),(r=e[0])==null||r.resume()}}}function oa(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function vu(e){return e.filter(t=>t.tagName!=="A")}var bu="Portal",gt=l.forwardRef((e,t)=>{var i;const{container:r,...n}=e,[o,a]=l.useState(!1);ie(()=>a(!0),[]);const s=r||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?Mn.createPortal(u.jsx(V.div,{...n,ref:t}),s):null});gt.displayName=bu;var Lr=0;function $r(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??aa()),document.body.insertAdjacentElement("beforeend",e[1]??aa()),Lr++,()=>{Lr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Lr--}},[])}function aa(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ye=function(){return ye=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},ye.apply(this,arguments)};function sa(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function xu(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Gt="right-scroll-bar-position",Ht="width-before-scroll-bar",wu="with-scroll-bars-hidden",yu="--removed-body-scroll-bar-size";function Fr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Su(e,t){var r=ae.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var Cu=typeof window<"u"?l.useLayoutEffect:l.useEffect,ia=new WeakMap;function ku(e,t){var r=Su(null,function(n){return e.forEach(function(o){return Fr(o,n)})});return Cu(function(){var n=ia.get(r);if(n){var o=new Set(n),a=new Set(e),s=r.current;o.forEach(function(i){a.has(i)||Fr(i,null)}),a.forEach(function(i){o.has(i)||Fr(i,s)})}ia.set(r,e)},[e]),r}function Eu(e){return e}function Ru(e,t){t===void 0&&(t=Eu);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var s=t(a,n);return r.push(s),function(){r=r.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(n=!0;r.length;){var s=r;r=[],s.forEach(a)}r={push:function(i){return a(i)},filter:function(){return r}}},assignMedium:function(a){n=!0;var s=[];if(r.length){var i=r;r=[],i.forEach(a),s=r}var c=function(){var f=s;s=[],f.forEach(a)},d=function(){return Promise.resolve().then(c)};d(),r={push:function(f){s.push(f),d()},filter:function(f){return s=s.filter(f),r}}}};return o}function _u(e){e===void 0&&(e={});var t=Ru(null);return t.options=ye({async:!0,ssr:!1},e),t}var la=function(e){var t=e.sideCar,r=sa(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return l.createElement(n,ye({},r))};la.isSideCarExport=!0;function Nu(e,t){return e.useMedium(t),la}var ca=_u(),Vr=function(){},Ut=l.forwardRef(function(e,t){var r=l.useRef(null),n=l.useState({onScrollCapture:Vr,onWheelCapture:Vr,onTouchMoveCapture:Vr}),o=n[0],a=n[1],s=e.forwardProps,i=e.children,c=e.className,d=e.removeScrollBar,f=e.enabled,p=e.shards,g=e.sideCar,h=e.noRelative,v=e.noIsolation,m=e.inert,b=e.allowPinchZoom,x=e.as,w=x===void 0?"div":x,y=e.gapMode,C=sa(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=g,T=ku([r,t]),_=ye(ye({},C),o);return l.createElement(l.Fragment,null,f&&l.createElement(E,{sideCar:ca,removeScrollBar:d,shards:p,noRelative:h,noIsolation:v,inert:m,setCallbacks:a,allowPinchZoom:!!b,lockRef:r,gapMode:y}),s?l.cloneElement(l.Children.only(i),ye(ye({},_),{ref:T})):l.createElement(w,ye({},_,{className:c,ref:T}),i))});Ut.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ut.classNames={fullWidth:Ht,zeroRight:Gt};var Pu=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Tu(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Pu();return t&&e.setAttribute("nonce",t),e}function Au(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Iu(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ju=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Tu())&&(Au(t,r),Iu(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ou=function(){var e=ju();return function(t,r){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},ua=function(){var e=Ou(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Mu={left:0,top:0,right:0,gap:0},Br=function(e){return parseInt(e||"",10)||0},Du=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Br(r),Br(n),Br(o)]},Lu=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Mu;var t=Du(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},$u=ua(),Ze="data-scroll-locked",Fu=function(e,t,r,n){var o=e.left,a=e.top,s=e.right,i=e.gap;return r===void 0&&(r="margin"),`
123
- .`.concat(wu,` {
124
- overflow: hidden `).concat(n,`;
125
- padding-right: `).concat(i,"px ").concat(n,`;
122
+ */const Uu=ve("smile",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]);/**
123
+ * @license lucide-react v0.542.0 - ISC
124
+ *
125
+ * This source code is licensed under the ISC license.
126
+ * See the LICENSE file in the root directory of this source tree.
127
+ */const Za=ve("user-round",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);/**
128
+ * @license lucide-react v0.542.0 - ISC
129
+ *
130
+ * This source code is licensed under the ISC license.
131
+ * See the LICENSE file in the root directory of this source tree.
132
+ */const qu=ve("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);/**
133
+ * @license lucide-react v0.542.0 - ISC
134
+ *
135
+ * This source code is licensed under the ISC license.
136
+ * See the LICENSE file in the root directory of this source tree.
137
+ */const Qa=ve("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Ku=ge(["w-4 h-4 rounded border transition-all duration-200 flex items-center justify-center","data-[state=unchecked]:bg-white data-[state=unchecked]:border-neutral-black-2","data-[state=checked]:bg-neutral-black-1 data-[state=checked]:border-neutral-black-1","data-[state=indeterminate]:bg-neutral-black-1 data-[state=indeterminate]:border-neutral-black-1","hover:data-[state=unchecked]:bg-neutral-black-4 hover:data-[state=unchecked]:shadow-[0_0_0_3px_var(--color-neutral-black-4)]","hover:data-[state=checked]:shadow-[0_0_0_3px_var(--color-neutral-black-4)]","hover:data-[state=indeterminate]:shadow-[0_0_0_3px_var(--color-neutral-black-4)]","focus:data-[state=unchecked]:bg-neutral-black-3 focus:data-[state=unchecked]:shadow-[0_0_0_3px_var(--color-neutral-black-3)]","focus:data-[state=checked]:shadow-[0_0_0_3px_var(--color-neutral-black-1)]","focus:data-[state=indeterminate]:shadow-[0_0_0_3px_var(--color-neutral-black-1)]","disabled:data-[state=unchecked]:bg-white disabled:data-[state=unchecked]:border-neutral-black-3","disabled:data-[state=checked]:bg-neutral-black-1 disabled:data-[state=checked]:border-neutral-black-1","disabled:data-[state=indeterminate]:bg-neutral-black-1 disabled:data-[state=indeterminate]:border-neutral-black-1","disabled:data-[state=unchecked]:hover:shadow-none disabled:focus:shadow-none disabled:data-[state=checked]:hover:shadow-none disabled:data-[state=indeterminate]:hover:shadow-none"]),Ja=({className:e,...t})=>c.jsx(Ba,{className:N(Ku(),e),...t,children:c.jsx(Va,{className:"flex items-center justify-center text-white cursor-pointer",children:c.jsx(Ka,{className:"w-3 h-3",strokeWidth:2})})});Ja.displayName="Checkbox";function Xu(e,t=globalThis==null?void 0:globalThis.document){const n=qe(e);u.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Zu="DismissableLayer",yr="dismissableLayer.update",Qu="dismissableLayer.pointerDownOutside",Ju="dismissableLayer.focusOutside",es,ts=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),qt=u.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...l}=e,d=u.useContext(ts),[f,m]=u.useState(null),p=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=u.useState({}),b=le(t,C=>m(C)),h=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=h.indexOf(v),y=f?h.indexOf(f):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,S=y>=x,k=nf(C=>{const E=C.target,$=[...d.branches].some(z=>z.contains(E));!S||$||(o==null||o(C),s==null||s(C),C.defaultPrevented||i==null||i())},p),_=rf(C=>{const E=C.target;[...d.branches].some(z=>z.contains(E))||(a==null||a(C),s==null||s(C),C.defaultPrevented||i==null||i())},p);return Xu(C=>{y===d.layers.size-1&&(r==null||r(C),!C.defaultPrevented&&i&&(C.preventDefault(),i()))},p),u.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(es=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),ns(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=es)}},[f,p,n,d]),u.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),ns())},[f,d]),u.useEffect(()=>{const C=()=>g({});return document.addEventListener(yr,C),()=>document.removeEventListener(yr,C)},[]),c.jsx(Y.div,{...l,ref:b,style:{pointerEvents:w?S?"auto":"none":void 0,...e.style},onFocusCapture:q(e.onFocusCapture,_.onFocusCapture),onBlurCapture:q(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:q(e.onPointerDownCapture,k.onPointerDownCapture)})});qt.displayName=Zu;var ef="DismissableLayerBranch",tf=u.forwardRef((e,t)=>{const n=u.useContext(ts),r=u.useRef(null),o=le(t,r);return u.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),c.jsx(Y.div,{...e,ref:o})});tf.displayName=ef;function nf(e,t=globalThis==null?void 0:globalThis.document){const n=qe(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const a=i=>{if(i.target&&!r.current){let l=function(){rs(Qu,n,d,{discrete:!0})};const d={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function rf(e,t=globalThis==null?void 0:globalThis.document){const n=qe(e),r=u.useRef(!1);return u.useEffect(()=>{const o=a=>{a.target&&!r.current&&rs(Ju,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ns(){const e=new CustomEvent(yr);document.dispatchEvent(e)}function rs(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Hd(o,a):o.dispatchEvent(a)}var wr="focusScope.autoFocusOnMount",kr="focusScope.autoFocusOnUnmount",os={bubbles:!1,cancelable:!0},of="FocusScope",Mn=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,l]=u.useState(null),d=qe(o),f=qe(a),m=u.useRef(null),p=le(t,h=>l(h)),g=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let h=function(w){if(g.paused||!i)return;const S=w.target;i.contains(S)?m.current=S:tt(m.current,{select:!0})},v=function(w){if(g.paused||!i)return;const S=w.relatedTarget;S!==null&&(i.contains(S)||tt(m.current,{select:!0}))},x=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&tt(i)};document.addEventListener("focusin",h),document.addEventListener("focusout",v);const y=new MutationObserver(x);return i&&y.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",v),y.disconnect()}}},[r,i,g.paused]),u.useEffect(()=>{if(i){is.add(g);const h=document.activeElement;if(!i.contains(h)){const x=new CustomEvent(wr,os);i.addEventListener(wr,d),i.dispatchEvent(x),x.defaultPrevented||(af(uf(as(i)),{select:!0}),document.activeElement===h&&tt(i))}return()=>{i.removeEventListener(wr,d),setTimeout(()=>{const x=new CustomEvent(kr,os);i.addEventListener(kr,f),i.dispatchEvent(x),x.defaultPrevented||tt(h??document.body,{select:!0}),i.removeEventListener(kr,f),is.remove(g)},0)}}},[i,d,f,g]);const b=u.useCallback(h=>{if(!n&&!r||g.paused)return;const v=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,x=document.activeElement;if(v&&x){const y=h.currentTarget,[w,S]=sf(y);w&&S?!h.shiftKey&&x===S?(h.preventDefault(),n&&tt(w,{select:!0})):h.shiftKey&&x===w&&(h.preventDefault(),n&&tt(S,{select:!0})):x===y&&h.preventDefault()}},[n,r,g.paused]);return c.jsx(Y.div,{tabIndex:-1,...s,ref:p,onKeyDown:b})});Mn.displayName=of;function af(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(tt(r,{select:t}),document.activeElement!==n)return}function sf(e){const t=as(e),n=ss(t,e),r=ss(t.reverse(),e);return[n,r]}function as(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 ss(e,t){for(const n of e)if(!lf(n,{upTo:t}))return n}function lf(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 cf(e){return e instanceof HTMLInputElement&&"select"in e}function tt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&cf(e)&&t&&e.select()}}var is=df();function df(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=ls(e,t),e.unshift(t)},remove(t){var n;e=ls(e,t),(n=e[0])==null||n.resume()}}}function ls(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function uf(e){return e.filter(t=>t.tagName!=="A")}var ff="Portal",Kt=u.forwardRef((e,t)=>{var i;const{container:n,...r}=e,[o,a]=u.useState(!1);be(()=>a(!0),[]);const s=n||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?$o.createPortal(c.jsx(Y.div,{...r,ref:t}),s):null});Kt.displayName=ff;var Sr=0;function Cr(){u.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??cs()),document.body.insertAdjacentElement("beforeend",e[1]??cs()),Sr++,()=>{Sr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Sr--}},[])}function cs(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Fe=function(){return Fe=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Fe.apply(this,arguments)};function ds(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 mf(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var On="right-scroll-bar-position",Tn="width-before-scroll-bar",hf="with-scroll-bars-hidden",pf="--removed-body-scroll-bar-size";function Nr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function gf(e,t){var n=O.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 bf=typeof window<"u"?u.useLayoutEffect:u.useEffect,us=new WeakMap;function vf(e,t){var n=gf(null,function(r){return e.forEach(function(o){return Nr(o,r)})});return bf(function(){var r=us.get(n);if(r){var o=new Set(r),a=new Set(e),s=n.current;o.forEach(function(i){a.has(i)||Nr(i,null)}),a.forEach(function(i){o.has(i)||Nr(i,s)})}us.set(n,e)},[e]),n}function xf(e){return e}function yf(e,t){t===void 0&&(t=xf);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var s=t(a,r);return n.push(s),function(){n=n.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(i){return a(i)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var i=n;n=[],i.forEach(a),s=n}var l=function(){var f=s;s=[],f.forEach(a)},d=function(){return Promise.resolve().then(l)};d(),n={push:function(f){s.push(f),d()},filter:function(f){return s=s.filter(f),n}}}};return o}function wf(e){e===void 0&&(e={});var t=yf(null);return t.options=Fe({async:!0,ssr:!1},e),t}var fs=function(e){var t=e.sideCar,n=ds(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return u.createElement(r,Fe({},n))};fs.isSideCarExport=!0;function kf(e,t){return e.useMedium(t),fs}var ms=wf(),Er=function(){},Pn=u.forwardRef(function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:Er,onWheelCapture:Er,onTouchMoveCapture:Er}),o=r[0],a=r[1],s=e.forwardProps,i=e.children,l=e.className,d=e.removeScrollBar,f=e.enabled,m=e.shards,p=e.sideCar,g=e.noRelative,b=e.noIsolation,h=e.inert,v=e.allowPinchZoom,x=e.as,y=x===void 0?"div":x,w=e.gapMode,S=ds(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=p,_=vf([n,t]),C=Fe(Fe({},S),o);return u.createElement(u.Fragment,null,f&&u.createElement(k,{sideCar:ms,removeScrollBar:d,shards:m,noRelative:g,noIsolation:b,inert:h,setCallbacks:a,allowPinchZoom:!!v,lockRef:n,gapMode:w}),s?u.cloneElement(u.Children.only(i),Fe(Fe({},C),{ref:_})):u.createElement(y,Fe({},C,{className:l,ref:_}),i))});Pn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Pn.classNames={fullWidth:Tn,zeroRight:On};var Sf=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Cf(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Sf();return t&&e.setAttribute("nonce",t),e}function Nf(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ef(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var _f=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Cf())&&(Nf(t,n),Ef(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Mf=function(){var e=_f();return function(t,n){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},hs=function(){var e=Mf(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Of={left:0,top:0,right:0,gap:0},_r=function(e){return parseInt(e||"",10)||0},Tf=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[_r(n),_r(r),_r(o)]},Pf=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Of;var t=Tf(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])}},Df=hs(),Et="data-scroll-locked",Af=function(e,t,n,r){var o=e.left,a=e.top,s=e.right,i=e.gap;return n===void 0&&(n="margin"),`
138
+ .`.concat(hf,` {
139
+ overflow: hidden `).concat(r,`;
140
+ padding-right: `).concat(i,"px ").concat(r,`;
126
141
  }
127
- body[`).concat(Ze,`] {
128
- overflow: hidden `).concat(n,`;
142
+ body[`).concat(Et,`] {
143
+ overflow: hidden `).concat(r,`;
129
144
  overscroll-behavior: contain;
130
- `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
145
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
131
146
  padding-left: `.concat(o,`px;
132
147
  padding-top: `).concat(a,`px;
133
148
  padding-right: `).concat(s,`px;
134
149
  margin-left:0;
135
150
  margin-top:0;
136
- margin-right: `).concat(i,"px ").concat(n,`;
137
- `),r==="padding"&&"padding-right: ".concat(i,"px ").concat(n,";")].filter(Boolean).join(""),`
151
+ margin-right: `).concat(i,"px ").concat(r,`;
152
+ `),n==="padding"&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),`
138
153
  }
139
154
 
140
- .`).concat(Gt,` {
141
- right: `).concat(i,"px ").concat(n,`;
155
+ .`).concat(On,` {
156
+ right: `).concat(i,"px ").concat(r,`;
142
157
  }
143
158
 
144
- .`).concat(Ht,` {
145
- margin-right: `).concat(i,"px ").concat(n,`;
159
+ .`).concat(Tn,` {
160
+ margin-right: `).concat(i,"px ").concat(r,`;
146
161
  }
147
162
 
148
- .`).concat(Gt," .").concat(Gt,` {
149
- right: 0 `).concat(n,`;
163
+ .`).concat(On," .").concat(On,` {
164
+ right: 0 `).concat(r,`;
150
165
  }
151
166
 
152
- .`).concat(Ht," .").concat(Ht,` {
153
- margin-right: 0 `).concat(n,`;
167
+ .`).concat(Tn," .").concat(Tn,` {
168
+ margin-right: 0 `).concat(r,`;
154
169
  }
155
170
 
156
- body[`).concat(Ze,`] {
157
- `).concat(yu,": ").concat(i,`px;
171
+ body[`).concat(Et,`] {
172
+ `).concat(pf,": ").concat(i,`px;
158
173
  }
159
- `)},da=function(){var e=parseInt(document.body.getAttribute(Ze)||"0",10);return isFinite(e)?e:0},Vu=function(){l.useEffect(function(){return document.body.setAttribute(Ze,(da()+1).toString()),function(){var e=da()-1;e<=0?document.body.removeAttribute(Ze):document.body.setAttribute(Ze,e.toString())}},[])},Bu=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;Vu();var a=l.useMemo(function(){return Lu(o)},[o]);return l.createElement($u,{styles:Fu(a,!t,o,r?"":"!important")})},zr=!1;if(typeof window<"u")try{var Kt=Object.defineProperty({},"passive",{get:function(){return zr=!0,!0}});window.addEventListener("test",Kt,Kt),window.removeEventListener("test",Kt,Kt)}catch{zr=!1}var Je=zr?{passive:!1}:!1,zu=function(e){return e.tagName==="TEXTAREA"},fa=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!zu(e)&&r[t]==="visible")},Wu=function(e){return fa(e,"overflowY")},Gu=function(e){return fa(e,"overflowX")},pa=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=ma(e,n);if(o){var a=ha(e,n),s=a[1],i=a[2];if(s>i)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Hu=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Uu=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},ma=function(e,t){return e==="v"?Wu(t):Gu(t)},ha=function(e,t){return e==="v"?Hu(t):Uu(t)},Ku=function(e,t){return e==="h"&&t==="rtl"?-1:1},Yu=function(e,t,r,n,o){var a=Ku(e,window.getComputedStyle(t).direction),s=a*n,i=r.target,c=t.contains(i),d=!1,f=s>0,p=0,g=0;do{if(!i)break;var h=ha(e,i),v=h[0],m=h[1],b=h[2],x=m-b-a*v;(v||x)&&ma(e,i)&&(p+=x,g+=v);var w=i.parentNode;i=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!c&&i!==document.body||c&&(t.contains(i)||t===i));return(f&&Math.abs(p)<1||!f&&Math.abs(g)<1)&&(d=!0),d},Yt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ga=function(e){return[e.deltaX,e.deltaY]},va=function(e){return e&&"current"in e?e.current:e},qu=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Xu=function(e){return`
174
+ `)},ps=function(){var e=parseInt(document.body.getAttribute(Et)||"0",10);return isFinite(e)?e:0},jf=function(){u.useEffect(function(){return document.body.setAttribute(Et,(ps()+1).toString()),function(){var e=ps()-1;e<=0?document.body.removeAttribute(Et):document.body.setAttribute(Et,e.toString())}},[])},Rf=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;jf();var a=u.useMemo(function(){return Pf(o)},[o]);return u.createElement(Df,{styles:Af(a,!t,o,n?"":"!important")})},Mr=!1;if(typeof window<"u")try{var Dn=Object.defineProperty({},"passive",{get:function(){return Mr=!0,!0}});window.addEventListener("test",Dn,Dn),window.removeEventListener("test",Dn,Dn)}catch{Mr=!1}var _t=Mr?{passive:!1}:!1,If=function(e){return e.tagName==="TEXTAREA"},gs=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!If(e)&&n[t]==="visible")},Wf=function(e){return gs(e,"overflowY")},Ff=function(e){return gs(e,"overflowX")},bs=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=vs(e,r);if(o){var a=xs(e,r),s=a[1],i=a[2];if(s>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Lf=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},$f=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},vs=function(e,t){return e==="v"?Wf(t):Ff(t)},xs=function(e,t){return e==="v"?Lf(t):$f(t)},Bf=function(e,t){return e==="h"&&t==="rtl"?-1:1},zf=function(e,t,n,r,o){var a=Bf(e,window.getComputedStyle(t).direction),s=a*r,i=n.target,l=t.contains(i),d=!1,f=s>0,m=0,p=0;do{if(!i)break;var g=xs(e,i),b=g[0],h=g[1],v=g[2],x=h-v-a*b;(b||x)&&vs(e,i)&&(m+=x,p+=b);var y=i.parentNode;i=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!l&&i!==document.body||l&&(t.contains(i)||t===i));return(f&&Math.abs(m)<1||!f&&Math.abs(p)<1)&&(d=!0),d},An=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ys=function(e){return[e.deltaX,e.deltaY]},ws=function(e){return e&&"current"in e?e.current:e},Vf=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Yf=function(e){return`
160
175
  .block-interactivity-`.concat(e,` {pointer-events: none;}
161
176
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
162
- `)},Zu=0,Qe=[];function Ju(e){var t=l.useRef([]),r=l.useRef([0,0]),n=l.useRef(),o=l.useState(Zu++)[0],a=l.useState(ua)[0],s=l.useRef(e);l.useEffect(function(){s.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=xu([e.lockRef.current],(e.shards||[]).map(va),!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!s.current.allowPinchZoom;var x=Yt(m),w=r.current,y="deltaX"in m?m.deltaX:w[0]-x[0],C="deltaY"in m?m.deltaY:w[1]-x[1],E,T=m.target,_=Math.abs(y)>Math.abs(C)?"h":"v";if("touches"in m&&_==="h"&&T.type==="range")return!1;var R=pa(_,T);if(!R)return!0;if(R?E=_:(E=_==="v"?"h":"v",R=pa(_,T)),!R)return!1;if(!n.current&&"changedTouches"in m&&(y||C)&&(n.current=E),!E)return!0;var G=n.current||E;return Yu(G,b,m,G==="h"?y:C)},[]),c=l.useCallback(function(m){var b=m;if(!(!Qe.length||Qe[Qe.length-1]!==a)){var x="deltaY"in b?ga(b):Yt(b),w=t.current.filter(function(E){return E.name===b.type&&(E.target===b.target||b.target===E.shadowParent)&&qu(E.delta,x)})[0];if(w&&w.should){b.cancelable&&b.preventDefault();return}if(!w){var y=(s.current.shards||[]).map(va).filter(Boolean).filter(function(E){return E.contains(b.target)}),C=y.length>0?i(b,y[0]):!s.current.noIsolation;C&&b.cancelable&&b.preventDefault()}}},[]),d=l.useCallback(function(m,b,x,w){var y={name:m,delta:b,target:x,should:w,shadowParent:Qu(x)};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(C){return C!==y})},1)},[]),f=l.useCallback(function(m){r.current=Yt(m),n.current=void 0},[]),p=l.useCallback(function(m){d(m.type,ga(m),m.target,i(m,e.lockRef.current))},[]),g=l.useCallback(function(m){d(m.type,Yt(m),m.target,i(m,e.lockRef.current))},[]);l.useEffect(function(){return Qe.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:g}),document.addEventListener("wheel",c,Je),document.addEventListener("touchmove",c,Je),document.addEventListener("touchstart",f,Je),function(){Qe=Qe.filter(function(m){return m!==a}),document.removeEventListener("wheel",c,Je),document.removeEventListener("touchmove",c,Je),document.removeEventListener("touchstart",f,Je)}},[]);var h=e.removeScrollBar,v=e.inert;return l.createElement(l.Fragment,null,v?l.createElement(a,{styles:Xu(o)}):null,h?l.createElement(Bu,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Qu(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ed=Nu(ca,Ju);var qt=l.forwardRef(function(e,t){return l.createElement(Ut,ye({},e,{ref:t,sideCar:ed}))});qt.classNames=Ut.classNames;var td=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},et=new WeakMap,Xt=new WeakMap,Zt={},Wr=0,ba=function(e){return e&&(e.host||ba(e.parentNode))},rd=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=ba(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},nd=function(e,t,r,n){var o=rd(t,Array.isArray(e)?e:[e]);Zt[r]||(Zt[r]=new WeakMap);var a=Zt[r],s=[],i=new Set,c=new Set(o),d=function(p){!p||i.has(p)||(i.add(p),d(p.parentNode))};o.forEach(d);var f=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(g){if(i.has(g))f(g);else try{var h=g.getAttribute(n),v=h!==null&&h!=="false",m=(et.get(g)||0)+1,b=(a.get(g)||0)+1;et.set(g,m),a.set(g,b),s.push(g),m===1&&v&&Xt.set(g,!0),b===1&&g.setAttribute(r,"true"),v||g.setAttribute(n,"true")}catch(x){console.error("aria-hidden: cannot operate on ",g,x)}})};return f(t),i.clear(),Wr++,function(){s.forEach(function(p){var g=et.get(p)-1,h=a.get(p)-1;et.set(p,g),a.set(p,h),g||(Xt.has(p)||p.removeAttribute(n),Xt.delete(p)),h||p.removeAttribute(r)}),Wr--,Wr||(et=new WeakMap,et=new WeakMap,Xt=new WeakMap,Zt={})}},Gr=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=td(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),nd(n,o,r,"aria-hidden")):function(){return null}},Jt="Dialog",[xa,Eg]=de(Jt),[od,ge]=xa(Jt),wa=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,i=l.useRef(null),c=l.useRef(null),[d,f]=we({prop:n,defaultProp:o??!1,onChange:a,caller:Jt});return u.jsx(od,{scope:t,triggerRef:i,contentRef:c,contentId:ce(),titleId:ce(),descriptionId:ce(),open:d,onOpenChange:f,onOpenToggle:l.useCallback(()=>f(p=>!p),[f]),modal:s,children:r})};wa.displayName=Jt;var ya="DialogTrigger",Sa=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ge(ya,r),a=ne(t,o.triggerRef);return u.jsx(V.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Kr(o.open),...n,ref:a,onClick:z(e.onClick,o.onOpenToggle)})});Sa.displayName=ya;var Hr="DialogPortal",[ad,Ca]=xa(Hr,{forceMount:void 0}),ka=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=ge(Hr,t);return u.jsx(ad,{scope:t,forceMount:r,children:l.Children.map(n,s=>u.jsx(he,{present:r||a.open,children:u.jsx(gt,{asChild:!0,container:o,children:s})}))})};ka.displayName=Hr;var Qt="DialogOverlay",Ea=l.forwardRef((e,t)=>{const r=Ca(Qt,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=ge(Qt,e.__scopeDialog);return a.modal?u.jsx(he,{present:n||a.open,children:u.jsx(id,{...o,ref:t})}):null});Ea.displayName=Qt;var sd=Be("DialogOverlay.RemoveScroll"),id=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ge(Qt,r);return u.jsx(qt,{as:sd,allowPinchZoom:!0,shards:[o.contentRef],children:u.jsx(V.div,{"data-state":Kr(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),We="DialogContent",Ra=l.forwardRef((e,t)=>{const r=Ca(We,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=ge(We,e.__scopeDialog);return u.jsx(he,{present:n||a.open,children:a.modal?u.jsx(ld,{...o,ref:t}):u.jsx(cd,{...o,ref:t})})});Ra.displayName=We;var ld=l.forwardRef((e,t)=>{const r=ge(We,e.__scopeDialog),n=l.useRef(null),o=ne(t,r.contentRef,n);return l.useEffect(()=>{const a=n.current;if(a)return Gr(a)},[]),u.jsx(_a,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:z(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=r.triggerRef.current)==null||s.focus()}),onPointerDownOutside:z(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&a.preventDefault()}),onFocusOutside:z(e.onFocusOutside,a=>a.preventDefault())})}),cd=l.forwardRef((e,t)=>{const r=ge(We,e.__scopeDialog),n=l.useRef(!1),o=l.useRef(!1);return u.jsx(_a,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(n.current||(i=r.triggerRef.current)==null||i.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var c,d;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((d=r.triggerRef.current)==null?void 0:d.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),_a=l.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,i=ge(We,r),c=l.useRef(null),d=ne(t,c);return $r(),u.jsxs(u.Fragment,{children:[u.jsx(Wt,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:u.jsx(ht,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":Kr(i.open),...s,ref:d,onDismiss:()=>i.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(ud,{titleId:i.titleId}),u.jsx(fd,{contentRef:c,descriptionId:i.descriptionId})]})]})}),Ur="DialogTitle",Na=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ge(Ur,r);return u.jsx(V.h2,{id:o.titleId,...n,ref:t})});Na.displayName=Ur;var Pa="DialogDescription",Ta=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ge(Pa,r);return u.jsx(V.p,{id:o.descriptionId,...n,ref:t})});Ta.displayName=Pa;var Aa="DialogClose",Ia=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ge(Aa,r);return u.jsx(V.button,{type:"button",...n,ref:t,onClick:z(e.onClick,()=>o.onOpenChange(!1))})});Ia.displayName=Aa;function Kr(e){return e?"open":"closed"}var ja="DialogTitleWarning",[Rg,Oa]=Kl(ja,{contentName:We,titleName:Ur,docsSlug:"dialog"}),ud=({titleId:e})=>{const t=Oa(ja),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
177
+ `)},Hf=0,Mt=[];function Gf(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),o=u.useState(Hf++)[0],a=u.useState(hs)[0],s=u.useRef(e);u.useEffect(function(){s.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=mf([e.lockRef.current],(e.shards||[]).map(ws),!0).filter(Boolean);return h.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=u.useCallback(function(h,v){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!s.current.allowPinchZoom;var x=An(h),y=n.current,w="deltaX"in h?h.deltaX:y[0]-x[0],S="deltaY"in h?h.deltaY:y[1]-x[1],k,_=h.target,C=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in h&&C==="h"&&_.type==="range")return!1;var E=bs(C,_);if(!E)return!0;if(E?k=C:(k=C==="v"?"h":"v",E=bs(C,_)),!E)return!1;if(!r.current&&"changedTouches"in h&&(w||S)&&(r.current=k),!k)return!0;var $=r.current||k;return zf($,v,h,$==="h"?w:S)},[]),l=u.useCallback(function(h){var v=h;if(!(!Mt.length||Mt[Mt.length-1]!==a)){var x="deltaY"in v?ys(v):An(v),y=t.current.filter(function(k){return k.name===v.type&&(k.target===v.target||v.target===k.shadowParent)&&Vf(k.delta,x)})[0];if(y&&y.should){v.cancelable&&v.preventDefault();return}if(!y){var w=(s.current.shards||[]).map(ws).filter(Boolean).filter(function(k){return k.contains(v.target)}),S=w.length>0?i(v,w[0]):!s.current.noIsolation;S&&v.cancelable&&v.preventDefault()}}},[]),d=u.useCallback(function(h,v,x,y){var w={name:h,delta:v,target:x,should:y,shadowParent:Uf(x)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),f=u.useCallback(function(h){n.current=An(h),r.current=void 0},[]),m=u.useCallback(function(h){d(h.type,ys(h),h.target,i(h,e.lockRef.current))},[]),p=u.useCallback(function(h){d(h.type,An(h),h.target,i(h,e.lockRef.current))},[]);u.useEffect(function(){return Mt.push(a),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:p}),document.addEventListener("wheel",l,_t),document.addEventListener("touchmove",l,_t),document.addEventListener("touchstart",f,_t),function(){Mt=Mt.filter(function(h){return h!==a}),document.removeEventListener("wheel",l,_t),document.removeEventListener("touchmove",l,_t),document.removeEventListener("touchstart",f,_t)}},[]);var g=e.removeScrollBar,b=e.inert;return u.createElement(u.Fragment,null,b?u.createElement(a,{styles:Yf(o)}):null,g?u.createElement(Rf,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Uf(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const qf=kf(ms,Gf);var jn=u.forwardRef(function(e,t){return u.createElement(Pn,Fe({},e,{ref:t,sideCar:qf}))});jn.classNames=Pn.classNames;var Kf=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ot=new WeakMap,Rn=new WeakMap,In={},Or=0,ks=function(e){return e&&(e.host||ks(e.parentNode))},Xf=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=ks(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})},Zf=function(e,t,n,r){var o=Xf(t,Array.isArray(e)?e:[e]);In[n]||(In[n]=new WeakMap);var a=In[n],s=[],i=new Set,l=new Set(o),d=function(m){!m||i.has(m)||(i.add(m),d(m.parentNode))};o.forEach(d);var f=function(m){!m||l.has(m)||Array.prototype.forEach.call(m.children,function(p){if(i.has(p))f(p);else try{var g=p.getAttribute(r),b=g!==null&&g!=="false",h=(Ot.get(p)||0)+1,v=(a.get(p)||0)+1;Ot.set(p,h),a.set(p,v),s.push(p),h===1&&b&&Rn.set(p,!0),v===1&&p.setAttribute(n,"true"),b||p.setAttribute(r,"true")}catch(x){console.error("aria-hidden: cannot operate on ",p,x)}})};return f(t),i.clear(),Or++,function(){s.forEach(function(m){var p=Ot.get(m)-1,g=a.get(m)-1;Ot.set(m,p),a.set(m,g),p||(Rn.has(m)||m.removeAttribute(r),Rn.delete(m)),g||m.removeAttribute(n)}),Or--,Or||(Ot=new WeakMap,Ot=new WeakMap,Rn=new WeakMap,In={})}},Tr=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Kf(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Zf(r,o,n,"aria-hidden")):function(){return null}},Wn="Dialog",[Ss,y0]=Ce(Wn),[Qf,De]=Ss(Wn),Cs=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,i=u.useRef(null),l=u.useRef(null),[d,f]=We({prop:r,defaultProp:o??!1,onChange:a,caller:Wn});return c.jsx(Qf,{scope:t,triggerRef:i,contentRef:l,contentId:ye(),titleId:ye(),descriptionId:ye(),open:d,onOpenChange:f,onOpenToggle:u.useCallback(()=>f(m=>!m),[f]),modal:s,children:n})};Cs.displayName=Wn;var Ns="DialogTrigger",Es=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=De(Ns,n),a=le(t,o.triggerRef);return c.jsx(Y.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ar(o.open),...r,ref:a,onClick:q(e.onClick,o.onOpenToggle)})});Es.displayName=Ns;var Pr="DialogPortal",[Jf,_s]=Ss(Pr,{forceMount:void 0}),Ms=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=De(Pr,t);return c.jsx(Jf,{scope:t,forceMount:n,children:u.Children.map(r,s=>c.jsx(Pe,{present:n||a.open,children:c.jsx(Kt,{asChild:!0,container:o,children:s})}))})};Ms.displayName=Pr;var Fn="DialogOverlay",Os=u.forwardRef((e,t)=>{const n=_s(Fn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=De(Fn,e.__scopeDialog);return a.modal?c.jsx(Pe,{present:r||a.open,children:c.jsx(tm,{...o,ref:t})}):null});Os.displayName=Fn;var em=dt("DialogOverlay.RemoveScroll"),tm=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=De(Fn,n);return c.jsx(jn,{as:em,allowPinchZoom:!0,shards:[o.contentRef],children:c.jsx(Y.div,{"data-state":Ar(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ft="DialogContent",Ts=u.forwardRef((e,t)=>{const n=_s(ft,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=De(ft,e.__scopeDialog);return c.jsx(Pe,{present:r||a.open,children:a.modal?c.jsx(nm,{...o,ref:t}):c.jsx(rm,{...o,ref:t})})});Ts.displayName=ft;var nm=u.forwardRef((e,t)=>{const n=De(ft,e.__scopeDialog),r=u.useRef(null),o=le(t,n.contentRef,r);return u.useEffect(()=>{const a=r.current;if(a)return Tr(a)},[]),c.jsx(Ps,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:q(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:q(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&a.preventDefault()}),onFocusOutside:q(e.onFocusOutside,a=>a.preventDefault())})}),rm=u.forwardRef((e,t)=>{const n=De(ft,e.__scopeDialog),r=u.useRef(!1),o=u.useRef(!1);return c.jsx(Ps,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(r.current||(i=n.triggerRef.current)==null||i.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var l,d;(l=e.onInteractOutside)==null||l.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((d=n.triggerRef.current)==null?void 0:d.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Ps=u.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,i=De(ft,n),l=u.useRef(null),d=le(t,l);return Cr(),c.jsxs(c.Fragment,{children:[c.jsx(Mn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:c.jsx(qt,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":Ar(i.open),...s,ref:d,onDismiss:()=>i.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx(om,{titleId:i.titleId}),c.jsx(sm,{contentRef:l,descriptionId:i.descriptionId})]})]})}),Dr="DialogTitle",Ds=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=De(Dr,n);return c.jsx(Y.h2,{id:o.titleId,...r,ref:t})});Ds.displayName=Dr;var As="DialogDescription",js=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=De(As,n);return c.jsx(Y.p,{id:o.descriptionId,...r,ref:t})});js.displayName=As;var Rs="DialogClose",Is=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=De(Rs,n);return c.jsx(Y.button,{type:"button",...r,ref:t,onClick:q(e.onClick,()=>o.onOpenChange(!1))})});Is.displayName=Rs;function Ar(e){return e?"open":"closed"}var Ws="DialogTitleWarning",[w0,Fs]=Ld(Ws,{contentName:ft,titleName:Dr,docsSlug:"dialog"}),om=({titleId:e})=>{const t=Fs(Ws),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
163
178
 
164
179
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
165
180
 
166
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},dd="DialogDescriptionWarning",fd=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Oa(dd).contentName}}.`;return l.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Ma=wa,pd=Sa,Da=ka,La=Ea,$a=Ra,md=Na,hd=Ta,Fa=Ia;function gd({...e}){return u.jsx(Ma,{"data-slot":"dialog",...e})}function vd({...e}){return u.jsx(pd,{"data-slot":"dialog-trigger",...e})}function Va({...e}){return u.jsx(Da,{"data-slot":"dialog-portal",...e})}function bd({...e}){return u.jsx(Fa,{"data-slot":"dialog-close",...e})}function Ba({className:e,...t}){return u.jsx(La,{"data-slot":"dialog-overlay",className:j("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 xd({className:e,children:t,showCloseButton:r=!0,...n}){return u.jsxs(Va,{"data-slot":"dialog-portal",children:[u.jsx(Ba,{}),u.jsxs($a,{"data-slot":"dialog-content",className:j("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),...n,children:[t,r&&u.jsxs(Fa,{"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:[u.jsx(Yo,{}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function wd({className:e,...t}){return u.jsx("div",{"data-slot":"dialog-header",className:j("flex flex-col gap-2 text-center sm:text-left",e),...t})}function yd({className:e,...t}){return u.jsx("div",{"data-slot":"dialog-footer",className:j("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function Sd({className:e,...t}){return u.jsx(md,{"data-slot":"dialog-title",className:j("text-lg leading-none font-semibold ",e),...t})}function Cd({className:e,...t}){return u.jsx(hd,{"data-slot":"dialog-description",className:j("text-muted-foreground text-sm",e),...t})}const kd=le("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"}}),Yr=l.forwardRef(({className:e,variant:t,type:r="filled",asChild:n=!1,children:o,...a},s)=>{const i=n?At:"span";return u.jsx(i,{ref:s,"data-slot":"badge",className:j(kd({variant:t,type:r}),r==="outline"?"bg-transparent":"",e),...a,children:o})});Yr.displayName="Badge";const Ed=["top","right","bottom","left"],Oe=Math.min,fe=Math.max,er=Math.round,tr=Math.floor,Se=e=>({x:e,y:e}),Rd={left:"right",right:"left",bottom:"top",top:"bottom"},_d={start:"end",end:"start"};function qr(e,t,r){return fe(e,Oe(t,r))}function Pe(e,t){return typeof e=="function"?e(t):e}function Te(e){return e.split("-")[0]}function tt(e){return e.split("-")[1]}function Xr(e){return e==="x"?"y":"x"}function Zr(e){return e==="y"?"height":"width"}const Nd=new Set(["top","bottom"]);function Ce(e){return Nd.has(Te(e))?"y":"x"}function Jr(e){return Xr(Ce(e))}function Pd(e,t,r){r===void 0&&(r=!1);const n=tt(e),o=Jr(e),a=Zr(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=rr(s)),[s,rr(s)]}function Td(e){const t=rr(e);return[Qr(e),t,Qr(t)]}function Qr(e){return e.replace(/start|end/g,t=>_d[t])}const za=["left","right"],Wa=["right","left"],Ad=["top","bottom"],Id=["bottom","top"];function jd(e,t,r){switch(e){case"top":case"bottom":return r?t?Wa:za:t?za:Wa;case"left":case"right":return t?Ad:Id;default:return[]}}function Od(e,t,r,n){const o=tt(e);let a=jd(Te(e),r==="start",n);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(Qr)))),a}function rr(e){return e.replace(/left|right|bottom|top/g,t=>Rd[t])}function Md(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ga(e){return typeof e!="number"?Md(e):{top:e,right:e,bottom:e,left:e}}function nr(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Ha(e,t,r){let{reference:n,floating:o}=e;const a=Ce(t),s=Jr(t),i=Zr(s),c=Te(t),d=a==="y",f=n.x+n.width/2-o.width/2,p=n.y+n.height/2-o.height/2,g=n[i]/2-o[i]/2;let h;switch(c){case"top":h={x:f,y:n.y-o.height};break;case"bottom":h={x:f,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:p};break;case"left":h={x:n.x-o.width,y:p};break;default:h={x:n.x,y:n.y}}switch(tt(t)){case"start":h[s]-=g*(r&&d?-1:1);break;case"end":h[s]+=g*(r&&d?-1:1);break}return h}const Dd=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:s}=r,i=a.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=Ha(d,n,c),g=n,h={},v=0;for(let m=0;m<i.length;m++){const{name:b,fn:x}=i[m],{x:w,y,data:C,reset:E}=await x({x:f,y:p,initialPlacement:n,placement:g,strategy:o,middlewareData:h,rects:d,platform:s,elements:{reference:e,floating:t}});f=w??f,p=y??p,h={...h,[b]:{...h[b],...C}},E&&v<=50&&(v++,typeof E=="object"&&(E.placement&&(g=E.placement),E.rects&&(d=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:f,y:p}=Ha(d,g,c)),m=-1)}return{x:f,y:p,placement:g,strategy:o,middlewareData:h}};async function vt(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:s,elements:i,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:g=!1,padding:h=0}=Pe(t,e),v=Ga(h),b=i[g?p==="floating"?"reference":"floating":p],x=nr(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(b)))==null||r?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:d,rootBoundary:f,strategy:c})),w=p==="floating"?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),C=await(a.isElement==null?void 0:a.isElement(y))?await(a.getScale==null?void 0:a.getScale(y))||{x:1,y:1}:{x:1,y:1},E=nr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:w,offsetParent:y,strategy:c}):w);return{top:(x.top-E.top+v.top)/C.y,bottom:(E.bottom-x.bottom+v.bottom)/C.y,left:(x.left-E.left+v.left)/C.x,right:(E.right-x.right+v.right)/C.x}}const Ld=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:s,elements:i,middlewareData:c}=t,{element:d,padding:f=0}=Pe(e,t)||{};if(d==null)return{};const p=Ga(f),g={x:r,y:n},h=Jr(o),v=Zr(h),m=await s.getDimensions(d),b=h==="y",x=b?"top":"left",w=b?"bottom":"right",y=b?"clientHeight":"clientWidth",C=a.reference[v]+a.reference[h]-g[h]-a.floating[v],E=g[h]-a.reference[h],T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let _=T?T[y]:0;(!_||!await(s.isElement==null?void 0:s.isElement(T)))&&(_=i.floating[y]||a.floating[v]);const R=C/2-E/2,G=_/2-m[v]/2-1,K=Oe(p[x],G),X=Oe(p[w],G),Q=K,ee=_-m[v]-X,W=_/2-m[v]/2+R,q=qr(Q,W,ee),$=!c.arrow&&tt(o)!=null&&W!==q&&a.reference[v]/2-(W<Q?K:X)-m[v]/2<0,H=$?W<Q?W-Q:W-ee:0;return{[h]:g[h]+H,data:{[h]:q,centerOffset:W-q-H,...$&&{alignmentOffset:H}},reset:$}}}),$d=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...b}=Pe(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const x=Te(o),w=Ce(i),y=Te(i)===i,C=await(c.isRTL==null?void 0:c.isRTL(d.floating)),E=g||(y||!m?[rr(i)]:Td(i)),T=v!=="none";!g&&T&&E.push(...Od(i,m,v,C));const _=[i,...E],R=await vt(t,b),G=[];let K=((n=a.flip)==null?void 0:n.overflows)||[];if(f&&G.push(R[x]),p){const W=Pd(o,s,C);G.push(R[W[0]],R[W[1]])}if(K=[...K,{placement:o,overflows:G}],!G.every(W=>W<=0)){var X,Q;const W=(((X=a.flip)==null?void 0:X.index)||0)+1,q=_[W];if(q&&(!(p==="alignment"?w!==Ce(q):!1)||K.every(N=>Ce(N.placement)===w?N.overflows[0]>0:!0)))return{data:{index:W,overflows:K},reset:{placement:q}};let $=(Q=K.filter(H=>H.overflows[0]<=0).sort((H,N)=>H.overflows[1]-N.overflows[1])[0])==null?void 0:Q.placement;if(!$)switch(h){case"bestFit":{var ee;const H=(ee=K.filter(N=>{if(T){const te=Ce(N.placement);return te===w||te==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(te=>te>0).reduce((te,k)=>te+k,0)]).sort((N,te)=>N[1]-te[1])[0])==null?void 0:ee[0];H&&($=H);break}case"initialPlacement":$=i;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function Ua(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ka(e){return Ed.some(t=>e[t]>=0)}const Fd=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Pe(e,t);switch(n){case"referenceHidden":{const a=await vt(t,{...o,elementContext:"reference"}),s=Ua(a,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ka(s)}}}case"escaped":{const a=await vt(t,{...o,altBoundary:!0}),s=Ua(a,r.floating);return{data:{escapedOffsets:s,escaped:Ka(s)}}}default:return{}}}}},Ya=new Set(["left","top"]);async function Vd(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=Te(r),i=tt(r),c=Ce(r)==="y",d=Ya.has(s)?-1:1,f=a&&c?-1:1,p=Pe(t,e);let{mainAxis:g,crossAxis:h,alignmentAxis:v}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return i&&typeof v=="number"&&(h=i==="end"?v*-1:v),c?{x:h*f,y:g*d}:{x:g*d,y:h*f}}const Bd=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:a,placement:s,middlewareData:i}=t,c=await Vd(t,e);return s===((r=i.offset)==null?void 0:r.placement)&&(n=i.arrow)!=null&&n.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:s}}}}},zd=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:b=>{let{x,y:w}=b;return{x,y:w}}},...c}=Pe(e,t),d={x:r,y:n},f=await vt(t,c),p=Ce(Te(o)),g=Xr(p);let h=d[g],v=d[p];if(a){const b=g==="y"?"top":"left",x=g==="y"?"bottom":"right",w=h+f[b],y=h-f[x];h=qr(w,h,y)}if(s){const b=p==="y"?"top":"left",x=p==="y"?"bottom":"right",w=v+f[b],y=v-f[x];v=qr(w,v,y)}const m=i.fn({...t,[g]:h,[p]:v});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[g]:a,[p]:s}}}}}},Wd=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:c=!0,crossAxis:d=!0}=Pe(e,t),f={x:r,y:n},p=Ce(o),g=Xr(p);let h=f[g],v=f[p];const m=Pe(i,t),b=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const y=g==="y"?"height":"width",C=a.reference[g]-a.floating[y]+b.mainAxis,E=a.reference[g]+a.reference[y]-b.mainAxis;h<C?h=C:h>E&&(h=E)}if(d){var x,w;const y=g==="y"?"width":"height",C=Ya.has(Te(o)),E=a.reference[p]-a.floating[y]+(C&&((x=s.offset)==null?void 0:x[p])||0)+(C?0:b.crossAxis),T=a.reference[p]+a.reference[y]+(C?0:((w=s.offset)==null?void 0:w[p])||0)-(C?b.crossAxis:0);v<E?v=E:v>T&&(v=T)}return{[g]:h,[p]:v}}}},Gd=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:a,platform:s,elements:i}=t,{apply:c=()=>{},...d}=Pe(e,t),f=await vt(t,d),p=Te(o),g=tt(o),h=Ce(o)==="y",{width:v,height:m}=a.floating;let b,x;p==="top"||p==="bottom"?(b=p,x=g===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(x=p,b=g==="end"?"top":"bottom");const w=m-f.top-f.bottom,y=v-f.left-f.right,C=Oe(m-f[b],w),E=Oe(v-f[x],y),T=!t.middlewareData.shift;let _=C,R=E;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(R=y),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(_=w),T&&!g){const K=fe(f.left,0),X=fe(f.right,0),Q=fe(f.top,0),ee=fe(f.bottom,0);h?R=v-2*(K!==0||X!==0?K+X:fe(f.left,f.right)):_=m-2*(Q!==0||ee!==0?Q+ee:fe(f.top,f.bottom))}await c({...t,availableWidth:R,availableHeight:_});const G=await s.getDimensions(i.floating);return v!==G.width||m!==G.height?{reset:{rects:!0}}:{}}}};function or(){return typeof window<"u"}function rt(e){return qa(e)?(e.nodeName||"").toLowerCase():"#document"}function pe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ke(e){var t;return(t=(qa(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function qa(e){return or()?e instanceof Node||e instanceof pe(e).Node:!1}function ve(e){return or()?e instanceof Element||e instanceof pe(e).Element:!1}function Ee(e){return or()?e instanceof HTMLElement||e instanceof pe(e).HTMLElement:!1}function Xa(e){return!or()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof pe(e).ShadowRoot}const Hd=new Set(["inline","contents"]);function bt(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=be(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!Hd.has(o)}const Ud=new Set(["table","td","th"]);function Kd(e){return Ud.has(rt(e))}const Yd=[":popover-open",":modal"];function ar(e){return Yd.some(t=>{try{return e.matches(t)}catch{return!1}})}const qd=["transform","translate","scale","rotate","perspective"],Xd=["transform","translate","scale","rotate","perspective","filter"],Zd=["paint","layout","strict","content"];function en(e){const t=tn(),r=ve(e)?be(e):e;return qd.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||Xd.some(n=>(r.willChange||"").includes(n))||Zd.some(n=>(r.contain||"").includes(n))}function Jd(e){let t=Me(e);for(;Ee(t)&&!nt(t);){if(en(t))return t;if(ar(t))return null;t=Me(t)}return null}function tn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Qd=new Set(["html","body","#document"]);function nt(e){return Qd.has(rt(e))}function be(e){return pe(e).getComputedStyle(e)}function sr(e){return ve(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Me(e){if(rt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Xa(e)&&e.host||ke(e);return Xa(t)?t.host:t}function Za(e){const t=Me(e);return nt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ee(t)&&bt(t)?t:Za(t)}function xt(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Za(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),s=pe(o);if(a){const i=rn(s);return t.concat(s,s.visualViewport||[],bt(o)?o:[],i&&r?xt(i):[])}return t.concat(o,xt(o,[],r))}function rn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ja(e){const t=be(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Ee(e),a=o?e.offsetWidth:r,s=o?e.offsetHeight:n,i=er(r)!==a||er(n)!==s;return i&&(r=a,n=s),{width:r,height:n,$:i}}function nn(e){return ve(e)?e:e.contextElement}function ot(e){const t=nn(e);if(!Ee(t))return Se(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=Ja(t);let s=(a?er(r.width):r.width)/n,i=(a?er(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const ef=Se(0);function Qa(e){const t=pe(e);return!tn()||!t.visualViewport?ef:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function tf(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==pe(e)?!1:t}function Ge(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=nn(e);let s=Se(1);t&&(n?ve(n)&&(s=ot(n)):s=ot(e));const i=tf(a,r,n)?Qa(a):Se(0);let c=(o.left+i.x)/s.x,d=(o.top+i.y)/s.y,f=o.width/s.x,p=o.height/s.y;if(a){const g=pe(a),h=n&&ve(n)?pe(n):n;let v=g,m=rn(v);for(;m&&n&&h!==v;){const b=ot(m),x=m.getBoundingClientRect(),w=be(m),y=x.left+(m.clientLeft+parseFloat(w.paddingLeft))*b.x,C=x.top+(m.clientTop+parseFloat(w.paddingTop))*b.y;c*=b.x,d*=b.y,f*=b.x,p*=b.y,c+=y,d+=C,v=pe(m),m=rn(v)}}return nr({width:f,height:p,x:c,y:d})}function ir(e,t){const r=sr(e).scrollLeft;return t?t.left+r:Ge(ke(e)).left+r}function es(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-ir(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function rf(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",s=ke(n),i=t?ar(t.floating):!1;if(n===s||i&&a)return r;let c={scrollLeft:0,scrollTop:0},d=Se(1);const f=Se(0),p=Ee(n);if((p||!p&&!a)&&((rt(n)!=="body"||bt(s))&&(c=sr(n)),Ee(n))){const h=Ge(n);d=ot(n),f.x=h.x+n.clientLeft,f.y=h.y+n.clientTop}const g=s&&!p&&!a?es(s,c):Se(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-c.scrollLeft*d.x+f.x+g.x,y:r.y*d.y-c.scrollTop*d.y+f.y+g.y}}function nf(e){return Array.from(e.getClientRects())}function of(e){const t=ke(e),r=sr(e),n=e.ownerDocument.body,o=fe(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=fe(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+ir(e);const i=-r.scrollTop;return be(n).direction==="rtl"&&(s+=fe(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:s,y:i}}const ts=25;function af(e,t){const r=pe(e),n=ke(e),o=r.visualViewport;let a=n.clientWidth,s=n.clientHeight,i=0,c=0;if(o){a=o.width,s=o.height;const f=tn();(!f||f&&t==="fixed")&&(i=o.offsetLeft,c=o.offsetTop)}const d=ir(n);if(d<=0){const f=n.ownerDocument,p=f.body,g=getComputedStyle(p),h=f.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,v=Math.abs(n.clientWidth-p.clientWidth-h);v<=ts&&(a-=v)}else d<=ts&&(a+=d);return{width:a,height:s,x:i,y:c}}const sf=new Set(["absolute","fixed"]);function lf(e,t){const r=Ge(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=Ee(e)?ot(e):Se(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,c=o*a.x,d=n*a.y;return{width:s,height:i,x:c,y:d}}function rs(e,t,r){let n;if(t==="viewport")n=af(e,r);else if(t==="document")n=of(ke(e));else if(ve(t))n=lf(t,r);else{const o=Qa(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return nr(n)}function ns(e,t){const r=Me(e);return r===t||!ve(r)||nt(r)?!1:be(r).position==="fixed"||ns(r,t)}function cf(e,t){const r=t.get(e);if(r)return r;let n=xt(e,[],!1).filter(i=>ve(i)&&rt(i)!=="body"),o=null;const a=be(e).position==="fixed";let s=a?Me(e):e;for(;ve(s)&&!nt(s);){const i=be(s),c=en(s);!c&&i.position==="fixed"&&(o=null),(a?!c&&!o:!c&&i.position==="static"&&!!o&&sf.has(o.position)||bt(s)&&!c&&ns(e,s))?n=n.filter(f=>f!==s):o=i,s=Me(s)}return t.set(e,n),n}function uf(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?ar(t)?[]:cf(t,this._c):[].concat(r),n],i=s[0],c=s.reduce((d,f)=>{const p=rs(t,f,o);return d.top=fe(p.top,d.top),d.right=Oe(p.right,d.right),d.bottom=Oe(p.bottom,d.bottom),d.left=fe(p.left,d.left),d},rs(t,i,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function df(e){const{width:t,height:r}=Ja(e);return{width:t,height:r}}function ff(e,t,r){const n=Ee(t),o=ke(t),a=r==="fixed",s=Ge(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const c=Se(0);function d(){c.x=ir(o)}if(n||!n&&!a)if((rt(t)!=="body"||bt(o))&&(i=sr(t)),n){const h=Ge(t,!0,a,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else o&&d();a&&!n&&o&&d();const f=o&&!n&&!a?es(o,i):Se(0),p=s.left+i.scrollLeft-c.x-f.x,g=s.top+i.scrollTop-c.y-f.y;return{x:p,y:g,width:s.width,height:s.height}}function on(e){return be(e).position==="static"}function os(e,t){if(!Ee(e)||be(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return ke(e)===r&&(r=r.ownerDocument.body),r}function as(e,t){const r=pe(e);if(ar(e))return r;if(!Ee(e)){let o=Me(e);for(;o&&!nt(o);){if(ve(o)&&!on(o))return o;o=Me(o)}return r}let n=os(e,t);for(;n&&Kd(n)&&on(n);)n=os(n,t);return n&&nt(n)&&on(n)&&!en(n)?r:n||Jd(e)||r}const pf=async function(e){const t=this.getOffsetParent||as,r=this.getDimensions,n=await r(e.floating);return{reference:ff(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function mf(e){return be(e).direction==="rtl"}const hf={convertOffsetParentRelativeRectToViewportRelativeRect:rf,getDocumentElement:ke,getClippingRect:uf,getOffsetParent:as,getElementRects:pf,getClientRects:nf,getDimensions:df,getScale:ot,isElement:ve,isRTL:mf};function ss(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function gf(e,t){let r=null,n;const o=ke(e);function a(){var i;clearTimeout(n),(i=r)==null||i.disconnect(),r=null}function s(i,c){i===void 0&&(i=!1),c===void 0&&(c=1),a();const d=e.getBoundingClientRect(),{left:f,top:p,width:g,height:h}=d;if(i||t(),!g||!h)return;const v=tr(p),m=tr(o.clientWidth-(f+g)),b=tr(o.clientHeight-(p+h)),x=tr(f),y={rootMargin:-v+"px "+-m+"px "+-b+"px "+-x+"px",threshold:fe(0,Oe(1,c))||1};let C=!0;function E(T){const _=T[0].intersectionRatio;if(_!==c){if(!C)return s();_?s(!1,_):n=setTimeout(()=>{s(!1,1e-7)},1e3)}_===1&&!ss(d,e.getBoundingClientRect())&&s(),C=!1}try{r=new IntersectionObserver(E,{...y,root:o.ownerDocument})}catch{r=new IntersectionObserver(E,y)}r.observe(e)}return s(!0),a}function vf(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,d=nn(e),f=o||a?[...d?xt(d):[],...xt(t)]:[];f.forEach(x=>{o&&x.addEventListener("scroll",r,{passive:!0}),a&&x.addEventListener("resize",r)});const p=d&&i?gf(d,r):null;let g=-1,h=null;s&&(h=new ResizeObserver(x=>{let[w]=x;w&&w.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var y;(y=h)==null||y.observe(t)})),r()}),d&&!c&&h.observe(d),h.observe(t));let v,m=c?Ge(e):null;c&&b();function b(){const x=Ge(e);m&&!ss(m,x)&&r(),m=x,v=requestAnimationFrame(b)}return r(),()=>{var x;f.forEach(w=>{o&&w.removeEventListener("scroll",r),a&&w.removeEventListener("resize",r)}),p==null||p(),(x=h)==null||x.disconnect(),h=null,c&&cancelAnimationFrame(v)}}const bf=Bd,xf=zd,wf=$d,yf=Gd,Sf=Fd,is=Ld,Cf=Wd,kf=(e,t,r)=>{const n=new Map,o={platform:hf,...r},a={...o.platform,_c:n};return Dd(e,t,{...o,platform:a})};var Ef=typeof document<"u",Rf=function(){},lr=Ef?ae.useLayoutEffect:Rf;function cr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!cr(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!cr(e[a],t[a]))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 r=ls(e);return Math.round(t*r)/r}function an(e){const t=l.useRef(e);return lr(()=>{t.current=e}),t}function _f(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:c,open:d}=e,[f,p]=l.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[g,h]=l.useState(n);cr(g,n)||h(n);const[v,m]=l.useState(null),[b,x]=l.useState(null),w=l.useCallback(N=>{N!==T.current&&(T.current=N,m(N))},[]),y=l.useCallback(N=>{N!==_.current&&(_.current=N,x(N))},[]),C=a||v,E=s||b,T=l.useRef(null),_=l.useRef(null),R=l.useRef(f),G=c!=null,K=an(c),X=an(o),Q=an(d),ee=l.useCallback(()=>{if(!T.current||!_.current)return;const N={placement:t,strategy:r,middleware:g};X.current&&(N.platform=X.current),kf(T.current,_.current,N).then(te=>{const k={...te,isPositioned:Q.current!==!1};W.current&&!cr(R.current,k)&&(R.current=k,Tt.flushSync(()=>{p(k)}))})},[g,t,r,X,Q]);lr(()=>{d===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,p(N=>({...N,isPositioned:!1})))},[d]);const W=l.useRef(!1);lr(()=>(W.current=!0,()=>{W.current=!1}),[]),lr(()=>{if(C&&(T.current=C),E&&(_.current=E),C&&E){if(K.current)return K.current(C,E,ee);ee()}},[C,E,ee,K,G]);const q=l.useMemo(()=>({reference:T,floating:_,setReference:w,setFloating:y}),[w,y]),$=l.useMemo(()=>({reference:C,floating:E}),[C,E]),H=l.useMemo(()=>{const N={position:r,left:0,top:0};if(!$.floating)return N;const te=cs($.floating,f.x),k=cs($.floating,f.y);return i?{...N,transform:"translate("+te+"px, "+k+"px)",...ls($.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:te,top:k}},[r,i,$.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:ee,refs:q,elements:$,floatingStyles:H}),[f,ee,q,$,H])}const Nf=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?is({element:n.current,padding:o}).fn(r):{}:n?is({element:n,padding:o}).fn(r):{}}}},Pf=(e,t)=>({...bf(e),options:[e,t]}),Tf=(e,t)=>({...xf(e),options:[e,t]}),Af=(e,t)=>({...Cf(e),options:[e,t]}),If=(e,t)=>({...wf(e),options:[e,t]}),jf=(e,t)=>({...yf(e),options:[e,t]}),Of=(e,t)=>({...Sf(e),options:[e,t]}),Mf=(e,t)=>({...Nf(e),options:[e,t]});var Df="Arrow",us=l.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return u.jsx(V.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});us.displayName=Df;var Lf=us,sn="Popper",[ds,at]=de(sn),[$f,fs]=ds(sn),ps=e=>{const{__scopePopper:t,children:r}=e,[n,o]=l.useState(null);return u.jsx($f,{scope:t,anchor:n,onAnchorChange:o,children:r})};ps.displayName=sn;var ms="PopperAnchor",hs=l.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=fs(ms,r),s=l.useRef(null),i=ne(t,s),c=l.useRef(null);return l.useEffect(()=>{const d=c.current;c.current=(n==null?void 0:n.current)||s.current,d!==c.current&&a.onAnchorChange(c.current)}),n?null:u.jsx(V.div,{...o,ref:i})});hs.displayName=ms;var ln="PopperContent",[Ff,Vf]=ds(ln),gs=l.forwardRef((e,t)=>{var P,F,U,Z,re,oe;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:g=!1,updatePositionStrategy:h="optimized",onPlaced:v,...m}=e,b=fs(ln,r),[x,w]=l.useState(null),y=ne(t,me=>w(me)),[C,E]=l.useState(null),T=Dt(C),_=(T==null?void 0:T.width)??0,R=(T==null?void 0:T.height)??0,G=n+(a!=="center"?"-"+a:""),K=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},X=Array.isArray(d)?d:[d],Q=X.length>0,ee={padding:K,boundary:X.filter(zf),altBoundary:Q},{refs:W,floatingStyles:q,placement:$,isPositioned:H,middlewareData:N}=_f({strategy:"fixed",placement:G,whileElementsMounted:(...me)=>vf(...me,{animationFrame:h==="always"}),elements:{reference:b.anchor},middleware:[Pf({mainAxis:o+R,alignmentAxis:s}),c&&Tf({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Af():void 0,...ee}),c&&If({...ee}),jf({...ee,apply:({elements:me,rects:Re,availableWidth:_t,availableHeight:Nt})=>{const{width:Pt,height:rg}=Re.reference,yr=me.floating.style;yr.setProperty("--radix-popper-available-width",`${_t}px`),yr.setProperty("--radix-popper-available-height",`${Nt}px`),yr.setProperty("--radix-popper-anchor-width",`${Pt}px`),yr.setProperty("--radix-popper-anchor-height",`${rg}px`)}}),C&&Mf({element:C,padding:i}),Wf({arrowWidth:_,arrowHeight:R}),g&&Of({strategy:"referenceHidden",...ee})]}),[te,k]=xs($),B=Ne(v);ie(()=>{H&&(B==null||B())},[H,B]);const S=(P=N.arrow)==null?void 0:P.x,A=(F=N.arrow)==null?void 0:F.y,D=((U=N.arrow)==null?void 0:U.centerOffset)!==0,[I,Y]=l.useState();return ie(()=>{x&&Y(window.getComputedStyle(x).zIndex)},[x]),u.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:H?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:I,"--radix-popper-transform-origin":[(Z=N.transformOrigin)==null?void 0:Z.x,(re=N.transformOrigin)==null?void 0:re.y].join(" "),...((oe=N.hide)==null?void 0:oe.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(Ff,{scope:r,placedSide:te,onArrowChange:E,arrowX:S,arrowY:A,shouldHideArrow:D,children:u.jsx(V.div,{"data-side":te,"data-align":k,...m,ref:y,style:{...m.style,animation:H?void 0:"none"}})})})});gs.displayName=ln;var vs="PopperArrow",Bf={top:"bottom",right:"left",bottom:"top",left:"right"},bs=l.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,a=Vf(vs,n),s=Bf[a.placedSide];return u.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:u.jsx(Lf,{...o,ref:r,style:{...o.style,display:"block"}})})});bs.displayName=vs;function zf(e){return e!==null}var Wf=e=>({name:"transformOrigin",options:e,fn(t){var b,x,w;const{placement:r,rects:n,middlewareData:o}=t,s=((b=o.arrow)==null?void 0:b.centerOffset)!==0,i=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[d,f]=xs(r),p={start:"0%",center:"50%",end:"100%"}[f],g=(((x=o.arrow)==null?void 0:x.x)??0)+i/2,h=(((w=o.arrow)==null?void 0:w.y)??0)+c/2;let v="",m="";return d==="bottom"?(v=s?p:`${g}px`,m=`${-c}px`):d==="top"?(v=s?p:`${g}px`,m=`${n.floating.height+c}px`):d==="right"?(v=`${-c}px`,m=s?p:`${h}px`):d==="left"&&(v=`${n.floating.width+c}px`,m=s?p:`${h}px`),{data:{x:v,y:m}}}});function xs(e){const[t,r="center"]=e.split("-");return[t,r]}var cn=ps,ur=hs,un=gs,dn=bs,ws=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"}),Gf="VisuallyHidden",ys=l.forwardRef((e,t)=>u.jsx(V.span,{...e,ref:t,style:{...ws,...e.style}}));ys.displayName=Gf;var Hf=ys,[dr,_g]=de("Tooltip",[at]),fr=at(),Ss="TooltipProvider",Uf=700,fn="tooltip.open",[Kf,pn]=dr(Ss),Cs=e=>{const{__scopeTooltip:t,delayDuration:r=Uf,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:a}=e,s=l.useRef(!0),i=l.useRef(!1),c=l.useRef(0);return l.useEffect(()=>{const d=c.current;return()=>window.clearTimeout(d)},[]),u.jsx(Kf,{scope:t,isOpenDelayedRef:s,delayDuration:r,onOpen:l.useCallback(()=>{window.clearTimeout(c.current),s.current=!1},[]),onClose:l.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.current=!0,n)},[n]),isPointerInTransitRef:i,onPointerInTransitChange:l.useCallback(d=>{i.current=d},[]),disableHoverableContent:o,children:a})};Cs.displayName=Ss;var wt="Tooltip",[Yf,yt]=dr(wt),ks=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,c=pn(wt,e.__scopeTooltip),d=fr(t),[f,p]=l.useState(null),g=ce(),h=l.useRef(0),v=s??c.disableHoverableContent,m=i??c.delayDuration,b=l.useRef(!1),[x,w]=we({prop:n,defaultProp:o??!1,onChange:_=>{_?(c.onOpen(),document.dispatchEvent(new CustomEvent(fn))):c.onClose(),a==null||a(_)},caller:wt}),y=l.useMemo(()=>x?b.current?"delayed-open":"instant-open":"closed",[x]),C=l.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b.current=!1,w(!0)},[w]),E=l.useCallback(()=>{window.clearTimeout(h.current),h.current=0,w(!1)},[w]),T=l.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{b.current=!0,w(!0),h.current=0},m)},[m,w]);return l.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),u.jsx(cn,{...d,children:u.jsx(Yf,{scope:t,contentId:g,open:x,stateAttribute:y,trigger:f,onTriggerChange:p,onTriggerEnter:l.useCallback(()=>{c.isOpenDelayedRef.current?T():C()},[c.isOpenDelayedRef,T,C]),onTriggerLeave:l.useCallback(()=>{v?E():(window.clearTimeout(h.current),h.current=0)},[E,v]),onOpen:C,onClose:E,disableHoverableContent:v,children:r})})};ks.displayName=wt;var mn="TooltipTrigger",Es=l.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=yt(mn,r),a=pn(mn,r),s=fr(r),i=l.useRef(null),c=ne(t,i,o.onTriggerChange),d=l.useRef(!1),f=l.useRef(!1),p=l.useCallback(()=>d.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),u.jsx(ur,{asChild:!0,...s,children:u.jsx(V.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:c,onPointerMove:z(e.onPointerMove,g=>{g.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:z(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:z(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:z(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:z(e.onBlur,o.onClose),onClick:z(e.onClick,o.onClose)})})});Es.displayName=mn;var hn="TooltipPortal",[qf,Xf]=dr(hn,{forceMount:void 0}),Rs=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,a=yt(hn,t);return u.jsx(qf,{scope:t,forceMount:r,children:u.jsx(he,{present:r||a.open,children:u.jsx(gt,{asChild:!0,container:o,children:n})})})};Rs.displayName=hn;var st="TooltipContent",_s=l.forwardRef((e,t)=>{const r=Xf(st,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=e,s=yt(st,e.__scopeTooltip);return u.jsx(he,{present:n||s.open,children:s.disableHoverableContent?u.jsx(Ns,{side:o,...a,ref:t}):u.jsx(Zf,{side:o,...a,ref:t})})}),Zf=l.forwardRef((e,t)=>{const r=yt(st,e.__scopeTooltip),n=pn(st,e.__scopeTooltip),o=l.useRef(null),a=ne(t,o),[s,i]=l.useState(null),{trigger:c,onClose:d}=r,f=o.current,{onPointerInTransitChange:p}=n,g=l.useCallback(()=>{i(null),p(!1)},[p]),h=l.useCallback((v,m)=>{const b=v.currentTarget,x={x:v.clientX,y:v.clientY},w=tp(x,b.getBoundingClientRect()),y=rp(x,w),C=np(m.getBoundingClientRect()),E=ap([...y,...C]);i(E),p(!0)},[p]);return l.useEffect(()=>()=>g(),[g]),l.useEffect(()=>{if(c&&f){const v=b=>h(b,f),m=b=>h(b,c);return c.addEventListener("pointerleave",v),f.addEventListener("pointerleave",m),()=>{c.removeEventListener("pointerleave",v),f.removeEventListener("pointerleave",m)}}},[c,f,h,g]),l.useEffect(()=>{if(s){const v=m=>{const b=m.target,x={x:m.clientX,y:m.clientY},w=(c==null?void 0:c.contains(b))||(f==null?void 0:f.contains(b)),y=!op(x,s);w?g():y&&(g(),d())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[c,f,s,d,g]),u.jsx(Ns,{...e,ref:a})}),[Jf,Qf]=dr(wt,{isInside:!1}),ep=cl("TooltipContent"),Ns=l.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,c=yt(st,r),d=fr(r),{onClose:f}=c;return l.useEffect(()=>(document.addEventListener(fn,f),()=>document.removeEventListener(fn,f)),[f]),l.useEffect(()=>{if(c.trigger){const p=g=>{const h=g.target;h!=null&&h.contains(c.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[c.trigger,f]),u.jsx(ht,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:u.jsxs(un,{"data-state":c.stateAttribute,...d,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(ep,{children:n}),u.jsx(Jf,{scope:r,isInside:!0,children:u.jsx(Hf,{id:c.contentId,role:"tooltip",children:o||n})})]})})});_s.displayName=st;var Ps="TooltipArrow",Ts=l.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=fr(r);return Qf(Ps,r).isInside?null:u.jsx(dn,{...o,...n,ref:t})});Ts.displayName=Ps;function tp(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(r,n,o,a)){case a:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function rp(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function np(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function op(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],c=t[s],d=i.x,f=i.y,p=c.x,g=c.y;f>n!=g>n&&r<(p-d)*(n-f)/(g-f)+d&&(o=!o)}return o}function ap(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),sp(t)}function sp(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const a=r[r.length-1],s=r[r.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var ip=Cs,lp=ks,cp=Es,up=Rs,dp=_s,fp=Ts;function As({delayDuration:e=0,...t}){return u.jsx(ip,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function pp({...e}){return u.jsx(As,{children:u.jsx(lp,{"data-slot":"tooltip",...e})})}function mp({...e}){return u.jsx(cp,{"data-slot":"tooltip-trigger",...e})}function hp({className:e,sideOffset:t=0,children:r,...n}){return u.jsx(up,{children:u.jsxs(dp,{"data-slot":"tooltip-content",sideOffset:t,className:j("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),...n,children:[r,u.jsx(fp,{className:"bg-neutral-black-1 fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const Is=({className:e,type:t,...r})=>u.jsx("input",{type:t,className:j("flex-1 h-10 bg-transparent outline-none placeholder:text-neutral-black-2 disabled:cursor-not-allowed disabled:opacity-50","text-black-1 text-sm","placeholder:text-neutral-black-2 placeholder:text-sm",e),...r}),gp=le("flex items-center rounded-lg border transition-colors p-2",{variants:{size:{small:"h-6 w-80 text-sm px-2",medium:"h-10 w-92 text-base px-3"},status:{default:"border-neutral-black-4 text-foreground focus-within:ring-4 focus-within:ring-neutral-black-4",error:"border-error-1 text-primary-1 focus-within:ring-4 focus-within:ring-error-1",disabled:"border-neutral-black-4 bg-neutral-black-4 text-neutral-black-2 cursor-not-allowed"}},defaultVariants:{size:"medium",status:"default"}}),js=({size:e,status:t,startSlot:r,endSlot:n,className:o,disabled:a,...s})=>u.jsxs("div",{className:j(gp({size:e,status:t}),o),children:[r&&u.jsx("span",{className:"mr-2 flex-shrink-0",children:r}),u.jsx(Is,{disabled:a,...s}),n&&u.jsx("span",{className:"ml-2 flex-shrink-0",children:n})]}),Os=({children:e,className:t,...r})=>e==null?null:u.jsx("label",{className:j("text-sm font-normal text-neutral-black-1",t),...r,children:e}),Ms=({label:e,helperText:t,errorText:r,startSlot:n,endSlot:o,size:a="medium",className:s,disabled:i=!1,...c})=>u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsx(Os,{children:e}),u.jsx(js,{size:a,status:r?"error":i?"disabled":"default",startSlot:n,endSlot:o,disabled:i,className:s,...c}),(t||r)&&u.jsx("p",{className:j("text-sm mt-1",r?"text-error-1":"text-neutral-black-2"),children:r||t})]}),vp=({showForgot:e=!1,onValidityChange:t,customValidator:r,...n})=>{const[o,a]=ae.useState(!1),[s,i]=ae.useState(""),[c,d]=ae.useState(!1),p=r?r(s):(h=>[{label:"minimum 8 characters",isValid:h.length>=8},{label:"one uppercase character",isValid:/[A-Z]/.test(h)},{label:"one lowercase character",isValid:/[a-z]/.test(h)},{label:"one special character",isValid:/[^A-Za-z0-9]/.test(h)},{label:"one number",isValid:/\d/.test(h)}])(s),g=p.every(h=>h.isValid);return ae.useEffect(()=>{t&&t(g,p)},[s,g,p,t]),u.jsx("div",{className:"flex flex-col gap-2",children:u.jsxs("div",{className:"flex flex-col gap-2 w-full max-w-sm",children:[u.jsxs("div",{className:"flex justify-between items-center",children:[u.jsx("label",{className:"text-sm font-medium text-neutral-0",children:"Password"}),e&&u.jsx(Ot,{className:"text-xs text-neutral-0 hover:underline bg-transparent p-0 hover:bg-transparent",variant:"primary",children:"Forgot Password?"})]}),u.jsx(Ms,{type:o?"text":"password",value:s,onChange:h=>i(h.target.value),onFocus:()=>d(!0),...n,endSlot:u.jsx(Ot,{className:"text-xs text-neutral-0 hover:underline bg-transparent p-0 hover:bg-transparent",variant:"primary",onClick:()=>a(!o),children:o?u.jsx(Xc,{size:24,className:"text-neutral-black-2"}):u.jsx(Zc,{size:24,className:"text-neutral-black-2"})})}),u.jsx("div",{className:"grid grid-cols-2 gap-y-1 text-xs mt-3",children:p.map((h,v)=>u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx("div",{className:j("w-1.5 h-1.5 rounded-full transition-colors",h.isValid?"bg-success-1":c?"bg-primary-1":"bg-neutral-black-2")}),u.jsx("span",{className:j("transition-colors",h.isValid?"text-success-1":c?"text-primary-1":"text-neutral-black-2"),children:h.label})]},v))})]})})},bp=e=>u.jsx(Ms,{type:"search",startSlot:u.jsx(Uo,{"data-testid":"search-icon",className:"w-4 h-4 text-input-placeholder text-neutral-black-2"}),placeholder:"Search...",...e});function Ds(e,[t,r]){return Math.min(r,Math.max(t,e))}var xp=[" ","Enter","ArrowUp","ArrowDown"],wp=[" ","Enter"],He="Select",[pr,mr,yp]=uo(He),[it,Ng]=de(He,[yp,at]),hr=at(),[Sp,De]=it(He),[Cp,kp]=it(He),Ls=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:o,onOpenChange:a,value:s,defaultValue:i,onValueChange:c,dir:d,name:f,autoComplete:p,disabled:g,required:h,form:v}=e,m=hr(t),[b,x]=l.useState(null),[w,y]=l.useState(null),[C,E]=l.useState(!1),T=$t(d),[_,R]=we({prop:n,defaultProp:o??!1,onChange:a,caller:He}),[G,K]=we({prop:s,defaultProp:i,onChange:c,caller:He}),X=l.useRef(null),Q=b?v||!!b.closest("form"):!0,[ee,W]=l.useState(new Set),q=Array.from(ee).map($=>$.props.value).join(";");return u.jsx(cn,{...m,children:u.jsxs(Sp,{required:h,scope:t,trigger:b,onTriggerChange:x,valueNode:w,onValueNodeChange:y,valueNodeHasChildren:C,onValueNodeHasChildrenChange:E,contentId:ce(),value:G,onValueChange:K,open:_,onOpenChange:R,dir:T,triggerPointerDownPosRef:X,disabled:g,children:[u.jsx(pr.Provider,{scope:t,children:u.jsx(Cp,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback($=>{W(H=>new Set(H).add($))},[]),onNativeOptionRemove:l.useCallback($=>{W(H=>{const N=new Set(H);return N.delete($),N})},[]),children:r})}),Q?u.jsxs(ii,{"aria-hidden":!0,required:h,tabIndex:-1,name:f,autoComplete:p,value:G,onChange:$=>K($.target.value),disabled:g,form:v,children:[G===void 0?u.jsx("option",{value:""}):null,Array.from(ee)]},q):null]})})};Ls.displayName=He;var $s="SelectTrigger",Fs=l.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,a=hr(r),s=De($s,r),i=s.disabled||n,c=ne(t,s.onTriggerChange),d=mr(r),f=l.useRef("touch"),[p,g,h]=ci(m=>{const b=d().filter(y=>!y.disabled),x=b.find(y=>y.value===s.value),w=ui(b,m,x);w!==void 0&&s.onValueChange(w.value)}),v=m=>{i||(s.onOpenChange(!0),h()),m&&(s.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return u.jsx(ur,{asChild:!0,...a,children:u.jsx(V.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":li(s.value)?"":void 0,...o,ref:c,onClick:z(o.onClick,m=>{m.currentTarget.focus(),f.current!=="mouse"&&v(m)}),onPointerDown:z(o.onPointerDown,m=>{f.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:z(o.onKeyDown,m=>{const b=p.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&g(m.key),!(b&&m.key===" ")&&xp.includes(m.key)&&(v(),m.preventDefault())})})})});Fs.displayName=$s;var Vs="SelectValue",Bs=l.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:a,placeholder:s="",...i}=e,c=De(Vs,r),{onValueNodeHasChildrenChange:d}=c,f=a!==void 0,p=ne(t,c.onValueNodeChange);return ie(()=>{d(f)},[d,f]),u.jsx(V.span,{...i,ref:p,style:{pointerEvents:"none"},children:li(c.value)?u.jsx(u.Fragment,{children:s}):a})});Bs.displayName=Vs;var Ep="SelectIcon",zs=l.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return u.jsx(V.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});zs.displayName=Ep;var Rp="SelectPortal",Ws=e=>u.jsx(gt,{asChild:!0,...e});Ws.displayName=Rp;var Ue="SelectContent",Gs=l.forwardRef((e,t)=>{const r=De(Ue,e.__scopeSelect),[n,o]=l.useState();if(ie(()=>{o(new DocumentFragment)},[]),!r.open){const a=n;return a?Tt.createPortal(u.jsx(Hs,{scope:e.__scopeSelect,children:u.jsx(pr.Slot,{scope:e.__scopeSelect,children:u.jsx("div",{children:e.children})})}),a):null}return u.jsx(Us,{...e,ref:t})});Gs.displayName=Ue;var xe=10,[Hs,Le]=it(Ue),_p="SelectContentImpl",Np=Be("SelectContent.RemoveScroll"),Us=l.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:i,sideOffset:c,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:g,collisionPadding:h,sticky:v,hideWhenDetached:m,avoidCollisions:b,...x}=e,w=De(Ue,r),[y,C]=l.useState(null),[E,T]=l.useState(null),_=ne(t,P=>C(P)),[R,G]=l.useState(null),[K,X]=l.useState(null),Q=mr(r),[ee,W]=l.useState(!1),q=l.useRef(!1);l.useEffect(()=>{if(y)return Gr(y)},[y]),$r();const $=l.useCallback(P=>{const[F,...U]=Q().map(oe=>oe.ref.current),[Z]=U.slice(-1),re=document.activeElement;for(const oe of P)if(oe===re||(oe==null||oe.scrollIntoView({block:"nearest"}),oe===F&&E&&(E.scrollTop=0),oe===Z&&E&&(E.scrollTop=E.scrollHeight),oe==null||oe.focus(),document.activeElement!==re))return},[Q,E]),H=l.useCallback(()=>$([R,y]),[$,R,y]);l.useEffect(()=>{ee&&H()},[ee,H]);const{onOpenChange:N,triggerPointerDownPosRef:te}=w;l.useEffect(()=>{if(y){let P={x:0,y:0};const F=Z=>{var re,oe;P={x:Math.abs(Math.round(Z.pageX)-(((re=te.current)==null?void 0:re.x)??0)),y:Math.abs(Math.round(Z.pageY)-(((oe=te.current)==null?void 0:oe.y)??0))}},U=Z=>{P.x<=10&&P.y<=10?Z.preventDefault():y.contains(Z.target)||N(!1),document.removeEventListener("pointermove",F),te.current=null};return te.current!==null&&(document.addEventListener("pointermove",F),document.addEventListener("pointerup",U,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",F),document.removeEventListener("pointerup",U,{capture:!0})}}},[y,N,te]),l.useEffect(()=>{const P=()=>N(!1);return window.addEventListener("blur",P),window.addEventListener("resize",P),()=>{window.removeEventListener("blur",P),window.removeEventListener("resize",P)}},[N]);const[k,B]=ci(P=>{const F=Q().filter(re=>!re.disabled),U=F.find(re=>re.ref.current===document.activeElement),Z=ui(F,P,U);Z&&setTimeout(()=>Z.ref.current.focus())}),S=l.useCallback((P,F,U)=>{const Z=!q.current&&!U;(w.value!==void 0&&w.value===F||Z)&&(G(P),Z&&(q.current=!0))},[w.value]),A=l.useCallback(()=>y==null?void 0:y.focus(),[y]),D=l.useCallback((P,F,U)=>{const Z=!q.current&&!U;(w.value!==void 0&&w.value===F||Z)&&X(P)},[w.value]),I=n==="popper"?gn:Ks,Y=I===gn?{side:i,sideOffset:c,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:g,collisionPadding:h,sticky:v,hideWhenDetached:m,avoidCollisions:b}:{};return u.jsx(Hs,{scope:r,content:y,viewport:E,onViewportChange:T,itemRefCallback:S,selectedItem:R,onItemLeave:A,itemTextRefCallback:D,focusSelectedItem:H,selectedItemText:K,position:n,isPositioned:ee,searchRef:k,children:u.jsx(qt,{as:Np,allowPinchZoom:!0,children:u.jsx(Wt,{asChild:!0,trapped:w.open,onMountAutoFocus:P=>{P.preventDefault()},onUnmountAutoFocus:z(o,P=>{var F;(F=w.trigger)==null||F.focus({preventScroll:!0}),P.preventDefault()}),children:u.jsx(ht,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:P=>P.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:u.jsx(I,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:P=>P.preventDefault(),...x,...Y,onPlaced:()=>W(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:z(x.onKeyDown,P=>{const F=P.ctrlKey||P.altKey||P.metaKey;if(P.key==="Tab"&&P.preventDefault(),!F&&P.key.length===1&&B(P.key),["ArrowUp","ArrowDown","Home","End"].includes(P.key)){let Z=Q().filter(re=>!re.disabled).map(re=>re.ref.current);if(["ArrowUp","End"].includes(P.key)&&(Z=Z.slice().reverse()),["ArrowUp","ArrowDown"].includes(P.key)){const re=P.target,oe=Z.indexOf(re);Z=Z.slice(oe+1)}setTimeout(()=>$(Z)),P.preventDefault()}})})})})})})});Us.displayName=_p;var Pp="SelectItemAlignedPosition",Ks=l.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...o}=e,a=De(Ue,r),s=Le(Ue,r),[i,c]=l.useState(null),[d,f]=l.useState(null),p=ne(t,_=>f(_)),g=mr(r),h=l.useRef(!1),v=l.useRef(!0),{viewport:m,selectedItem:b,selectedItemText:x,focusSelectedItem:w}=s,y=l.useCallback(()=>{if(a.trigger&&a.valueNode&&i&&d&&m&&b&&x){const _=a.trigger.getBoundingClientRect(),R=d.getBoundingClientRect(),G=a.valueNode.getBoundingClientRect(),K=x.getBoundingClientRect();if(a.dir!=="rtl"){const re=K.left-R.left,oe=G.left-re,me=_.left-oe,Re=_.width+me,_t=Math.max(Re,R.width),Nt=window.innerWidth-xe,Pt=Ds(oe,[xe,Math.max(xe,Nt-_t)]);i.style.minWidth=Re+"px",i.style.left=Pt+"px"}else{const re=R.right-K.right,oe=window.innerWidth-G.right-re,me=window.innerWidth-_.right-oe,Re=_.width+me,_t=Math.max(Re,R.width),Nt=window.innerWidth-xe,Pt=Ds(oe,[xe,Math.max(xe,Nt-_t)]);i.style.minWidth=Re+"px",i.style.right=Pt+"px"}const X=g(),Q=window.innerHeight-xe*2,ee=m.scrollHeight,W=window.getComputedStyle(d),q=parseInt(W.borderTopWidth,10),$=parseInt(W.paddingTop,10),H=parseInt(W.borderBottomWidth,10),N=parseInt(W.paddingBottom,10),te=q+$+ee+N+H,k=Math.min(b.offsetHeight*5,te),B=window.getComputedStyle(m),S=parseInt(B.paddingTop,10),A=parseInt(B.paddingBottom,10),D=_.top+_.height/2-xe,I=Q-D,Y=b.offsetHeight/2,P=b.offsetTop+Y,F=q+$+P,U=te-F;if(F<=D){const re=X.length>0&&b===X[X.length-1].ref.current;i.style.bottom="0px";const oe=d.clientHeight-m.offsetTop-m.offsetHeight,me=Math.max(I,Y+(re?A:0)+oe+H),Re=F+me;i.style.height=Re+"px"}else{const re=X.length>0&&b===X[0].ref.current;i.style.top="0px";const me=Math.max(D,q+m.offsetTop+(re?S:0)+Y)+U;i.style.height=me+"px",m.scrollTop=F-D+m.offsetTop}i.style.margin=`${xe}px 0`,i.style.minHeight=k+"px",i.style.maxHeight=Q+"px",n==null||n(),requestAnimationFrame(()=>h.current=!0)}},[g,a.trigger,a.valueNode,i,d,m,b,x,a.dir,n]);ie(()=>y(),[y]);const[C,E]=l.useState();ie(()=>{d&&E(window.getComputedStyle(d).zIndex)},[d]);const T=l.useCallback(_=>{_&&v.current===!0&&(y(),w==null||w(),v.current=!1)},[y,w]);return u.jsx(Ap,{scope:r,contentWrapper:i,shouldExpandOnScrollRef:h,onScrollButtonChange:T,children:u.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:u.jsx(V.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Ks.displayName=Pp;var Tp="SelectPopperPosition",gn=l.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=xe,...a}=e,s=hr(r);return u.jsx(un,{...s,...a,ref:t,align:n,collisionPadding:o,style:{boxSizing:"border-box",...a.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)"}})});gn.displayName=Tp;var[Ap,vn]=it(Ue,{}),bn="SelectViewport",Ys=l.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...o}=e,a=Le(bn,r),s=vn(bn,r),i=ne(t,a.onViewportChange),c=l.useRef(0);return u.jsxs(u.Fragment,{children:[u.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:n}),u.jsx(pr.Slot,{scope:r,children:u.jsx(V.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:z(o.onScroll,d=>{const f=d.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:g}=s;if(g!=null&&g.current&&p){const h=Math.abs(c.current-f.scrollTop);if(h>0){const v=window.innerHeight-xe*2,m=parseFloat(p.style.minHeight),b=parseFloat(p.style.height),x=Math.max(m,b);if(x<v){const w=x+h,y=Math.min(v,w),C=w-y;p.style.height=y+"px",p.style.bottom==="0px"&&(f.scrollTop=C>0?C:0,p.style.justifyContent="flex-end")}}}c.current=f.scrollTop})})})]})});Ys.displayName=bn;var qs="SelectGroup",[Ip,jp]=it(qs),Xs=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=ce();return u.jsx(Ip,{scope:r,id:o,children:u.jsx(V.div,{role:"group","aria-labelledby":o,...n,ref:t})})});Xs.displayName=qs;var Zs="SelectLabel",Js=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=jp(Zs,r);return u.jsx(V.div,{id:o.id,...n,ref:t})});Js.displayName=Zs;var gr="SelectItem",[Op,Qs]=it(gr),ei=l.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:a,...s}=e,i=De(gr,r),c=Le(gr,r),d=i.value===n,[f,p]=l.useState(a??""),[g,h]=l.useState(!1),v=ne(t,w=>{var y;return(y=c.itemRefCallback)==null?void 0:y.call(c,w,n,o)}),m=ce(),b=l.useRef("touch"),x=()=>{o||(i.onValueChange(n),i.onOpenChange(!1))};if(n==="")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 u.jsx(Op,{scope:r,value:n,disabled:o,textId:m,isSelected:d,onItemTextChange:l.useCallback(w=>{p(y=>y||((w==null?void 0:w.textContent)??"").trim())},[]),children:u.jsx(pr.ItemSlot,{scope:r,value:n,disabled:o,textValue:f,children:u.jsx(V.div,{role:"option","aria-labelledby":m,"data-highlighted":g?"":void 0,"aria-selected":d&&g,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:v,onFocus:z(s.onFocus,()=>h(!0)),onBlur:z(s.onBlur,()=>h(!1)),onClick:z(s.onClick,()=>{b.current!=="mouse"&&x()}),onPointerUp:z(s.onPointerUp,()=>{b.current==="mouse"&&x()}),onPointerDown:z(s.onPointerDown,w=>{b.current=w.pointerType}),onPointerMove:z(s.onPointerMove,w=>{var y;b.current=w.pointerType,o?(y=c.onItemLeave)==null||y.call(c):b.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:z(s.onPointerLeave,w=>{var y;w.currentTarget===document.activeElement&&((y=c.onItemLeave)==null||y.call(c))}),onKeyDown:z(s.onKeyDown,w=>{var C;((C=c.searchRef)==null?void 0:C.current)!==""&&w.key===" "||(wp.includes(w.key)&&x(),w.key===" "&&w.preventDefault())})})})})});ei.displayName=gr;var St="SelectItemText",ti=l.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...a}=e,s=De(St,r),i=Le(St,r),c=Qs(St,r),d=kp(St,r),[f,p]=l.useState(null),g=ne(t,x=>p(x),c.onItemTextChange,x=>{var w;return(w=i.itemTextRefCallback)==null?void 0:w.call(i,x,c.value,c.disabled)}),h=f==null?void 0:f.textContent,v=l.useMemo(()=>u.jsx("option",{value:c.value,disabled:c.disabled,children:h},c.value),[c.disabled,c.value,h]),{onNativeOptionAdd:m,onNativeOptionRemove:b}=d;return ie(()=>(m(v),()=>b(v)),[m,b,v]),u.jsxs(u.Fragment,{children:[u.jsx(V.span,{id:c.textId,...a,ref:g}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Tt.createPortal(a.children,s.valueNode):null]})});ti.displayName=St;var ri="SelectItemIndicator",ni=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return Qs(ri,r).isSelected?u.jsx(V.span,{"aria-hidden":!0,...n,ref:t}):null});ni.displayName=ri;var xn="SelectScrollUpButton",oi=l.forwardRef((e,t)=>{const r=Le(xn,e.__scopeSelect),n=vn(xn,e.__scopeSelect),[o,a]=l.useState(!1),s=ne(t,n.onScrollButtonChange);return ie(()=>{if(r.viewport&&r.isPositioned){let i=function(){const d=c.scrollTop>0;a(d)};const c=r.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[r.viewport,r.isPositioned]),o?u.jsx(si,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=r;i&&c&&(i.scrollTop=i.scrollTop-c.offsetHeight)}}):null});oi.displayName=xn;var wn="SelectScrollDownButton",ai=l.forwardRef((e,t)=>{const r=Le(wn,e.__scopeSelect),n=vn(wn,e.__scopeSelect),[o,a]=l.useState(!1),s=ne(t,n.onScrollButtonChange);return ie(()=>{if(r.viewport&&r.isPositioned){let i=function(){const d=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<d;a(f)};const c=r.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[r.viewport,r.isPositioned]),o?u.jsx(si,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=r;i&&c&&(i.scrollTop=i.scrollTop+c.offsetHeight)}}):null});ai.displayName=wn;var si=l.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,a=Le("SelectScrollButton",r),s=l.useRef(null),i=mr(r),c=l.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return l.useEffect(()=>()=>c(),[c]),ie(()=>{var f;const d=i().find(p=>p.ref.current===document.activeElement);(f=d==null?void 0:d.ref.current)==null||f.scrollIntoView({block:"nearest"})},[i]),u.jsx(V.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:z(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(n,50))}),onPointerMove:z(o.onPointerMove,()=>{var d;(d=a.onItemLeave)==null||d.call(a),s.current===null&&(s.current=window.setInterval(n,50))}),onPointerLeave:z(o.onPointerLeave,()=>{c()})})}),Mp="SelectSeparator",Dp=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return u.jsx(V.div,{"aria-hidden":!0,...n,ref:t})});Dp.displayName=Mp;var yn="SelectArrow",Lp=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=hr(r),a=De(yn,r),s=Le(yn,r);return a.open&&s.position==="popper"?u.jsx(dn,{...o,...n,ref:t}):null});Lp.displayName=yn;var $p="SelectBubbleInput",ii=l.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const o=l.useRef(null),a=ne(n,o),s=Mt(t);return l.useEffect(()=>{const i=o.current;if(!i)return;const c=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(s!==t&&f){const p=new Event("change",{bubbles:!0});f.call(i,t),i.dispatchEvent(p)}},[s,t]),u.jsx(V.select,{...r,style:{...ws,...r.style},ref:a,defaultValue:t})});ii.displayName=$p;function li(e){return e===""||e===void 0}function ci(e){const t=Ne(e),r=l.useRef(""),n=l.useRef(0),o=l.useCallback(s=>{const i=r.current+s;t(i),function c(d){r.current=d,window.clearTimeout(n.current),d!==""&&(n.current=window.setTimeout(()=>c(""),1e3))}(i)},[t]),a=l.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,a]}function ui(e,t,r){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,a=r?e.indexOf(r):-1;let s=Fp(e,Math.max(a,0));o.length===1&&(s=s.filter(d=>d!==r));const c=s.find(d=>d.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==r?c:void 0}function Fp(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Vp=Ls,Bp=Fs,zp=Bs,Wp=zs,Gp=Ws,Hp=Gs,Up=Ys,Kp=Xs,Yp=Js,qp=ei,Xp=ti,Zp=ni,Jp=oi,Qp=ai;function em({...e}){return u.jsx(Vp,{"data-slot":"select",...e})}function tm({...e}){return u.jsx(Kp,{"data-slot":"select-group",...e})}function rm({...e}){return u.jsx(zp,{"data-slot":"select-value",...e})}function nm({className:e,size:t="default",children:r,...n}){return u.jsxs(Bp,{"data-slot":"select-trigger","data-size":t,className:j("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),...n,children:[r,u.jsx(Wp,{asChild:!0,children:u.jsx(jr,{className:"size-4 opacity-50"})})]})}function om({className:e,children:t,position:r="popper",...n}){return u.jsx(Gp,{children:u.jsxs(Hp,{"data-slot":"select-content",className:j("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",r==="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:r,...n,children:[u.jsx(sm,{}),u.jsx(Up,{className:j("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),u.jsx(im,{})]})})}function am({className:e,...t}){return u.jsx(Yp,{"data-slot":"select-label",className:j("text-muted-foreground px-2 py-1.5 text-xs",e),...t})}function di({className:e,children:t,...r}){return u.jsxs(qp,{"data-slot":"select-item",className:j("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),...r,children:[u.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:u.jsx(Zp,{children:u.jsx(Ho,{className:"size-4"})})}),u.jsx(Xp,{children:t})]})}function sm({className:e,...t}){return u.jsx(Jp,{"data-slot":"select-scroll-up-button",className:j("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(Yc,{className:"size-4"})})}function im({className:e,...t}){return u.jsx(Qp,{"data-slot":"select-scroll-down-button",className:j("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(jr,{className:"size-4"})})}var vr="Popover",[fi,Pg]=de(vr,[at]),Ct=at(),[lm,$e]=fi(vr),pi=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,i=Ct(t),c=l.useRef(null),[d,f]=l.useState(!1),[p,g]=we({prop:n,defaultProp:o??!1,onChange:a,caller:vr});return u.jsx(cn,{...i,children:u.jsx(lm,{scope:t,contentId:ce(),triggerRef:c,open:p,onOpenChange:g,onOpenToggle:l.useCallback(()=>g(h=>!h),[g]),hasCustomAnchor:d,onCustomAnchorAdd:l.useCallback(()=>f(!0),[]),onCustomAnchorRemove:l.useCallback(()=>f(!1),[]),modal:s,children:r})})};pi.displayName=vr;var mi="PopoverAnchor",cm=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=$e(mi,r),a=Ct(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:i}=o;return l.useEffect(()=>(s(),()=>i()),[s,i]),u.jsx(ur,{...a,...n,ref:t})});cm.displayName=mi;var hi="PopoverTrigger",gi=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=$e(hi,r),a=Ct(r),s=ne(t,o.triggerRef),i=u.jsx(V.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":yi(o.open),...n,ref:s,onClick:z(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:u.jsx(ur,{asChild:!0,...a,children:i})});gi.displayName=hi;var Sn="PopoverPortal",[um,dm]=fi(Sn,{forceMount:void 0}),vi=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,a=$e(Sn,t);return u.jsx(um,{scope:t,forceMount:r,children:u.jsx(he,{present:r||a.open,children:u.jsx(gt,{asChild:!0,container:o,children:n})})})};vi.displayName=Sn;var lt="PopoverContent",bi=l.forwardRef((e,t)=>{const r=dm(lt,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=$e(lt,e.__scopePopover);return u.jsx(he,{present:n||a.open,children:a.modal?u.jsx(pm,{...o,ref:t}):u.jsx(mm,{...o,ref:t})})});bi.displayName=lt;var fm=Be("PopoverContent.RemoveScroll"),pm=l.forwardRef((e,t)=>{const r=$e(lt,e.__scopePopover),n=l.useRef(null),o=ne(t,n),a=l.useRef(!1);return l.useEffect(()=>{const s=n.current;if(s)return Gr(s)},[]),u.jsx(qt,{as:fm,allowPinchZoom:!0,children:u.jsx(xi,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:z(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),a.current||(i=r.triggerRef.current)==null||i.focus()}),onPointerDownOutside:z(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0,d=i.button===2||c;a.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:z(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),mm=l.forwardRef((e,t)=>{const r=$e(lt,e.__scopePopover),n=l.useRef(!1),o=l.useRef(!1);return u.jsx(xi,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(n.current||(i=r.triggerRef.current)==null||i.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var c,d;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((d=r.triggerRef.current)==null?void 0:d.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),xi=l.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,...p}=e,g=$e(lt,r),h=Ct(r);return $r(),u.jsx(Wt,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:u.jsx(ht,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:f,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>g.onOpenChange(!1),children:u.jsx(un,{"data-state":yi(g.open),role:"dialog",id:g.contentId,...h,...p,ref:t,style:{...p.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)"}})})})}),wi="PopoverClose",hm=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=$e(wi,r);return u.jsx(V.button,{type:"button",...n,ref:t,onClick:z(e.onClick,()=>o.onOpenChange(!1))})});hm.displayName=wi;var gm="PopoverArrow",vm=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Ct(r);return u.jsx(dn,{...o,...n,ref:t})});vm.displayName=gm;function yi(e){return e?"open":"closed"}var bm=pi,xm=gi,wm=vi,ym=bi;function Sm({...e}){return u.jsx(bm,{"data-slot":"popover",...e})}function Cm({...e}){return u.jsx(xm,{"data-slot":"popover-trigger",...e})}function km({className:e,align:t="center",sideOffset:r=4,...n}){return u.jsx(wm,{children:u.jsx(ym,{"data-slot":"popover-content",align:t,sideOffset:r,className:j("bg-white text-black 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),...n})})}var Si=1,Em=.9,Rm=.8,_m=.17,Cn=.1,kn=.999,Nm=.9999,Pm=.99,Tm=/[\\\/_+.#"@\[\(\{&]/,Am=/[\\\/_+.#"@\[\(\{&]/g,Im=/[\s-]/,Ci=/[\s-]/g;function En(e,t,r,n,o,a,s){if(a===t.length)return o===e.length?Si:Pm;var i=`${o},${a}`;if(s[i]!==void 0)return s[i];for(var c=n.charAt(a),d=r.indexOf(c,o),f=0,p,g,h,v;d>=0;)p=En(e,t,r,n,d+1,a+1,s),p>f&&(d===o?p*=Si:Tm.test(e.charAt(d-1))?(p*=Rm,h=e.slice(o,d-1).match(Am),h&&o>0&&(p*=Math.pow(kn,h.length))):Im.test(e.charAt(d-1))?(p*=Em,v=e.slice(o,d-1).match(Ci),v&&o>0&&(p*=Math.pow(kn,v.length))):(p*=_m,o>0&&(p*=Math.pow(kn,d-o))),e.charAt(d)!==t.charAt(a)&&(p*=Nm)),(p<Cn&&r.charAt(d-1)===n.charAt(a+1)||n.charAt(a+1)===n.charAt(a)&&r.charAt(d-1)!==n.charAt(a))&&(g=En(e,t,r,n,d+1,a+2,s),g*Cn>p&&(p=g*Cn)),p>f&&(f=p),d=r.indexOf(c,d+1);return s[i]=f,f}function ki(e){return e.toLowerCase().replace(Ci," ")}function jm(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,En(e,t,ki(e),ki(t),0,0,{})}var kt='[cmdk-group=""]',Rn='[cmdk-group-items=""]',Om='[cmdk-group-heading=""]',Ei='[cmdk-item=""]',Ri=`${Ei}:not([aria-disabled="true"])`,_n="cmdk-item-select",ct="data-value",Mm=(e,t,r)=>jm(e,t,r),_i=l.createContext(void 0),Et=()=>l.useContext(_i),Ni=l.createContext(void 0),Nn=()=>l.useContext(Ni),Pi=l.createContext(void 0),Ti=l.forwardRef((e,t)=>{let r=ut(()=>{var S,A;return{search:"",value:(A=(S=e.value)!=null?S:e.defaultValue)!=null?A:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=ut(()=>new Set),o=ut(()=>new Map),a=ut(()=>new Map),s=ut(()=>new Set),i=Ai(e),{label:c,children:d,value:f,onValueChange:p,filter:g,shouldFilter:h,loop:v,disablePointerSelection:m=!1,vimBindings:b=!0,...x}=e,w=ce(),y=ce(),C=ce(),E=l.useRef(null),T=Um();Ke(()=>{if(f!==void 0){let S=f.trim();r.current.value=S,_.emit()}},[f]),Ke(()=>{T(6,ee)},[]);let _=l.useMemo(()=>({subscribe:S=>(s.current.add(S),()=>s.current.delete(S)),snapshot:()=>r.current,setState:(S,A,D)=>{var I,Y,P,F;if(!Object.is(r.current[S],A)){if(r.current[S]=A,S==="search")Q(),K(),T(1,X);else if(S==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let U=document.getElementById(C);U?U.focus():(I=document.getElementById(w))==null||I.focus()}if(T(7,()=>{var U;r.current.selectedItemId=(U=W())==null?void 0:U.id,_.emit()}),D||T(5,ee),((Y=i.current)==null?void 0:Y.value)!==void 0){let U=A??"";(F=(P=i.current).onValueChange)==null||F.call(P,U);return}}_.emit()}},emit:()=>{s.current.forEach(S=>S())}}),[]),R=l.useMemo(()=>({value:(S,A,D)=>{var I;A!==((I=a.current.get(S))==null?void 0:I.value)&&(a.current.set(S,{value:A,keywords:D}),r.current.filtered.items.set(S,G(A,D)),T(2,()=>{K(),_.emit()}))},item:(S,A)=>(n.current.add(S),A&&(o.current.has(A)?o.current.get(A).add(S):o.current.set(A,new Set([S]))),T(3,()=>{Q(),K(),r.current.value||X(),_.emit()}),()=>{a.current.delete(S),n.current.delete(S),r.current.filtered.items.delete(S);let D=W();T(4,()=>{Q(),(D==null?void 0:D.getAttribute("id"))===S&&X(),_.emit()})}),group:S=>(o.current.has(S)||o.current.set(S,new Set),()=>{a.current.delete(S),o.current.delete(S)}),filter:()=>i.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>i.current.disablePointerSelection,listId:w,inputId:C,labelId:y,listInnerRef:E}),[]);function G(S,A){var D,I;let Y=(I=(D=i.current)==null?void 0:D.filter)!=null?I:Mm;return S?Y(S,r.current.search,A):0}function K(){if(!r.current.search||i.current.shouldFilter===!1)return;let S=r.current.filtered.items,A=[];r.current.filtered.groups.forEach(I=>{let Y=o.current.get(I),P=0;Y.forEach(F=>{let U=S.get(F);P=Math.max(U,P)}),A.push([I,P])});let D=E.current;q().sort((I,Y)=>{var P,F;let U=I.getAttribute("id"),Z=Y.getAttribute("id");return((P=S.get(Z))!=null?P:0)-((F=S.get(U))!=null?F:0)}).forEach(I=>{let Y=I.closest(Rn);Y?Y.appendChild(I.parentElement===Y?I:I.closest(`${Rn} > *`)):D.appendChild(I.parentElement===D?I:I.closest(`${Rn} > *`))}),A.sort((I,Y)=>Y[1]-I[1]).forEach(I=>{var Y;let P=(Y=E.current)==null?void 0:Y.querySelector(`${kt}[${ct}="${encodeURIComponent(I[0])}"]`);P==null||P.parentElement.appendChild(P)})}function X(){let S=q().find(D=>D.getAttribute("aria-disabled")!=="true"),A=S==null?void 0:S.getAttribute(ct);_.setState("value",A||void 0)}function Q(){var S,A,D,I;if(!r.current.search||i.current.shouldFilter===!1){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let Y=0;for(let P of n.current){let F=(A=(S=a.current.get(P))==null?void 0:S.value)!=null?A:"",U=(I=(D=a.current.get(P))==null?void 0:D.keywords)!=null?I:[],Z=G(F,U);r.current.filtered.items.set(P,Z),Z>0&&Y++}for(let[P,F]of o.current)for(let U of F)if(r.current.filtered.items.get(U)>0){r.current.filtered.groups.add(P);break}r.current.filtered.count=Y}function ee(){var S,A,D;let I=W();I&&(((S=I.parentElement)==null?void 0:S.firstChild)===I&&((D=(A=I.closest(kt))==null?void 0:A.querySelector(Om))==null||D.scrollIntoView({block:"nearest"})),I.scrollIntoView({block:"nearest"}))}function W(){var S;return(S=E.current)==null?void 0:S.querySelector(`${Ei}[aria-selected="true"]`)}function q(){var S;return Array.from(((S=E.current)==null?void 0:S.querySelectorAll(Ri))||[])}function $(S){let A=q()[S];A&&_.setState("value",A.getAttribute(ct))}function H(S){var A;let D=W(),I=q(),Y=I.findIndex(F=>F===D),P=I[Y+S];(A=i.current)!=null&&A.loop&&(P=Y+S<0?I[I.length-1]:Y+S===I.length?I[0]:I[Y+S]),P&&_.setState("value",P.getAttribute(ct))}function N(S){let A=W(),D=A==null?void 0:A.closest(kt),I;for(;D&&!I;)D=S>0?Gm(D,kt):Hm(D,kt),I=D==null?void 0:D.querySelector(Ri);I?_.setState("value",I.getAttribute(ct)):H(S)}let te=()=>$(q().length-1),k=S=>{S.preventDefault(),S.metaKey?te():S.altKey?N(1):H(1)},B=S=>{S.preventDefault(),S.metaKey?$(0):S.altKey?N(-1):H(-1)};return l.createElement(V.div,{ref:t,tabIndex:-1,...x,"cmdk-root":"",onKeyDown:S=>{var A;(A=x.onKeyDown)==null||A.call(x,S);let D=S.nativeEvent.isComposing||S.keyCode===229;if(!(S.defaultPrevented||D))switch(S.key){case"n":case"j":{b&&S.ctrlKey&&k(S);break}case"ArrowDown":{k(S);break}case"p":case"k":{b&&S.ctrlKey&&B(S);break}case"ArrowUp":{B(S);break}case"Home":{S.preventDefault(),$(0);break}case"End":{S.preventDefault(),te();break}case"Enter":{S.preventDefault();let I=W();if(I){let Y=new Event(_n);I.dispatchEvent(Y)}}}}},l.createElement("label",{"cmdk-label":"",htmlFor:R.inputId,id:R.labelId,style:Ym},c),br(e,S=>l.createElement(Ni.Provider,{value:_},l.createElement(_i.Provider,{value:R},S))))}),Dm=l.forwardRef((e,t)=>{var r,n;let o=ce(),a=l.useRef(null),s=l.useContext(Pi),i=Et(),c=Ai(e),d=(n=(r=c.current)==null?void 0:r.forceMount)!=null?n:s==null?void 0:s.forceMount;Ke(()=>{if(!d)return i.item(o,s==null?void 0:s.id)},[d]);let f=Ii(o,a,[e.value,e.children,a],e.keywords),p=Nn(),g=Fe(T=>T.value&&T.value===f.current),h=Fe(T=>d||i.filter()===!1?!0:T.search?T.filtered.items.get(o)>0:!0);l.useEffect(()=>{let T=a.current;if(!(!T||e.disabled))return T.addEventListener(_n,v),()=>T.removeEventListener(_n,v)},[h,e.onSelect,e.disabled]);function v(){var T,_;m(),(_=(T=c.current).onSelect)==null||_.call(T,f.current)}function m(){p.setState("value",f.current,!0)}if(!h)return null;let{disabled:b,value:x,onSelect:w,forceMount:y,keywords:C,...E}=e;return l.createElement(V.div,{ref:Ve(a,t),...E,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)}),Lm=l.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:o,...a}=e,s=ce(),i=l.useRef(null),c=l.useRef(null),d=ce(),f=Et(),p=Fe(h=>o||f.filter()===!1?!0:h.search?h.filtered.groups.has(s):!0);Ke(()=>f.group(s),[]),Ii(s,i,[e.value,e.heading,c]);let g=l.useMemo(()=>({id:s,forceMount:o}),[o]);return l.createElement(V.div,{ref:Ve(i,t),...a,"cmdk-group":"",role:"presentation",hidden:p?void 0:!0},r&&l.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:d},r),br(e,h=>l.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?d:void 0},l.createElement(Pi.Provider,{value:g},h))))}),$m=l.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,o=l.useRef(null),a=Fe(s=>!s.search);return!r&&!a?null:l.createElement(V.div,{ref:Ve(o,t),...n,"cmdk-separator":"",role:"separator"})}),Fm=l.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,o=e.value!=null,a=Nn(),s=Fe(d=>d.search),i=Fe(d=>d.selectedItemId),c=Et();return l.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),l.createElement(V.input,{ref:t,...n,"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:s,onChange:d=>{o||a.setState("search",d.target.value),r==null||r(d.target.value)}})}),Vm=l.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...o}=e,a=l.useRef(null),s=l.useRef(null),i=Fe(d=>d.selectedItemId),c=Et();return l.useEffect(()=>{if(s.current&&a.current){let d=s.current,f=a.current,p,g=new ResizeObserver(()=>{p=requestAnimationFrame(()=>{let h=d.offsetHeight;f.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return g.observe(d),()=>{cancelAnimationFrame(p),g.unobserve(d)}}},[]),l.createElement(V.div,{ref:Ve(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":n,id:c.listId},br(e,d=>l.createElement("div",{ref:Ve(s,c.listInnerRef),"cmdk-list-sizer":""},d)))}),Bm=l.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:o,contentClassName:a,container:s,...i}=e;return l.createElement(Ma,{open:r,onOpenChange:n},l.createElement(Da,{container:s},l.createElement(La,{"cmdk-overlay":"",className:o}),l.createElement($a,{"aria-label":e.label,"cmdk-dialog":"",className:a},l.createElement(Ti,{ref:t,...i}))))}),zm=l.forwardRef((e,t)=>Fe(r=>r.filtered.count===0)?l.createElement(V.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Wm=l.forwardRef((e,t)=>{let{progress:r,children:n,label:o="Loading...",...a}=e;return l.createElement(V.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},br(e,s=>l.createElement("div",{"aria-hidden":!0},s)))}),Rt=Object.assign(Ti,{List:Vm,Item:Dm,Input:Fm,Group:Lm,Separator:$m,Dialog:Bm,Empty:zm,Loading:Wm});function Gm(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function Hm(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function Ai(e){let t=l.useRef(e);return Ke(()=>{t.current=e}),t}var Ke=typeof window>"u"?l.useEffect:l.useLayoutEffect;function ut(e){let t=l.useRef();return t.current===void 0&&(t.current=e()),t}function Fe(e){let t=Nn(),r=()=>e(t.snapshot());return l.useSyncExternalStore(t.subscribe,r,r)}function Ii(e,t,r,n=[]){let o=l.useRef(),a=Et();return Ke(()=>{var s;let i=(()=>{var d;for(let f of r){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(d=f.current.textContent)==null?void 0:d.trim():o.current}})(),c=n.map(d=>d.trim());a.value(e,i,c),(s=t.current)==null||s.setAttribute(ct,i),o.current=i}),o}var Um=()=>{let[e,t]=l.useState(),r=ut(()=>new Map);return Ke(()=>{r.current.forEach(n=>n()),r.current=new Map},[e]),(n,o)=>{r.current.set(n,o),t({})}};function Km(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function br({asChild:e,children:t},r){return e&&l.isValidElement(t)?l.cloneElement(Km(t),{ref:t.ref},r(t.props.children)):r(t)}var Ym={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function qm({className:e,...t}){return u.jsx(Rt,{"data-slot":"command",className:j("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function Xm({className:e,...t}){return u.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[u.jsx(Uo,{className:"size-4 shrink-0 opacity-50"}),u.jsx(Rt.Input,{"data-slot":"command-input",className:j("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 Zm({...e}){return u.jsx(Rt.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function ji({className:e,...t}){return u.jsx(Rt.Group,{"data-slot":"command-group",className:j("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 Oi({className:e,...t}){return u.jsx(Rt.Item,{"data-slot":"command-item",className:j("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 Pn(e){return e.length>0&&e[0].kind==="group"}function Jm(e){return e.multiple?u.jsx(Di,{...e}):u.jsx(Mi,{...e})}const Mi=({options:e,placeholder:t="Select...",disabled:r,error:n,helperText:o,value:a,onChange:s})=>{const[i,c]=ae.useState(""),d=a??i,f=p=>{c(p),s==null||s(p)};return u.jsxs("div",{className:"w-94",children:[u.jsxs(em,{value:d,onValueChange:f,disabled:r,children:[u.jsx(nm,{"aria-invalid":!!n,className:j("flex w-full items-center justify-between rounded-md border bg-white px-3 py-2 text-sm",r&&"cursor-not-allowed bg-neutral-black-4 border border-neutral-black-4 rounded",n?"border-primary-1":"border-neutral-black-4"),children:u.jsx(rm,{placeholder:t})}),u.jsx(om,{className:"w-full bg-white border border-neutral-black-4",children:Pn(e)?e.map(p=>u.jsxs(tm,{className:"p-2",children:[u.jsx(am,{children:p.label}),p.options.map(g=>u.jsx(di,{value:g.value,disabled:g.disabled,children:g.label},g.value))]},p.label)):e.map(p=>u.jsx(di,{value:p.value,disabled:p.disabled,className:"hover:cursor-pointer hover:bg-neutral-black-5",children:p.label},p.value))})]}),n&&u.jsx("p",{className:"mt-1 text-xs text-primary-1",children:n}),o&&u.jsx("p",{className:"mt-1 text-xs text-neutral-black-3",children:o})]})},Di=({options:e,placeholder:t="Select...",disabled:r,error:n,helperText:o,value:a,onChange:s})=>{const[i,c]=ae.useState(!1),[d,f]=ae.useState([]),p=a??d,g=ae.useMemo(()=>Pn(e)?e.flatMap(v=>v.options):e,[e]),h=v=>{const m=p.includes(v)?p.filter(b=>b!==v):[...p,v];f(m),s==null||s(m)};return u.jsxs("div",{className:"w-94",children:[u.jsxs(Sm,{open:i,onOpenChange:c,children:[u.jsx(Cm,{asChild:!0,children:u.jsxs("button",{type:"button",disabled:r,"aria-haspopup":"listbox","aria-expanded":i,className:j("flex w-full items-center justify-between rounded-md border bg-white px-3 py-2 text-sm",r&&"cursor-not-allowed bg-neutral-black-4 border border-neutral-black-4 rounded",n?"border-primary-1":"border-neutral-black-4"),children:[u.jsx("div",{className:"flex flex-wrap gap-1",children:p.length>0?p.map(v=>u.jsxs(Yr,{type:"outline",onClick:m=>{m.stopPropagation(),h(v)},className:"cursor-pointer border-neutral-black-4 bg-transparent hover:bg-neutral-black-4",children:[u.jsx("span",{className:"text-neutral-black-1",children:v}),u.jsx("div",{className:"flex items-center justify-center rounded-full border border-neutral-black-2 h-5 w-5 ml-1",children:u.jsx(Yo,{className:"h-3 w-3 text-neutral-black-1",strokeWidth:2})})]},v)):u.jsx("span",{className:"truncate text-xs text-neutral-black-1",children:t})}),u.jsx(jr,{className:"h-4 w-4 text-neutral-black-1"})]})}),u.jsx(km,{className:"p-0 w-full bg-white border border-neutral-black-4",children:u.jsxs(qm,{className:"w-full",children:[u.jsx(Xm,{placeholder:"Search..."}),u.jsx(Zm,{children:"No results found."}),Pn(e)?e.map(v=>u.jsx(ji,{heading:v.label,children:v.options.map(m=>u.jsxs(Oi,{value:m.label,onSelect:()=>!m.disabled&&h(m.value),disabled:m.disabled,children:[u.jsx("input",{type:"checkbox",readOnly:!0,checked:p.includes(m.value),className:"mr-2"}),m.label]},m.value))},v.label)):u.jsx(ji,{children:g.map(v=>u.jsxs(Oi,{value:v.label,onSelect:()=>!v.disabled&&h(v.value),disabled:v.disabled,children:[u.jsx("input",{type:"checkbox",readOnly:!0,checked:p.includes(v.value),className:"mr-2"}),v.label]},v.value))})]})})]}),n&&u.jsx("p",{className:"mt-1 text-xs text-primary-1",children:n}),o&&u.jsx("p",{className:"mt-1 text-xs text-neutral-black-3",children:o})]})},Qm=le("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 eh({className:e,variant:t,asChild:r=!1,children:n,...o}){const a=r?At:"div";return u.jsx(a,{"data-slot":"card",className:j(Qm({variant:t}),e),...o,children:n})}var Tn={exports:{}},An={};/**
181
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return u.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},am="DialogDescriptionWarning",sm=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Fs(am).contentName}}.`;return u.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Ls=Cs,im=Es,$s=Ms,Bs=Os,zs=Ts,lm=Ds,cm=js,Vs=Is;function dm({...e}){return c.jsx(Ls,{"data-slot":"dialog",...e})}function um({...e}){return c.jsx(im,{"data-slot":"dialog-trigger",...e})}function Ys({...e}){return c.jsx($s,{"data-slot":"dialog-portal",...e})}function fm({...e}){return c.jsx(Vs,{"data-slot":"dialog-close",...e})}function Hs({className:e,...t}){return c.jsx(Bs,{"data-slot":"dialog-overlay",className:N("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 mm({className:e,children:t,showCloseButton:n=!0,...r}){return c.jsxs(Ys,{"data-slot":"dialog-portal",children:[c.jsx(Hs,{}),c.jsxs(zs,{"data-slot":"dialog-content",className:N("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&&c.jsxs(Vs,{"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:[c.jsx(Qa,{}),c.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function hm({className:e,...t}){return c.jsx("div",{"data-slot":"dialog-header",className:N("flex flex-col gap-2 text-center sm:text-left",e),...t})}function pm({className:e,...t}){return c.jsx("div",{"data-slot":"dialog-footer",className:N("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function gm({className:e,...t}){return c.jsx(lm,{"data-slot":"dialog-title",className:N("text-lg leading-none font-semibold ",e),...t})}function bm({className:e,...t}){return c.jsx(cm,{"data-slot":"dialog-description",className:N("text-muted-foreground text-sm",e),...t})}const vm=ge("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"}}),jr=u.forwardRef(({className:e,variant:t,type:n="filled",asChild:r=!1,children:o,...a},s)=>{const i=r?Ge:"span";return c.jsx(i,{ref:s,"data-slot":"badge",className:N(vm({variant:t,type:n}),n==="outline"?"bg-transparent":"",e),...a,children:o})});jr.displayName="Badge";const xm=["top","right","bottom","left"],nt=Math.min,Ne=Math.max,Ln=Math.round,$n=Math.floor,Le=e=>({x:e,y:e}),ym={left:"right",right:"left",bottom:"top",top:"bottom"},wm={start:"end",end:"start"};function Rr(e,t,n){return Ne(e,nt(t,n))}function Ke(e,t){return typeof e=="function"?e(t):e}function Xe(e){return e.split("-")[0]}function Tt(e){return e.split("-")[1]}function Ir(e){return e==="x"?"y":"x"}function Wr(e){return e==="y"?"height":"width"}const km=new Set(["top","bottom"]);function $e(e){return km.has(Xe(e))?"y":"x"}function Fr(e){return Ir($e(e))}function Sm(e,t,n){n===void 0&&(n=!1);const r=Tt(e),o=Fr(e),a=Wr(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Bn(s)),[s,Bn(s)]}function Cm(e){const t=Bn(e);return[Lr(e),t,Lr(t)]}function Lr(e){return e.replace(/start|end/g,t=>wm[t])}const Gs=["left","right"],Us=["right","left"],Nm=["top","bottom"],Em=["bottom","top"];function _m(e,t,n){switch(e){case"top":case"bottom":return n?t?Us:Gs:t?Gs:Us;case"left":case"right":return t?Nm:Em;default:return[]}}function Mm(e,t,n,r){const o=Tt(e);let a=_m(Xe(e),n==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(Lr)))),a}function Bn(e){return e.replace(/left|right|bottom|top/g,t=>ym[t])}function Om(e){return{top:0,right:0,bottom:0,left:0,...e}}function qs(e){return typeof e!="number"?Om(e):{top:e,right:e,bottom:e,left:e}}function zn(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 Ks(e,t,n){let{reference:r,floating:o}=e;const a=$e(t),s=Fr(t),i=Wr(s),l=Xe(t),d=a==="y",f=r.x+r.width/2-o.width/2,m=r.y+r.height/2-o.height/2,p=r[i]/2-o[i]/2;let g;switch(l){case"top":g={x:f,y:r.y-o.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:m};break;case"left":g={x:r.x-o.width,y:m};break;default:g={x:r.x,y:r.y}}switch(Tt(t)){case"start":g[s]-=p*(n&&d?-1:1);break;case"end":g[s]+=p*(n&&d?-1:1);break}return g}const Tm=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,i=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:m}=Ks(d,r,l),p=r,g={},b=0;for(let h=0;h<i.length;h++){const{name:v,fn:x}=i[h],{x:y,y:w,data:S,reset:k}=await x({x:f,y:m,initialPlacement:r,placement:p,strategy:o,middlewareData:g,rects:d,platform:s,elements:{reference:e,floating:t}});f=y??f,m=w??m,g={...g,[v]:{...g[v],...S}},k&&b<=50&&(b++,typeof k=="object"&&(k.placement&&(p=k.placement),k.rects&&(d=k.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):k.rects),{x:f,y:m}=Ks(d,p,l)),h=-1)}return{x:f,y:m,placement:p,strategy:o,middlewareData:g}};async function Xt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:s,elements:i,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:m="floating",altBoundary:p=!1,padding:g=0}=Ke(t,e),b=qs(g),v=i[p?m==="floating"?"reference":"floating":m],x=zn(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(v)))==null||n?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:d,rootBoundary:f,strategy:l})),y=m==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),S=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},k=zn(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:y,offsetParent:w,strategy:l}):y);return{top:(x.top-k.top+b.top)/S.y,bottom:(k.bottom-x.bottom+b.bottom)/S.y,left:(x.left-k.left+b.left)/S.x,right:(k.right-x.right+b.right)/S.x}}const Pm=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:i,middlewareData:l}=t,{element:d,padding:f=0}=Ke(e,t)||{};if(d==null)return{};const m=qs(f),p={x:n,y:r},g=Fr(o),b=Wr(g),h=await s.getDimensions(d),v=g==="y",x=v?"top":"left",y=v?"bottom":"right",w=v?"clientHeight":"clientWidth",S=a.reference[b]+a.reference[g]-p[g]-a.floating[b],k=p[g]-a.reference[g],_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let C=_?_[w]:0;(!C||!await(s.isElement==null?void 0:s.isElement(_)))&&(C=i.floating[w]||a.floating[b]);const E=S/2-k/2,$=C/2-h[b]/2-1,z=nt(m[x],$),G=nt(m[y],$),K=z,te=C-h[b]-G,U=C/2-h[b]/2+E,Q=Rr(K,U,te),L=!l.arrow&&Tt(o)!=null&&U!==Q&&a.reference[b]/2-(U<K?z:G)-h[b]/2<0,X=L?U<K?U-K:U-te:0;return{[g]:p[g]+X,data:{[g]:Q,centerOffset:U-Q-X,...L&&{alignmentOffset:X}},reset:L}}}),Dm=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:l,elements:d}=t,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:h=!0,...v}=Ke(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const x=Xe(o),y=$e(i),w=Xe(i)===i,S=await(l.isRTL==null?void 0:l.isRTL(d.floating)),k=p||(w||!h?[Bn(i)]:Cm(i)),_=b!=="none";!p&&_&&k.push(...Mm(i,h,b,S));const C=[i,...k],E=await Xt(t,v),$=[];let z=((r=a.flip)==null?void 0:r.overflows)||[];if(f&&$.push(E[x]),m){const U=Sm(o,s,S);$.push(E[U[0]],E[U[1]])}if(z=[...z,{placement:o,overflows:$}],!$.every(U=>U<=0)){var G,K;const U=(((G=a.flip)==null?void 0:G.index)||0)+1,Q=C[U];if(Q&&(!(m==="alignment"?y!==$e(Q):!1)||z.every(P=>$e(P.placement)===y?P.overflows[0]>0:!0)))return{data:{index:U,overflows:z},reset:{placement:Q}};let L=(K=z.filter(X=>X.overflows[0]<=0).sort((X,P)=>X.overflows[1]-P.overflows[1])[0])==null?void 0:K.placement;if(!L)switch(g){case"bestFit":{var te;const X=(te=z.filter(P=>{if(_){const ee=$e(P.placement);return ee===y||ee==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(ee=>ee>0).reduce((ee,T)=>ee+T,0)]).sort((P,ee)=>P[1]-ee[1])[0])==null?void 0:te[0];X&&(L=X);break}case"initialPlacement":L=i;break}if(o!==L)return{reset:{placement:L}}}return{}}}};function Xs(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Zs(e){return xm.some(t=>e[t]>=0)}const Am=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Ke(e,t);switch(r){case"referenceHidden":{const a=await Xt(t,{...o,elementContext:"reference"}),s=Xs(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Zs(s)}}}case"escaped":{const a=await Xt(t,{...o,altBoundary:!0}),s=Xs(a,n.floating);return{data:{escapedOffsets:s,escaped:Zs(s)}}}default:return{}}}}},Qs=new Set(["left","top"]);async function jm(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Xe(n),i=Tt(n),l=$e(n)==="y",d=Qs.has(s)?-1:1,f=a&&l?-1:1,m=Ke(t,e);let{mainAxis:p,crossAxis:g,alignmentAxis:b}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return i&&typeof b=="number"&&(g=i==="end"?b*-1:b),l?{x:g*f,y:p*d}:{x:p*d,y:g*f}}const Rm=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:s,middlewareData:i}=t,l=await jm(t,e);return s===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:s}}}}},Im=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:v=>{let{x,y}=v;return{x,y}}},...l}=Ke(e,t),d={x:n,y:r},f=await Xt(t,l),m=$e(Xe(o)),p=Ir(m);let g=d[p],b=d[m];if(a){const v=p==="y"?"top":"left",x=p==="y"?"bottom":"right",y=g+f[v],w=g-f[x];g=Rr(y,g,w)}if(s){const v=m==="y"?"top":"left",x=m==="y"?"bottom":"right",y=b+f[v],w=b-f[x];b=Rr(y,b,w)}const h=i.fn({...t,[p]:g,[m]:b});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[p]:a,[m]:s}}}}}},Wm=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:l=!0,crossAxis:d=!0}=Ke(e,t),f={x:n,y:r},m=$e(o),p=Ir(m);let g=f[p],b=f[m];const h=Ke(i,t),v=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const w=p==="y"?"height":"width",S=a.reference[p]-a.floating[w]+v.mainAxis,k=a.reference[p]+a.reference[w]-v.mainAxis;g<S?g=S:g>k&&(g=k)}if(d){var x,y;const w=p==="y"?"width":"height",S=Qs.has(Xe(o)),k=a.reference[m]-a.floating[w]+(S&&((x=s.offset)==null?void 0:x[m])||0)+(S?0:v.crossAxis),_=a.reference[m]+a.reference[w]+(S?0:((y=s.offset)==null?void 0:y[m])||0)-(S?v.crossAxis:0);b<k?b=k:b>_&&(b=_)}return{[p]:g,[m]:b}}}},Fm=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:s,elements:i}=t,{apply:l=()=>{},...d}=Ke(e,t),f=await Xt(t,d),m=Xe(o),p=Tt(o),g=$e(o)==="y",{width:b,height:h}=a.floating;let v,x;m==="top"||m==="bottom"?(v=m,x=p===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(x=m,v=p==="end"?"top":"bottom");const y=h-f.top-f.bottom,w=b-f.left-f.right,S=nt(h-f[v],y),k=nt(b-f[x],w),_=!t.middlewareData.shift;let C=S,E=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=y),_&&!p){const z=Ne(f.left,0),G=Ne(f.right,0),K=Ne(f.top,0),te=Ne(f.bottom,0);g?E=b-2*(z!==0||G!==0?z+G:Ne(f.left,f.right)):C=h-2*(K!==0||te!==0?K+te:Ne(f.top,f.bottom))}await l({...t,availableWidth:E,availableHeight:C});const $=await s.getDimensions(i.floating);return b!==$.width||h!==$.height?{reset:{rects:!0}}:{}}}};function Vn(){return typeof window<"u"}function Pt(e){return Js(e)?(e.nodeName||"").toLowerCase():"#document"}function Ee(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Be(e){var t;return(t=(Js(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Js(e){return Vn()?e instanceof Node||e instanceof Ee(e).Node:!1}function Ae(e){return Vn()?e instanceof Element||e instanceof Ee(e).Element:!1}function ze(e){return Vn()?e instanceof HTMLElement||e instanceof Ee(e).HTMLElement:!1}function ei(e){return!Vn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ee(e).ShadowRoot}const Lm=new Set(["inline","contents"]);function Zt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=je(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Lm.has(o)}const $m=new Set(["table","td","th"]);function Bm(e){return $m.has(Pt(e))}const zm=[":popover-open",":modal"];function Yn(e){return zm.some(t=>{try{return e.matches(t)}catch{return!1}})}const Vm=["transform","translate","scale","rotate","perspective"],Ym=["transform","translate","scale","rotate","perspective","filter"],Hm=["paint","layout","strict","content"];function $r(e){const t=Br(),n=Ae(e)?je(e):e;return Vm.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)||Ym.some(r=>(n.willChange||"").includes(r))||Hm.some(r=>(n.contain||"").includes(r))}function Gm(e){let t=rt(e);for(;ze(t)&&!Dt(t);){if($r(t))return t;if(Yn(t))return null;t=rt(t)}return null}function Br(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Um=new Set(["html","body","#document"]);function Dt(e){return Um.has(Pt(e))}function je(e){return Ee(e).getComputedStyle(e)}function Hn(e){return Ae(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function rt(e){if(Pt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ei(e)&&e.host||Be(e);return ei(t)?t.host:t}function ti(e){const t=rt(e);return Dt(t)?e.ownerDocument?e.ownerDocument.body:e.body:ze(t)&&Zt(t)?t:ti(t)}function Qt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=ti(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),s=Ee(o);if(a){const i=zr(s);return t.concat(s,s.visualViewport||[],Zt(o)?o:[],i&&n?Qt(i):[])}return t.concat(o,Qt(o,[],n))}function zr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ni(e){const t=je(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ze(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:r,i=Ln(n)!==a||Ln(r)!==s;return i&&(n=a,r=s),{width:n,height:r,$:i}}function Vr(e){return Ae(e)?e:e.contextElement}function At(e){const t=Vr(e);if(!ze(t))return Le(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=ni(t);let s=(a?Ln(n.width):n.width)/r,i=(a?Ln(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const qm=Le(0);function ri(e){const t=Ee(e);return!Br()||!t.visualViewport?qm:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Km(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ee(e)?!1:t}function mt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Vr(e);let s=Le(1);t&&(r?Ae(r)&&(s=At(r)):s=At(e));const i=Km(a,n,r)?ri(a):Le(0);let l=(o.left+i.x)/s.x,d=(o.top+i.y)/s.y,f=o.width/s.x,m=o.height/s.y;if(a){const p=Ee(a),g=r&&Ae(r)?Ee(r):r;let b=p,h=zr(b);for(;h&&r&&g!==b;){const v=At(h),x=h.getBoundingClientRect(),y=je(h),w=x.left+(h.clientLeft+parseFloat(y.paddingLeft))*v.x,S=x.top+(h.clientTop+parseFloat(y.paddingTop))*v.y;l*=v.x,d*=v.y,f*=v.x,m*=v.y,l+=w,d+=S,b=Ee(h),h=zr(b)}}return zn({width:f,height:m,x:l,y:d})}function Gn(e,t){const n=Hn(e).scrollLeft;return t?t.left+n:mt(Be(e)).left+n}function oi(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Gn(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Xm(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",s=Be(r),i=t?Yn(t.floating):!1;if(r===s||i&&a)return n;let l={scrollLeft:0,scrollTop:0},d=Le(1);const f=Le(0),m=ze(r);if((m||!m&&!a)&&((Pt(r)!=="body"||Zt(s))&&(l=Hn(r)),ze(r))){const g=mt(r);d=At(r),f.x=g.x+r.clientLeft,f.y=g.y+r.clientTop}const p=s&&!m&&!a?oi(s,l):Le(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-l.scrollLeft*d.x+f.x+p.x,y:n.y*d.y-l.scrollTop*d.y+f.y+p.y}}function Zm(e){return Array.from(e.getClientRects())}function Qm(e){const t=Be(e),n=Hn(e),r=e.ownerDocument.body,o=Ne(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Ne(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Gn(e);const i=-n.scrollTop;return je(r).direction==="rtl"&&(s+=Ne(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:i}}const ai=25;function Jm(e,t){const n=Ee(e),r=Be(e),o=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,i=0,l=0;if(o){a=o.width,s=o.height;const f=Br();(!f||f&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}const d=Gn(r);if(d<=0){const f=r.ownerDocument,m=f.body,p=getComputedStyle(m),g=f.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,b=Math.abs(r.clientWidth-m.clientWidth-g);b<=ai&&(a-=b)}else d<=ai&&(a+=d);return{width:a,height:s,x:i,y:l}}const eh=new Set(["absolute","fixed"]);function th(e,t){const n=mt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=ze(e)?At(e):Le(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,l=o*a.x,d=r*a.y;return{width:s,height:i,x:l,y:d}}function si(e,t,n){let r;if(t==="viewport")r=Jm(e,n);else if(t==="document")r=Qm(Be(e));else if(Ae(t))r=th(t,n);else{const o=ri(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return zn(r)}function ii(e,t){const n=rt(e);return n===t||!Ae(n)||Dt(n)?!1:je(n).position==="fixed"||ii(n,t)}function nh(e,t){const n=t.get(e);if(n)return n;let r=Qt(e,[],!1).filter(i=>Ae(i)&&Pt(i)!=="body"),o=null;const a=je(e).position==="fixed";let s=a?rt(e):e;for(;Ae(s)&&!Dt(s);){const i=je(s),l=$r(s);!l&&i.position==="fixed"&&(o=null),(a?!l&&!o:!l&&i.position==="static"&&!!o&&eh.has(o.position)||Zt(s)&&!l&&ii(e,s))?r=r.filter(f=>f!==s):o=i,s=rt(s)}return t.set(e,r),r}function rh(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Yn(t)?[]:nh(t,this._c):[].concat(n),r],i=s[0],l=s.reduce((d,f)=>{const m=si(t,f,o);return d.top=Ne(m.top,d.top),d.right=nt(m.right,d.right),d.bottom=nt(m.bottom,d.bottom),d.left=Ne(m.left,d.left),d},si(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function oh(e){const{width:t,height:n}=ni(e);return{width:t,height:n}}function ah(e,t,n){const r=ze(t),o=Be(t),a=n==="fixed",s=mt(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const l=Le(0);function d(){l.x=Gn(o)}if(r||!r&&!a)if((Pt(t)!=="body"||Zt(o))&&(i=Hn(t)),r){const g=mt(t,!0,a,t);l.x=g.x+t.clientLeft,l.y=g.y+t.clientTop}else o&&d();a&&!r&&o&&d();const f=o&&!r&&!a?oi(o,i):Le(0),m=s.left+i.scrollLeft-l.x-f.x,p=s.top+i.scrollTop-l.y-f.y;return{x:m,y:p,width:s.width,height:s.height}}function Yr(e){return je(e).position==="static"}function li(e,t){if(!ze(e)||je(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Be(e)===n&&(n=n.ownerDocument.body),n}function ci(e,t){const n=Ee(e);if(Yn(e))return n;if(!ze(e)){let o=rt(e);for(;o&&!Dt(o);){if(Ae(o)&&!Yr(o))return o;o=rt(o)}return n}let r=li(e,t);for(;r&&Bm(r)&&Yr(r);)r=li(r,t);return r&&Dt(r)&&Yr(r)&&!$r(r)?n:r||Gm(e)||n}const sh=async function(e){const t=this.getOffsetParent||ci,n=this.getDimensions,r=await n(e.floating);return{reference:ah(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ih(e){return je(e).direction==="rtl"}const lh={convertOffsetParentRelativeRectToViewportRelativeRect:Xm,getDocumentElement:Be,getClippingRect:rh,getOffsetParent:ci,getElementRects:sh,getClientRects:Zm,getDimensions:oh,getScale:At,isElement:Ae,isRTL:ih};function di(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ch(e,t){let n=null,r;const o=Be(e);function a(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function s(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),a();const d=e.getBoundingClientRect(),{left:f,top:m,width:p,height:g}=d;if(i||t(),!p||!g)return;const b=$n(m),h=$n(o.clientWidth-(f+p)),v=$n(o.clientHeight-(m+g)),x=$n(f),w={rootMargin:-b+"px "+-h+"px "+-v+"px "+-x+"px",threshold:Ne(0,nt(1,l))||1};let S=!0;function k(_){const C=_[0].intersectionRatio;if(C!==l){if(!S)return s();C?s(!1,C):r=setTimeout(()=>{s(!1,1e-7)},1e3)}C===1&&!di(d,e.getBoundingClientRect())&&s(),S=!1}try{n=new IntersectionObserver(k,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(k,w)}n.observe(e)}return s(!0),a}function dh(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,d=Vr(e),f=o||a?[...d?Qt(d):[],...Qt(t)]:[];f.forEach(x=>{o&&x.addEventListener("scroll",n,{passive:!0}),a&&x.addEventListener("resize",n)});const m=d&&i?ch(d,n):null;let p=-1,g=null;s&&(g=new ResizeObserver(x=>{let[y]=x;y&&y.target===d&&g&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),n()}),d&&!l&&g.observe(d),g.observe(t));let b,h=l?mt(e):null;l&&v();function v(){const x=mt(e);h&&!di(h,x)&&n(),h=x,b=requestAnimationFrame(v)}return n(),()=>{var x;f.forEach(y=>{o&&y.removeEventListener("scroll",n),a&&y.removeEventListener("resize",n)}),m==null||m(),(x=g)==null||x.disconnect(),g=null,l&&cancelAnimationFrame(b)}}const uh=Rm,fh=Im,mh=Dm,hh=Fm,ph=Am,ui=Pm,gh=Wm,bh=(e,t,n)=>{const r=new Map,o={platform:lh,...n},a={...o.platform,_c:r};return Tm(e,t,{...o,platform:a})};var vh=typeof document<"u",xh=function(){},Un=vh?O.useLayoutEffect:xh;function qn(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(!qn(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!qn(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function fi(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function mi(e,t){const n=fi(e);return Math.round(t*n)/n}function Hr(e){const t=u.useRef(e);return Un(()=>{t.current=e}),t}function yh(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:l,open:d}=e,[f,m]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,g]=u.useState(r);qn(p,r)||g(r);const[b,h]=u.useState(null),[v,x]=u.useState(null),y=u.useCallback(P=>{P!==_.current&&(_.current=P,h(P))},[]),w=u.useCallback(P=>{P!==C.current&&(C.current=P,x(P))},[]),S=a||b,k=s||v,_=u.useRef(null),C=u.useRef(null),E=u.useRef(f),$=l!=null,z=Hr(l),G=Hr(o),K=Hr(d),te=u.useCallback(()=>{if(!_.current||!C.current)return;const P={placement:t,strategy:n,middleware:p};G.current&&(P.platform=G.current),bh(_.current,C.current,P).then(ee=>{const T={...ee,isPositioned:K.current!==!1};U.current&&!qn(E.current,T)&&(E.current=T,gn.flushSync(()=>{m(T)}))})},[p,t,n,G,K]);Un(()=>{d===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,m(P=>({...P,isPositioned:!1})))},[d]);const U=u.useRef(!1);Un(()=>(U.current=!0,()=>{U.current=!1}),[]),Un(()=>{if(S&&(_.current=S),k&&(C.current=k),S&&k){if(z.current)return z.current(S,k,te);te()}},[S,k,te,z,$]);const Q=u.useMemo(()=>({reference:_,floating:C,setReference:y,setFloating:w}),[y,w]),L=u.useMemo(()=>({reference:S,floating:k}),[S,k]),X=u.useMemo(()=>{const P={position:n,left:0,top:0};if(!L.floating)return P;const ee=mi(L.floating,f.x),T=mi(L.floating,f.y);return i?{...P,transform:"translate("+ee+"px, "+T+"px)",...fi(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ee,top:T}},[n,i,L.floating,f.x,f.y]);return u.useMemo(()=>({...f,update:te,refs:Q,elements:L,floatingStyles:X}),[f,te,Q,L,X])}const wh=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?ui({element:r.current,padding:o}).fn(n):{}:r?ui({element:r,padding:o}).fn(n):{}}}},kh=(e,t)=>({...uh(e),options:[e,t]}),Sh=(e,t)=>({...fh(e),options:[e,t]}),Ch=(e,t)=>({...gh(e),options:[e,t]}),Nh=(e,t)=>({...mh(e),options:[e,t]}),Eh=(e,t)=>({...hh(e),options:[e,t]}),_h=(e,t)=>({...ph(e),options:[e,t]}),Mh=(e,t)=>({...wh(e),options:[e,t]});var Oh="Arrow",hi=u.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return c.jsx(Y.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});hi.displayName=Oh;var Th=hi,Gr="Popper",[pi,jt]=Ce(Gr),[Ph,gi]=pi(Gr),bi=e=>{const{__scopePopper:t,children:n}=e,[r,o]=u.useState(null);return c.jsx(Ph,{scope:t,anchor:r,onAnchorChange:o,children:n})};bi.displayName=Gr;var vi="PopperAnchor",xi=u.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=gi(vi,n),s=u.useRef(null),i=le(t,s),l=u.useRef(null);return u.useEffect(()=>{const d=l.current;l.current=(r==null?void 0:r.current)||s.current,d!==l.current&&a.onAnchorChange(l.current)}),r?null:c.jsx(Y.div,{...o,ref:i})});xi.displayName=vi;var Ur="PopperContent",[Dh,Ah]=pi(Ur),yi=u.forwardRef((e,t)=>{var A,B,Z,ne,se,ie;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:l=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:m="partial",hideWhenDetached:p=!1,updatePositionStrategy:g="optimized",onPlaced:b,...h}=e,v=gi(Ur,n),[x,y]=u.useState(null),w=le(t,ke=>y(ke)),[S,k]=u.useState(null),_=yn(S),C=(_==null?void 0:_.width)??0,E=(_==null?void 0:_.height)??0,$=r+(a!=="center"?"-"+a:""),z=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},G=Array.isArray(d)?d:[d],K=G.length>0,te={padding:z,boundary:G.filter(Rh),altBoundary:K},{refs:U,floatingStyles:Q,placement:L,isPositioned:X,middlewareData:P}=yh({strategy:"fixed",placement:$,whileElementsMounted:(...ke)=>dh(...ke,{animationFrame:g==="always"}),elements:{reference:v.anchor},middleware:[kh({mainAxis:o+E,alignmentAxis:s}),l&&Sh({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?Ch():void 0,...te}),l&&Nh({...te}),Eh({...te,apply:({elements:ke,rects:Oe,availableWidth:xt,availableHeight:yt})=>{const{width:wt,height:Ro}=Oe.reference,Vt=ke.floating.style;Vt.setProperty("--radix-popper-available-width",`${xt}px`),Vt.setProperty("--radix-popper-available-height",`${yt}px`),Vt.setProperty("--radix-popper-anchor-width",`${wt}px`),Vt.setProperty("--radix-popper-anchor-height",`${Ro}px`)}}),S&&Mh({element:S,padding:i}),Ih({arrowWidth:C,arrowHeight:E}),p&&_h({strategy:"referenceHidden",...te})]}),[ee,T]=Si(L),V=qe(b);be(()=>{X&&(V==null||V())},[X,V]);const M=(A=P.arrow)==null?void 0:A.x,j=(B=P.arrow)==null?void 0:B.y,I=((Z=P.arrow)==null?void 0:Z.centerOffset)!==0,[R,J]=u.useState();return be(()=>{x&&J(window.getComputedStyle(x).zIndex)},[x]),c.jsx("div",{ref:U.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:X?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:R,"--radix-popper-transform-origin":[(ne=P.transformOrigin)==null?void 0:ne.x,(se=P.transformOrigin)==null?void 0:se.y].join(" "),...((ie=P.hide)==null?void 0:ie.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(Dh,{scope:n,placedSide:ee,onArrowChange:k,arrowX:M,arrowY:j,shouldHideArrow:I,children:c.jsx(Y.div,{"data-side":ee,"data-align":T,...h,ref:w,style:{...h.style,animation:X?void 0:"none"}})})})});yi.displayName=Ur;var wi="PopperArrow",jh={top:"bottom",right:"left",bottom:"top",left:"right"},ki=u.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=Ah(wi,r),s=jh[a.placedSide];return c.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:c.jsx(Th,{...o,ref:n,style:{...o.style,display:"block"}})})});ki.displayName=wi;function Rh(e){return e!==null}var Ih=e=>({name:"transformOrigin",options:e,fn(t){var v,x,y;const{placement:n,rects:r,middlewareData:o}=t,s=((v=o.arrow)==null?void 0:v.centerOffset)!==0,i=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[d,f]=Si(n),m={start:"0%",center:"50%",end:"100%"}[f],p=(((x=o.arrow)==null?void 0:x.x)??0)+i/2,g=(((y=o.arrow)==null?void 0:y.y)??0)+l/2;let b="",h="";return d==="bottom"?(b=s?m:`${p}px`,h=`${-l}px`):d==="top"?(b=s?m:`${p}px`,h=`${r.floating.height+l}px`):d==="right"?(b=`${-l}px`,h=s?m:`${g}px`):d==="left"&&(b=`${r.floating.width+l}px`,h=s?m:`${g}px`),{data:{x:b,y:h}}}});function Si(e){const[t,n="center"]=e.split("-");return[t,n]}var qr=bi,Kn=xi,Kr=yi,Xr=ki,Ci=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"}),Wh="VisuallyHidden",Ni=u.forwardRef((e,t)=>c.jsx(Y.span,{...e,ref:t,style:{...Ci,...e.style}}));Ni.displayName=Wh;var Fh=Ni,[Xn,k0]=Ce("Tooltip",[jt]),Zn=jt(),Ei="TooltipProvider",Lh=700,Zr="tooltip.open",[$h,Qr]=Xn(Ei),_i=e=>{const{__scopeTooltip:t,delayDuration:n=Lh,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,s=u.useRef(!0),i=u.useRef(!1),l=u.useRef(0);return u.useEffect(()=>{const d=l.current;return()=>window.clearTimeout(d)},[]),c.jsx($h,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:u.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:u.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:u.useCallback(d=>{i.current=d},[]),disableHoverableContent:o,children:a})};_i.displayName=Ei;var Jt="Tooltip",[Bh,en]=Xn(Jt),Jr=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,l=Qr(Jt,e.__scopeTooltip),d=Zn(t),[f,m]=u.useState(null),p=ye(),g=u.useRef(0),b=s??l.disableHoverableContent,h=i??l.delayDuration,v=u.useRef(!1),[x,y]=We({prop:r,defaultProp:o??!1,onChange:C=>{C?(l.onOpen(),document.dispatchEvent(new CustomEvent(Zr))):l.onClose(),a==null||a(C)},caller:Jt}),w=u.useMemo(()=>x?v.current?"delayed-open":"instant-open":"closed",[x]),S=u.useCallback(()=>{window.clearTimeout(g.current),g.current=0,v.current=!1,y(!0)},[y]),k=u.useCallback(()=>{window.clearTimeout(g.current),g.current=0,y(!1)},[y]),_=u.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{v.current=!0,y(!0),g.current=0},h)},[h,y]);return u.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),c.jsx(qr,{...d,children:c.jsx(Bh,{scope:t,contentId:p,open:x,stateAttribute:w,trigger:f,onTriggerChange:m,onTriggerEnter:u.useCallback(()=>{l.isOpenDelayedRef.current?_():S()},[l.isOpenDelayedRef,_,S]),onTriggerLeave:u.useCallback(()=>{b?k():(window.clearTimeout(g.current),g.current=0)},[k,b]),onOpen:S,onClose:k,disableHoverableContent:b,children:n})})};Jr.displayName=Jt;var eo="TooltipTrigger",to=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=en(eo,n),a=Qr(eo,n),s=Zn(n),i=u.useRef(null),l=le(t,i,o.onTriggerChange),d=u.useRef(!1),f=u.useRef(!1),m=u.useCallback(()=>d.current=!1,[]);return u.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),c.jsx(Kn,{asChild:!0,...s,children:c.jsx(Y.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:q(e.onPointerMove,p=>{p.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:q(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:q(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:q(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:q(e.onBlur,o.onClose),onClick:q(e.onClick,o.onClose)})})});to.displayName=eo;var no="TooltipPortal",[zh,Vh]=Xn(no,{forceMount:void 0}),Mi=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=en(no,t);return c.jsx(zh,{scope:t,forceMount:n,children:c.jsx(Pe,{present:n||a.open,children:c.jsx(Kt,{asChild:!0,container:o,children:r})})})};Mi.displayName=no;var Rt="TooltipContent",ro=u.forwardRef((e,t)=>{const n=Vh(Rt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,s=en(Rt,e.__scopeTooltip);return c.jsx(Pe,{present:r||s.open,children:s.disableHoverableContent?c.jsx(Oi,{side:o,...a,ref:t}):c.jsx(Yh,{side:o,...a,ref:t})})}),Yh=u.forwardRef((e,t)=>{const n=en(Rt,e.__scopeTooltip),r=Qr(Rt,e.__scopeTooltip),o=u.useRef(null),a=le(t,o),[s,i]=u.useState(null),{trigger:l,onClose:d}=n,f=o.current,{onPointerInTransitChange:m}=r,p=u.useCallback(()=>{i(null),m(!1)},[m]),g=u.useCallback((b,h)=>{const v=b.currentTarget,x={x:b.clientX,y:b.clientY},y=qh(x,v.getBoundingClientRect()),w=Kh(x,y),S=Xh(h.getBoundingClientRect()),k=Qh([...w,...S]);i(k),m(!0)},[m]);return u.useEffect(()=>()=>p(),[p]),u.useEffect(()=>{if(l&&f){const b=v=>g(v,f),h=v=>g(v,l);return l.addEventListener("pointerleave",b),f.addEventListener("pointerleave",h),()=>{l.removeEventListener("pointerleave",b),f.removeEventListener("pointerleave",h)}}},[l,f,g,p]),u.useEffect(()=>{if(s){const b=h=>{const v=h.target,x={x:h.clientX,y:h.clientY},y=(l==null?void 0:l.contains(v))||(f==null?void 0:f.contains(v)),w=!Zh(x,s);y?p():w&&(p(),d())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,f,s,d,p]),c.jsx(Oi,{...e,ref:a})}),[Hh,Gh]=Xn(Jt,{isInside:!1}),Uh=nd("TooltipContent"),Oi=u.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,l=en(Rt,n),d=Zn(n),{onClose:f}=l;return u.useEffect(()=>(document.addEventListener(Zr,f),()=>document.removeEventListener(Zr,f)),[f]),u.useEffect(()=>{if(l.trigger){const m=p=>{const g=p.target;g!=null&&g.contains(l.trigger)&&f()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[l.trigger,f]),c.jsx(qt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:m=>m.preventDefault(),onDismiss:f,children:c.jsxs(Kr,{"data-state":l.stateAttribute,...d,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(Uh,{children:r}),c.jsx(Hh,{scope:n,isInside:!0,children:c.jsx(Fh,{id:l.contentId,role:"tooltip",children:o||r})})]})})});ro.displayName=Rt;var Ti="TooltipArrow",Pi=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Zn(n);return Gh(Ti,n).isInside?null:c.jsx(Xr,{...o,...r,ref:t})});Pi.displayName=Ti;function qh(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Kh(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 Xh(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 Zh(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],l=t[s],d=i.x,f=i.y,m=l.x,p=l.y;f>r!=p>r&&n<(m-d)*(r-f)/(p-f)+d&&(o=!o)}return o}function Qh(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),Jh(t)}function Jh(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],s=n[n.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var ep=_i,tp=Jr,np=to,rp=Mi,op=ro,ap=Pi;function Di({delayDuration:e=0,...t}){return c.jsx(ep,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function sp({...e}){return c.jsx(Di,{children:c.jsx(tp,{"data-slot":"tooltip",...e})})}function ip({...e}){return c.jsx(np,{"data-slot":"tooltip-trigger",...e})}function lp({className:e,sideOffset:t=0,children:n,...r}){return c.jsx(rp,{children:c.jsxs(op,{"data-slot":"tooltip-content",sideOffset:t,className:N("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,c.jsx(ap,{className:"bg-neutral-black-1 fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const Ai=({className:e,type:t,...n})=>c.jsx("input",{type:t,className:N("flex-1 h-10 bg-transparent outline-none placeholder:text-neutral-black-2 disabled:cursor-not-allowed disabled:opacity-50","text-black-1 text-sm","placeholder:text-neutral-black-2 placeholder:text-sm",e),...n}),cp=ge("flex items-center rounded-lg border transition-colors p-2",{variants:{size:{small:"h-6 w-80 text-sm px-2",medium:"h-10 w-92 text-base px-3"},status:{default:"border-neutral-black-4 text-foreground focus-within:ring-4 focus-within:ring-neutral-black-4",error:"border-error-1 text-primary-1 focus-within:ring-4 focus-within:ring-error-1",disabled:"border-neutral-black-4 bg-neutral-black-4 text-neutral-black-2 cursor-not-allowed"}},defaultVariants:{size:"medium",status:"default"}}),ji=({size:e,status:t,startSlot:n,endSlot:r,className:o,disabled:a,...s})=>c.jsxs("div",{className:N(cp({size:e,status:t}),o),children:[n&&c.jsx("span",{className:"mr-2 flex-shrink-0",children:n}),c.jsx(Ai,{disabled:a,...s}),r&&c.jsx("span",{className:"ml-2 flex-shrink-0",children:r})]}),Ri=({children:e,className:t,...n})=>e==null?null:c.jsx("label",{className:N("text-sm font-normal text-neutral-black-1",t),...n,children:e}),Ii=({label:e,helperText:t,errorText:n,startSlot:r,endSlot:o,size:a="medium",className:s,disabled:i=!1,...l})=>c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx(Ri,{children:e}),c.jsx(ji,{size:a,status:n?"error":i?"disabled":"default",startSlot:r,endSlot:o,disabled:i,className:s,...l}),(t||n)&&c.jsx("p",{className:N("text-sm mt-1",n?"text-error-1":"text-neutral-black-2"),children:n||t})]}),dp=({showForgot:e=!1,onValidityChange:t,customValidator:n,...r})=>{const[o,a]=O.useState(!1),[s,i]=O.useState(""),[l,d]=O.useState(!1),m=n?n(s):(g=>[{label:"minimum 8 characters",isValid:g.length>=8},{label:"one uppercase character",isValid:/[A-Z]/.test(g)},{label:"one lowercase character",isValid:/[a-z]/.test(g)},{label:"one special character",isValid:/[^A-Za-z0-9]/.test(g)},{label:"one number",isValid:/\d/.test(g)}])(s),p=m.every(g=>g.isValid);return O.useEffect(()=>{t&&t(p,m)},[s,p,m,t]),c.jsx("div",{className:"flex flex-col gap-2",children:c.jsxs("div",{className:"flex flex-col gap-2 w-full max-w-sm",children:[c.jsxs("div",{className:"flex justify-between items-center",children:[c.jsx("label",{className:"text-sm font-medium text-neutral-0",children:"Password"}),e&&c.jsx(Se,{className:"text-xs text-neutral-0 hover:underline bg-transparent p-0 hover:bg-transparent",variant:"primary",children:"Forgot Password?"})]}),c.jsx(Ii,{type:o?"text":"password",value:s,onChange:g=>i(g.target.value),onFocus:()=>d(!0),...r,endSlot:c.jsx(Se,{className:"text-xs text-neutral-0 hover:underline bg-transparent p-0 hover:bg-transparent",variant:"primary",onClick:()=>a(!o),children:o?c.jsx(Vu,{size:24,className:"text-neutral-black-2"}):c.jsx(Yu,{size:24,className:"text-neutral-black-2"})})}),c.jsx("div",{className:"grid grid-cols-2 gap-y-1 text-xs mt-3",children:m.map((g,b)=>c.jsxs("div",{className:"flex items-center gap-1",children:[c.jsx("div",{className:N("w-1.5 h-1.5 rounded-full transition-colors",g.isValid?"bg-success-1":l?"bg-primary-1":"bg-neutral-black-2")}),c.jsx("span",{className:N("transition-colors",g.isValid?"text-success-1":l?"text-primary-1":"text-neutral-black-2"),children:g.label})]},b))})]})})},up=e=>c.jsx(Ii,{type:"search",startSlot:c.jsx(Xa,{"data-testid":"search-icon",className:"w-4 h-4 text-input-placeholder text-neutral-black-2"}),placeholder:"Search...",...e});function Wi(e,[t,n]){return Math.min(n,Math.max(t,e))}var fp=[" ","Enter","ArrowUp","ArrowDown"],mp=[" ","Enter"],ht="Select",[Qn,Jn,hp]=pa(ht),[It,S0]=Ce(ht,[hp,jt]),er=jt(),[pp,ot]=It(ht),[gp,bp]=It(ht),Fi=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:s,defaultValue:i,onValueChange:l,dir:d,name:f,autoComplete:m,disabled:p,required:g,form:b}=e,h=er(t),[v,x]=u.useState(null),[y,w]=u.useState(null),[S,k]=u.useState(!1),_=kn(d),[C,E]=We({prop:r,defaultProp:o??!1,onChange:a,caller:ht}),[$,z]=We({prop:s,defaultProp:i,onChange:l,caller:ht}),G=u.useRef(null),K=v?b||!!v.closest("form"):!0,[te,U]=u.useState(new Set),Q=Array.from(te).map(L=>L.props.value).join(";");return c.jsx(qr,{...h,children:c.jsxs(pp,{required:g,scope:t,trigger:v,onTriggerChange:x,valueNode:y,onValueNodeChange:w,valueNodeHasChildren:S,onValueNodeHasChildrenChange:k,contentId:ye(),value:$,onValueChange:z,open:C,onOpenChange:E,dir:_,triggerPointerDownPosRef:G,disabled:p,children:[c.jsx(Qn.Provider,{scope:t,children:c.jsx(gp,{scope:e.__scopeSelect,onNativeOptionAdd:u.useCallback(L=>{U(X=>new Set(X).add(L))},[]),onNativeOptionRemove:u.useCallback(L=>{U(X=>{const P=new Set(X);return P.delete(L),P})},[]),children:n})}),K?c.jsxs(ll,{"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:m,value:$,onChange:L=>z(L.target.value),disabled:p,form:b,children:[$===void 0?c.jsx("option",{value:""}):null,Array.from(te)]},Q):null]})})};Fi.displayName=ht;var Li="SelectTrigger",$i=u.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=er(n),s=ot(Li,n),i=s.disabled||r,l=le(t,s.onTriggerChange),d=Jn(n),f=u.useRef("touch"),[m,p,g]=dl(h=>{const v=d().filter(w=>!w.disabled),x=v.find(w=>w.value===s.value),y=ul(v,h,x);y!==void 0&&s.onValueChange(y.value)}),b=h=>{i||(s.onOpenChange(!0),g()),h&&(s.triggerPointerDownPosRef.current={x:Math.round(h.pageX),y:Math.round(h.pageY)})};return c.jsx(Kn,{asChild:!0,...a,children:c.jsx(Y.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":cl(s.value)?"":void 0,...o,ref:l,onClick:q(o.onClick,h=>{h.currentTarget.focus(),f.current!=="mouse"&&b(h)}),onPointerDown:q(o.onPointerDown,h=>{f.current=h.pointerType;const v=h.target;v.hasPointerCapture(h.pointerId)&&v.releasePointerCapture(h.pointerId),h.button===0&&h.ctrlKey===!1&&h.pointerType==="mouse"&&(b(h),h.preventDefault())}),onKeyDown:q(o.onKeyDown,h=>{const v=m.current!=="";!(h.ctrlKey||h.altKey||h.metaKey)&&h.key.length===1&&p(h.key),!(v&&h.key===" ")&&fp.includes(h.key)&&(b(),h.preventDefault())})})})});$i.displayName=Li;var Bi="SelectValue",zi=u.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:s="",...i}=e,l=ot(Bi,n),{onValueNodeHasChildrenChange:d}=l,f=a!==void 0,m=le(t,l.onValueNodeChange);return be(()=>{d(f)},[d,f]),c.jsx(Y.span,{...i,ref:m,style:{pointerEvents:"none"},children:cl(l.value)?c.jsx(c.Fragment,{children:s}):a})});zi.displayName=Bi;var vp="SelectIcon",Vi=u.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return c.jsx(Y.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Vi.displayName=vp;var xp="SelectPortal",Yi=e=>c.jsx(Kt,{asChild:!0,...e});Yi.displayName=xp;var pt="SelectContent",Hi=u.forwardRef((e,t)=>{const n=ot(pt,e.__scopeSelect),[r,o]=u.useState();if(be(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?gn.createPortal(c.jsx(Gi,{scope:e.__scopeSelect,children:c.jsx(Qn.Slot,{scope:e.__scopeSelect,children:c.jsx("div",{children:e.children})})}),a):null}return c.jsx(Ui,{...e,ref:t})});Hi.displayName=pt;var Re=10,[Gi,at]=It(pt),yp="SelectContentImpl",wp=dt("SelectContent.RemoveScroll"),Ui=u.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:i,sideOffset:l,align:d,alignOffset:f,arrowPadding:m,collisionBoundary:p,collisionPadding:g,sticky:b,hideWhenDetached:h,avoidCollisions:v,...x}=e,y=ot(pt,n),[w,S]=u.useState(null),[k,_]=u.useState(null),C=le(t,A=>S(A)),[E,$]=u.useState(null),[z,G]=u.useState(null),K=Jn(n),[te,U]=u.useState(!1),Q=u.useRef(!1);u.useEffect(()=>{if(w)return Tr(w)},[w]),Cr();const L=u.useCallback(A=>{const[B,...Z]=K().map(ie=>ie.ref.current),[ne]=Z.slice(-1),se=document.activeElement;for(const ie of A)if(ie===se||(ie==null||ie.scrollIntoView({block:"nearest"}),ie===B&&k&&(k.scrollTop=0),ie===ne&&k&&(k.scrollTop=k.scrollHeight),ie==null||ie.focus(),document.activeElement!==se))return},[K,k]),X=u.useCallback(()=>L([E,w]),[L,E,w]);u.useEffect(()=>{te&&X()},[te,X]);const{onOpenChange:P,triggerPointerDownPosRef:ee}=y;u.useEffect(()=>{if(w){let A={x:0,y:0};const B=ne=>{var se,ie;A={x:Math.abs(Math.round(ne.pageX)-(((se=ee.current)==null?void 0:se.x)??0)),y:Math.abs(Math.round(ne.pageY)-(((ie=ee.current)==null?void 0:ie.y)??0))}},Z=ne=>{A.x<=10&&A.y<=10?ne.preventDefault():w.contains(ne.target)||P(!1),document.removeEventListener("pointermove",B),ee.current=null};return ee.current!==null&&(document.addEventListener("pointermove",B),document.addEventListener("pointerup",Z,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",B),document.removeEventListener("pointerup",Z,{capture:!0})}}},[w,P,ee]),u.useEffect(()=>{const A=()=>P(!1);return window.addEventListener("blur",A),window.addEventListener("resize",A),()=>{window.removeEventListener("blur",A),window.removeEventListener("resize",A)}},[P]);const[T,V]=dl(A=>{const B=K().filter(se=>!se.disabled),Z=B.find(se=>se.ref.current===document.activeElement),ne=ul(B,A,Z);ne&&setTimeout(()=>ne.ref.current.focus())}),M=u.useCallback((A,B,Z)=>{const ne=!Q.current&&!Z;(y.value!==void 0&&y.value===B||ne)&&($(A),ne&&(Q.current=!0))},[y.value]),j=u.useCallback(()=>w==null?void 0:w.focus(),[w]),I=u.useCallback((A,B,Z)=>{const ne=!Q.current&&!Z;(y.value!==void 0&&y.value===B||ne)&&G(A)},[y.value]),R=r==="popper"?oo:qi,J=R===oo?{side:i,sideOffset:l,align:d,alignOffset:f,arrowPadding:m,collisionBoundary:p,collisionPadding:g,sticky:b,hideWhenDetached:h,avoidCollisions:v}:{};return c.jsx(Gi,{scope:n,content:w,viewport:k,onViewportChange:_,itemRefCallback:M,selectedItem:E,onItemLeave:j,itemTextRefCallback:I,focusSelectedItem:X,selectedItemText:z,position:r,isPositioned:te,searchRef:T,children:c.jsx(jn,{as:wp,allowPinchZoom:!0,children:c.jsx(Mn,{asChild:!0,trapped:y.open,onMountAutoFocus:A=>{A.preventDefault()},onUnmountAutoFocus:q(o,A=>{var B;(B=y.trigger)==null||B.focus({preventScroll:!0}),A.preventDefault()}),children:c.jsx(qt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:A=>A.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:c.jsx(R,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:A=>A.preventDefault(),...x,...J,onPlaced:()=>U(!0),ref:C,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:q(x.onKeyDown,A=>{const B=A.ctrlKey||A.altKey||A.metaKey;if(A.key==="Tab"&&A.preventDefault(),!B&&A.key.length===1&&V(A.key),["ArrowUp","ArrowDown","Home","End"].includes(A.key)){let ne=K().filter(se=>!se.disabled).map(se=>se.ref.current);if(["ArrowUp","End"].includes(A.key)&&(ne=ne.slice().reverse()),["ArrowUp","ArrowDown"].includes(A.key)){const se=A.target,ie=ne.indexOf(se);ne=ne.slice(ie+1)}setTimeout(()=>L(ne)),A.preventDefault()}})})})})})})});Ui.displayName=yp;var kp="SelectItemAlignedPosition",qi=u.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=ot(pt,n),s=at(pt,n),[i,l]=u.useState(null),[d,f]=u.useState(null),m=le(t,C=>f(C)),p=Jn(n),g=u.useRef(!1),b=u.useRef(!0),{viewport:h,selectedItem:v,selectedItemText:x,focusSelectedItem:y}=s,w=u.useCallback(()=>{if(a.trigger&&a.valueNode&&i&&d&&h&&v&&x){const C=a.trigger.getBoundingClientRect(),E=d.getBoundingClientRect(),$=a.valueNode.getBoundingClientRect(),z=x.getBoundingClientRect();if(a.dir!=="rtl"){const se=z.left-E.left,ie=$.left-se,ke=C.left-ie,Oe=C.width+ke,xt=Math.max(Oe,E.width),yt=window.innerWidth-Re,wt=Wi(ie,[Re,Math.max(Re,yt-xt)]);i.style.minWidth=Oe+"px",i.style.left=wt+"px"}else{const se=E.right-z.right,ie=window.innerWidth-$.right-se,ke=window.innerWidth-C.right-ie,Oe=C.width+ke,xt=Math.max(Oe,E.width),yt=window.innerWidth-Re,wt=Wi(ie,[Re,Math.max(Re,yt-xt)]);i.style.minWidth=Oe+"px",i.style.right=wt+"px"}const G=p(),K=window.innerHeight-Re*2,te=h.scrollHeight,U=window.getComputedStyle(d),Q=parseInt(U.borderTopWidth,10),L=parseInt(U.paddingTop,10),X=parseInt(U.borderBottomWidth,10),P=parseInt(U.paddingBottom,10),ee=Q+L+te+P+X,T=Math.min(v.offsetHeight*5,ee),V=window.getComputedStyle(h),M=parseInt(V.paddingTop,10),j=parseInt(V.paddingBottom,10),I=C.top+C.height/2-Re,R=K-I,J=v.offsetHeight/2,A=v.offsetTop+J,B=Q+L+A,Z=ee-B;if(B<=I){const se=G.length>0&&v===G[G.length-1].ref.current;i.style.bottom="0px";const ie=d.clientHeight-h.offsetTop-h.offsetHeight,ke=Math.max(R,J+(se?j:0)+ie+X),Oe=B+ke;i.style.height=Oe+"px"}else{const se=G.length>0&&v===G[0].ref.current;i.style.top="0px";const ke=Math.max(I,Q+h.offsetTop+(se?M:0)+J)+Z;i.style.height=ke+"px",h.scrollTop=B-I+h.offsetTop}i.style.margin=`${Re}px 0`,i.style.minHeight=T+"px",i.style.maxHeight=K+"px",r==null||r(),requestAnimationFrame(()=>g.current=!0)}},[p,a.trigger,a.valueNode,i,d,h,v,x,a.dir,r]);be(()=>w(),[w]);const[S,k]=u.useState();be(()=>{d&&k(window.getComputedStyle(d).zIndex)},[d]);const _=u.useCallback(C=>{C&&b.current===!0&&(w(),y==null||y(),b.current=!1)},[w,y]);return c.jsx(Cp,{scope:n,contentWrapper:i,shouldExpandOnScrollRef:g,onScrollButtonChange:_,children:c.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:c.jsx(Y.div,{...o,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});qi.displayName=kp;var Sp="SelectPopperPosition",oo=u.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Re,...a}=e,s=er(n);return c.jsx(Kr,{...s,...a,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.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)"}})});oo.displayName=Sp;var[Cp,ao]=It(pt,{}),so="SelectViewport",Ki=u.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=at(so,n),s=ao(so,n),i=le(t,a.onViewportChange),l=u.useRef(0);return c.jsxs(c.Fragment,{children:[c.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}),c.jsx(Qn.Slot,{scope:n,children:c.jsx(Y.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:q(o.onScroll,d=>{const f=d.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:p}=s;if(p!=null&&p.current&&m){const g=Math.abs(l.current-f.scrollTop);if(g>0){const b=window.innerHeight-Re*2,h=parseFloat(m.style.minHeight),v=parseFloat(m.style.height),x=Math.max(h,v);if(x<b){const y=x+g,w=Math.min(b,y),S=y-w;m.style.height=w+"px",m.style.bottom==="0px"&&(f.scrollTop=S>0?S:0,m.style.justifyContent="flex-end")}}}l.current=f.scrollTop})})})]})});Ki.displayName=so;var Xi="SelectGroup",[Np,Ep]=It(Xi),Zi=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ye();return c.jsx(Np,{scope:n,id:o,children:c.jsx(Y.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Zi.displayName=Xi;var Qi="SelectLabel",Ji=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Ep(Qi,n);return c.jsx(Y.div,{id:o.id,...r,ref:t})});Ji.displayName=Qi;var tr="SelectItem",[_p,el]=It(tr),tl=u.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...s}=e,i=ot(tr,n),l=at(tr,n),d=i.value===r,[f,m]=u.useState(a??""),[p,g]=u.useState(!1),b=le(t,y=>{var w;return(w=l.itemRefCallback)==null?void 0:w.call(l,y,r,o)}),h=ye(),v=u.useRef("touch"),x=()=>{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 c.jsx(_p,{scope:n,value:r,disabled:o,textId:h,isSelected:d,onItemTextChange:u.useCallback(y=>{m(w=>w||((y==null?void 0:y.textContent)??"").trim())},[]),children:c.jsx(Qn.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:c.jsx(Y.div,{role:"option","aria-labelledby":h,"data-highlighted":p?"":void 0,"aria-selected":d&&p,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:b,onFocus:q(s.onFocus,()=>g(!0)),onBlur:q(s.onBlur,()=>g(!1)),onClick:q(s.onClick,()=>{v.current!=="mouse"&&x()}),onPointerUp:q(s.onPointerUp,()=>{v.current==="mouse"&&x()}),onPointerDown:q(s.onPointerDown,y=>{v.current=y.pointerType}),onPointerMove:q(s.onPointerMove,y=>{var w;v.current=y.pointerType,o?(w=l.onItemLeave)==null||w.call(l):v.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:q(s.onPointerLeave,y=>{var w;y.currentTarget===document.activeElement&&((w=l.onItemLeave)==null||w.call(l))}),onKeyDown:q(s.onKeyDown,y=>{var S;((S=l.searchRef)==null?void 0:S.current)!==""&&y.key===" "||(mp.includes(y.key)&&x(),y.key===" "&&y.preventDefault())})})})})});tl.displayName=tr;var tn="SelectItemText",nl=u.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,s=ot(tn,n),i=at(tn,n),l=el(tn,n),d=bp(tn,n),[f,m]=u.useState(null),p=le(t,x=>m(x),l.onItemTextChange,x=>{var y;return(y=i.itemTextRefCallback)==null?void 0:y.call(i,x,l.value,l.disabled)}),g=f==null?void 0:f.textContent,b=u.useMemo(()=>c.jsx("option",{value:l.value,disabled:l.disabled,children:g},l.value),[l.disabled,l.value,g]),{onNativeOptionAdd:h,onNativeOptionRemove:v}=d;return be(()=>(h(b),()=>v(b)),[h,v,b]),c.jsxs(c.Fragment,{children:[c.jsx(Y.span,{id:l.textId,...a,ref:p}),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren?gn.createPortal(a.children,s.valueNode):null]})});nl.displayName=tn;var rl="SelectItemIndicator",ol=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return el(rl,n).isSelected?c.jsx(Y.span,{"aria-hidden":!0,...r,ref:t}):null});ol.displayName=rl;var io="SelectScrollUpButton",al=u.forwardRef((e,t)=>{const n=at(io,e.__scopeSelect),r=ao(io,e.__scopeSelect),[o,a]=u.useState(!1),s=le(t,r.onScrollButtonChange);return be(()=>{if(n.viewport&&n.isPositioned){let i=function(){const d=l.scrollTop>0;a(d)};const l=n.viewport;return i(),l.addEventListener("scroll",i),()=>l.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?c.jsx(il,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:l}=n;i&&l&&(i.scrollTop=i.scrollTop-l.offsetHeight)}}):null});al.displayName=io;var lo="SelectScrollDownButton",sl=u.forwardRef((e,t)=>{const n=at(lo,e.__scopeSelect),r=ao(lo,e.__scopeSelect),[o,a]=u.useState(!1),s=le(t,r.onScrollButtonChange);return be(()=>{if(n.viewport&&n.isPositioned){let i=function(){const d=l.scrollHeight-l.clientHeight,f=Math.ceil(l.scrollTop)<d;a(f)};const l=n.viewport;return i(),l.addEventListener("scroll",i),()=>l.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?c.jsx(il,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:l}=n;i&&l&&(i.scrollTop=i.scrollTop+l.offsetHeight)}}):null});sl.displayName=lo;var il=u.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=at("SelectScrollButton",n),s=u.useRef(null),i=Jn(n),l=u.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return u.useEffect(()=>()=>l(),[l]),be(()=>{var f;const d=i().find(m=>m.ref.current===document.activeElement);(f=d==null?void 0:d.ref.current)==null||f.scrollIntoView({block:"nearest"})},[i]),c.jsx(Y.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:q(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:q(o.onPointerMove,()=>{var d;(d=a.onItemLeave)==null||d.call(a),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:q(o.onPointerLeave,()=>{l()})})}),Mp="SelectSeparator",Op=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return c.jsx(Y.div,{"aria-hidden":!0,...r,ref:t})});Op.displayName=Mp;var co="SelectArrow",Tp=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=er(n),a=ot(co,n),s=at(co,n);return a.open&&s.position==="popper"?c.jsx(Xr,{...o,...r,ref:t}):null});Tp.displayName=co;var Pp="SelectBubbleInput",ll=u.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=u.useRef(null),a=le(r,o),s=xn(t);return u.useEffect(()=>{const i=o.current;if(!i)return;const l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(s!==t&&f){const m=new Event("change",{bubbles:!0});f.call(i,t),i.dispatchEvent(m)}},[s,t]),c.jsx(Y.select,{...n,style:{...Ci,...n.style},ref:a,defaultValue:t})});ll.displayName=Pp;function cl(e){return e===""||e===void 0}function dl(e){const t=qe(e),n=u.useRef(""),r=u.useRef(0),o=u.useCallback(s=>{const i=n.current+s;t(i),function l(d){n.current=d,window.clearTimeout(r.current),d!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(i)},[t]),a=u.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return u.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function ul(e,t,n){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=Dp(e,Math.max(a,0));o.length===1&&(s=s.filter(d=>d!==n));const l=s.find(d=>d.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Dp(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Ap=Fi,jp=$i,Rp=zi,Ip=Vi,Wp=Yi,Fp=Hi,Lp=Ki,$p=Zi,Bp=Ji,zp=tl,Vp=nl,Yp=ol,Hp=al,Gp=sl;function Up({...e}){return c.jsx(Ap,{"data-slot":"select",...e})}function qp({...e}){return c.jsx($p,{"data-slot":"select-group",...e})}function Kp({...e}){return c.jsx(Rp,{"data-slot":"select-value",...e})}function Xp({className:e,size:t="default",children:n,...r}){return c.jsxs(jp,{"data-slot":"select-trigger","data-size":t,className:N("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,c.jsx(Ip,{asChild:!0,children:c.jsx(Nt,{className:"size-4 opacity-50"})})]})}function Zp({className:e,children:t,position:n="popper",...r}){return c.jsx(Wp,{children:c.jsxs(Fp,{"data-slot":"select-content",className:N("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:[c.jsx(Jp,{}),c.jsx(Lp,{className:N("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),c.jsx(eg,{})]})})}function Qp({className:e,...t}){return c.jsx(Bp,{"data-slot":"select-label",className:N("text-muted-foreground px-2 py-1.5 text-xs",e),...t})}function fl({className:e,children:t,...n}){return c.jsxs(zp,{"data-slot":"select-item",className:N("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:[c.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:c.jsx(Yp,{children:c.jsx(Ka,{className:"size-4"})})}),c.jsx(Vp,{children:t})]})}function Jp({className:e,...t}){return c.jsx(Hp,{"data-slot":"select-scroll-up-button",className:N("flex cursor-default items-center justify-center py-1",e),...t,children:c.jsx($u,{className:"size-4"})})}function eg({className:e,...t}){return c.jsx(Gp,{"data-slot":"select-scroll-down-button",className:N("flex cursor-default items-center justify-center py-1",e),...t,children:c.jsx(Nt,{className:"size-4"})})}var nr="Popover",[ml,C0]=Ce(nr,[jt]),nn=jt(),[tg,st]=ml(nr),hl=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,i=nn(t),l=u.useRef(null),[d,f]=u.useState(!1),[m,p]=We({prop:r,defaultProp:o??!1,onChange:a,caller:nr});return c.jsx(qr,{...i,children:c.jsx(tg,{scope:t,contentId:ye(),triggerRef:l,open:m,onOpenChange:p,onOpenToggle:u.useCallback(()=>p(g=>!g),[p]),hasCustomAnchor:d,onCustomAnchorAdd:u.useCallback(()=>f(!0),[]),onCustomAnchorRemove:u.useCallback(()=>f(!1),[]),modal:s,children:n})})};hl.displayName=nr;var pl="PopoverAnchor",ng=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=st(pl,n),a=nn(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:i}=o;return u.useEffect(()=>(s(),()=>i()),[s,i]),c.jsx(Kn,{...a,...r,ref:t})});ng.displayName=pl;var gl="PopoverTrigger",bl=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=st(gl,n),a=nn(n),s=le(t,o.triggerRef),i=c.jsx(Y.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":kl(o.open),...r,ref:s,onClick:q(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:c.jsx(Kn,{asChild:!0,...a,children:i})});bl.displayName=gl;var uo="PopoverPortal",[rg,og]=ml(uo,{forceMount:void 0}),vl=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=st(uo,t);return c.jsx(rg,{scope:t,forceMount:n,children:c.jsx(Pe,{present:n||a.open,children:c.jsx(Kt,{asChild:!0,container:o,children:r})})})};vl.displayName=uo;var Wt="PopoverContent",xl=u.forwardRef((e,t)=>{const n=og(Wt,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=st(Wt,e.__scopePopover);return c.jsx(Pe,{present:r||a.open,children:a.modal?c.jsx(sg,{...o,ref:t}):c.jsx(ig,{...o,ref:t})})});xl.displayName=Wt;var ag=dt("PopoverContent.RemoveScroll"),sg=u.forwardRef((e,t)=>{const n=st(Wt,e.__scopePopover),r=u.useRef(null),o=le(t,r),a=u.useRef(!1);return u.useEffect(()=>{const s=r.current;if(s)return Tr(s)},[]),c.jsx(jn,{as:ag,allowPinchZoom:!0,children:c.jsx(yl,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:q(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),a.current||(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:q(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0,d=i.button===2||l;a.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:q(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),ig=u.forwardRef((e,t)=>{const n=st(Wt,e.__scopePopover),r=u.useRef(!1),o=u.useRef(!1);return c.jsx(yl,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(r.current||(i=n.triggerRef.current)==null||i.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var l,d;(l=e.onInteractOutside)==null||l.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((d=n.triggerRef.current)==null?void 0:d.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),yl=u.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:d,onInteractOutside:f,...m}=e,p=st(Wt,n),g=nn(n);return Cr(),c.jsx(Mn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:c.jsx(qt,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:f,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:d,onDismiss:()=>p.onOpenChange(!1),children:c.jsx(Kr,{"data-state":kl(p.open),role:"dialog",id:p.contentId,...g,...m,ref:t,style:{...m.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)"}})})})}),wl="PopoverClose",lg=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=st(wl,n);return c.jsx(Y.button,{type:"button",...r,ref:t,onClick:q(e.onClick,()=>o.onOpenChange(!1))})});lg.displayName=wl;var cg="PopoverArrow",dg=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=nn(n);return c.jsx(Xr,{...o,...r,ref:t})});dg.displayName=cg;function kl(e){return e?"open":"closed"}var ug=hl,fg=bl,mg=vl,hg=xl;function Sl({...e}){return c.jsx(ug,{"data-slot":"popover",...e})}function Cl({...e}){return c.jsx(fg,{"data-slot":"popover-trigger",...e})}function fo({className:e,align:t="center",sideOffset:n=4,...r}){return c.jsx(mg,{children:c.jsx(hg,{"data-slot":"popover-content",align:t,sideOffset:n,className:N("bg-white text-black 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 Nl=1,pg=.9,gg=.8,bg=.17,mo=.1,ho=.999,vg=.9999,xg=.99,yg=/[\\\/_+.#"@\[\(\{&]/,wg=/[\\\/_+.#"@\[\(\{&]/g,kg=/[\s-]/,El=/[\s-]/g;function po(e,t,n,r,o,a,s){if(a===t.length)return o===e.length?Nl:xg;var i=`${o},${a}`;if(s[i]!==void 0)return s[i];for(var l=r.charAt(a),d=n.indexOf(l,o),f=0,m,p,g,b;d>=0;)m=po(e,t,n,r,d+1,a+1,s),m>f&&(d===o?m*=Nl:yg.test(e.charAt(d-1))?(m*=gg,g=e.slice(o,d-1).match(wg),g&&o>0&&(m*=Math.pow(ho,g.length))):kg.test(e.charAt(d-1))?(m*=pg,b=e.slice(o,d-1).match(El),b&&o>0&&(m*=Math.pow(ho,b.length))):(m*=bg,o>0&&(m*=Math.pow(ho,d-o))),e.charAt(d)!==t.charAt(a)&&(m*=vg)),(m<mo&&n.charAt(d-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(d-1)!==r.charAt(a))&&(p=po(e,t,n,r,d+1,a+2,s),p*mo>m&&(m=p*mo)),m>f&&(f=m),d=n.indexOf(l,d+1);return s[i]=f,f}function _l(e){return e.toLowerCase().replace(El," ")}function Sg(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,po(e,t,_l(e),_l(t),0,0,{})}var rn='[cmdk-group=""]',go='[cmdk-group-items=""]',Cg='[cmdk-group-heading=""]',Ml='[cmdk-item=""]',Ol=`${Ml}:not([aria-disabled="true"])`,bo="cmdk-item-select",Ft="data-value",Ng=(e,t,n)=>Sg(e,t,n),Tl=u.createContext(void 0),on=()=>u.useContext(Tl),Pl=u.createContext(void 0),vo=()=>u.useContext(Pl),Dl=u.createContext(void 0),Al=u.forwardRef((e,t)=>{let n=Lt(()=>{var M,j;return{search:"",value:(j=(M=e.value)!=null?M:e.defaultValue)!=null?j:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=Lt(()=>new Set),o=Lt(()=>new Map),a=Lt(()=>new Map),s=Lt(()=>new Set),i=jl(e),{label:l,children:d,value:f,onValueChange:m,filter:p,shouldFilter:g,loop:b,disablePointerSelection:h=!1,vimBindings:v=!0,...x}=e,y=ye(),w=ye(),S=ye(),k=u.useRef(null),_=Ig();gt(()=>{if(f!==void 0){let M=f.trim();n.current.value=M,C.emit()}},[f]),gt(()=>{_(6,te)},[]);let C=u.useMemo(()=>({subscribe:M=>(s.current.add(M),()=>s.current.delete(M)),snapshot:()=>n.current,setState:(M,j,I)=>{var R,J,A,B;if(!Object.is(n.current[M],j)){if(n.current[M]=j,M==="search")K(),z(),_(1,G);else if(M==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let Z=document.getElementById(S);Z?Z.focus():(R=document.getElementById(y))==null||R.focus()}if(_(7,()=>{var Z;n.current.selectedItemId=(Z=U())==null?void 0:Z.id,C.emit()}),I||_(5,te),((J=i.current)==null?void 0:J.value)!==void 0){let Z=j??"";(B=(A=i.current).onValueChange)==null||B.call(A,Z);return}}C.emit()}},emit:()=>{s.current.forEach(M=>M())}}),[]),E=u.useMemo(()=>({value:(M,j,I)=>{var R;j!==((R=a.current.get(M))==null?void 0:R.value)&&(a.current.set(M,{value:j,keywords:I}),n.current.filtered.items.set(M,$(j,I)),_(2,()=>{z(),C.emit()}))},item:(M,j)=>(r.current.add(M),j&&(o.current.has(j)?o.current.get(j).add(M):o.current.set(j,new Set([M]))),_(3,()=>{K(),z(),n.current.value||G(),C.emit()}),()=>{a.current.delete(M),r.current.delete(M),n.current.filtered.items.delete(M);let I=U();_(4,()=>{K(),(I==null?void 0:I.getAttribute("id"))===M&&G(),C.emit()})}),group:M=>(o.current.has(M)||o.current.set(M,new Set),()=>{a.current.delete(M),o.current.delete(M)}),filter:()=>i.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>i.current.disablePointerSelection,listId:y,inputId:S,labelId:w,listInnerRef:k}),[]);function $(M,j){var I,R;let J=(R=(I=i.current)==null?void 0:I.filter)!=null?R:Ng;return M?J(M,n.current.search,j):0}function z(){if(!n.current.search||i.current.shouldFilter===!1)return;let M=n.current.filtered.items,j=[];n.current.filtered.groups.forEach(R=>{let J=o.current.get(R),A=0;J.forEach(B=>{let Z=M.get(B);A=Math.max(Z,A)}),j.push([R,A])});let I=k.current;Q().sort((R,J)=>{var A,B;let Z=R.getAttribute("id"),ne=J.getAttribute("id");return((A=M.get(ne))!=null?A:0)-((B=M.get(Z))!=null?B:0)}).forEach(R=>{let J=R.closest(go);J?J.appendChild(R.parentElement===J?R:R.closest(`${go} > *`)):I.appendChild(R.parentElement===I?R:R.closest(`${go} > *`))}),j.sort((R,J)=>J[1]-R[1]).forEach(R=>{var J;let A=(J=k.current)==null?void 0:J.querySelector(`${rn}[${Ft}="${encodeURIComponent(R[0])}"]`);A==null||A.parentElement.appendChild(A)})}function G(){let M=Q().find(I=>I.getAttribute("aria-disabled")!=="true"),j=M==null?void 0:M.getAttribute(Ft);C.setState("value",j||void 0)}function K(){var M,j,I,R;if(!n.current.search||i.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let J=0;for(let A of r.current){let B=(j=(M=a.current.get(A))==null?void 0:M.value)!=null?j:"",Z=(R=(I=a.current.get(A))==null?void 0:I.keywords)!=null?R:[],ne=$(B,Z);n.current.filtered.items.set(A,ne),ne>0&&J++}for(let[A,B]of o.current)for(let Z of B)if(n.current.filtered.items.get(Z)>0){n.current.filtered.groups.add(A);break}n.current.filtered.count=J}function te(){var M,j,I;let R=U();R&&(((M=R.parentElement)==null?void 0:M.firstChild)===R&&((I=(j=R.closest(rn))==null?void 0:j.querySelector(Cg))==null||I.scrollIntoView({block:"nearest"})),R.scrollIntoView({block:"nearest"}))}function U(){var M;return(M=k.current)==null?void 0:M.querySelector(`${Ml}[aria-selected="true"]`)}function Q(){var M;return Array.from(((M=k.current)==null?void 0:M.querySelectorAll(Ol))||[])}function L(M){let j=Q()[M];j&&C.setState("value",j.getAttribute(Ft))}function X(M){var j;let I=U(),R=Q(),J=R.findIndex(B=>B===I),A=R[J+M];(j=i.current)!=null&&j.loop&&(A=J+M<0?R[R.length-1]:J+M===R.length?R[0]:R[J+M]),A&&C.setState("value",A.getAttribute(Ft))}function P(M){let j=U(),I=j==null?void 0:j.closest(rn),R;for(;I&&!R;)I=M>0?jg(I,rn):Rg(I,rn),R=I==null?void 0:I.querySelector(Ol);R?C.setState("value",R.getAttribute(Ft)):X(M)}let ee=()=>L(Q().length-1),T=M=>{M.preventDefault(),M.metaKey?ee():M.altKey?P(1):X(1)},V=M=>{M.preventDefault(),M.metaKey?L(0):M.altKey?P(-1):X(-1)};return u.createElement(Y.div,{ref:t,tabIndex:-1,...x,"cmdk-root":"",onKeyDown:M=>{var j;(j=x.onKeyDown)==null||j.call(x,M);let I=M.nativeEvent.isComposing||M.keyCode===229;if(!(M.defaultPrevented||I))switch(M.key){case"n":case"j":{v&&M.ctrlKey&&T(M);break}case"ArrowDown":{T(M);break}case"p":case"k":{v&&M.ctrlKey&&V(M);break}case"ArrowUp":{V(M);break}case"Home":{M.preventDefault(),L(0);break}case"End":{M.preventDefault(),ee();break}case"Enter":{M.preventDefault();let R=U();if(R){let J=new Event(bo);R.dispatchEvent(J)}}}}},u.createElement("label",{"cmdk-label":"",htmlFor:E.inputId,id:E.labelId,style:Fg},l),rr(e,M=>u.createElement(Pl.Provider,{value:C},u.createElement(Tl.Provider,{value:E},M))))}),Eg=u.forwardRef((e,t)=>{var n,r;let o=ye(),a=u.useRef(null),s=u.useContext(Dl),i=on(),l=jl(e),d=(r=(n=l.current)==null?void 0:n.forceMount)!=null?r:s==null?void 0:s.forceMount;gt(()=>{if(!d)return i.item(o,s==null?void 0:s.id)},[d]);let f=Rl(o,a,[e.value,e.children,a],e.keywords),m=vo(),p=it(_=>_.value&&_.value===f.current),g=it(_=>d||i.filter()===!1?!0:_.search?_.filtered.items.get(o)>0:!0);u.useEffect(()=>{let _=a.current;if(!(!_||e.disabled))return _.addEventListener(bo,b),()=>_.removeEventListener(bo,b)},[g,e.onSelect,e.disabled]);function b(){var _,C;h(),(C=(_=l.current).onSelect)==null||C.call(_,f.current)}function h(){m.setState("value",f.current,!0)}if(!g)return null;let{disabled:v,value:x,onSelect:y,forceMount:w,keywords:S,...k}=e;return u.createElement(Y.div,{ref:ct(a,t),...k,id:o,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!p,"data-disabled":!!v,"data-selected":!!p,onPointerMove:v||i.getDisablePointerSelection()?void 0:h,onClick:v?void 0:b},e.children)}),_g=u.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...a}=e,s=ye(),i=u.useRef(null),l=u.useRef(null),d=ye(),f=on(),m=it(g=>o||f.filter()===!1?!0:g.search?g.filtered.groups.has(s):!0);gt(()=>f.group(s),[]),Rl(s,i,[e.value,e.heading,l]);let p=u.useMemo(()=>({id:s,forceMount:o}),[o]);return u.createElement(Y.div,{ref:ct(i,t),...a,"cmdk-group":"",role:"presentation",hidden:m?void 0:!0},n&&u.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:d},n),rr(e,g=>u.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?d:void 0},u.createElement(Dl.Provider,{value:p},g))))}),Mg=u.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=u.useRef(null),a=it(s=>!s.search);return!n&&!a?null:u.createElement(Y.div,{ref:ct(o,t),...r,"cmdk-separator":"",role:"separator"})}),Og=u.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,a=vo(),s=it(d=>d.search),i=it(d=>d.selectedItemId),l=on();return u.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),u.createElement(Y.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":i,id:l.inputId,type:"text",value:o?e.value:s,onChange:d=>{o||a.setState("search",d.target.value),n==null||n(d.target.value)}})}),Tg=u.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,a=u.useRef(null),s=u.useRef(null),i=it(d=>d.selectedItemId),l=on();return u.useEffect(()=>{if(s.current&&a.current){let d=s.current,f=a.current,m,p=new ResizeObserver(()=>{m=requestAnimationFrame(()=>{let g=d.offsetHeight;f.style.setProperty("--cmdk-list-height",g.toFixed(1)+"px")})});return p.observe(d),()=>{cancelAnimationFrame(m),p.unobserve(d)}}},[]),u.createElement(Y.div,{ref:ct(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":r,id:l.listId},rr(e,d=>u.createElement("div",{ref:ct(s,l.listInnerRef),"cmdk-list-sizer":""},d)))}),Pg=u.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:a,container:s,...i}=e;return u.createElement(Ls,{open:n,onOpenChange:r},u.createElement($s,{container:s},u.createElement(Bs,{"cmdk-overlay":"",className:o}),u.createElement(zs,{"aria-label":e.label,"cmdk-dialog":"",className:a},u.createElement(Al,{ref:t,...i}))))}),Dg=u.forwardRef((e,t)=>it(n=>n.filtered.count===0)?u.createElement(Y.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Ag=u.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...a}=e;return u.createElement(Y.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},rr(e,s=>u.createElement("div",{"aria-hidden":!0},s)))}),an=Object.assign(Al,{List:Tg,Item:Eg,Input:Og,Group:_g,Separator:Mg,Dialog:Pg,Empty:Dg,Loading:Ag});function jg(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function Rg(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function jl(e){let t=u.useRef(e);return gt(()=>{t.current=e}),t}var gt=typeof window>"u"?u.useEffect:u.useLayoutEffect;function Lt(e){let t=u.useRef();return t.current===void 0&&(t.current=e()),t}function it(e){let t=vo(),n=()=>e(t.snapshot());return u.useSyncExternalStore(t.subscribe,n,n)}function Rl(e,t,n,r=[]){let o=u.useRef(),a=on();return gt(()=>{var s;let i=(()=>{var d;for(let f of n){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(d=f.current.textContent)==null?void 0:d.trim():o.current}})(),l=r.map(d=>d.trim());a.value(e,i,l),(s=t.current)==null||s.setAttribute(Ft,i),o.current=i}),o}var Ig=()=>{let[e,t]=u.useState(),n=Lt(()=>new Map);return gt(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function Wg(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function rr({asChild:e,children:t},n){return e&&u.isValidElement(t)?u.cloneElement(Wg(t),{ref:t.ref},n(t.props.children)):n(t)}var Fg={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function Lg({className:e,...t}){return c.jsx(an,{"data-slot":"command",className:N("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function $g({className:e,...t}){return c.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[c.jsx(Xa,{className:"size-4 shrink-0 opacity-50"}),c.jsx(an.Input,{"data-slot":"command-input",className:N("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 Bg({...e}){return c.jsx(an.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function Il({className:e,...t}){return c.jsx(an.Group,{"data-slot":"command-group",className:N("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 Wl({className:e,...t}){return c.jsx(an.Item,{"data-slot":"command-item",className:N("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 xo(e){return e.length>0&&e[0].kind==="group"}function zg(e){return e.multiple?c.jsx(Ll,{...e}):c.jsx(Fl,{...e})}const Fl=({options:e,placeholder:t="Select...",disabled:n,error:r,helperText:o,value:a,onChange:s})=>{const[i,l]=O.useState(""),d=a??i,f=m=>{l(m),s==null||s(m)};return c.jsxs("div",{className:"w-94",children:[c.jsxs(Up,{value:d,onValueChange:f,disabled:n,children:[c.jsx(Xp,{"aria-invalid":!!r,className:N("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:c.jsx(Kp,{placeholder:t})}),c.jsx(Zp,{className:"w-full bg-white border border-neutral-black-4",children:xo(e)?e.map(m=>c.jsxs(qp,{className:"p-2",children:[c.jsx(Qp,{children:m.label}),m.options.map(p=>c.jsx(fl,{value:p.value,disabled:p.disabled,children:p.label},p.value))]},m.label)):e.map(m=>c.jsx(fl,{value:m.value,disabled:m.disabled,className:"hover:cursor-pointer hover:bg-neutral-black-5",children:m.label},m.value))})]}),r&&c.jsx("p",{className:"mt-1 text-xs text-primary-1",children:r}),o&&c.jsx("p",{className:"mt-1 text-xs text-neutral-black-3",children:o})]})},Ll=({options:e,placeholder:t="Select...",disabled:n,error:r,helperText:o,value:a,onChange:s})=>{const[i,l]=O.useState(!1),[d,f]=O.useState([]),m=a??d,p=O.useMemo(()=>xo(e)?e.flatMap(b=>b.options):e,[e]),g=b=>{const h=m.includes(b)?m.filter(v=>v!==b):[...m,b];f(h),s==null||s(h)};return c.jsxs("div",{className:"w-94",children:[c.jsxs(Sl,{open:i,onOpenChange:l,children:[c.jsx(Cl,{asChild:!0,children:c.jsxs("button",{type:"button",disabled:n,"aria-haspopup":"listbox","aria-expanded":i,className:N("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:[c.jsx("div",{className:"flex flex-wrap gap-1",children:m.length>0?m.map(b=>c.jsxs(jr,{type:"outline",onClick:h=>{h.stopPropagation(),g(b)},className:"cursor-pointer border-neutral-black-4 bg-transparent hover:bg-neutral-black-4",children:[c.jsx("span",{className:"text-neutral-black-1",children:b}),c.jsx("div",{className:"flex items-center justify-center rounded-full border border-neutral-black-2 h-5 w-5 ml-1",children:c.jsx(Qa,{className:"h-3 w-3 text-neutral-black-1",strokeWidth:2})})]},b)):c.jsx("span",{className:"truncate text-xs text-neutral-black-1",children:t})}),c.jsx(Nt,{className:"h-4 w-4 text-neutral-black-1"})]})}),c.jsx(fo,{className:"p-0 w-full bg-white border border-neutral-black-4",children:c.jsxs(Lg,{className:"w-full",children:[c.jsx($g,{placeholder:"Search..."}),c.jsx(Bg,{children:"No results found."}),xo(e)?e.map(b=>c.jsx(Il,{heading:b.label,children:b.options.map(h=>c.jsxs(Wl,{value:h.label,onSelect:()=>!h.disabled&&g(h.value),disabled:h.disabled,children:[c.jsx("input",{type:"checkbox",readOnly:!0,checked:m.includes(h.value),className:"mr-2"}),h.label]},h.value))},b.label)):c.jsx(Il,{children:p.map(b=>c.jsxs(Wl,{value:b.label,onSelect:()=>!b.disabled&&g(b.value),disabled:b.disabled,children:[c.jsx("input",{type:"checkbox",readOnly:!0,checked:m.includes(b.value),className:"mr-2"}),b.label]},b.value))})]})})]}),r&&c.jsx("p",{className:"mt-1 text-xs text-primary-1",children:r}),o&&c.jsx("p",{className:"mt-1 text-xs text-neutral-black-3",children:o})]})},Vg=ge("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 Yg({className:e,variant:t,asChild:n=!1,children:r,...o}){const a=n?Ge:"div";return c.jsx(a,{"data-slot":"card",className:N(Vg({variant:t}),e),...o,children:r})}var yo={exports:{}},wo={};/**
167
182
  * @license React
168
183
  * use-sync-external-store-shim.production.js
169
184
  *
@@ -171,7 +186,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
171
186
  *
172
187
  * This source code is licensed under the MIT license found in the
173
188
  * LICENSE file in the root directory of this source tree.
174
- */var Li;function th(){if(Li)return An;Li=1;var e=ae;function t(p,g){return p===g&&(p!==0||1/p===1/g)||p!==p&&g!==g}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,a=e.useLayoutEffect,s=e.useDebugValue;function i(p,g){var h=g(),v=n({inst:{value:h,getSnapshot:g}}),m=v[0].inst,b=v[1];return a(function(){m.value=h,m.getSnapshot=g,c(m)&&b({inst:m})},[p,h,g]),o(function(){return c(m)&&b({inst:m}),p(function(){c(m)&&b({inst:m})})},[p]),s(h),h}function c(p){var g=p.getSnapshot;p=p.value;try{var h=g();return!r(p,h)}catch{return!0}}function d(p,g){return g()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:i;return An.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,An}var In={};/**
189
+ */var $l;function Hg(){if($l)return wo;$l=1;var e=O;function t(m,p){return m===p&&(m!==0||1/m===1/p)||m!==m&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,a=e.useLayoutEffect,s=e.useDebugValue;function i(m,p){var g=p(),b=r({inst:{value:g,getSnapshot:p}}),h=b[0].inst,v=b[1];return a(function(){h.value=g,h.getSnapshot=p,l(h)&&v({inst:h})},[m,g,p]),o(function(){return l(h)&&v({inst:h}),m(function(){l(h)&&v({inst:h})})},[m]),s(g),g}function l(m){var p=m.getSnapshot;m=m.value;try{var g=p();return!n(m,g)}catch{return!0}}function d(m,p){return p()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:i;return wo.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,wo}var ko={};/**
175
190
  * @license React
176
191
  * use-sync-external-store-shim.development.js
177
192
  *
@@ -179,4 +194,4 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
179
194
  *
180
195
  * This source code is licensed under the MIT license found in the
181
196
  * LICENSE file in the root directory of this source tree.
182
- */var $i;function rh(){return $i||($i=1,process.env.NODE_ENV!=="production"&&function(){function e(h,v){return h===v&&(h!==0||1/h===1/v)||h!==h&&v!==v}function t(h,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(!p){var b=v();a(m,b)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}b=s({inst:{value:m,getSnapshot:v}});var x=b[0].inst,w=b[1];return c(function(){x.value=m,x.getSnapshot=v,r(x)&&w({inst:x})},[h,m,v]),i(function(){return r(x)&&w({inst:x}),h(function(){r(x)&&w({inst:x})})},[h]),d(m),m}function r(h){var v=h.getSnapshot;h=h.value;try{var m=v();return!a(h,m)}catch{return!0}}function n(h,v){return v()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=ae,a=typeof Object.is=="function"?Object.is:e,s=o.useState,i=o.useEffect,c=o.useLayoutEffect,d=o.useDebugValue,f=!1,p=!1,g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;In.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:g,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),In}process.env.NODE_ENV==="production"?Tn.exports=th():Tn.exports=rh();var nh=Tn.exports;function oh(){return nh.useSyncExternalStore(ah,()=>!0,()=>!1)}function ah(){return()=>{}}var jn="Avatar",[sh,Tg]=de(jn),[ih,Fi]=sh(jn),Vi=l.forwardRef((e,t)=>{const{__scopeAvatar:r,...n}=e,[o,a]=l.useState("idle");return u.jsx(ih,{scope:r,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:u.jsx(V.span,{...n,ref:t})})});Vi.displayName=jn;var Bi="AvatarImage",zi=l.forwardRef((e,t)=>{const{__scopeAvatar:r,src:n,onLoadingStatusChange:o=()=>{},...a}=e,s=Fi(Bi,r),i=lh(n,a),c=Ne(d=>{o(d),s.onImageLoadingStatusChange(d)});return ie(()=>{i!=="idle"&&c(i)},[i,c]),i==="loaded"?u.jsx(V.img,{...a,ref:t,src:n}):null});zi.displayName=Bi;var Wi="AvatarFallback",Gi=l.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:n,...o}=e,a=Fi(Wi,r),[s,i]=l.useState(n===void 0);return l.useEffect(()=>{if(n!==void 0){const c=window.setTimeout(()=>i(!0),n);return()=>window.clearTimeout(c)}},[n]),s&&a.imageLoadingStatus!=="loaded"?u.jsx(V.span,{...o,ref:t}):null});Gi.displayName=Wi;function Hi(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function lh(e,{referrerPolicy:t,crossOrigin:r}){const n=oh(),o=l.useRef(null),a=n?(o.current||(o.current=new window.Image),o.current):null,[s,i]=l.useState(()=>Hi(a,e));return ie(()=>{i(Hi(a,e))},[a,e]),ie(()=>{const c=p=>()=>{i(p)};if(!a)return;const d=c("loaded"),f=c("error");return a.addEventListener("load",d),a.addEventListener("error",f),t&&(a.referrerPolicy=t),typeof r=="string"&&(a.crossOrigin=r),()=>{a.removeEventListener("load",d),a.removeEventListener("error",f)}},[a,r,t]),s}var ch=Vi,Ui=zi,xr=Gi;const uh=le("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}}),dh=le("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"}}),fh=le("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"}}),ph=le("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 mh(e){const{type:t,size:r="md",status:n="Neutral",notification:o,CTAIndicator:a=!1,progress:s=!1,className:i,...c}=e;return u.jsxs(ch,{className:j(uh({size:r,progress:s}),i),...c,children:[t==="picture"&&u.jsxs(u.Fragment,{children:[u.jsx(Ui,{src:e.src,alt:"avatar",className:"w-full h-full object-cover rounded-full"}),u.jsx(xr,{children:u.jsx(Ko,{className:"text-black",size:r==="sm"?16:r==="md"?20:r==="lg"?24:r==="xl"?28:32})})]}),t==="initials"&&u.jsx(xr,{className:"uppercase",children:e.initials}),t==="placeholder"&&u.jsx(xr,{children:u.jsx(Ko,{"data-testid":"avatar-placeholder",className:"text-black",size:r==="sm"?16:r==="md"?20:r==="lg"?24:r==="xl"?28:32})}),n!=="Neutral"&&u.jsx("span",{"data-testid":"avatar-status",className:dh({status:n,size:r})}),o&&u.jsx("span",{"data-testid":"avatar-notification",className:fh({size:r,priority:o.priority}),children:o.value}),a&&u.jsx("span",{"data-testid":"avatar-camera-icon",className:ph({size:r}),children:u.jsx(Hc,{"data-testid":"avatar-camera",className:"text-[var(--color-neutral-black-1)]",size:12})})]})}function hh({className:e,...t}){return u.jsx(Ui,{className:j("aspect-square h-full w-full",e),...t})}function gh({className:e,...t}){return u.jsx(xr,{className:j("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t})}var vh="Separator",Ki="horizontal",bh=["horizontal","vertical"],Yi=l.forwardRef((e,t)=>{const{decorative:r,orientation:n=Ki,...o}=e,a=xh(n)?n:Ki,i=r?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return u.jsx(V.div,{"data-orientation":a,...i,...o,ref:t})});Yi.displayName=vh;function xh(e){return bh.includes(e)}var wh=Yi;function yh({className:e,orientation:t="horizontal",decorative:r=!0,size:n=1,...o}){const a=t==="horizontal"?{1:"h-px",2:"h-0.5",3:"h-[3px]",4:"h-1"}[n]:{1:"w-px",2:"w-0.5",3:"w-[3px]",4:"w-1"}[n];return u.jsx(wh,{"data-slot":"separator",role:"separator",decorative:r,orientation:t,className:j("bg-neutral-black-4 shrink-0",t==="horizontal"?"w-full":"h-full",a,e),...o})}const Sh=le("flex flex-col gap-12"),Ch=le("",{variants:{variant:{filled:"h-3 w-3 rounded-full bg-neutral-black-2",outlined:"h-3 w-3 rounded-full bg-transparent border-2 border-neutral-black-2",icon:"h-12 w-12 rounded-full flex items-center justify-center text-display-xs"},visited:{true:"",false:""}},compoundVariants:[{variant:"icon",visited:!0,class:"bg-primary-1 text-white"},{variant:"icon",visited:!1,class:"bg-neutral-black-5 text-neutral-black-2"}],defaultVariants:{variant:"filled",visited:!0}}),kh=le("flex relative after:border-l-2 after:absolute after:h-full after:-translate-x-1/2",{variants:{hideConnector:{true:"after:hidden",false:"min-h-9"},variant:{filled:"pl-7 after:left-[6px] after:border-l-neutral-black-2",outlined:"pl-7 after:left-[6px] after:border-l-neutral-black-2",icon:"pl-10 after:left-[24px]"},visited:{true:"",false:""}},compoundVariants:[{variant:"icon",visited:!0,class:"after:border-l-primary-1"},{variant:"icon",visited:!1,class:"after:border-l-neutral-black-5"}],defaultVariants:{hideConnector:!1,variant:"filled",visited:!0}}),Eh=(e,t)=>e&&!t;function Rh({items:e,variant:t="filled",className:r}){const n=e.findIndex(a=>a.notVisited===!0),o=e.map((a,s)=>n!==-1&&s>=n?{...a,notVisited:!0}:a);return u.jsx("div",{className:j(Sh(),r),"data-testid":"timeline",children:u.jsx("div",{className:"flex flex-col",children:o.map((a,s)=>{const i=s===o.length-1,c=!!(a.description||a.content),d=Eh(i,c),f=a.notVisited||!1,p=o[s+1],g=(p==null?void 0:p.notVisited)||!1,h=t==="icon"&&g;return u.jsxs("div",{className:"flex flex-col","data-testid":"timeline-item",children:[u.jsxs("div",{className:"flex items-center gap-4 min-h-[35px]",children:[u.jsx("div",{"data-testid":"timeline-dot",className:j(Ch({variant:t,visited:!f})),children:t==="icon"&&a.icon&&u.jsx("div",{className:"flex items-center justify-center w-full h-full",children:a.icon})}),u.jsx("p",{className:j("text-neutral-black-1",f&&"text-neutral-black-4"),children:a.title})]}),u.jsx("div",{"data-testid":"timeline-connector",className:j(kh({hideConnector:d,variant:t,visited:!h})),children:(a.description||a.content)&&u.jsxs("div",{className:"flex flex-col gap-2 py-2",children:[a.description&&u.jsx("p",{className:j("text-neutral-black-1 text-sm",f&&"text-neutral-black-4"),children:a.description}),a.content&&u.jsx("div",{className:"min-h-[35px]",children:a.content})]})})]},a.id)})})})}const _h=({variant:e="icon",width:t,height:r,iconSize:n=40,className:o,...a})=>{const s=()=>{switch(e){case"image":return u.jsx(Jc,{size:n,"data-testid":"placeholder-image"});case"video":return u.jsx(tu,{size:n,"data-testid":"placeholder-video"});case"pieChart":return u.jsx(Uc,{size:n,"data-testid":"placeholder-pieChart"});case"icon":default:return u.jsx(eu,{size:n,"data-testid":"placeholder-smile"})}};return u.jsx("div",{"data-testid":"placeholder-wrapper",className:j("flex flex-col items-center justify-center text-neutral-black-2 gap-2 select-none bg-neutral-black-5 rounded-2xl",o),style:{width:t,height:r},...a,children:s()})},Nh=e=>e===void 0||isNaN(e)?0:Math.min(100,Math.max(0,e)),qi=l.forwardRef(({variant:e="linear",value:t=0,color:r="var(--color-primary-1)",className:n,...o},a)=>{const s=Nh(t);if(e==="circular"){const{size:i=80,thickness:c=8}=o,d=(i-c)/2,f=2*Math.PI*d,p=f-s/100*f;return u.jsx("div",{ref:a,role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":100,className:j("flex flex-col items-center justify-center",n),...o,children:u.jsxs("svg",{width:i,height:i,className:"rotate-[-90deg]",children:[u.jsx("circle",{cx:i/2,cy:i/2,r:d,stroke:"var(--color-neutral-black-5)",strokeWidth:c,fill:"transparent"}),u.jsx("circle",{cx:i/2,cy:i/2,r:d,stroke:r,strokeWidth:c,fill:"transparent",strokeDasharray:f,strokeDashoffset:p,className:"transition-all duration-700"})]})})}return u.jsx("div",{ref:a,role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":100,className:j("w-full h-2 bg-[var(--color-neutral-black-5)] overflow-hidden",n),...o,children:u.jsx("div",{className:"h-full transition-all duration-300",style:{width:`${s}%`,backgroundColor:r}})})});qi.displayName="ProgressIndicator";function Ph({className:e,...t}){return u.jsx("div",{"data-slot":"skeleton",className:j("bg-neutral-black-5 animate-pulse rounded-sm",e),...t})}function Th({className:e,title:t="Oops! It looks like you're lost.",description:r="The page you're looking for isn't available. Try to search again or use the go to.",backButtonText:n="Back to home",href:o="/"}){return u.jsx("main",{className:j("flex flex-1 w-full py-16 px-6 md:py-24 md:px-8",e),children:u.jsxs("div",{className:"flex flex-col lg:flex-row gap-16 lg:gap-20 flex-1 max-w-7xl mx-auto",children:[u.jsx("div",{className:"flex-shrink-0 w-full max-w-[484px] h-64 lg:h-96 max-h-[370px] rounded-lg flex items-center justify-center",children:u.jsx("img",{src:"https://iili.io/KTthUtR.png",alt:"Page not found illustration"})}),u.jsxs("div",{className:"flex flex-col flex-1 gap-6 items-start",children:[u.jsxs("h1",{className:"font-bold text-neutral-black-1 text-6xl md:text-8xl lg:text-[129px]/[176px]",children:["40",u.jsx("span",{className:"text-primary-1",children:"4"})]}),u.jsxs("div",{className:"flex flex-col gap-3 max-w-lg",children:[u.jsx("h2",{className:"font-bold text-2xl md:text-3xl text-neutral-black-1",children:t}),u.jsx("p",{className:"text-base md:text-lg text-neutral-black-1 leading-relaxed",children:r})]}),u.jsx("a",{href:o,children:u.jsx(Ot,{variant:"default",size:"sm",className:"cursor-pointer",children:n})})]})]})})}function Ah({...e}){return u.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function Ih({className:e,...t}){return u.jsx("ol",{"data-slot":"breadcrumb-list",className:j("text-muted-foreground flex flex-wrap items-center gap-2 text-sm break-words",e),...t})}function jh({className:e,...t}){return u.jsx("li",{"data-slot":"breadcrumb-item",className:j("inline-flex items-center gap-1.5",e),...t})}function Oh({asChild:e,className:t,...r}){const n=e?At:"a";return u.jsx(n,{"data-slot":"breadcrumb-link",className:j("text-neutral-black-1 hover:text-primary-1 hover:no-underline",t),...r})}function Mh({className:e,...t}){return u.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:j("text-neutral-black-2 cursor-default",e),...t})}function Dh({children:e,className:t,...r}){return u.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:j("[&>svg]:size-3.5 text-neutral-black-3 text-[20px]",t),...r,children:e??u.jsx(Kc,{})})}function Lh({className:e,...t}){return u.jsxs("span",{"data-slot":"breadcrumb-ellipsis",role:"presentation","aria-hidden":"true",className:j("flex size-9 items-center justify-center",e),...t,children:[u.jsx(qc,{className:"size-4"}),u.jsx("span",{className:"sr-only",children:"More"})]})}const $h=le("flex items-center justify-between w-full bg-neutral-black-5 px-4 py-3"),Fh=le("flex items-center gap-3");function Vh({className:e,children:t,...r}){return u.jsx("nav",{className:j($h(),e),...r,children:t})}function Bh({children:e,className:t,isCollapsed:r,onToggleCollapse:n,logo:o,logoAlt:a}){return u.jsxs("div",{className:j(Fh(),t),children:[u.jsx("div",{className:"flex items-center",children:u.jsx("img",{src:o,alt:a,className:r?"hidden":"w-auto max-w-32 pr-10"})}),u.jsx("div",{children:u.jsx(Qc,{className:"h-5 w-5 cursor-pointer",onClick:n})}),e]})}function zh({children:e,className:t}){return u.jsx("div",{className:j("flex items-center gap-2",t),children:e})}var wr="Tabs",[Wh,Ag]=de(wr,[Ft]),Xi=Ft(),[Gh,On]=Wh(wr),Zi=l.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:s="horizontal",dir:i,activationMode:c="automatic",...d}=e,f=$t(i),[p,g]=we({prop:n,onChange:o,defaultProp:a??"",caller:wr});return u.jsx(Gh,{scope:r,baseId:ce(),value:p,onValueChange:g,orientation:s,dir:f,activationMode:c,children:u.jsx(V.div,{dir:f,"data-orientation":s,...d,ref:t})})});Zi.displayName=wr;var Ji="TabsList",Qi=l.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=On(Ji,r),s=Xi(r);return u.jsx(vo,{asChild:!0,...s,orientation:a.orientation,dir:a.dir,loop:n,children:u.jsx(V.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});Qi.displayName=Ji;var el="TabsTrigger",tl=l.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,s=On(el,r),i=Xi(r),c=ol(s.baseId,n),d=al(s.baseId,n),f=n===s.value;return u.jsx(bo,{asChild:!0,...i,focusable:!o,active:f,children:u.jsx(V.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":d,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c,...a,ref:t,onMouseDown:z(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?s.onValueChange(n):p.preventDefault()}),onKeyDown:z(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&s.onValueChange(n)}),onFocus:z(e.onFocus,()=>{const p=s.activationMode!=="manual";!f&&!o&&p&&s.onValueChange(n)})})})});tl.displayName=el;var rl="TabsContent",nl=l.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...s}=e,i=On(rl,r),c=ol(i.baseId,n),d=al(i.baseId,n),f=n===i.value,p=l.useRef(f);return l.useEffect(()=>{const g=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(g)},[]),u.jsx(he,{present:o||f,children:({present:g})=>u.jsx(V.div,{"data-state":f?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":c,hidden:!g,id:d,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:g&&a})})});nl.displayName=rl;function ol(e,t){return`${e}-trigger-${t}`}function al(e,t){return`${e}-content-${t}`}var Hh=Zi,Uh=Qi,Kh=tl,Yh=nl;const qh={underline:"data-[state=active]:border-b-primary-1 px-5 py-4 border-b-[1.5px] border-b-neutral-black-3 text-md",badge:"px-3 py-2 rounded-md text-neutral-0 data-[state=active]:bg-white text-sm rounded-[5px]"},Xh=le("flex max-w-fit",{variants:{variant:{none:"",badge:"bg-neutral-black-5 p-[5px] rounded-[5px] h-12"}},defaultVariants:{variant:"none"}}),Zh=le("[&>svg]:text-neutral-black-2 cursor-pointer data-[state=active]:text-primary-1 data-[state=active]:[&>svg]:text-primary-1",{variants:{variant:qh},defaultVariants:{variant:"underline"}});function Jh({className:e,...t}){return u.jsx(Hh,{"data-slot":"tabs",className:j("flex flex-col gap-2",e),...t})}function Qh({className:e,variant:t,...r}){return u.jsx(Uh,{"data-slot":"tabs-list",className:j(Xh({variant:t}),e),...r})}function eg({className:e,variant:t="underline",...r}){return u.jsx(Kh,{"data-slot":"tabs-trigger",className:j(Zh({variant:t}),e),...r})}function tg({className:e,...t}){return u.jsx(Yh,{"data-slot":"tabs-content",className:j("flex-1 outline-none",e),...t})}L.Avatar=mh,L.AvatarFallback=gh,L.AvatarImage=hh,L.Badge=Yr,L.BaseInput=Is,L.Breadcrumb=Ah,L.BreadcrumbEllipsis=Lh,L.BreadcrumbItem=jh,L.BreadcrumbLink=Oh,L.BreadcrumbList=Ih,L.BreadcrumbPage=Mh,L.BreadcrumbSeparator=Dh,L.Button=Ot,L.Card=eh,L.Checkbox=qo,L.Dialog=gd,L.DialogClose=bd,L.DialogContent=xd,L.DialogDescription=Cd,L.DialogFooter=yd,L.DialogHeader=wd,L.DialogOverlay=Ba,L.DialogPortal=Va,L.DialogTitle=Sd,L.DialogTrigger=vd,L.Divider=yh,L.Input=js,L.InputLabel=Os,L.MultiSelect=Di,L.Navigation=Vh,L.NavigationEnd=zh,L.NavigationStart=Bh,L.Page404=Th,L.PasswordInput=vp,L.Placeholder=_h,L.ProgressIndicator=qi,L.RadioGroup=jo,L.RadioGroupItem=Oo,L.SearchInput=bp,L.SelectOption=Jm,L.SingleSelect=Mi,L.Skeleton=Ph,L.Tabs=Jh,L.TabsContent=tg,L.TabsList=Qh,L.TabsTrigger=eg,L.Timeline=Rh,L.Toggle=lc,L.Tooltip=pp,L.TooltipContent=hp,L.TooltipProvider=As,L.TooltipTrigger=mp,L.cn=j,Object.defineProperty(L,Symbol.toStringTag,{value:"Module"})});
197
+ */var Bl;function Gg(){return Bl||(Bl=1,process.env.NODE_ENV!=="production"&&function(){function e(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}function t(g,b){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 h=b();if(!m){var v=b();a(h,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),m=!0)}v=s({inst:{value:h,getSnapshot:b}});var x=v[0].inst,y=v[1];return l(function(){x.value=h,x.getSnapshot=b,n(x)&&y({inst:x})},[g,h,b]),i(function(){return n(x)&&y({inst:x}),g(function(){n(x)&&y({inst:x})})},[g]),d(h),h}function n(g){var b=g.getSnapshot;g=g.value;try{var h=b();return!a(g,h)}catch{return!0}}function r(g,b){return b()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=O,a=typeof Object.is=="function"?Object.is:e,s=o.useState,i=o.useEffect,l=o.useLayoutEffect,d=o.useDebugValue,f=!1,m=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;ko.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),ko}process.env.NODE_ENV==="production"?yo.exports=Hg():yo.exports=Gg();var Ug=yo.exports;function qg(){return Ug.useSyncExternalStore(Kg,()=>!0,()=>!1)}function Kg(){return()=>{}}var So="Avatar",[Xg,N0]=Ce(So),[Zg,zl]=Xg(So),Vl=u.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,a]=u.useState("idle");return c.jsx(Zg,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:c.jsx(Y.span,{...r,ref:t})})});Vl.displayName=So;var Yl="AvatarImage",Hl=u.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,s=zl(Yl,n),i=Qg(r,a),l=qe(d=>{o(d),s.onImageLoadingStatusChange(d)});return be(()=>{i!=="idle"&&l(i)},[i,l]),i==="loaded"?c.jsx(Y.img,{...a,ref:t,src:r}):null});Hl.displayName=Yl;var Gl="AvatarFallback",Ul=u.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=zl(Gl,n),[s,i]=u.useState(r===void 0);return u.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>i(!0),r);return()=>window.clearTimeout(l)}},[r]),s&&a.imageLoadingStatus!=="loaded"?c.jsx(Y.span,{...o,ref:t}):null});Ul.displayName=Gl;function ql(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Qg(e,{referrerPolicy:t,crossOrigin:n}){const r=qg(),o=u.useRef(null),a=r?(o.current||(o.current=new window.Image),o.current):null,[s,i]=u.useState(()=>ql(a,e));return be(()=>{i(ql(a,e))},[a,e]),be(()=>{const l=m=>()=>{i(m)};if(!a)return;const d=l("loaded"),f=l("error");return a.addEventListener("load",d),a.addEventListener("error",f),t&&(a.referrerPolicy=t),typeof n=="string"&&(a.crossOrigin=n),()=>{a.removeEventListener("load",d),a.removeEventListener("error",f)}},[a,n,t]),s}var Jg=Vl,Kl=Hl,or=Ul;const eb=ge("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}}),tb=ge("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"}}),nb=ge("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"}}),rb=ge("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 ob(e){const{type:t,size:n="md",status:r="Neutral",notification:o,CTAIndicator:a=!1,progress:s=!1,className:i,...l}=e;return c.jsxs(Jg,{className:N(eb({size:n,progress:s}),i),...l,children:[t==="picture"&&c.jsxs(c.Fragment,{children:[c.jsx(Kl,{src:e.src,alt:"avatar",className:"w-full h-full object-cover rounded-full"}),c.jsx(or,{children:c.jsx(Za,{className:"text-black",size:n==="sm"?16:n==="md"?20:n==="lg"?24:n==="xl"?28:32})})]}),t==="initials"&&c.jsx(or,{className:"uppercase",children:e.initials}),t==="placeholder"&&c.jsx(or,{children:c.jsx(Za,{"data-testid":"avatar-placeholder",className:"text-black",size:n==="sm"?16:n==="md"?20:n==="lg"?24:n==="xl"?28:32})}),r!=="Neutral"&&c.jsx("span",{"data-testid":"avatar-status",className:tb({status:r,size:n})}),o&&c.jsx("span",{"data-testid":"avatar-notification",className:nb({size:n,priority:o.priority}),children:o.value}),a&&c.jsx("span",{"data-testid":"avatar-camera-icon",className:rb({size:n}),children:c.jsx(Fu,{"data-testid":"avatar-camera",className:"text-[var(--color-neutral-black-1)]",size:12})})]})}function ab({className:e,...t}){return c.jsx(Kl,{className:N("aspect-square h-full w-full",e),...t})}function sb({className:e,...t}){return c.jsx(or,{className:N("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t})}var ib="Separator",Xl="horizontal",lb=["horizontal","vertical"],Zl=u.forwardRef((e,t)=>{const{decorative:n,orientation:r=Xl,...o}=e,a=cb(r)?r:Xl,i=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return c.jsx(Y.div,{"data-orientation":a,...i,...o,ref:t})});Zl.displayName=ib;function cb(e){return lb.includes(e)}var db=Zl;function Ql({className:e,orientation:t="horizontal",decorative:n=!0,size:r=1,...o}){const a=t==="horizontal"?{1:"h-px",2:"h-0.5",3:"h-[3px]",4:"h-1"}[r]:{1:"w-px",2:"w-0.5",3:"w-[3px]",4:"w-1"}[r];return c.jsx(db,{"data-slot":"separator",role:"separator",decorative:n,orientation:t,className:N("bg-neutral-black-4 shrink-0",t==="horizontal"?"w-full":"h-full",a,e),...o})}const ub=ge("flex flex-col gap-12"),fb=ge("",{variants:{variant:{filled:"h-3 w-3 rounded-full bg-neutral-black-2",outlined:"h-3 w-3 rounded-full bg-transparent border-2 border-neutral-black-2",icon:"h-12 w-12 rounded-full flex items-center justify-center text-display-xs"},visited:{true:"",false:""}},compoundVariants:[{variant:"icon",visited:!0,class:"bg-primary-1 text-white"},{variant:"icon",visited:!1,class:"bg-neutral-black-5 text-neutral-black-2"}],defaultVariants:{variant:"filled",visited:!0}}),mb=ge("flex relative after:border-l-2 after:absolute after:h-full after:-translate-x-1/2",{variants:{hideConnector:{true:"after:hidden",false:"min-h-9"},variant:{filled:"pl-7 after:left-[6px] after:border-l-neutral-black-2",outlined:"pl-7 after:left-[6px] after:border-l-neutral-black-2",icon:"pl-10 after:left-[24px]"},visited:{true:"",false:""}},compoundVariants:[{variant:"icon",visited:!0,class:"after:border-l-primary-1"},{variant:"icon",visited:!1,class:"after:border-l-neutral-black-5"}],defaultVariants:{hideConnector:!1,variant:"filled",visited:!0}}),hb=(e,t)=>e&&!t;function pb({items:e,variant:t="filled",className:n}){const r=e.findIndex(a=>a.notVisited===!0),o=e.map((a,s)=>r!==-1&&s>=r?{...a,notVisited:!0}:a);return c.jsx("div",{className:N(ub(),n),"data-testid":"timeline",children:c.jsx("div",{className:"flex flex-col",children:o.map((a,s)=>{const i=s===o.length-1,l=!!(a.description||a.content),d=hb(i,l),f=a.notVisited||!1,m=o[s+1],p=(m==null?void 0:m.notVisited)||!1,g=t==="icon"&&p;return c.jsxs("div",{className:"flex flex-col","data-testid":"timeline-item",children:[c.jsxs("div",{className:"flex items-center gap-4 min-h-[35px]",children:[c.jsx("div",{"data-testid":"timeline-dot",className:N(fb({variant:t,visited:!f})),children:t==="icon"&&a.icon&&c.jsx("div",{className:"flex items-center justify-center w-full h-full",children:a.icon})}),c.jsx("p",{className:N("text-neutral-black-1",f&&"text-neutral-black-4"),children:a.title})]}),c.jsx("div",{"data-testid":"timeline-connector",className:N(mb({hideConnector:d,variant:t,visited:!g})),children:(a.description||a.content)&&c.jsxs("div",{className:"flex flex-col gap-2 py-2",children:[a.description&&c.jsx("p",{className:N("text-neutral-black-1 text-sm",f&&"text-neutral-black-4"),children:a.description}),a.content&&c.jsx("div",{className:"min-h-[35px]",children:a.content})]})})]},a.id)})})})}const gb=({variant:e="icon",width:t,height:n,iconSize:r=40,className:o,...a})=>{const s=()=>{switch(e){case"image":return c.jsx(Hu,{size:r,"data-testid":"placeholder-image"});case"video":return c.jsx(qu,{size:r,"data-testid":"placeholder-video"});case"pieChart":return c.jsx(Lu,{size:r,"data-testid":"placeholder-pieChart"});case"icon":default:return c.jsx(Uu,{size:r,"data-testid":"placeholder-smile"})}};return c.jsx("div",{"data-testid":"placeholder-wrapper",className:N("flex flex-col items-center justify-center text-neutral-black-2 gap-2 select-none bg-neutral-black-5 rounded-2xl",o),style:{width:t,height:n},...a,children:s()})},bb=e=>e===void 0||isNaN(e)?0:Math.min(100,Math.max(0,e)),Jl=u.forwardRef(({variant:e="linear",value:t=0,color:n="var(--color-primary-1)",className:r,...o},a)=>{const s=bb(t);if(e==="circular"){const{size:i=80,thickness:l=8}=o,d=(i-l)/2,f=2*Math.PI*d,m=f-s/100*f;return c.jsx("div",{ref:a,role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":100,className:N("flex flex-col items-center justify-center",r),...o,children:c.jsxs("svg",{width:i,height:i,className:"rotate-[-90deg]",children:[c.jsx("circle",{cx:i/2,cy:i/2,r:d,stroke:"var(--color-neutral-black-5)",strokeWidth:l,fill:"transparent"}),c.jsx("circle",{cx:i/2,cy:i/2,r:d,stroke:n,strokeWidth:l,fill:"transparent",strokeDasharray:f,strokeDashoffset:m,className:"transition-all duration-700"})]})})}return c.jsx("div",{ref:a,role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":100,className:N("w-full h-2 bg-[var(--color-neutral-black-5)] overflow-hidden",r),...o,children:c.jsx("div",{className:"h-full transition-all duration-300",style:{width:`${s}%`,backgroundColor:n}})})});Jl.displayName="ProgressIndicator";function Co({className:e,...t}){return c.jsx("div",{"data-slot":"skeleton",className:N("bg-neutral-black-5 animate-pulse rounded-sm",e),...t})}function vb({className:e,title:t="Oops! It looks like you're lost.",description:n="The page you're looking for isn't available. Try to search again or use the go to.",backButtonText:r="Back to home",href:o="/"}){return c.jsx("main",{className:N("flex flex-1 w-full py-16 px-6 md:py-24 md:px-8",e),children:c.jsxs("div",{className:"flex flex-col lg:flex-row gap-16 lg:gap-20 flex-1 max-w-7xl mx-auto",children:[c.jsx("div",{className:"flex-shrink-0 w-full max-w-[484px] h-64 lg:h-96 max-h-[370px] rounded-lg flex items-center justify-center",children:c.jsx("img",{src:"https://iili.io/KTthUtR.png",alt:"Page not found illustration"})}),c.jsxs("div",{className:"flex flex-col flex-1 gap-6 items-start",children:[c.jsxs("h1",{className:"font-bold text-neutral-black-1 text-6xl md:text-8xl lg:text-[129px]/[176px]",children:["40",c.jsx("span",{className:"text-primary-1",children:"4"})]}),c.jsxs("div",{className:"flex flex-col gap-3 max-w-lg",children:[c.jsx("h2",{className:"font-bold text-2xl md:text-3xl text-neutral-black-1",children:t}),c.jsx("p",{className:"text-base md:text-lg text-neutral-black-1 leading-relaxed",children:n})]}),c.jsx("a",{href:o,children:c.jsx(Se,{variant:"default",size:"sm",className:"cursor-pointer",children:r})})]})]})})}function xb({...e}){return c.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function yb({className:e,...t}){return c.jsx("ol",{"data-slot":"breadcrumb-list",className:N("text-muted-foreground flex flex-wrap items-center gap-2 text-sm break-words",e),...t})}function wb({className:e,...t}){return c.jsx("li",{"data-slot":"breadcrumb-item",className:N("inline-flex items-center gap-1.5",e),...t})}function kb({asChild:e,className:t,...n}){const r=e?Ge:"a";return c.jsx(r,{"data-slot":"breadcrumb-link",className:N("text-neutral-black-1 hover:text-primary-1 hover:no-underline",t),...n})}function Sb({className:e,...t}){return c.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:N("text-neutral-black-2 cursor-default",e),...t})}function Cb({children:e,className:t,...n}){return c.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:N("[&>svg]:size-3.5 text-neutral-black-3 text-[20px]",t),...n,children:e??c.jsx(_n,{})})}function Nb({className:e,...t}){return c.jsxs("span",{"data-slot":"breadcrumb-ellipsis",role:"presentation","aria-hidden":"true",className:N("flex size-9 items-center justify-center",e),...t,children:[c.jsx(zu,{className:"size-4"}),c.jsx("span",{className:"sr-only",children:"More"})]})}const Eb=ge("flex items-center justify-between w-full bg-neutral-black-5 px-4 py-3"),_b=ge("flex items-center gap-3");function Mb({className:e,children:t,...n}){return c.jsx("nav",{className:N(Eb(),e),...n,children:t})}function Ob({children:e,className:t,isCollapsed:n,onToggleCollapse:r,logo:o,logoAlt:a}){return c.jsxs("div",{className:N(_b(),t),children:[c.jsx("div",{className:"flex items-center",children:c.jsx("img",{src:o,alt:a,className:n?"hidden":"w-auto max-w-32 pr-10"})}),c.jsx("div",{children:c.jsx(Gu,{className:"h-5 w-5 cursor-pointer",onClick:r})}),e]})}function Tb({children:e,className:t}){return c.jsx("div",{className:N("flex items-center gap-2",t),children:e})}var ar="Tabs",[Pb,E0]=Ce(ar,[Sn]),ec=Sn(),[Db,No]=Pb(ar),tc=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:s="horizontal",dir:i,activationMode:l="automatic",...d}=e,f=kn(i),[m,p]=We({prop:r,onChange:o,defaultProp:a??"",caller:ar});return c.jsx(Db,{scope:n,baseId:ye(),value:m,onValueChange:p,orientation:s,dir:f,activationMode:l,children:c.jsx(Y.div,{dir:f,"data-orientation":s,...d,ref:t})})});tc.displayName=ar;var nc="TabsList",rc=u.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,a=No(nc,n),s=ec(n);return c.jsx(wa,{asChild:!0,...s,orientation:a.orientation,dir:a.dir,loop:r,children:c.jsx(Y.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});rc.displayName=nc;var oc="TabsTrigger",ac=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...a}=e,s=No(oc,n),i=ec(n),l=lc(s.baseId,r),d=cc(s.baseId,r),f=r===s.value;return c.jsx(ka,{asChild:!0,...i,focusable:!o,active:f,children:c.jsx(Y.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":d,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l,...a,ref:t,onMouseDown:q(e.onMouseDown,m=>{!o&&m.button===0&&m.ctrlKey===!1?s.onValueChange(r):m.preventDefault()}),onKeyDown:q(e.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&s.onValueChange(r)}),onFocus:q(e.onFocus,()=>{const m=s.activationMode!=="manual";!f&&!o&&m&&s.onValueChange(r)})})})});ac.displayName=oc;var sc="TabsContent",ic=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:a,...s}=e,i=No(sc,n),l=lc(i.baseId,r),d=cc(i.baseId,r),f=r===i.value,m=u.useRef(f);return u.useEffect(()=>{const p=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(p)},[]),c.jsx(Pe,{present:o||f,children:({present:p})=>c.jsx(Y.div,{"data-state":f?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!p,id:d,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:p&&a})})});ic.displayName=sc;function lc(e,t){return`${e}-trigger-${t}`}function cc(e,t){return`${e}-content-${t}`}var Ab=tc,jb=rc,Rb=ac,Ib=ic;const Wb={underline:"data-[state=active]:border-b-primary-1 px-5 py-4 border-b-[1.5px] border-b-neutral-black-3 text-md",badge:"px-3 py-2 rounded-md text-neutral-0 data-[state=active]:bg-white text-sm rounded-[5px]"},Fb=ge("flex max-w-fit",{variants:{variant:{none:"",badge:"bg-neutral-black-5 p-[5px] rounded-[5px] h-12"}},defaultVariants:{variant:"none"}}),Lb=ge("[&>svg]:text-neutral-black-2 cursor-pointer data-[state=active]:text-primary-1 data-[state=active]:[&>svg]:text-primary-1",{variants:{variant:Wb},defaultVariants:{variant:"underline"}});function $b({className:e,...t}){return c.jsx(Ab,{"data-slot":"tabs",className:N("flex flex-col gap-2",e),...t})}function Bb({className:e,variant:t,...n}){return c.jsx(jb,{"data-slot":"tabs-list",className:N(Fb({variant:t}),e),...n})}function zb({className:e,variant:t="underline",...n}){return c.jsx(Rb,{"data-slot":"tabs-trigger",className:N(Lb({variant:t}),e),...n})}function Vb({className:e,...t}){return c.jsx(Ib,{"data-slot":"tabs-content",className:N("flex-1 outline-none",e),...t})}const Yb="sidebar_state",Hb=60*60*24*7,Gb="20rem",Ub="4.5rem",qb="b",dc=u.createContext(null);function sn(){const e=u.useContext(dc);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const Kb=({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:a,...s})=>{const[l,d]=u.useState(!1),[f,m]=u.useState(e),p=t??f,g=u.useCallback(x=>{const y=typeof x=="function"?x(p):x;n?n(y):m(y),document.cookie=`${Yb}=${y}; path=/; max-age=${Hb}`},[n,p]),b=u.useCallback(()=>g(x=>!x),[!1,g,d]);u.useEffect(()=>{const x=y=>{y.key===qb&&(y.metaKey||y.ctrlKey)&&(y.preventDefault(),b())};return window.addEventListener("keydown",x),()=>window.removeEventListener("keydown",x)},[b]);const h=p?"expanded":"collapsed",v=u.useMemo(()=>({state:h,open:p,setOpen:g,isMobile:!1,openMobile:l,setOpenMobile:d,toggleSidebar:b}),[h,p,g,!1,l,d,b]);return c.jsx(dc.Provider,{value:v,children:c.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":Gb,"--sidebar-width-icon":Ub,...o},className:N("group/sidebar-wrapper has-data-[variant=inset]:bg-brand-50 flex min-h-svh w-full",r),...s,children:a})})},Xb=({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...a})=>{const{state:s}=sn();return n==="none"?c.jsx("div",{"data-slot":"sidebar",className:N("bg-brand-50 text-brand-950 flex h-full w-(--sidebar-width) flex-col",r),...a,children:o}):c.jsxs("div",{className:"text-brand-950 group peer hidden md:block","data-state":s,"data-collapsible":s==="collapsed"?n:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:[c.jsx("div",{"data-slot":"sidebar-gap",className:N("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),c.jsx("div",{"data-slot":"sidebar-container",className:N("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l border-neutral-black-5",r),...a,children:c.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-tag-light-gray group-data-[variant=floating]:border-neutral-black-5 flex h-full w-full flex-col p-4 group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-xs",children:o})})]})},Zb=({className:e,onClick:t,...n})=>{const{toggleSidebar:r}=sn();return c.jsxs(Se,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"outline",size:"icon",className:N("size-8",e),onClick:o=>{t==null||t(o),r()},...n,children:[c.jsx(Bu,{className:"text-brand-950 size-6"}),c.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})},Qb=({className:e,...t})=>{const{toggleSidebar:n}=sn();return c.jsx("button",{type:"button","data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:N("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:hover:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})},Jb=({className:e,...t})=>c.jsx("main",{"data-slot":"sidebar-inset",className:N("bg-background relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-xs md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2",e),...t}),ev=({className:e,...t})=>c.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:N("flex flex-col gap-2",e),...t}),tv=({className:e,...t})=>c.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:N("flex flex-col text-sm gap-2 text-neutral-black-1",e),...t}),nv=({className:e,...t})=>c.jsx(Ql,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:N("bg-sidebar-border mx-2 w-auto",e),...t}),rv=({className:e,...t})=>c.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:N("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}),ov=({className:e,...t})=>c.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:N("relative flex w-full min-w-0 flex-col",e),...t}),av=({className:e,asChild:t=!1,...n})=>{const r=t?Ge:"div";return c.jsx(r,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:N("text-brand-950/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})},sv=({className:e,asChild:t=!1,...n})=>{const r=t?Ge:"button";return c.jsx(r,{"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:N("text-brand-950 ring-sidebar-ring hover:bg-sidebar-accent hover:text-secondary-50 absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",e),...n})},iv=({className:e,...t})=>c.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:N("w-full text-sm",e),...t}),lv=({className:e,...t})=>c.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:N("flex group-data-[collapsible=icon]:items-center w-full min-w-0 flex-col gap-2",e),...t}),cv=({className:e,...t})=>c.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:N("group/menu-item relative justify-center",e),...t}),dv=ge("peer/menu-button flex w-full items-center gap-2 text-neutral-black-1 overflow-hidden rounded-lg py-2.5 px-3 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding,color] duration-300 hover:bg-brand-700 hover:text-secondary-50 focus-visible:ring-2 active:bg-brand-700 active:text-secondary-50 disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-error-2 data-[active=true]:font-semibold data-[active=true]:text-primary-1 data-[state=open]:hover:bg-error-2 data-[state=open]:hover:text-primary-1 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 cursor-pointer",{variants:{variant:{default:"hover:bg-error-2 hover:text-primary-1",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-secondary-50 hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}}),uv=({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:a,...s})=>{const i=e?Ge:"button",{isMobile:l,state:d}=sn(),f=c.jsx(i,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":r,"data-active":t,className:N(dv({variant:n,size:r}),a),...s});return o?(typeof o=="string"&&(o={children:o}),c.jsxs(Jr,{children:[c.jsx(to,{asChild:!0,children:f}),c.jsx(ro,{side:"right",align:"center",hidden:d!=="collapsed"||l,...o})]})):f},fv=({className:e,asChild:t=!1,showOnHover:n=!1,...r})=>{const o=t?Ge:"button";return c.jsx(o,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:N("text-brand-950 ring-sidebar-ring hover:bg-sidebar-accent hover:text-secondary-50 peer-hover/menu-button:text-secondary-50 absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"peer-data-[active=true]/menu-button:text-secondary-50 group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",e),...r})},mv=({className:e,...t})=>c.jsx("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:N("text-brand-950 pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none","peer-hover/menu-button:text-secondary-50 peer-data-[active=true]/menu-button:text-secondary-50","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}),hv=({className:e,showIcon:t=!1,...n})=>{const r=u.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return c.jsxs("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:N("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[t&&c.jsx(Co,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),c.jsx(Co,{className:"h-4 max-w-(--skeleton-width) flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})},pv=({className:e,...t})=>c.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:N("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}),gv=({className:e,...t})=>c.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:N("group/menu-sub-item relative",e),...t}),bv=({asChild:e=!1,size:t="md",isActive:n=!1,className:r,...o})=>{const a=e?Ge:"a";return c.jsx(a,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:N("text-brand-950 ring-sidebar-ring hover:bg-brand-700 hover:text-secondary-50 active:bg-brand-700 active:text-secondary-50 [&>svg]:text-secondary-50 flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0","data-[active=true]:bg-brand-700 data-[active=true]:text-secondary-50",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...o})};function uc({children:e}){return c.jsx("div",{className:"flex flex-col w-[440px] rounded-lg overflow-hidden border border-neutral-black-5 shadow-[0_1px_2px_0_rgba(0,0,0,0.30),_0_1px_3px_1px_rgba(0,0,0,0.15)]",children:e})}function vv({children:e}){return c.jsx("div",{className:"flex justify-between bg-neutral-black-5 text-neutral-black-1 py-3 px-4",children:c.jsx("h2",{className:"text-md font-medium text-neutral-black-1",children:e})})}function xv({children:e,className:t}){return c.jsx("div",{className:N("flex flex-col ",t),children:e})}function yv({children:e,iconClassName:t,heading:n,description:r,timestamp:o,className:a,read:s=!1}){return c.jsxs("div",{className:N("flex gap-3 w-full p-4 border-b border-neutral-black-4",a),children:[c.jsx("div",{className:N("flex rounded-full size-8 min-w-8 bg-white items-center justify-center",{"bg-neutral-black-5":s}),children:c.jsx(Wu,{className:N("size-3 fill-neutral-black-2 text-transparent",t)})}),c.jsxs("div",{className:"flex flex-col gap-3 w-full",children:[c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx("h3",{className:"text-sm font-semibold text-neutral-black-1",children:n}),c.jsx("p",{className:N("text-sm text-neutral-black-1",{"text-neutral-black-2":s}),children:r})]}),e,c.jsx("p",{className:"text-xs text-neutral-black-2",children:o})]}),!s&&c.jsx("div",{className:"size-1.5 bg-neutral-black-1 rounded-full mt-2"})]})}const wv={Root:uc,Header:vv,Body:xv,Card:yv};function kv(e,t,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}const Eo={},ln={};function bt(e,t){try{const r=(Eo[e]||(Eo[e]=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format))(t).split("GMT")[1];return r in ln?ln[r]:fc(r,r.split(":"))}catch{if(e in ln)return ln[e];const n=e==null?void 0:e.match(Sv);return n?fc(e,n.slice(1)):NaN}}const Sv=/([+-]\d\d):?(\d\d)?/;function fc(e,t){const n=+(t[0]||0),r=+(t[1]||0),o=+(t[2]||0)/60;return ln[e]=n*60+r>0?n*60+r+o:n*60-r-o}class Ve extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(bt(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),hc(this),_o(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new Ve(...n,t):new Ve(Date.now(),t)}withTimeZone(t){return new Ve(+this,t)}getTimezoneOffset(){const t=-bt(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),_o(this),+this}[Symbol.for("constructDateFrom")](t){return new Ve(+new Date(t),this.timeZone)}}const mc=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!mc.test(e))return;const t=e.replace(mc,"$1UTC");Ve.prototype[t]&&(e.startsWith("get")?Ve.prototype[e]=function(){return this.internal[t]()}:(Ve.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),Cv(this),+this},Ve.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),_o(this),+this}))});function _o(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-bt(e.timeZone,e)*60))}function Cv(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),hc(e)}function hc(e){const t=bt(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);const o=-new Date(+e).getTimezoneOffset(),a=-new Date(+r).getTimezoneOffset(),s=o-a,i=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();s&&i&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+s);const l=o-n;l&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+l);const d=new Date(+e);d.setUTCSeconds(0);const f=o>0?d.getSeconds():(d.getSeconds()-60)%60,m=Math.round(-(bt(e.timeZone,e)*60))%60;(m||f)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+m),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+m+f));const p=bt(e.timeZone,e),g=p>0?Math.floor(p):Math.ceil(p),h=-new Date(+e).getTimezoneOffset()-g,v=g!==n,x=h-l;if(v&&x){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+x);const y=bt(e.timeZone,e),w=y>0?Math.floor(y):Math.ceil(y),S=g-w;S&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+S),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+S))}}class we extends Ve{static tz(t,...n){return n.length?new we(...n,t):new we(Date.now(),t)}toISOString(){const[t,n,r]=this.tzComponents(),o=`${t}${n}:${r}`;return this.internal.toISOString().slice(0,-1)+o}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,n,r,o]=this.internal.toUTCString().split(" ");return`${t==null?void 0:t.slice(0,-1)} ${r} ${n} ${o}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[n,r,o]=this.tzComponents();return`${t} GMT${n}${r}${o} (${kv(this.timeZone,this)})`}toLocaleString(t,n){return Date.prototype.toLocaleString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}toLocaleDateString(t,n){return Date.prototype.toLocaleDateString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}toLocaleTimeString(t,n){return Date.prototype.toLocaleTimeString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),n=t>0?"-":"+",r=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),o=String(Math.abs(t)%60).padStart(2,"0");return[n,r,o]}withTimeZone(t){return new we(+this,t)}[Symbol.for("constructDateFrom")](t){return new we(+new Date(t),this.timeZone)}}const pc=6048e5,Nv=864e5,gc=Symbol.for("constructDateFrom");function xe(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&gc in e?e[gc](t):e instanceof Date?new e.constructor(t):new Date(t)}function ue(e,t){return xe(t||e,e)}function bc(e,t,n){const r=ue(e,n==null?void 0:n.in);return isNaN(t)?xe(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function vc(e,t,n){const r=ue(e,n==null?void 0:n.in);if(isNaN(t))return xe(e,NaN);if(!t)return r;const o=r.getDate(),a=xe(e,r.getTime());a.setMonth(r.getMonth()+t+1,0);const s=a.getDate();return o>=s?a:(r.setFullYear(a.getFullYear(),a.getMonth(),o),r)}let Ev={};function cn(){return Ev}function $t(e,t){var i,l,d,f;const n=cn(),r=(t==null?void 0:t.weekStartsOn)??((l=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((f=(d=n.locale)==null?void 0:d.options)==null?void 0:f.weekStartsOn)??0,o=ue(e,t==null?void 0:t.in),a=o.getDay(),s=(a<r?7:0)+a-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function dn(e,t){return $t(e,{...t,weekStartsOn:1})}function xc(e,t){const n=ue(e,t==null?void 0:t.in),r=n.getFullYear(),o=xe(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const a=dn(o),s=xe(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const i=dn(s);return n.getTime()>=a.getTime()?r+1:n.getTime()>=i.getTime()?r:r-1}function yc(e){const t=ue(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Bt(e,...t){const n=xe.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function un(e,t){const n=ue(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function wc(e,t,n){const[r,o]=Bt(n==null?void 0:n.in,e,t),a=un(r),s=un(o),i=+a-yc(a),l=+s-yc(s);return Math.round((i-l)/Nv)}function _v(e,t){const n=xc(e,t),r=xe(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),dn(r)}function Mv(e,t,n){return bc(e,t*7,n)}function Ov(e,t,n){return vc(e,t*12,n)}function Tv(e,t){let n,r=t==null?void 0:t.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=xe.bind(null,o));const a=ue(o,r);(!n||n<a||isNaN(+a))&&(n=a)}),xe(r,n||NaN)}function Pv(e,t){let n,r=t==null?void 0:t.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=xe.bind(null,o));const a=ue(o,r);(!n||n>a||isNaN(+a))&&(n=a)}),xe(r,n||NaN)}function Dv(e,t,n){const[r,o]=Bt(n==null?void 0:n.in,e,t);return+un(r)==+un(o)}function kc(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Av(e){return!(!kc(e)&&typeof e!="number"||isNaN(+ue(e)))}function jv(e,t,n){const[r,o]=Bt(n==null?void 0:n.in,e,t),a=r.getFullYear()-o.getFullYear(),s=r.getMonth()-o.getMonth();return a*12+s}function Rv(e,t){const n=ue(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Iv(e,t){const[n,r]=Bt(e,t.start,t.end);return{start:n,end:r}}function Wv(e,t){const{start:n,end:r}=Iv(t==null?void 0:t.in,e);let o=+n>+r;const a=o?+n:+r,s=o?r:n;s.setHours(0,0,0,0),s.setDate(1);let i=1;const l=[];for(;+s<=a;)l.push(xe(n,s)),s.setMonth(s.getMonth()+i);return o?l.reverse():l}function Fv(e,t){const n=ue(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function Lv(e,t){const n=ue(e,t==null?void 0:t.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function Sc(e,t){const n=ue(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Cc(e,t){var i,l,d,f;const n=cn(),r=(t==null?void 0:t.weekStartsOn)??((l=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((f=(d=n.locale)==null?void 0:d.options)==null?void 0:f.weekStartsOn)??0,o=ue(e,t==null?void 0:t.in),a=o.getDay(),s=(a<r?-7:0)+6-(a-r);return o.setDate(o.getDate()+s),o.setHours(23,59,59,999),o}function $v(e,t){return Cc(e,{...t,weekStartsOn:1})}const Bv={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},zv=(e,t,n)=>{let r;const o=Bv[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Mo(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Vv={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Yv={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Hv={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Gv={date:Mo({formats:Vv,defaultWidth:"full"}),time:Mo({formats:Yv,defaultWidth:"full"}),dateTime:Mo({formats:Hv,defaultWidth:"full"})},Uv={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},qv=(e,t,n,r)=>Uv[e];function fn(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,i=n!=null&&n.width?String(n.width):s;o=e.formattingValues[i]||e.formattingValues[s]}else{const s=e.defaultWidth,i=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[i]||e.values[s]}const a=e.argumentCallback?e.argumentCallback(t):t;return o[a]}}const Kv={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Xv={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Zv={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Qv={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Jv={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},ex={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},tx={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:fn({values:Kv,defaultWidth:"wide"}),quarter:fn({values:Xv,defaultWidth:"wide",argumentCallback:e=>e-1}),month:fn({values:Zv,defaultWidth:"wide"}),day:fn({values:Qv,defaultWidth:"wide"}),dayPeriod:fn({values:Jv,defaultWidth:"wide",formattingValues:ex,defaultFormattingWidth:"wide"})};function mn(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const s=a[0],i=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(i)?rx(i,m=>m.test(s)):nx(i,m=>m.test(s));let d;d=e.valueCallback?e.valueCallback(l):l,d=n.valueCallback?n.valueCallback(d):d;const f=t.slice(s.length);return{value:d,rest:f}}}function nx(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function rx(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function ox(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],a=t.match(e.parsePattern);if(!a)return null;let s=e.valueCallback?e.valueCallback(a[0]):a[0];s=n.valueCallback?n.valueCallback(s):s;const i=t.slice(o.length);return{value:s,rest:i}}}const ax=/^(\d+)(th|st|nd|rd)?/i,sx=/\d+/i,ix={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},lx={any:[/^b/i,/^(a|c)/i]},cx={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},dx={any:[/1/i,/2/i,/3/i,/4/i]},ux={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},fx={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},mx={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},hx={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},px={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},gx={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},bx={ordinalNumber:ox({matchPattern:ax,parsePattern:sx,valueCallback:e=>parseInt(e,10)}),era:mn({matchPatterns:ix,defaultMatchWidth:"wide",parsePatterns:lx,defaultParseWidth:"any"}),quarter:mn({matchPatterns:cx,defaultMatchWidth:"wide",parsePatterns:dx,defaultParseWidth:"any",valueCallback:e=>e+1}),month:mn({matchPatterns:ux,defaultMatchWidth:"wide",parsePatterns:fx,defaultParseWidth:"any"}),day:mn({matchPatterns:mx,defaultMatchWidth:"wide",parsePatterns:hx,defaultParseWidth:"any"}),dayPeriod:mn({matchPatterns:px,defaultMatchWidth:"any",parsePatterns:gx,defaultParseWidth:"any"})},Oo={code:"en-US",formatDistance:zv,formatLong:Gv,formatRelative:qv,localize:tx,match:bx,options:{weekStartsOn:0,firstWeekContainsDate:1}};function vx(e,t){const n=ue(e,t==null?void 0:t.in);return wc(n,Sc(n))+1}function Nc(e,t){const n=ue(e,t==null?void 0:t.in),r=+dn(n)-+_v(n);return Math.round(r/pc)+1}function Ec(e,t){var f,m,p,g;const n=ue(e,t==null?void 0:t.in),r=n.getFullYear(),o=cn(),a=(t==null?void 0:t.firstWeekContainsDate)??((m=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:m.firstWeekContainsDate)??o.firstWeekContainsDate??((g=(p=o.locale)==null?void 0:p.options)==null?void 0:g.firstWeekContainsDate)??1,s=xe((t==null?void 0:t.in)||e,0);s.setFullYear(r+1,0,a),s.setHours(0,0,0,0);const i=$t(s,t),l=xe((t==null?void 0:t.in)||e,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const d=$t(l,t);return+n>=+i?r+1:+n>=+d?r:r-1}function xx(e,t){var i,l,d,f;const n=cn(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((f=(d=n.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??1,o=Ec(e,t),a=xe((t==null?void 0:t.in)||e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),$t(a,t)}function _c(e,t){const n=ue(e,t==null?void 0:t.in),r=+$t(n,t)-+xx(n,t);return Math.round(r/pc)+1}function de(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const lt={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return de(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):de(n+1,2)},d(e,t){return de(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return de(e.getHours()%12||12,t.length)},H(e,t){return de(e.getHours(),t.length)},m(e,t){return de(e.getMinutes(),t.length)},s(e,t){return de(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return de(o,t.length)}},zt={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Mc={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return lt.y(e,t)},Y:function(e,t,n,r){const o=Ec(e,r),a=o>0?o:1-o;if(t==="YY"){const s=a%100;return de(s,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):de(a,t.length)},R:function(e,t){const n=xc(e);return de(n,t.length)},u:function(e,t){const n=e.getFullYear();return de(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return de(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return de(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return lt.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return de(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=_c(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):de(o,t.length)},I:function(e,t,n){const r=Nc(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):de(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):lt.d(e,t)},D:function(e,t,n){const r=vx(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):de(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return de(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return de(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return de(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=zt.noon:r===0?o=zt.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=zt.evening:r>=12?o=zt.afternoon:r>=4?o=zt.morning:o=zt.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return lt.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):lt.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):de(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):de(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):lt.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):lt.s(e,t)},S:function(e,t){return lt.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Tc(r);case"XXXX":case"XX":return vt(r);case"XXXXX":case"XXX":default:return vt(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Tc(r);case"xxxx":case"xx":return vt(r);case"xxxxx":case"xxx":default:return vt(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Oc(r,":");case"OOOO":default:return"GMT"+vt(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Oc(r,":");case"zzzz":default:return"GMT"+vt(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return de(r,t.length)},T:function(e,t,n){return de(+e,t.length)}};function Oc(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return a===0?n+String(o):n+String(o)+t+de(a,2)}function Tc(e,t){return e%60===0?(e>0?"-":"+")+de(Math.abs(e)/60,2):vt(e,t)}function vt(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=de(Math.trunc(r/60),2),a=de(r%60,2);return n+o+t+a}const Pc=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Dc=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},yx={p:Dc,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return Pc(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",Pc(r,t)).replace("{{time}}",Dc(o,t))}},wx=/^D+$/,kx=/^Y+$/,Sx=["D","DD","YY","YYYY"];function Cx(e){return wx.test(e)}function Nx(e){return kx.test(e)}function Ex(e,t,n){const r=_x(e,t,n);if(console.warn(r),Sx.includes(e))throw new RangeError(r)}function _x(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Mx=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ox=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Tx=/^'([^]*?)'?$/,Px=/''/g,Dx=/[a-zA-Z]/;function Ax(e,t,n){var f,m,p,g,b,h,v,x;const r=cn(),o=(n==null?void 0:n.locale)??r.locale??Oo,a=(n==null?void 0:n.firstWeekContainsDate)??((m=(f=n==null?void 0:n.locale)==null?void 0:f.options)==null?void 0:m.firstWeekContainsDate)??r.firstWeekContainsDate??((g=(p=r.locale)==null?void 0:p.options)==null?void 0:g.firstWeekContainsDate)??1,s=(n==null?void 0:n.weekStartsOn)??((h=(b=n==null?void 0:n.locale)==null?void 0:b.options)==null?void 0:h.weekStartsOn)??r.weekStartsOn??((x=(v=r.locale)==null?void 0:v.options)==null?void 0:x.weekStartsOn)??0,i=ue(e,n==null?void 0:n.in);if(!Av(i))throw new RangeError("Invalid time value");let l=t.match(Ox).map(y=>{const w=y[0];if(w==="p"||w==="P"){const S=yx[w];return S(y,o.formatLong)}return y}).join("").match(Mx).map(y=>{if(y==="''")return{isToken:!1,value:"'"};const w=y[0];if(w==="'")return{isToken:!1,value:jx(y)};if(Mc[w])return{isToken:!0,value:y};if(w.match(Dx))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return{isToken:!1,value:y}});o.localize.preprocessor&&(l=o.localize.preprocessor(i,l));const d={firstWeekContainsDate:a,weekStartsOn:s,locale:o};return l.map(y=>{if(!y.isToken)return y.value;const w=y.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&Nx(w)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&Cx(w))&&Ex(w,t,String(e));const S=Mc[w[0]];return S(i,w,o.localize,d)}).join("")}function jx(e){const t=e.match(Tx);return t?t[1].replace(Px,"'"):e}function Rx(e,t){const n=ue(e,t==null?void 0:t.in),r=n.getFullYear(),o=n.getMonth(),a=xe(n,0);return a.setFullYear(r,o+1,0),a.setHours(0,0,0,0),a.getDate()}function Ix(e,t){return ue(e,t==null?void 0:t.in).getMonth()}function Wx(e,t){return ue(e,t==null?void 0:t.in).getFullYear()}function Fx(e,t){return+ue(e)>+ue(t)}function Lx(e,t){return+ue(e)<+ue(t)}function $x(e,t,n){const[r,o]=Bt(n==null?void 0:n.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function Bx(e,t,n){const[r,o]=Bt(n==null?void 0:n.in,e,t);return r.getFullYear()===o.getFullYear()}function zx(e,t,n){const r=ue(e,n==null?void 0:n.in),o=r.getFullYear(),a=r.getDate(),s=xe(e,0);s.setFullYear(o,t,15),s.setHours(0,0,0,0);const i=Rx(s);return r.setMonth(t,Math.min(a,i)),r}function Vx(e,t,n){const r=ue(e,n==null?void 0:n.in);return isNaN(+r)?xe(e,NaN):(r.setFullYear(t),r)}const Ac=5,Yx=4;function Hx(e,t){const n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,o=t.addDays(e,-r+1),a=t.addDays(o,Ac*7-1);return t.getMonth(e)===t.getMonth(a)?Ac:Yx}function jc(e,t){const n=t.startOfMonth(e),r=n.getDay();return r===1?n:r===0?t.addDays(n,-1*6):t.addDays(n,-1*(r-1))}function Gx(e,t){const n=jc(e,t),r=Hx(e,t);return t.addDays(n,r*7-1)}class _e{constructor(t,n){this.Date=Date,this.today=()=>{var r;return(r=this.overrides)!=null&&r.today?this.overrides.today():this.options.timeZone?we.tz(this.options.timeZone):new this.Date},this.newDate=(r,o,a)=>{var s;return(s=this.overrides)!=null&&s.newDate?this.overrides.newDate(r,o,a):this.options.timeZone?new we(r,o,a,this.options.timeZone):new Date(r,o,a)},this.addDays=(r,o)=>{var a;return(a=this.overrides)!=null&&a.addDays?this.overrides.addDays(r,o):bc(r,o)},this.addMonths=(r,o)=>{var a;return(a=this.overrides)!=null&&a.addMonths?this.overrides.addMonths(r,o):vc(r,o)},this.addWeeks=(r,o)=>{var a;return(a=this.overrides)!=null&&a.addWeeks?this.overrides.addWeeks(r,o):Mv(r,o)},this.addYears=(r,o)=>{var a;return(a=this.overrides)!=null&&a.addYears?this.overrides.addYears(r,o):Ov(r,o)},this.differenceInCalendarDays=(r,o)=>{var a;return(a=this.overrides)!=null&&a.differenceInCalendarDays?this.overrides.differenceInCalendarDays(r,o):wc(r,o)},this.differenceInCalendarMonths=(r,o)=>{var a;return(a=this.overrides)!=null&&a.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(r,o):jv(r,o)},this.eachMonthOfInterval=r=>{var o;return(o=this.overrides)!=null&&o.eachMonthOfInterval?this.overrides.eachMonthOfInterval(r):Wv(r)},this.endOfBroadcastWeek=r=>{var o;return(o=this.overrides)!=null&&o.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(r):Gx(r,this)},this.endOfISOWeek=r=>{var o;return(o=this.overrides)!=null&&o.endOfISOWeek?this.overrides.endOfISOWeek(r):$v(r)},this.endOfMonth=r=>{var o;return(o=this.overrides)!=null&&o.endOfMonth?this.overrides.endOfMonth(r):Rv(r)},this.endOfWeek=(r,o)=>{var a;return(a=this.overrides)!=null&&a.endOfWeek?this.overrides.endOfWeek(r,o):Cc(r,this.options)},this.endOfYear=r=>{var o;return(o=this.overrides)!=null&&o.endOfYear?this.overrides.endOfYear(r):Lv(r)},this.format=(r,o,a)=>{var i;const s=(i=this.overrides)!=null&&i.format?this.overrides.format(r,o,this.options):Ax(r,o,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(s):s},this.getISOWeek=r=>{var o;return(o=this.overrides)!=null&&o.getISOWeek?this.overrides.getISOWeek(r):Nc(r)},this.getMonth=(r,o)=>{var a;return(a=this.overrides)!=null&&a.getMonth?this.overrides.getMonth(r,this.options):Ix(r,this.options)},this.getYear=(r,o)=>{var a;return(a=this.overrides)!=null&&a.getYear?this.overrides.getYear(r,this.options):Wx(r,this.options)},this.getWeek=(r,o)=>{var a;return(a=this.overrides)!=null&&a.getWeek?this.overrides.getWeek(r,this.options):_c(r,this.options)},this.isAfter=(r,o)=>{var a;return(a=this.overrides)!=null&&a.isAfter?this.overrides.isAfter(r,o):Fx(r,o)},this.isBefore=(r,o)=>{var a;return(a=this.overrides)!=null&&a.isBefore?this.overrides.isBefore(r,o):Lx(r,o)},this.isDate=r=>{var o;return(o=this.overrides)!=null&&o.isDate?this.overrides.isDate(r):kc(r)},this.isSameDay=(r,o)=>{var a;return(a=this.overrides)!=null&&a.isSameDay?this.overrides.isSameDay(r,o):Dv(r,o)},this.isSameMonth=(r,o)=>{var a;return(a=this.overrides)!=null&&a.isSameMonth?this.overrides.isSameMonth(r,o):$x(r,o)},this.isSameYear=(r,o)=>{var a;return(a=this.overrides)!=null&&a.isSameYear?this.overrides.isSameYear(r,o):Bx(r,o)},this.max=r=>{var o;return(o=this.overrides)!=null&&o.max?this.overrides.max(r):Tv(r)},this.min=r=>{var o;return(o=this.overrides)!=null&&o.min?this.overrides.min(r):Pv(r)},this.setMonth=(r,o)=>{var a;return(a=this.overrides)!=null&&a.setMonth?this.overrides.setMonth(r,o):zx(r,o)},this.setYear=(r,o)=>{var a;return(a=this.overrides)!=null&&a.setYear?this.overrides.setYear(r,o):Vx(r,o)},this.startOfBroadcastWeek=(r,o)=>{var a;return(a=this.overrides)!=null&&a.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(r,this):jc(r,this)},this.startOfDay=r=>{var o;return(o=this.overrides)!=null&&o.startOfDay?this.overrides.startOfDay(r):un(r)},this.startOfISOWeek=r=>{var o;return(o=this.overrides)!=null&&o.startOfISOWeek?this.overrides.startOfISOWeek(r):dn(r)},this.startOfMonth=r=>{var o;return(o=this.overrides)!=null&&o.startOfMonth?this.overrides.startOfMonth(r):Fv(r)},this.startOfWeek=(r,o)=>{var a;return(a=this.overrides)!=null&&a.startOfWeek?this.overrides.startOfWeek(r,this.options):$t(r,this.options)},this.startOfYear=r=>{var o;return(o=this.overrides)!=null&&o.startOfYear?this.overrides.startOfYear(r):Sc(r)},this.options={locale:Oo,...t},this.overrides=n}getDigitMap(){const{numerals:t="latn"}=this.options,n=new Intl.NumberFormat("en-US",{numberingSystem:t}),r={};for(let o=0;o<10;o++)r[o.toString()]=n.format(o);return r}replaceDigits(t){const n=this.getDigitMap();return t.replace(/\d/g,r=>n[r]||r)}formatNumber(t){return this.replaceDigits(t.toString())}getMonthYearOrder(){var n;const t=(n=this.options.locale)==null?void 0:n.code;return t&&_e.yearFirstLocales.has(t)?"year-first":"month-first"}formatMonthYear(t){const{locale:n,timeZone:r,numerals:o}=this.options,a=n==null?void 0:n.code;if(a&&_e.yearFirstLocales.has(a))try{return new Intl.DateTimeFormat(a,{month:"long",year:"numeric",timeZone:r,numberingSystem:o}).format(t)}catch{}const s=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(t,s)}}_e.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);const Ye=new _e;class Rc{constructor(t,n,r=Ye){this.date=t,this.displayMonth=n,this.outside=!!(n&&!r.isSameMonth(t,n)),this.dateLib=r}isEqualTo(t){return this.dateLib.isSameDay(t.date,this.date)&&this.dateLib.isSameMonth(t.displayMonth,this.displayMonth)}}class Ux{constructor(t,n){this.date=t,this.weeks=n}}class qx{constructor(t,n){this.days=n,this.weekNumber=t}}function Kx(e){return O.createElement("button",{...e})}function Xx(e){return O.createElement("span",{...e})}function Zx(e){const{size:t=24,orientation:n="left",className:r}=e;return O.createElement("svg",{className:r,width:t,height:t,viewBox:"0 0 24 24"},n==="up"&&O.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),n==="down"&&O.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),n==="left"&&O.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),n==="right"&&O.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function Qx(e){const{day:t,modifiers:n,...r}=e;return O.createElement("td",{...r})}function Jx(e){const{day:t,modifiers:n,...r}=e,o=O.useRef(null);return O.useEffect(()=>{var a;n.focused&&((a=o.current)==null||a.focus())},[n.focused]),O.createElement("button",{ref:o,...r})}var H;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(H||(H={}));var he;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(he||(he={}));var Ie;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(Ie||(Ie={}));var Me;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(Me||(Me={}));function ey(e){const{options:t,className:n,components:r,classNames:o,...a}=e,s=[o[H.Dropdown],n].join(" "),i=t==null?void 0:t.find(({value:l})=>l===a.value);return O.createElement("span",{"data-disabled":a.disabled,className:o[H.DropdownRoot]},O.createElement(r.Select,{className:s,...a},t==null?void 0:t.map(({value:l,label:d,disabled:f})=>O.createElement(r.Option,{key:l,value:l,disabled:f},d))),O.createElement("span",{className:o[H.CaptionLabel],"aria-hidden":!0},i==null?void 0:i.label,O.createElement(r.Chevron,{orientation:"down",size:18,className:o[H.Chevron]})))}function ty(e){return O.createElement("div",{...e})}function ny(e){return O.createElement("div",{...e})}function ry(e){const{calendarMonth:t,displayIndex:n,...r}=e;return O.createElement("div",{...r},e.children)}function oy(e){const{calendarMonth:t,displayIndex:n,...r}=e;return O.createElement("div",{...r})}function ay(e){return O.createElement("table",{...e})}function sy(e){return O.createElement("div",{...e})}const Ic=O.createContext(void 0);function hn(){const e=O.useContext(Ic);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function iy(e){const{components:t}=hn();return O.createElement(t.Dropdown,{...e})}function ly(e){const{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:o,...a}=e,{components:s,classNames:i,labels:{labelPrevious:l,labelNext:d}}=hn(),f=O.useCallback(p=>{o&&(n==null||n(p))},[o,n]),m=O.useCallback(p=>{r&&(t==null||t(p))},[r,t]);return O.createElement("nav",{...a},O.createElement(s.PreviousMonthButton,{type:"button",className:i[H.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":l(r),onClick:m},O.createElement(s.Chevron,{disabled:r?void 0:!0,className:i[H.Chevron],orientation:"left"})),O.createElement(s.NextMonthButton,{type:"button",className:i[H.NextMonthButton],tabIndex:o?void 0:-1,"aria-disabled":o?void 0:!0,"aria-label":d(o),onClick:f},O.createElement(s.Chevron,{disabled:o?void 0:!0,orientation:"right",className:i[H.Chevron]})))}function cy(e){const{components:t}=hn();return O.createElement(t.Button,{...e})}function dy(e){return O.createElement("option",{...e})}function uy(e){const{components:t}=hn();return O.createElement(t.Button,{...e})}function fy(e){const{rootRef:t,...n}=e;return O.createElement("div",{...n,ref:t})}function my(e){return O.createElement("select",{...e})}function hy(e){const{week:t,...n}=e;return O.createElement("tr",{...n})}function py(e){return O.createElement("th",{...e})}function gy(e){return O.createElement("thead",{"aria-hidden":!0},O.createElement("tr",{...e}))}function by(e){const{week:t,...n}=e;return O.createElement("th",{...n})}function vy(e){return O.createElement("th",{...e})}function xy(e){return O.createElement("tbody",{...e})}function yy(e){const{components:t}=hn();return O.createElement(t.Dropdown,{...e})}const wy=Object.freeze(Object.defineProperty({__proto__:null,Button:Kx,CaptionLabel:Xx,Chevron:Zx,Day:Qx,DayButton:Jx,Dropdown:ey,DropdownNav:ty,Footer:ny,Month:ry,MonthCaption:oy,MonthGrid:ay,Months:sy,MonthsDropdown:iy,Nav:ly,NextMonthButton:cy,Option:dy,PreviousMonthButton:uy,Root:fy,Select:my,Week:hy,WeekNumber:by,WeekNumberHeader:vy,Weekday:py,Weekdays:gy,Weeks:xy,YearsDropdown:yy},Symbol.toStringTag,{value:"Module"}));function Ze(e,t,n=!1,r=Ye){let{from:o,to:a}=e;const{differenceInCalendarDays:s,isSameDay:i}=r;return o&&a?(s(a,o)<0&&([o,a]=[a,o]),s(t,o)>=(n?1:0)&&s(a,t)>=(n?1:0)):!n&&a?i(a,t):!n&&o?i(o,t):!1}function Wc(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function To(e){return!!(e&&typeof e=="object"&&"from"in e)}function Fc(e){return!!(e&&typeof e=="object"&&"after"in e)}function Lc(e){return!!(e&&typeof e=="object"&&"before"in e)}function $c(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function Bc(e,t){return Array.isArray(e)&&e.every(t.isDate)}function Qe(e,t,n=Ye){const r=Array.isArray(t)?t:[t],{isSameDay:o,differenceInCalendarDays:a,isAfter:s}=n;return r.some(i=>{if(typeof i=="boolean")return i;if(n.isDate(i))return o(e,i);if(Bc(i,n))return i.includes(e);if(To(i))return Ze(i,e,!1,n);if($c(i))return Array.isArray(i.dayOfWeek)?i.dayOfWeek.includes(e.getDay()):i.dayOfWeek===e.getDay();if(Wc(i)){const l=a(i.before,e),d=a(i.after,e),f=l>0,m=d<0;return s(i.before,i.after)?m&&f:f||m}return Fc(i)?a(e,i.after)>0:Lc(i)?a(i.before,e)>0:typeof i=="function"?i(e):!1})}function ky(e,t,n,r,o){const{disabled:a,hidden:s,modifiers:i,showOutsideDays:l,broadcastCalendar:d,today:f}=t,{isSameDay:m,isSameMonth:p,startOfMonth:g,isBefore:b,endOfMonth:h,isAfter:v}=o,x=n&&g(n),y=r&&h(r),w={[he.focused]:[],[he.outside]:[],[he.disabled]:[],[he.hidden]:[],[he.today]:[]},S={};for(const k of e){const{date:_,displayMonth:C}=k,E=!!(C&&!p(_,C)),$=!!(x&&b(_,x)),z=!!(y&&v(_,y)),G=!!(a&&Qe(_,a,o)),K=!!(s&&Qe(_,s,o))||$||z||!d&&!l&&E||d&&l===!1&&E,te=m(_,f??o.today());E&&w.outside.push(k),G&&w.disabled.push(k),K&&w.hidden.push(k),te&&w.today.push(k),i&&Object.keys(i).forEach(U=>{const Q=i==null?void 0:i[U];Q&&Qe(_,Q,o)&&(S[U]?S[U].push(k):S[U]=[k])})}return k=>{const _={[he.focused]:!1,[he.disabled]:!1,[he.hidden]:!1,[he.outside]:!1,[he.today]:!1},C={};for(const E in w){const $=w[E];_[E]=$.some(z=>z===k)}for(const E in S)C[E]=S[E].some($=>$===k);return{..._,...C}}}function Sy(e,t,n={}){return Object.entries(e).filter(([,o])=>o===!0).reduce((o,[a])=>(n[a]?o.push(n[a]):t[he[a]]?o.push(t[he[a]]):t[Ie[a]]&&o.push(t[Ie[a]]),o),[t[H.Day]])}function Cy(e){return{...wy,...e}}function Ny(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([n,r])=>{n.startsWith("data-")&&(t[n]=r)}),t}function Po(){const e={};for(const t in H)e[H[t]]=`rdp-${H[t]}`;for(const t in he)e[he[t]]=`rdp-${he[t]}`;for(const t in Ie)e[Ie[t]]=`rdp-${Ie[t]}`;for(const t in Me)e[Me[t]]=`rdp-${Me[t]}`;return e}function zc(e,t,n){return(n??new _e(t)).formatMonthYear(e)}const Ey=zc;function _y(e,t,n){return(n??new _e(t)).format(e,"d")}function My(e,t=Ye){return t.format(e,"LLLL")}function Oy(e,t,n){return(n??new _e(t)).format(e,"cccccc")}function Ty(e,t=Ye){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function Py(){return""}function Vc(e,t=Ye){return t.format(e,"yyyy")}const Dy=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:zc,formatDay:_y,formatMonthCaption:Ey,formatMonthDropdown:My,formatWeekNumber:Ty,formatWeekNumberHeader:Py,formatWeekdayName:Oy,formatYearCaption:Vc,formatYearDropdown:Vc},Symbol.toStringTag,{value:"Module"}));function Ay(e){return e!=null&&e.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e!=null&&e.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...Dy,...e}}function jy(e,t,n,r,o){const{startOfMonth:a,startOfYear:s,endOfYear:i,eachMonthOfInterval:l,getMonth:d}=o;return l({start:s(e),end:i(e)}).map(p=>{const g=r.formatMonthDropdown(p,o),b=d(p),h=t&&p<a(t)||n&&p>a(n)||!1;return{value:b,label:g,disabled:h}})}function Ry(e,t={},n={}){let r={...t==null?void 0:t[H.Day]};return Object.entries(e).filter(([,o])=>o===!0).forEach(([o])=>{r={...r,...n==null?void 0:n[o]}}),r}function Iy(e,t,n){const r=e.today(),o=t?e.startOfISOWeek(r):e.startOfWeek(r),a=[];for(let s=0;s<7;s++){const i=e.addDays(o,s);a.push(i)}return a}function Wy(e,t,n,r,o=!1){if(!e||!t)return;const{startOfYear:a,endOfYear:s,addYears:i,getYear:l,isBefore:d,isSameYear:f}=r,m=a(e),p=s(t),g=[];let b=m;for(;d(b,p)||f(b,p);)g.push(b),b=i(b,1);return o&&g.reverse(),g.map(h=>{const v=n.formatYearDropdown(h,r);return{value:l(h),label:v,disabled:!1}})}function Yc(e,t,n,r){let o=(r??new _e(n)).format(e,"PPPP");return t.today&&(o=`Today, ${o}`),t.selected&&(o=`${o}, selected`),o}const Fy=Yc;function Hc(e,t,n){return(n??new _e(t)).formatMonthYear(e)}const Ly=Hc;function $y(e,t,n,r){let o=(r??new _e(n)).format(e,"PPPP");return t!=null&&t.today&&(o=`Today, ${o}`),o}function By(e){return"Choose the Month"}function zy(){return""}function Vy(e){return"Go to the Next Month"}function Yy(e){return"Go to the Previous Month"}function Hy(e,t,n){return(n??new _e(t)).format(e,"cccc")}function Gy(e,t){return`Week ${e}`}function Uy(e){return"Week Number"}function qy(e){return"Choose the Year"}const Ky=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:Ly,labelDay:Fy,labelDayButton:Yc,labelGrid:Hc,labelGridcell:$y,labelMonthDropdown:By,labelNav:zy,labelNext:Vy,labelPrevious:Yy,labelWeekNumber:Gy,labelWeekNumberHeader:Uy,labelWeekday:Hy,labelYearDropdown:qy},Symbol.toStringTag,{value:"Module"})),pn=e=>e instanceof HTMLElement?e:null,Do=e=>[...e.querySelectorAll("[data-animated-month]")??[]],Xy=e=>pn(e.querySelector("[data-animated-month]")),Ao=e=>pn(e.querySelector("[data-animated-caption]")),jo=e=>pn(e.querySelector("[data-animated-weeks]")),Zy=e=>pn(e.querySelector("[data-animated-nav]")),Qy=e=>pn(e.querySelector("[data-animated-weekdays]"));function Jy(e,t,{classNames:n,months:r,focused:o,dateLib:a}){const s=O.useRef(null),i=O.useRef(r),l=O.useRef(!1);O.useLayoutEffect(()=>{const d=i.current;if(i.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||d.length===0||r.length!==d.length)return;const f=a.isSameMonth(r[0].date,d[0].date),m=a.isAfter(r[0].date,d[0].date),p=m?n[Me.caption_after_enter]:n[Me.caption_before_enter],g=m?n[Me.weeks_after_enter]:n[Me.weeks_before_enter],b=s.current,h=e.current.cloneNode(!0);if(h instanceof HTMLElement?(Do(h).forEach(w=>{if(!(w instanceof HTMLElement))return;const S=Xy(w);S&&w.contains(S)&&w.removeChild(S);const k=Ao(w);k&&k.classList.remove(p);const _=jo(w);_&&_.classList.remove(g)}),s.current=h):s.current=null,l.current||f||o)return;const v=b instanceof HTMLElement?Do(b):[],x=Do(e.current);if(x!=null&&x.every(y=>y instanceof HTMLElement)&&v&&v.every(y=>y instanceof HTMLElement)){l.current=!0,e.current.style.isolation="isolate";const y=Zy(e.current);y&&(y.style.zIndex="1"),x.forEach((w,S)=>{const k=v[S];if(!k)return;w.style.position="relative",w.style.overflow="hidden";const _=Ao(w);_&&_.classList.add(p);const C=jo(w);C&&C.classList.add(g);const E=()=>{l.current=!1,e.current&&(e.current.style.isolation=""),y&&(y.style.zIndex=""),_&&_.classList.remove(p),C&&C.classList.remove(g),w.style.position="",w.style.overflow="",w.contains(k)&&w.removeChild(k)};k.style.pointerEvents="none",k.style.position="absolute",k.style.overflow="hidden",k.setAttribute("aria-hidden","true");const $=Qy(k);$&&($.style.opacity="0");const z=Ao(k);z&&(z.classList.add(m?n[Me.caption_before_exit]:n[Me.caption_after_exit]),z.addEventListener("animationend",E));const G=jo(k);G&&G.classList.add(m?n[Me.weeks_before_exit]:n[Me.weeks_after_exit]),w.insertBefore(k,w.firstChild)})}})}function ew(e,t,n,r){const o=e[0],a=e[e.length-1],{ISOWeek:s,fixedWeeks:i,broadcastCalendar:l}=n??{},{addDays:d,differenceInCalendarDays:f,differenceInCalendarMonths:m,endOfBroadcastWeek:p,endOfISOWeek:g,endOfMonth:b,endOfWeek:h,isAfter:v,startOfBroadcastWeek:x,startOfISOWeek:y,startOfWeek:w}=r,S=l?x(o,r):s?y(o):w(o),k=l?p(a):s?g(b(a)):h(b(a)),_=f(k,S),C=m(a,o)+1,E=[];for(let G=0;G<=_;G++){const K=d(S,G);if(t&&v(K,t))break;E.push(K)}const z=(l?35:42)*C;if(i&&E.length<z){const G=z-E.length;for(let K=0;K<G;K++){const te=d(E[E.length-1],1);E.push(te)}}return E}function tw(e){const t=[];return e.reduce((n,r)=>{const o=r.weeks.reduce((a,s)=>a.concat(s.days.slice()),t.slice());return n.concat(o.slice())},t.slice())}function nw(e,t,n,r){const{numberOfMonths:o=1}=n,a=[];for(let s=0;s<o;s++){const i=r.addMonths(e,s);if(t&&i>t)break;a.push(i)}return a}function Gc(e,t,n,r){const{month:o,defaultMonth:a,today:s=r.today(),numberOfMonths:i=1}=e;let l=o||a||s;const{differenceInCalendarMonths:d,addMonths:f,startOfMonth:m}=r;if(n&&d(n,l)<i-1){const p=-1*(i-1);l=f(n,p)}return t&&d(l,t)<0&&(l=t),m(l)}function rw(e,t,n,r){const{addDays:o,endOfBroadcastWeek:a,endOfISOWeek:s,endOfMonth:i,endOfWeek:l,getISOWeek:d,getWeek:f,startOfBroadcastWeek:m,startOfISOWeek:p,startOfWeek:g}=r,b=e.reduce((h,v)=>{const x=n.broadcastCalendar?m(v,r):n.ISOWeek?p(v):g(v),y=n.broadcastCalendar?a(v):n.ISOWeek?s(i(v)):l(i(v)),w=t.filter(C=>C>=x&&C<=y),S=n.broadcastCalendar?35:42;if(n.fixedWeeks&&w.length<S){const C=t.filter(E=>{const $=S-w.length;return E>y&&E<=o(y,$)});w.push(...C)}const k=w.reduce((C,E)=>{const $=n.ISOWeek?d(E):f(E),z=C.find(K=>K.weekNumber===$),G=new Rc(E,v,r);return z?z.days.push(G):C.push(new qx($,[G])),C},[]),_=new Ux(v,k);return h.push(_),h},[]);return n.reverseMonths?b.reverse():b}function ow(e,t){let{startMonth:n,endMonth:r}=e;const{startOfYear:o,startOfDay:a,startOfMonth:s,endOfMonth:i,addYears:l,endOfYear:d,newDate:f,today:m}=t,{fromYear:p,toYear:g,fromMonth:b,toMonth:h}=e;!n&&b&&(n=b),!n&&p&&(n=t.newDate(p,0,1)),!r&&h&&(r=h),!r&&g&&(r=f(g,11,31));const v=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return n?n=s(n):p?n=f(p,0,1):!n&&v&&(n=o(l(e.today??m(),-100))),r?r=i(r):g?r=f(g,11,31):!r&&v&&(r=d(e.today??m())),[n&&a(n),r&&a(r)]}function aw(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:a=1}=n,{startOfMonth:s,addMonths:i,differenceInCalendarMonths:l}=r,d=o?a:1,f=s(e);if(!t)return i(f,d);if(!(l(t,e)<a))return i(f,d)}function sw(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:a}=n,{startOfMonth:s,addMonths:i,differenceInCalendarMonths:l}=r,d=o?a??1:1,f=s(e);if(!t)return i(f,-d);if(!(l(f,t)<=0))return i(f,-d)}function iw(e){const t=[];return e.reduce((n,r)=>n.concat(r.weeks.slice()),t.slice())}function sr(e,t){const[n,r]=O.useState(e);return[t===void 0?n:t,r]}function lw(e,t){const[n,r]=ow(e,t),{startOfMonth:o,endOfMonth:a}=t,s=Gc(e,n,r,t),[i,l]=sr(s,e.month?s:void 0);O.useEffect(()=>{const _=Gc(e,n,r,t);l(_)},[e.timeZone]);const d=nw(i,r,e,t),f=ew(d,e.endMonth?a(e.endMonth):void 0,e,t),m=rw(d,f,e,t),p=iw(m),g=tw(m),b=sw(i,n,e,t),h=aw(i,r,e,t),{disableNavigation:v,onMonthChange:x}=e,y=_=>p.some(C=>C.days.some(E=>E.isEqualTo(_))),w=_=>{if(v)return;let C=o(_);n&&C<o(n)&&(C=o(n)),r&&C>o(r)&&(C=o(r)),l(C),x==null||x(C)};return{months:m,weeks:p,days:g,navStart:n,navEnd:r,previousMonth:b,nextMonth:h,goToMonth:w,goToDay:_=>{y(_)||w(_.date)}}}var He;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(He||(He={}));function Uc(e){return!e[he.disabled]&&!e[he.hidden]&&!e[he.outside]}function cw(e,t,n,r){let o,a=-1;for(const s of e){const i=t(s);Uc(i)&&(i[he.focused]&&a<He.FocusedModifier?(o=s,a=He.FocusedModifier):r!=null&&r.isEqualTo(s)&&a<He.LastFocused?(o=s,a=He.LastFocused):n(s.date)&&a<He.Selected?(o=s,a=He.Selected):i[he.today]&&a<He.Today&&(o=s,a=He.Today))}return o||(o=e.find(s=>Uc(t(s)))),o}function dw(e,t,n,r,o,a,s){const{ISOWeek:i,broadcastCalendar:l}=a,{addDays:d,addMonths:f,addWeeks:m,addYears:p,endOfBroadcastWeek:g,endOfISOWeek:b,endOfWeek:h,max:v,min:x,startOfBroadcastWeek:y,startOfISOWeek:w,startOfWeek:S}=s;let _={day:d,week:m,month:f,year:p,startOfWeek:C=>l?y(C,s):i?w(C):S(C),endOfWeek:C=>l?g(C):i?b(C):h(C)}[e](n,t==="after"?1:-1);return t==="before"&&r?_=v([r,_]):t==="after"&&o&&(_=x([o,_])),_}function qc(e,t,n,r,o,a,s,i=0){if(i>365)return;const l=dw(e,t,n.date,r,o,a,s),d=!!(a.disabled&&Qe(l,a.disabled,s)),f=!!(a.hidden&&Qe(l,a.hidden,s)),m=l,p=new Rc(l,m,s);return!d&&!f?p:qc(e,t,p,r,o,a,s,i+1)}function uw(e,t,n,r,o){const{autoFocus:a}=e,[s,i]=O.useState(),l=cw(t.days,n,r||(()=>!1),s),[d,f]=O.useState(a?l:void 0);return{isFocusTarget:h=>!!(l!=null&&l.isEqualTo(h)),setFocused:f,focused:d,blur:()=>{i(d),f(void 0)},moveFocus:(h,v)=>{if(!d)return;const x=qc(h,v,d,t.navStart,t.navEnd,e,o);x&&(t.goToDay(x),f(x))}}}function fw(e,t){const{selected:n,required:r,onSelect:o}=e,[a,s]=sr(n,o?n:void 0),i=o?n:a,{isSameDay:l}=t,d=g=>(i==null?void 0:i.some(b=>l(b,g)))??!1,{min:f,max:m}=e;return{selected:i,select:(g,b,h)=>{let v=[...i??[]];if(d(g)){if((i==null?void 0:i.length)===f||r&&(i==null?void 0:i.length)===1)return;v=i==null?void 0:i.filter(x=>!l(x,g))}else(i==null?void 0:i.length)===m?v=[g]:v=[...v,g];return o||s(v),o==null||o(v,g,b,h),v},isSelected:d}}function mw(e,t,n=0,r=0,o=!1,a=Ye){const{from:s,to:i}=t||{},{isSameDay:l,isAfter:d,isBefore:f}=a;let m;if(!s&&!i)m={from:e,to:n>0?void 0:e};else if(s&&!i)l(s,e)?n===0?m={from:s,to:e}:o?m={from:s,to:void 0}:m=void 0:f(e,s)?m={from:e,to:s}:m={from:s,to:e};else if(s&&i)if(l(s,e)&&l(i,e))o?m={from:s,to:i}:m=void 0;else if(l(s,e))m={from:s,to:n>0?void 0:e};else if(l(i,e))m={from:e,to:n>0?void 0:e};else if(f(e,s))m={from:e,to:i};else if(d(e,s))m={from:s,to:e};else if(d(e,i))m={from:s,to:e};else throw new Error("Invalid range");if(m!=null&&m.from&&(m!=null&&m.to)){const p=a.differenceInCalendarDays(m.to,m.from);r>0&&p>r?m={from:e,to:void 0}:n>1&&p<n&&(m={from:e,to:void 0})}return m}function hw(e,t,n=Ye){const r=Array.isArray(t)?t:[t];let o=e.from;const a=n.differenceInCalendarDays(e.to,e.from),s=Math.min(a,6);for(let i=0;i<=s;i++){if(r.includes(o.getDay()))return!0;o=n.addDays(o,1)}return!1}function Kc(e,t,n=Ye){return Ze(e,t.from,!1,n)||Ze(e,t.to,!1,n)||Ze(t,e.from,!1,n)||Ze(t,e.to,!1,n)}function pw(e,t,n=Ye){const r=Array.isArray(t)?t:[t];if(r.filter(i=>typeof i!="function").some(i=>typeof i=="boolean"?i:n.isDate(i)?Ze(e,i,!1,n):Bc(i,n)?i.some(l=>Ze(e,l,!1,n)):To(i)?i.from&&i.to?Kc(e,{from:i.from,to:i.to},n):!1:$c(i)?hw(e,i.dayOfWeek,n):Wc(i)?n.isAfter(i.before,i.after)?Kc(e,{from:n.addDays(i.after,1),to:n.addDays(i.before,-1)},n):Qe(e.from,i,n)||Qe(e.to,i,n):Fc(i)||Lc(i)?Qe(e.from,i,n)||Qe(e.to,i,n):!1))return!0;const s=r.filter(i=>typeof i=="function");if(s.length){let i=e.from;const l=n.differenceInCalendarDays(e.to,e.from);for(let d=0;d<=l;d++){if(s.some(f=>f(i)))return!0;i=n.addDays(i,1)}}return!1}function gw(e,t){const{disabled:n,excludeDisabled:r,selected:o,required:a,onSelect:s}=e,[i,l]=sr(o,s?o:void 0),d=s?o:i;return{selected:d,select:(p,g,b)=>{const{min:h,max:v}=e,x=p?mw(p,d,h,v,a,t):void 0;return r&&n&&(x!=null&&x.from)&&x.to&&pw({from:x.from,to:x.to},n,t)&&(x.from=p,x.to=void 0),s||l(x),s==null||s(x,p,g,b),x},isSelected:p=>d&&Ze(d,p,!1,t)}}function bw(e,t){const{selected:n,required:r,onSelect:o}=e,[a,s]=sr(n,o?n:void 0),i=o?n:a,{isSameDay:l}=t;return{selected:i,select:(m,p,g)=>{let b=m;return!r&&i&&i&&l(m,i)&&(b=void 0),o||s(b),o==null||o(b,m,p,g),b},isSelected:m=>i?l(i,m):!1}}function vw(e,t){const n=bw(e,t),r=fw(e,t),o=gw(e,t);switch(e.mode){case"single":return n;case"multiple":return r;case"range":return o;default:return}}function xw(e){var Qc;let t=e;t.timeZone&&(t={...e},t.today&&(t.today=new we(t.today,t.timeZone)),t.month&&(t.month=new we(t.month,t.timeZone)),t.defaultMonth&&(t.defaultMonth=new we(t.defaultMonth,t.timeZone)),t.startMonth&&(t.startMonth=new we(t.startMonth,t.timeZone)),t.endMonth&&(t.endMonth=new we(t.endMonth,t.timeZone)),t.mode==="single"&&t.selected?t.selected=new we(t.selected,t.timeZone):t.mode==="multiple"&&t.selected?t.selected=(Qc=t.selected)==null?void 0:Qc.map(ae=>new we(ae,t.timeZone)):t.mode==="range"&&t.selected&&(t.selected={from:t.selected.from?new we(t.selected.from,t.timeZone):void 0,to:t.selected.to?new we(t.selected.to,t.timeZone):void 0}));const{components:n,formatters:r,labels:o,dateLib:a,locale:s,classNames:i}=O.useMemo(()=>{const ae={...Oo,...t.locale};return{dateLib:new _e({locale:ae,weekStartsOn:t.broadcastCalendar?1:t.weekStartsOn,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},t.dateLib),components:Cy(t.components),formatters:Ay(t.formatters),labels:{...Ky,...t.labels},locale:ae,classNames:{...Po(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.components,t.formatters,t.labels,t.classNames]),{captionLayout:l,mode:d,navLayout:f,numberOfMonths:m=1,onDayBlur:p,onDayClick:g,onDayFocus:b,onDayKeyDown:h,onDayMouseEnter:v,onDayMouseLeave:x,onNextClick:y,onPrevClick:w,showWeekNumber:S,styles:k}=t,{formatCaption:_,formatDay:C,formatMonthDropdown:E,formatWeekNumber:$,formatWeekNumberHeader:z,formatWeekdayName:G,formatYearDropdown:K}=r,te=lw(t,a),{days:U,months:Q,navStart:L,navEnd:X,previousMonth:P,nextMonth:ee,goToMonth:T}=te,V=ky(U,t,L,X,a),{isSelected:M,select:j,selected:I}=vw(t,a)??{},{blur:R,focused:J,isFocusTarget:A,moveFocus:B,setFocused:Z}=uw(t,te,V,M??(()=>!1),a),{labelDayButton:ne,labelGridcell:se,labelGrid:ie,labelMonthDropdown:ke,labelNav:Oe,labelPrevious:xt,labelNext:yt,labelWeekday:wt,labelWeekNumber:Ro,labelWeekNumberHeader:Vt,labelYearDropdown:Dw}=o,Aw=O.useMemo(()=>Iy(a,t.ISOWeek),[a,t.ISOWeek]),Xc=d!==void 0||g!==void 0,Io=O.useCallback(()=>{P&&(T(P),w==null||w(P))},[P,T,w]),Wo=O.useCallback(()=>{ee&&(T(ee),y==null||y(ee))},[T,ee,y]),jw=O.useCallback((ae,me)=>re=>{re.preventDefault(),re.stopPropagation(),Z(ae),j==null||j(ae.date,me,re),g==null||g(ae.date,me,re)},[j,g,Z]),Rw=O.useCallback((ae,me)=>re=>{Z(ae),b==null||b(ae.date,me,re)},[b,Z]),Iw=O.useCallback((ae,me)=>re=>{R(),p==null||p(ae.date,me,re)},[R,p]),Ww=O.useCallback((ae,me)=>re=>{const fe={ArrowLeft:[re.shiftKey?"month":"day",t.dir==="rtl"?"after":"before"],ArrowRight:[re.shiftKey?"month":"day",t.dir==="rtl"?"before":"after"],ArrowDown:[re.shiftKey?"year":"week","after"],ArrowUp:[re.shiftKey?"year":"week","before"],PageUp:[re.shiftKey?"year":"month","before"],PageDown:[re.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(fe[re.key]){re.preventDefault(),re.stopPropagation();const[Te,ce]=fe[re.key];B(Te,ce)}h==null||h(ae.date,me,re)},[B,h,t.dir]),Fw=O.useCallback((ae,me)=>re=>{v==null||v(ae.date,me,re)},[v]),Lw=O.useCallback((ae,me)=>re=>{x==null||x(ae.date,me,re)},[x]),$w=O.useCallback(ae=>me=>{const re=Number(me.target.value),fe=a.setMonth(a.startOfMonth(ae),re);T(fe)},[a,T]),Bw=O.useCallback(ae=>me=>{const re=Number(me.target.value),fe=a.setYear(a.startOfMonth(ae),re);T(fe)},[a,T]),{className:zw,style:Vw}=O.useMemo(()=>({className:[i[H.Root],t.className].filter(Boolean).join(" "),style:{...k==null?void 0:k[H.Root],...t.style}}),[i,t.className,t.style,k]),Yw=Ny(t),Zc=O.useRef(null);Jy(Zc,!!t.animate,{classNames:i,months:Q,focused:J,dateLib:a});const Hw={dayPickerProps:t,selected:I,select:j,isSelected:M,months:Q,nextMonth:ee,previousMonth:P,goToMonth:T,getModifiers:V,components:n,classNames:i,styles:k,labels:o,formatters:r};return O.createElement(Ic.Provider,{value:Hw},O.createElement(n.Root,{rootRef:t.animate?Zc:void 0,className:zw,style:Vw,dir:t.dir,id:t.id,lang:t.lang,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],"aria-labelledby":t["aria-labelledby"],...Yw},O.createElement(n.Months,{className:i[H.Months],style:k==null?void 0:k[H.Months]},!t.hideNavigation&&!f&&O.createElement(n.Nav,{"data-animated-nav":t.animate?"true":void 0,className:i[H.Nav],style:k==null?void 0:k[H.Nav],"aria-label":Oe(),onPreviousClick:Io,onNextClick:Wo,previousMonth:P,nextMonth:ee}),Q.map((ae,me)=>O.createElement(n.Month,{"data-animated-month":t.animate?"true":void 0,className:i[H.Month],style:k==null?void 0:k[H.Month],key:me,displayIndex:me,calendarMonth:ae},f==="around"&&!t.hideNavigation&&me===0&&O.createElement(n.PreviousMonthButton,{type:"button",className:i[H.PreviousMonthButton],tabIndex:P?void 0:-1,"aria-disabled":P?void 0:!0,"aria-label":xt(P),onClick:Io,"data-animated-button":t.animate?"true":void 0},O.createElement(n.Chevron,{disabled:P?void 0:!0,className:i[H.Chevron],orientation:t.dir==="rtl"?"right":"left"})),O.createElement(n.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:i[H.MonthCaption],style:k==null?void 0:k[H.MonthCaption],calendarMonth:ae,displayIndex:me},l!=null&&l.startsWith("dropdown")?O.createElement(n.DropdownNav,{className:i[H.Dropdowns],style:k==null?void 0:k[H.Dropdowns]},(()=>{const re=l==="dropdown"||l==="dropdown-months"?O.createElement(n.MonthsDropdown,{key:"month",className:i[H.MonthsDropdown],"aria-label":ke(),classNames:i,components:n,disabled:!!t.disableNavigation,onChange:$w(ae.date),options:jy(ae.date,L,X,r,a),style:k==null?void 0:k[H.Dropdown],value:a.getMonth(ae.date)}):O.createElement("span",{key:"month"},E(ae.date,a)),fe=l==="dropdown"||l==="dropdown-years"?O.createElement(n.YearsDropdown,{key:"year",className:i[H.YearsDropdown],"aria-label":Dw(a.options),classNames:i,components:n,disabled:!!t.disableNavigation,onChange:Bw(ae.date),options:Wy(L,X,r,a,!!t.reverseYears),style:k==null?void 0:k[H.Dropdown],value:a.getYear(ae.date)}):O.createElement("span",{key:"year"},K(ae.date,a));return a.getMonthYearOrder()==="year-first"?[fe,re]:[re,fe]})(),O.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},_(ae.date,a.options,a))):O.createElement(n.CaptionLabel,{className:i[H.CaptionLabel],role:"status","aria-live":"polite"},_(ae.date,a.options,a))),f==="around"&&!t.hideNavigation&&me===m-1&&O.createElement(n.NextMonthButton,{type:"button",className:i[H.NextMonthButton],tabIndex:ee?void 0:-1,"aria-disabled":ee?void 0:!0,"aria-label":yt(ee),onClick:Wo,"data-animated-button":t.animate?"true":void 0},O.createElement(n.Chevron,{disabled:ee?void 0:!0,className:i[H.Chevron],orientation:t.dir==="rtl"?"left":"right"})),me===m-1&&f==="after"&&!t.hideNavigation&&O.createElement(n.Nav,{"data-animated-nav":t.animate?"true":void 0,className:i[H.Nav],style:k==null?void 0:k[H.Nav],"aria-label":Oe(),onPreviousClick:Io,onNextClick:Wo,previousMonth:P,nextMonth:ee}),O.createElement(n.MonthGrid,{role:"grid","aria-multiselectable":d==="multiple"||d==="range","aria-label":ie(ae.date,a.options,a)||void 0,className:i[H.MonthGrid],style:k==null?void 0:k[H.MonthGrid]},!t.hideWeekdays&&O.createElement(n.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:i[H.Weekdays],style:k==null?void 0:k[H.Weekdays]},S&&O.createElement(n.WeekNumberHeader,{"aria-label":Vt(a.options),className:i[H.WeekNumberHeader],style:k==null?void 0:k[H.WeekNumberHeader],scope:"col"},z()),Aw.map(re=>O.createElement(n.Weekday,{"aria-label":wt(re,a.options,a),className:i[H.Weekday],key:String(re),style:k==null?void 0:k[H.Weekday],scope:"col"},G(re,a.options,a)))),O.createElement(n.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:i[H.Weeks],style:k==null?void 0:k[H.Weeks]},ae.weeks.map(re=>O.createElement(n.Week,{className:i[H.Week],key:re.weekNumber,style:k==null?void 0:k[H.Week],week:re},S&&O.createElement(n.WeekNumber,{week:re,style:k==null?void 0:k[H.WeekNumber],"aria-label":Ro(re.weekNumber,{locale:s}),className:i[H.WeekNumber],scope:"row",role:"rowheader"},$(re.weekNumber,a)),re.days.map(fe=>{const{date:Te}=fe,ce=V(fe);if(ce[he.focused]=!ce.hidden&&!!(J!=null&&J.isEqualTo(fe)),ce[Ie.selected]=(M==null?void 0:M(Te))||ce.selected,To(I)){const{from:Fo,to:Lo}=I;ce[Ie.range_start]=!!(Fo&&Lo&&a.isSameDay(Te,Fo)),ce[Ie.range_end]=!!(Fo&&Lo&&a.isSameDay(Te,Lo)),ce[Ie.range_middle]=Ze(I,Te,!0,a)}const Gw=Ry(ce,k,t.modifiersStyles),Uw=Sy(ce,i,t.modifiersClassNames),qw=!Xc&&!ce.hidden?se(Te,ce,a.options,a):void 0;return O.createElement(n.Day,{key:`${a.format(Te,"yyyy-MM-dd")}_${a.format(fe.displayMonth,"yyyy-MM")}`,day:fe,modifiers:ce,className:Uw.join(" "),style:Gw,role:"gridcell","aria-selected":ce.selected||void 0,"aria-label":qw,"data-day":a.format(Te,"yyyy-MM-dd"),"data-month":fe.outside?a.format(Te,"yyyy-MM"):void 0,"data-selected":ce.selected||void 0,"data-disabled":ce.disabled||void 0,"data-hidden":ce.hidden||void 0,"data-outside":fe.outside||void 0,"data-focused":ce.focused||void 0,"data-today":ce.today||void 0},!ce.hidden&&Xc?O.createElement(n.DayButton,{className:i[H.DayButton],style:k==null?void 0:k[H.DayButton],type:"button",day:fe,modifiers:ce,disabled:ce.disabled||void 0,tabIndex:A(fe)?0:-1,"aria-label":ne(Te,ce,a.options,a),onClick:jw(fe,ce),onBlur:Iw(fe,ce),onFocus:Rw(fe,ce),onKeyDown:Ww(fe,ce),onMouseEnter:Fw(fe,ce),onMouseLeave:Lw(fe,ce)},C(Te,a.options,a)):!ce.hidden&&C(fe.date,a.options,a))})))))))),t.footer&&O.createElement(n.Footer,{className:i[H.Footer],style:k==null?void 0:k[H.Footer],role:"status","aria-live":"polite"},t.footer)))}function yw({className:e,classNames:t,showOutsideDays:n=!0,captionLayout:r="label",buttonVariant:o="outline",formatters:a,components:s,...i}){const l=Po();return c.jsx(xw,{showOutsideDays:n,className:N("bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:r,formatters:{formatMonthDropdown:d=>d.toLocaleString("default",{month:"short"}),...a},classNames:{root:N("w-fit",l.root),months:N("flex gap-4 flex-col md:flex-row relative",l.months),month:N("flex flex-col w-full gap-4",l.month),nav:N("flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",l.nav),button_previous:N(hr({variant:o}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",l.button_previous),button_next:N(hr({variant:o}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",l.button_next),month_caption:N("flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",l.month_caption),dropdowns:N("w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",l.dropdowns),dropdown_root:N("relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",l.dropdown_root),dropdown:N("absolute bg-popover inset-0 opacity-0",l.dropdown),caption_label:N("select-none font-medium",r==="label"?"text-sm":"rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5",l.caption_label),table:"w-full border-collapse",weekdays:N("flex",l.weekdays),weekday:N("text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none",l.weekday),week:N("flex w-full mt-2",l.week),week_number_header:N("select-none w-(--cell-size)",l.week_number_header),week_number:N("text-[0.8rem] select-none text-muted-foreground",l.week_number),day:N("relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",l.day),range_start:N("rounded-l-md bg-accent",l.range_start),range_middle:N("rounded-none",l.range_middle),range_end:N("rounded-r-md bg-accent",l.range_end),today:N("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",l.today),outside:N("text-muted-foreground aria-selected:text-muted-foreground",l.outside),disabled:N("text-muted-foreground opacity-50",l.disabled),hidden:N("invisible",l.hidden),...t},components:{Root:({className:d,rootRef:f,...m})=>c.jsx("div",{"data-slot":"calendar",ref:f,className:N(d),...m}),Chevron:({className:d,orientation:f,...m})=>f==="left"?c.jsx(xr,{className:N("size-4",d),...m}):f==="right"?c.jsx(_n,{className:N("size-4",d),...m}):c.jsx(Nt,{className:N("size-4",d),...m}),DayButton:ww,WeekNumber:({children:d,...f})=>c.jsx("td",{...f,children:c.jsx("div",{className:"flex size-(--cell-size) items-center justify-center text-center",children:d})}),...s},...i})}function ww({className:e,day:t,modifiers:n,...r}){const o=Po(),a=u.useRef(null);return u.useEffect(()=>{var s;n.focused&&((s=a.current)==null||s.focus())},[n.focused]),c.jsx(Se,{ref:a,variant:"outline",size:"icon","data-day":t.date.toLocaleDateString(),"data-selected-single":n.selected&&!n.range_start&&!n.range_end&&!n.range_middle,"data-range-start":n.range_start,"data-range-end":n.range_end,"data-range-middle":n.range_middle,className:N("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70",o.day,e),...r})}const kw=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec"];function Sw(e){const[t,n]=u.useState(!1),o=(()=>{var b;return e.mode==="single"?e.date||new Date:((b=e.date)==null?void 0:b.from)||new Date})(),[a,s]=u.useState(o.getFullYear()),[i,l]=u.useState(o.getMonth()),d=b=>{if(l(b),n(!1),e.mode==="single"){const h=e.date,v=new Date(a,b,(h==null?void 0:h.getDate())||1);e.setDate(v)}else if(e.mode==="range"){const h=e.date;if(h!=null&&h.from){const v=new Date(a,b,h.from.getDate());e.setDate({from:v,to:h.to})}}},f=b=>{s(h=>b==="prev"?h-1:h+1)},m=b=>{const h=new Date(a,i);b==="prev"?h.setMonth(h.getMonth()-1):h.setMonth(h.getMonth()+1),s(h.getFullYear()),l(h.getMonth())},p=new Date(a,i).toLocaleString("default",{month:"long"});if(t)return c.jsxs(fo,{className:"w-[370px] p-6",children:[c.jsxs("div",{className:"flex items-center justify-between mb-6",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs("span",{className:"text-lg font-medium",children:[p," ",a]}),c.jsx(Nt,{className:"w-4 h-4"})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Se,{variant:"outline",size:"icon",onClick:()=>f("prev"),className:"h-8 w-8",children:c.jsx(xr,{className:"w-4 h-4"})}),c.jsx(Se,{variant:"outline",size:"icon",onClick:()=>f("next"),className:"h-8 w-8",children:c.jsx(_n,{className:"w-4 h-4"})})]})]}),c.jsx("div",{className:"grid grid-cols-3 gap-4 mb-6",children:kw.map((b,h)=>c.jsx(Se,{variant:h===i?"default":"outline",onClick:()=>d(h),className:N("h-12 text-sm font-medium",h===i&&"bg-black text-white hover:bg-black/90"),children:b},b))}),c.jsxs("div",{className:"flex justify-end gap-3",children:[c.jsx(Se,{variant:"outline",onClick:()=>n(!1),children:"Cancel"}),c.jsx(Se,{onClick:()=>n(!1),children:"Ok"})]})]});const g=()=>{const b={month:new Date(a,i),onMonthChange:h=>{s(h.getFullYear()),l(h.getMonth())},classNames:{month_caption:"flex items-center justify-between mb-4",caption_label:"text-lg font-medium cursor-pointer hover:bg-gray-100 px-2 py-1 rounded",nav:"flex items-center gap-2 hidden",button_previous:"h-8 w-8",button_next:"h-8 w-8",table:"w-full",weekdays:"grid grid-cols-7 mb-2",weekday:"text-center text-sm font-medium text-gray-600 py-2",week:"grid grid-cols-7",day:"aspect-square p-0",today:"bg-transparent border-2 border-black rounded-full",selected:"bg-black text-white rounded-full hover:bg-black/90",outside:"text-gray-400",range_middle:"bg-gray-100 rounded-none",range_start:"bg-black text-white rounded-l-full",range_end:"bg-black text-white rounded-r-full"},components:{MonthCaption:({calendarMonth:h})=>c.jsxs("div",{className:"flex items-center justify-between w-full mb-4",children:[c.jsxs(Se,{variant:"outline",onClick:()=>n(!0),className:"text-lg font-medium hover:bg-gray-100 px-2 py-1 h-auto",children:[h.date.toLocaleString("default",{month:"long",year:"numeric"}),c.jsx(Nt,{className:"w-4 h-4 ml-1"})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Se,{variant:"outline",size:"icon",onClick:()=>m("prev"),className:"h-8 w-8",children:c.jsx(xr,{className:"w-4 h-4"})}),c.jsx(Se,{variant:"outline",size:"icon",onClick:()=>m("next"),className:"h-8 w-8",children:c.jsx(_n,{className:"w-4 h-4"})})]})]})}};return e.mode==="single"?{...b,mode:"single",selected:e.date,onSelect:e.setDate}:{...b,mode:"range",selected:e.date,onSelect:e.setDate}};return c.jsxs(Sl,{children:[c.jsx(Cl,{children:"Open"}),c.jsx(fo,{className:"w-[370px] p-0 flex justify-center z-50",children:c.jsx(yw,{...g()})})]})}function Cw({className:e,...t}){return c.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:c.jsx("table",{"data-slot":"table",className:N("w-full caption-bottom text-sm bg-white/[0.1]",e),...t})})}function Nw({className:e,...t}){return c.jsx("thead",{"data-slot":"table-header",className:N("[&_tr]:border-b border-neutral-black-4",e),...t})}function Ew({className:e,...t}){return c.jsx("tbody",{"data-slot":"table-body",className:N("[&_tr:last-child]:border-0",e),...t})}function _w({className:e,...t}){return c.jsx("tfoot",{"data-slot":"table-footer",className:N("border-t border-neutral-black-4 font-medium [&>tr]:last:border-b-0",e),...t})}function Mw({className:e,...t}){return c.jsx("tr",{"data-slot":"table-row",className:N("bg-transparent border-b border-neutral-black-4 transition-colors",e),...t})}function Ow({className:e,...t}){return c.jsx("th",{"data-slot":"table-head",className:N("text-neutral-black-1 text-sm font-medium max-h-14 p-4 text-left align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t})}function Tw({className:e,...t}){return c.jsx("td",{"data-slot":"table-cell",className:N("p-4 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t})}function Pw({className:e,...t}){return c.jsx("caption",{"data-slot":"table-caption",className:N("text-neutral-black-1/80 text-sm",e),...t})}D.Avatar=ob,D.AvatarFallback=sb,D.AvatarImage=ab,D.Badge=jr,D.BaseInput=Ai,D.Breadcrumb=xb,D.BreadcrumbEllipsis=Nb,D.BreadcrumbItem=wb,D.BreadcrumbLink=kb,D.BreadcrumbList=yb,D.BreadcrumbPage=Sb,D.BreadcrumbSeparator=Cb,D.Button=Se,D.Card=Yg,D.Checkbox=Ja,D.DatePicker=Sw,D.Dialog=dm,D.DialogClose=fm,D.DialogContent=mm,D.DialogDescription=bm,D.DialogFooter=pm,D.DialogHeader=hm,D.DialogOverlay=Hs,D.DialogPortal=Ys,D.DialogTitle=gm,D.DialogTrigger=um,D.Divider=Ql,D.Input=ji,D.InputLabel=Ri,D.MultiSelect=Ll,D.Navigation=Mb,D.NavigationEnd=Tb,D.NavigationStart=Ob,D.NotificationContent=wv,D.NotificationContentRoot=uc,D.Page404=vb,D.PasswordInput=dp,D.Placeholder=gb,D.ProgressIndicator=Jl,D.RadioGroup=Wa,D.RadioGroupItem=Fa,D.SearchInput=up,D.SelectOption=zg,D.Sidebar=Xb,D.SidebarContent=rv,D.SidebarFooter=tv,D.SidebarGroup=ov,D.SidebarGroupAction=sv,D.SidebarGroupContent=iv,D.SidebarGroupLabel=av,D.SidebarHeader=ev,D.SidebarInset=Jb,D.SidebarMenu=lv,D.SidebarMenuAction=fv,D.SidebarMenuBadge=mv,D.SidebarMenuButton=uv,D.SidebarMenuItem=cv,D.SidebarMenuSkeleton=hv,D.SidebarMenuSub=pv,D.SidebarMenuSubButton=bv,D.SidebarMenuSubItem=gv,D.SidebarProvider=Kb,D.SidebarRail=Qb,D.SidebarSeparator=nv,D.SidebarTrigger=Zb,D.SingleSelect=Fl,D.Skeleton=Co,D.Table=Cw,D.TableBody=Ew,D.TableCaption=Pw,D.TableCell=Tw,D.TableFooter=_w,D.TableHead=Ow,D.TableHeader=Nw,D.TableRow=Mw,D.Tabs=$b,D.TabsContent=Vb,D.TabsList=Bb,D.TabsTrigger=zb,D.Timeline=pb,D.Toggle=eu,D.Tooltip=sp,D.TooltipContent=lp,D.TooltipProvider=Di,D.TooltipTrigger=ip,D.cn=N,D.useSidebar=sn,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})});