@datawire-ai/busyfile-design-library 1.11.0 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +202 -9
- package/dist/index.js +1835 -1644
- package/dist/index.umd.cjs +32 -32
- package/dist/style.css +1 -1
- package/package.json +2 -1
package/dist/index.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(Z,oe){typeof exports=="object"&&typeof module<"u"?oe(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],oe):(Z=typeof globalThis<"u"?globalThis:Z||self,oe(Z.BusyFileDesignSystem={},Z.React,Z.ReactDOM))})(this,function(Z,oe,br){"use strict";function yr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const l=yr(oe),At=yr(br);var dn={exports:{}},ct={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var wr;function
|
|
9
|
+
*/var wr;function Us(){if(wr)return ct;wr=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 ct.Fragment=t,ct.jsx=n,ct.jsxs=n,ct}var ut={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,13 +14,13 @@
|
|
|
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 Sr;function
|
|
17
|
+
*/var Sr;function Gs(){return Sr||(Sr=1,process.env.NODE_ENV!=="production"&&function(){function e(C){if(C==null)return null;if(typeof C=="function")return C.$$typeof===Y?null:C.displayName||C.name||null;if(typeof C=="string")return C;switch(C){case m:return"Fragment";case y:return"Profiler";case x:return"StrictMode";case R:return"Suspense";case N:return"SuspenseList";case z:return"Activity"}if(typeof C=="object")switch(typeof C.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),C.$$typeof){case v:return"Portal";case w:return(C.displayName||"Context")+".Provider";case b:return(C._context.displayName||"Context")+".Consumer";case E:var L=C.render;return C=C.displayName,C||(C=L.displayName||L.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case P:return L=C.displayName||null,L!==null?L:e(C.type)||"Memo";case T:L=C._payload,C=C._init;try{return e(C(L))}catch{}}return null}function t(C){return""+C}function n(C){try{t(C);var L=!1}catch{L=!0}if(L){L=console;var S=L.error,_=typeof Symbol=="function"&&Symbol.toStringTag&&C[Symbol.toStringTag]||C.constructor.name||"Object";return S.call(L,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_),t(C)}}function r(C){if(C===m)return"<>";if(typeof C=="object"&&C!==null&&C.$$typeof===T)return"<...>";try{var L=e(C);return L?"<"+L+">":"<...>"}catch{return"<...>"}}function o(){var C=Q.A;return C===null?null:C.getOwner()}function a(){return Error("react-stack-top-frame")}function s(C){if(X.call(C,"key")){var L=Object.getOwnPropertyDescriptor(C,"key").get;if(L&&L.isReactWarning)return!1}return C.key!==void 0}function i(C,L){function S(){K||(K=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",L))}S.isReactWarning=!0,Object.defineProperty(C,"key",{get:S,configurable:!0})}function c(){var C=e(this.type);return $[C]||($[C]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),C=this.props.ref,C!==void 0?C:null}function u(C,L,S,_,M,O,W,A){return S=O.ref,C={$$typeof:h,type:C,key:L,props:O,_owner:M},(S!==void 0?S:null)!==null?Object.defineProperty(C,"ref",{enumerable:!1,get:c}):Object.defineProperty(C,"ref",{enumerable:!1,value:null}),C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(C,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(C,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:W}),Object.defineProperty(C,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:A}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C}function p(C,L,S,_,M,O,W,A){var D=L.children;if(D!==void 0)if(_)if(ee(D)){for(_=0;_<D.length;_++)d(D[_]);Object.freeze&&Object.freeze(D)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else d(D);if(X.call(L,"key")){D=e(C);var B=Object.keys(L).filter(function(ne){return ne!=="key"});_=0<B.length?"{key: someKey, "+B.join(": ..., ")+": ...}":"{key: someKey}",te[D+_]||(B=0<B.length?"{"+B.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
18
|
let props = %s;
|
|
19
19
|
<%s {...props} />
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,N,D,B,D),ee[D+N]=!0)}if(D=null,S!==void 0&&(n(S),D=""+S),a(L)&&(n(L.key),D=""+L.key),"key"in L){S={};for(var U in L)U!=="key"&&(S[U]=L[U])}else S=L;return D&&i(S,typeof C=="function"?C.displayName||C.name||"Unknown":C),u(C,D,O,M,o(),S,W,A)}function d(C){typeof C=="object"&&C!==null&&C.$$typeof===g&&C._store&&(C._store.validated=1)}var h=oe,g=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),Y=Symbol.for("react.client.reference"),Z=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=Object.prototype.hasOwnProperty,J=Array.isArray,F=console.createTask?console.createTask:function(){return null};h={"react-stack-bottom-frame":function(C){return C()}};var K,$={},z=h["react-stack-bottom-frame"].bind(h,s)(),k=F(r(s)),ee={};ut.Fragment=m,ut.jsx=function(C,L,S,N,M){var O=1e4>Z.recentlyCreatedOwnerStacks++;return f(C,L,S,!1,N,M,O?Error("react-stack-top-frame"):z,O?F(r(C)):k)},ut.jsxs=function(C,L,S,N,M){var O=1e4>Z.recentlyCreatedOwnerStacks++;return f(C,L,S,!0,N,M,O?Error("react-stack-top-frame"):z,O?F(r(C)):k)}}()),ut}process.env.NODE_ENV==="production"?dn.exports=Wa():dn.exports=Ha();var p=dn.exports;function Cr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Le(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Cr(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():Cr(e[o],null)}}}}function se(...e){return l.useCallback(Le(...e),e)}function $e(e){const t=Ua(e),n=l.forwardRef((r,o)=>{const{children:s,...a}=r,i=l.Children.toArray(s),c=i.find(Ya);if(c){const u=c.props.children,f=i.map(d=>d===c?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:d);return p.jsx(t,{...a,ref:o,children:l.isValidElement(u)?l.cloneElement(u,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var fn=$e("Slot");function Ua(e){const t=l.forwardRef((n,r)=>{const{children:o,...s}=n;if(l.isValidElement(o)){const a=qa(o),i=Ka(s,o.props);return o.type!==l.Fragment&&(i.ref=r?Le(r,a):a),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Er=Symbol("radix.slottable");function Ga(e){const t=({children:n})=>p.jsx(p.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Er,t}function Ya(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Er}function Ka(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const c=s(...i);return o(...i),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function qa(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function kr(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=kr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Rr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=kr(e))&&(r&&(r+=" "),r+=t);return r}const pn="-",Xa=e=>{const t=Ja(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const i=a.split(pn);return i[0]===""&&i.length!==1&&i.shift(),Pr(i,t)||Za(a)},getConflictingClassGroupIds:(a,i)=>{const c=n[a]||[];return i&&r[a]?[...c,...r[a]]:c}}},Pr=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Pr(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(pn);return(a=t.validators.find(({validator:i})=>i(s)))==null?void 0:a.classGroupId},Ar=/^\[(.+)\]$/,Za=e=>{if(Ar.test(e)){const t=Ar.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Ja=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)mn(n[o],r,o,t);return r},mn=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:Tr(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(Qa(o)){mn(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,a])=>{mn(a,Tr(t,s),n,r)})})},Tr=(e,t)=>{let n=e;return t.split(pn).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Qa=e=>e.isThemeGetter,ei=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,a)=>{n.set(s,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return o(s,a),a},set(s,a){n.has(s)?n.set(s,a):o(s,a)}}},gn="!",hn=":",ti=hn.length,ni=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let a=0,i=0,c=0,u;for(let v=0;v<o.length;v++){let m=o[v];if(a===0&&i===0){if(m===hn){s.push(o.slice(c,v)),c=v+ti;continue}if(m==="/"){u=v;continue}}m==="["?a++:m==="]"?a--:m==="("?i++:m===")"&&i--}const f=s.length===0?o:o.substring(c),d=ri(f),h=d!==f,g=u&&u>c?u-c:void 0;return{modifiers:s,hasImportantModifier:h,baseClassName:d,maybePostfixModifierPosition:g}};if(t){const o=t+hn,s=r;r=a=>a.startsWith(o)?s(a.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:a,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},ri=e=>e.endsWith(gn)?e.substring(0,e.length-1):e.startsWith(gn)?e.substring(1):e,oi=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let s=[];return r.forEach(a=>{a[0]==="["||t[a]?(o.push(...s.sort(),a),s=[]):s.push(a)}),o.push(...s.sort()),o}},si=e=>({cache:ei(e.cacheSize),parseClassName:ni(e),sortModifiers:oi(e),...Xa(e)}),ai=/\s+/,ii=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,a=[],i=e.trim().split(ai);let c="";for(let u=i.length-1;u>=0;u-=1){const f=i[u],{isExternal:d,modifiers:h,hasImportantModifier:g,baseClassName:v,maybePostfixModifierPosition:m}=n(f);if(d){c=f+(c.length>0?" "+c:c);continue}let x=!!m,y=r(x?v.substring(0,m):v);if(!y){if(!x){c=f+(c.length>0?" "+c:c);continue}if(y=r(v),!y){c=f+(c.length>0?" "+c:c);continue}x=!1}const b=s(h).join(":"),w=g?b+gn:b,E=w+y;if(a.includes(E))continue;a.push(E);const R=o(y,x);for(let _=0;_<R.length;++_){const P=R[_];a.push(w+P)}c=f+(c.length>0?" "+c:c)}return c};function li(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=_r(t))&&(r&&(r+=" "),r+=n);return r}const _r=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=_r(e[r]))&&(n&&(n+=" "),n+=t);return n};function ci(e,...t){let n,r,o,s=a;function a(c){const u=t.reduce((f,d)=>d(f),e());return n=si(u),r=n.cache.get,o=n.cache.set,s=i,i(c)}function i(c){const u=r(c);if(u)return u;const f=ii(c,n);return o(c,f),f}return function(){return s(li.apply(null,arguments))}}const ae=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Nr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Or=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ui=/^\d+\/\d+$/,di=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,fi=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,pi=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,mi=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,gi=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ge=e=>ui.test(e),G=e=>!!e&&!Number.isNaN(Number(e)),Re=e=>!!e&&Number.isInteger(Number(e)),vn=e=>e.endsWith("%")&&G(e.slice(0,-1)),Ce=e=>di.test(e),hi=()=>!0,vi=e=>fi.test(e)&&!pi.test(e),Ir=()=>!1,xi=e=>mi.test(e),bi=e=>gi.test(e),yi=e=>!I(e)&&!j(e),wi=e=>Ye(e,$r,Ir),I=e=>Nr.test(e),Fe=e=>Ye(e,Fr,vi),xn=e=>Ye(e,Ri,G),jr=e=>Ye(e,Dr,Ir),Si=e=>Ye(e,Lr,bi),Tt=e=>Ye(e,zr,xi),j=e=>Or.test(e),dt=e=>Ke(e,Fr),Ci=e=>Ke(e,Pi),Mr=e=>Ke(e,Dr),Ei=e=>Ke(e,$r),ki=e=>Ke(e,Lr),_t=e=>Ke(e,zr,!0),Ye=(e,t,n)=>{const r=Nr.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ke=(e,t,n=!1)=>{const r=Or.exec(e);return r?r[1]?t(r[1]):n:!1},Dr=e=>e==="position"||e==="percentage",Lr=e=>e==="image"||e==="url",$r=e=>e==="length"||e==="size"||e==="bg-size",Fr=e=>e==="length",Ri=e=>e==="number",Pi=e=>e==="family-name",zr=e=>e==="shadow",Ai=ci(()=>{const e=ae("color"),t=ae("font"),n=ae("text"),r=ae("font-weight"),o=ae("tracking"),s=ae("leading"),a=ae("breakpoint"),i=ae("container"),c=ae("spacing"),u=ae("radius"),f=ae("shadow"),d=ae("inset-shadow"),h=ae("text-shadow"),g=ae("drop-shadow"),v=ae("blur"),m=ae("perspective"),x=ae("aspect"),y=ae("ease"),b=ae("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],R=()=>[...E(),j,I],_=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],T=()=>[j,I,c],V=()=>[Ge,"full","auto",...T()],Y=()=>[Re,"none","subgrid",j,I],Z=()=>["auto",{span:["full",Re,j,I]},Re,j,I],q=()=>[Re,"auto",j,I],J=()=>["auto","min","max","fr",j,I],F=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],K=()=>["start","end","center","stretch","center-safe","end-safe"],$=()=>["auto",...T()],z=()=>[Ge,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...T()],k=()=>[e,j,I],ee=()=>[...E(),Mr,jr,{position:[j,I]}],C=()=>["no-repeat",{repeat:["","x","y","space","round"]}],L=()=>["auto","cover","contain",Ei,wi,{size:[j,I]}],S=()=>[vn,dt,Fe],N=()=>["","none","full",u,j,I],M=()=>["",G,dt,Fe],O=()=>["solid","dashed","dotted","double"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],A=()=>[G,vn,Mr,jr],D=()=>["","none",v,j,I],B=()=>["none",G,j,I],U=()=>["none",G,j,I],te=()=>[G,j,I],ne=()=>[Ge,"full",...T()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ce],breakpoint:[Ce],color:[hi],container:[Ce],"drop-shadow":[Ce],ease:["in","out","in-out"],font:[yi],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ce],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ce],shadow:[Ce],spacing:["px",G],text:[Ce],"text-shadow":[Ce],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ge,I,j,x]}],container:["container"],columns:[{columns:[G,I,j,i]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:R()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:V()}],"inset-x":[{"inset-x":V()}],"inset-y":[{"inset-y":V()}],start:[{start:V()}],end:[{end:V()}],top:[{top:V()}],right:[{right:V()}],bottom:[{bottom:V()}],left:[{left:V()}],visibility:["visible","invisible","collapse"],z:[{z:[Re,"auto",j,I]}],basis:[{basis:[Ge,"full","auto",i,...T()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[G,Ge,"auto","initial","none",I]}],grow:[{grow:["",G,j,I]}],shrink:[{shrink:["",G,j,I]}],order:[{order:[Re,"first","last","none",j,I]}],"grid-cols":[{"grid-cols":Y()}],"col-start-end":[{col:Z()}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":Y()}],"row-start-end":[{row:Z()}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":J()}],"auto-rows":[{"auto-rows":J()}],gap:[{gap:T()}],"gap-x":[{"gap-x":T()}],"gap-y":[{"gap-y":T()}],"justify-content":[{justify:[...F(),"normal"]}],"justify-items":[{"justify-items":[...K(),"normal"]}],"justify-self":[{"justify-self":["auto",...K()]}],"align-content":[{content:["normal",...F()]}],"align-items":[{items:[...K(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...K(),{baseline:["","last"]}]}],"place-content":[{"place-content":F()}],"place-items":[{"place-items":[...K(),"baseline"]}],"place-self":[{"place-self":["auto",...K()]}],p:[{p:T()}],px:[{px:T()}],py:[{py:T()}],ps:[{ps:T()}],pe:[{pe:T()}],pt:[{pt:T()}],pr:[{pr:T()}],pb:[{pb:T()}],pl:[{pl:T()}],m:[{m:$()}],mx:[{mx:$()}],my:[{my:$()}],ms:[{ms:$()}],me:[{me:$()}],mt:[{mt:$()}],mr:[{mr:$()}],mb:[{mb:$()}],ml:[{ml:$()}],"space-x":[{"space-x":T()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":T()}],"space-y-reverse":["space-y-reverse"],size:[{size:z()}],w:[{w:[i,"screen",...z()]}],"min-w":[{"min-w":[i,"screen","none",...z()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[a]},...z()]}],h:[{h:["screen","lh",...z()]}],"min-h":[{"min-h":["screen","lh","none",...z()]}],"max-h":[{"max-h":["screen","lh",...z()]}],"font-size":[{text:["base",n,dt,Fe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,j,xn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",vn,I]}],"font-family":[{font:[Ci,I,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,j,I]}],"line-clamp":[{"line-clamp":[G,"none",j,xn]}],leading:[{leading:[s,...T()]}],"list-image":[{"list-image":["none",j,I]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",j,I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...O(),"wavy"]}],"text-decoration-thickness":[{decoration:[G,"from-font","auto",j,Fe]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[G,"auto",j,I]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",j,I]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",j,I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ee()}],"bg-repeat":[{bg:C()}],"bg-size":[{bg:L()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Re,j,I],radial:["",j,I],conic:[Re,j,I]},ki,Si]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:S()}],"gradient-via-pos":[{via:S()}],"gradient-to-pos":[{to:S()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:N()}],"rounded-s":[{"rounded-s":N()}],"rounded-e":[{"rounded-e":N()}],"rounded-t":[{"rounded-t":N()}],"rounded-r":[{"rounded-r":N()}],"rounded-b":[{"rounded-b":N()}],"rounded-l":[{"rounded-l":N()}],"rounded-ss":[{"rounded-ss":N()}],"rounded-se":[{"rounded-se":N()}],"rounded-ee":[{"rounded-ee":N()}],"rounded-es":[{"rounded-es":N()}],"rounded-tl":[{"rounded-tl":N()}],"rounded-tr":[{"rounded-tr":N()}],"rounded-br":[{"rounded-br":N()}],"rounded-bl":[{"rounded-bl":N()}],"border-w":[{border:M()}],"border-w-x":[{"border-x":M()}],"border-w-y":[{"border-y":M()}],"border-w-s":[{"border-s":M()}],"border-w-e":[{"border-e":M()}],"border-w-t":[{"border-t":M()}],"border-w-r":[{"border-r":M()}],"border-w-b":[{"border-b":M()}],"border-w-l":[{"border-l":M()}],"divide-x":[{"divide-x":M()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":M()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...O(),"hidden","none"]}],"divide-style":[{divide:[...O(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...O(),"none","hidden"]}],"outline-offset":[{"outline-offset":[G,j,I]}],"outline-w":[{outline:["",G,dt,Fe]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",f,_t,Tt]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",d,_t,Tt]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[G,Fe]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":M()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",h,_t,Tt]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[G,j,I]}],"mix-blend":[{"mix-blend":[...W(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":W()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[G]}],"mask-image-linear-from-pos":[{"mask-linear-from":A()}],"mask-image-linear-to-pos":[{"mask-linear-to":A()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":A()}],"mask-image-t-to-pos":[{"mask-t-to":A()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":A()}],"mask-image-r-to-pos":[{"mask-r-to":A()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":A()}],"mask-image-b-to-pos":[{"mask-b-to":A()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":A()}],"mask-image-l-to-pos":[{"mask-l-to":A()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":A()}],"mask-image-x-to-pos":[{"mask-x-to":A()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":A()}],"mask-image-y-to-pos":[{"mask-y-to":A()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[j,I]}],"mask-image-radial-from-pos":[{"mask-radial-from":A()}],"mask-image-radial-to-pos":[{"mask-radial-to":A()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":E()}],"mask-image-conic-pos":[{"mask-conic":[G]}],"mask-image-conic-from-pos":[{"mask-conic-from":A()}],"mask-image-conic-to-pos":[{"mask-conic-to":A()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ee()}],"mask-repeat":[{mask:C()}],"mask-size":[{mask:L()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",j,I]}],filter:[{filter:["","none",j,I]}],blur:[{blur:D()}],brightness:[{brightness:[G,j,I]}],contrast:[{contrast:[G,j,I]}],"drop-shadow":[{"drop-shadow":["","none",g,_t,Tt]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",G,j,I]}],"hue-rotate":[{"hue-rotate":[G,j,I]}],invert:[{invert:["",G,j,I]}],saturate:[{saturate:[G,j,I]}],sepia:[{sepia:["",G,j,I]}],"backdrop-filter":[{"backdrop-filter":["","none",j,I]}],"backdrop-blur":[{"backdrop-blur":D()}],"backdrop-brightness":[{"backdrop-brightness":[G,j,I]}],"backdrop-contrast":[{"backdrop-contrast":[G,j,I]}],"backdrop-grayscale":[{"backdrop-grayscale":["",G,j,I]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[G,j,I]}],"backdrop-invert":[{"backdrop-invert":["",G,j,I]}],"backdrop-opacity":[{"backdrop-opacity":[G,j,I]}],"backdrop-saturate":[{"backdrop-saturate":[G,j,I]}],"backdrop-sepia":[{"backdrop-sepia":["",G,j,I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":T()}],"border-spacing-x":[{"border-spacing-x":T()}],"border-spacing-y":[{"border-spacing-y":T()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",j,I]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[G,"initial",j,I]}],ease:[{ease:["linear","initial",y,j,I]}],delay:[{delay:[G,j,I]}],animate:[{animate:["none",b,j,I]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,j,I]}],"perspective-origin":[{"perspective-origin":R()}],rotate:[{rotate:B()}],"rotate-x":[{"rotate-x":B()}],"rotate-y":[{"rotate-y":B()}],"rotate-z":[{"rotate-z":B()}],scale:[{scale:U()}],"scale-x":[{"scale-x":U()}],"scale-y":[{"scale-y":U()}],"scale-z":[{"scale-z":U()}],"scale-3d":["scale-3d"],skew:[{skew:te()}],"skew-x":[{"skew-x":te()}],"skew-y":[{"skew-y":te()}],transform:[{transform:[j,I,"","none","gpu","cpu"]}],"transform-origin":[{origin:R()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ne()}],"translate-x":[{"translate-x":ne()}],"translate-y":[{"translate-y":ne()}],"translate-z":[{"translate-z":ne()}],"translate-none":["translate-none"],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",j,I]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",j,I]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[G,dt,Fe,xn]}],stroke:[{stroke:["none",...k()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function re(...e){return Ai(Rr(e))}const Vr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Br=Rr,Pe=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Br(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,a=Object.keys(o).map(u=>{const f=n==null?void 0:n[u],d=s==null?void 0:s[u];if(f===null)return null;const h=Vr(f)||Vr(d);return o[u][h]}),i=n&&Object.entries(n).reduce((u,f)=>{let[d,h]=f;return h===void 0||(u[d]=h),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:d,className:h,...g}=f;return Object.entries(g).every(v=>{let[m,x]=v;return Array.isArray(x)?x.includes({...s,...i}[m]):{...s,...i}[m]===x})?[...u,d,h]:u},[]);return Br(e,a,c,n==null?void 0:n.class,n==null?void 0:n.className)},Ti=Pe("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:ring-2 focus-visible:ring-offset-2",{variants:{variant:{default:"bg-neutral-black-1 text-sm font-normal text-white shadow-sm hover:bg-neutral-black-2 focus-visible:ring-neutral-black-1",primary:"bg-neutral-black-5 text-sm font-normal text-neutral-70 hover:bg-neutral-black-5 focus-visible:ring-bg-neutral-black-5",outline:"bg-transparent text-black hover:bg-neutral-black-2 focus-visible:ring-4 focus-visible:ring-bg-surface border border-bg-neutral-black-2"},size:{default:"h-9 px-4 py-2",sm:"h-8 px-3 text-xs",lg:"h-10 px-6",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}});function _i({className:e,variant:t,size:n,asChild:r=!1,children:o,...s}){const a=r?fn:"button";return p.jsx(a,{"data-slot":"button",className:re(Ti({variant:t,size:n}),e),...s,children:o})}function X(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Ni(e,t){const n=l.createContext(t),r=s=>{const{children:a,...i}=s,c=l.useMemo(()=>i,Object.values(i));return p.jsx(n.Provider,{value:c,children:a})};r.displayName=e+"Provider";function o(s){const a=l.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function ze(e,t=[]){let n=[];function r(s,a){const i=l.createContext(a),c=n.length;n=[...n,a];const u=d=>{var y;const{scope:h,children:g,...v}=d,m=((y=h==null?void 0:h[e])==null?void 0:y[c])||i,x=l.useMemo(()=>v,Object.values(v));return p.jsx(m.Provider,{value:x,children:g})};u.displayName=s+"Provider";function f(d,h){var m;const g=((m=h==null?void 0:h[e])==null?void 0:m[c])||i,v=l.useContext(g);if(v)return v;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=n.map(a=>l.createContext(a));return function(i){const c=(i==null?void 0:i[e])||s;return l.useMemo(()=>({[`__scope${e}`]:{...i,[e]:c}}),[i,c])}};return o.scopeName=e,[r,Oi(o,...t)]}function Oi(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((i,{useScope:c,scopeName:u})=>{const d=c(s)[`__scope${u}`];return{...i,...d}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var ie=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},Ii=l[" useId ".trim().toString()]||(()=>{}),ji=0;function le(e){const[t,n]=l.useState(Ii());return ie(()=>{n(r=>r??String(ji++))},[e]),e||(t?`radix-${t}`:"")}var Mi=l[" useInsertionEffect ".trim().toString()]||ie;function ft({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,a]=Di({defaultProp:t,onChange:n}),i=e!==void 0,c=i?e:o;{const f=l.useRef(e!==void 0);l.useEffect(()=>{const d=f.current;d!==i&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=i},[i,r])}const u=l.useCallback(f=>{var d;if(i){const h=Li(f)?f(e):f;h!==e&&((d=a.current)==null||d.call(a,h))}else s(f)},[i,e,s,a]);return[c,u]}function Di({defaultProp:e,onChange:t}){const[n,r]=l.useState(e),o=l.useRef(n),s=l.useRef(t);return Mi(()=>{s.current=t},[t]),l.useEffect(()=>{var a;o.current!==n&&((a=s.current)==null||a.call(s,n),o.current=n)},[n,o]),[n,r,s]}function Li(e){return typeof e=="function"}var $i=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],H=$i.reduce((e,t)=>{const n=$e(`Primitive.${t}`),r=l.forwardRef((o,s)=>{const{asChild:a,...i}=o,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(c,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Fi(e,t){e&&At.flushSync(()=>e.dispatchEvent(t))}function Ae(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function zi(e,t=globalThis==null?void 0:globalThis.document){const n=Ae(e);l.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Vi="DismissableLayer",bn="dismissableLayer.update",Bi="dismissableLayer.pointerDownOutside",Wi="dismissableLayer.focusOutside",Wr,Hr=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pt=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:i,...c}=e,u=l.useContext(Hr),[f,d]=l.useState(null),h=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=l.useState({}),v=se(t,P=>d(P)),m=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(x),b=f?m.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,E=b>=y,R=Gi(P=>{const T=P.target,V=[...u.branches].some(Y=>Y.contains(T));!E||V||(o==null||o(P),a==null||a(P),P.defaultPrevented||i==null||i())},h),_=Yi(P=>{const T=P.target;[...u.branches].some(Y=>Y.contains(T))||(s==null||s(P),a==null||a(P),P.defaultPrevented||i==null||i())},h);return zi(P=>{b===u.layers.size-1&&(r==null||r(P),!P.defaultPrevented&&i&&(P.preventDefault(),i()))},h),l.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Wr=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Ur(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Wr)}},[f,h,n,u]),l.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Ur())},[f,u]),l.useEffect(()=>{const P=()=>g({});return document.addEventListener(bn,P),()=>document.removeEventListener(bn,P)},[]),p.jsx(H.div,{...c,ref:v,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:X(e.onFocusCapture,_.onFocusCapture),onBlurCapture:X(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:X(e.onPointerDownCapture,R.onPointerDownCapture)})});pt.displayName=Vi;var Hi="DismissableLayerBranch",Ui=l.forwardRef((e,t)=>{const n=l.useContext(Hr),r=l.useRef(null),o=se(t,r);return l.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),p.jsx(H.div,{...e,ref:o})});Ui.displayName=Hi;function Gi(e,t=globalThis==null?void 0:globalThis.document){const n=Ae(e),r=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const s=i=>{if(i.target&&!r.current){let c=function(){Gr(Bi,n,u,{discrete:!0})};const u={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Yi(e,t=globalThis==null?void 0:globalThis.document){const n=Ae(e),r=l.useRef(!1);return l.useEffect(()=>{const o=s=>{s.target&&!r.current&&Gr(Wi,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ur(){const e=new CustomEvent(bn);document.dispatchEvent(e)}function Gr(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Fi(o,s):o.dispatchEvent(s)}var yn="focusScope.autoFocusOnMount",wn="focusScope.autoFocusOnUnmount",Yr={bubbles:!1,cancelable:!0},Ki="FocusScope",Nt=l.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[i,c]=l.useState(null),u=Ae(o),f=Ae(s),d=l.useRef(null),h=se(t,m=>c(m)),g=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let m=function(w){if(g.paused||!i)return;const E=w.target;i.contains(E)?d.current=E:Te(d.current,{select:!0})},x=function(w){if(g.paused||!i)return;const E=w.relatedTarget;E!==null&&(i.contains(E)||Te(d.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const R of w)R.removedNodes.length>0&&Te(i)};document.addEventListener("focusin",m),document.addEventListener("focusout",x);const b=new MutationObserver(y);return i&&b.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",x),b.disconnect()}}},[r,i,g.paused]),l.useEffect(()=>{if(i){Xr.add(g);const m=document.activeElement;if(!i.contains(m)){const y=new CustomEvent(yn,Yr);i.addEventListener(yn,u),i.dispatchEvent(y),y.defaultPrevented||(qi(el(Kr(i)),{select:!0}),document.activeElement===m&&Te(i))}return()=>{i.removeEventListener(yn,u),setTimeout(()=>{const y=new CustomEvent(wn,Yr);i.addEventListener(wn,f),i.dispatchEvent(y),y.defaultPrevented||Te(m??document.body,{select:!0}),i.removeEventListener(wn,f),Xr.remove(g)},0)}}},[i,u,f,g]);const v=l.useCallback(m=>{if(!n&&!r||g.paused)return;const x=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,y=document.activeElement;if(x&&y){const b=m.currentTarget,[w,E]=Xi(b);w&&E?!m.shiftKey&&y===E?(m.preventDefault(),n&&Te(w,{select:!0})):m.shiftKey&&y===w&&(m.preventDefault(),n&&Te(E,{select:!0})):y===b&&m.preventDefault()}},[n,r,g.paused]);return p.jsx(H.div,{tabIndex:-1,...a,ref:h,onKeyDown:v})});Nt.displayName=Ki;function qi(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Te(r,{select:t}),document.activeElement!==n)return}function Xi(e){const t=Kr(e),n=qr(t,e),r=qr(t.reverse(),e);return[n,r]}function Kr(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function qr(e,t){for(const n of e)if(!Zi(n,{upTo:t}))return n}function Zi(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Ji(e){return e instanceof HTMLInputElement&&"select"in e}function Te(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ji(e)&&t&&e.select()}}var Xr=Qi();function Qi(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Zr(e,t),e.unshift(t)},remove(t){var n;e=Zr(e,t),(n=e[0])==null||n.resume()}}}function Zr(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function el(e){return e.filter(t=>t.tagName!=="A")}var tl="Portal",mt=l.forwardRef((e,t)=>{var i;const{container:n,...r}=e,[o,s]=l.useState(!1);ie(()=>s(!0),[]);const a=n||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return a?br.createPortal(p.jsx(H.div,{...r,ref:t}),a):null});mt.displayName=tl;function nl(e,t){return l.useReducer((n,r)=>t[n][r]??n,e)}var _e=e=>{const{present:t,children:n}=e,r=rl(t),o=typeof n=="function"?n({present:r.isPresent}):l.Children.only(n),s=se(r.ref,ol(o));return typeof n=="function"||r.isPresent?l.cloneElement(o,{ref:s}):null};_e.displayName="Presence";function rl(e){const[t,n]=l.useState(),r=l.useRef(null),o=l.useRef(e),s=l.useRef("none"),a=e?"mounted":"unmounted",[i,c]=nl(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const u=Ot(r.current);s.current=i==="mounted"?u:"none"},[i]),ie(()=>{const u=r.current,f=o.current;if(f!==e){const h=s.current,g=Ot(u);e?c("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(f&&h!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ie(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,d=g=>{const m=Ot(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&m&&(c("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},h=g=>{g.target===t&&(s.current=Ot(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:l.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Ot(e){return(e==null?void 0:e.animationName)||"none"}function ol(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Sn=0;function Cn(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Jr()),document.body.insertAdjacentElement("beforeend",e[1]??Jr()),Sn++,()=>{Sn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Sn--}},[])}function Jr(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ve=function(){return ve=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},ve.apply(this,arguments)};function Qr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function sl(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var It="right-scroll-bar-position",jt="width-before-scroll-bar",al="with-scroll-bars-hidden",il="--removed-body-scroll-bar-size";function En(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ll(e,t){var n=oe.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var cl=typeof window<"u"?l.useLayoutEffect:l.useEffect,eo=new WeakMap;function ul(e,t){var n=ll(null,function(r){return e.forEach(function(o){return En(o,r)})});return cl(function(){var r=eo.get(n);if(r){var o=new Set(r),s=new Set(e),a=n.current;o.forEach(function(i){s.has(i)||En(i,null)}),s.forEach(function(i){o.has(i)||En(i,a)})}eo.set(n,e)},[e]),n}function dl(e){return e}function fl(e,t){t===void 0&&(t=dl);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,r);return n.push(a),function(){n=n.filter(function(i){return i!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(i){return s(i)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var i=n;n=[],i.forEach(s),a=n}var c=function(){var f=a;a=[],f.forEach(s)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(f){a.push(f),u()},filter:function(f){return a=a.filter(f),n}}}};return o}function pl(e){e===void 0&&(e={});var t=fl(null);return t.options=ve({async:!0,ssr:!1},e),t}var to=function(e){var t=e.sideCar,n=Qr(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return l.createElement(r,ve({},n))};to.isSideCarExport=!0;function ml(e,t){return e.useMedium(t),to}var no=pl(),kn=function(){},Mt=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:kn,onWheelCapture:kn,onTouchMoveCapture:kn}),o=r[0],s=r[1],a=e.forwardProps,i=e.children,c=e.className,u=e.removeScrollBar,f=e.enabled,d=e.shards,h=e.sideCar,g=e.noRelative,v=e.noIsolation,m=e.inert,x=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,E=Qr(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=h,_=ul([n,t]),P=ve(ve({},E),o);return l.createElement(l.Fragment,null,f&&l.createElement(R,{sideCar:no,removeScrollBar:u,shards:d,noRelative:g,noIsolation:v,inert:m,setCallbacks:s,allowPinchZoom:!!x,lockRef:n,gapMode:w}),a?l.cloneElement(l.Children.only(i),ve(ve({},P),{ref:_})):l.createElement(b,ve({},P,{className:c,ref:_}),i))});Mt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Mt.classNames={fullWidth:jt,zeroRight:It};var gl=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function hl(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=gl();return t&&e.setAttribute("nonce",t),e}function vl(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function xl(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var bl=function(){var e=0,t=null;return{add:function(n){e==0&&(t=hl())&&(vl(t,n),xl(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},yl=function(){var e=bl();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ro=function(){var e=yl(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},wl={left:0,top:0,right:0,gap:0},Rn=function(e){return parseInt(e||"",10)||0},Sl=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Rn(n),Rn(r),Rn(o)]},Cl=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return wl;var t=Sl(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},El=ro(),qe="data-scroll-locked",kl=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,i=e.gap;return n===void 0&&(n="margin"),`
|
|
23
|
-
.`.concat(
|
|
22
|
+
<%s key={someKey} {...props} />`,_,D,B,D),te[D+_]=!0)}if(D=null,S!==void 0&&(n(S),D=""+S),s(L)&&(n(L.key),D=""+L.key),"key"in L){S={};for(var U in L)U!=="key"&&(S[U]=L[U])}else S=L;return D&&i(S,typeof C=="function"?C.displayName||C.name||"Unknown":C),u(C,D,O,M,o(),S,W,A)}function d(C){typeof C=="object"&&C!==null&&C.$$typeof===h&&C._store&&(C._store.validated=1)}var g=oe,h=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),Y=Symbol.for("react.client.reference"),Q=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=Object.prototype.hasOwnProperty,ee=Array.isArray,F=console.createTask?console.createTask:function(){return null};g={"react-stack-bottom-frame":function(C){return C()}};var K,$={},V=g["react-stack-bottom-frame"].bind(g,a)(),k=F(r(a)),te={};ut.Fragment=m,ut.jsx=function(C,L,S,_,M){var O=1e4>Q.recentlyCreatedOwnerStacks++;return p(C,L,S,!1,_,M,O?Error("react-stack-top-frame"):V,O?F(r(C)):k)},ut.jsxs=function(C,L,S,_,M){var O=1e4>Q.recentlyCreatedOwnerStacks++;return p(C,L,S,!0,_,M,O?Error("react-stack-top-frame"):V,O?F(r(C)):k)}}()),ut}process.env.NODE_ENV==="production"?dn.exports=Us():dn.exports=Gs();var f=dn.exports;function Cr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Le(...e){return t=>{let n=!1;const r=e.map(o=>{const a=Cr(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():Cr(e[o],null)}}}}function ae(...e){return l.useCallback(Le(...e),e)}function $e(e){const t=Ys(e),n=l.forwardRef((r,o)=>{const{children:a,...s}=r,i=l.Children.toArray(a),c=i.find(qs);if(c){const u=c.props.children,p=i.map(d=>d===c?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:d);return f.jsx(t,{...s,ref:o,children:l.isValidElement(u)?l.cloneElement(u,void 0,p):null})}return f.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var fn=$e("Slot");function Ys(e){const t=l.forwardRef((n,r)=>{const{children:o,...a}=n;if(l.isValidElement(o)){const s=Zs(o),i=Xs(a,o.props);return o.type!==l.Fragment&&(i.ref=r?Le(r,s):s),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Er=Symbol("radix.slottable");function Ks(e){const t=({children:n})=>f.jsx(f.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Er,t}function qs(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Er}function Xs(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 c=a(...i);return o(...i),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function Zs(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function kr(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=kr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Rr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=kr(e))&&(r&&(r+=" "),r+=t);return r}const pn="-",Js=e=>{const t=ei(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const i=s.split(pn);return i[0]===""&&i.length!==1&&i.shift(),Pr(i,t)||Qs(s)},getConflictingClassGroupIds:(s,i)=>{const c=n[s]||[];return i&&r[s]?[...c,...r[s]]:c}}},Pr=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Pr(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(pn);return(s=t.validators.find(({validator:i})=>i(a)))==null?void 0:s.classGroupId},Ar=/^\[(.+)\]$/,Qs=e=>{if(Ar.test(e)){const t=Ar.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},ei=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)mn(n[o],r,o,t);return r},mn=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Tr(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(ti(o)){mn(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,s])=>{mn(s,Tr(t,a),n,r)})})},Tr=(e,t)=>{let n=e;return t.split(pn).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},ti=e=>e.isThemeGetter,ni=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)}}},hn="!",gn=":",ri=gn.length,oi=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const a=[];let s=0,i=0,c=0,u;for(let v=0;v<o.length;v++){let m=o[v];if(s===0&&i===0){if(m===gn){a.push(o.slice(c,v)),c=v+ri;continue}if(m==="/"){u=v;continue}}m==="["?s++:m==="]"?s--:m==="("?i++:m===")"&&i--}const p=a.length===0?o:o.substring(c),d=ai(p),g=d!==p,h=u&&u>c?u-c:void 0;return{modifiers:a,hasImportantModifier:g,baseClassName:d,maybePostfixModifierPosition:h}};if(t){const o=t+gn,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},ai=e=>e.endsWith(hn)?e.substring(0,e.length-1):e.startsWith(hn)?e.substring(1):e,si=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let a=[];return r.forEach(s=>{s[0]==="["||t[s]?(o.push(...a.sort(),s),a=[]):a.push(s)}),o.push(...a.sort()),o}},ii=e=>({cache:ni(e.cacheSize),parseClassName:oi(e),sortModifiers:si(e),...Js(e)}),li=/\s+/,ci=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],i=e.trim().split(li);let c="";for(let u=i.length-1;u>=0;u-=1){const p=i[u],{isExternal:d,modifiers:g,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:m}=n(p);if(d){c=p+(c.length>0?" "+c:c);continue}let x=!!m,y=r(x?v.substring(0,m):v);if(!y){if(!x){c=p+(c.length>0?" "+c:c);continue}if(y=r(v),!y){c=p+(c.length>0?" "+c:c);continue}x=!1}const b=a(g).join(":"),w=h?b+hn:b,E=w+y;if(s.includes(E))continue;s.push(E);const R=o(y,x);for(let N=0;N<R.length;++N){const P=R[N];s.push(w+P)}c=p+(c.length>0?" "+c:c)}return c};function ui(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Nr(t))&&(r&&(r+=" "),r+=n);return r}const Nr=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Nr(e[r]))&&(n&&(n+=" "),n+=t);return n};function di(e,...t){let n,r,o,a=s;function s(c){const u=t.reduce((p,d)=>d(p),e());return n=ii(u),r=n.cache.get,o=n.cache.set,a=i,i(c)}function i(c){const u=r(c);if(u)return u;const p=ci(c,n);return o(c,p),p}return function(){return a(ui.apply(null,arguments))}}const se=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},_r=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Or=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fi=/^\d+\/\d+$/,pi=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mi=/\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$/,hi=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,gi=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vi=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ge=e=>fi.test(e),G=e=>!!e&&!Number.isNaN(Number(e)),Pe=e=>!!e&&Number.isInteger(Number(e)),vn=e=>e.endsWith("%")&&G(e.slice(0,-1)),Ee=e=>pi.test(e),xi=()=>!0,bi=e=>mi.test(e)&&!hi.test(e),jr=()=>!1,yi=e=>gi.test(e),wi=e=>vi.test(e),Si=e=>!j(e)&&!I(e),Ci=e=>Ye(e,$r,jr),j=e=>_r.test(e),Fe=e=>Ye(e,Fr,bi),xn=e=>Ye(e,Ai,G),Ir=e=>Ye(e,Dr,jr),Ei=e=>Ye(e,Lr,wi),Tt=e=>Ye(e,Vr,yi),I=e=>Or.test(e),dt=e=>Ke(e,Fr),ki=e=>Ke(e,Ti),Mr=e=>Ke(e,Dr),Ri=e=>Ke(e,$r),Pi=e=>Ke(e,Lr),Nt=e=>Ke(e,Vr,!0),Ye=(e,t,n)=>{const r=_r.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ke=(e,t,n=!1)=>{const r=Or.exec(e);return r?r[1]?t(r[1]):n:!1},Dr=e=>e==="position"||e==="percentage",Lr=e=>e==="image"||e==="url",$r=e=>e==="length"||e==="size"||e==="bg-size",Fr=e=>e==="length",Ai=e=>e==="number",Ti=e=>e==="family-name",Vr=e=>e==="shadow",Ni=di(()=>{const e=se("color"),t=se("font"),n=se("text"),r=se("font-weight"),o=se("tracking"),a=se("leading"),s=se("breakpoint"),i=se("container"),c=se("spacing"),u=se("radius"),p=se("shadow"),d=se("inset-shadow"),g=se("text-shadow"),h=se("drop-shadow"),v=se("blur"),m=se("perspective"),x=se("aspect"),y=se("ease"),b=se("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],R=()=>[...E(),I,j],N=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],T=()=>[I,j,c],z=()=>[Ge,"full","auto",...T()],Y=()=>[Pe,"none","subgrid",I,j],Q=()=>["auto",{span:["full",Pe,I,j]},Pe,I,j],X=()=>[Pe,"auto",I,j],ee=()=>["auto","min","max","fr",I,j],F=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],K=()=>["start","end","center","stretch","center-safe","end-safe"],$=()=>["auto",...T()],V=()=>[Ge,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...T()],k=()=>[e,I,j],te=()=>[...E(),Mr,Ir,{position:[I,j]}],C=()=>["no-repeat",{repeat:["","x","y","space","round"]}],L=()=>["auto","cover","contain",Ri,Ci,{size:[I,j]}],S=()=>[vn,dt,Fe],_=()=>["","none","full",u,I,j],M=()=>["",G,dt,Fe],O=()=>["solid","dashed","dotted","double"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],A=()=>[G,vn,Mr,Ir],D=()=>["","none",v,I,j],B=()=>["none",G,I,j],U=()=>["none",G,I,j],ne=()=>[G,I,j],re=()=>[Ge,"full",...T()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ee],breakpoint:[Ee],color:[xi],container:[Ee],"drop-shadow":[Ee],ease:["in","out","in-out"],font:[Si],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ee],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ee],shadow:[Ee],spacing:["px",G],text:[Ee],"text-shadow":[Ee],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ge,j,I,x]}],container:["container"],columns:[{columns:[G,j,I,i]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:R()}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{start:z()}],end:[{end:z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[Pe,"auto",I,j]}],basis:[{basis:[Ge,"full","auto",i,...T()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[G,Ge,"auto","initial","none",j]}],grow:[{grow:["",G,I,j]}],shrink:[{shrink:["",G,I,j]}],order:[{order:[Pe,"first","last","none",I,j]}],"grid-cols":[{"grid-cols":Y()}],"col-start-end":[{col:Q()}],"col-start":[{"col-start":X()}],"col-end":[{"col-end":X()}],"grid-rows":[{"grid-rows":Y()}],"row-start-end":[{row:Q()}],"row-start":[{"row-start":X()}],"row-end":[{"row-end":X()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ee()}],"auto-rows":[{"auto-rows":ee()}],gap:[{gap:T()}],"gap-x":[{"gap-x":T()}],"gap-y":[{"gap-y":T()}],"justify-content":[{justify:[...F(),"normal"]}],"justify-items":[{"justify-items":[...K(),"normal"]}],"justify-self":[{"justify-self":["auto",...K()]}],"align-content":[{content:["normal",...F()]}],"align-items":[{items:[...K(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...K(),{baseline:["","last"]}]}],"place-content":[{"place-content":F()}],"place-items":[{"place-items":[...K(),"baseline"]}],"place-self":[{"place-self":["auto",...K()]}],p:[{p:T()}],px:[{px:T()}],py:[{py:T()}],ps:[{ps:T()}],pe:[{pe:T()}],pt:[{pt:T()}],pr:[{pr:T()}],pb:[{pb:T()}],pl:[{pl:T()}],m:[{m:$()}],mx:[{mx:$()}],my:[{my:$()}],ms:[{ms:$()}],me:[{me:$()}],mt:[{mt:$()}],mr:[{mr:$()}],mb:[{mb:$()}],ml:[{ml:$()}],"space-x":[{"space-x":T()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":T()}],"space-y-reverse":["space-y-reverse"],size:[{size:V()}],w:[{w:[i,"screen",...V()]}],"min-w":[{"min-w":[i,"screen","none",...V()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...V()]}],h:[{h:["screen","lh",...V()]}],"min-h":[{"min-h":["screen","lh","none",...V()]}],"max-h":[{"max-h":["screen","lh",...V()]}],"font-size":[{text:["base",n,dt,Fe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,I,xn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",vn,j]}],"font-family":[{font:[ki,j,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,I,j]}],"line-clamp":[{"line-clamp":[G,"none",I,xn]}],leading:[{leading:[a,...T()]}],"list-image":[{"list-image":["none",I,j]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",I,j]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...O(),"wavy"]}],"text-decoration-thickness":[{decoration:[G,"from-font","auto",I,Fe]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[G,"auto",I,j]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",I,j]}],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",I,j]}],"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:C()}],"bg-size":[{bg:L()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Pe,I,j],radial:["",I,j],conic:[Pe,I,j]},Pi,Ei]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:S()}],"gradient-via-pos":[{via:S()}],"gradient-to-pos":[{to:S()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:_()}],"rounded-s":[{"rounded-s":_()}],"rounded-e":[{"rounded-e":_()}],"rounded-t":[{"rounded-t":_()}],"rounded-r":[{"rounded-r":_()}],"rounded-b":[{"rounded-b":_()}],"rounded-l":[{"rounded-l":_()}],"rounded-ss":[{"rounded-ss":_()}],"rounded-se":[{"rounded-se":_()}],"rounded-ee":[{"rounded-ee":_()}],"rounded-es":[{"rounded-es":_()}],"rounded-tl":[{"rounded-tl":_()}],"rounded-tr":[{"rounded-tr":_()}],"rounded-br":[{"rounded-br":_()}],"rounded-bl":[{"rounded-bl":_()}],"border-w":[{border:M()}],"border-w-x":[{"border-x":M()}],"border-w-y":[{"border-y":M()}],"border-w-s":[{"border-s":M()}],"border-w-e":[{"border-e":M()}],"border-w-t":[{"border-t":M()}],"border-w-r":[{"border-r":M()}],"border-w-b":[{"border-b":M()}],"border-w-l":[{"border-l":M()}],"divide-x":[{"divide-x":M()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":M()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...O(),"hidden","none"]}],"divide-style":[{divide:[...O(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...O(),"none","hidden"]}],"outline-offset":[{"outline-offset":[G,I,j]}],"outline-w":[{outline:["",G,dt,Fe]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",p,Nt,Tt]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",d,Nt,Tt]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[G,Fe]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":M()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",g,Nt,Tt]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[G,I,j]}],"mix-blend":[{"mix-blend":[...W(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":W()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[G]}],"mask-image-linear-from-pos":[{"mask-linear-from":A()}],"mask-image-linear-to-pos":[{"mask-linear-to":A()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":A()}],"mask-image-t-to-pos":[{"mask-t-to":A()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":A()}],"mask-image-r-to-pos":[{"mask-r-to":A()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":A()}],"mask-image-b-to-pos":[{"mask-b-to":A()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":A()}],"mask-image-l-to-pos":[{"mask-l-to":A()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":A()}],"mask-image-x-to-pos":[{"mask-x-to":A()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":A()}],"mask-image-y-to-pos":[{"mask-y-to":A()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[I,j]}],"mask-image-radial-from-pos":[{"mask-radial-from":A()}],"mask-image-radial-to-pos":[{"mask-radial-to":A()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":E()}],"mask-image-conic-pos":[{"mask-conic":[G]}],"mask-image-conic-from-pos":[{"mask-conic-from":A()}],"mask-image-conic-to-pos":[{"mask-conic-to":A()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:te()}],"mask-repeat":[{mask:C()}],"mask-size":[{mask:L()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",I,j]}],filter:[{filter:["","none",I,j]}],blur:[{blur:D()}],brightness:[{brightness:[G,I,j]}],contrast:[{contrast:[G,I,j]}],"drop-shadow":[{"drop-shadow":["","none",h,Nt,Tt]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",G,I,j]}],"hue-rotate":[{"hue-rotate":[G,I,j]}],invert:[{invert:["",G,I,j]}],saturate:[{saturate:[G,I,j]}],sepia:[{sepia:["",G,I,j]}],"backdrop-filter":[{"backdrop-filter":["","none",I,j]}],"backdrop-blur":[{"backdrop-blur":D()}],"backdrop-brightness":[{"backdrop-brightness":[G,I,j]}],"backdrop-contrast":[{"backdrop-contrast":[G,I,j]}],"backdrop-grayscale":[{"backdrop-grayscale":["",G,I,j]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[G,I,j]}],"backdrop-invert":[{"backdrop-invert":["",G,I,j]}],"backdrop-opacity":[{"backdrop-opacity":[G,I,j]}],"backdrop-saturate":[{"backdrop-saturate":[G,I,j]}],"backdrop-sepia":[{"backdrop-sepia":["",G,I,j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":T()}],"border-spacing-x":[{"border-spacing-x":T()}],"border-spacing-y":[{"border-spacing-y":T()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",I,j]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[G,"initial",I,j]}],ease:[{ease:["linear","initial",y,I,j]}],delay:[{delay:[G,I,j]}],animate:[{animate:["none",b,I,j]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,I,j]}],"perspective-origin":[{"perspective-origin":R()}],rotate:[{rotate:B()}],"rotate-x":[{"rotate-x":B()}],"rotate-y":[{"rotate-y":B()}],"rotate-z":[{"rotate-z":B()}],scale:[{scale:U()}],"scale-x":[{"scale-x":U()}],"scale-y":[{"scale-y":U()}],"scale-z":[{"scale-z":U()}],"scale-3d":["scale-3d"],skew:[{skew:ne()}],"skew-x":[{"skew-x":ne()}],"skew-y":[{"skew-y":ne()}],transform:[{transform:[I,j,"","none","gpu","cpu"]}],"transform-origin":[{origin:R()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:re()}],"translate-x":[{"translate-x":re()}],"translate-y":[{"translate-y":re()}],"translate-z":[{"translate-z":re()}],"translate-none":["translate-none"],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",I,j]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",I,j]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[G,dt,Fe,xn]}],stroke:[{stroke:["none",...k()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function q(...e){return Ni(Rr(e))}const zr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Br=Rr,fe=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Br(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(u=>{const p=n==null?void 0:n[u],d=a==null?void 0:a[u];if(p===null)return null;const g=zr(p)||zr(d);return o[u][g]}),i=n&&Object.entries(n).reduce((u,p)=>{let[d,g]=p;return g===void 0||(u[d]=g),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,p)=>{let{class:d,className:g,...h}=p;return Object.entries(h).every(v=>{let[m,x]=v;return Array.isArray(x)?x.includes({...a,...i}[m]):{...a,...i}[m]===x})?[...u,d,g]:u},[]);return Br(e,s,c,n==null?void 0:n.class,n==null?void 0:n.className)},_i=fe("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:ring-2 focus-visible:ring-offset-2",{variants:{variant:{default:"bg-neutral-black-1 text-sm font-normal text-white shadow-sm hover:bg-neutral-black-2 focus-visible:ring-neutral-black-1",primary:"bg-neutral-black-5 text-sm font-normal text-neutral-70 hover:bg-neutral-black-5 focus-visible:ring-bg-neutral-black-5",outline:"bg-transparent text-black hover:bg-neutral-black-2 focus-visible:ring-4 focus-visible:ring-bg-surface border border-bg-neutral-black-2"},size:{default:"h-9 px-4 py-2",sm:"h-8 px-3 text-xs",lg:"h-10 px-6",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}});function Oi({className:e,variant:t,size:n,asChild:r=!1,children:o,...a}){const s=r?fn:"button";return f.jsx(s,{"data-slot":"button",className:q(_i({variant:t,size:n}),e),...a,children:o})}function J(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function ji(e,t){const n=l.createContext(t),r=a=>{const{children:s,...i}=a,c=l.useMemo(()=>i,Object.values(i));return f.jsx(n.Provider,{value:c,children:s})};r.displayName=e+"Provider";function o(a){const s=l.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 Ve(e,t=[]){let n=[];function r(a,s){const i=l.createContext(s),c=n.length;n=[...n,s];const u=d=>{var y;const{scope:g,children:h,...v}=d,m=((y=g==null?void 0:g[e])==null?void 0:y[c])||i,x=l.useMemo(()=>v,Object.values(v));return f.jsx(m.Provider,{value:x,children:h})};u.displayName=a+"Provider";function p(d,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(`\`${d}\` must be used within \`${a}\``)}return[u,p]}const o=()=>{const a=n.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,[r,Ii(o,...t)]}function Ii(...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:c,scopeName:u})=>{const d=c(a)[`__scope${u}`];return{...i,...d}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var ie=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},Mi=l[" useId ".trim().toString()]||(()=>{}),Di=0;function le(e){const[t,n]=l.useState(Mi());return ie(()=>{n(r=>r??String(Di++))},[e]),e||(t?`radix-${t}`:"")}var Li=l[" useInsertionEffect ".trim().toString()]||ie;function ft({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,s]=$i({defaultProp:t,onChange:n}),i=e!==void 0,c=i?e:o;{const p=l.useRef(e!==void 0);l.useEffect(()=>{const d=p.current;d!==i&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=i},[i,r])}const u=l.useCallback(p=>{var d;if(i){const g=Fi(p)?p(e):p;g!==e&&((d=s.current)==null||d.call(s,g))}else a(p)},[i,e,a,s]);return[c,u]}function $i({defaultProp:e,onChange:t}){const[n,r]=l.useState(e),o=l.useRef(n),a=l.useRef(t);return Li(()=>{a.current=t},[t]),l.useEffect(()=>{var s;o.current!==n&&((s=a.current)==null||s.call(a,n),o.current=n)},[n,o]),[n,r,a]}function Fi(e){return typeof e=="function"}var Vi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],H=Vi.reduce((e,t)=>{const n=$e(`Primitive.${t}`),r=l.forwardRef((o,a)=>{const{asChild:s,...i}=o,c=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(c,{...i,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function zi(e,t){e&&At.flushSync(()=>e.dispatchEvent(t))}function Ae(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Bi(e,t=globalThis==null?void 0:globalThis.document){const n=Ae(e);l.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Wi="DismissableLayer",bn="dismissableLayer.update",Hi="dismissableLayer.pointerDownOutside",Ui="dismissableLayer.focusOutside",Wr,Hr=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pt=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...c}=e,u=l.useContext(Hr),[p,d]=l.useState(null),g=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=l.useState({}),v=ae(t,P=>d(P)),m=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(x),b=p?m.indexOf(p):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,E=b>=y,R=Ki(P=>{const T=P.target,z=[...u.branches].some(Y=>Y.contains(T));!E||z||(o==null||o(P),s==null||s(P),P.defaultPrevented||i==null||i())},g),N=qi(P=>{const T=P.target;[...u.branches].some(Y=>Y.contains(T))||(a==null||a(P),s==null||s(P),P.defaultPrevented||i==null||i())},g);return Bi(P=>{b===u.layers.size-1&&(r==null||r(P),!P.defaultPrevented&&i&&(P.preventDefault(),i()))},g),l.useEffect(()=>{if(p)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Wr=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),Ur(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Wr)}},[p,g,n,u]),l.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),Ur())},[p,u]),l.useEffect(()=>{const P=()=>h({});return document.addEventListener(bn,P),()=>document.removeEventListener(bn,P)},[]),f.jsx(H.div,{...c,ref:v,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:J(e.onFocusCapture,N.onFocusCapture),onBlurCapture:J(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:J(e.onPointerDownCapture,R.onPointerDownCapture)})});pt.displayName=Wi;var Gi="DismissableLayerBranch",Yi=l.forwardRef((e,t)=>{const n=l.useContext(Hr),r=l.useRef(null),o=ae(t,r);return l.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),f.jsx(H.div,{...e,ref:o})});Yi.displayName=Gi;function Ki(e,t=globalThis==null?void 0:globalThis.document){const n=Ae(e),r=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const a=i=>{if(i.target&&!r.current){let c=function(){Gr(Hi,n,u,{discrete:!0})};const u={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},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 qi(e,t=globalThis==null?void 0:globalThis.document){const n=Ae(e),r=l.useRef(!1);return l.useEffect(()=>{const o=a=>{a.target&&!r.current&&Gr(Ui,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 Ur(){const e=new CustomEvent(bn);document.dispatchEvent(e)}function Gr(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?zi(o,a):o.dispatchEvent(a)}var yn="focusScope.autoFocusOnMount",wn="focusScope.autoFocusOnUnmount",Yr={bubbles:!1,cancelable:!0},Xi="FocusScope",_t=l.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,c]=l.useState(null),u=Ae(o),p=Ae(a),d=l.useRef(null),g=ae(t,m=>c(m)),h=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let m=function(w){if(h.paused||!i)return;const E=w.target;i.contains(E)?d.current=E:Te(d.current,{select:!0})},x=function(w){if(h.paused||!i)return;const E=w.relatedTarget;E!==null&&(i.contains(E)||Te(d.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const R of w)R.removedNodes.length>0&&Te(i)};document.addEventListener("focusin",m),document.addEventListener("focusout",x);const b=new MutationObserver(y);return i&&b.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",x),b.disconnect()}}},[r,i,h.paused]),l.useEffect(()=>{if(i){Xr.add(h);const m=document.activeElement;if(!i.contains(m)){const y=new CustomEvent(yn,Yr);i.addEventListener(yn,u),i.dispatchEvent(y),y.defaultPrevented||(Zi(nl(Kr(i)),{select:!0}),document.activeElement===m&&Te(i))}return()=>{i.removeEventListener(yn,u),setTimeout(()=>{const y=new CustomEvent(wn,Yr);i.addEventListener(wn,p),i.dispatchEvent(y),y.defaultPrevented||Te(m??document.body,{select:!0}),i.removeEventListener(wn,p),Xr.remove(h)},0)}}},[i,u,p,h]);const v=l.useCallback(m=>{if(!n&&!r||h.paused)return;const x=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,y=document.activeElement;if(x&&y){const b=m.currentTarget,[w,E]=Ji(b);w&&E?!m.shiftKey&&y===E?(m.preventDefault(),n&&Te(w,{select:!0})):m.shiftKey&&y===w&&(m.preventDefault(),n&&Te(E,{select:!0})):y===b&&m.preventDefault()}},[n,r,h.paused]);return f.jsx(H.div,{tabIndex:-1,...s,ref:g,onKeyDown:v})});_t.displayName=Xi;function Zi(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Te(r,{select:t}),document.activeElement!==n)return}function Ji(e){const t=Kr(e),n=qr(t,e),r=qr(t.reverse(),e);return[n,r]}function Kr(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function qr(e,t){for(const n of e)if(!Qi(n,{upTo:t}))return n}function Qi(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 el(e){return e instanceof HTMLInputElement&&"select"in e}function Te(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&el(e)&&t&&e.select()}}var Xr=tl();function tl(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Zr(e,t),e.unshift(t)},remove(t){var n;e=Zr(e,t),(n=e[0])==null||n.resume()}}}function Zr(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function nl(e){return e.filter(t=>t.tagName!=="A")}var rl="Portal",mt=l.forwardRef((e,t)=>{var i;const{container:n,...r}=e,[o,a]=l.useState(!1);ie(()=>a(!0),[]);const s=n||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?br.createPortal(f.jsx(H.div,{...r,ref:t}),s):null});mt.displayName=rl;function ol(e,t){return l.useReducer((n,r)=>t[n][r]??n,e)}var Ne=e=>{const{present:t,children:n}=e,r=al(t),o=typeof n=="function"?n({present:r.isPresent}):l.Children.only(n),a=ae(r.ref,sl(o));return typeof n=="function"||r.isPresent?l.cloneElement(o,{ref:a}):null};Ne.displayName="Presence";function al(e){const[t,n]=l.useState(),r=l.useRef(null),o=l.useRef(e),a=l.useRef("none"),s=e?"mounted":"unmounted",[i,c]=ol(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const u=Ot(r.current);a.current=i==="mounted"?u:"none"},[i]),ie(()=>{const u=r.current,p=o.current;if(p!==e){const g=a.current,h=Ot(u);e?c("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(p&&g!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ie(()=>{if(t){let u;const p=t.ownerDocument.defaultView??window,d=h=>{const m=Ot(r.current).includes(CSS.escape(h.animationName));if(h.target===t&&m&&(c("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},g=h=>{h.target===t&&(a.current=Ot(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{p.clearTimeout(u),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:l.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Ot(e){return(e==null?void 0:e.animationName)||"none"}function sl(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Sn=0;function Cn(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Jr()),document.body.insertAdjacentElement("beforeend",e[1]??Jr()),Sn++,()=>{Sn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Sn--}},[])}function Jr(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var xe=function(){return xe=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},xe.apply(this,arguments)};function Qr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function il(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 jt="right-scroll-bar-position",It="width-before-scroll-bar",ll="with-scroll-bars-hidden",cl="--removed-body-scroll-bar-size";function En(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ul(e,t){var n=oe.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var dl=typeof window<"u"?l.useLayoutEffect:l.useEffect,eo=new WeakMap;function fl(e,t){var n=ul(null,function(r){return e.forEach(function(o){return En(o,r)})});return dl(function(){var r=eo.get(n);if(r){var o=new Set(r),a=new Set(e),s=n.current;o.forEach(function(i){a.has(i)||En(i,null)}),a.forEach(function(i){o.has(i)||En(i,s)})}eo.set(n,e)},[e]),n}function pl(e){return e}function ml(e,t){t===void 0&&(t=pl);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(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 c=function(){var p=s;s=[],p.forEach(a)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(p){s.push(p),u()},filter:function(p){return s=s.filter(p),n}}}};return o}function hl(e){e===void 0&&(e={});var t=ml(null);return t.options=xe({async:!0,ssr:!1},e),t}var to=function(e){var t=e.sideCar,n=Qr(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return l.createElement(r,xe({},n))};to.isSideCarExport=!0;function gl(e,t){return e.useMedium(t),to}var no=hl(),kn=function(){},Mt=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:kn,onWheelCapture:kn,onTouchMoveCapture:kn}),o=r[0],a=r[1],s=e.forwardProps,i=e.children,c=e.className,u=e.removeScrollBar,p=e.enabled,d=e.shards,g=e.sideCar,h=e.noRelative,v=e.noIsolation,m=e.inert,x=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,E=Qr(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=g,N=fl([n,t]),P=xe(xe({},E),o);return l.createElement(l.Fragment,null,p&&l.createElement(R,{sideCar:no,removeScrollBar:u,shards:d,noRelative:h,noIsolation:v,inert:m,setCallbacks:a,allowPinchZoom:!!x,lockRef:n,gapMode:w}),s?l.cloneElement(l.Children.only(i),xe(xe({},P),{ref:N})):l.createElement(b,xe({},P,{className:c,ref:N}),i))});Mt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Mt.classNames={fullWidth:It,zeroRight:jt};var vl=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function xl(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=vl();return t&&e.setAttribute("nonce",t),e}function bl(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function yl(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var wl=function(){var e=0,t=null;return{add:function(n){e==0&&(t=xl())&&(bl(t,n),yl(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Sl=function(){var e=wl();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ro=function(){var e=Sl(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Cl={left:0,top:0,right:0,gap:0},Rn=function(e){return parseInt(e||"",10)||0},El=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Rn(n),Rn(r),Rn(o)]},kl=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Cl;var t=El(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])}},Rl=ro(),qe="data-scroll-locked",Pl=function(e,t,n,r){var o=e.left,a=e.top,s=e.right,i=e.gap;return n===void 0&&(n="margin"),`
|
|
23
|
+
.`.concat(ll,` {
|
|
24
24
|
overflow: hidden `).concat(r,`;
|
|
25
25
|
padding-right: `).concat(i,"px ").concat(r,`;
|
|
26
26
|
}
|
|
@@ -29,116 +29,116 @@ React keys must be passed directly to JSX without using spread:
|
|
|
29
29
|
overscroll-behavior: contain;
|
|
30
30
|
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
31
31
|
padding-left: `.concat(o,`px;
|
|
32
|
-
padding-top: `).concat(
|
|
33
|
-
padding-right: `).concat(
|
|
32
|
+
padding-top: `).concat(a,`px;
|
|
33
|
+
padding-right: `).concat(s,`px;
|
|
34
34
|
margin-left:0;
|
|
35
35
|
margin-top:0;
|
|
36
36
|
margin-right: `).concat(i,"px ").concat(r,`;
|
|
37
37
|
`),n==="padding"&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
.`).concat(
|
|
40
|
+
.`).concat(jt,` {
|
|
41
41
|
right: `).concat(i,"px ").concat(r,`;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
.`).concat(
|
|
44
|
+
.`).concat(It,` {
|
|
45
45
|
margin-right: `).concat(i,"px ").concat(r,`;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
.`).concat(
|
|
48
|
+
.`).concat(jt," .").concat(jt,` {
|
|
49
49
|
right: 0 `).concat(r,`;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
.`).concat(
|
|
52
|
+
.`).concat(It," .").concat(It,` {
|
|
53
53
|
margin-right: 0 `).concat(r,`;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
body[`).concat(qe,`] {
|
|
57
|
-
`).concat(
|
|
57
|
+
`).concat(cl,": ").concat(i,`px;
|
|
58
58
|
}
|
|
59
|
-
`)},oo=function(){var e=parseInt(document.body.getAttribute(qe)||"0",10);return isFinite(e)?e:0},
|
|
59
|
+
`)},oo=function(){var e=parseInt(document.body.getAttribute(qe)||"0",10);return isFinite(e)?e:0},Al=function(){l.useEffect(function(){return document.body.setAttribute(qe,(oo()+1).toString()),function(){var e=oo()-1;e<=0?document.body.removeAttribute(qe):document.body.setAttribute(qe,e.toString())}},[])},Tl=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Al();var a=l.useMemo(function(){return kl(o)},[o]);return l.createElement(Rl,{styles:Pl(a,!t,o,n?"":"!important")})},Pn=!1;if(typeof window<"u")try{var Dt=Object.defineProperty({},"passive",{get:function(){return Pn=!0,!0}});window.addEventListener("test",Dt,Dt),window.removeEventListener("test",Dt,Dt)}catch{Pn=!1}var Xe=Pn?{passive:!1}:!1,Nl=function(e){return e.tagName==="TEXTAREA"},ao=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Nl(e)&&n[t]==="visible")},_l=function(e){return ao(e,"overflowY")},Ol=function(e){return ao(e,"overflowX")},so=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=io(e,r);if(o){var a=lo(e,r),s=a[1],i=a[2];if(s>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},jl=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Il=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},io=function(e,t){return e==="v"?_l(t):Ol(t)},lo=function(e,t){return e==="v"?jl(t):Il(t)},Ml=function(e,t){return e==="h"&&t==="rtl"?-1:1},Dl=function(e,t,n,r,o){var a=Ml(e,window.getComputedStyle(t).direction),s=a*r,i=n.target,c=t.contains(i),u=!1,p=s>0,d=0,g=0;do{if(!i)break;var h=lo(e,i),v=h[0],m=h[1],x=h[2],y=m-x-a*v;(v||y)&&io(e,i)&&(d+=y,g+=v);var b=i.parentNode;i=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!c&&i!==document.body||c&&(t.contains(i)||t===i));return(p&&Math.abs(d)<1||!p&&Math.abs(g)<1)&&(u=!0),u},Lt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},co=function(e){return[e.deltaX,e.deltaY]},uo=function(e){return e&&"current"in e?e.current:e},Ll=function(e,t){return e[0]===t[0]&&e[1]===t[1]},$l=function(e){return`
|
|
60
60
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
61
61
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
62
|
-
`)},
|
|
62
|
+
`)},Fl=0,Ze=[];function Vl(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState(Fl++)[0],a=l.useState(ro)[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=il([e.lockRef.current],(e.shards||[]).map(uo),!0).filter(Boolean);return m.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=l.useCallback(function(m,x){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var y=Lt(m),b=n.current,w="deltaX"in m?m.deltaX:b[0]-y[0],E="deltaY"in m?m.deltaY:b[1]-y[1],R,N=m.target,P=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in m&&P==="h"&&N.type==="range")return!1;var T=so(P,N);if(!T)return!0;if(T?R=P:(R=P==="v"?"h":"v",T=so(P,N)),!T)return!1;if(!r.current&&"changedTouches"in m&&(w||E)&&(r.current=R),!R)return!0;var z=r.current||R;return Dl(z,x,m,z==="h"?w:E)},[]),c=l.useCallback(function(m){var x=m;if(!(!Ze.length||Ze[Ze.length-1]!==a)){var y="deltaY"in x?co(x):Lt(x),b=t.current.filter(function(R){return R.name===x.type&&(R.target===x.target||x.target===R.shadowParent)&&Ll(R.delta,y)})[0];if(b&&b.should){x.cancelable&&x.preventDefault();return}if(!b){var w=(s.current.shards||[]).map(uo).filter(Boolean).filter(function(R){return R.contains(x.target)}),E=w.length>0?i(x,w[0]):!s.current.noIsolation;E&&x.cancelable&&x.preventDefault()}}},[]),u=l.useCallback(function(m,x,y,b){var w={name:m,delta:x,target:y,should:b,shadowParent:zl(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),p=l.useCallback(function(m){n.current=Lt(m),r.current=void 0},[]),d=l.useCallback(function(m){u(m.type,co(m),m.target,i(m,e.lockRef.current))},[]),g=l.useCallback(function(m){u(m.type,Lt(m),m.target,i(m,e.lockRef.current))},[]);l.useEffect(function(){return Ze.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:g}),document.addEventListener("wheel",c,Xe),document.addEventListener("touchmove",c,Xe),document.addEventListener("touchstart",p,Xe),function(){Ze=Ze.filter(function(m){return m!==a}),document.removeEventListener("wheel",c,Xe),document.removeEventListener("touchmove",c,Xe),document.removeEventListener("touchstart",p,Xe)}},[]);var h=e.removeScrollBar,v=e.inert;return l.createElement(l.Fragment,null,v?l.createElement(a,{styles:$l(o)}):null,h?l.createElement(Tl,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function zl(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Bl=gl(no,Vl);var $t=l.forwardRef(function(e,t){return l.createElement(Mt,xe({},e,{ref:t,sideCar:Bl}))});$t.classNames=Mt.classNames;var Wl=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Je=new WeakMap,Ft=new WeakMap,Vt={},An=0,fo=function(e){return e&&(e.host||fo(e.parentNode))},Hl=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=fo(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Ul=function(e,t,n,r){var o=Hl(t,Array.isArray(e)?e:[e]);Vt[n]||(Vt[n]=new WeakMap);var a=Vt[n],s=[],i=new Set,c=new Set(o),u=function(d){!d||i.has(d)||(i.add(d),u(d.parentNode))};o.forEach(u);var p=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(g){if(i.has(g))p(g);else try{var h=g.getAttribute(r),v=h!==null&&h!=="false",m=(Je.get(g)||0)+1,x=(a.get(g)||0)+1;Je.set(g,m),a.set(g,x),s.push(g),m===1&&v&&Ft.set(g,!0),x===1&&g.setAttribute(n,"true"),v||g.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",g,y)}})};return p(t),i.clear(),An++,function(){s.forEach(function(d){var g=Je.get(d)-1,h=a.get(d)-1;Je.set(d,g),a.set(d,h),g||(Ft.has(d)||d.removeAttribute(r),Ft.delete(d)),h||d.removeAttribute(n)}),An--,An||(Je=new WeakMap,Je=new WeakMap,Ft=new WeakMap,Vt={})}},Tn=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Wl(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Ul(r,o,n,"aria-hidden")):function(){return null}},zt="Dialog",[po,Lp]=Ve(zt),[Gl,pe]=po(zt),mo=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,i=l.useRef(null),c=l.useRef(null),[u,p]=ft({prop:r,defaultProp:o??!1,onChange:a,caller:zt});return f.jsx(Gl,{scope:t,triggerRef:i,contentRef:c,contentId:le(),titleId:le(),descriptionId:le(),open:u,onOpenChange:p,onOpenToggle:l.useCallback(()=>p(d=>!d),[p]),modal:s,children:n})};mo.displayName=zt;var ho="DialogTrigger",go=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=pe(ho,n),a=ae(t,o.triggerRef);return f.jsx(H.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":On(o.open),...r,ref:a,onClick:J(e.onClick,o.onOpenToggle)})});go.displayName=ho;var Nn="DialogPortal",[Yl,vo]=po(Nn,{forceMount:void 0}),xo=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=pe(Nn,t);return f.jsx(Yl,{scope:t,forceMount:n,children:l.Children.map(r,s=>f.jsx(Ne,{present:n||a.open,children:f.jsx(mt,{asChild:!0,container:o,children:s})}))})};xo.displayName=Nn;var Bt="DialogOverlay",bo=l.forwardRef((e,t)=>{const n=vo(Bt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=pe(Bt,e.__scopeDialog);return a.modal?f.jsx(Ne,{present:r||a.open,children:f.jsx(ql,{...o,ref:t})}):null});bo.displayName=Bt;var Kl=$e("DialogOverlay.RemoveScroll"),ql=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=pe(Bt,n);return f.jsx($t,{as:Kl,allowPinchZoom:!0,shards:[o.contentRef],children:f.jsx(H.div,{"data-state":On(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ze="DialogContent",yo=l.forwardRef((e,t)=>{const n=vo(ze,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=pe(ze,e.__scopeDialog);return f.jsx(Ne,{present:r||a.open,children:a.modal?f.jsx(Xl,{...o,ref:t}):f.jsx(Zl,{...o,ref:t})})});yo.displayName=ze;var Xl=l.forwardRef((e,t)=>{const n=pe(ze,e.__scopeDialog),r=l.useRef(null),o=ae(t,n.contentRef,r);return l.useEffect(()=>{const a=r.current;if(a)return Tn(a)},[]),f.jsx(wo,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:J(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:J(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&a.preventDefault()}),onFocusOutside:J(e.onFocusOutside,a=>a.preventDefault())})}),Zl=l.forwardRef((e,t)=>{const n=pe(ze,e.__scopeDialog),r=l.useRef(!1),o=l.useRef(!1);return f.jsx(wo,{...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 c,u;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),wo=l.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,i=pe(ze,n),c=l.useRef(null),u=ae(t,c);return Cn(),f.jsxs(f.Fragment,{children:[f.jsx(_t,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:f.jsx(pt,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":On(i.open),...s,ref:u,onDismiss:()=>i.onOpenChange(!1)})}),f.jsxs(f.Fragment,{children:[f.jsx(Jl,{titleId:i.titleId}),f.jsx(ec,{contentRef:c,descriptionId:i.descriptionId})]})]})}),_n="DialogTitle",So=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=pe(_n,n);return f.jsx(H.h2,{id:o.titleId,...r,ref:t})});So.displayName=_n;var Co="DialogDescription",Eo=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=pe(Co,n);return f.jsx(H.p,{id:o.descriptionId,...r,ref:t})});Eo.displayName=Co;var ko="DialogClose",Ro=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=pe(ko,n);return f.jsx(H.button,{type:"button",...r,ref:t,onClick:J(e.onClick,()=>o.onOpenChange(!1))})});Ro.displayName=ko;function On(e){return e?"open":"closed"}var Po="DialogTitleWarning",[$p,Ao]=ji(Po,{contentName:ze,titleName:_n,docsSlug:"dialog"}),Jl=({titleId:e})=>{const t=Ao(Po),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
63
63
|
|
|
64
64
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
65
65
|
|
|
66
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},
|
|
66
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Ql="DialogDescriptionWarning",ec=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ao(Ql).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(r))},[r,e,t]),null},To=mo,tc=go,No=xo,_o=bo,Oo=yo,nc=So,rc=Eo,jo=Ro;/**
|
|
67
67
|
* @license lucide-react v0.542.0 - ISC
|
|
68
68
|
*
|
|
69
69
|
* This source code is licensed under the ISC license.
|
|
70
70
|
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
-
*/const
|
|
71
|
+
*/const oc=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ac=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Io=e=>{const t=ac(e);return t.charAt(0).toUpperCase()+t.slice(1)},Mo=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),sc=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
|
|
72
72
|
* @license lucide-react v0.542.0 - ISC
|
|
73
73
|
*
|
|
74
74
|
* This source code is licensed under the ISC license.
|
|
75
75
|
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
-
*/var
|
|
76
|
+
*/var ic={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
77
77
|
* @license lucide-react v0.542.0 - ISC
|
|
78
78
|
*
|
|
79
79
|
* This source code is licensed under the ISC license.
|
|
80
80
|
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
-
*/const
|
|
81
|
+
*/const lc=oe.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:s,...i},c)=>oe.createElement("svg",{ref:c,...ic,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Mo("lucide",o),...!a&&!sc(i)&&{"aria-hidden":"true"},...i},[...s.map(([u,p])=>oe.createElement(u,p)),...Array.isArray(a)?a:[a]]));/**
|
|
82
82
|
* @license lucide-react v0.542.0 - ISC
|
|
83
83
|
*
|
|
84
84
|
* This source code is licensed under the ISC license.
|
|
85
85
|
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
-
*/const
|
|
86
|
+
*/const me=(e,t)=>{const n=oe.forwardRef(({className:r,...o},a)=>oe.createElement(lc,{ref:a,iconNode:t,className:Mo(`lucide-${oc(Io(e))}`,`lucide-${e}`,r),...o}));return n.displayName=Io(e),n};/**
|
|
87
87
|
* @license lucide-react v0.542.0 - ISC
|
|
88
88
|
*
|
|
89
89
|
* This source code is licensed under the ISC license.
|
|
90
90
|
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
-
*/const
|
|
91
|
+
*/const cc=me("camera",[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/**
|
|
92
92
|
* @license lucide-react v0.542.0 - ISC
|
|
93
93
|
*
|
|
94
94
|
* This source code is licensed under the ISC license.
|
|
95
95
|
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
-
*/const
|
|
96
|
+
*/const uc=me("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
97
97
|
* @license lucide-react v0.542.0 - ISC
|
|
98
98
|
*
|
|
99
99
|
* This source code is licensed under the ISC license.
|
|
100
100
|
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
-
*/const
|
|
101
|
+
*/const jn=me("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
102
102
|
* @license lucide-react v0.542.0 - ISC
|
|
103
103
|
*
|
|
104
104
|
* This source code is licensed under the ISC license.
|
|
105
105
|
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
-
*/const
|
|
106
|
+
*/const dc=me("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
107
107
|
* @license lucide-react v0.542.0 - ISC
|
|
108
108
|
*
|
|
109
109
|
* This source code is licensed under the ISC license.
|
|
110
110
|
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
-
*/const
|
|
111
|
+
*/const fc=me("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
112
112
|
* @license lucide-react v0.542.0 - ISC
|
|
113
113
|
*
|
|
114
114
|
* This source code is licensed under the ISC license.
|
|
115
115
|
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
-
*/const
|
|
116
|
+
*/const pc=me("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
|
117
117
|
* @license lucide-react v0.542.0 - ISC
|
|
118
118
|
*
|
|
119
119
|
* This source code is licensed under the ISC license.
|
|
120
120
|
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
-
*/const
|
|
121
|
+
*/const mc=me("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
|
|
122
122
|
* @license lucide-react v0.542.0 - ISC
|
|
123
123
|
*
|
|
124
124
|
* This source code is licensed under the ISC license.
|
|
125
125
|
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
-
*/const
|
|
126
|
+
*/const hc=me("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
127
127
|
* @license lucide-react v0.542.0 - ISC
|
|
128
128
|
*
|
|
129
129
|
* This source code is licensed under the ISC license.
|
|
130
130
|
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
-
*/const Do=
|
|
131
|
+
*/const Do=me("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/**
|
|
132
132
|
* @license lucide-react v0.542.0 - ISC
|
|
133
133
|
*
|
|
134
134
|
* This source code is licensed under the ISC license.
|
|
135
135
|
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
-
*/const Lo=
|
|
136
|
+
*/const Lo=me("user-round",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);/**
|
|
137
137
|
* @license lucide-react v0.542.0 - ISC
|
|
138
138
|
*
|
|
139
139
|
* This source code is licensed under the ISC license.
|
|
140
140
|
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
-
*/const $o=pe("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function mc({...e}){return p.jsx(To,{"data-slot":"dialog",...e})}function gc({...e}){return p.jsx(Ql,{"data-slot":"dialog-trigger",...e})}function Fo({...e}){return p.jsx(_o,{"data-slot":"dialog-portal",...e})}function hc({...e}){return p.jsx(Io,{"data-slot":"dialog-close",...e})}function zo({className:e,...t}){return p.jsx(No,{"data-slot":"dialog-overlay",className:re("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function vc({className:e,children:t,showCloseButton:n=!0,...r}){return p.jsxs(Fo,{"data-slot":"dialog-portal",children:[p.jsx(zo,{}),p.jsxs(Oo,{"data-slot":"dialog-content",className:re("bg-background bg-white data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border border-none p-6 shadow-lg duration-200 sm:max-w-lg",e),...r,children:[t,n&&p.jsxs(Io,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[p.jsx($o,{}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function xc({className:e,...t}){return p.jsx("div",{"data-slot":"dialog-header",className:re("flex flex-col gap-2 text-center sm:text-left",e),...t})}function bc({className:e,...t}){return p.jsx("div",{"data-slot":"dialog-footer",className:re("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function yc({className:e,...t}){return p.jsx(ec,{"data-slot":"dialog-title",className:re("text-lg leading-none font-semibold ",e),...t})}function wc({className:e,...t}){return p.jsx(tc,{"data-slot":"dialog-description",className:re("text-muted-foreground text-sm",e),...t})}const Sc=Pe("inline-flex items-center justify-center rounded-full font-medium w-fit whitespace-nowrap shrink-0 gap-1 text-sm",{variants:{variant:{primary:"bg-tag-light-blue text-tag-dark-blue border-tag-light-blue",neutral:"bg-tag-light-gray text-tag-dark-gray border-tag-light-gray",warning:"bg-tag-light-brown text-tag-dark-brown border-tag-stroke-warning-border",success:"bg-tag-light-green text-tag-dark-green border-tag-stroke-success-border",error:"bg-tag-light-red-light text-tag-dark-red-dark border-tag-stroke-error-border",secondary:"bg-tag-light-ice-blue text-tag-dark-ice-blue border-tag-stroke-dark-border"},type:{filled:"border-0",outline:"border bg-transparent"},size:{md:"px-3 py-0.5 text-sm"}},defaultVariants:{variant:"primary",type:"filled",size:"md"}});function Vo({className:e,variant:t,type:n="filled",asChild:r=!1,children:o,...s}){const a=r?fn:"span";return p.jsx(a,{"data-slot":"badge",className:re(Sc({variant:t,type:n}),e),...s,children:o})}const Cc=["top","right","bottom","left"],Ne=Math.min,ce=Math.max,Wt=Math.round,Ht=Math.floor,xe=e=>({x:e,y:e}),Ec={left:"right",right:"left",bottom:"top",top:"bottom"},kc={start:"end",end:"start"};function jn(e,t,n){return ce(e,Ne(t,n))}function Ee(e,t){return typeof e=="function"?e(t):e}function ke(e){return e.split("-")[0]}function Qe(e){return e.split("-")[1]}function Mn(e){return e==="x"?"y":"x"}function Dn(e){return e==="y"?"height":"width"}const Rc=new Set(["top","bottom"]);function be(e){return Rc.has(ke(e))?"y":"x"}function Ln(e){return Mn(be(e))}function Pc(e,t,n){n===void 0&&(n=!1);const r=Qe(e),o=Ln(e),s=Dn(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=Ut(a)),[a,Ut(a)]}function Ac(e){const t=Ut(e);return[$n(e),t,$n(t)]}function $n(e){return e.replace(/start|end/g,t=>kc[t])}const Bo=["left","right"],Wo=["right","left"],Tc=["top","bottom"],_c=["bottom","top"];function Nc(e,t,n){switch(e){case"top":case"bottom":return n?t?Wo:Bo:t?Bo:Wo;case"left":case"right":return t?Tc:_c;default:return[]}}function Oc(e,t,n,r){const o=Qe(e);let s=Nc(ke(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map($n)))),s}function Ut(e){return e.replace(/left|right|bottom|top/g,t=>Ec[t])}function Ic(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ho(e){return typeof e!="number"?Ic(e):{top:e,right:e,bottom:e,left:e}}function Gt(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Uo(e,t,n){let{reference:r,floating:o}=e;const s=be(t),a=Ln(t),i=Dn(a),c=ke(t),u=s==="y",f=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,h=r[i]/2-o[i]/2;let g;switch(c){case"top":g={x:f,y:r.y-o.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:d};break;case"left":g={x:r.x-o.width,y:d};break;default:g={x:r.x,y:r.y}}switch(Qe(t)){case"start":g[a]-=h*(n&&u?-1:1);break;case"end":g[a]+=h*(n&&u?-1:1);break}return g}const jc=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,i=s.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:d}=Uo(u,r,c),h=r,g={},v=0;for(let m=0;m<i.length;m++){const{name:x,fn:y}=i[m],{x:b,y:w,data:E,reset:R}=await y({x:f,y:d,initialPlacement:r,placement:h,strategy:o,middlewareData:g,rects:u,platform:a,elements:{reference:e,floating:t}});f=b??f,d=w??d,g={...g,[x]:{...g[x],...E}},R&&v<=50&&(v++,typeof R=="object"&&(R.placement&&(h=R.placement),R.rects&&(u=R.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):R.rects),{x:f,y:d}=Uo(u,h,c)),m=-1)}return{x:f,y:d,placement:h,strategy:o,middlewareData:g}};async function gt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:a,elements:i,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:h=!1,padding:g=0}=Ee(t,e),v=Ho(g),x=i[h?d==="floating"?"reference":"floating":d],y=Gt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(x)))==null||n?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:u,rootBoundary:f,strategy:c})),b=d==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),E=await(s.isElement==null?void 0:s.isElement(w))?await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1}:{x:1,y:1},R=Gt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:b,offsetParent:w,strategy:c}):b);return{top:(y.top-R.top+v.top)/E.y,bottom:(R.bottom-y.bottom+v.bottom)/E.y,left:(y.left-R.left+v.left)/E.x,right:(R.right-y.right+v.right)/E.x}}const Mc=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:i,middlewareData:c}=t,{element:u,padding:f=0}=Ee(e,t)||{};if(u==null)return{};const d=Ho(f),h={x:n,y:r},g=Ln(o),v=Dn(g),m=await a.getDimensions(u),x=g==="y",y=x?"top":"left",b=x?"bottom":"right",w=x?"clientHeight":"clientWidth",E=s.reference[v]+s.reference[g]-h[g]-s.floating[v],R=h[g]-s.reference[g],_=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let P=_?_[w]:0;(!P||!await(a.isElement==null?void 0:a.isElement(_)))&&(P=i.floating[w]||s.floating[v]);const T=E/2-R/2,V=P/2-m[v]/2-1,Y=Ne(d[y],V),Z=Ne(d[b],V),q=Y,J=P-m[v]-Z,F=P/2-m[v]/2+T,K=jn(q,F,J),$=!c.arrow&&Qe(o)!=null&&F!==K&&s.reference[v]/2-(F<q?Y:Z)-m[v]/2<0,z=$?F<q?F-q:F-J:0;return{[g]:h[g]+z,data:{[g]:K,centerOffset:F-K-z,...$&&{alignmentOffset:z}},reset:$}}}),Dc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:a,initialPlacement:i,platform:c,elements:u}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...x}=Ee(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=ke(o),b=be(i),w=ke(i)===i,E=await(c.isRTL==null?void 0:c.isRTL(u.floating)),R=h||(w||!m?[Ut(i)]:Ac(i)),_=v!=="none";!h&&_&&R.push(...Oc(i,m,v,E));const P=[i,...R],T=await gt(t,x),V=[];let Y=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&V.push(T[y]),d){const F=Pc(o,a,E);V.push(T[F[0]],T[F[1]])}if(Y=[...Y,{placement:o,overflows:V}],!V.every(F=>F<=0)){var Z,q;const F=(((Z=s.flip)==null?void 0:Z.index)||0)+1,K=P[F];if(K&&(!(d==="alignment"?b!==be(K):!1)||Y.every(k=>be(k.placement)===b?k.overflows[0]>0:!0)))return{data:{index:F,overflows:Y},reset:{placement:K}};let $=(q=Y.filter(z=>z.overflows[0]<=0).sort((z,k)=>z.overflows[1]-k.overflows[1])[0])==null?void 0:q.placement;if(!$)switch(g){case"bestFit":{var J;const z=(J=Y.filter(k=>{if(_){const ee=be(k.placement);return ee===b||ee==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(ee=>ee>0).reduce((ee,C)=>ee+C,0)]).sort((k,ee)=>k[1]-ee[1])[0])==null?void 0:J[0];z&&($=z);break}case"initialPlacement":$=i;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function Go(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Yo(e){return Cc.some(t=>e[t]>=0)}const Lc=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Ee(e,t);switch(r){case"referenceHidden":{const s=await gt(t,{...o,elementContext:"reference"}),a=Go(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Yo(a)}}}case"escaped":{const s=await gt(t,{...o,altBoundary:!0}),a=Go(s,n.floating);return{data:{escapedOffsets:a,escaped:Yo(a)}}}default:return{}}}}},Ko=new Set(["left","top"]);async function $c(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=ke(n),i=Qe(n),c=be(n)==="y",u=Ko.has(a)?-1:1,f=s&&c?-1:1,d=Ee(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return i&&typeof v=="number"&&(g=i==="end"?v*-1:v),c?{x:g*f,y:h*u}:{x:h*u,y:g*f}}const Fc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:i}=t,c=await $c(t,e);return a===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:a}}}}},zc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:i={fn:x=>{let{x:y,y:b}=x;return{x:y,y:b}}},...c}=Ee(e,t),u={x:n,y:r},f=await gt(t,c),d=be(ke(o)),h=Mn(d);let g=u[h],v=u[d];if(s){const x=h==="y"?"top":"left",y=h==="y"?"bottom":"right",b=g+f[x],w=g-f[y];g=jn(b,g,w)}if(a){const x=d==="y"?"top":"left",y=d==="y"?"bottom":"right",b=v+f[x],w=v-f[y];v=jn(b,v,w)}const m=i.fn({...t,[h]:g,[d]:v});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[h]:s,[d]:a}}}}}},Vc=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:i=0,mainAxis:c=!0,crossAxis:u=!0}=Ee(e,t),f={x:n,y:r},d=be(o),h=Mn(d);let g=f[h],v=f[d];const m=Ee(i,t),x=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const w=h==="y"?"height":"width",E=s.reference[h]-s.floating[w]+x.mainAxis,R=s.reference[h]+s.reference[w]-x.mainAxis;g<E?g=E:g>R&&(g=R)}if(u){var y,b;const w=h==="y"?"width":"height",E=Ko.has(ke(o)),R=s.reference[d]-s.floating[w]+(E&&((y=a.offset)==null?void 0:y[d])||0)+(E?0:x.crossAxis),_=s.reference[d]+s.reference[w]+(E?0:((b=a.offset)==null?void 0:b[d])||0)-(E?x.crossAxis:0);v<R?v=R:v>_&&(v=_)}return{[h]:g,[d]:v}}}},Bc=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:a,elements:i}=t,{apply:c=()=>{},...u}=Ee(e,t),f=await gt(t,u),d=ke(o),h=Qe(o),g=be(o)==="y",{width:v,height:m}=s.floating;let x,y;d==="top"||d==="bottom"?(x=d,y=h===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(y=d,x=h==="end"?"top":"bottom");const b=m-f.top-f.bottom,w=v-f.left-f.right,E=Ne(m-f[x],b),R=Ne(v-f[y],w),_=!t.middlewareData.shift;let P=E,T=R;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=b),_&&!h){const Y=ce(f.left,0),Z=ce(f.right,0),q=ce(f.top,0),J=ce(f.bottom,0);g?T=v-2*(Y!==0||Z!==0?Y+Z:ce(f.left,f.right)):P=m-2*(q!==0||J!==0?q+J:ce(f.top,f.bottom))}await c({...t,availableWidth:T,availableHeight:P});const V=await a.getDimensions(i.floating);return v!==V.width||m!==V.height?{reset:{rects:!0}}:{}}}};function Yt(){return typeof window<"u"}function et(e){return qo(e)?(e.nodeName||"").toLowerCase():"#document"}function ue(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ye(e){var t;return(t=(qo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function qo(e){return Yt()?e instanceof Node||e instanceof ue(e).Node:!1}function me(e){return Yt()?e instanceof Element||e instanceof ue(e).Element:!1}function we(e){return Yt()?e instanceof HTMLElement||e instanceof ue(e).HTMLElement:!1}function Xo(e){return!Yt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ue(e).ShadowRoot}const Wc=new Set(["inline","contents"]);function ht(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ge(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Wc.has(o)}const Hc=new Set(["table","td","th"]);function Uc(e){return Hc.has(et(e))}const Gc=[":popover-open",":modal"];function Kt(e){return Gc.some(t=>{try{return e.matches(t)}catch{return!1}})}const Yc=["transform","translate","scale","rotate","perspective"],Kc=["transform","translate","scale","rotate","perspective","filter"],qc=["paint","layout","strict","content"];function Fn(e){const t=zn(),n=me(e)?ge(e):e;return Yc.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Kc.some(r=>(n.willChange||"").includes(r))||qc.some(r=>(n.contain||"").includes(r))}function Xc(e){let t=Oe(e);for(;we(t)&&!tt(t);){if(Fn(t))return t;if(Kt(t))return null;t=Oe(t)}return null}function zn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Zc=new Set(["html","body","#document"]);function tt(e){return Zc.has(et(e))}function ge(e){return ue(e).getComputedStyle(e)}function qt(e){return me(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Oe(e){if(et(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Xo(e)&&e.host||ye(e);return Xo(t)?t.host:t}function Zo(e){const t=Oe(e);return tt(t)?e.ownerDocument?e.ownerDocument.body:e.body:we(t)&&ht(t)?t:Zo(t)}function vt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Zo(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=ue(o);if(s){const i=Vn(a);return t.concat(a,a.visualViewport||[],ht(o)?o:[],i&&n?vt(i):[])}return t.concat(o,vt(o,[],n))}function Vn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Jo(e){const t=ge(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=we(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,i=Wt(n)!==s||Wt(r)!==a;return i&&(n=s,r=a),{width:n,height:r,$:i}}function Bn(e){return me(e)?e:e.contextElement}function nt(e){const t=Bn(e);if(!we(t))return xe(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Jo(t);let a=(s?Wt(n.width):n.width)/r,i=(s?Wt(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const Jc=xe(0);function Qo(e){const t=ue(e);return!zn()||!t.visualViewport?Jc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Qc(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ue(e)?!1:t}function Be(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Bn(e);let a=xe(1);t&&(r?me(r)&&(a=nt(r)):a=nt(e));const i=Qc(s,n,r)?Qo(s):xe(0);let c=(o.left+i.x)/a.x,u=(o.top+i.y)/a.y,f=o.width/a.x,d=o.height/a.y;if(s){const h=ue(s),g=r&&me(r)?ue(r):r;let v=h,m=Vn(v);for(;m&&r&&g!==v;){const x=nt(m),y=m.getBoundingClientRect(),b=ge(m),w=y.left+(m.clientLeft+parseFloat(b.paddingLeft))*x.x,E=y.top+(m.clientTop+parseFloat(b.paddingTop))*x.y;c*=x.x,u*=x.y,f*=x.x,d*=x.y,c+=w,u+=E,v=ue(m),m=Vn(v)}}return Gt({width:f,height:d,x:c,y:u})}function Xt(e,t){const n=qt(e).scrollLeft;return t?t.left+n:Be(ye(e)).left+n}function es(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Xt(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function eu(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=ye(r),i=t?Kt(t.floating):!1;if(r===a||i&&s)return n;let c={scrollLeft:0,scrollTop:0},u=xe(1);const f=xe(0),d=we(r);if((d||!d&&!s)&&((et(r)!=="body"||ht(a))&&(c=qt(r)),we(r))){const g=Be(r);u=nt(r),f.x=g.x+r.clientLeft,f.y=g.y+r.clientTop}const h=a&&!d&&!s?es(a,c):xe(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+f.x+h.x,y:n.y*u.y-c.scrollTop*u.y+f.y+h.y}}function tu(e){return Array.from(e.getClientRects())}function nu(e){const t=ye(e),n=qt(e),r=e.ownerDocument.body,o=ce(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=ce(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Xt(e);const i=-n.scrollTop;return ge(r).direction==="rtl"&&(a+=ce(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:i}}const ts=25;function ru(e,t){const n=ue(e),r=ye(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,i=0,c=0;if(o){s=o.width,a=o.height;const f=zn();(!f||f&&t==="fixed")&&(i=o.offsetLeft,c=o.offsetTop)}const u=Xt(r);if(u<=0){const f=r.ownerDocument,d=f.body,h=getComputedStyle(d),g=f.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,v=Math.abs(r.clientWidth-d.clientWidth-g);v<=ts&&(s-=v)}else u<=ts&&(s+=u);return{width:s,height:a,x:i,y:c}}const ou=new Set(["absolute","fixed"]);function su(e,t){const n=Be(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=we(e)?nt(e):xe(1),a=e.clientWidth*s.x,i=e.clientHeight*s.y,c=o*s.x,u=r*s.y;return{width:a,height:i,x:c,y:u}}function ns(e,t,n){let r;if(t==="viewport")r=ru(e,n);else if(t==="document")r=nu(ye(e));else if(me(t))r=su(t,n);else{const o=Qo(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Gt(r)}function rs(e,t){const n=Oe(e);return n===t||!me(n)||tt(n)?!1:ge(n).position==="fixed"||rs(n,t)}function au(e,t){const n=t.get(e);if(n)return n;let r=vt(e,[],!1).filter(i=>me(i)&&et(i)!=="body"),o=null;const s=ge(e).position==="fixed";let a=s?Oe(e):e;for(;me(a)&&!tt(a);){const i=ge(a),c=Fn(a);!c&&i.position==="fixed"&&(o=null),(s?!c&&!o:!c&&i.position==="static"&&!!o&&ou.has(o.position)||ht(a)&&!c&&rs(e,a))?r=r.filter(f=>f!==a):o=i,a=Oe(a)}return t.set(e,r),r}function iu(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Kt(t)?[]:au(t,this._c):[].concat(n),r],i=a[0],c=a.reduce((u,f)=>{const d=ns(t,f,o);return u.top=ce(d.top,u.top),u.right=Ne(d.right,u.right),u.bottom=Ne(d.bottom,u.bottom),u.left=ce(d.left,u.left),u},ns(t,i,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function lu(e){const{width:t,height:n}=Jo(e);return{width:t,height:n}}function cu(e,t,n){const r=we(t),o=ye(t),s=n==="fixed",a=Be(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const c=xe(0);function u(){c.x=Xt(o)}if(r||!r&&!s)if((et(t)!=="body"||ht(o))&&(i=qt(t)),r){const g=Be(t,!0,s,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else o&&u();s&&!r&&o&&u();const f=o&&!r&&!s?es(o,i):xe(0),d=a.left+i.scrollLeft-c.x-f.x,h=a.top+i.scrollTop-c.y-f.y;return{x:d,y:h,width:a.width,height:a.height}}function Wn(e){return ge(e).position==="static"}function os(e,t){if(!we(e)||ge(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ye(e)===n&&(n=n.ownerDocument.body),n}function ss(e,t){const n=ue(e);if(Kt(e))return n;if(!we(e)){let o=Oe(e);for(;o&&!tt(o);){if(me(o)&&!Wn(o))return o;o=Oe(o)}return n}let r=os(e,t);for(;r&&Uc(r)&&Wn(r);)r=os(r,t);return r&&tt(r)&&Wn(r)&&!Fn(r)?n:r||Xc(e)||n}const uu=async function(e){const t=this.getOffsetParent||ss,n=this.getDimensions,r=await n(e.floating);return{reference:cu(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function du(e){return ge(e).direction==="rtl"}const fu={convertOffsetParentRelativeRectToViewportRelativeRect:eu,getDocumentElement:ye,getClippingRect:iu,getOffsetParent:ss,getElementRects:uu,getClientRects:tu,getDimensions:lu,getScale:nt,isElement:me,isRTL:du};function as(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function pu(e,t){let n=null,r;const o=ye(e);function s(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function a(i,c){i===void 0&&(i=!1),c===void 0&&(c=1),s();const u=e.getBoundingClientRect(),{left:f,top:d,width:h,height:g}=u;if(i||t(),!h||!g)return;const v=Ht(d),m=Ht(o.clientWidth-(f+h)),x=Ht(o.clientHeight-(d+g)),y=Ht(f),w={rootMargin:-v+"px "+-m+"px "+-x+"px "+-y+"px",threshold:ce(0,Ne(1,c))||1};let E=!0;function R(_){const P=_[0].intersectionRatio;if(P!==c){if(!E)return a();P?a(!1,P):r=setTimeout(()=>{a(!1,1e-7)},1e3)}P===1&&!as(u,e.getBoundingClientRect())&&a(),E=!1}try{n=new IntersectionObserver(R,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(R,w)}n.observe(e)}return a(!0),s}function mu(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=Bn(e),f=o||s?[...u?vt(u):[],...vt(t)]:[];f.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const d=u&&i?pu(u,n):null;let h=-1,g=null;a&&(g=new ResizeObserver(y=>{let[b]=y;b&&b.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),n()}),u&&!c&&g.observe(u),g.observe(t));let v,m=c?Be(e):null;c&&x();function x(){const y=Be(e);m&&!as(m,y)&&n(),m=y,v=requestAnimationFrame(x)}return n(),()=>{var y;f.forEach(b=>{o&&b.removeEventListener("scroll",n),s&&b.removeEventListener("resize",n)}),d==null||d(),(y=g)==null||y.disconnect(),g=null,c&&cancelAnimationFrame(v)}}const gu=Fc,hu=zc,vu=Dc,xu=Bc,bu=Lc,is=Mc,yu=Vc,wu=(e,t,n)=>{const r=new Map,o={platform:fu,...n},s={...o.platform,_c:r};return jc(e,t,{...o,platform:s})};var Su=typeof document<"u",Cu=function(){},Zt=Su?oe.useLayoutEffect:Cu;function Jt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Jt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Jt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function ls(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function cs(e,t){const n=ls(e);return Math.round(t*n)/n}function Hn(e){const t=l.useRef(e);return Zt(()=>{t.current=e}),t}function Eu(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:i=!0,whileElementsMounted:c,open:u}=e,[f,d]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=l.useState(r);Jt(h,r)||g(r);const[v,m]=l.useState(null),[x,y]=l.useState(null),b=l.useCallback(k=>{k!==_.current&&(_.current=k,m(k))},[]),w=l.useCallback(k=>{k!==P.current&&(P.current=k,y(k))},[]),E=s||v,R=a||x,_=l.useRef(null),P=l.useRef(null),T=l.useRef(f),V=c!=null,Y=Hn(c),Z=Hn(o),q=Hn(u),J=l.useCallback(()=>{if(!_.current||!P.current)return;const k={placement:t,strategy:n,middleware:h};Z.current&&(k.platform=Z.current),wu(_.current,P.current,k).then(ee=>{const C={...ee,isPositioned:q.current!==!1};F.current&&!Jt(T.current,C)&&(T.current=C,At.flushSync(()=>{d(C)}))})},[h,t,n,Z,q]);Zt(()=>{u===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(k=>({...k,isPositioned:!1})))},[u]);const F=l.useRef(!1);Zt(()=>(F.current=!0,()=>{F.current=!1}),[]),Zt(()=>{if(E&&(_.current=E),R&&(P.current=R),E&&R){if(Y.current)return Y.current(E,R,J);J()}},[E,R,J,Y,V]);const K=l.useMemo(()=>({reference:_,floating:P,setReference:b,setFloating:w}),[b,w]),$=l.useMemo(()=>({reference:E,floating:R}),[E,R]),z=l.useMemo(()=>{const k={position:n,left:0,top:0};if(!$.floating)return k;const ee=cs($.floating,f.x),C=cs($.floating,f.y);return i?{...k,transform:"translate("+ee+"px, "+C+"px)",...ls($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ee,top:C}},[n,i,$.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:J,refs:K,elements:$,floatingStyles:z}),[f,J,K,$,z])}const ku=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?is({element:r.current,padding:o}).fn(n):{}:r?is({element:r,padding:o}).fn(n):{}}}},Ru=(e,t)=>({...gu(e),options:[e,t]}),Pu=(e,t)=>({...hu(e),options:[e,t]}),Au=(e,t)=>({...yu(e),options:[e,t]}),Tu=(e,t)=>({...vu(e),options:[e,t]}),_u=(e,t)=>({...xu(e),options:[e,t]}),Nu=(e,t)=>({...bu(e),options:[e,t]}),Ou=(e,t)=>({...ku(e),options:[e,t]});var Iu="Arrow",us=l.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return p.jsx(H.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});us.displayName=Iu;var ju=us;function Mu(e){const[t,n]=l.useState(void 0);return ie(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,i;if("borderBoxSize"in s){const c=s.borderBoxSize,u=Array.isArray(c)?c[0]:c;a=u.inlineSize,i=u.blockSize}else a=e.offsetWidth,i=e.offsetHeight;n({width:a,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Un="Popper",[ds,rt]=ze(Un),[Du,fs]=ds(Un),ps=e=>{const{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return p.jsx(Du,{scope:t,anchor:r,onAnchorChange:o,children:n})};ps.displayName=Un;var ms="PopperAnchor",gs=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=fs(ms,n),a=l.useRef(null),i=se(t,a),c=l.useRef(null);return l.useEffect(()=>{const u=c.current;c.current=(r==null?void 0:r.current)||a.current,u!==c.current&&s.onAnchorChange(c.current)}),r?null:p.jsx(H.div,{...o,ref:i})});gs.displayName=ms;var Gn="PopperContent",[Lu,$u]=ds(Gn),hs=l.forwardRef((e,t)=>{var A,D,B,U,te,ne;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:i=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:g="optimized",onPlaced:v,...m}=e,x=fs(Gn,n),[y,b]=l.useState(null),w=se(t,de=>b(de)),[E,R]=l.useState(null),_=Mu(E),P=(_==null?void 0:_.width)??0,T=(_==null?void 0:_.height)??0,V=r+(s!=="center"?"-"+s:""),Y=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},Z=Array.isArray(u)?u:[u],q=Z.length>0,J={padding:Y,boundary:Z.filter(zu),altBoundary:q},{refs:F,floatingStyles:K,placement:$,isPositioned:z,middlewareData:k}=Eu({strategy:"fixed",placement:V,whileElementsMounted:(...de)=>mu(...de,{animationFrame:g==="always"}),elements:{reference:x.anchor},middleware:[Ru({mainAxis:o+T,alignmentAxis:a}),c&&Pu({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Au():void 0,...J}),c&&Tu({...J}),_u({...J,apply:({elements:de,rects:Se,availableWidth:kt,availableHeight:Rt})=>{const{width:Pt,height:wp}=Se.reference,un=de.floating.style;un.setProperty("--radix-popper-available-width",`${kt}px`),un.setProperty("--radix-popper-available-height",`${Rt}px`),un.setProperty("--radix-popper-anchor-width",`${Pt}px`),un.setProperty("--radix-popper-anchor-height",`${wp}px`)}}),E&&Ou({element:E,padding:i}),Vu({arrowWidth:P,arrowHeight:T}),h&&Nu({strategy:"referenceHidden",...J})]}),[ee,C]=bs($),L=Ae(v);ie(()=>{z&&(L==null||L())},[z,L]);const S=(A=k.arrow)==null?void 0:A.x,N=(D=k.arrow)==null?void 0:D.y,M=((B=k.arrow)==null?void 0:B.centerOffset)!==0,[O,W]=l.useState();return ie(()=>{y&&W(window.getComputedStyle(y).zIndex)},[y]),p.jsx("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:z?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:O,"--radix-popper-transform-origin":[(U=k.transformOrigin)==null?void 0:U.x,(te=k.transformOrigin)==null?void 0:te.y].join(" "),...((ne=k.hide)==null?void 0:ne.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(Lu,{scope:n,placedSide:ee,onArrowChange:R,arrowX:S,arrowY:N,shouldHideArrow:M,children:p.jsx(H.div,{"data-side":ee,"data-align":C,...m,ref:w,style:{...m.style,animation:z?void 0:"none"}})})})});hs.displayName=Gn;var vs="PopperArrow",Fu={top:"bottom",right:"left",bottom:"top",left:"right"},xs=l.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=$u(vs,r),a=Fu[s.placedSide];return p.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:p.jsx(ju,{...o,ref:n,style:{...o.style,display:"block"}})})});xs.displayName=vs;function zu(e){return e!==null}var Vu=e=>({name:"transformOrigin",options:e,fn(t){var x,y,b;const{placement:n,rects:r,middlewareData:o}=t,a=((x=o.arrow)==null?void 0:x.centerOffset)!==0,i=a?0:e.arrowWidth,c=a?0:e.arrowHeight,[u,f]=bs(n),d={start:"0%",center:"50%",end:"100%"}[f],h=(((y=o.arrow)==null?void 0:y.x)??0)+i/2,g=(((b=o.arrow)==null?void 0:b.y)??0)+c/2;let v="",m="";return u==="bottom"?(v=a?d:`${h}px`,m=`${-c}px`):u==="top"?(v=a?d:`${h}px`,m=`${r.floating.height+c}px`):u==="right"?(v=`${-c}px`,m=a?d:`${g}px`):u==="left"&&(v=`${r.floating.width+c}px`,m=a?d:`${g}px`),{data:{x:v,y:m}}}});function bs(e){const[t,n="center"]=e.split("-");return[t,n]}var Yn=ps,Qt=gs,Kn=hs,qn=xs,ys=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Bu="VisuallyHidden",ws=l.forwardRef((e,t)=>p.jsx(H.span,{...e,ref:t,style:{...ys,...e.style}}));ws.displayName=Bu;var Wu=ws,[en,$p]=ze("Tooltip",[rt]),tn=rt(),Ss="TooltipProvider",Hu=700,Xn="tooltip.open",[Uu,Zn]=en(Ss),Cs=e=>{const{__scopeTooltip:t,delayDuration:n=Hu,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,a=l.useRef(!0),i=l.useRef(!1),c=l.useRef(0);return l.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),p.jsx(Uu,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:l.useCallback(()=>{window.clearTimeout(c.current),a.current=!1},[]),onClose:l.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:l.useCallback(u=>{i.current=u},[]),disableHoverableContent:o,children:s})};Cs.displayName=Ss;var xt="Tooltip",[Gu,bt]=en(xt),Es=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:a,delayDuration:i}=e,c=Zn(xt,e.__scopeTooltip),u=tn(t),[f,d]=l.useState(null),h=le(),g=l.useRef(0),v=a??c.disableHoverableContent,m=i??c.delayDuration,x=l.useRef(!1),[y,b]=ft({prop:r,defaultProp:o??!1,onChange:P=>{P?(c.onOpen(),document.dispatchEvent(new CustomEvent(Xn))):c.onClose(),s==null||s(P)},caller:xt}),w=l.useMemo(()=>y?x.current?"delayed-open":"instant-open":"closed",[y]),E=l.useCallback(()=>{window.clearTimeout(g.current),g.current=0,x.current=!1,b(!0)},[b]),R=l.useCallback(()=>{window.clearTimeout(g.current),g.current=0,b(!1)},[b]),_=l.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{x.current=!0,b(!0),g.current=0},m)},[m,b]);return l.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),p.jsx(Yn,{...u,children:p.jsx(Gu,{scope:t,contentId:h,open:y,stateAttribute:w,trigger:f,onTriggerChange:d,onTriggerEnter:l.useCallback(()=>{c.isOpenDelayedRef.current?_():E()},[c.isOpenDelayedRef,_,E]),onTriggerLeave:l.useCallback(()=>{v?R():(window.clearTimeout(g.current),g.current=0)},[R,v]),onOpen:E,onClose:R,disableHoverableContent:v,children:n})})};Es.displayName=xt;var Jn="TooltipTrigger",ks=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=bt(Jn,n),s=Zn(Jn,n),a=tn(n),i=l.useRef(null),c=se(t,i,o.onTriggerChange),u=l.useRef(!1),f=l.useRef(!1),d=l.useCallback(()=>u.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),p.jsx(Qt,{asChild:!0,...a,children:p.jsx(H.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:X(e.onPointerMove,h=>{h.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:X(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:X(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:X(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:X(e.onBlur,o.onClose),onClick:X(e.onClick,o.onClose)})})});ks.displayName=Jn;var Qn="TooltipPortal",[Yu,Ku]=en(Qn,{forceMount:void 0}),Rs=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=bt(Qn,t);return p.jsx(Yu,{scope:t,forceMount:n,children:p.jsx(_e,{present:n||s.open,children:p.jsx(mt,{asChild:!0,container:o,children:r})})})};Rs.displayName=Qn;var ot="TooltipContent",Ps=l.forwardRef((e,t)=>{const n=Ku(ot,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,a=bt(ot,e.__scopeTooltip);return p.jsx(_e,{present:r||a.open,children:a.disableHoverableContent?p.jsx(As,{side:o,...s,ref:t}):p.jsx(qu,{side:o,...s,ref:t})})}),qu=l.forwardRef((e,t)=>{const n=bt(ot,e.__scopeTooltip),r=Zn(ot,e.__scopeTooltip),o=l.useRef(null),s=se(t,o),[a,i]=l.useState(null),{trigger:c,onClose:u}=n,f=o.current,{onPointerInTransitChange:d}=r,h=l.useCallback(()=>{i(null),d(!1)},[d]),g=l.useCallback((v,m)=>{const x=v.currentTarget,y={x:v.clientX,y:v.clientY},b=Qu(y,x.getBoundingClientRect()),w=ed(y,b),E=td(m.getBoundingClientRect()),R=rd([...w,...E]);i(R),d(!0)},[d]);return l.useEffect(()=>()=>h(),[h]),l.useEffect(()=>{if(c&&f){const v=x=>g(x,f),m=x=>g(x,c);return c.addEventListener("pointerleave",v),f.addEventListener("pointerleave",m),()=>{c.removeEventListener("pointerleave",v),f.removeEventListener("pointerleave",m)}}},[c,f,g,h]),l.useEffect(()=>{if(a){const v=m=>{const x=m.target,y={x:m.clientX,y:m.clientY},b=(c==null?void 0:c.contains(x))||(f==null?void 0:f.contains(x)),w=!nd(y,a);b?h():w&&(h(),u())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[c,f,a,u,h]),p.jsx(As,{...e,ref:s})}),[Xu,Zu]=en(xt,{isInside:!1}),Ju=Ga("TooltipContent"),As=l.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...i}=e,c=bt(ot,n),u=tn(n),{onClose:f}=c;return l.useEffect(()=>(document.addEventListener(Xn,f),()=>document.removeEventListener(Xn,f)),[f]),l.useEffect(()=>{if(c.trigger){const d=h=>{const g=h.target;g!=null&&g.contains(c.trigger)&&f()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[c.trigger,f]),p.jsx(pt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:d=>d.preventDefault(),onDismiss:f,children:p.jsxs(Kn,{"data-state":c.stateAttribute,...u,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[p.jsx(Ju,{children:r}),p.jsx(Xu,{scope:n,isInside:!0,children:p.jsx(Wu,{id:c.contentId,role:"tooltip",children:o||r})})]})})});Ps.displayName=ot;var Ts="TooltipArrow",_s=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=tn(n);return Zu(Ts,n).isInside?null:p.jsx(qn,{...o,...r,ref:t})});_s.displayName=Ts;function Qu(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function ed(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function td(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function nd(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const i=t[s],c=t[a],u=i.x,f=i.y,d=c.x,h=c.y;f>r!=h>r&&n<(d-u)*(r-f)/(h-f)+u&&(o=!o)}return o}function rd(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),od(t)}function od(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],a=n[n.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var sd=Cs,ad=Es,id=ks,ld=Rs,cd=Ps,ud=_s;function Ns({delayDuration:e=0,...t}){return p.jsx(sd,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function dd({...e}){return p.jsx(Ns,{children:p.jsx(ad,{"data-slot":"tooltip",...e})})}function fd({...e}){return p.jsx(id,{"data-slot":"tooltip-trigger",...e})}function pd({className:e,sideOffset:t=0,children:n,...r}){return p.jsx(ld,{children:p.jsxs(cd,{"data-slot":"tooltip-content",sideOffset:t,className:re("bg-neutral-black-1 text-white animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-w-[362px]! origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs",e),...r,children:[n,p.jsx(ud,{className:"bg-neutral-black-1 fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const md=Pe("flex items-center rounded-lg border transition-colors p-2",{variants:{size:{small:"h-6 w-80 text-sm px-2",medium:"h-12 w-92 text-base px-3"},status:{default:"border-neutral-black-4 text-foreground focus-within:ring-2 focus-within:ring-neutral-black-2",error:"border-primary-2 text-primary-1 focus-within:ring-2 focus-within:ring-primary-2",disabled:"border-neutral-black-4 bg-neutral-black-4 text-neutral-black-2 cursor-not-allowed"}},defaultVariants:{size:"medium",status:"default"}}),er=({label:e,helperText:t,errorText:n,leftIcon:r,rightIcon:o,size:s="medium",className:a,disabled:i=!1,...c})=>p.jsxs("div",{className:"flex flex-col gap-1",children:[e&&p.jsx("label",{className:"text-sm font-normal text-neutral-black-1",children:e}),p.jsxs("div",{className:re(md({size:s,status:n?"error":i?"disabled":"default"}),a),children:[r&&p.jsx("span",{className:"mr-2 flex-shrink-0",children:r}),p.jsx("input",{disabled:i,className:re("flex-1 bg-transparent outline-none placeholder:text-neutral-black-2 disabled:cursor-not-allowed disabled:opacity-50"),...c}),o&&p.jsx("span",{className:"ml-2 flex-shrink-0",children:o})]}),(t||n)&&p.jsx("p",{className:re("text-xs mt-1",n?"text-primary-1":"text-neutral-black-2"),children:n||t})]}),gd=e=>p.jsx(er,{type:"email",inputMode:"email",...e}),hd=({showForgot:e=!1,onValidityChange:t,customValidator:n,...r})=>{const[o,s]=oe.useState(!1),[a,i]=oe.useState(""),u=n?n(a):(d=>[{label:"minimum 8 characters",isValid:d.length>=8},{label:"one uppercase character",isValid:/[A-Z]/.test(d)},{label:"one lowercase character",isValid:/[a-z]/.test(d)},{label:"one special character",isValid:/[^A-Za-z0-9]/.test(d)},{label:"one number",isValid:/\d/.test(d)}])(a),f=u.every(d=>d.isValid);return oe.useEffect(()=>{t&&t(f,u)},[a,f,u,t]),p.jsx("div",{className:"flex flex-col gap-2",children:p.jsxs("div",{className:"flex flex-col gap-2 w-full max-w-sm",children:[p.jsxs("div",{className:"flex justify-between items-center",children:[p.jsx("label",{className:"text-sm font-medium text-neutral-0",children:"Password"}),e&&p.jsx("button",{type:"button",className:"text-xs text-neutral-0 hover:underline",children:"Forgot Password?"})]}),p.jsx(er,{type:o?"text":"password",value:a,onChange:d=>i(d.target.value),...r,rightIcon:p.jsx("button",{type:"button",onClick:()=>s(!o),className:"p-1 text-neutral-0 hover:text-text-neutral-0",children:o?p.jsx(fc,{size:18,className:"text-neutral-black-2"}):p.jsx(pc,{size:18,className:"text-neutral-black-2"})})}),p.jsx("div",{className:"grid grid-cols-2 gap-y-1 text-xs mt-3",children:u.map((d,h)=>p.jsxs("div",{className:"flex items-center gap-1",children:[d.isValid?p.jsx(uc,{size:14,className:"text-success-d"}):p.jsx(dc,{size:14,className:"text-stroke"}),p.jsx("span",{className:d.isValid?"text-success-d":"text-input",children:d.label})]},h))})]})})},vd=e=>p.jsx(er,{type:"search",leftIcon:p.jsx(Do,{"data-testid":"search-icon",className:"w-4 h-4 text-input-placeholder"}),placeholder:"Search...",...e});function Os(e,[t,n]){return Math.min(n,Math.max(t,e))}function xd(e){const t=e+"CollectionProvider",[n,r]=ze(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=m=>{const{scope:x,children:y}=m,b=oe.useRef(null),w=oe.useRef(new Map).current;return p.jsx(o,{scope:x,itemMap:w,collectionRef:b,children:y})};a.displayName=t;const i=e+"CollectionSlot",c=$e(i),u=oe.forwardRef((m,x)=>{const{scope:y,children:b}=m,w=s(i,y),E=se(x,w.collectionRef);return p.jsx(c,{ref:E,children:b})});u.displayName=i;const f=e+"CollectionItemSlot",d="data-radix-collection-item",h=$e(f),g=oe.forwardRef((m,x)=>{const{scope:y,children:b,...w}=m,E=oe.useRef(null),R=se(x,E),_=s(f,y);return oe.useEffect(()=>(_.itemMap.set(E,{ref:E,...w}),()=>void _.itemMap.delete(E))),p.jsx(h,{[d]:"",ref:R,children:b})});g.displayName=f;function v(m){const x=s(e+"CollectionConsumer",m);return oe.useCallback(()=>{const b=x.collectionRef.current;if(!b)return[];const w=Array.from(b.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((_,P)=>w.indexOf(_.ref.current)-w.indexOf(P.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:a,Slot:u,ItemSlot:g},v,r]}var bd=l.createContext(void 0);function yd(e){const t=l.useContext(bd);return e||t||"ltr"}function wd(e){const t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Sd=[" ","Enter","ArrowUp","ArrowDown"],Cd=[" ","Enter"],We="Select",[nn,rn,Ed]=xd(We),[st,Fp]=ze(We,[Ed,rt]),on=rt(),[kd,Ie]=st(We),[Rd,Pd]=st(We),Is=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:a,defaultValue:i,onValueChange:c,dir:u,name:f,autoComplete:d,disabled:h,required:g,form:v}=e,m=on(t),[x,y]=l.useState(null),[b,w]=l.useState(null),[E,R]=l.useState(!1),_=yd(u),[P,T]=ft({prop:r,defaultProp:o??!1,onChange:s,caller:We}),[V,Y]=ft({prop:a,defaultProp:i,onChange:c,caller:We}),Z=l.useRef(null),q=x?v||!!x.closest("form"):!0,[J,F]=l.useState(new Set),K=Array.from(J).map($=>$.props.value).join(";");return p.jsx(Yn,{...m,children:p.jsxs(kd,{required:g,scope:t,trigger:x,onTriggerChange:y,valueNode:b,onValueNodeChange:w,valueNodeHasChildren:E,onValueNodeHasChildrenChange:R,contentId:le(),value:V,onValueChange:Y,open:P,onOpenChange:T,dir:_,triggerPointerDownPosRef:Z,disabled:h,children:[p.jsx(nn.Provider,{scope:t,children:p.jsx(Rd,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback($=>{F(z=>new Set(z).add($))},[]),onNativeOptionRemove:l.useCallback($=>{F(z=>{const k=new Set(z);return k.delete($),k})},[]),children:n})}),q?p.jsxs(ra,{"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:d,value:V,onChange:$=>Y($.target.value),disabled:h,form:v,children:[V===void 0?p.jsx("option",{value:""}):null,Array.from(J)]},K):null]})})};Is.displayName=We;var js="SelectTrigger",Ms=l.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=on(n),a=Ie(js,n),i=a.disabled||r,c=se(t,a.onTriggerChange),u=rn(n),f=l.useRef("touch"),[d,h,g]=sa(m=>{const x=u().filter(w=>!w.disabled),y=x.find(w=>w.value===a.value),b=aa(x,m,y);b!==void 0&&a.onValueChange(b.value)}),v=m=>{i||(a.onOpenChange(!0),g()),m&&(a.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return p.jsx(Qt,{asChild:!0,...s,children:p.jsx(H.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":oa(a.value)?"":void 0,...o,ref:c,onClick:X(o.onClick,m=>{m.currentTarget.focus(),f.current!=="mouse"&&v(m)}),onPointerDown:X(o.onPointerDown,m=>{f.current=m.pointerType;const x=m.target;x.hasPointerCapture(m.pointerId)&&x.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(v(m),m.preventDefault())}),onKeyDown:X(o.onKeyDown,m=>{const x=d.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&h(m.key),!(x&&m.key===" ")&&Sd.includes(m.key)&&(v(),m.preventDefault())})})})});Ms.displayName=js;var Ds="SelectValue",Ls=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:a="",...i}=e,c=Ie(Ds,n),{onValueNodeHasChildrenChange:u}=c,f=s!==void 0,d=se(t,c.onValueNodeChange);return ie(()=>{u(f)},[u,f]),p.jsx(H.span,{...i,ref:d,style:{pointerEvents:"none"},children:oa(c.value)?p.jsx(p.Fragment,{children:a}):s})});Ls.displayName=Ds;var Ad="SelectIcon",$s=l.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return p.jsx(H.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});$s.displayName=Ad;var Td="SelectPortal",Fs=e=>p.jsx(mt,{asChild:!0,...e});Fs.displayName=Td;var He="SelectContent",zs=l.forwardRef((e,t)=>{const n=Ie(He,e.__scopeSelect),[r,o]=l.useState();if(ie(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?At.createPortal(p.jsx(Vs,{scope:e.__scopeSelect,children:p.jsx(nn.Slot,{scope:e.__scopeSelect,children:p.jsx("div",{children:e.children})})}),s):null}return p.jsx(Bs,{...e,ref:t})});zs.displayName=He;var he=10,[Vs,je]=st(He),_d="SelectContentImpl",Nd=$e("SelectContent.RemoveScroll"),Bs=l.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:a,side:i,sideOffset:c,align:u,alignOffset:f,arrowPadding:d,collisionBoundary:h,collisionPadding:g,sticky:v,hideWhenDetached:m,avoidCollisions:x,...y}=e,b=Ie(He,n),[w,E]=l.useState(null),[R,_]=l.useState(null),P=se(t,A=>E(A)),[T,V]=l.useState(null),[Y,Z]=l.useState(null),q=rn(n),[J,F]=l.useState(!1),K=l.useRef(!1);l.useEffect(()=>{if(w)return Tn(w)},[w]),Cn();const $=l.useCallback(A=>{const[D,...B]=q().map(ne=>ne.ref.current),[U]=B.slice(-1),te=document.activeElement;for(const ne of A)if(ne===te||(ne==null||ne.scrollIntoView({block:"nearest"}),ne===D&&R&&(R.scrollTop=0),ne===U&&R&&(R.scrollTop=R.scrollHeight),ne==null||ne.focus(),document.activeElement!==te))return},[q,R]),z=l.useCallback(()=>$([T,w]),[$,T,w]);l.useEffect(()=>{J&&z()},[J,z]);const{onOpenChange:k,triggerPointerDownPosRef:ee}=b;l.useEffect(()=>{if(w){let A={x:0,y:0};const D=U=>{var te,ne;A={x:Math.abs(Math.round(U.pageX)-(((te=ee.current)==null?void 0:te.x)??0)),y:Math.abs(Math.round(U.pageY)-(((ne=ee.current)==null?void 0:ne.y)??0))}},B=U=>{A.x<=10&&A.y<=10?U.preventDefault():w.contains(U.target)||k(!1),document.removeEventListener("pointermove",D),ee.current=null};return ee.current!==null&&(document.addEventListener("pointermove",D),document.addEventListener("pointerup",B,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",D),document.removeEventListener("pointerup",B,{capture:!0})}}},[w,k,ee]),l.useEffect(()=>{const A=()=>k(!1);return window.addEventListener("blur",A),window.addEventListener("resize",A),()=>{window.removeEventListener("blur",A),window.removeEventListener("resize",A)}},[k]);const[C,L]=sa(A=>{const D=q().filter(te=>!te.disabled),B=D.find(te=>te.ref.current===document.activeElement),U=aa(D,A,B);U&&setTimeout(()=>U.ref.current.focus())}),S=l.useCallback((A,D,B)=>{const U=!K.current&&!B;(b.value!==void 0&&b.value===D||U)&&(V(A),U&&(K.current=!0))},[b.value]),N=l.useCallback(()=>w==null?void 0:w.focus(),[w]),M=l.useCallback((A,D,B)=>{const U=!K.current&&!B;(b.value!==void 0&&b.value===D||U)&&Z(A)},[b.value]),O=r==="popper"?tr:Ws,W=O===tr?{side:i,sideOffset:c,align:u,alignOffset:f,arrowPadding:d,collisionBoundary:h,collisionPadding:g,sticky:v,hideWhenDetached:m,avoidCollisions:x}:{};return p.jsx(Vs,{scope:n,content:w,viewport:R,onViewportChange:_,itemRefCallback:S,selectedItem:T,onItemLeave:N,itemTextRefCallback:M,focusSelectedItem:z,selectedItemText:Y,position:r,isPositioned:J,searchRef:C,children:p.jsx($t,{as:Nd,allowPinchZoom:!0,children:p.jsx(Nt,{asChild:!0,trapped:b.open,onMountAutoFocus:A=>{A.preventDefault()},onUnmountAutoFocus:X(o,A=>{var D;(D=b.trigger)==null||D.focus({preventScroll:!0}),A.preventDefault()}),children:p.jsx(pt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:A=>A.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:p.jsx(O,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:A=>A.preventDefault(),...y,...W,onPlaced:()=>F(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:X(y.onKeyDown,A=>{const D=A.ctrlKey||A.altKey||A.metaKey;if(A.key==="Tab"&&A.preventDefault(),!D&&A.key.length===1&&L(A.key),["ArrowUp","ArrowDown","Home","End"].includes(A.key)){let U=q().filter(te=>!te.disabled).map(te=>te.ref.current);if(["ArrowUp","End"].includes(A.key)&&(U=U.slice().reverse()),["ArrowUp","ArrowDown"].includes(A.key)){const te=A.target,ne=U.indexOf(te);U=U.slice(ne+1)}setTimeout(()=>$(U)),A.preventDefault()}})})})})})})});Bs.displayName=_d;var Od="SelectItemAlignedPosition",Ws=l.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=Ie(He,n),a=je(He,n),[i,c]=l.useState(null),[u,f]=l.useState(null),d=se(t,P=>f(P)),h=rn(n),g=l.useRef(!1),v=l.useRef(!0),{viewport:m,selectedItem:x,selectedItemText:y,focusSelectedItem:b}=a,w=l.useCallback(()=>{if(s.trigger&&s.valueNode&&i&&u&&m&&x&&y){const P=s.trigger.getBoundingClientRect(),T=u.getBoundingClientRect(),V=s.valueNode.getBoundingClientRect(),Y=y.getBoundingClientRect();if(s.dir!=="rtl"){const te=Y.left-T.left,ne=V.left-te,de=P.left-ne,Se=P.width+de,kt=Math.max(Se,T.width),Rt=window.innerWidth-he,Pt=Os(ne,[he,Math.max(he,Rt-kt)]);i.style.minWidth=Se+"px",i.style.left=Pt+"px"}else{const te=T.right-Y.right,ne=window.innerWidth-V.right-te,de=window.innerWidth-P.right-ne,Se=P.width+de,kt=Math.max(Se,T.width),Rt=window.innerWidth-he,Pt=Os(ne,[he,Math.max(he,Rt-kt)]);i.style.minWidth=Se+"px",i.style.right=Pt+"px"}const Z=h(),q=window.innerHeight-he*2,J=m.scrollHeight,F=window.getComputedStyle(u),K=parseInt(F.borderTopWidth,10),$=parseInt(F.paddingTop,10),z=parseInt(F.borderBottomWidth,10),k=parseInt(F.paddingBottom,10),ee=K+$+J+k+z,C=Math.min(x.offsetHeight*5,ee),L=window.getComputedStyle(m),S=parseInt(L.paddingTop,10),N=parseInt(L.paddingBottom,10),M=P.top+P.height/2-he,O=q-M,W=x.offsetHeight/2,A=x.offsetTop+W,D=K+$+A,B=ee-D;if(D<=M){const te=Z.length>0&&x===Z[Z.length-1].ref.current;i.style.bottom="0px";const ne=u.clientHeight-m.offsetTop-m.offsetHeight,de=Math.max(O,W+(te?N:0)+ne+z),Se=D+de;i.style.height=Se+"px"}else{const te=Z.length>0&&x===Z[0].ref.current;i.style.top="0px";const de=Math.max(M,K+m.offsetTop+(te?S:0)+W)+B;i.style.height=de+"px",m.scrollTop=D-M+m.offsetTop}i.style.margin=`${he}px 0`,i.style.minHeight=C+"px",i.style.maxHeight=q+"px",r==null||r(),requestAnimationFrame(()=>g.current=!0)}},[h,s.trigger,s.valueNode,i,u,m,x,y,s.dir,r]);ie(()=>w(),[w]);const[E,R]=l.useState();ie(()=>{u&&R(window.getComputedStyle(u).zIndex)},[u]);const _=l.useCallback(P=>{P&&v.current===!0&&(w(),b==null||b(),v.current=!1)},[w,b]);return p.jsx(jd,{scope:n,contentWrapper:i,shouldExpandOnScrollRef:g,onScrollButtonChange:_,children:p.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:p.jsx(H.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Ws.displayName=Od;var Id="SelectPopperPosition",tr=l.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=he,...s}=e,a=on(n);return p.jsx(Kn,{...a,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});tr.displayName=Id;var[jd,nr]=st(He,{}),rr="SelectViewport",Hs=l.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=je(rr,n),a=nr(rr,n),i=se(t,s.onViewportChange),c=l.useRef(0);return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),p.jsx(nn.Slot,{scope:n,children:p.jsx(H.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:X(o.onScroll,u=>{const f=u.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:h}=a;if(h!=null&&h.current&&d){const g=Math.abs(c.current-f.scrollTop);if(g>0){const v=window.innerHeight-he*2,m=parseFloat(d.style.minHeight),x=parseFloat(d.style.height),y=Math.max(m,x);if(y<v){const b=y+g,w=Math.min(v,b),E=b-w;d.style.height=w+"px",d.style.bottom==="0px"&&(f.scrollTop=E>0?E:0,d.style.justifyContent="flex-end")}}}c.current=f.scrollTop})})})]})});Hs.displayName=rr;var Us="SelectGroup",[Md,Dd]=st(Us),Gs=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=le();return p.jsx(Md,{scope:n,id:o,children:p.jsx(H.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Gs.displayName=Us;var Ys="SelectLabel",Ks=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Dd(Ys,n);return p.jsx(H.div,{id:o.id,...r,ref:t})});Ks.displayName=Ys;var sn="SelectItem",[Ld,qs]=st(sn),Xs=l.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...a}=e,i=Ie(sn,n),c=je(sn,n),u=i.value===r,[f,d]=l.useState(s??""),[h,g]=l.useState(!1),v=se(t,b=>{var w;return(w=c.itemRefCallback)==null?void 0:w.call(c,b,r,o)}),m=le(),x=l.useRef("touch"),y=()=>{o||(i.onValueChange(r),i.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return p.jsx(Ld,{scope:n,value:r,disabled:o,textId:m,isSelected:u,onItemTextChange:l.useCallback(b=>{d(w=>w||((b==null?void 0:b.textContent)??"").trim())},[]),children:p.jsx(nn.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:p.jsx(H.div,{role:"option","aria-labelledby":m,"data-highlighted":h?"":void 0,"aria-selected":u&&h,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:v,onFocus:X(a.onFocus,()=>g(!0)),onBlur:X(a.onBlur,()=>g(!1)),onClick:X(a.onClick,()=>{x.current!=="mouse"&&y()}),onPointerUp:X(a.onPointerUp,()=>{x.current==="mouse"&&y()}),onPointerDown:X(a.onPointerDown,b=>{x.current=b.pointerType}),onPointerMove:X(a.onPointerMove,b=>{var w;x.current=b.pointerType,o?(w=c.onItemLeave)==null||w.call(c):x.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:X(a.onPointerLeave,b=>{var w;b.currentTarget===document.activeElement&&((w=c.onItemLeave)==null||w.call(c))}),onKeyDown:X(a.onKeyDown,b=>{var E;((E=c.searchRef)==null?void 0:E.current)!==""&&b.key===" "||(Cd.includes(b.key)&&y(),b.key===" "&&b.preventDefault())})})})})});Xs.displayName=sn;var yt="SelectItemText",Zs=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,a=Ie(yt,n),i=je(yt,n),c=qs(yt,n),u=Pd(yt,n),[f,d]=l.useState(null),h=se(t,y=>d(y),c.onItemTextChange,y=>{var b;return(b=i.itemTextRefCallback)==null?void 0:b.call(i,y,c.value,c.disabled)}),g=f==null?void 0:f.textContent,v=l.useMemo(()=>p.jsx("option",{value:c.value,disabled:c.disabled,children:g},c.value),[c.disabled,c.value,g]),{onNativeOptionAdd:m,onNativeOptionRemove:x}=u;return ie(()=>(m(v),()=>x(v)),[m,x,v]),p.jsxs(p.Fragment,{children:[p.jsx(H.span,{id:c.textId,...s,ref:h}),c.isSelected&&a.valueNode&&!a.valueNodeHasChildren?At.createPortal(s.children,a.valueNode):null]})});Zs.displayName=yt;var Js="SelectItemIndicator",Qs=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return qs(Js,n).isSelected?p.jsx(H.span,{"aria-hidden":!0,...r,ref:t}):null});Qs.displayName=Js;var or="SelectScrollUpButton",ea=l.forwardRef((e,t)=>{const n=je(or,e.__scopeSelect),r=nr(or,e.__scopeSelect),[o,s]=l.useState(!1),a=se(t,r.onScrollButtonChange);return ie(()=>{if(n.viewport&&n.isPositioned){let i=function(){const u=c.scrollTop>0;s(u)};const c=n.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?p.jsx(na,{...e,ref:a,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=n;i&&c&&(i.scrollTop=i.scrollTop-c.offsetHeight)}}):null});ea.displayName=or;var sr="SelectScrollDownButton",ta=l.forwardRef((e,t)=>{const n=je(sr,e.__scopeSelect),r=nr(sr,e.__scopeSelect),[o,s]=l.useState(!1),a=se(t,r.onScrollButtonChange);return ie(()=>{if(n.viewport&&n.isPositioned){let i=function(){const u=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<u;s(f)};const c=n.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?p.jsx(na,{...e,ref:a,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=n;i&&c&&(i.scrollTop=i.scrollTop+c.offsetHeight)}}):null});ta.displayName=sr;var na=l.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=je("SelectScrollButton",n),a=l.useRef(null),i=rn(n),c=l.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return l.useEffect(()=>()=>c(),[c]),ie(()=>{var f;const u=i().find(d=>d.ref.current===document.activeElement);(f=u==null?void 0:u.ref.current)==null||f.scrollIntoView({block:"nearest"})},[i]),p.jsx(H.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:X(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:X(o.onPointerMove,()=>{var u;(u=s.onItemLeave)==null||u.call(s),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:X(o.onPointerLeave,()=>{c()})})}),$d="SelectSeparator",Fd=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return p.jsx(H.div,{"aria-hidden":!0,...r,ref:t})});Fd.displayName=$d;var ar="SelectArrow",zd=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=on(n),s=Ie(ar,n),a=je(ar,n);return s.open&&a.position==="popper"?p.jsx(qn,{...o,...r,ref:t}):null});zd.displayName=ar;var Vd="SelectBubbleInput",ra=l.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=l.useRef(null),s=se(r,o),a=wd(t);return l.useEffect(()=>{const i=o.current;if(!i)return;const c=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(a!==t&&f){const d=new Event("change",{bubbles:!0});f.call(i,t),i.dispatchEvent(d)}},[a,t]),p.jsx(H.select,{...n,style:{...ys,...n.style},ref:s,defaultValue:t})});ra.displayName=Vd;function oa(e){return e===""||e===void 0}function sa(e){const t=Ae(e),n=l.useRef(""),r=l.useRef(0),o=l.useCallback(a=>{const i=n.current+a;t(i),function c(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>c(""),1e3))}(i)},[t]),s=l.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function aa(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=Bd(e,Math.max(s,0));o.length===1&&(a=a.filter(u=>u!==n));const c=a.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function Bd(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Wd=Is,Hd=Ms,Ud=Ls,Gd=$s,Yd=Fs,Kd=zs,qd=Hs,Xd=Gs,Zd=Ks,Jd=Xs,Qd=Zs,ef=Qs,tf=ea,nf=ta;function rf({...e}){return p.jsx(Wd,{"data-slot":"select",...e})}function of({...e}){return p.jsx(Xd,{"data-slot":"select-group",...e})}function sf({...e}){return p.jsx(Ud,{"data-slot":"select-value",...e})}function af({className:e,size:t="default",children:n,...r}){return p.jsxs(Hd,{"data-slot":"select-trigger","data-size":t,className:re("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[n,p.jsx(Gd,{asChild:!0,children:p.jsx(In,{className:"size-4 opacity-50"})})]})}function lf({className:e,children:t,position:n="popper",...r}){return p.jsx(Yd,{children:p.jsxs(Kd,{"data-slot":"select-content",className:re("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[p.jsx(uf,{}),p.jsx(qd,{className:re("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),p.jsx(df,{})]})})}function cf({className:e,...t}){return p.jsx(Zd,{"data-slot":"select-label",className:re("text-muted-foreground px-2 py-1.5 text-xs",e),...t})}function ia({className:e,children:t,...n}){return p.jsxs(Jd,{"data-slot":"select-item",className:re("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...n,children:[p.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:p.jsx(ef,{children:p.jsx(lc,{className:"size-4"})})}),p.jsx(Qd,{children:t})]})}function uf({className:e,...t}){return p.jsx(tf,{"data-slot":"select-scroll-up-button",className:re("flex cursor-default items-center justify-center py-1",e),...t,children:p.jsx(cc,{className:"size-4"})})}function df({className:e,...t}){return p.jsx(nf,{"data-slot":"select-scroll-down-button",className:re("flex cursor-default items-center justify-center py-1",e),...t,children:p.jsx(In,{className:"size-4"})})}var an="Popover",[la,zp]=ze(an,[rt]),wt=rt(),[ff,Me]=la(an),ca=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!1}=e,i=wt(t),c=l.useRef(null),[u,f]=l.useState(!1),[d,h]=ft({prop:r,defaultProp:o??!1,onChange:s,caller:an});return p.jsx(Yn,{...i,children:p.jsx(ff,{scope:t,contentId:le(),triggerRef:c,open:d,onOpenChange:h,onOpenToggle:l.useCallback(()=>h(g=>!g),[h]),hasCustomAnchor:u,onCustomAnchorAdd:l.useCallback(()=>f(!0),[]),onCustomAnchorRemove:l.useCallback(()=>f(!1),[]),modal:a,children:n})})};ca.displayName=an;var ua="PopoverAnchor",pf=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Me(ua,n),s=wt(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:i}=o;return l.useEffect(()=>(a(),()=>i()),[a,i]),p.jsx(Qt,{...s,...r,ref:t})});pf.displayName=ua;var da="PopoverTrigger",fa=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Me(da,n),s=wt(n),a=se(t,o.triggerRef),i=p.jsx(H.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":va(o.open),...r,ref:a,onClick:X(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:p.jsx(Qt,{asChild:!0,...s,children:i})});fa.displayName=da;var ir="PopoverPortal",[mf,gf]=la(ir,{forceMount:void 0}),pa=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,s=Me(ir,t);return p.jsx(mf,{scope:t,forceMount:n,children:p.jsx(_e,{present:n||s.open,children:p.jsx(mt,{asChild:!0,container:o,children:r})})})};pa.displayName=ir;var at="PopoverContent",ma=l.forwardRef((e,t)=>{const n=gf(at,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,s=Me(at,e.__scopePopover);return p.jsx(_e,{present:r||s.open,children:s.modal?p.jsx(vf,{...o,ref:t}):p.jsx(xf,{...o,ref:t})})});ma.displayName=at;var hf=$e("PopoverContent.RemoveScroll"),vf=l.forwardRef((e,t)=>{const n=Me(at,e.__scopePopover),r=l.useRef(null),o=se(t,r),s=l.useRef(!1);return l.useEffect(()=>{const a=r.current;if(a)return Tn(a)},[]),p.jsx($t,{as:hf,allowPinchZoom:!0,children:p.jsx(ga,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:X(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),s.current||(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:X(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0,u=i.button===2||c;s.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:X(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),xf=l.forwardRef((e,t)=>{const n=Me(at,e.__scopePopover),r=l.useRef(!1),o=l.useRef(!1);return p.jsx(ga,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,i;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(r.current||(i=n.triggerRef.current)==null||i.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),ga=l.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:f,...d}=e,h=Me(at,n),g=wt(n);return Cn(),p.jsx(Nt,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:p.jsx(pt,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:f,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>h.onOpenChange(!1),children:p.jsx(Kn,{"data-state":va(h.open),role:"dialog",id:h.contentId,...g,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),ha="PopoverClose",bf=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Me(ha,n);return p.jsx(H.button,{type:"button",...r,ref:t,onClick:X(e.onClick,()=>o.onOpenChange(!1))})});bf.displayName=ha;var yf="PopoverArrow",wf=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=wt(n);return p.jsx(qn,{...o,...r,ref:t})});wf.displayName=yf;function va(e){return e?"open":"closed"}var Sf=ca,Cf=fa,Ef=pa,kf=ma;function Rf({...e}){return p.jsx(Sf,{"data-slot":"popover",...e})}function Pf({...e}){return p.jsx(Cf,{"data-slot":"popover-trigger",...e})}function Af({className:e,align:t="center",sideOffset:n=4,...r}){return p.jsx(Ef,{children:p.jsx(kf,{"data-slot":"popover-content",align:t,sideOffset:n,className:re("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...r})})}var xa=1,Tf=.9,_f=.8,Nf=.17,lr=.1,cr=.999,Of=.9999,If=.99,jf=/[\\\/_+.#"@\[\(\{&]/,Mf=/[\\\/_+.#"@\[\(\{&]/g,Df=/[\s-]/,ba=/[\s-]/g;function ur(e,t,n,r,o,s,a){if(s===t.length)return o===e.length?xa:If;var i=`${o},${s}`;if(a[i]!==void 0)return a[i];for(var c=r.charAt(s),u=n.indexOf(c,o),f=0,d,h,g,v;u>=0;)d=ur(e,t,n,r,u+1,s+1,a),d>f&&(u===o?d*=xa:jf.test(e.charAt(u-1))?(d*=_f,g=e.slice(o,u-1).match(Mf),g&&o>0&&(d*=Math.pow(cr,g.length))):Df.test(e.charAt(u-1))?(d*=Tf,v=e.slice(o,u-1).match(ba),v&&o>0&&(d*=Math.pow(cr,v.length))):(d*=Nf,o>0&&(d*=Math.pow(cr,u-o))),e.charAt(u)!==t.charAt(s)&&(d*=Of)),(d<lr&&n.charAt(u-1)===r.charAt(s+1)||r.charAt(s+1)===r.charAt(s)&&n.charAt(u-1)!==r.charAt(s))&&(h=ur(e,t,n,r,u+1,s+2,a),h*lr>d&&(d=h*lr)),d>f&&(f=d),u=n.indexOf(c,u+1);return a[i]=f,f}function ya(e){return e.toLowerCase().replace(ba," ")}function Lf(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,ur(e,t,ya(e),ya(t),0,0,{})}var St='[cmdk-group=""]',dr='[cmdk-group-items=""]',$f='[cmdk-group-heading=""]',wa='[cmdk-item=""]',Sa=`${wa}:not([aria-disabled="true"])`,fr="cmdk-item-select",it="data-value",Ff=(e,t,n)=>Lf(e,t,n),Ca=l.createContext(void 0),Ct=()=>l.useContext(Ca),Ea=l.createContext(void 0),pr=()=>l.useContext(Ea),ka=l.createContext(void 0),Ra=l.forwardRef((e,t)=>{let n=lt(()=>{var S,N;return{search:"",value:(N=(S=e.value)!=null?S:e.defaultValue)!=null?N:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=lt(()=>new Set),o=lt(()=>new Map),s=lt(()=>new Map),a=lt(()=>new Set),i=Pa(e),{label:c,children:u,value:f,onValueChange:d,filter:h,shouldFilter:g,loop:v,disablePointerSelection:m=!1,vimBindings:x=!0,...y}=e,b=le(),w=le(),E=le(),R=l.useRef(null),_=Xf();Ue(()=>{if(f!==void 0){let S=f.trim();n.current.value=S,P.emit()}},[f]),Ue(()=>{_(6,J)},[]);let P=l.useMemo(()=>({subscribe:S=>(a.current.add(S),()=>a.current.delete(S)),snapshot:()=>n.current,setState:(S,N,M)=>{var O,W,A,D;if(!Object.is(n.current[S],N)){if(n.current[S]=N,S==="search")q(),Y(),_(1,Z);else if(S==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let B=document.getElementById(E);B?B.focus():(O=document.getElementById(b))==null||O.focus()}if(_(7,()=>{var B;n.current.selectedItemId=(B=F())==null?void 0:B.id,P.emit()}),M||_(5,J),((W=i.current)==null?void 0:W.value)!==void 0){let B=N??"";(D=(A=i.current).onValueChange)==null||D.call(A,B);return}}P.emit()}},emit:()=>{a.current.forEach(S=>S())}}),[]),T=l.useMemo(()=>({value:(S,N,M)=>{var O;N!==((O=s.current.get(S))==null?void 0:O.value)&&(s.current.set(S,{value:N,keywords:M}),n.current.filtered.items.set(S,V(N,M)),_(2,()=>{Y(),P.emit()}))},item:(S,N)=>(r.current.add(S),N&&(o.current.has(N)?o.current.get(N).add(S):o.current.set(N,new Set([S]))),_(3,()=>{q(),Y(),n.current.value||Z(),P.emit()}),()=>{s.current.delete(S),r.current.delete(S),n.current.filtered.items.delete(S);let M=F();_(4,()=>{q(),(M==null?void 0:M.getAttribute("id"))===S&&Z(),P.emit()})}),group:S=>(o.current.has(S)||o.current.set(S,new Set),()=>{s.current.delete(S),o.current.delete(S)}),filter:()=>i.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>i.current.disablePointerSelection,listId:b,inputId:E,labelId:w,listInnerRef:R}),[]);function V(S,N){var M,O;let W=(O=(M=i.current)==null?void 0:M.filter)!=null?O:Ff;return S?W(S,n.current.search,N):0}function Y(){if(!n.current.search||i.current.shouldFilter===!1)return;let S=n.current.filtered.items,N=[];n.current.filtered.groups.forEach(O=>{let W=o.current.get(O),A=0;W.forEach(D=>{let B=S.get(D);A=Math.max(B,A)}),N.push([O,A])});let M=R.current;K().sort((O,W)=>{var A,D;let B=O.getAttribute("id"),U=W.getAttribute("id");return((A=S.get(U))!=null?A:0)-((D=S.get(B))!=null?D:0)}).forEach(O=>{let W=O.closest(dr);W?W.appendChild(O.parentElement===W?O:O.closest(`${dr} > *`)):M.appendChild(O.parentElement===M?O:O.closest(`${dr} > *`))}),N.sort((O,W)=>W[1]-O[1]).forEach(O=>{var W;let A=(W=R.current)==null?void 0:W.querySelector(`${St}[${it}="${encodeURIComponent(O[0])}"]`);A==null||A.parentElement.appendChild(A)})}function Z(){let S=K().find(M=>M.getAttribute("aria-disabled")!=="true"),N=S==null?void 0:S.getAttribute(it);P.setState("value",N||void 0)}function q(){var S,N,M,O;if(!n.current.search||i.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let W=0;for(let A of r.current){let D=(N=(S=s.current.get(A))==null?void 0:S.value)!=null?N:"",B=(O=(M=s.current.get(A))==null?void 0:M.keywords)!=null?O:[],U=V(D,B);n.current.filtered.items.set(A,U),U>0&&W++}for(let[A,D]of o.current)for(let B of D)if(n.current.filtered.items.get(B)>0){n.current.filtered.groups.add(A);break}n.current.filtered.count=W}function J(){var S,N,M;let O=F();O&&(((S=O.parentElement)==null?void 0:S.firstChild)===O&&((M=(N=O.closest(St))==null?void 0:N.querySelector($f))==null||M.scrollIntoView({block:"nearest"})),O.scrollIntoView({block:"nearest"}))}function F(){var S;return(S=R.current)==null?void 0:S.querySelector(`${wa}[aria-selected="true"]`)}function K(){var S;return Array.from(((S=R.current)==null?void 0:S.querySelectorAll(Sa))||[])}function $(S){let N=K()[S];N&&P.setState("value",N.getAttribute(it))}function z(S){var N;let M=F(),O=K(),W=O.findIndex(D=>D===M),A=O[W+S];(N=i.current)!=null&&N.loop&&(A=W+S<0?O[O.length-1]:W+S===O.length?O[0]:O[W+S]),A&&P.setState("value",A.getAttribute(it))}function k(S){let N=F(),M=N==null?void 0:N.closest(St),O;for(;M&&!O;)M=S>0?Kf(M,St):qf(M,St),O=M==null?void 0:M.querySelector(Sa);O?P.setState("value",O.getAttribute(it)):z(S)}let ee=()=>$(K().length-1),C=S=>{S.preventDefault(),S.metaKey?ee():S.altKey?k(1):z(1)},L=S=>{S.preventDefault(),S.metaKey?$(0):S.altKey?k(-1):z(-1)};return l.createElement(H.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:S=>{var N;(N=y.onKeyDown)==null||N.call(y,S);let M=S.nativeEvent.isComposing||S.keyCode===229;if(!(S.defaultPrevented||M))switch(S.key){case"n":case"j":{x&&S.ctrlKey&&C(S);break}case"ArrowDown":{C(S);break}case"p":case"k":{x&&S.ctrlKey&&L(S);break}case"ArrowUp":{L(S);break}case"Home":{S.preventDefault(),$(0);break}case"End":{S.preventDefault(),ee();break}case"Enter":{S.preventDefault();let O=F();if(O){let W=new Event(fr);O.dispatchEvent(W)}}}}},l.createElement("label",{"cmdk-label":"",htmlFor:T.inputId,id:T.labelId,style:Jf},c),ln(e,S=>l.createElement(Ea.Provider,{value:P},l.createElement(Ca.Provider,{value:T},S))))}),zf=l.forwardRef((e,t)=>{var n,r;let o=le(),s=l.useRef(null),a=l.useContext(ka),i=Ct(),c=Pa(e),u=(r=(n=c.current)==null?void 0:n.forceMount)!=null?r:a==null?void 0:a.forceMount;Ue(()=>{if(!u)return i.item(o,a==null?void 0:a.id)},[u]);let f=Aa(o,s,[e.value,e.children,s],e.keywords),d=pr(),h=De(_=>_.value&&_.value===f.current),g=De(_=>u||i.filter()===!1?!0:_.search?_.filtered.items.get(o)>0:!0);l.useEffect(()=>{let _=s.current;if(!(!_||e.disabled))return _.addEventListener(fr,v),()=>_.removeEventListener(fr,v)},[g,e.onSelect,e.disabled]);function v(){var _,P;m(),(P=(_=c.current).onSelect)==null||P.call(_,f.current)}function m(){d.setState("value",f.current,!0)}if(!g)return null;let{disabled:x,value:y,onSelect:b,forceMount:w,keywords:E,...R}=e;return l.createElement(H.div,{ref:Le(s,t),...R,id:o,"cmdk-item":"",role:"option","aria-disabled":!!x,"aria-selected":!!h,"data-disabled":!!x,"data-selected":!!h,onPointerMove:x||i.getDisablePointerSelection()?void 0:m,onClick:x?void 0:v},e.children)}),Vf=l.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...s}=e,a=le(),i=l.useRef(null),c=l.useRef(null),u=le(),f=Ct(),d=De(g=>o||f.filter()===!1?!0:g.search?g.filtered.groups.has(a):!0);Ue(()=>f.group(a),[]),Aa(a,i,[e.value,e.heading,c]);let h=l.useMemo(()=>({id:a,forceMount:o}),[o]);return l.createElement(H.div,{ref:Le(i,t),...s,"cmdk-group":"",role:"presentation",hidden:d?void 0:!0},n&&l.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),ln(e,g=>l.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},l.createElement(ka.Provider,{value:h},g))))}),Bf=l.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=l.useRef(null),s=De(a=>!a.search);return!n&&!s?null:l.createElement(H.div,{ref:Le(o,t),...r,"cmdk-separator":"",role:"separator"})}),Wf=l.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,s=pr(),a=De(u=>u.search),i=De(u=>u.selectedItemId),c=Ct();return l.useEffect(()=>{e.value!=null&&s.setState("search",e.value)},[e.value]),l.createElement(H.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":i,id:c.inputId,type:"text",value:o?e.value:a,onChange:u=>{o||s.setState("search",u.target.value),n==null||n(u.target.value)}})}),Hf=l.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,s=l.useRef(null),a=l.useRef(null),i=De(u=>u.selectedItemId),c=Ct();return l.useEffect(()=>{if(a.current&&s.current){let u=a.current,f=s.current,d,h=new ResizeObserver(()=>{d=requestAnimationFrame(()=>{let g=u.offsetHeight;f.style.setProperty("--cmdk-list-height",g.toFixed(1)+"px")})});return h.observe(u),()=>{cancelAnimationFrame(d),h.unobserve(u)}}},[]),l.createElement(H.div,{ref:Le(s,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":r,id:c.listId},ln(e,u=>l.createElement("div",{ref:Le(a,c.listInnerRef),"cmdk-list-sizer":""},u)))}),Uf=l.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:s,container:a,...i}=e;return l.createElement(To,{open:n,onOpenChange:r},l.createElement(_o,{container:a},l.createElement(No,{"cmdk-overlay":"",className:o}),l.createElement(Oo,{"aria-label":e.label,"cmdk-dialog":"",className:s},l.createElement(Ra,{ref:t,...i}))))}),Gf=l.forwardRef((e,t)=>De(n=>n.filtered.count===0)?l.createElement(H.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Yf=l.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...s}=e;return l.createElement(H.div,{ref:t,...s,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},ln(e,a=>l.createElement("div",{"aria-hidden":!0},a)))}),Et=Object.assign(Ra,{List:Hf,Item:zf,Input:Wf,Group:Vf,Separator:Bf,Dialog:Uf,Empty:Gf,Loading:Yf});function Kf(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function qf(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function Pa(e){let t=l.useRef(e);return Ue(()=>{t.current=e}),t}var Ue=typeof window>"u"?l.useEffect:l.useLayoutEffect;function lt(e){let t=l.useRef();return t.current===void 0&&(t.current=e()),t}function De(e){let t=pr(),n=()=>e(t.snapshot());return l.useSyncExternalStore(t.subscribe,n,n)}function Aa(e,t,n,r=[]){let o=l.useRef(),s=Ct();return Ue(()=>{var a;let i=(()=>{var u;for(let f of n){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(u=f.current.textContent)==null?void 0:u.trim():o.current}})(),c=r.map(u=>u.trim());s.value(e,i,c),(a=t.current)==null||a.setAttribute(it,i),o.current=i}),o}var Xf=()=>{let[e,t]=l.useState(),n=lt(()=>new Map);return Ue(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function Zf(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function ln({asChild:e,children:t},n){return e&&l.isValidElement(t)?l.cloneElement(Zf(t),{ref:t.ref},n(t.props.children)):n(t)}var Jf={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function Qf({className:e,...t}){return p.jsx(Et,{"data-slot":"command",className:re("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function ep({className:e,...t}){return p.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[p.jsx(Do,{className:"size-4 shrink-0 opacity-50"}),p.jsx(Et.Input,{"data-slot":"command-input",className:re("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function tp({...e}){return p.jsx(Et.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function Ta({className:e,...t}){return p.jsx(Et.Group,{"data-slot":"command-group",className:re("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}function _a({className:e,...t}){return p.jsx(Et.Item,{"data-slot":"command-item",className:re("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function mr(e){return e.length>0&&e[0].kind==="group"}function np(e){return e.multiple?p.jsx(Oa,{...e}):p.jsx(Na,{...e})}const Na=({options:e,placeholder:t="Select...",disabled:n,error:r,helperText:o,value:s,onChange:a})=>{const[i,c]=oe.useState(""),u=s??i,f=d=>{c(d),a==null||a(d)};return p.jsxs("div",{className:"w-94",children:[p.jsxs(rf,{value:u,onValueChange:f,disabled:n,children:[p.jsx(af,{"aria-invalid":!!r,className:re("flex w-full items-center justify-between rounded-md border bg-white px-3 py-2 text-sm",n&&"cursor-not-allowed bg-neutral-black-4 border border-neutral-black-4 rounded",r?"border-primary-1":"border-neutral-black-4"),children:p.jsx(sf,{placeholder:t})}),p.jsx(lf,{className:"w-full bg-white border border-neutral-black-4",children:mr(e)?e.map(d=>p.jsxs(of,{className:"p-2",children:[p.jsx(cf,{children:d.label}),d.options.map(h=>p.jsx(ia,{value:h.value,disabled:h.disabled,children:h.label},h.value))]},d.label)):e.map(d=>p.jsx(ia,{value:d.value,disabled:d.disabled,className:"hover:cursor-pointer hover:bg-neutral-black-5",children:d.label},d.value))})]}),r&&p.jsx("p",{className:"mt-1 text-xs text-primary-1",children:r}),o&&p.jsx("p",{className:"mt-1 text-xs text-neutral-black-3",children:o})]})},Oa=({options:e,placeholder:t="Select...",disabled:n,error:r,helperText:o,value:s,onChange:a})=>{const[i,c]=oe.useState(!1),[u,f]=oe.useState([]),d=s??u,h=oe.useMemo(()=>mr(e)?e.flatMap(v=>v.options):e,[e]),g=v=>{const m=d.includes(v)?d.filter(x=>x!==v):[...d,v];f(m),a==null||a(m)};return p.jsxs("div",{className:"w-94",children:[p.jsxs(Rf,{open:i,onOpenChange:c,children:[p.jsx(Pf,{asChild:!0,children:p.jsxs("button",{type:"button",disabled:n,"aria-haspopup":"listbox","aria-expanded":i,className:re("flex w-full items-center justify-between rounded-md border bg-white px-3 py-2 text-sm",n&&"cursor-not-allowed bg-neutral-black-4 border border-neutral-black-4 rounded",r?"border-primary-1":"border-neutral-black-4"),children:[p.jsx("div",{className:"flex flex-wrap gap-1",children:d.length>0?d.map(v=>p.jsxs(Vo,{type:"outline",onClick:m=>{m.stopPropagation(),g(v)},className:"cursor-pointer border-neutral-black-4 bg-transparent hover:bg-neutral-black-4",children:[p.jsx("span",{className:"text-neutral-black-1",children:v}),p.jsx("div",{className:"flex items-center justify-center rounded-full border border-neutral-black-2 h-5 w-5 ml-1",children:p.jsx($o,{className:"h-3 w-3 text-neutral-black-1",strokeWidth:2})})]},v)):p.jsx("span",{className:"truncate text-xs text-neutral-black-1",children:t})}),p.jsx(In,{className:"h-4 w-4 text-neutral-black-1"})]})}),p.jsx(Af,{className:"p-0 w-full bg-white border border-neutral-black-4",children:p.jsxs(Qf,{className:"w-full",children:[p.jsx(ep,{placeholder:"Search..."}),p.jsx(tp,{children:"No results found."}),mr(e)?e.map(v=>p.jsx(Ta,{heading:v.label,children:v.options.map(m=>p.jsxs(_a,{value:m.label,onSelect:()=>!m.disabled&&g(m.value),disabled:m.disabled,children:[p.jsx("input",{type:"checkbox",readOnly:!0,checked:d.includes(m.value),className:"mr-2"}),m.label]},m.value))},v.label)):p.jsx(Ta,{children:h.map(v=>p.jsxs(_a,{value:v.label,onSelect:()=>!v.disabled&&g(v.value),disabled:v.disabled,children:[p.jsx("input",{type:"checkbox",readOnly:!0,checked:d.includes(v.value),className:"mr-2"}),v.label]},v.value))})]})})]}),r&&p.jsx("p",{className:"mt-1 text-xs text-primary-1",children:r}),o&&p.jsx("p",{className:"mt-1 text-xs text-neutral-black-3",children:o})]})},rp=Pe("w-full",{variants:{variant:{"widget-1":"bg-white rounded-lg p-6 flex flex-col items-start gap-4 shadow-[0_0_8px_0_rgba(0,0,0,0.08),6px_0_0_0_var(--color-primary-1)_inset]","widget-2":"bg-white rounded-lg p-6 flex flex-col items-start gap-4 border border-neutral-black-4 shadow-[0_0_8px_0_rgba(0,0,0,0.08)]"}},defaultVariants:{variant:"widget-1"}});function op({className:e,variant:t,asChild:n=!1,children:r,...o}){const s=n?fn:"div";return p.jsx(s,{"data-slot":"card",className:re(rp({variant:t}),e),...o,children:r})}var gr={exports:{}},hr={};/**
|
|
141
|
+
*/const $o=me("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function gc({...e}){return f.jsx(To,{"data-slot":"dialog",...e})}function vc({...e}){return f.jsx(tc,{"data-slot":"dialog-trigger",...e})}function Fo({...e}){return f.jsx(No,{"data-slot":"dialog-portal",...e})}function xc({...e}){return f.jsx(jo,{"data-slot":"dialog-close",...e})}function Vo({className:e,...t}){return f.jsx(_o,{"data-slot":"dialog-overlay",className:q("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 bc({className:e,children:t,showCloseButton:n=!0,...r}){return f.jsxs(Fo,{"data-slot":"dialog-portal",children:[f.jsx(Vo,{}),f.jsxs(Oo,{"data-slot":"dialog-content",className:q("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&&f.jsxs(jo,{"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:[f.jsx($o,{}),f.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function yc({className:e,...t}){return f.jsx("div",{"data-slot":"dialog-header",className:q("flex flex-col gap-2 text-center sm:text-left",e),...t})}function wc({className:e,...t}){return f.jsx("div",{"data-slot":"dialog-footer",className:q("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function Sc({className:e,...t}){return f.jsx(nc,{"data-slot":"dialog-title",className:q("text-lg leading-none font-semibold ",e),...t})}function Cc({className:e,...t}){return f.jsx(rc,{"data-slot":"dialog-description",className:q("text-muted-foreground text-sm",e),...t})}const Ec=fe("inline-flex items-center justify-center rounded-full font-medium w-fit whitespace-nowrap shrink-0 gap-1 text-sm",{variants:{variant:{primary:"bg-tag-light-blue text-tag-dark-blue border-tag-light-blue",neutral:"bg-tag-light-gray text-tag-dark-gray border-tag-light-gray",warning:"bg-tag-light-brown text-tag-dark-brown border-tag-stroke-warning-border",success:"bg-tag-light-green text-tag-dark-green border-tag-stroke-success-border",error:"bg-tag-light-red-light text-tag-dark-red-dark border-tag-stroke-error-border",secondary:"bg-tag-light-ice-blue text-tag-dark-ice-blue border-tag-stroke-dark-border"},type:{filled:"border-0",outline:"border bg-transparent"},size:{md:"px-3 py-0.5 text-sm"}},defaultVariants:{variant:"primary",type:"filled",size:"md"}});function zo({className:e,variant:t,type:n="filled",asChild:r=!1,children:o,...a}){const s=r?fn:"span";return f.jsx(s,{"data-slot":"badge",className:q(Ec({variant:t,type:n}),e),...a,children:o})}const kc=["top","right","bottom","left"],_e=Math.min,ce=Math.max,Wt=Math.round,Ht=Math.floor,be=e=>({x:e,y:e}),Rc={left:"right",right:"left",bottom:"top",top:"bottom"},Pc={start:"end",end:"start"};function In(e,t,n){return ce(e,_e(t,n))}function ke(e,t){return typeof e=="function"?e(t):e}function Re(e){return e.split("-")[0]}function Qe(e){return e.split("-")[1]}function Mn(e){return e==="x"?"y":"x"}function Dn(e){return e==="y"?"height":"width"}const Ac=new Set(["top","bottom"]);function ye(e){return Ac.has(Re(e))?"y":"x"}function Ln(e){return Mn(ye(e))}function Tc(e,t,n){n===void 0&&(n=!1);const r=Qe(e),o=Ln(e),a=Dn(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Ut(s)),[s,Ut(s)]}function Nc(e){const t=Ut(e);return[$n(e),t,$n(t)]}function $n(e){return e.replace(/start|end/g,t=>Pc[t])}const Bo=["left","right"],Wo=["right","left"],_c=["top","bottom"],Oc=["bottom","top"];function jc(e,t,n){switch(e){case"top":case"bottom":return n?t?Wo:Bo:t?Bo:Wo;case"left":case"right":return t?_c:Oc;default:return[]}}function Ic(e,t,n,r){const o=Qe(e);let a=jc(Re(e),n==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map($n)))),a}function Ut(e){return e.replace(/left|right|bottom|top/g,t=>Rc[t])}function Mc(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ho(e){return typeof e!="number"?Mc(e):{top:e,right:e,bottom:e,left:e}}function Gt(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Uo(e,t,n){let{reference:r,floating:o}=e;const a=ye(t),s=Ln(t),i=Dn(s),c=Re(t),u=a==="y",p=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,g=r[i]/2-o[i]/2;let h;switch(c){case"top":h={x:p,y:r.y-o.height};break;case"bottom":h={x:p,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(Qe(t)){case"start":h[s]-=g*(n&&u?-1:1);break;case"end":h[s]+=g*(n&&u?-1:1);break}return h}const Dc=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,i=a.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:d}=Uo(u,r,c),g=r,h={},v=0;for(let m=0;m<i.length;m++){const{name:x,fn:y}=i[m],{x:b,y:w,data:E,reset:R}=await y({x:p,y:d,initialPlacement:r,placement:g,strategy:o,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});p=b??p,d=w??d,h={...h,[x]:{...h[x],...E}},R&&v<=50&&(v++,typeof R=="object"&&(R.placement&&(g=R.placement),R.rects&&(u=R.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):R.rects),{x:p,y:d}=Uo(u,g,c)),m=-1)}return{x:p,y:d,placement:g,strategy:o,middlewareData:h}};async function ht(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:s,elements:i,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:p="viewport",elementContext:d="floating",altBoundary:g=!1,padding:h=0}=ke(t,e),v=Ho(h),x=i[g?d==="floating"?"reference":"floating":d],y=Gt(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(x)))==null||n?x:x.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:u,rootBoundary:p,strategy:c})),b=d==="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)),E=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},R=Gt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:b,offsetParent:w,strategy:c}):b);return{top:(y.top-R.top+v.top)/E.y,bottom:(R.bottom-y.bottom+v.bottom)/E.y,left:(y.left-R.left+v.left)/E.x,right:(R.right-y.right+v.right)/E.x}}const Lc=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:i,middlewareData:c}=t,{element:u,padding:p=0}=ke(e,t)||{};if(u==null)return{};const d=Ho(p),g={x:n,y:r},h=Ln(o),v=Dn(h),m=await s.getDimensions(u),x=h==="y",y=x?"top":"left",b=x?"bottom":"right",w=x?"clientHeight":"clientWidth",E=a.reference[v]+a.reference[h]-g[h]-a.floating[v],R=g[h]-a.reference[h],N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let P=N?N[w]:0;(!P||!await(s.isElement==null?void 0:s.isElement(N)))&&(P=i.floating[w]||a.floating[v]);const T=E/2-R/2,z=P/2-m[v]/2-1,Y=_e(d[y],z),Q=_e(d[b],z),X=Y,ee=P-m[v]-Q,F=P/2-m[v]/2+T,K=In(X,F,ee),$=!c.arrow&&Qe(o)!=null&&F!==K&&a.reference[v]/2-(F<X?Y:Q)-m[v]/2<0,V=$?F<X?F-X:F-ee:0;return{[h]:g[h]+V,data:{[h]:K,centerOffset:F-K-V,...$&&{alignmentOffset:V}},reset:$}}}),$c=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:c,elements:u}=t,{mainAxis:p=!0,crossAxis:d=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...x}=ke(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=Re(o),b=ye(i),w=Re(i)===i,E=await(c.isRTL==null?void 0:c.isRTL(u.floating)),R=g||(w||!m?[Ut(i)]:Nc(i)),N=v!=="none";!g&&N&&R.push(...Ic(i,m,v,E));const P=[i,...R],T=await ht(t,x),z=[];let Y=((r=a.flip)==null?void 0:r.overflows)||[];if(p&&z.push(T[y]),d){const F=Tc(o,s,E);z.push(T[F[0]],T[F[1]])}if(Y=[...Y,{placement:o,overflows:z}],!z.every(F=>F<=0)){var Q,X;const F=(((Q=a.flip)==null?void 0:Q.index)||0)+1,K=P[F];if(K&&(!(d==="alignment"?b!==ye(K):!1)||Y.every(k=>ye(k.placement)===b?k.overflows[0]>0:!0)))return{data:{index:F,overflows:Y},reset:{placement:K}};let $=(X=Y.filter(V=>V.overflows[0]<=0).sort((V,k)=>V.overflows[1]-k.overflows[1])[0])==null?void 0:X.placement;if(!$)switch(h){case"bestFit":{var ee;const V=(ee=Y.filter(k=>{if(N){const te=ye(k.placement);return te===b||te==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(te=>te>0).reduce((te,C)=>te+C,0)]).sort((k,te)=>k[1]-te[1])[0])==null?void 0:ee[0];V&&($=V);break}case"initialPlacement":$=i;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function Go(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Yo(e){return kc.some(t=>e[t]>=0)}const Fc=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 ht(t,{...o,elementContext:"reference"}),s=Go(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Yo(s)}}}case"escaped":{const a=await ht(t,{...o,altBoundary:!0}),s=Go(a,n.floating);return{data:{escapedOffsets:s,escaped:Yo(s)}}}default:return{}}}}},Ko=new Set(["left","top"]);async function Vc(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Re(n),i=Qe(n),c=ye(n)==="y",u=Ko.has(s)?-1:1,p=a&&c?-1:1,d=ke(t,e);let{mainAxis:g,crossAxis:h,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return i&&typeof v=="number"&&(h=i==="end"?v*-1:v),c?{x:h*p,y:g*u}:{x:g*u,y:h*p}}const zc=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,c=await Vc(t,e);return s===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:s}}}}},Bc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:x=>{let{x:y,y:b}=x;return{x:y,y:b}}},...c}=ke(e,t),u={x:n,y:r},p=await ht(t,c),d=ye(Re(o)),g=Mn(d);let h=u[g],v=u[d];if(a){const x=g==="y"?"top":"left",y=g==="y"?"bottom":"right",b=h+p[x],w=h-p[y];h=In(b,h,w)}if(s){const x=d==="y"?"top":"left",y=d==="y"?"bottom":"right",b=v+p[x],w=v-p[y];v=In(b,v,w)}const m=i.fn({...t,[g]:h,[d]:v});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[g]:a,[d]:s}}}}}},Wc=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:c=!0,crossAxis:u=!0}=ke(e,t),p={x:n,y:r},d=ye(o),g=Mn(d);let h=p[g],v=p[d];const m=ke(i,t),x=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const w=g==="y"?"height":"width",E=a.reference[g]-a.floating[w]+x.mainAxis,R=a.reference[g]+a.reference[w]-x.mainAxis;h<E?h=E:h>R&&(h=R)}if(u){var y,b;const w=g==="y"?"width":"height",E=Ko.has(Re(o)),R=a.reference[d]-a.floating[w]+(E&&((y=s.offset)==null?void 0:y[d])||0)+(E?0:x.crossAxis),N=a.reference[d]+a.reference[w]+(E?0:((b=s.offset)==null?void 0:b[d])||0)-(E?x.crossAxis:0);v<R?v=R:v>N&&(v=N)}return{[g]:h,[d]:v}}}},Hc=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:c=()=>{},...u}=ke(e,t),p=await ht(t,u),d=Re(o),g=Qe(o),h=ye(o)==="y",{width:v,height:m}=a.floating;let x,y;d==="top"||d==="bottom"?(x=d,y=g===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(y=d,x=g==="end"?"top":"bottom");const b=m-p.top-p.bottom,w=v-p.left-p.right,E=_e(m-p[x],b),R=_e(v-p[y],w),N=!t.middlewareData.shift;let P=E,T=R;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=b),N&&!g){const Y=ce(p.left,0),Q=ce(p.right,0),X=ce(p.top,0),ee=ce(p.bottom,0);h?T=v-2*(Y!==0||Q!==0?Y+Q:ce(p.left,p.right)):P=m-2*(X!==0||ee!==0?X+ee:ce(p.top,p.bottom))}await c({...t,availableWidth:T,availableHeight:P});const z=await s.getDimensions(i.floating);return v!==z.width||m!==z.height?{reset:{rects:!0}}:{}}}};function Yt(){return typeof window<"u"}function et(e){return qo(e)?(e.nodeName||"").toLowerCase():"#document"}function ue(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function we(e){var t;return(t=(qo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function qo(e){return Yt()?e instanceof Node||e instanceof ue(e).Node:!1}function he(e){return Yt()?e instanceof Element||e instanceof ue(e).Element:!1}function Se(e){return Yt()?e instanceof HTMLElement||e instanceof ue(e).HTMLElement:!1}function Xo(e){return!Yt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ue(e).ShadowRoot}const Uc=new Set(["inline","contents"]);function gt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ge(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Uc.has(o)}const Gc=new Set(["table","td","th"]);function Yc(e){return Gc.has(et(e))}const Kc=[":popover-open",":modal"];function Kt(e){return Kc.some(t=>{try{return e.matches(t)}catch{return!1}})}const qc=["transform","translate","scale","rotate","perspective"],Xc=["transform","translate","scale","rotate","perspective","filter"],Zc=["paint","layout","strict","content"];function Fn(e){const t=Vn(),n=he(e)?ge(e):e;return qc.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)||Xc.some(r=>(n.willChange||"").includes(r))||Zc.some(r=>(n.contain||"").includes(r))}function Jc(e){let t=Oe(e);for(;Se(t)&&!tt(t);){if(Fn(t))return t;if(Kt(t))return null;t=Oe(t)}return null}function Vn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Qc=new Set(["html","body","#document"]);function tt(e){return Qc.has(et(e))}function ge(e){return ue(e).getComputedStyle(e)}function qt(e){return he(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Oe(e){if(et(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Xo(e)&&e.host||we(e);return Xo(t)?t.host:t}function Zo(e){const t=Oe(e);return tt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Se(t)&>(t)?t:Zo(t)}function vt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Zo(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),s=ue(o);if(a){const i=zn(s);return t.concat(s,s.visualViewport||[],gt(o)?o:[],i&&n?vt(i):[])}return t.concat(o,vt(o,[],n))}function zn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Jo(e){const t=ge(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Se(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:r,i=Wt(n)!==a||Wt(r)!==s;return i&&(n=a,r=s),{width:n,height:r,$:i}}function Bn(e){return he(e)?e:e.contextElement}function nt(e){const t=Bn(e);if(!Se(t))return be(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Jo(t);let s=(a?Wt(n.width):n.width)/r,i=(a?Wt(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const eu=be(0);function Qo(e){const t=ue(e);return!Vn()||!t.visualViewport?eu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function tu(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ue(e)?!1:t}function Be(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Bn(e);let s=be(1);t&&(r?he(r)&&(s=nt(r)):s=nt(e));const i=tu(a,n,r)?Qo(a):be(0);let c=(o.left+i.x)/s.x,u=(o.top+i.y)/s.y,p=o.width/s.x,d=o.height/s.y;if(a){const g=ue(a),h=r&&he(r)?ue(r):r;let v=g,m=zn(v);for(;m&&r&&h!==v;){const x=nt(m),y=m.getBoundingClientRect(),b=ge(m),w=y.left+(m.clientLeft+parseFloat(b.paddingLeft))*x.x,E=y.top+(m.clientTop+parseFloat(b.paddingTop))*x.y;c*=x.x,u*=x.y,p*=x.x,d*=x.y,c+=w,u+=E,v=ue(m),m=zn(v)}}return Gt({width:p,height:d,x:c,y:u})}function Xt(e,t){const n=qt(e).scrollLeft;return t?t.left+n:Be(we(e)).left+n}function ea(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Xt(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function nu(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",s=we(r),i=t?Kt(t.floating):!1;if(r===s||i&&a)return n;let c={scrollLeft:0,scrollTop:0},u=be(1);const p=be(0),d=Se(r);if((d||!d&&!a)&&((et(r)!=="body"||gt(s))&&(c=qt(r)),Se(r))){const h=Be(r);u=nt(r),p.x=h.x+r.clientLeft,p.y=h.y+r.clientTop}const g=s&&!d&&!a?ea(s,c):be(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+p.x+g.x,y:n.y*u.y-c.scrollTop*u.y+p.y+g.y}}function ru(e){return Array.from(e.getClientRects())}function ou(e){const t=we(e),n=qt(e),r=e.ownerDocument.body,o=ce(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ce(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Xt(e);const i=-n.scrollTop;return ge(r).direction==="rtl"&&(s+=ce(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:i}}const ta=25;function au(e,t){const n=ue(e),r=we(e),o=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,i=0,c=0;if(o){a=o.width,s=o.height;const p=Vn();(!p||p&&t==="fixed")&&(i=o.offsetLeft,c=o.offsetTop)}const u=Xt(r);if(u<=0){const p=r.ownerDocument,d=p.body,g=getComputedStyle(d),h=p.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,v=Math.abs(r.clientWidth-d.clientWidth-h);v<=ta&&(a-=v)}else u<=ta&&(a+=u);return{width:a,height:s,x:i,y:c}}const su=new Set(["absolute","fixed"]);function iu(e,t){const n=Be(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Se(e)?nt(e):be(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,c=o*a.x,u=r*a.y;return{width:s,height:i,x:c,y:u}}function na(e,t,n){let r;if(t==="viewport")r=au(e,n);else if(t==="document")r=ou(we(e));else if(he(t))r=iu(t,n);else{const o=Qo(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Gt(r)}function ra(e,t){const n=Oe(e);return n===t||!he(n)||tt(n)?!1:ge(n).position==="fixed"||ra(n,t)}function lu(e,t){const n=t.get(e);if(n)return n;let r=vt(e,[],!1).filter(i=>he(i)&&et(i)!=="body"),o=null;const a=ge(e).position==="fixed";let s=a?Oe(e):e;for(;he(s)&&!tt(s);){const i=ge(s),c=Fn(s);!c&&i.position==="fixed"&&(o=null),(a?!c&&!o:!c&&i.position==="static"&&!!o&&su.has(o.position)||gt(s)&&!c&&ra(e,s))?r=r.filter(p=>p!==s):o=i,s=Oe(s)}return t.set(e,r),r}function cu(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Kt(t)?[]:lu(t,this._c):[].concat(n),r],i=s[0],c=s.reduce((u,p)=>{const d=na(t,p,o);return u.top=ce(d.top,u.top),u.right=_e(d.right,u.right),u.bottom=_e(d.bottom,u.bottom),u.left=ce(d.left,u.left),u},na(t,i,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function uu(e){const{width:t,height:n}=Jo(e);return{width:t,height:n}}function du(e,t,n){const r=Se(t),o=we(t),a=n==="fixed",s=Be(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const c=be(0);function u(){c.x=Xt(o)}if(r||!r&&!a)if((et(t)!=="body"||gt(o))&&(i=qt(t)),r){const h=Be(t,!0,a,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else o&&u();a&&!r&&o&&u();const p=o&&!r&&!a?ea(o,i):be(0),d=s.left+i.scrollLeft-c.x-p.x,g=s.top+i.scrollTop-c.y-p.y;return{x:d,y:g,width:s.width,height:s.height}}function Wn(e){return ge(e).position==="static"}function oa(e,t){if(!Se(e)||ge(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return we(e)===n&&(n=n.ownerDocument.body),n}function aa(e,t){const n=ue(e);if(Kt(e))return n;if(!Se(e)){let o=Oe(e);for(;o&&!tt(o);){if(he(o)&&!Wn(o))return o;o=Oe(o)}return n}let r=oa(e,t);for(;r&&Yc(r)&&Wn(r);)r=oa(r,t);return r&&tt(r)&&Wn(r)&&!Fn(r)?n:r||Jc(e)||n}const fu=async function(e){const t=this.getOffsetParent||aa,n=this.getDimensions,r=await n(e.floating);return{reference:du(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function pu(e){return ge(e).direction==="rtl"}const mu={convertOffsetParentRelativeRectToViewportRelativeRect:nu,getDocumentElement:we,getClippingRect:cu,getOffsetParent:aa,getElementRects:fu,getClientRects:ru,getDimensions:uu,getScale:nt,isElement:he,isRTL:pu};function sa(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function hu(e,t){let n=null,r;const o=we(e);function a(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function s(i,c){i===void 0&&(i=!1),c===void 0&&(c=1),a();const u=e.getBoundingClientRect(),{left:p,top:d,width:g,height:h}=u;if(i||t(),!g||!h)return;const v=Ht(d),m=Ht(o.clientWidth-(p+g)),x=Ht(o.clientHeight-(d+h)),y=Ht(p),w={rootMargin:-v+"px "+-m+"px "+-x+"px "+-y+"px",threshold:ce(0,_e(1,c))||1};let E=!0;function R(N){const P=N[0].intersectionRatio;if(P!==c){if(!E)return s();P?s(!1,P):r=setTimeout(()=>{s(!1,1e-7)},1e3)}P===1&&!sa(u,e.getBoundingClientRect())&&s(),E=!1}try{n=new IntersectionObserver(R,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(R,w)}n.observe(e)}return s(!0),a}function gu(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:c=!1}=r,u=Bn(e),p=o||a?[...u?vt(u):[],...vt(t)]:[];p.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const d=u&&i?hu(u,n):null;let g=-1,h=null;s&&(h=new ResizeObserver(y=>{let[b]=y;b&&b.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),n()}),u&&!c&&h.observe(u),h.observe(t));let v,m=c?Be(e):null;c&&x();function x(){const y=Be(e);m&&!sa(m,y)&&n(),m=y,v=requestAnimationFrame(x)}return n(),()=>{var y;p.forEach(b=>{o&&b.removeEventListener("scroll",n),a&&b.removeEventListener("resize",n)}),d==null||d(),(y=h)==null||y.disconnect(),h=null,c&&cancelAnimationFrame(v)}}const vu=zc,xu=Bc,bu=$c,yu=Hc,wu=Fc,ia=Lc,Su=Wc,Cu=(e,t,n)=>{const r=new Map,o={platform:mu,...n},a={...o.platform,_c:r};return Dc(e,t,{...o,platform:a})};var Eu=typeof document<"u",ku=function(){},Zt=Eu?oe.useLayoutEffect:ku;function Jt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Jt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!Jt(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function la(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ca(e,t){const n=la(e);return Math.round(t*n)/n}function Hn(e){const t=l.useRef(e);return Zt(()=>{t.current=e}),t}function Ru(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:c,open:u}=e,[p,d]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,h]=l.useState(r);Jt(g,r)||h(r);const[v,m]=l.useState(null),[x,y]=l.useState(null),b=l.useCallback(k=>{k!==N.current&&(N.current=k,m(k))},[]),w=l.useCallback(k=>{k!==P.current&&(P.current=k,y(k))},[]),E=a||v,R=s||x,N=l.useRef(null),P=l.useRef(null),T=l.useRef(p),z=c!=null,Y=Hn(c),Q=Hn(o),X=Hn(u),ee=l.useCallback(()=>{if(!N.current||!P.current)return;const k={placement:t,strategy:n,middleware:g};Q.current&&(k.platform=Q.current),Cu(N.current,P.current,k).then(te=>{const C={...te,isPositioned:X.current!==!1};F.current&&!Jt(T.current,C)&&(T.current=C,At.flushSync(()=>{d(C)}))})},[g,t,n,Q,X]);Zt(()=>{u===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(k=>({...k,isPositioned:!1})))},[u]);const F=l.useRef(!1);Zt(()=>(F.current=!0,()=>{F.current=!1}),[]),Zt(()=>{if(E&&(N.current=E),R&&(P.current=R),E&&R){if(Y.current)return Y.current(E,R,ee);ee()}},[E,R,ee,Y,z]);const K=l.useMemo(()=>({reference:N,floating:P,setReference:b,setFloating:w}),[b,w]),$=l.useMemo(()=>({reference:E,floating:R}),[E,R]),V=l.useMemo(()=>{const k={position:n,left:0,top:0};if(!$.floating)return k;const te=ca($.floating,p.x),C=ca($.floating,p.y);return i?{...k,transform:"translate("+te+"px, "+C+"px)",...la($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:te,top:C}},[n,i,$.floating,p.x,p.y]);return l.useMemo(()=>({...p,update:ee,refs:K,elements:$,floatingStyles:V}),[p,ee,K,$,V])}const Pu=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?ia({element:r.current,padding:o}).fn(n):{}:r?ia({element:r,padding:o}).fn(n):{}}}},Au=(e,t)=>({...vu(e),options:[e,t]}),Tu=(e,t)=>({...xu(e),options:[e,t]}),Nu=(e,t)=>({...Su(e),options:[e,t]}),_u=(e,t)=>({...bu(e),options:[e,t]}),Ou=(e,t)=>({...yu(e),options:[e,t]}),ju=(e,t)=>({...wu(e),options:[e,t]}),Iu=(e,t)=>({...Pu(e),options:[e,t]});var Mu="Arrow",ua=l.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return f.jsx(H.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});ua.displayName=Mu;var Du=ua;function Lu(e){const[t,n]=l.useState(void 0);return ie(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,i;if("borderBoxSize"in a){const c=a.borderBoxSize,u=Array.isArray(c)?c[0]:c;s=u.inlineSize,i=u.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 Un="Popper",[da,rt]=Ve(Un),[$u,fa]=da(Un),pa=e=>{const{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return f.jsx($u,{scope:t,anchor:r,onAnchorChange:o,children:n})};pa.displayName=Un;var ma="PopperAnchor",ha=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=fa(ma,n),s=l.useRef(null),i=ae(t,s),c=l.useRef(null);return l.useEffect(()=>{const u=c.current;c.current=(r==null?void 0:r.current)||s.current,u!==c.current&&a.onAnchorChange(c.current)}),r?null:f.jsx(H.div,{...o,ref:i})});ha.displayName=ma;var Gn="PopperContent",[Fu,Vu]=da(Gn),ga=l.forwardRef((e,t)=>{var A,D,B,U,ne,re;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:p=0,sticky:d="partial",hideWhenDetached:g=!1,updatePositionStrategy:h="optimized",onPlaced:v,...m}=e,x=fa(Gn,n),[y,b]=l.useState(null),w=ae(t,de=>b(de)),[E,R]=l.useState(null),N=Lu(E),P=(N==null?void 0:N.width)??0,T=(N==null?void 0:N.height)??0,z=r+(a!=="center"?"-"+a:""),Y=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},Q=Array.isArray(u)?u:[u],X=Q.length>0,ee={padding:Y,boundary:Q.filter(Bu),altBoundary:X},{refs:F,floatingStyles:K,placement:$,isPositioned:V,middlewareData:k}=Ru({strategy:"fixed",placement:z,whileElementsMounted:(...de)=>gu(...de,{animationFrame:h==="always"}),elements:{reference:x.anchor},middleware:[Au({mainAxis:o+T,alignmentAxis:s}),c&&Tu({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Nu():void 0,...ee}),c&&_u({...ee}),Ou({...ee,apply:({elements:de,rects:Ce,availableWidth:kt,availableHeight:Rt})=>{const{width:Pt,height:jp}=Ce.reference,un=de.floating.style;un.setProperty("--radix-popper-available-width",`${kt}px`),un.setProperty("--radix-popper-available-height",`${Rt}px`),un.setProperty("--radix-popper-anchor-width",`${Pt}px`),un.setProperty("--radix-popper-anchor-height",`${jp}px`)}}),E&&Iu({element:E,padding:i}),Wu({arrowWidth:P,arrowHeight:T}),g&&ju({strategy:"referenceHidden",...ee})]}),[te,C]=ba($),L=Ae(v);ie(()=>{V&&(L==null||L())},[V,L]);const S=(A=k.arrow)==null?void 0:A.x,_=(D=k.arrow)==null?void 0:D.y,M=((B=k.arrow)==null?void 0:B.centerOffset)!==0,[O,W]=l.useState();return ie(()=>{y&&W(window.getComputedStyle(y).zIndex)},[y]),f.jsx("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:V?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:O,"--radix-popper-transform-origin":[(U=k.transformOrigin)==null?void 0:U.x,(ne=k.transformOrigin)==null?void 0:ne.y].join(" "),...((re=k.hide)==null?void 0:re.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:f.jsx(Fu,{scope:n,placedSide:te,onArrowChange:R,arrowX:S,arrowY:_,shouldHideArrow:M,children:f.jsx(H.div,{"data-side":te,"data-align":C,...m,ref:w,style:{...m.style,animation:V?void 0:"none"}})})})});ga.displayName=Gn;var va="PopperArrow",zu={top:"bottom",right:"left",bottom:"top",left:"right"},xa=l.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=Vu(va,r),s=zu[a.placedSide];return f.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:f.jsx(Du,{...o,ref:n,style:{...o.style,display:"block"}})})});xa.displayName=va;function Bu(e){return e!==null}var Wu=e=>({name:"transformOrigin",options:e,fn(t){var x,y,b;const{placement:n,rects:r,middlewareData:o}=t,s=((x=o.arrow)==null?void 0:x.centerOffset)!==0,i=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[u,p]=ba(n),d={start:"0%",center:"50%",end:"100%"}[p],g=(((y=o.arrow)==null?void 0:y.x)??0)+i/2,h=(((b=o.arrow)==null?void 0:b.y)??0)+c/2;let v="",m="";return u==="bottom"?(v=s?d:`${g}px`,m=`${-c}px`):u==="top"?(v=s?d:`${g}px`,m=`${r.floating.height+c}px`):u==="right"?(v=`${-c}px`,m=s?d:`${h}px`):u==="left"&&(v=`${r.floating.width+c}px`,m=s?d:`${h}px`),{data:{x:v,y:m}}}});function ba(e){const[t,n="center"]=e.split("-");return[t,n]}var Yn=pa,Qt=ha,Kn=ga,qn=xa,ya=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"}),Hu="VisuallyHidden",wa=l.forwardRef((e,t)=>f.jsx(H.span,{...e,ref:t,style:{...ya,...e.style}}));wa.displayName=Hu;var Uu=wa,[en,Xp]=Ve("Tooltip",[rt]),tn=rt(),Sa="TooltipProvider",Gu=700,Xn="tooltip.open",[Yu,Zn]=en(Sa),Ca=e=>{const{__scopeTooltip:t,delayDuration:n=Gu,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,s=l.useRef(!0),i=l.useRef(!1),c=l.useRef(0);return l.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),f.jsx(Yu,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:l.useCallback(()=>{window.clearTimeout(c.current),s.current=!1},[]),onClose:l.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:l.useCallback(u=>{i.current=u},[]),disableHoverableContent:o,children:a})};Ca.displayName=Sa;var xt="Tooltip",[Ku,bt]=en(xt),Ea=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,c=Zn(xt,e.__scopeTooltip),u=tn(t),[p,d]=l.useState(null),g=le(),h=l.useRef(0),v=s??c.disableHoverableContent,m=i??c.delayDuration,x=l.useRef(!1),[y,b]=ft({prop:r,defaultProp:o??!1,onChange:P=>{P?(c.onOpen(),document.dispatchEvent(new CustomEvent(Xn))):c.onClose(),a==null||a(P)},caller:xt}),w=l.useMemo(()=>y?x.current?"delayed-open":"instant-open":"closed",[y]),E=l.useCallback(()=>{window.clearTimeout(h.current),h.current=0,x.current=!1,b(!0)},[b]),R=l.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b(!1)},[b]),N=l.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{x.current=!0,b(!0),h.current=0},m)},[m,b]);return l.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),f.jsx(Yn,{...u,children:f.jsx(Ku,{scope:t,contentId:g,open:y,stateAttribute:w,trigger:p,onTriggerChange:d,onTriggerEnter:l.useCallback(()=>{c.isOpenDelayedRef.current?N():E()},[c.isOpenDelayedRef,N,E]),onTriggerLeave:l.useCallback(()=>{v?R():(window.clearTimeout(h.current),h.current=0)},[R,v]),onOpen:E,onClose:R,disableHoverableContent:v,children:n})})};Ea.displayName=xt;var Jn="TooltipTrigger",ka=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=bt(Jn,n),a=Zn(Jn,n),s=tn(n),i=l.useRef(null),c=ae(t,i,o.onTriggerChange),u=l.useRef(!1),p=l.useRef(!1),d=l.useCallback(()=>u.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),f.jsx(Qt,{asChild:!0,...s,children:f.jsx(H.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:J(e.onPointerMove,g=>{g.pointerType!=="touch"&&!p.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),p.current=!0)}),onPointerLeave:J(e.onPointerLeave,()=>{o.onTriggerLeave(),p.current=!1}),onPointerDown:J(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:J(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:J(e.onBlur,o.onClose),onClick:J(e.onClick,o.onClose)})})});ka.displayName=Jn;var Qn="TooltipPortal",[qu,Xu]=en(Qn,{forceMount:void 0}),Ra=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=bt(Qn,t);return f.jsx(qu,{scope:t,forceMount:n,children:f.jsx(Ne,{present:n||a.open,children:f.jsx(mt,{asChild:!0,container:o,children:r})})})};Ra.displayName=Qn;var ot="TooltipContent",Pa=l.forwardRef((e,t)=>{const n=Xu(ot,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,s=bt(ot,e.__scopeTooltip);return f.jsx(Ne,{present:r||s.open,children:s.disableHoverableContent?f.jsx(Aa,{side:o,...a,ref:t}):f.jsx(Zu,{side:o,...a,ref:t})})}),Zu=l.forwardRef((e,t)=>{const n=bt(ot,e.__scopeTooltip),r=Zn(ot,e.__scopeTooltip),o=l.useRef(null),a=ae(t,o),[s,i]=l.useState(null),{trigger:c,onClose:u}=n,p=o.current,{onPointerInTransitChange:d}=r,g=l.useCallback(()=>{i(null),d(!1)},[d]),h=l.useCallback((v,m)=>{const x=v.currentTarget,y={x:v.clientX,y:v.clientY},b=td(y,x.getBoundingClientRect()),w=nd(y,b),E=rd(m.getBoundingClientRect()),R=ad([...w,...E]);i(R),d(!0)},[d]);return l.useEffect(()=>()=>g(),[g]),l.useEffect(()=>{if(c&&p){const v=x=>h(x,p),m=x=>h(x,c);return c.addEventListener("pointerleave",v),p.addEventListener("pointerleave",m),()=>{c.removeEventListener("pointerleave",v),p.removeEventListener("pointerleave",m)}}},[c,p,h,g]),l.useEffect(()=>{if(s){const v=m=>{const x=m.target,y={x:m.clientX,y:m.clientY},b=(c==null?void 0:c.contains(x))||(p==null?void 0:p.contains(x)),w=!od(y,s);b?g():w&&(g(),u())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[c,p,s,u,g]),f.jsx(Aa,{...e,ref:a})}),[Ju,Qu]=en(xt,{isInside:!1}),ed=Ks("TooltipContent"),Aa=l.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,c=bt(ot,n),u=tn(n),{onClose:p}=c;return l.useEffect(()=>(document.addEventListener(Xn,p),()=>document.removeEventListener(Xn,p)),[p]),l.useEffect(()=>{if(c.trigger){const d=g=>{const h=g.target;h!=null&&h.contains(c.trigger)&&p()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[c.trigger,p]),f.jsx(pt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:p,children:f.jsxs(Kn,{"data-state":c.stateAttribute,...u,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[f.jsx(ed,{children:r}),f.jsx(Ju,{scope:n,isInside:!0,children:f.jsx(Uu,{id:c.contentId,role:"tooltip",children:o||r})})]})})});Pa.displayName=ot;var Ta="TooltipArrow",Na=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=tn(n);return Qu(Ta,n).isInside?null:f.jsx(qn,{...o,...r,ref:t})});Na.displayName=Ta;function td(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 nd(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 rd(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 od(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],c=t[s],u=i.x,p=i.y,d=c.x,g=c.y;p>r!=g>r&&n<(d-u)*(r-p)/(g-p)+u&&(o=!o)}return o}function ad(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),sd(t)}function sd(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 id=Ca,ld=Ea,cd=ka,ud=Ra,dd=Pa,fd=Na;function _a({delayDuration:e=0,...t}){return f.jsx(id,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function pd({...e}){return f.jsx(_a,{children:f.jsx(ld,{"data-slot":"tooltip",...e})})}function md({...e}){return f.jsx(cd,{"data-slot":"tooltip-trigger",...e})}function hd({className:e,sideOffset:t=0,children:n,...r}){return f.jsx(ud,{children:f.jsxs(dd,{"data-slot":"tooltip-content",sideOffset:t,className:q("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,f.jsx(fd,{className:"bg-neutral-black-1 fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const gd=fe("flex items-center rounded-lg border transition-colors p-2",{variants:{size:{small:"h-6 w-80 text-sm px-2",medium:"h-12 w-92 text-base px-3"},status:{default:"border-neutral-black-4 text-foreground focus-within:ring-2 focus-within:ring-neutral-black-2",error:"border-primary-2 text-primary-1 focus-within:ring-2 focus-within:ring-primary-2",disabled:"border-neutral-black-4 bg-neutral-black-4 text-neutral-black-2 cursor-not-allowed"}},defaultVariants:{size:"medium",status:"default"}}),er=({label:e,helperText:t,errorText:n,leftIcon:r,rightIcon:o,size:a="medium",className:s,disabled:i=!1,...c})=>f.jsxs("div",{className:"flex flex-col gap-1",children:[e&&f.jsx("label",{className:"text-sm font-normal text-neutral-black-1",children:e}),f.jsxs("div",{className:q(gd({size:a,status:n?"error":i?"disabled":"default"}),s),children:[r&&f.jsx("span",{className:"mr-2 flex-shrink-0",children:r}),f.jsx("input",{disabled:i,className:q("flex-1 bg-transparent outline-none placeholder:text-neutral-black-2 disabled:cursor-not-allowed disabled:opacity-50"),...c}),o&&f.jsx("span",{className:"ml-2 flex-shrink-0",children:o})]}),(t||n)&&f.jsx("p",{className:q("text-xs mt-1",n?"text-primary-1":"text-neutral-black-2"),children:n||t})]}),vd=e=>f.jsx(er,{type:"email",inputMode:"email",...e}),xd=({showForgot:e=!1,onValidityChange:t,customValidator:n,...r})=>{const[o,a]=oe.useState(!1),[s,i]=oe.useState(""),u=n?n(s):(d=>[{label:"minimum 8 characters",isValid:d.length>=8},{label:"one uppercase character",isValid:/[A-Z]/.test(d)},{label:"one lowercase character",isValid:/[a-z]/.test(d)},{label:"one special character",isValid:/[^A-Za-z0-9]/.test(d)},{label:"one number",isValid:/\d/.test(d)}])(s),p=u.every(d=>d.isValid);return oe.useEffect(()=>{t&&t(p,u)},[s,p,u,t]),f.jsx("div",{className:"flex flex-col gap-2",children:f.jsxs("div",{className:"flex flex-col gap-2 w-full max-w-sm",children:[f.jsxs("div",{className:"flex justify-between items-center",children:[f.jsx("label",{className:"text-sm font-medium text-neutral-0",children:"Password"}),e&&f.jsx("button",{type:"button",className:"text-xs text-neutral-0 hover:underline",children:"Forgot Password?"})]}),f.jsx(er,{type:o?"text":"password",value:s,onChange:d=>i(d.target.value),...r,rightIcon:f.jsx("button",{type:"button",onClick:()=>a(!o),className:"p-1 text-neutral-0 hover:text-text-neutral-0",children:o?f.jsx(mc,{size:18,className:"text-neutral-black-2"}):f.jsx(hc,{size:18,className:"text-neutral-black-2"})})}),f.jsx("div",{className:"grid grid-cols-2 gap-y-1 text-xs mt-3",children:u.map((d,g)=>f.jsxs("div",{className:"flex items-center gap-1",children:[d.isValid?f.jsx(fc,{size:14,className:"text-success-d"}):f.jsx(pc,{size:14,className:"text-stroke"}),f.jsx("span",{className:d.isValid?"text-success-d":"text-input",children:d.label})]},g))})]})})},bd=e=>f.jsx(er,{type:"search",leftIcon:f.jsx(Do,{"data-testid":"search-icon",className:"w-4 h-4 text-input-placeholder"}),placeholder:"Search...",...e});function Oa(e,[t,n]){return Math.min(n,Math.max(t,e))}function yd(e){const t=e+"CollectionProvider",[n,r]=Ve(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{const{scope:x,children:y}=m,b=oe.useRef(null),w=oe.useRef(new Map).current;return f.jsx(o,{scope:x,itemMap:w,collectionRef:b,children:y})};s.displayName=t;const i=e+"CollectionSlot",c=$e(i),u=oe.forwardRef((m,x)=>{const{scope:y,children:b}=m,w=a(i,y),E=ae(x,w.collectionRef);return f.jsx(c,{ref:E,children:b})});u.displayName=i;const p=e+"CollectionItemSlot",d="data-radix-collection-item",g=$e(p),h=oe.forwardRef((m,x)=>{const{scope:y,children:b,...w}=m,E=oe.useRef(null),R=ae(x,E),N=a(p,y);return oe.useEffect(()=>(N.itemMap.set(E,{ref:E,...w}),()=>void N.itemMap.delete(E))),f.jsx(g,{[d]:"",ref:R,children:b})});h.displayName=p;function v(m){const x=a(e+"CollectionConsumer",m);return oe.useCallback(()=>{const b=x.collectionRef.current;if(!b)return[];const w=Array.from(b.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((N,P)=>w.indexOf(N.ref.current)-w.indexOf(P.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:s,Slot:u,ItemSlot:h},v,r]}var wd=l.createContext(void 0);function Sd(e){const t=l.useContext(wd);return e||t||"ltr"}function Cd(e){const t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Ed=[" ","Enter","ArrowUp","ArrowDown"],kd=[" ","Enter"],We="Select",[nn,rn,Rd]=yd(We),[at,Zp]=Ve(We,[Rd,rt]),on=rt(),[Pd,je]=at(We),[Ad,Td]=at(We),ja=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:s,defaultValue:i,onValueChange:c,dir:u,name:p,autoComplete:d,disabled:g,required:h,form:v}=e,m=on(t),[x,y]=l.useState(null),[b,w]=l.useState(null),[E,R]=l.useState(!1),N=Sd(u),[P,T]=ft({prop:r,defaultProp:o??!1,onChange:a,caller:We}),[z,Y]=ft({prop:s,defaultProp:i,onChange:c,caller:We}),Q=l.useRef(null),X=x?v||!!x.closest("form"):!0,[ee,F]=l.useState(new Set),K=Array.from(ee).map($=>$.props.value).join(";");return f.jsx(Yn,{...m,children:f.jsxs(Pd,{required:h,scope:t,trigger:x,onTriggerChange:y,valueNode:b,onValueNodeChange:w,valueNodeHasChildren:E,onValueNodeHasChildrenChange:R,contentId:le(),value:z,onValueChange:Y,open:P,onOpenChange:T,dir:N,triggerPointerDownPosRef:Q,disabled:g,children:[f.jsx(nn.Provider,{scope:t,children:f.jsx(Ad,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback($=>{F(V=>new Set(V).add($))},[]),onNativeOptionRemove:l.useCallback($=>{F(V=>{const k=new Set(V);return k.delete($),k})},[]),children:n})}),X?f.jsxs(rs,{"aria-hidden":!0,required:h,tabIndex:-1,name:p,autoComplete:d,value:z,onChange:$=>Y($.target.value),disabled:g,form:v,children:[z===void 0?f.jsx("option",{value:""}):null,Array.from(ee)]},K):null]})})};ja.displayName=We;var Ia="SelectTrigger",Ma=l.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=on(n),s=je(Ia,n),i=s.disabled||r,c=ae(t,s.onTriggerChange),u=rn(n),p=l.useRef("touch"),[d,g,h]=as(m=>{const x=u().filter(w=>!w.disabled),y=x.find(w=>w.value===s.value),b=ss(x,m,y);b!==void 0&&s.onValueChange(b.value)}),v=m=>{i||(s.onOpenChange(!0),h()),m&&(s.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return f.jsx(Qt,{asChild:!0,...a,children:f.jsx(H.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":os(s.value)?"":void 0,...o,ref:c,onClick:J(o.onClick,m=>{m.currentTarget.focus(),p.current!=="mouse"&&v(m)}),onPointerDown:J(o.onPointerDown,m=>{p.current=m.pointerType;const x=m.target;x.hasPointerCapture(m.pointerId)&&x.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(v(m),m.preventDefault())}),onKeyDown:J(o.onKeyDown,m=>{const x=d.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&g(m.key),!(x&&m.key===" ")&&Ed.includes(m.key)&&(v(),m.preventDefault())})})})});Ma.displayName=Ia;var Da="SelectValue",La=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:s="",...i}=e,c=je(Da,n),{onValueNodeHasChildrenChange:u}=c,p=a!==void 0,d=ae(t,c.onValueNodeChange);return ie(()=>{u(p)},[u,p]),f.jsx(H.span,{...i,ref:d,style:{pointerEvents:"none"},children:os(c.value)?f.jsx(f.Fragment,{children:s}):a})});La.displayName=Da;var Nd="SelectIcon",$a=l.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return f.jsx(H.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});$a.displayName=Nd;var _d="SelectPortal",Fa=e=>f.jsx(mt,{asChild:!0,...e});Fa.displayName=_d;var He="SelectContent",Va=l.forwardRef((e,t)=>{const n=je(He,e.__scopeSelect),[r,o]=l.useState();if(ie(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?At.createPortal(f.jsx(za,{scope:e.__scopeSelect,children:f.jsx(nn.Slot,{scope:e.__scopeSelect,children:f.jsx("div",{children:e.children})})}),a):null}return f.jsx(Ba,{...e,ref:t})});Va.displayName=He;var ve=10,[za,Ie]=at(He),Od="SelectContentImpl",jd=$e("SelectContent.RemoveScroll"),Ba=l.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:i,sideOffset:c,align:u,alignOffset:p,arrowPadding:d,collisionBoundary:g,collisionPadding:h,sticky:v,hideWhenDetached:m,avoidCollisions:x,...y}=e,b=je(He,n),[w,E]=l.useState(null),[R,N]=l.useState(null),P=ae(t,A=>E(A)),[T,z]=l.useState(null),[Y,Q]=l.useState(null),X=rn(n),[ee,F]=l.useState(!1),K=l.useRef(!1);l.useEffect(()=>{if(w)return Tn(w)},[w]),Cn();const $=l.useCallback(A=>{const[D,...B]=X().map(re=>re.ref.current),[U]=B.slice(-1),ne=document.activeElement;for(const re of A)if(re===ne||(re==null||re.scrollIntoView({block:"nearest"}),re===D&&R&&(R.scrollTop=0),re===U&&R&&(R.scrollTop=R.scrollHeight),re==null||re.focus(),document.activeElement!==ne))return},[X,R]),V=l.useCallback(()=>$([T,w]),[$,T,w]);l.useEffect(()=>{ee&&V()},[ee,V]);const{onOpenChange:k,triggerPointerDownPosRef:te}=b;l.useEffect(()=>{if(w){let A={x:0,y:0};const D=U=>{var ne,re;A={x:Math.abs(Math.round(U.pageX)-(((ne=te.current)==null?void 0:ne.x)??0)),y:Math.abs(Math.round(U.pageY)-(((re=te.current)==null?void 0:re.y)??0))}},B=U=>{A.x<=10&&A.y<=10?U.preventDefault():w.contains(U.target)||k(!1),document.removeEventListener("pointermove",D),te.current=null};return te.current!==null&&(document.addEventListener("pointermove",D),document.addEventListener("pointerup",B,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",D),document.removeEventListener("pointerup",B,{capture:!0})}}},[w,k,te]),l.useEffect(()=>{const A=()=>k(!1);return window.addEventListener("blur",A),window.addEventListener("resize",A),()=>{window.removeEventListener("blur",A),window.removeEventListener("resize",A)}},[k]);const[C,L]=as(A=>{const D=X().filter(ne=>!ne.disabled),B=D.find(ne=>ne.ref.current===document.activeElement),U=ss(D,A,B);U&&setTimeout(()=>U.ref.current.focus())}),S=l.useCallback((A,D,B)=>{const U=!K.current&&!B;(b.value!==void 0&&b.value===D||U)&&(z(A),U&&(K.current=!0))},[b.value]),_=l.useCallback(()=>w==null?void 0:w.focus(),[w]),M=l.useCallback((A,D,B)=>{const U=!K.current&&!B;(b.value!==void 0&&b.value===D||U)&&Q(A)},[b.value]),O=r==="popper"?tr:Wa,W=O===tr?{side:i,sideOffset:c,align:u,alignOffset:p,arrowPadding:d,collisionBoundary:g,collisionPadding:h,sticky:v,hideWhenDetached:m,avoidCollisions:x}:{};return f.jsx(za,{scope:n,content:w,viewport:R,onViewportChange:N,itemRefCallback:S,selectedItem:T,onItemLeave:_,itemTextRefCallback:M,focusSelectedItem:V,selectedItemText:Y,position:r,isPositioned:ee,searchRef:C,children:f.jsx($t,{as:jd,allowPinchZoom:!0,children:f.jsx(_t,{asChild:!0,trapped:b.open,onMountAutoFocus:A=>{A.preventDefault()},onUnmountAutoFocus:J(o,A=>{var D;(D=b.trigger)==null||D.focus({preventScroll:!0}),A.preventDefault()}),children:f.jsx(pt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:A=>A.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:f.jsx(O,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:A=>A.preventDefault(),...y,...W,onPlaced:()=>F(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:J(y.onKeyDown,A=>{const D=A.ctrlKey||A.altKey||A.metaKey;if(A.key==="Tab"&&A.preventDefault(),!D&&A.key.length===1&&L(A.key),["ArrowUp","ArrowDown","Home","End"].includes(A.key)){let U=X().filter(ne=>!ne.disabled).map(ne=>ne.ref.current);if(["ArrowUp","End"].includes(A.key)&&(U=U.slice().reverse()),["ArrowUp","ArrowDown"].includes(A.key)){const ne=A.target,re=U.indexOf(ne);U=U.slice(re+1)}setTimeout(()=>$(U)),A.preventDefault()}})})})})})})});Ba.displayName=Od;var Id="SelectItemAlignedPosition",Wa=l.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=je(He,n),s=Ie(He,n),[i,c]=l.useState(null),[u,p]=l.useState(null),d=ae(t,P=>p(P)),g=rn(n),h=l.useRef(!1),v=l.useRef(!0),{viewport:m,selectedItem:x,selectedItemText:y,focusSelectedItem:b}=s,w=l.useCallback(()=>{if(a.trigger&&a.valueNode&&i&&u&&m&&x&&y){const P=a.trigger.getBoundingClientRect(),T=u.getBoundingClientRect(),z=a.valueNode.getBoundingClientRect(),Y=y.getBoundingClientRect();if(a.dir!=="rtl"){const ne=Y.left-T.left,re=z.left-ne,de=P.left-re,Ce=P.width+de,kt=Math.max(Ce,T.width),Rt=window.innerWidth-ve,Pt=Oa(re,[ve,Math.max(ve,Rt-kt)]);i.style.minWidth=Ce+"px",i.style.left=Pt+"px"}else{const ne=T.right-Y.right,re=window.innerWidth-z.right-ne,de=window.innerWidth-P.right-re,Ce=P.width+de,kt=Math.max(Ce,T.width),Rt=window.innerWidth-ve,Pt=Oa(re,[ve,Math.max(ve,Rt-kt)]);i.style.minWidth=Ce+"px",i.style.right=Pt+"px"}const Q=g(),X=window.innerHeight-ve*2,ee=m.scrollHeight,F=window.getComputedStyle(u),K=parseInt(F.borderTopWidth,10),$=parseInt(F.paddingTop,10),V=parseInt(F.borderBottomWidth,10),k=parseInt(F.paddingBottom,10),te=K+$+ee+k+V,C=Math.min(x.offsetHeight*5,te),L=window.getComputedStyle(m),S=parseInt(L.paddingTop,10),_=parseInt(L.paddingBottom,10),M=P.top+P.height/2-ve,O=X-M,W=x.offsetHeight/2,A=x.offsetTop+W,D=K+$+A,B=te-D;if(D<=M){const ne=Q.length>0&&x===Q[Q.length-1].ref.current;i.style.bottom="0px";const re=u.clientHeight-m.offsetTop-m.offsetHeight,de=Math.max(O,W+(ne?_:0)+re+V),Ce=D+de;i.style.height=Ce+"px"}else{const ne=Q.length>0&&x===Q[0].ref.current;i.style.top="0px";const de=Math.max(M,K+m.offsetTop+(ne?S:0)+W)+B;i.style.height=de+"px",m.scrollTop=D-M+m.offsetTop}i.style.margin=`${ve}px 0`,i.style.minHeight=C+"px",i.style.maxHeight=X+"px",r==null||r(),requestAnimationFrame(()=>h.current=!0)}},[g,a.trigger,a.valueNode,i,u,m,x,y,a.dir,r]);ie(()=>w(),[w]);const[E,R]=l.useState();ie(()=>{u&&R(window.getComputedStyle(u).zIndex)},[u]);const N=l.useCallback(P=>{P&&v.current===!0&&(w(),b==null||b(),v.current=!1)},[w,b]);return f.jsx(Dd,{scope:n,contentWrapper:i,shouldExpandOnScrollRef:h,onScrollButtonChange:N,children:f.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:f.jsx(H.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Wa.displayName=Id;var Md="SelectPopperPosition",tr=l.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=ve,...a}=e,s=on(n);return f.jsx(Kn,{...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)"}})});tr.displayName=Md;var[Dd,nr]=at(He,{}),rr="SelectViewport",Ha=l.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=Ie(rr,n),s=nr(rr,n),i=ae(t,a.onViewportChange),c=l.useRef(0);return f.jsxs(f.Fragment,{children:[f.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}),f.jsx(nn.Slot,{scope:n,children:f.jsx(H.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:J(o.onScroll,u=>{const p=u.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:g}=s;if(g!=null&&g.current&&d){const h=Math.abs(c.current-p.scrollTop);if(h>0){const v=window.innerHeight-ve*2,m=parseFloat(d.style.minHeight),x=parseFloat(d.style.height),y=Math.max(m,x);if(y<v){const b=y+h,w=Math.min(v,b),E=b-w;d.style.height=w+"px",d.style.bottom==="0px"&&(p.scrollTop=E>0?E:0,d.style.justifyContent="flex-end")}}}c.current=p.scrollTop})})})]})});Ha.displayName=rr;var Ua="SelectGroup",[Ld,$d]=at(Ua),Ga=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=le();return f.jsx(Ld,{scope:n,id:o,children:f.jsx(H.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Ga.displayName=Ua;var Ya="SelectLabel",Ka=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=$d(Ya,n);return f.jsx(H.div,{id:o.id,...r,ref:t})});Ka.displayName=Ya;var an="SelectItem",[Fd,qa]=at(an),Xa=l.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...s}=e,i=je(an,n),c=Ie(an,n),u=i.value===r,[p,d]=l.useState(a??""),[g,h]=l.useState(!1),v=ae(t,b=>{var w;return(w=c.itemRefCallback)==null?void 0:w.call(c,b,r,o)}),m=le(),x=l.useRef("touch"),y=()=>{o||(i.onValueChange(r),i.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return f.jsx(Fd,{scope:n,value:r,disabled:o,textId:m,isSelected:u,onItemTextChange:l.useCallback(b=>{d(w=>w||((b==null?void 0:b.textContent)??"").trim())},[]),children:f.jsx(nn.ItemSlot,{scope:n,value:r,disabled:o,textValue:p,children:f.jsx(H.div,{role:"option","aria-labelledby":m,"data-highlighted":g?"":void 0,"aria-selected":u&&g,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:v,onFocus:J(s.onFocus,()=>h(!0)),onBlur:J(s.onBlur,()=>h(!1)),onClick:J(s.onClick,()=>{x.current!=="mouse"&&y()}),onPointerUp:J(s.onPointerUp,()=>{x.current==="mouse"&&y()}),onPointerDown:J(s.onPointerDown,b=>{x.current=b.pointerType}),onPointerMove:J(s.onPointerMove,b=>{var w;x.current=b.pointerType,o?(w=c.onItemLeave)==null||w.call(c):x.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:J(s.onPointerLeave,b=>{var w;b.currentTarget===document.activeElement&&((w=c.onItemLeave)==null||w.call(c))}),onKeyDown:J(s.onKeyDown,b=>{var E;((E=c.searchRef)==null?void 0:E.current)!==""&&b.key===" "||(kd.includes(b.key)&&y(),b.key===" "&&b.preventDefault())})})})})});Xa.displayName=an;var yt="SelectItemText",Za=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,s=je(yt,n),i=Ie(yt,n),c=qa(yt,n),u=Td(yt,n),[p,d]=l.useState(null),g=ae(t,y=>d(y),c.onItemTextChange,y=>{var b;return(b=i.itemTextRefCallback)==null?void 0:b.call(i,y,c.value,c.disabled)}),h=p==null?void 0:p.textContent,v=l.useMemo(()=>f.jsx("option",{value:c.value,disabled:c.disabled,children:h},c.value),[c.disabled,c.value,h]),{onNativeOptionAdd:m,onNativeOptionRemove:x}=u;return ie(()=>(m(v),()=>x(v)),[m,x,v]),f.jsxs(f.Fragment,{children:[f.jsx(H.span,{id:c.textId,...a,ref:g}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?At.createPortal(a.children,s.valueNode):null]})});Za.displayName=yt;var Ja="SelectItemIndicator",Qa=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return qa(Ja,n).isSelected?f.jsx(H.span,{"aria-hidden":!0,...r,ref:t}):null});Qa.displayName=Ja;var or="SelectScrollUpButton",es=l.forwardRef((e,t)=>{const n=Ie(or,e.__scopeSelect),r=nr(or,e.__scopeSelect),[o,a]=l.useState(!1),s=ae(t,r.onScrollButtonChange);return ie(()=>{if(n.viewport&&n.isPositioned){let i=function(){const u=c.scrollTop>0;a(u)};const c=n.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?f.jsx(ns,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=n;i&&c&&(i.scrollTop=i.scrollTop-c.offsetHeight)}}):null});es.displayName=or;var ar="SelectScrollDownButton",ts=l.forwardRef((e,t)=>{const n=Ie(ar,e.__scopeSelect),r=nr(ar,e.__scopeSelect),[o,a]=l.useState(!1),s=ae(t,r.onScrollButtonChange);return ie(()=>{if(n.viewport&&n.isPositioned){let i=function(){const u=c.scrollHeight-c.clientHeight,p=Math.ceil(c.scrollTop)<u;a(p)};const c=n.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?f.jsx(ns,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=n;i&&c&&(i.scrollTop=i.scrollTop+c.offsetHeight)}}):null});ts.displayName=ar;var ns=l.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=Ie("SelectScrollButton",n),s=l.useRef(null),i=rn(n),c=l.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return l.useEffect(()=>()=>c(),[c]),ie(()=>{var p;const u=i().find(d=>d.ref.current===document.activeElement);(p=u==null?void 0:u.ref.current)==null||p.scrollIntoView({block:"nearest"})},[i]),f.jsx(H.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:J(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:J(o.onPointerMove,()=>{var u;(u=a.onItemLeave)==null||u.call(a),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:J(o.onPointerLeave,()=>{c()})})}),Vd="SelectSeparator",zd=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return f.jsx(H.div,{"aria-hidden":!0,...r,ref:t})});zd.displayName=Vd;var sr="SelectArrow",Bd=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=on(n),a=je(sr,n),s=Ie(sr,n);return a.open&&s.position==="popper"?f.jsx(qn,{...o,...r,ref:t}):null});Bd.displayName=sr;var Wd="SelectBubbleInput",rs=l.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=l.useRef(null),a=ae(r,o),s=Cd(t);return l.useEffect(()=>{const i=o.current;if(!i)return;const c=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(c,"value").set;if(s!==t&&p){const d=new Event("change",{bubbles:!0});p.call(i,t),i.dispatchEvent(d)}},[s,t]),f.jsx(H.select,{...n,style:{...ya,...n.style},ref:a,defaultValue:t})});rs.displayName=Wd;function os(e){return e===""||e===void 0}function as(e){const t=Ae(e),n=l.useRef(""),r=l.useRef(0),o=l.useCallback(s=>{const i=n.current+s;t(i),function c(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>c(""),1e3))}(i)},[t]),a=l.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function ss(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=Hd(e,Math.max(a,0));o.length===1&&(s=s.filter(u=>u!==n));const c=s.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function Hd(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Ud=ja,Gd=Ma,Yd=La,Kd=$a,qd=Fa,Xd=Va,Zd=Ha,Jd=Ga,Qd=Ka,ef=Xa,tf=Za,nf=Qa,rf=es,of=ts;function af({...e}){return f.jsx(Ud,{"data-slot":"select",...e})}function sf({...e}){return f.jsx(Jd,{"data-slot":"select-group",...e})}function lf({...e}){return f.jsx(Yd,{"data-slot":"select-value",...e})}function cf({className:e,size:t="default",children:n,...r}){return f.jsxs(Gd,{"data-slot":"select-trigger","data-size":t,className:q("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,f.jsx(Kd,{asChild:!0,children:f.jsx(jn,{className:"size-4 opacity-50"})})]})}function uf({className:e,children:t,position:n="popper",...r}){return f.jsx(qd,{children:f.jsxs(Xd,{"data-slot":"select-content",className:q("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:[f.jsx(ff,{}),f.jsx(Zd,{className:q("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),f.jsx(pf,{})]})})}function df({className:e,...t}){return f.jsx(Qd,{"data-slot":"select-label",className:q("text-muted-foreground px-2 py-1.5 text-xs",e),...t})}function is({className:e,children:t,...n}){return f.jsxs(ef,{"data-slot":"select-item",className:q("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:[f.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:f.jsx(nf,{children:f.jsx(uc,{className:"size-4"})})}),f.jsx(tf,{children:t})]})}function ff({className:e,...t}){return f.jsx(rf,{"data-slot":"select-scroll-up-button",className:q("flex cursor-default items-center justify-center py-1",e),...t,children:f.jsx(dc,{className:"size-4"})})}function pf({className:e,...t}){return f.jsx(of,{"data-slot":"select-scroll-down-button",className:q("flex cursor-default items-center justify-center py-1",e),...t,children:f.jsx(jn,{className:"size-4"})})}var sn="Popover",[ls,Jp]=Ve(sn,[rt]),wt=rt(),[mf,Me]=ls(sn),cs=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,i=wt(t),c=l.useRef(null),[u,p]=l.useState(!1),[d,g]=ft({prop:r,defaultProp:o??!1,onChange:a,caller:sn});return f.jsx(Yn,{...i,children:f.jsx(mf,{scope:t,contentId:le(),triggerRef:c,open:d,onOpenChange:g,onOpenToggle:l.useCallback(()=>g(h=>!h),[g]),hasCustomAnchor:u,onCustomAnchorAdd:l.useCallback(()=>p(!0),[]),onCustomAnchorRemove:l.useCallback(()=>p(!1),[]),modal:s,children:n})})};cs.displayName=sn;var us="PopoverAnchor",hf=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Me(us,n),a=wt(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:i}=o;return l.useEffect(()=>(s(),()=>i()),[s,i]),f.jsx(Qt,{...a,...r,ref:t})});hf.displayName=us;var ds="PopoverTrigger",fs=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Me(ds,n),a=wt(n),s=ae(t,o.triggerRef),i=f.jsx(H.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":vs(o.open),...r,ref:s,onClick:J(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:f.jsx(Qt,{asChild:!0,...a,children:i})});fs.displayName=ds;var ir="PopoverPortal",[gf,vf]=ls(ir,{forceMount:void 0}),ps=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=Me(ir,t);return f.jsx(gf,{scope:t,forceMount:n,children:f.jsx(Ne,{present:n||a.open,children:f.jsx(mt,{asChild:!0,container:o,children:r})})})};ps.displayName=ir;var st="PopoverContent",ms=l.forwardRef((e,t)=>{const n=vf(st,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=Me(st,e.__scopePopover);return f.jsx(Ne,{present:r||a.open,children:a.modal?f.jsx(bf,{...o,ref:t}):f.jsx(yf,{...o,ref:t})})});ms.displayName=st;var xf=$e("PopoverContent.RemoveScroll"),bf=l.forwardRef((e,t)=>{const n=Me(st,e.__scopePopover),r=l.useRef(null),o=ae(t,r),a=l.useRef(!1);return l.useEffect(()=>{const s=r.current;if(s)return Tn(s)},[]),f.jsx($t,{as:xf,allowPinchZoom:!0,children:f.jsx(hs,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:J(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),a.current||(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:J(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0,u=i.button===2||c;a.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:J(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),yf=l.forwardRef((e,t)=>{const n=Me(st,e.__scopePopover),r=l.useRef(!1),o=l.useRef(!1);return f.jsx(hs,{...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 c,u;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),hs=l.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:p,...d}=e,g=Me(st,n),h=wt(n);return Cn(),f.jsx(_t,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:f.jsx(pt,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:p,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>g.onOpenChange(!1),children:f.jsx(Kn,{"data-state":vs(g.open),role:"dialog",id:g.contentId,...h,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),gs="PopoverClose",wf=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Me(gs,n);return f.jsx(H.button,{type:"button",...r,ref:t,onClick:J(e.onClick,()=>o.onOpenChange(!1))})});wf.displayName=gs;var Sf="PopoverArrow",Cf=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=wt(n);return f.jsx(qn,{...o,...r,ref:t})});Cf.displayName=Sf;function vs(e){return e?"open":"closed"}var Ef=cs,kf=fs,Rf=ps,Pf=ms;function Af({...e}){return f.jsx(Ef,{"data-slot":"popover",...e})}function Tf({...e}){return f.jsx(kf,{"data-slot":"popover-trigger",...e})}function Nf({className:e,align:t="center",sideOffset:n=4,...r}){return f.jsx(Rf,{children:f.jsx(Pf,{"data-slot":"popover-content",align:t,sideOffset:n,className:q("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...r})})}var xs=1,_f=.9,Of=.8,jf=.17,lr=.1,cr=.999,If=.9999,Mf=.99,Df=/[\\\/_+.#"@\[\(\{&]/,Lf=/[\\\/_+.#"@\[\(\{&]/g,$f=/[\s-]/,bs=/[\s-]/g;function ur(e,t,n,r,o,a,s){if(a===t.length)return o===e.length?xs:Mf;var i=`${o},${a}`;if(s[i]!==void 0)return s[i];for(var c=r.charAt(a),u=n.indexOf(c,o),p=0,d,g,h,v;u>=0;)d=ur(e,t,n,r,u+1,a+1,s),d>p&&(u===o?d*=xs:Df.test(e.charAt(u-1))?(d*=Of,h=e.slice(o,u-1).match(Lf),h&&o>0&&(d*=Math.pow(cr,h.length))):$f.test(e.charAt(u-1))?(d*=_f,v=e.slice(o,u-1).match(bs),v&&o>0&&(d*=Math.pow(cr,v.length))):(d*=jf,o>0&&(d*=Math.pow(cr,u-o))),e.charAt(u)!==t.charAt(a)&&(d*=If)),(d<lr&&n.charAt(u-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(u-1)!==r.charAt(a))&&(g=ur(e,t,n,r,u+1,a+2,s),g*lr>d&&(d=g*lr)),d>p&&(p=d),u=n.indexOf(c,u+1);return s[i]=p,p}function ys(e){return e.toLowerCase().replace(bs," ")}function Ff(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,ur(e,t,ys(e),ys(t),0,0,{})}var St='[cmdk-group=""]',dr='[cmdk-group-items=""]',Vf='[cmdk-group-heading=""]',ws='[cmdk-item=""]',Ss=`${ws}:not([aria-disabled="true"])`,fr="cmdk-item-select",it="data-value",zf=(e,t,n)=>Ff(e,t,n),Cs=l.createContext(void 0),Ct=()=>l.useContext(Cs),Es=l.createContext(void 0),pr=()=>l.useContext(Es),ks=l.createContext(void 0),Rs=l.forwardRef((e,t)=>{let n=lt(()=>{var S,_;return{search:"",value:(_=(S=e.value)!=null?S:e.defaultValue)!=null?_:"",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=Ps(e),{label:c,children:u,value:p,onValueChange:d,filter:g,shouldFilter:h,loop:v,disablePointerSelection:m=!1,vimBindings:x=!0,...y}=e,b=le(),w=le(),E=le(),R=l.useRef(null),N=Jf();Ue(()=>{if(p!==void 0){let S=p.trim();n.current.value=S,P.emit()}},[p]),Ue(()=>{N(6,ee)},[]);let P=l.useMemo(()=>({subscribe:S=>(s.current.add(S),()=>s.current.delete(S)),snapshot:()=>n.current,setState:(S,_,M)=>{var O,W,A,D;if(!Object.is(n.current[S],_)){if(n.current[S]=_,S==="search")X(),Y(),N(1,Q);else if(S==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let B=document.getElementById(E);B?B.focus():(O=document.getElementById(b))==null||O.focus()}if(N(7,()=>{var B;n.current.selectedItemId=(B=F())==null?void 0:B.id,P.emit()}),M||N(5,ee),((W=i.current)==null?void 0:W.value)!==void 0){let B=_??"";(D=(A=i.current).onValueChange)==null||D.call(A,B);return}}P.emit()}},emit:()=>{s.current.forEach(S=>S())}}),[]),T=l.useMemo(()=>({value:(S,_,M)=>{var O;_!==((O=a.current.get(S))==null?void 0:O.value)&&(a.current.set(S,{value:_,keywords:M}),n.current.filtered.items.set(S,z(_,M)),N(2,()=>{Y(),P.emit()}))},item:(S,_)=>(r.current.add(S),_&&(o.current.has(_)?o.current.get(_).add(S):o.current.set(_,new Set([S]))),N(3,()=>{X(),Y(),n.current.value||Q(),P.emit()}),()=>{a.current.delete(S),r.current.delete(S),n.current.filtered.items.delete(S);let M=F();N(4,()=>{X(),(M==null?void 0:M.getAttribute("id"))===S&&Q(),P.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:b,inputId:E,labelId:w,listInnerRef:R}),[]);function z(S,_){var M,O;let W=(O=(M=i.current)==null?void 0:M.filter)!=null?O:zf;return S?W(S,n.current.search,_):0}function Y(){if(!n.current.search||i.current.shouldFilter===!1)return;let S=n.current.filtered.items,_=[];n.current.filtered.groups.forEach(O=>{let W=o.current.get(O),A=0;W.forEach(D=>{let B=S.get(D);A=Math.max(B,A)}),_.push([O,A])});let M=R.current;K().sort((O,W)=>{var A,D;let B=O.getAttribute("id"),U=W.getAttribute("id");return((A=S.get(U))!=null?A:0)-((D=S.get(B))!=null?D:0)}).forEach(O=>{let W=O.closest(dr);W?W.appendChild(O.parentElement===W?O:O.closest(`${dr} > *`)):M.appendChild(O.parentElement===M?O:O.closest(`${dr} > *`))}),_.sort((O,W)=>W[1]-O[1]).forEach(O=>{var W;let A=(W=R.current)==null?void 0:W.querySelector(`${St}[${it}="${encodeURIComponent(O[0])}"]`);A==null||A.parentElement.appendChild(A)})}function Q(){let S=K().find(M=>M.getAttribute("aria-disabled")!=="true"),_=S==null?void 0:S.getAttribute(it);P.setState("value",_||void 0)}function X(){var S,_,M,O;if(!n.current.search||i.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let W=0;for(let A of r.current){let D=(_=(S=a.current.get(A))==null?void 0:S.value)!=null?_:"",B=(O=(M=a.current.get(A))==null?void 0:M.keywords)!=null?O:[],U=z(D,B);n.current.filtered.items.set(A,U),U>0&&W++}for(let[A,D]of o.current)for(let B of D)if(n.current.filtered.items.get(B)>0){n.current.filtered.groups.add(A);break}n.current.filtered.count=W}function ee(){var S,_,M;let O=F();O&&(((S=O.parentElement)==null?void 0:S.firstChild)===O&&((M=(_=O.closest(St))==null?void 0:_.querySelector(Vf))==null||M.scrollIntoView({block:"nearest"})),O.scrollIntoView({block:"nearest"}))}function F(){var S;return(S=R.current)==null?void 0:S.querySelector(`${ws}[aria-selected="true"]`)}function K(){var S;return Array.from(((S=R.current)==null?void 0:S.querySelectorAll(Ss))||[])}function $(S){let _=K()[S];_&&P.setState("value",_.getAttribute(it))}function V(S){var _;let M=F(),O=K(),W=O.findIndex(D=>D===M),A=O[W+S];(_=i.current)!=null&&_.loop&&(A=W+S<0?O[O.length-1]:W+S===O.length?O[0]:O[W+S]),A&&P.setState("value",A.getAttribute(it))}function k(S){let _=F(),M=_==null?void 0:_.closest(St),O;for(;M&&!O;)M=S>0?Xf(M,St):Zf(M,St),O=M==null?void 0:M.querySelector(Ss);O?P.setState("value",O.getAttribute(it)):V(S)}let te=()=>$(K().length-1),C=S=>{S.preventDefault(),S.metaKey?te():S.altKey?k(1):V(1)},L=S=>{S.preventDefault(),S.metaKey?$(0):S.altKey?k(-1):V(-1)};return l.createElement(H.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:S=>{var _;(_=y.onKeyDown)==null||_.call(y,S);let M=S.nativeEvent.isComposing||S.keyCode===229;if(!(S.defaultPrevented||M))switch(S.key){case"n":case"j":{x&&S.ctrlKey&&C(S);break}case"ArrowDown":{C(S);break}case"p":case"k":{x&&S.ctrlKey&&L(S);break}case"ArrowUp":{L(S);break}case"Home":{S.preventDefault(),$(0);break}case"End":{S.preventDefault(),te();break}case"Enter":{S.preventDefault();let O=F();if(O){let W=new Event(fr);O.dispatchEvent(W)}}}}},l.createElement("label",{"cmdk-label":"",htmlFor:T.inputId,id:T.labelId,style:ep},c),ln(e,S=>l.createElement(Es.Provider,{value:P},l.createElement(Cs.Provider,{value:T},S))))}),Bf=l.forwardRef((e,t)=>{var n,r;let o=le(),a=l.useRef(null),s=l.useContext(ks),i=Ct(),c=Ps(e),u=(r=(n=c.current)==null?void 0:n.forceMount)!=null?r:s==null?void 0:s.forceMount;Ue(()=>{if(!u)return i.item(o,s==null?void 0:s.id)},[u]);let p=As(o,a,[e.value,e.children,a],e.keywords),d=pr(),g=De(N=>N.value&&N.value===p.current),h=De(N=>u||i.filter()===!1?!0:N.search?N.filtered.items.get(o)>0:!0);l.useEffect(()=>{let N=a.current;if(!(!N||e.disabled))return N.addEventListener(fr,v),()=>N.removeEventListener(fr,v)},[h,e.onSelect,e.disabled]);function v(){var N,P;m(),(P=(N=c.current).onSelect)==null||P.call(N,p.current)}function m(){d.setState("value",p.current,!0)}if(!h)return null;let{disabled:x,value:y,onSelect:b,forceMount:w,keywords:E,...R}=e;return l.createElement(H.div,{ref:Le(a,t),...R,id:o,"cmdk-item":"",role:"option","aria-disabled":!!x,"aria-selected":!!g,"data-disabled":!!x,"data-selected":!!g,onPointerMove:x||i.getDisablePointerSelection()?void 0:m,onClick:x?void 0:v},e.children)}),Wf=l.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...a}=e,s=le(),i=l.useRef(null),c=l.useRef(null),u=le(),p=Ct(),d=De(h=>o||p.filter()===!1?!0:h.search?h.filtered.groups.has(s):!0);Ue(()=>p.group(s),[]),As(s,i,[e.value,e.heading,c]);let g=l.useMemo(()=>({id:s,forceMount:o}),[o]);return l.createElement(H.div,{ref:Le(i,t),...a,"cmdk-group":"",role:"presentation",hidden:d?void 0:!0},n&&l.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),ln(e,h=>l.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},l.createElement(ks.Provider,{value:g},h))))}),Hf=l.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=l.useRef(null),a=De(s=>!s.search);return!n&&!a?null:l.createElement(H.div,{ref:Le(o,t),...r,"cmdk-separator":"",role:"separator"})}),Uf=l.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,a=pr(),s=De(u=>u.search),i=De(u=>u.selectedItemId),c=Ct();return l.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),l.createElement(H.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":i,id:c.inputId,type:"text",value:o?e.value:s,onChange:u=>{o||a.setState("search",u.target.value),n==null||n(u.target.value)}})}),Gf=l.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,a=l.useRef(null),s=l.useRef(null),i=De(u=>u.selectedItemId),c=Ct();return l.useEffect(()=>{if(s.current&&a.current){let u=s.current,p=a.current,d,g=new ResizeObserver(()=>{d=requestAnimationFrame(()=>{let h=u.offsetHeight;p.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return g.observe(u),()=>{cancelAnimationFrame(d),g.unobserve(u)}}},[]),l.createElement(H.div,{ref:Le(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":r,id:c.listId},ln(e,u=>l.createElement("div",{ref:Le(s,c.listInnerRef),"cmdk-list-sizer":""},u)))}),Yf=l.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:a,container:s,...i}=e;return l.createElement(To,{open:n,onOpenChange:r},l.createElement(No,{container:s},l.createElement(_o,{"cmdk-overlay":"",className:o}),l.createElement(Oo,{"aria-label":e.label,"cmdk-dialog":"",className:a},l.createElement(Rs,{ref:t,...i}))))}),Kf=l.forwardRef((e,t)=>De(n=>n.filtered.count===0)?l.createElement(H.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),qf=l.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...a}=e;return l.createElement(H.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},ln(e,s=>l.createElement("div",{"aria-hidden":!0},s)))}),Et=Object.assign(Rs,{List:Gf,Item:Bf,Input:Uf,Group:Wf,Separator:Hf,Dialog:Yf,Empty:Kf,Loading:qf});function Xf(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function Zf(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function Ps(e){let t=l.useRef(e);return Ue(()=>{t.current=e}),t}var Ue=typeof window>"u"?l.useEffect:l.useLayoutEffect;function lt(e){let t=l.useRef();return t.current===void 0&&(t.current=e()),t}function De(e){let t=pr(),n=()=>e(t.snapshot());return l.useSyncExternalStore(t.subscribe,n,n)}function As(e,t,n,r=[]){let o=l.useRef(),a=Ct();return Ue(()=>{var s;let i=(()=>{var u;for(let p of n){if(typeof p=="string")return p.trim();if(typeof p=="object"&&"current"in p)return p.current?(u=p.current.textContent)==null?void 0:u.trim():o.current}})(),c=r.map(u=>u.trim());a.value(e,i,c),(s=t.current)==null||s.setAttribute(it,i),o.current=i}),o}var Jf=()=>{let[e,t]=l.useState(),n=lt(()=>new Map);return Ue(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function Qf(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function ln({asChild:e,children:t},n){return e&&l.isValidElement(t)?l.cloneElement(Qf(t),{ref:t.ref},n(t.props.children)):n(t)}var ep={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function tp({className:e,...t}){return f.jsx(Et,{"data-slot":"command",className:q("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function np({className:e,...t}){return f.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[f.jsx(Do,{className:"size-4 shrink-0 opacity-50"}),f.jsx(Et.Input,{"data-slot":"command-input",className:q("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 rp({...e}){return f.jsx(Et.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function Ts({className:e,...t}){return f.jsx(Et.Group,{"data-slot":"command-group",className:q("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 Ns({className:e,...t}){return f.jsx(Et.Item,{"data-slot":"command-item",className:q("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function mr(e){return e.length>0&&e[0].kind==="group"}function op(e){return e.multiple?f.jsx(Os,{...e}):f.jsx(_s,{...e})}const _s=({options:e,placeholder:t="Select...",disabled:n,error:r,helperText:o,value:a,onChange:s})=>{const[i,c]=oe.useState(""),u=a??i,p=d=>{c(d),s==null||s(d)};return f.jsxs("div",{className:"w-94",children:[f.jsxs(af,{value:u,onValueChange:p,disabled:n,children:[f.jsx(cf,{"aria-invalid":!!r,className:q("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:f.jsx(lf,{placeholder:t})}),f.jsx(uf,{className:"w-full bg-white border border-neutral-black-4",children:mr(e)?e.map(d=>f.jsxs(sf,{className:"p-2",children:[f.jsx(df,{children:d.label}),d.options.map(g=>f.jsx(is,{value:g.value,disabled:g.disabled,children:g.label},g.value))]},d.label)):e.map(d=>f.jsx(is,{value:d.value,disabled:d.disabled,className:"hover:cursor-pointer hover:bg-neutral-black-5",children:d.label},d.value))})]}),r&&f.jsx("p",{className:"mt-1 text-xs text-primary-1",children:r}),o&&f.jsx("p",{className:"mt-1 text-xs text-neutral-black-3",children:o})]})},Os=({options:e,placeholder:t="Select...",disabled:n,error:r,helperText:o,value:a,onChange:s})=>{const[i,c]=oe.useState(!1),[u,p]=oe.useState([]),d=a??u,g=oe.useMemo(()=>mr(e)?e.flatMap(v=>v.options):e,[e]),h=v=>{const m=d.includes(v)?d.filter(x=>x!==v):[...d,v];p(m),s==null||s(m)};return f.jsxs("div",{className:"w-94",children:[f.jsxs(Af,{open:i,onOpenChange:c,children:[f.jsx(Tf,{asChild:!0,children:f.jsxs("button",{type:"button",disabled:n,"aria-haspopup":"listbox","aria-expanded":i,className:q("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:[f.jsx("div",{className:"flex flex-wrap gap-1",children:d.length>0?d.map(v=>f.jsxs(zo,{type:"outline",onClick:m=>{m.stopPropagation(),h(v)},className:"cursor-pointer border-neutral-black-4 bg-transparent hover:bg-neutral-black-4",children:[f.jsx("span",{className:"text-neutral-black-1",children:v}),f.jsx("div",{className:"flex items-center justify-center rounded-full border border-neutral-black-2 h-5 w-5 ml-1",children:f.jsx($o,{className:"h-3 w-3 text-neutral-black-1",strokeWidth:2})})]},v)):f.jsx("span",{className:"truncate text-xs text-neutral-black-1",children:t})}),f.jsx(jn,{className:"h-4 w-4 text-neutral-black-1"})]})}),f.jsx(Nf,{className:"p-0 w-full bg-white border border-neutral-black-4",children:f.jsxs(tp,{className:"w-full",children:[f.jsx(np,{placeholder:"Search..."}),f.jsx(rp,{children:"No results found."}),mr(e)?e.map(v=>f.jsx(Ts,{heading:v.label,children:v.options.map(m=>f.jsxs(Ns,{value:m.label,onSelect:()=>!m.disabled&&h(m.value),disabled:m.disabled,children:[f.jsx("input",{type:"checkbox",readOnly:!0,checked:d.includes(m.value),className:"mr-2"}),m.label]},m.value))},v.label)):f.jsx(Ts,{children:g.map(v=>f.jsxs(Ns,{value:v.label,onSelect:()=>!v.disabled&&h(v.value),disabled:v.disabled,children:[f.jsx("input",{type:"checkbox",readOnly:!0,checked:d.includes(v.value),className:"mr-2"}),v.label]},v.value))})]})})]}),r&&f.jsx("p",{className:"mt-1 text-xs text-primary-1",children:r}),o&&f.jsx("p",{className:"mt-1 text-xs text-neutral-black-3",children:o})]})},ap=fe("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 sp({className:e,variant:t,asChild:n=!1,children:r,...o}){const a=n?fn:"div";return f.jsx(a,{"data-slot":"card",className:q(ap({variant:t}),e),...o,children:r})}var hr={exports:{}},gr={};/**
|
|
142
142
|
* @license React
|
|
143
143
|
* use-sync-external-store-shim.production.js
|
|
144
144
|
*
|
|
@@ -146,7 +146,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
146
146
|
*
|
|
147
147
|
* This source code is licensed under the MIT license found in the
|
|
148
148
|
* LICENSE file in the root directory of this source tree.
|
|
149
|
-
*/var
|
|
149
|
+
*/var js;function ip(){if(js)return gr;js=1;var e=oe;function t(d,g){return d===g&&(d!==0||1/d===1/g)||d!==d&&g!==g}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,a=e.useLayoutEffect,s=e.useDebugValue;function i(d,g){var h=g(),v=r({inst:{value:h,getSnapshot:g}}),m=v[0].inst,x=v[1];return a(function(){m.value=h,m.getSnapshot=g,c(m)&&x({inst:m})},[d,h,g]),o(function(){return c(m)&&x({inst:m}),d(function(){c(m)&&x({inst:m})})},[d]),s(h),h}function c(d){var g=d.getSnapshot;d=d.value;try{var h=g();return!n(d,h)}catch{return!0}}function u(d,g){return g()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:i;return gr.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,gr}var vr={};/**
|
|
150
150
|
* @license React
|
|
151
151
|
* use-sync-external-store-shim.development.js
|
|
152
152
|
*
|
|
@@ -154,4 +154,4 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
154
154
|
*
|
|
155
155
|
* This source code is licensed under the MIT license found in the
|
|
156
156
|
* LICENSE file in the root directory of this source tree.
|
|
157
|
-
*/var
|
|
157
|
+
*/var Is;function lp(){return Is||(Is=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){p||o.startTransition===void 0||(p=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var m=v();if(!d){var x=v();a(m,x)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}x=s({inst:{value:m,getSnapshot:v}});var y=x[0].inst,b=x[1];return c(function(){y.value=m,y.getSnapshot=v,n(y)&&b({inst:y})},[h,m,v]),i(function(){return n(y)&&b({inst:y}),h(function(){n(y)&&b({inst:y})})},[h]),u(m),m}function n(h){var v=h.getSnapshot;h=h.value;try{var m=v();return!a(h,m)}catch{return!0}}function r(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=oe,a=typeof Object.is=="function"?Object.is:e,s=o.useState,i=o.useEffect,c=o.useLayoutEffect,u=o.useDebugValue,p=!1,d=!1,g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;vr.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())}()),vr}process.env.NODE_ENV==="production"?hr.exports=ip():hr.exports=lp();var cp=hr.exports;function up(){return cp.useSyncExternalStore(dp,()=>!0,()=>!1)}function dp(){return()=>{}}var xr="Avatar",[fp,Qp]=Ve(xr),[pp,Ms]=fp(xr),Ds=l.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,a]=l.useState("idle");return f.jsx(pp,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:f.jsx(H.span,{...r,ref:t})})});Ds.displayName=xr;var Ls="AvatarImage",$s=l.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,s=Ms(Ls,n),i=mp(r,a),c=Ae(u=>{o(u),s.onImageLoadingStatusChange(u)});return ie(()=>{i!=="idle"&&c(i)},[i,c]),i==="loaded"?f.jsx(H.img,{...a,ref:t,src:r}):null});$s.displayName=Ls;var Fs="AvatarFallback",Vs=l.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=Ms(Fs,n),[s,i]=l.useState(r===void 0);return l.useEffect(()=>{if(r!==void 0){const c=window.setTimeout(()=>i(!0),r);return()=>window.clearTimeout(c)}},[r]),s&&a.imageLoadingStatus!=="loaded"?f.jsx(H.span,{...o,ref:t}):null});Vs.displayName=Fs;function zs(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function mp(e,{referrerPolicy:t,crossOrigin:n}){const r=up(),o=l.useRef(null),a=r?(o.current||(o.current=new window.Image),o.current):null,[s,i]=l.useState(()=>zs(a,e));return ie(()=>{i(zs(a,e))},[a,e]),ie(()=>{const c=d=>()=>{i(d)};if(!a)return;const u=c("loaded"),p=c("error");return a.addEventListener("load",u),a.addEventListener("error",p),t&&(a.referrerPolicy=t),typeof n=="string"&&(a.crossOrigin=n),()=>{a.removeEventListener("load",u),a.removeEventListener("error",p)}},[a,n,t]),s}var hp=Ds,Bs=$s,cn=Vs;const gp=fe("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}}),vp=fe("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"}}),xp=fe("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"}}),bp=fe("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 yp(e){const{type:t,size:n="md",status:r="Neutral",notification:o,CTAIndicator:a=!1,progress:s=!1,className:i,...c}=e;return f.jsxs(hp,{className:q(gp({size:n,progress:s}),i),...c,children:[t==="picture"&&f.jsxs(f.Fragment,{children:[f.jsx(Bs,{src:e.src,alt:"avatar",className:"w-full h-full object-cover rounded-full"}),f.jsx(cn,{children:f.jsx(Lo,{className:"text-black",size:n==="sm"?16:n==="md"?20:n==="lg"?24:n==="xl"?28:32})})]}),t==="initials"&&f.jsx(cn,{className:"uppercase",children:e.initials}),t==="placeholder"&&f.jsx(cn,{children:f.jsx(Lo,{"data-testid":"avatar-placeholder",className:"text-black",size:n==="sm"?16:n==="md"?20:n==="lg"?24:n==="xl"?28:32})}),r!=="Neutral"&&f.jsx("span",{"data-testid":"avatar-status",className:vp({status:r,size:n})}),o&&f.jsx("span",{"data-testid":"avatar-notification",className:xp({size:n,priority:o.priority}),children:o.value}),a&&f.jsx("span",{"data-testid":"avatar-camera-icon",className:bp({size:n}),children:f.jsx(cc,{"data-testid":"avatar-camera",className:"text-[var(--color-neutral-black-1)]",size:12})})]})}function wp({className:e,...t}){return f.jsx(Bs,{className:q("aspect-square h-full w-full",e),...t})}function Sp({className:e,...t}){return f.jsx(cn,{className:q("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t})}var Cp="Separator",Ws="horizontal",Ep=["horizontal","vertical"],Hs=l.forwardRef((e,t)=>{const{decorative:n,orientation:r=Ws,...o}=e,a=kp(r)?r:Ws,i=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return f.jsx(H.div,{"data-orientation":a,...i,...o,ref:t})});Hs.displayName=Cp;function kp(e){return Ep.includes(e)}var Rp=Hs;function Pp({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 f.jsx(Rp,{"data-slot":"separator",role:"separator",decorative:n,orientation:t,className:q("bg-neutral-black-4 shrink-0",t==="horizontal"?"w-full":"h-full",a,e),...o})}const Ap=fe("flex flex-col gap-12"),Tp=fe("",{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}}),Np=fe("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}}),_p=(e,t)=>e&&!t;function Op({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 f.jsx("div",{className:q(Ap(),n),"data-testid":"timeline",children:f.jsx("div",{className:"flex flex-col",children:o.map((a,s)=>{const i=s===o.length-1,c=!!(a.description||a.content),u=_p(i,c),p=a.notVisited||!1,d=o[s+1],g=(d==null?void 0:d.notVisited)||!1,h=t==="icon"&&g;return f.jsxs("div",{className:"flex flex-col","data-testid":"timeline-item",children:[f.jsxs("div",{className:"flex items-center gap-4 min-h-[35px]",children:[f.jsx("div",{"data-testid":"timeline-dot",className:q(Tp({variant:t,visited:!p})),children:t==="icon"&&a.icon&&f.jsx("div",{className:"flex items-center justify-center w-full h-full",children:a.icon})}),f.jsx("p",{className:q("text-neutral-black-1",p&&"text-neutral-black-4"),children:a.title})]}),f.jsx("div",{"data-testid":"timeline-connector",className:q(Np({hideConnector:u,variant:t,visited:!h})),children:(a.description||a.content)&&f.jsxs("div",{className:"flex flex-col gap-2 py-2",children:[a.description&&f.jsx("p",{className:q("text-[var(--color-neutral-black-1)] text-sm",p&&"text-neutral-black-4"),children:a.description}),a.content&&f.jsx("div",{className:"min-h-[35px]",children:a.content})]})})]},a.id)})})})}Z.Avatar=yp,Z.AvatarFallback=Sp,Z.AvatarImage=wp,Z.Badge=zo,Z.Button=Oi,Z.Card=sp,Z.Dialog=gc,Z.DialogClose=xc,Z.DialogContent=bc,Z.DialogDescription=Cc,Z.DialogFooter=wc,Z.DialogHeader=yc,Z.DialogOverlay=Vo,Z.DialogPortal=Fo,Z.DialogTitle=Sc,Z.DialogTrigger=vc,Z.Divider=Pp,Z.EmailInput=vd,Z.MultiSelect=Os,Z.PasswordInput=xd,Z.SearchInput=bd,Z.SelectOption=op,Z.SingleSelect=_s,Z.Timeline=Op,Z.Tooltip=pd,Z.TooltipContent=hd,Z.TooltipProvider=_a,Z.TooltipTrigger=md,Z.cn=q,Object.defineProperty(Z,Symbol.toStringTag,{value:"Module"})});
|