buildgrid-ui 1.1.0-dev.17 → 1.1.0-dev.18
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/dist/blocks/index.d.ts +1 -0
- package/dist/blocks/month-navigator/index.d.ts +1 -0
- package/dist/blocks/month-navigator/month-navigator.d.ts +9 -0
- package/dist/buildgrid-ui.css +1 -0
- package/dist/buildgrid-ui.es.js +9007 -4136
- package/dist/buildgrid-ui.umd.js +91 -46
- package/dist/components/calendar/calendar.d.ts +9 -0
- package/dist/components/calendar/index.d.ts +1 -0
- package/dist/components/form/form.d.ts +23 -0
- package/dist/components/form/index.d.ts +1 -0
- package/dist/components/index.d.ts +7 -0
- package/dist/components/label/index.d.ts +1 -0
- package/dist/components/label/label.d.ts +5 -0
- package/dist/components/radio-group/index.d.ts +1 -0
- package/dist/components/radio-group/radio-group.d.ts +5 -0
- package/dist/components/select/index.d.ts +1 -0
- package/dist/components/select/select.d.ts +13 -0
- package/dist/components/toggle/index.d.ts +1 -0
- package/dist/components/toggle/toggle.d.ts +12 -0
- package/dist/components/toggle-group/index.d.ts +1 -0
- package/dist/components/toggle-group/toggle-group.d.ts +12 -0
- package/dist/lib/hooks/index.d.ts +1 -0
- package/dist/lib/hooks/use-dialog.d.ts +30 -0
- package/package.json +10 -1
package/dist/buildgrid-ui.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(N,M){typeof exports=="object"&&typeof module<"u"?M(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],M):(N=typeof globalThis<"u"?globalThis:N||self,M(N.BuildgridUI={},N.React,N.ReactDOM))})(this,function(N,M,Pa){"use strict";function Da(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=Da(M),Wn=Da(Pa);var $n={exports:{}},on={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var ka;function am(){if(ka)return on;ka=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,a){var i=null;if(a!==void 0&&(i=""+a),o.key!==void 0&&(i=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:r,key:i,ref:o!==void 0?o:null,props:a}}return on.Fragment=t,on.jsx=n,on.jsxs=n,on}var an={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,138 +14,183 @@
|
|
|
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
|
|
18
|
-
at`)?" (<anonymous>)":-1<
|
|
19
|
-
`+
|
|
20
|
-
`),
|
|
21
|
-
`);for(
|
|
22
|
-
`+
|
|
17
|
+
*/var Ta;function sm(){return Ta||(Ta=1,process.env.NODE_ENV!=="production"&&function(){function e(x){if(x==null)return null;if(typeof x=="function")return x.$$typeof===F?null:x.displayName||x.name||null;if(typeof x=="string")return x;switch(x){case D:return"Fragment";case E:return"Portal";case O:return"Profiler";case P:return"StrictMode";case R:return"Suspense";case H:return"SuspenseList"}if(typeof x=="object")switch(typeof x.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),x.$$typeof){case L:return(x.displayName||"Context")+".Provider";case B:return(x._context.displayName||"Context")+".Consumer";case V:var _=x.render;return x=x.displayName,x||(x=_.displayName||_.name||"",x=x!==""?"ForwardRef("+x+")":"ForwardRef"),x;case G:return _=x.displayName||null,_!==null?_:e(x.type)||"Memo";case X:_=x._payload,x=x._init;try{return e(x(_))}catch{}}return null}function t(x){return""+x}function n(x){try{t(x);var _=!1}catch{_=!0}if(_){_=console;var I=_.error,oe=typeof Symbol=="function"&&Symbol.toStringTag&&x[Symbol.toStringTag]||x.constructor.name||"Object";return I.call(_,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",oe),t(x)}}function r(){}function o(){if(pe===0){Oe=console.log,he=console.info,$=console.warn,ne=console.error,ae=console.group,ee=console.groupCollapsed,re=console.groupEnd;var x={configurable:!0,enumerable:!0,value:r,writable:!0};Object.defineProperties(console,{info:x,log:x,warn:x,error:x,group:x,groupCollapsed:x,groupEnd:x})}pe++}function a(){if(pe--,pe===0){var x={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:U({},x,{value:Oe}),info:U({},x,{value:he}),warn:U({},x,{value:$}),error:U({},x,{value:ne}),group:U({},x,{value:ae}),groupCollapsed:U({},x,{value:ee}),groupEnd:U({},x,{value:re})})}0>pe&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function i(x){if(te===void 0)try{throw Error()}catch(I){var _=I.stack.trim().match(/\n( *(at )?)/);te=_&&_[1]||"",we=-1<I.stack.indexOf(`
|
|
18
|
+
at`)?" (<anonymous>)":-1<I.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
19
|
+
`+te+x+we}function s(x,_){if(!x||Pe)return"";var I=Ye.get(x);if(I!==void 0)return I;Pe=!0,I=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var oe=null;oe=T.H,T.H=null,o();try{var xe={DetermineComponentFrameRoot:function(){try{if(_){var ie=function(){throw Error()};if(Object.defineProperty(ie.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ie,[])}catch(Ce){var se=Ce}Reflect.construct(x,[],ie)}else{try{ie.call()}catch(Ce){se=Ce}x.call(ie.prototype)}}else{try{throw Error()}catch(Ce){se=Ce}(ie=x())&&typeof ie.catch=="function"&&ie.catch(function(){})}}catch(Ce){if(Ce&&se&&typeof Ce.stack=="string")return[Ce.stack,se.stack]}return[null,null]}};xe.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var me=Object.getOwnPropertyDescriptor(xe.DetermineComponentFrameRoot,"name");me&&me.configurable&&Object.defineProperty(xe.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var q=xe.DetermineComponentFrameRoot(),He=q[0],Dt=q[1];if(He&&Dt){var Ne=He.split(`
|
|
20
|
+
`),mt=Dt.split(`
|
|
21
|
+
`);for(q=me=0;me<Ne.length&&!Ne[me].includes("DetermineComponentFrameRoot");)me++;for(;q<mt.length&&!mt[q].includes("DetermineComponentFrameRoot");)q++;if(me===Ne.length||q===mt.length)for(me=Ne.length-1,q=mt.length-1;1<=me&&0<=q&&Ne[me]!==mt[q];)q--;for(;1<=me&&0<=q;me--,q--)if(Ne[me]!==mt[q]){if(me!==1||q!==1)do if(me--,q--,0>q||Ne[me]!==mt[q]){var Q=`
|
|
22
|
+
`+Ne[me].replace(" at new "," at ");return x.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",x.displayName)),typeof x=="function"&&Ye.set(x,Q),Q}while(1<=me&&0<=q);break}}}finally{Pe=!1,T.H=oe,a(),Error.prepareStackTrace=I}return Ne=(Ne=x?x.displayName||x.name:"")?i(Ne):"",typeof x=="function"&&Ye.set(x,Ne),Ne}function c(x){if(x==null)return"";if(typeof x=="function"){var _=x.prototype;return s(x,!(!_||!_.isReactComponent))}if(typeof x=="string")return i(x);switch(x){case R:return i("Suspense");case H:return i("SuspenseList")}if(typeof x=="object")switch(x.$$typeof){case V:return x=s(x.render,!1),x;case G:return c(x.type);case X:_=x._payload,x=x._init;try{return c(x(_))}catch{}}return""}function u(){var x=T.A;return x===null?null:x.getOwner()}function f(x){if(Z.call(x,"key")){var _=Object.getOwnPropertyDescriptor(x,"key").get;if(_&&_.isReactWarning)return!1}return x.key!==void 0}function m(x,_){function I(){Ge||(Ge=!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)",_))}I.isReactWarning=!0,Object.defineProperty(x,"key",{get:I,configurable:!0})}function h(){var x=e(this.type);return rn[x]||(rn[x]=!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.")),x=this.props.ref,x!==void 0?x:null}function g(x,_,I,oe,xe,me){return I=me.ref,x={$$typeof:S,type:x,key:_,props:me,_owner:xe},(I!==void 0?I:null)!==null?Object.defineProperty(x,"ref",{enumerable:!1,get:h}):Object.defineProperty(x,"ref",{enumerable:!1,value:null}),x._store={},Object.defineProperty(x._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(x,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(x.props),Object.freeze(x)),x}function b(x,_,I,oe,xe,me){if(typeof x=="string"||typeof x=="function"||x===D||x===O||x===P||x===R||x===H||x===j||typeof x=="object"&&x!==null&&(x.$$typeof===X||x.$$typeof===G||x.$$typeof===L||x.$$typeof===B||x.$$typeof===V||x.$$typeof===ve||x.getModuleId!==void 0)){var q=_.children;if(q!==void 0)if(oe)if(Me(q)){for(oe=0;oe<q.length;oe++)p(q[oe],x);Object.freeze&&Object.freeze(q)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(q,x)}else q="",(x===void 0||typeof x=="object"&&x!==null&&Object.keys(x).length===0)&&(q+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),x===null?oe="null":Me(x)?oe="array":x!==void 0&&x.$$typeof===S?(oe="<"+(e(x.type)||"Unknown")+" />",q=" Did you accidentally export a JSX literal instead of a component?"):oe=typeof x,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",oe,q);if(Z.call(_,"key")){q=e(x);var He=Object.keys(_).filter(function(Ne){return Ne!=="key"});oe=0<He.length?"{key: someKey, "+He.join(": ..., ")+": ...}":"{key: someKey}",ft[q+oe]||(He=0<He.length?"{"+He.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
23
23
|
let props = %s;
|
|
24
24
|
<%s {...props} />
|
|
25
25
|
React keys must be passed directly to JSX without using spread:
|
|
26
26
|
let props = %s;
|
|
27
|
-
<%s key={someKey} {...props} />`,
|
|
27
|
+
<%s key={someKey} {...props} />`,oe,q,He,q),ft[q+oe]=!0)}if(q=null,I!==void 0&&(n(I),q=""+I),f(_)&&(n(_.key),q=""+_.key),"key"in _){I={};for(var Dt in _)Dt!=="key"&&(I[Dt]=_[Dt])}else I=_;return q&&m(I,typeof x=="function"?x.displayName||x.name||"Unknown":x),g(x,q,me,xe,u(),I)}function p(x,_){if(typeof x=="object"&&x&&x.$$typeof!==dt){if(Me(x))for(var I=0;I<x.length;I++){var oe=x[I];v(oe)&&w(oe,_)}else if(v(x))x._store&&(x._store.validated=1);else if(x===null||typeof x!="object"?I=null:(I=z&&x[z]||x["@@iterator"],I=typeof I=="function"?I:null),typeof I=="function"&&I!==x.entries&&(I=I.call(x),I!==x))for(;!(x=I.next()).done;)v(x.value)&&w(x.value,_)}}function v(x){return typeof x=="object"&&x!==null&&x.$$typeof===S}function w(x,_){if(x._store&&!x._store.validated&&x.key==null&&(x._store.validated=1,_=y(_),!jr[_])){jr[_]=!0;var I="";x&&x._owner!=null&&x._owner!==u()&&(I=null,typeof x._owner.tag=="number"?I=e(x._owner.type):typeof x._owner.name=="string"&&(I=x._owner.name),I=" It was passed a child from "+I+".");var oe=T.getCurrentStack;T.getCurrentStack=function(){var xe=c(x.type);return oe&&(xe+=oe()||""),xe},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',_,I),T.getCurrentStack=oe}}function y(x){var _="",I=u();return I&&(I=e(I.type))&&(_=`
|
|
28
28
|
|
|
29
|
-
Check the render method of \``+
|
|
29
|
+
Check the render method of \``+I+"`."),_||(x=e(x))&&(_=`
|
|
30
30
|
|
|
31
|
-
Check the top-level render call using <`+h+">."),T}var A=I,C=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),G=Symbol.for("react.consumer"),W=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),X=Symbol.iterator,j=Symbol.for("react.client.reference"),N=A.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=Object.prototype.hasOwnProperty,V=Object.assign,ue=Symbol.for("react.client.reference"),Te=Array.isArray,he=0,Xe,we,de,ze,ne,Ge,It;r.__reactDisabledLog=!0;var pt,Ve,mt=!1,Lt=new(typeof WeakMap=="function"?WeakMap:Map),Qr=Symbol.for("react.client.reference"),Cn,En={},qe={},gl={};vt.Fragment=_,vt.jsx=function(h,T,M,U,te){return b(h,T,M,!1,U,te)},vt.jsxs=function(h,T,M,U,te){return b(h,T,M,!0,U,te)}}()),vt}var ao;function bl(){return ao||(ao=1,process.env.NODE_ENV==="production"?Ft.exports=hl():Ft.exports=vl()),Ft.exports}var l=bl();function so(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=so(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function io(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=so(e))&&(r&&(r+=" "),r+=t);return r}const An="-",yl=e=>{const t=wl(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const i=s.split(An);return i[0]===""&&i.length!==1&&i.shift(),co(i,t)||xl(s)},getConflictingClassGroupIds:(s,i)=>{const d=n[s]||[];return i&&r[s]?[...d,...r[s]]:d}}},co=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?co(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(An);return(s=t.validators.find(({validator:i})=>i(a)))==null?void 0:s.classGroupId},lo=/^\[(.+)\]$/,xl=e=>{if(lo.test(e)){const t=lo.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},wl=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return El(Object.entries(e.classGroups),n).forEach(([a,s])=>{Nn(s,r,a,t)}),r},Nn=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:uo(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(Cl(o)){Nn(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,s])=>{Nn(s,uo(t,a),n,r)})})},uo=(e,t)=>{let n=e;return t.split(An).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Cl=e=>e.isThemeGetter,El=(e,t)=>t?e.map(([n,r])=>{const o=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([s,i])=>[t+s,i])):a);return[n,o]}):e,Rl=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)}}},fo="!",Al=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],a=t.length,s=i=>{const d=[];let u=0,f=0,p;for(let x=0;x<i.length;x++){let y=i[x];if(u===0){if(y===o&&(r||i.slice(x,x+a)===t)){d.push(i.slice(f,x)),f=x+a;continue}if(y==="/"){p=x;continue}}y==="["?u++:y==="]"&&u--}const m=d.length===0?i:i.substring(f),v=m.startsWith(fo),b=v?m.substring(1):m,g=p&&p>f?p-f:void 0;return{modifiers:d,hasImportantModifier:v,baseClassName:b,maybePostfixModifierPosition:g}};return n?i=>n({className:i,parseClassName:s}):s},Nl=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},Pl=e=>({cache:Rl(e.cacheSize),parseClassName:Al(e),...yl(e)}),Sl=/\s+/,Tl=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,a=[],s=e.trim().split(Sl);let i="";for(let d=s.length-1;d>=0;d-=1){const u=s[d],{modifiers:f,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:v}=n(u);let b=!!v,g=r(b?m.substring(0,v):m);if(!g){if(!b){i=u+(i.length>0?" "+i:i);continue}if(g=r(m),!g){i=u+(i.length>0?" "+i:i);continue}b=!1}const x=Nl(f).join(":"),y=p?x+fo:x,w=y+g;if(a.includes(w))continue;a.push(w);const A=o(g,b);for(let C=0;C<A.length;++C){const R=A[C];a.push(y+R)}i=u+(i.length>0?" "+i:i)}return i};function Ml(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=po(t))&&(r&&(r+=" "),r+=n);return r}const po=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=po(e[r]))&&(n&&(n+=" "),n+=t);return n};function Dl(e,...t){let n,r,o,a=s;function s(d){const u=t.reduce((f,p)=>p(f),e());return n=Pl(u),r=n.cache.get,o=n.cache.set,a=i,i(d)}function i(d){const u=r(d);if(u)return u;const f=Tl(d,n);return o(d,f),f}return function(){return a(Ml.apply(null,arguments))}}const q=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},mo=/^\[(?:([a-z-]+):)?(.+)\]$/i,_l=/^\d+\/\d+$/,kl=new Set(["px","full","screen"]),Ol=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,jl=/\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$/,Il=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ll=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$l=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ce=e=>Je(e)||kl.has(e)||_l.test(e),_e=e=>Qe(e,"length",Ul),Je=e=>!!e&&!Number.isNaN(Number(e)),Pn=e=>Qe(e,"number",Je),bt=e=>!!e&&Number.isInteger(Number(e)),Fl=e=>e.endsWith("%")&&Je(e.slice(0,-1)),L=e=>mo.test(e),ke=e=>Ol.test(e),Wl=new Set(["length","size","percentage"]),Bl=e=>Qe(e,Wl,go),zl=e=>Qe(e,"position",go),Gl=new Set(["image","url"]),Vl=e=>Qe(e,Gl,Yl),Hl=e=>Qe(e,"",Kl),yt=()=>!0,Qe=(e,t,n)=>{const r=mo.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Ul=e=>jl.test(e)&&!Il.test(e),go=()=>!1,Kl=e=>Ll.test(e),Yl=e=>$l.test(e),Xl=Dl(()=>{const e=q("colors"),t=q("spacing"),n=q("blur"),r=q("brightness"),o=q("borderColor"),a=q("borderRadius"),s=q("borderSpacing"),i=q("borderWidth"),d=q("contrast"),u=q("grayscale"),f=q("hueRotate"),p=q("invert"),m=q("gap"),v=q("gradientColorStops"),b=q("gradientColorStopPositions"),g=q("inset"),x=q("margin"),y=q("opacity"),w=q("padding"),A=q("saturate"),C=q("scale"),R=q("sepia"),_=q("skew"),S=q("space"),O=q("translate"),G=()=>["auto","contain","none"],W=()=>["auto","hidden","clip","visible","scroll"],K=()=>["auto",L,t],k=()=>[L,t],H=()=>["",Ce,_e],z=()=>["auto",Je,L],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],j=()=>["start","end","center","between","around","evenly","stretch"],N=()=>["","0",L],Y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>[Je,L];return{cacheSize:500,separator:":",theme:{colors:[yt],spacing:[Ce,_e],blur:["none","",ke,L],brightness:V(),borderColor:[e],borderRadius:["none","","full",ke,L],borderSpacing:k(),borderWidth:H(),contrast:V(),grayscale:N(),hueRotate:V(),invert:N(),gap:k(),gradientColorStops:[e],gradientColorStopPositions:[Fl,_e],inset:K(),margin:K(),opacity:V(),padding:k(),saturate:V(),scale:V(),sepia:N(),skew:V(),space:k(),translate:k()},classGroups:{aspect:[{aspect:["auto","square","video",L]}],container:["container"],columns:[{columns:[ke]}],"break-after":[{"break-after":Y()}],"break-before":[{"break-before":Y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],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:[...J(),L]}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",bt,L]}],basis:[{basis:K()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",L]}],grow:[{grow:N()}],shrink:[{shrink:N()}],order:[{order:["first","last","none",bt,L]}],"grid-cols":[{"grid-cols":[yt]}],"col-start-end":[{col:["auto",{span:["full",bt,L]},L]}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":[yt]}],"row-start-end":[{row:["auto",{span:[bt,L]},L]}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",L]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",L]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...j()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...j(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...j(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",L,t]}],"min-w":[{"min-w":[L,t,"min","max","fit"]}],"max-w":[{"max-w":[L,t,"none","full","min","max","fit","prose",{screen:[ke]},ke]}],h:[{h:[L,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[L,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[L,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[L,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ke,_e]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Pn]}],"font-family":[{font:[yt]}],"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:["tighter","tight","normal","wide","wider","widest",L]}],"line-clamp":[{"line-clamp":["none",Je,Pn]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ce,L]}],"list-image":[{"list-image":["none",L]}],"list-style-type":[{list:["none","disc","decimal",L]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ce,_e]}],"underline-offset":[{"underline-offset":["auto",Ce,L]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",L]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",L]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),zl]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Bl]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Vl]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:B()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[Ce,L]}],"outline-w":[{outline:[Ce,_e]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Ce,_e]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ke,Hl]}],"shadow-color":[{shadow:[yt]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...X(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",ke,L]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[p]}],saturate:[{saturate:[A]}],sepia:[{sepia:[R]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[A]}],"backdrop-sepia":[{"backdrop-sepia":[R]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",L]}],duration:[{duration:V()}],ease:[{ease:["linear","in","out","in-out",L]}],delay:[{delay:V()}],animate:[{animate:["none","spin","ping","pulse","bounce",L]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[bt,L]}],"translate-x":[{"translate-x":[O]}],"translate-y":[{"translate-y":[O]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",L]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",L]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"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",L]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ce,_e,Pn]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}});function P(...e){return Xl(io(e))}const ql=(e,t="pt-BR",n="BRL")=>new Intl.NumberFormat(t,{style:"currency",currency:n,minimumFractionDigits:2}).format(e),Zl=(e,t="pt-BR")=>new Intl.DateTimeFormat(t,{day:"2-digit",month:"long",weekday:"long"}).format(new Date(e)),Jl=(e,t="pt-BR")=>new Intl.DateTimeFormat(t,{day:"2-digit",month:"long",weekday:"long",year:"numeric"}).format(new Date(e)),Ql=(e,t="pt-BR")=>new Intl.DateTimeFormat(t,{day:"2-digit",month:"long"}).format(new Date(e)),eu=(e,t="pt-BR")=>new Intl.DateTimeFormat(t,{dateStyle:"long"}).format(typeof e=="string"?new Date(e):e),tu=(e,t="pt-BR")=>new Intl.DateTimeFormat(t,{dateStyle:"short"}).format(e),nu=e=>e.slice(0,7),ru=(e,t="pt-BR")=>e.toLocaleDateString(t,{weekday:"short",day:"2-digit",month:"2-digit"}),ho=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,vo=io,Sn=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return vo(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 f=n==null?void 0:n[u],p=a==null?void 0:a[u];if(f===null)return null;const m=ho(f)||ho(p);return o[u][m]}),i=n&&Object.entries(n).reduce((u,f)=>{let[p,m]=f;return m===void 0||(u[p]=m),u},{}),d=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:p,className:m,...v}=f;return Object.entries(v).every(b=>{let[g,x]=b;return Array.isArray(x)?x.includes({...a,...i}[g]):{...a,...i}[g]===x})?[...u,p,m]:u},[]);return vo(e,s,d,n==null?void 0:n.class,n==null?void 0:n.className)},ou=Sn("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",{variants:{sizing:{sm:"h-8 text-xs px-2",md:"h-10 text-sm px-3",lg:"h-12 text-base px-4",xl:"h-14 text-lg px-5","2xl":"h-16 text-xl px-6"}},defaultVariants:{sizing:"md"}}),Wt=c.forwardRef(({className:e,sizing:t,type:n,...r},o)=>l.jsx("input",{type:n,className:P(ou({sizing:t,className:e})),ref:o,...r}));Wt.displayName="Input";const au=(e,t)=>{const n=e.replace(/\D/g,"");let r="",o=0,a=0;for(;o<t.length&&a<n.length;)t[o]==="0"?(r+=n[a],a++):r+=t[o],o++;return r},Bt=c.forwardRef(({className:e,leftIcon:t,rightIcon:n,mask:r,onChange:o,...a},s)=>{const i=d=>{const u=d.target;if(r){const f=au(u.value,r);u.value=f}o==null||o(d)};return l.jsxs("div",{className:"relative w-full",children:[t&&l.jsx("div",{className:"absolute left-2 top-1/2 -translate-y-1/2 text-muted-foreground",children:t}),l.jsx(Wt,{className:P(t&&"pl-8",n&&"pr-8",e),ref:s,onInput:i,...a}),n&&l.jsx("div",{className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground",children:n})]})});Bt.displayName="AdaptiveInput";function su(e,t){const n=c.createContext(t),r=a=>{const{children:s,...i}=a,d=c.useMemo(()=>i,Object.values(i));return l.jsx(n.Provider,{value:d,children:s})};r.displayName=e+"Provider";function o(a){const s=c.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function oe(e,t=[]){let n=[];function r(a,s){const i=c.createContext(s),d=n.length;n=[...n,s];const u=p=>{var y;const{scope:m,children:v,...b}=p,g=((y=m==null?void 0:m[e])==null?void 0:y[d])||i,x=c.useMemo(()=>b,Object.values(b));return l.jsx(g.Provider,{value:x,children:v})};u.displayName=a+"Provider";function f(p,m){var g;const v=((g=m==null?void 0:m[e])==null?void 0:g[d])||i,b=c.useContext(v);if(b)return b;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[u,f]}const o=()=>{const a=n.map(s=>c.createContext(s));return function(i){const d=(i==null?void 0:i[e])||a;return c.useMemo(()=>({[`__scope${e}`]:{...i,[e]:d}}),[i,d])}};return o.scopeName=e,[r,iu(o,...t)]}function iu(...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:d,scopeName:u})=>{const p=d(a)[`__scope${u}`];return{...i,...p}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function bo(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function zt(...e){return t=>{let n=!1;const r=e.map(o=>{const a=bo(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():bo(e[o],null)}}}}function Z(...e){return c.useCallback(zt(...e),e)}function D(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}var Ee=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{},cu=c.useId||(()=>{}),lu=0;function fe(e){const[t,n]=c.useState(cu());return Ee(()=>{e||n(r=>r??String(lu++))},[e]),e||(t?`radix-${t}`:"")}function se(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Re({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=uu({defaultProp:t,onChange:n}),a=e!==void 0,s=a?e:r,i=se(n),d=c.useCallback(u=>{if(a){const p=typeof u=="function"?u(e):u;p!==e&&i(p)}else o(u)},[a,e,o,i]);return[s,d]}function uu({defaultProp:e,onChange:t}){const n=c.useState(e),[r]=n,o=c.useRef(r),a=se(t);return c.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}var Oe=c.forwardRef((e,t)=>{const{children:n,...r}=e,o=c.Children.toArray(n),a=o.find(du);if(a){const s=a.props.children,i=o.map(d=>d===a?c.Children.count(s)>1?c.Children.only(null):c.isValidElement(s)?s.props.children:null:d);return l.jsx(Tn,{...r,ref:t,children:c.isValidElement(s)?c.cloneElement(s,void 0,i):null})}return l.jsx(Tn,{...r,ref:t,children:n})});Oe.displayName="Slot";var Tn=c.forwardRef((e,t)=>{const{children:n,...r}=e;if(c.isValidElement(n)){const o=pu(n);return c.cloneElement(n,{...fu(r,n.props),ref:t?zt(t,o):o})}return c.Children.count(n)>1?c.Children.only(null):null});Tn.displayName="SlotClone";var Mn=({children:e})=>l.jsx(l.Fragment,{children:e});function du(e){return c.isValidElement(e)&&e.type===Mn}function fu(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)=>{a(...i),o(...i)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function pu(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 mu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],F=mu.reduce((e,t)=>{const n=c.forwardRef((r,o)=>{const{asChild:a,...s}=r,i=a?Oe:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(i,{...s,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function yo(e,t){e&&no.flushSync(()=>e.dispatchEvent(t))}function gu(e,t=globalThis==null?void 0:globalThis.document){const n=se(e);c.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 hu="DismissableLayer",Dn="dismissableLayer.update",vu="dismissableLayer.pointerDownOutside",bu="dismissableLayer.focusOutside",xo,wo=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),xt=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...d}=e,u=c.useContext(wo),[f,p]=c.useState(null),m=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=c.useState({}),b=Z(t,S=>p(S)),g=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(x),w=f?g.indexOf(f):-1,A=u.layersWithOutsidePointerEventsDisabled.size>0,C=w>=y,R=wu(S=>{const O=S.target,G=[...u.branches].some(W=>W.contains(O));!C||G||(o==null||o(S),s==null||s(S),S.defaultPrevented||i==null||i())},m),_=Cu(S=>{const O=S.target;[...u.branches].some(W=>W.contains(O))||(a==null||a(S),s==null||s(S),S.defaultPrevented||i==null||i())},m);return gu(S=>{w===u.layers.size-1&&(r==null||r(S),!S.defaultPrevented&&i&&(S.preventDefault(),i()))},m),c.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(xo=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Co(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=xo)}},[f,m,n,u]),c.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Co())},[f,u]),c.useEffect(()=>{const S=()=>v({});return document.addEventListener(Dn,S),()=>document.removeEventListener(Dn,S)},[]),l.jsx(F.div,{...d,ref:b,style:{pointerEvents:A?C?"auto":"none":void 0,...e.style},onFocusCapture:D(e.onFocusCapture,_.onFocusCapture),onBlurCapture:D(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:D(e.onPointerDownCapture,R.onPointerDownCapture)})});xt.displayName=hu;var yu="DismissableLayerBranch",xu=c.forwardRef((e,t)=>{const n=c.useContext(wo),r=c.useRef(null),o=Z(t,r);return c.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),l.jsx(F.div,{...e,ref:o})});xu.displayName=yu;function wu(e,t=globalThis==null?void 0:globalThis.document){const n=se(e),r=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const a=i=>{if(i.target&&!r.current){let d=function(){Eo(vu,n,u,{discrete:!0})};const u={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}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 Cu(e,t=globalThis==null?void 0:globalThis.document){const n=se(e),r=c.useRef(!1);return c.useEffect(()=>{const o=a=>{a.target&&!r.current&&Eo(bu,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 Co(){const e=new CustomEvent(Dn);document.dispatchEvent(e)}function Eo(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?yo(o,a):o.dispatchEvent(a)}var _n="focusScope.autoFocusOnMount",kn="focusScope.autoFocusOnUnmount",Ro={bubbles:!1,cancelable:!0},Eu="FocusScope",Gt=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,d]=c.useState(null),u=se(o),f=se(a),p=c.useRef(null),m=Z(t,g=>d(g)),v=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let g=function(A){if(v.paused||!i)return;const C=A.target;i.contains(C)?p.current=C:je(p.current,{select:!0})},x=function(A){if(v.paused||!i)return;const C=A.relatedTarget;C!==null&&(i.contains(C)||je(p.current,{select:!0}))},y=function(A){if(document.activeElement===document.body)for(const R of A)R.removedNodes.length>0&&je(i)};document.addEventListener("focusin",g),document.addEventListener("focusout",x);const w=new MutationObserver(y);return i&&w.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",x),w.disconnect()}}},[r,i,v.paused]),c.useEffect(()=>{if(i){Po.add(v);const g=document.activeElement;if(!i.contains(g)){const y=new CustomEvent(_n,Ro);i.addEventListener(_n,u),i.dispatchEvent(y),y.defaultPrevented||(Ru(Tu(Ao(i)),{select:!0}),document.activeElement===g&&je(i))}return()=>{i.removeEventListener(_n,u),setTimeout(()=>{const y=new CustomEvent(kn,Ro);i.addEventListener(kn,f),i.dispatchEvent(y),y.defaultPrevented||je(g??document.body,{select:!0}),i.removeEventListener(kn,f),Po.remove(v)},0)}}},[i,u,f,v]);const b=c.useCallback(g=>{if(!n&&!r||v.paused)return;const x=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,y=document.activeElement;if(x&&y){const w=g.currentTarget,[A,C]=Au(w);A&&C?!g.shiftKey&&y===C?(g.preventDefault(),n&&je(A,{select:!0})):g.shiftKey&&y===A&&(g.preventDefault(),n&&je(C,{select:!0})):y===w&&g.preventDefault()}},[n,r,v.paused]);return l.jsx(F.div,{tabIndex:-1,...s,ref:m,onKeyDown:b})});Gt.displayName=Eu;function Ru(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(je(r,{select:t}),document.activeElement!==n)return}function Au(e){const t=Ao(e),n=No(t,e),r=No(t.reverse(),e);return[n,r]}function Ao(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 No(e,t){for(const n of e)if(!Nu(n,{upTo:t}))return n}function Nu(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 Pu(e){return e instanceof HTMLInputElement&&"select"in e}function je(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Pu(e)&&t&&e.select()}}var Po=Su();function Su(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=So(e,t),e.unshift(t)},remove(t){var n;e=So(e,t),(n=e[0])==null||n.resume()}}}function So(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Tu(e){return e.filter(t=>t.tagName!=="A")}var Mu="Portal",wt=c.forwardRef((e,t)=>{var i;const{container:n,...r}=e,[o,a]=c.useState(!1);Ee(()=>a(!0),[]);const s=n||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?eo.createPortal(l.jsx(F.div,{...r,ref:t}),s):null});wt.displayName=Mu;function Du(e,t){return c.useReducer((n,r)=>t[n][r]??n,e)}var ae=e=>{const{present:t,children:n}=e,r=_u(t),o=typeof n=="function"?n({present:r.isPresent}):c.Children.only(n),a=Z(r.ref,ku(o));return typeof n=="function"||r.isPresent?c.cloneElement(o,{ref:a}):null};ae.displayName="Presence";function _u(e){const[t,n]=c.useState(),r=c.useRef({}),o=c.useRef(e),a=c.useRef("none"),s=e?"mounted":"unmounted",[i,d]=Du(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const u=Vt(r.current);a.current=i==="mounted"?u:"none"},[i]),Ee(()=>{const u=r.current,f=o.current;if(f!==e){const m=a.current,v=Vt(u);e?d("MOUNT"):v==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(f&&m!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),Ee(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,p=v=>{const g=Vt(r.current).includes(v.animationName);if(v.target===t&&g&&(d("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},m=v=>{v.target===t&&(a.current=Vt(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:c.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Vt(e){return(e==null?void 0:e.animationName)||"none"}function ku(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 On=0;function jn(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??To()),document.body.insertAdjacentElement("beforeend",e[1]??To()),On++,()=>{On===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),On--}},[])}function To(){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 a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},ve.apply(this,arguments)};function Mo(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 Ou(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 Ht="right-scroll-bar-position",Ut="width-before-scroll-bar",ju="with-scroll-bars-hidden",Iu="--removed-body-scroll-bar-size";function In(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Lu(e,t){var n=I.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 $u=typeof window<"u"?c.useLayoutEffect:c.useEffect,Do=new WeakMap;function Fu(e,t){var n=Lu(null,function(r){return e.forEach(function(o){return In(o,r)})});return $u(function(){var r=Do.get(n);if(r){var o=new Set(r),a=new Set(e),s=n.current;o.forEach(function(i){a.has(i)||In(i,null)}),a.forEach(function(i){o.has(i)||In(i,s)})}Do.set(n,e)},[e]),n}function Wu(e){return e}function Bu(e,t){t===void 0&&(t=Wu);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 d=function(){var f=s;s=[],f.forEach(a)},u=function(){return Promise.resolve().then(d)};u(),n={push:function(f){s.push(f),u()},filter:function(f){return s=s.filter(f),n}}}};return o}function zu(e){e===void 0&&(e={});var t=Bu(null);return t.options=ve({async:!0,ssr:!1},e),t}var _o=function(e){var t=e.sideCar,n=Mo(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 c.createElement(r,ve({},n))};_o.isSideCarExport=!0;function Gu(e,t){return e.useMedium(t),_o}var ko=zu(),Ln=function(){},Kt=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:Ln,onWheelCapture:Ln,onTouchMoveCapture:Ln}),o=r[0],a=r[1],s=e.forwardProps,i=e.children,d=e.className,u=e.removeScrollBar,f=e.enabled,p=e.shards,m=e.sideCar,v=e.noIsolation,b=e.inert,g=e.allowPinchZoom,x=e.as,y=x===void 0?"div":x,w=e.gapMode,A=Mo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=m,R=Fu([n,t]),_=ve(ve({},A),o);return c.createElement(c.Fragment,null,f&&c.createElement(C,{sideCar:ko,removeScrollBar:u,shards:p,noIsolation:v,inert:b,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:w}),s?c.cloneElement(c.Children.only(i),ve(ve({},_),{ref:R})):c.createElement(y,ve({},_,{className:d,ref:R}),i))});Kt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Kt.classNames={fullWidth:Ut,zeroRight:Ht};var Vu=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Hu(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Vu();return t&&e.setAttribute("nonce",t),e}function Uu(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ku(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Yu=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Hu())&&(Uu(t,n),Ku(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Xu=function(){var e=Yu();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Oo=function(){var e=Xu(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},qu={left:0,top:0,right:0,gap:0},$n=function(e){return parseInt(e||"",10)||0},Zu=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[$n(n),$n(r),$n(o)]},Ju=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return qu;var t=Zu(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])}},Qu=Oo(),et="data-scroll-locked",ed=function(e,t,n,r){var o=e.left,a=e.top,s=e.right,i=e.gap;return n===void 0&&(n="margin"),`
|
|
32
|
-
.`.concat(
|
|
31
|
+
Check the top-level render call using <`+x+">."),_}var C=M,S=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),B=Symbol.for("react.consumer"),L=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),j=Symbol.for("react.offscreen"),z=Symbol.iterator,F=Symbol.for("react.client.reference"),T=C.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=Object.prototype.hasOwnProperty,U=Object.assign,ve=Symbol.for("react.client.reference"),Me=Array.isArray,pe=0,Oe,he,$,ne,ae,ee,re;r.__reactDisabledLog=!0;var te,we,Pe=!1,Ye=new(typeof WeakMap=="function"?WeakMap:Map),dt=Symbol.for("react.client.reference"),Ge,rn={},ft={},jr={};an.Fragment=D,an.jsx=function(x,_,I,oe,xe){return b(x,_,I,!1,oe,xe)},an.jsxs=function(x,_,I,oe,xe){return b(x,_,I,!0,oe,xe)}}()),an}var Oa;function im(){return Oa||(Oa=1,process.env.NODE_ENV==="production"?$n.exports=am():$n.exports=sm()),$n.exports}var d=im();function Aa(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=Aa(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ra(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Aa(e))&&(r&&(r+=" "),r+=t);return r}const Wr="-",cm=e=>{const t=um(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const s=i.split(Wr);return s[0]===""&&s.length!==1&&s.shift(),_a(s,t)||lm(i)},getConflictingClassGroupIds:(i,s)=>{const c=n[i]||[];return s&&r[i]?[...c,...r[i]]:c}}},_a=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?_a(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(Wr);return(i=t.validators.find(({validator:s})=>s(a)))==null?void 0:i.classGroupId},Ia=/^\[(.+)\]$/,lm=e=>{if(Ia.test(e)){const t=Ia.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},um=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return fm(Object.entries(e.classGroups),n).forEach(([a,i])=>{$r(i,r,a,t)}),r},$r=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:ja(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(dm(o)){$r(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,i])=>{$r(i,ja(t,a),n,r)})})},ja=(e,t)=>{let n=e;return t.split(Wr).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},dm=e=>e.isThemeGetter,fm=(e,t)=>t?e.map(([n,r])=>{const o=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,s])=>[t+i,s])):a);return[n,o]}):e,mm=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(a,i)=>{n.set(a,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let i=n.get(a);if(i!==void 0)return i;if((i=r.get(a))!==void 0)return o(a,i),i},set(a,i){n.has(a)?n.set(a,i):o(a,i)}}},Fa="!",hm=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],a=t.length,i=s=>{const c=[];let u=0,f=0,m;for(let v=0;v<s.length;v++){let w=s[v];if(u===0){if(w===o&&(r||s.slice(v,v+a)===t)){c.push(s.slice(f,v)),f=v+a;continue}if(w==="/"){m=v;continue}}w==="["?u++:w==="]"&&u--}const h=c.length===0?s:s.substring(f),g=h.startsWith(Fa),b=g?h.substring(1):h,p=m&&m>f?m-f:void 0;return{modifiers:c,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:p}};return n?s=>n({className:s,parseClassName:i}):i},pm=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},gm=e=>({cache:mm(e.cacheSize),parseClassName:hm(e),...cm(e)}),vm=/\s+/,ym=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,a=[],i=e.trim().split(vm);let s="";for(let c=i.length-1;c>=0;c-=1){const u=i[c],{modifiers:f,hasImportantModifier:m,baseClassName:h,maybePostfixModifierPosition:g}=n(u);let b=!!g,p=r(b?h.substring(0,g):h);if(!p){if(!b){s=u+(s.length>0?" "+s:s);continue}if(p=r(h),!p){s=u+(s.length>0?" "+s:s);continue}b=!1}const v=pm(f).join(":"),w=m?v+Fa:v,y=w+p;if(a.includes(y))continue;a.push(y);const C=o(p,b);for(let S=0;S<C.length;++S){const E=C[S];a.push(w+E)}s=u+(s.length>0?" "+s:s)}return s};function bm(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Wa(t))&&(r&&(r+=" "),r+=n);return r}const Wa=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Wa(e[r]))&&(n&&(n+=" "),n+=t);return n};function wm(e,...t){let n,r,o,a=i;function i(c){const u=t.reduce((f,m)=>m(f),e());return n=gm(u),r=n.cache.get,o=n.cache.set,a=s,s(c)}function s(c){const u=r(c);if(u)return u;const f=ym(c,n);return o(c,f),f}return function(){return a(bm.apply(null,arguments))}}const fe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},$a=/^\[(?:([a-z-]+):)?(.+)\]$/i,xm=/^\d+\/\d+$/,Cm=new Set(["px","full","screen"]),Sm=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Mm=/\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$/,Nm=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Em=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Pm=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,rt=e=>It(e)||Cm.has(e)||xm.test(e),ht=e=>jt(e,"length",Im),It=e=>!!e&&!Number.isNaN(Number(e)),Lr=e=>jt(e,"number",It),sn=e=>!!e&&Number.isInteger(Number(e)),Dm=e=>e.endsWith("%")&&It(e.slice(0,-1)),K=e=>$a.test(e),pt=e=>Sm.test(e),km=new Set(["length","size","percentage"]),Tm=e=>jt(e,km,La),Om=e=>jt(e,"position",La),Am=new Set(["image","url"]),Rm=e=>jt(e,Am,Fm),_m=e=>jt(e,"",jm),cn=()=>!0,jt=(e,t,n)=>{const r=$a.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Im=e=>Mm.test(e)&&!Nm.test(e),La=()=>!1,jm=e=>Em.test(e),Fm=e=>Pm.test(e),Wm=wm(()=>{const e=fe("colors"),t=fe("spacing"),n=fe("blur"),r=fe("brightness"),o=fe("borderColor"),a=fe("borderRadius"),i=fe("borderSpacing"),s=fe("borderWidth"),c=fe("contrast"),u=fe("grayscale"),f=fe("hueRotate"),m=fe("invert"),h=fe("gap"),g=fe("gradientColorStops"),b=fe("gradientColorStopPositions"),p=fe("inset"),v=fe("margin"),w=fe("opacity"),y=fe("padding"),C=fe("saturate"),S=fe("scale"),E=fe("sepia"),D=fe("skew"),P=fe("space"),O=fe("translate"),B=()=>["auto","contain","none"],L=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto",K,t],R=()=>[K,t],H=()=>["",rt,ht],G=()=>["auto",It,K],X=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],j=()=>["solid","dashed","dotted","double","none"],z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],F=()=>["start","end","center","between","around","evenly","stretch"],T=()=>["","0",K],Z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>[It,K];return{cacheSize:500,separator:":",theme:{colors:[cn],spacing:[rt,ht],blur:["none","",pt,K],brightness:U(),borderColor:[e],borderRadius:["none","","full",pt,K],borderSpacing:R(),borderWidth:H(),contrast:U(),grayscale:T(),hueRotate:U(),invert:T(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[Dm,ht],inset:V(),margin:V(),opacity:U(),padding:R(),saturate:U(),scale:U(),sepia:T(),skew:U(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",K]}],container:["container"],columns:[{columns:[pt]}],"break-after":[{"break-after":Z()}],"break-before":[{"break-before":Z()}],"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"],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:[...X(),K]}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",sn,K]}],basis:[{basis:V()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",K]}],grow:[{grow:T()}],shrink:[{shrink:T()}],order:[{order:["first","last","none",sn,K]}],"grid-cols":[{"grid-cols":[cn]}],"col-start-end":[{col:["auto",{span:["full",sn,K]},K]}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":[cn]}],"row-start-end":[{row:["auto",{span:[sn,K]},K]}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",K]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",K]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...F()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...F(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...F(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",K,t]}],"min-w":[{"min-w":[K,t,"min","max","fit"]}],"max-w":[{"max-w":[K,t,"none","full","min","max","fit","prose",{screen:[pt]},pt]}],h:[{h:[K,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[K,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[K,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[K,t,"auto","min","max","fit"]}],"font-size":[{text:["base",pt,ht]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Lr]}],"font-family":[{font:[cn]}],"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:["tighter","tight","normal","wide","wider","widest",K]}],"line-clamp":[{"line-clamp":["none",It,Lr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",rt,K]}],"list-image":[{"list-image":["none",K]}],"list-style-type":[{list:["none","disc","decimal",K]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...j(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",rt,ht]}],"underline-offset":[{"underline-offset":["auto",rt,K]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",K]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",K]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...X(),Om]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Tm]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Rm]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...j(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:j()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...j()]}],"outline-offset":[{"outline-offset":[rt,K]}],"outline-w":[{outline:[rt,ht]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[rt,ht]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",pt,_m]}],"shadow-color":[{shadow:[cn]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...z(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":z()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",pt,K]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[m]}],saturate:[{saturate:[C]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[C]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",K]}],duration:[{duration:U()}],ease:[{ease:["linear","in","out","in-out",K]}],delay:[{delay:U()}],animate:[{animate:["none","spin","ping","pulse","bounce",K]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[sn,K]}],"translate-x":[{"translate-x":[O]}],"translate-y":[{"translate-y":[O]}],"skew-x":[{"skew-x":[D]}],"skew-y":[{"skew-y":[D]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",K]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",K]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",K]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[rt,ht,Lr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}});function k(...e){return Wm(Ra(e))}const $m=(e,t="pt-BR",n="BRL")=>new Intl.NumberFormat(t,{style:"currency",currency:n,minimumFractionDigits:2}).format(e),Lm=(e,t="pt-BR")=>new Intl.DateTimeFormat(t,{day:"2-digit",month:"long",weekday:"long"}).format(new Date(e)),Bm=(e,t="pt-BR")=>new Intl.DateTimeFormat(t,{day:"2-digit",month:"long",weekday:"long",year:"numeric"}).format(new Date(e)),Vm=(e,t="pt-BR")=>new Intl.DateTimeFormat(t,{day:"2-digit",month:"long"}).format(new Date(e)),Ym=(e,t="pt-BR")=>new Intl.DateTimeFormat(t,{dateStyle:"long"}).format(typeof e=="string"?new Date(e):e),Gm=(e,t="pt-BR")=>new Intl.DateTimeFormat(t,{dateStyle:"short"}).format(e),Hm=e=>e.slice(0,7),zm=(e,t="pt-BR")=>e.toLocaleDateString(t,{weekday:"short",day:"2-digit",month:"2-digit"}),Ba=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Va=Ra,ln=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Va(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(u=>{const f=n==null?void 0:n[u],m=a==null?void 0:a[u];if(f===null)return null;const h=Ba(f)||Ba(m);return o[u][h]}),s=n&&Object.entries(n).reduce((u,f)=>{let[m,h]=f;return h===void 0||(u[m]=h),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:m,className:h,...g}=f;return Object.entries(g).every(b=>{let[p,v]=b;return Array.isArray(v)?v.includes({...a,...s}[p]):{...a,...s}[p]===v})?[...u,m,h]:u},[]);return Va(e,i,c,n==null?void 0:n.class,n==null?void 0:n.className)},Um=ln("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",{variants:{sizing:{sm:"h-8 text-xs px-2",md:"h-10 text-sm px-3",lg:"h-12 text-base px-4",xl:"h-14 text-lg px-5","2xl":"h-16 text-xl px-6"}},defaultVariants:{sizing:"md"}}),Ln=l.forwardRef(({className:e,sizing:t,type:n,...r},o)=>d.jsx("input",{type:n,className:k(Um({sizing:t,className:e})),ref:o,...r}));Ln.displayName="Input";const qm=(e,t)=>{const n=e.replace(/\D/g,"");let r="",o=0,a=0;for(;o<t.length&&a<n.length;)t[o]==="0"?(r+=n[a],a++):r+=t[o],o++;return r},Bn=l.forwardRef(({className:e,leftIcon:t,rightIcon:n,mask:r,onChange:o,...a},i)=>{const s=c=>{const u=c.target;if(r){const f=qm(u.value,r);u.value=f}o==null||o(c)};return d.jsxs("div",{className:"relative w-full",children:[t&&d.jsx("div",{className:"absolute left-2 top-1/2 -translate-y-1/2 text-muted-foreground",children:t}),d.jsx(Ln,{className:k(t&&"pl-8",n&&"pr-8",e),ref:i,onInput:s,...a}),n&&d.jsx("div",{className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground",children:n})]})});Bn.displayName="AdaptiveInput";function Km(e,t){const n=l.createContext(t),r=a=>{const{children:i,...s}=a,c=l.useMemo(()=>s,Object.values(s));return d.jsx(n.Provider,{value:c,children:i})};r.displayName=e+"Provider";function o(a){const i=l.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function ye(e,t=[]){let n=[];function r(a,i){const s=l.createContext(i),c=n.length;n=[...n,i];const u=m=>{var w;const{scope:h,children:g,...b}=m,p=((w=h==null?void 0:h[e])==null?void 0:w[c])||s,v=l.useMemo(()=>b,Object.values(b));return d.jsx(p.Provider,{value:v,children:g})};u.displayName=a+"Provider";function f(m,h){var p;const g=((p=h==null?void 0:h[e])==null?void 0:p[c])||s,b=l.useContext(g);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${m}\` must be used within \`${a}\``)}return[u,f]}const o=()=>{const a=n.map(i=>l.createContext(i));return function(s){const c=(s==null?void 0:s[e])||a;return l.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return o.scopeName=e,[r,Xm(o,...t)]}function Xm(...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 i=r.reduce((s,{useScope:c,scopeName:u})=>{const m=c(a)[`__scope${u}`];return{...s,...m}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Ya(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Vn(...e){return t=>{let n=!1;const r=e.map(o=>{const a=Ya(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():Ya(e[o],null)}}}}function J(...e){return l.useCallback(Vn(...e),e)}function A(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}var Se=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},Qm=l.useId||(()=>{}),Zm=0;function Ae(e){const[t,n]=l.useState(Qm());return Se(()=>{n(r=>r??String(Zm++))},[e]),t?`radix-${t}`:""}function Re(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 ke({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Jm({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=Re(n),c=l.useCallback(u=>{if(a){const m=typeof u=="function"?u(e):u;m!==e&&s(m)}else o(u)},[a,e,o,s]);return[i,c]}function Jm({defaultProp:e,onChange:t}){const n=l.useState(e),[r]=n,o=l.useRef(r),a=Re(t);return l.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}var Ue=l.forwardRef((e,t)=>{const{children:n,...r}=e,o=l.Children.toArray(n),a=o.find(eh);if(a){const i=a.props.children,s=o.map(c=>c===a?l.Children.count(i)>1?l.Children.only(null):l.isValidElement(i)?i.props.children:null:c);return d.jsx(Br,{...r,ref:t,children:l.isValidElement(i)?l.cloneElement(i,void 0,s):null})}return d.jsx(Br,{...r,ref:t,children:n})});Ue.displayName="Slot";var Br=l.forwardRef((e,t)=>{const{children:n,...r}=e;if(l.isValidElement(n)){const o=nh(n);return l.cloneElement(n,{...th(r,n.props),ref:t?Vn(t,o):o})}return l.Children.count(n)>1?l.Children.only(null):null});Br.displayName="SlotClone";var Vr=({children:e})=>d.jsx(d.Fragment,{children:e});function eh(e){return l.isValidElement(e)&&e.type===Vr}function th(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]=(...s)=>{a(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function nh(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 rh=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],W=rh.reduce((e,t)=>{const n=l.forwardRef((r,o)=>{const{asChild:a,...i}=r,s=a?Ue:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(s,{...i,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Ga(e,t){e&&Wn.flushSync(()=>e.dispatchEvent(t))}function oh(e,t=globalThis==null?void 0:globalThis.document){const n=Re(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 ah="DismissableLayer",Yr="dismissableLayer.update",sh="dismissableLayer.pointerDownOutside",ih="dismissableLayer.focusOutside",Ha,za=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ft=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...c}=e,u=l.useContext(za),[f,m]=l.useState(null),h=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=l.useState({}),b=J(t,P=>m(P)),p=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),w=p.indexOf(v),y=f?p.indexOf(f):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,S=y>=w,E=uh(P=>{const O=P.target,B=[...u.branches].some(L=>L.contains(O));!S||B||(o==null||o(P),i==null||i(P),P.defaultPrevented||s==null||s())},h),D=dh(P=>{const O=P.target;[...u.branches].some(L=>L.contains(O))||(a==null||a(P),i==null||i(P),P.defaultPrevented||s==null||s())},h);return oh(P=>{y===u.layers.size-1&&(r==null||r(P),!P.defaultPrevented&&s&&(P.preventDefault(),s()))},h),l.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Ha=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Ua(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Ha)}},[f,h,n,u]),l.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Ua())},[f,u]),l.useEffect(()=>{const P=()=>g({});return document.addEventListener(Yr,P),()=>document.removeEventListener(Yr,P)},[]),d.jsx(W.div,{...c,ref:b,style:{pointerEvents:C?S?"auto":"none":void 0,...e.style},onFocusCapture:A(e.onFocusCapture,D.onFocusCapture),onBlurCapture:A(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:A(e.onPointerDownCapture,E.onPointerDownCapture)})});Ft.displayName=ah;var ch="DismissableLayerBranch",lh=l.forwardRef((e,t)=>{const n=l.useContext(za),r=l.useRef(null),o=J(t,r);return l.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),d.jsx(W.div,{...e,ref:o})});lh.displayName=ch;function uh(e,t=globalThis==null?void 0:globalThis.document){const n=Re(e),r=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let c=function(){qa(sh,n,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function dh(e,t=globalThis==null?void 0:globalThis.document){const n=Re(e),r=l.useRef(!1);return l.useEffect(()=>{const o=a=>{a.target&&!r.current&&qa(ih,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 Ua(){const e=new CustomEvent(Yr);document.dispatchEvent(e)}function qa(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?Ga(o,a):o.dispatchEvent(a)}var Gr="focusScope.autoFocusOnMount",Hr="focusScope.autoFocusOnUnmount",Ka={bubbles:!1,cancelable:!0},fh="FocusScope",un=l.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,c]=l.useState(null),u=Re(o),f=Re(a),m=l.useRef(null),h=J(t,p=>c(p)),g=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let p=function(C){if(g.paused||!s)return;const S=C.target;s.contains(S)?m.current=S:gt(m.current,{select:!0})},v=function(C){if(g.paused||!s)return;const S=C.relatedTarget;S!==null&&(s.contains(S)||gt(m.current,{select:!0}))},w=function(C){if(document.activeElement===document.body)for(const E of C)E.removedNodes.length>0&>(s)};document.addEventListener("focusin",p),document.addEventListener("focusout",v);const y=new MutationObserver(w);return s&&y.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",v),y.disconnect()}}},[r,s,g.paused]),l.useEffect(()=>{if(s){Za.add(g);const p=document.activeElement;if(!s.contains(p)){const w=new CustomEvent(Gr,Ka);s.addEventListener(Gr,u),s.dispatchEvent(w),w.defaultPrevented||(mh(yh(Xa(s)),{select:!0}),document.activeElement===p&>(s))}return()=>{s.removeEventListener(Gr,u),setTimeout(()=>{const w=new CustomEvent(Hr,Ka);s.addEventListener(Hr,f),s.dispatchEvent(w),w.defaultPrevented||gt(p??document.body,{select:!0}),s.removeEventListener(Hr,f),Za.remove(g)},0)}}},[s,u,f,g]);const b=l.useCallback(p=>{if(!n&&!r||g.paused)return;const v=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,w=document.activeElement;if(v&&w){const y=p.currentTarget,[C,S]=hh(y);C&&S?!p.shiftKey&&w===S?(p.preventDefault(),n&>(C,{select:!0})):p.shiftKey&&w===C&&(p.preventDefault(),n&>(S,{select:!0})):w===y&&p.preventDefault()}},[n,r,g.paused]);return d.jsx(W.div,{tabIndex:-1,...i,ref:h,onKeyDown:b})});un.displayName=fh;function mh(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(gt(r,{select:t}),document.activeElement!==n)return}function hh(e){const t=Xa(e),n=Qa(t,e),r=Qa(t.reverse(),e);return[n,r]}function Xa(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 Qa(e,t){for(const n of e)if(!ph(n,{upTo:t}))return n}function ph(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 gh(e){return e instanceof HTMLInputElement&&"select"in e}function gt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&gh(e)&&t&&e.select()}}var Za=vh();function vh(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Ja(e,t),e.unshift(t)},remove(t){var n;e=Ja(e,t),(n=e[0])==null||n.resume()}}}function Ja(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function yh(e){return e.filter(t=>t.tagName!=="A")}var bh="Portal",dn=l.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[o,a]=l.useState(!1);Se(()=>a(!0),[]);const i=n||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return i?Pa.createPortal(d.jsx(W.div,{...r,ref:t}),i):null});dn.displayName=bh;function wh(e,t){return l.useReducer((n,r)=>t[n][r]??n,e)}var Te=e=>{const{present:t,children:n}=e,r=xh(t),o=typeof n=="function"?n({present:r.isPresent}):l.Children.only(n),a=J(r.ref,Ch(o));return typeof n=="function"||r.isPresent?l.cloneElement(o,{ref:a}):null};Te.displayName="Presence";function xh(e){const[t,n]=l.useState(),r=l.useRef({}),o=l.useRef(e),a=l.useRef("none"),i=e?"mounted":"unmounted",[s,c]=wh(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const u=Yn(r.current);a.current=s==="mounted"?u:"none"},[s]),Se(()=>{const u=r.current,f=o.current;if(f!==e){const h=a.current,g=Yn(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]),Se(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,m=g=>{const p=Yn(r.current).includes(g.animationName);if(g.target===t&&p&&(c("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=g=>{g.target===t&&(a.current=Yn(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:l.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Yn(e){return(e==null?void 0:e.animationName)||"none"}function Ch(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 zr=0;function Gn(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??es()),document.body.insertAdjacentElement("beforeend",e[1]??es()),zr++,()=>{zr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),zr--}},[])}function es(){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 qe=function(){return qe=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},qe.apply(this,arguments)};function ts(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 Sh(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 Hn="right-scroll-bar-position",zn="width-before-scroll-bar",Mh="with-scroll-bars-hidden",Nh="--removed-body-scroll-bar-size";function Ur(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Eh(e,t){var n=M.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 Ph=typeof window<"u"?l.useLayoutEffect:l.useEffect,ns=new WeakMap;function Dh(e,t){var n=Eh(null,function(r){return e.forEach(function(o){return Ur(o,r)})});return Ph(function(){var r=ns.get(n);if(r){var o=new Set(r),a=new Set(e),i=n.current;o.forEach(function(s){a.has(s)||Ur(s,null)}),a.forEach(function(s){o.has(s)||Ur(s,i)})}ns.set(n,e)},[e]),n}function kh(e){return e}function Th(e,t){t===void 0&&(t=kh);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 i=t(a,r);return n.push(i),function(){n=n.filter(function(s){return s!==i})}},assignSyncMedium:function(a){for(r=!0;n.length;){var i=n;n=[],i.forEach(a)}n={push:function(s){return a(s)},filter:function(){return n}}},assignMedium:function(a){r=!0;var i=[];if(n.length){var s=n;n=[],s.forEach(a),i=n}var c=function(){var f=i;i=[],f.forEach(a)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(f){i.push(f),u()},filter:function(f){return i=i.filter(f),n}}}};return o}function Oh(e){e===void 0&&(e={});var t=Th(null);return t.options=qe({async:!0,ssr:!1},e),t}var rs=function(e){var t=e.sideCar,n=ts(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,qe({},n))};rs.isSideCarExport=!0;function Ah(e,t){return e.useMedium(t),rs}var os=Oh(),qr=function(){},Un=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:qr,onWheelCapture:qr,onTouchMoveCapture:qr}),o=r[0],a=r[1],i=e.forwardProps,s=e.children,c=e.className,u=e.removeScrollBar,f=e.enabled,m=e.shards,h=e.sideCar,g=e.noIsolation,b=e.inert,p=e.allowPinchZoom,v=e.as,w=v===void 0?"div":v,y=e.gapMode,C=ts(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=h,E=Dh([n,t]),D=qe(qe({},C),o);return l.createElement(l.Fragment,null,f&&l.createElement(S,{sideCar:os,removeScrollBar:u,shards:m,noIsolation:g,inert:b,setCallbacks:a,allowPinchZoom:!!p,lockRef:n,gapMode:y}),i?l.cloneElement(l.Children.only(s),qe(qe({},D),{ref:E})):l.createElement(w,qe({},D,{className:c,ref:E}),s))});Un.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Un.classNames={fullWidth:zn,zeroRight:Hn};var Rh=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function _h(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Rh();return t&&e.setAttribute("nonce",t),e}function Ih(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function jh(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Fh=function(){var e=0,t=null;return{add:function(n){e==0&&(t=_h())&&(Ih(t,n),jh(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Wh=function(){var e=Fh();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},as=function(){var e=Wh(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},$h={left:0,top:0,right:0,gap:0},Kr=function(e){return parseInt(e||"",10)||0},Lh=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[Kr(n),Kr(r),Kr(o)]},Bh=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return $h;var t=Lh(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])}},Vh=as(),Wt="data-scroll-locked",Yh=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),`
|
|
32
|
+
.`.concat(Mh,` {
|
|
33
33
|
overflow: hidden `).concat(r,`;
|
|
34
|
-
padding-right: `).concat(
|
|
34
|
+
padding-right: `).concat(s,"px ").concat(r,`;
|
|
35
35
|
}
|
|
36
|
-
body[`).concat(
|
|
36
|
+
body[`).concat(Wt,`] {
|
|
37
37
|
overflow: hidden `).concat(r,`;
|
|
38
38
|
overscroll-behavior: contain;
|
|
39
39
|
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
40
40
|
padding-left: `.concat(o,`px;
|
|
41
41
|
padding-top: `).concat(a,`px;
|
|
42
|
-
padding-right: `).concat(
|
|
42
|
+
padding-right: `).concat(i,`px;
|
|
43
43
|
margin-left:0;
|
|
44
44
|
margin-top:0;
|
|
45
|
-
margin-right: `).concat(
|
|
46
|
-
`),n==="padding"&&"padding-right: ".concat(
|
|
45
|
+
margin-right: `).concat(s,"px ").concat(r,`;
|
|
46
|
+
`),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
.`).concat(
|
|
50
|
-
right: `).concat(
|
|
49
|
+
.`).concat(Hn,` {
|
|
50
|
+
right: `).concat(s,"px ").concat(r,`;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
.`).concat(
|
|
54
|
-
margin-right: `).concat(
|
|
53
|
+
.`).concat(zn,` {
|
|
54
|
+
margin-right: `).concat(s,"px ").concat(r,`;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
.`).concat(
|
|
57
|
+
.`).concat(Hn," .").concat(Hn,` {
|
|
58
58
|
right: 0 `).concat(r,`;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
.`).concat(
|
|
61
|
+
.`).concat(zn," .").concat(zn,` {
|
|
62
62
|
margin-right: 0 `).concat(r,`;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
body[`).concat(
|
|
66
|
-
`).concat(
|
|
65
|
+
body[`).concat(Wt,`] {
|
|
66
|
+
`).concat(Nh,": ").concat(s,`px;
|
|
67
67
|
}
|
|
68
|
-
`)},
|
|
68
|
+
`)},ss=function(){var e=parseInt(document.body.getAttribute(Wt)||"0",10);return isFinite(e)?e:0},Gh=function(){l.useEffect(function(){return document.body.setAttribute(Wt,(ss()+1).toString()),function(){var e=ss()-1;e<=0?document.body.removeAttribute(Wt):document.body.setAttribute(Wt,e.toString())}},[])},Hh=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Gh();var a=l.useMemo(function(){return Bh(o)},[o]);return l.createElement(Vh,{styles:Yh(a,!t,o,n?"":"!important")})},Xr=!1;if(typeof window<"u")try{var qn=Object.defineProperty({},"passive",{get:function(){return Xr=!0,!0}});window.addEventListener("test",qn,qn),window.removeEventListener("test",qn,qn)}catch{Xr=!1}var $t=Xr?{passive:!1}:!1,zh=function(e){return e.tagName==="TEXTAREA"},is=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!zh(e)&&n[t]==="visible")},Uh=function(e){return is(e,"overflowY")},qh=function(e){return is(e,"overflowX")},cs=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=ls(e,r);if(o){var a=us(e,r),i=a[1],s=a[2];if(i>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Kh=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Xh=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ls=function(e,t){return e==="v"?Uh(t):qh(t)},us=function(e,t){return e==="v"?Kh(t):Xh(t)},Qh=function(e,t){return e==="h"&&t==="rtl"?-1:1},Zh=function(e,t,n,r,o){var a=Qh(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,c=t.contains(s),u=!1,f=i>0,m=0,h=0;do{var g=us(e,s),b=g[0],p=g[1],v=g[2],w=p-v-a*b;(b||w)&&ls(e,s)&&(m+=w,h+=b),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(f&&(Math.abs(m)<1||!o)||!f&&(Math.abs(h)<1||!o))&&(u=!0),u},Kn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ds=function(e){return[e.deltaX,e.deltaY]},fs=function(e){return e&&"current"in e?e.current:e},Jh=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ep=function(e){return`
|
|
69
69
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
70
70
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
71
|
-
`)},
|
|
71
|
+
`)},tp=0,Lt=[];function np(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState(tp++)[0],a=l.useState(as)[0],i=l.useRef(e);l.useEffect(function(){i.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=Sh([e.lockRef.current],(e.shards||[]).map(fs),!0).filter(Boolean);return p.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=l.useCallback(function(p,v){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!i.current.allowPinchZoom;var w=Kn(p),y=n.current,C="deltaX"in p?p.deltaX:y[0]-w[0],S="deltaY"in p?p.deltaY:y[1]-w[1],E,D=p.target,P=Math.abs(C)>Math.abs(S)?"h":"v";if("touches"in p&&P==="h"&&D.type==="range")return!1;var O=cs(P,D);if(!O)return!0;if(O?E=P:(E=P==="v"?"h":"v",O=cs(P,D)),!O)return!1;if(!r.current&&"changedTouches"in p&&(C||S)&&(r.current=E),!E)return!0;var B=r.current||E;return Zh(B,v,p,B==="h"?C:S,!0)},[]),c=l.useCallback(function(p){var v=p;if(!(!Lt.length||Lt[Lt.length-1]!==a)){var w="deltaY"in v?ds(v):Kn(v),y=t.current.filter(function(E){return E.name===v.type&&(E.target===v.target||v.target===E.shadowParent)&&Jh(E.delta,w)})[0];if(y&&y.should){v.cancelable&&v.preventDefault();return}if(!y){var C=(i.current.shards||[]).map(fs).filter(Boolean).filter(function(E){return E.contains(v.target)}),S=C.length>0?s(v,C[0]):!i.current.noIsolation;S&&v.cancelable&&v.preventDefault()}}},[]),u=l.useCallback(function(p,v,w,y){var C={name:p,delta:v,target:w,should:y,shadowParent:rp(w)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(S){return S!==C})},1)},[]),f=l.useCallback(function(p){n.current=Kn(p),r.current=void 0},[]),m=l.useCallback(function(p){u(p.type,ds(p),p.target,s(p,e.lockRef.current))},[]),h=l.useCallback(function(p){u(p.type,Kn(p),p.target,s(p,e.lockRef.current))},[]);l.useEffect(function(){return Lt.push(a),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:h}),document.addEventListener("wheel",c,$t),document.addEventListener("touchmove",c,$t),document.addEventListener("touchstart",f,$t),function(){Lt=Lt.filter(function(p){return p!==a}),document.removeEventListener("wheel",c,$t),document.removeEventListener("touchmove",c,$t),document.removeEventListener("touchstart",f,$t)}},[]);var g=e.removeScrollBar,b=e.inert;return l.createElement(l.Fragment,null,b?l.createElement(a,{styles:ep(o)}):null,g?l.createElement(Hh,{gapMode:e.gapMode}):null)}function rp(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const op=Ah(os,np);var fn=l.forwardRef(function(e,t){return l.createElement(Un,qe({},e,{ref:t,sideCar:op}))});fn.classNames=Un.classNames;var ap=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Bt=new WeakMap,Xn=new WeakMap,Qn={},Qr=0,ms=function(e){return e&&(e.host||ms(e.parentNode))},sp=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=ms(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})},ip=function(e,t,n,r){var o=sp(t,Array.isArray(e)?e:[e]);Qn[n]||(Qn[n]=new WeakMap);var a=Qn[n],i=[],s=new Set,c=new Set(o),u=function(m){!m||s.has(m)||(s.add(m),u(m.parentNode))};o.forEach(u);var f=function(m){!m||c.has(m)||Array.prototype.forEach.call(m.children,function(h){if(s.has(h))f(h);else try{var g=h.getAttribute(r),b=g!==null&&g!=="false",p=(Bt.get(h)||0)+1,v=(a.get(h)||0)+1;Bt.set(h,p),a.set(h,v),i.push(h),p===1&&b&&Xn.set(h,!0),v===1&&h.setAttribute(n,"true"),b||h.setAttribute(r,"true")}catch(w){console.error("aria-hidden: cannot operate on ",h,w)}})};return f(t),s.clear(),Qr++,function(){i.forEach(function(m){var h=Bt.get(m)-1,g=a.get(m)-1;Bt.set(m,h),a.set(m,g),h||(Xn.has(m)||m.removeAttribute(r),Xn.delete(m)),g||m.removeAttribute(n)}),Qr--,Qr||(Bt=new WeakMap,Bt=new WeakMap,Xn=new WeakMap,Qn={})}},Zn=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=ap(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),ip(r,o,n,"aria-hidden")):function(){return null}},Zr="Dialog",[hs,ps]=ye(Zr),[cp,We]=hs(Zr),gs=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=l.useRef(null),c=l.useRef(null),[u=!1,f]=ke({prop:r,defaultProp:o,onChange:a});return d.jsx(cp,{scope:t,triggerRef:s,contentRef:c,contentId:Ae(),titleId:Ae(),descriptionId:Ae(),open:u,onOpenChange:f,onOpenToggle:l.useCallback(()=>f(m=>!m),[f]),modal:i,children:n})};gs.displayName=Zr;var vs="DialogTrigger",ys=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=We(vs,n),a=J(t,o.triggerRef);return d.jsx(W.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":to(o.open),...r,ref:a,onClick:A(e.onClick,o.onOpenToggle)})});ys.displayName=vs;var Jr="DialogPortal",[lp,bs]=hs(Jr,{forceMount:void 0}),ws=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=We(Jr,t);return d.jsx(lp,{scope:t,forceMount:n,children:l.Children.map(r,i=>d.jsx(Te,{present:n||a.open,children:d.jsx(dn,{asChild:!0,container:o,children:i})}))})};ws.displayName=Jr;var Jn="DialogOverlay",xs=l.forwardRef((e,t)=>{const n=bs(Jn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=We(Jn,e.__scopeDialog);return a.modal?d.jsx(Te,{present:r||a.open,children:d.jsx(up,{...o,ref:t})}):null});xs.displayName=Jn;var up=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=We(Jn,n);return d.jsx(fn,{as:Ue,allowPinchZoom:!0,shards:[o.contentRef],children:d.jsx(W.div,{"data-state":to(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),kt="DialogContent",Cs=l.forwardRef((e,t)=>{const n=bs(kt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=We(kt,e.__scopeDialog);return d.jsx(Te,{present:r||a.open,children:a.modal?d.jsx(dp,{...o,ref:t}):d.jsx(fp,{...o,ref:t})})});Cs.displayName=kt;var dp=l.forwardRef((e,t)=>{const n=We(kt,e.__scopeDialog),r=l.useRef(null),o=J(t,n.contentRef,r);return l.useEffect(()=>{const a=r.current;if(a)return Zn(a)},[]),d.jsx(Ss,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:A(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:A(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:A(e.onFocusOutside,a=>a.preventDefault())})}),fp=l.forwardRef((e,t)=>{const n=We(kt,e.__scopeDialog),r=l.useRef(!1),o=l.useRef(!1);return d.jsx(Ss,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,s;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.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 i=a.target;((u=n.triggerRef.current)==null?void 0:u.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Ss=l.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=We(kt,n),c=l.useRef(null),u=J(t,c);return Gn(),d.jsxs(d.Fragment,{children:[d.jsx(un,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:d.jsx(Ft,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":to(s.open),...i,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(hp,{titleId:s.titleId}),d.jsx(gp,{contentRef:c,descriptionId:s.descriptionId})]})]})}),eo="DialogTitle",Ms=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=We(eo,n);return d.jsx(W.h2,{id:o.titleId,...r,ref:t})});Ms.displayName=eo;var Ns="DialogDescription",Es=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=We(Ns,n);return d.jsx(W.p,{id:o.descriptionId,...r,ref:t})});Es.displayName=Ns;var Ps="DialogClose",Ds=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=We(Ps,n);return d.jsx(W.button,{type:"button",...r,ref:t,onClick:A(e.onClick,()=>o.onOpenChange(!1))})});Ds.displayName=Ps;function to(e){return e?"open":"closed"}var ks="DialogTitleWarning",[mp,Ts]=Km(ks,{contentName:kt,titleName:eo,docsSlug:"dialog"}),hp=({titleId:e})=>{const t=Ts(ks),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
72
72
|
|
|
73
73
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
74
74
|
|
|
75
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return
|
|
75
|
+
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},pp="DialogDescriptionWarning",gp=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ts(pp).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},Os=gs,As=ys,Rs=ws,no=xs,ro=Cs,oo=Ms,ao=Es,er=Ds,_s="AlertDialog",[vp,kM]=ye(_s,[ps]),ot=ps(),Is=e=>{const{__scopeAlertDialog:t,...n}=e,r=ot(t);return d.jsx(Os,{...r,...n,modal:!0})};Is.displayName=_s;var yp="AlertDialogTrigger",js=l.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=ot(n);return d.jsx(As,{...o,...r,ref:t})});js.displayName=yp;var bp="AlertDialogPortal",Fs=e=>{const{__scopeAlertDialog:t,...n}=e,r=ot(t);return d.jsx(Rs,{...r,...n})};Fs.displayName=bp;var wp="AlertDialogOverlay",Ws=l.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=ot(n);return d.jsx(no,{...o,...r,ref:t})});Ws.displayName=wp;var Vt="AlertDialogContent",[xp,Cp]=vp(Vt),$s=l.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,a=ot(n),i=l.useRef(null),s=J(t,i),c=l.useRef(null);return d.jsx(mp,{contentName:Vt,titleName:Ls,docsSlug:"alert-dialog",children:d.jsx(xp,{scope:n,cancelRef:c,children:d.jsxs(ro,{role:"alertdialog",...a,...o,ref:s,onOpenAutoFocus:A(o.onOpenAutoFocus,u=>{var f;u.preventDefault(),(f=c.current)==null||f.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[d.jsx(Vr,{children:r}),d.jsx(Mp,{contentRef:i})]})})})});$s.displayName=Vt;var Ls="AlertDialogTitle",Bs=l.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=ot(n);return d.jsx(oo,{...o,...r,ref:t})});Bs.displayName=Ls;var Vs="AlertDialogDescription",Ys=l.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=ot(n);return d.jsx(ao,{...o,...r,ref:t})});Ys.displayName=Vs;var Sp="AlertDialogAction",Gs=l.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=ot(n);return d.jsx(er,{...o,...r,ref:t})});Gs.displayName=Sp;var Hs="AlertDialogCancel",zs=l.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=Cp(Hs,n),a=ot(n),i=J(t,o);return d.jsx(er,{...a,...r,ref:i})});zs.displayName=Hs;var Mp=({contentRef:e})=>{const t=`\`${Vt}\` requires a description for the component to be accessible for screen reader users.
|
|
76
76
|
|
|
77
|
-
You can add a description to the \`${
|
|
77
|
+
You can add a description to the \`${Vt}\` by passing a \`${Vs}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
78
78
|
|
|
79
|
-
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${
|
|
79
|
+
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Vt}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
80
80
|
|
|
81
|
-
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return
|
|
81
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return l.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},Np=Is,Ep=js,Pp=Fs,Us=Ws,qs=$s,Ks=Gs,Xs=zs,Qs=Bs,Zs=Ys;const mn=ln("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",xl:"h-12 rounded-md px-10 text-xl",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Ke=l.forwardRef(({className:e,variant:t,size:n,isLoading:r=!1,asChild:o=!1,...a},i)=>{const s=o?Ue:"button";return d.jsxs(s,{className:k(mn({variant:t,size:n,className:e})),ref:i,...a,disabled:r||a.disabled,children:[r&&d.jsxs("svg",{className:"animate-spin -ml-1 h-5 w-5",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[d.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),d.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),a.children]})});Ke.displayName="Button";const Dp=Np,kp=Ep,Js=Pp,so=l.forwardRef(({className:e,...t},n)=>d.jsx(Us,{className:k("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));so.displayName=Us.displayName;const ei=l.forwardRef(({className:e,...t},n)=>d.jsxs(Js,{children:[d.jsx(so,{}),d.jsx(qs,{ref:n,className:k("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));ei.displayName=qs.displayName;const ti=({className:e,...t})=>d.jsx("div",{className:k("flex flex-col space-y-2 text-center sm:text-left",e),...t});ti.displayName="AlertDialogHeader";const ni=({className:e,...t})=>d.jsx("div",{className:k("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ni.displayName="AlertDialogFooter";const ri=l.forwardRef(({className:e,...t},n)=>d.jsx(Qs,{ref:n,className:k("text-lg font-semibold",e),...t}));ri.displayName=Qs.displayName;const oi=l.forwardRef(({className:e,...t},n)=>d.jsx(Zs,{ref:n,className:k("text-sm text-muted-foreground",e),...t}));oi.displayName=Zs.displayName;const ai=l.forwardRef(({className:e,...t},n)=>d.jsx(Ks,{ref:n,className:k(mn(),e),...t}));ai.displayName=Ks.displayName;const si=l.forwardRef(({className:e,...t},n)=>d.jsx(Xs,{ref:n,className:k(mn({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));si.displayName=Xs.displayName;/**
|
|
82
82
|
* @license lucide-react v0.469.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 Tp=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ii=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
|
|
87
87
|
* @license lucide-react v0.469.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
|
-
*/var
|
|
91
|
+
*/var Op={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"};/**
|
|
92
92
|
* @license lucide-react v0.469.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 Ap=M.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:i,...s},c)=>M.createElement("svg",{ref:c,...Op,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:ii("lucide",o),...s},[...i.map(([u,f])=>M.createElement(u,f)),...Array.isArray(a)?a:[a]]));/**
|
|
97
97
|
* @license lucide-react v0.469.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 be=(e,t)=>{const n=M.forwardRef(({className:r,...o},a)=>M.createElement(Ap,{ref:a,iconNode:t,className:ii(`lucide-${Tp(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
|
|
102
102
|
* @license lucide-react v0.469.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 Rp=be("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
|
|
107
107
|
* @license lucide-react v0.469.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 _p=be("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
|
|
112
112
|
* @license lucide-react v0.469.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 io=be("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
117
117
|
* @license lucide-react v0.469.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 ci=be("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
122
122
|
* @license lucide-react v0.469.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 li=be("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
|
127
127
|
* @license lucide-react v0.469.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
|
|
131
|
+
*/const co=be("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
132
132
|
* @license lucide-react v0.469.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
|
|
136
|
+
*/const Ip=be("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
137
137
|
* @license lucide-react v0.469.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
|
|
141
|
+
*/const jp=be("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
|
142
142
|
* @license lucide-react v0.469.0 - ISC
|
|
143
143
|
*
|
|
144
144
|
* This source code is licensed under the ISC license.
|
|
145
145
|
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
-
*/const Xd=Ne("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),qd=["top","right","bottom","left"],Ie=Math.min,ie=Math.max,tn=Math.round,nn=Math.floor,be=e=>({x:e,y:e}),Zd={left:"right",right:"left",bottom:"top",top:"bottom"},Jd={start:"end",end:"start"};function Jn(e,t,n){return ie(e,Ie(t,n))}function Pe(e,t){return typeof e=="function"?e(t):e}function Se(e){return e.split("-")[0]}function st(e){return e.split("-")[1]}function Qn(e){return e==="x"?"y":"x"}function er(e){return e==="y"?"height":"width"}function Le(e){return["top","bottom"].includes(Se(e))?"y":"x"}function tr(e){return Qn(Le(e))}function Qd(e,t,n){n===void 0&&(n=!1);const r=st(e),o=tr(e),a=er(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=rn(s)),[s,rn(s)]}function ef(e){const t=rn(e);return[nr(e),t,nr(t)]}function nr(e){return e.replace(/start|end/g,t=>Jd[t])}function tf(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:s;default:return[]}}function nf(e,t,n,r){const o=st(e);let a=tf(Se(e),n==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(nr)))),a}function rn(e){return e.replace(/left|right|bottom|top/g,t=>Zd[t])}function rf(e){return{top:0,right:0,bottom:0,left:0,...e}}function Fa(e){return typeof e!="number"?rf(e):{top:e,right:e,bottom:e,left:e}}function on(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 Wa(e,t,n){let{reference:r,floating:o}=e;const a=Le(t),s=tr(t),i=er(s),d=Se(t),u=a==="y",f=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,m=r[i]/2-o[i]/2;let v;switch(d){case"top":v={x:f,y:r.y-o.height};break;case"bottom":v={x:f,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:p};break;case"left":v={x:r.x-o.width,y:p};break;default:v={x:r.x,y:r.y}}switch(st(t)){case"start":v[s]-=m*(n&&u?-1:1);break;case"end":v[s]+=m*(n&&u?-1:1);break}return v}const of=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,i=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=Wa(u,r,d),m=r,v={},b=0;for(let g=0;g<i.length;g++){const{name:x,fn:y}=i[g],{x:w,y:A,data:C,reset:R}=await y({x:f,y:p,initialPlacement:r,placement:m,strategy:o,middlewareData:v,rects:u,platform:s,elements:{reference:e,floating:t}});f=w??f,p=A??p,v={...v,[x]:{...v[x],...C}},R&&b<=50&&(b++,typeof R=="object"&&(R.placement&&(m=R.placement),R.rects&&(u=R.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):R.rects),{x:f,y:p}=Wa(u,m,d)),g=-1)}return{x:f,y:p,placement:m,strategy:o,middlewareData:v}};async function Et(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:s,elements:i,strategy:d}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:m=!1,padding:v=0}=Pe(t,e),b=Fa(v),x=i[m?p==="floating"?"reference":"floating":p],y=on(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:f,strategy:d})),w=p==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,A=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),C=await(a.isElement==null?void 0:a.isElement(A))?await(a.getScale==null?void 0:a.getScale(A))||{x:1,y:1}:{x:1,y:1},R=on(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:w,offsetParent:A,strategy:d}):w);return{top:(y.top-R.top+b.top)/C.y,bottom:(R.bottom-y.bottom+b.bottom)/C.y,left:(y.left-R.left+b.left)/C.x,right:(R.right-y.right+b.right)/C.x}}const af=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:i,middlewareData:d}=t,{element:u,padding:f=0}=Pe(e,t)||{};if(u==null)return{};const p=Fa(f),m={x:n,y:r},v=tr(o),b=er(v),g=await s.getDimensions(u),x=v==="y",y=x?"top":"left",w=x?"bottom":"right",A=x?"clientHeight":"clientWidth",C=a.reference[b]+a.reference[v]-m[v]-a.floating[b],R=m[v]-a.reference[v],_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let S=_?_[A]:0;(!S||!await(s.isElement==null?void 0:s.isElement(_)))&&(S=i.floating[A]||a.floating[b]);const O=C/2-R/2,G=S/2-g[b]/2-1,W=Ie(p[y],G),K=Ie(p[w],G),k=W,H=S-g[b]-K,z=S/2-g[b]/2+O,J=Jn(k,z,H),B=!d.arrow&&st(o)!=null&&z!==J&&a.reference[b]/2-(z<k?W:K)-g[b]/2<0,X=B?z<k?z-k:z-H:0;return{[v]:m[v]+X,data:{[v]:J,centerOffset:z-J-X,...B&&{alignmentOffset:X}},reset:B}}}),sf=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:d,elements:u}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:g=!0,...x}=Pe(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=Se(o),w=Le(i),A=Se(i)===i,C=await(d.isRTL==null?void 0:d.isRTL(u.floating)),R=m||(A||!g?[rn(i)]:ef(i)),_=b!=="none";!m&&_&&R.push(...nf(i,g,b,C));const S=[i,...R],O=await Et(t,x),G=[];let W=((r=a.flip)==null?void 0:r.overflows)||[];if(f&&G.push(O[y]),p){const z=Qd(o,s,C);G.push(O[z[0]],O[z[1]])}if(W=[...W,{placement:o,overflows:G}],!G.every(z=>z<=0)){var K,k;const z=(((K=a.flip)==null?void 0:K.index)||0)+1,J=S[z];if(J)return{data:{index:z,overflows:W},reset:{placement:J}};let B=(k=W.filter(X=>X.overflows[0]<=0).sort((X,j)=>X.overflows[1]-j.overflows[1])[0])==null?void 0:k.placement;if(!B)switch(v){case"bestFit":{var H;const X=(H=W.filter(j=>{if(_){const N=Le(j.placement);return N===w||N==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(N=>N>0).reduce((N,Y)=>N+Y,0)]).sort((j,N)=>j[1]-N[1])[0])==null?void 0:H[0];X&&(B=X);break}case"initialPlacement":B=i;break}if(o!==B)return{reset:{placement:B}}}return{}}}};function Ba(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function za(e){return qd.some(t=>e[t]>=0)}const cf=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Pe(e,t);switch(r){case"referenceHidden":{const a=await Et(t,{...o,elementContext:"reference"}),s=Ba(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:za(s)}}}case"escaped":{const a=await Et(t,{...o,altBoundary:!0}),s=Ba(a,n.floating);return{data:{escapedOffsets:s,escaped:za(s)}}}default:return{}}}}};async function lf(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Se(n),i=st(n),d=Le(n)==="y",u=["left","top"].includes(s)?-1:1,f=a&&d?-1:1,p=Pe(t,e);let{mainAxis:m,crossAxis:v,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return i&&typeof b=="number"&&(v=i==="end"?b*-1:b),d?{x:v*f,y:m*u}:{x:m*u,y:v*f}}const uf=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,d=await lf(t,e);return s===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:a+d.y,data:{...d,placement:s}}}}},df=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:w}=x;return{x:y,y:w}}},...d}=Pe(e,t),u={x:n,y:r},f=await Et(t,d),p=Le(Se(o)),m=Qn(p);let v=u[m],b=u[p];if(a){const x=m==="y"?"top":"left",y=m==="y"?"bottom":"right",w=v+f[x],A=v-f[y];v=Jn(w,v,A)}if(s){const x=p==="y"?"top":"left",y=p==="y"?"bottom":"right",w=b+f[x],A=b-f[y];b=Jn(w,b,A)}const g=i.fn({...t,[m]:v,[p]:b});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[m]:a,[p]:s}}}}}},ff=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:d=!0,crossAxis:u=!0}=Pe(e,t),f={x:n,y:r},p=Le(o),m=Qn(p);let v=f[m],b=f[p];const g=Pe(i,t),x=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(d){const A=m==="y"?"height":"width",C=a.reference[m]-a.floating[A]+x.mainAxis,R=a.reference[m]+a.reference[A]-x.mainAxis;v<C?v=C:v>R&&(v=R)}if(u){var y,w;const A=m==="y"?"width":"height",C=["top","left"].includes(Se(o)),R=a.reference[p]-a.floating[A]+(C&&((y=s.offset)==null?void 0:y[p])||0)+(C?0:x.crossAxis),_=a.reference[p]+a.reference[A]+(C?0:((w=s.offset)==null?void 0:w[p])||0)-(C?x.crossAxis:0);b<R?b=R:b>_&&(b=_)}return{[m]:v,[p]:b}}}},pf=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:d=()=>{},...u}=Pe(e,t),f=await Et(t,u),p=Se(o),m=st(o),v=Le(o)==="y",{width:b,height:g}=a.floating;let x,y;p==="top"||p==="bottom"?(x=p,y=m===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(y=p,x=m==="end"?"top":"bottom");const w=g-f.top-f.bottom,A=b-f.left-f.right,C=Ie(g-f[x],w),R=Ie(b-f[y],A),_=!t.middlewareData.shift;let S=C,O=R;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=A),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(S=w),_&&!m){const W=ie(f.left,0),K=ie(f.right,0),k=ie(f.top,0),H=ie(f.bottom,0);v?O=b-2*(W!==0||K!==0?W+K:ie(f.left,f.right)):S=g-2*(k!==0||H!==0?k+H:ie(f.top,f.bottom))}await d({...t,availableWidth:O,availableHeight:S});const G=await s.getDimensions(i.floating);return b!==G.width||g!==G.height?{reset:{rects:!0}}:{}}}};function an(){return typeof window<"u"}function it(e){return Ga(e)?(e.nodeName||"").toLowerCase():"#document"}function ce(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ye(e){var t;return(t=(Ga(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ga(e){return an()?e instanceof Node||e instanceof ce(e).Node:!1}function me(e){return an()?e instanceof Element||e instanceof ce(e).Element:!1}function xe(e){return an()?e instanceof HTMLElement||e instanceof ce(e).HTMLElement:!1}function Va(e){return!an()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ce(e).ShadowRoot}function Rt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ge(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function mf(e){return["table","td","th"].includes(it(e))}function sn(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function rr(e){const t=or(),n=me(e)?ge(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function gf(e){let t=$e(e);for(;xe(t)&&!ct(t);){if(rr(t))return t;if(sn(t))return null;t=$e(t)}return null}function or(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ct(e){return["html","body","#document"].includes(it(e))}function ge(e){return ce(e).getComputedStyle(e)}function cn(e){return me(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $e(e){if(it(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Va(e)&&e.host||ye(e);return Va(t)?t.host:t}function Ha(e){const t=$e(e);return ct(t)?e.ownerDocument?e.ownerDocument.body:e.body:xe(t)&&Rt(t)?t:Ha(t)}function At(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ha(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),s=ce(o);if(a){const i=ar(s);return t.concat(s,s.visualViewport||[],Rt(o)?o:[],i&&n?At(i):[])}return t.concat(o,At(o,[],n))}function ar(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ua(e){const t=ge(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=xe(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:r,i=tn(n)!==a||tn(r)!==s;return i&&(n=a,r=s),{width:n,height:r,$:i}}function sr(e){return me(e)?e:e.contextElement}function lt(e){const t=sr(e);if(!xe(t))return be(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Ua(t);let s=(a?tn(n.width):n.width)/r,i=(a?tn(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const hf=be(0);function Ka(e){const t=ce(e);return!or()||!t.visualViewport?hf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function vf(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ce(e)?!1:t}function Ke(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=sr(e);let s=be(1);t&&(r?me(r)&&(s=lt(r)):s=lt(e));const i=vf(a,n,r)?Ka(a):be(0);let d=(o.left+i.x)/s.x,u=(o.top+i.y)/s.y,f=o.width/s.x,p=o.height/s.y;if(a){const m=ce(a),v=r&&me(r)?ce(r):r;let b=m,g=ar(b);for(;g&&r&&v!==b;){const x=lt(g),y=g.getBoundingClientRect(),w=ge(g),A=y.left+(g.clientLeft+parseFloat(w.paddingLeft))*x.x,C=y.top+(g.clientTop+parseFloat(w.paddingTop))*x.y;d*=x.x,u*=x.y,f*=x.x,p*=x.y,d+=A,u+=C,b=ce(g),g=ar(b)}}return on({width:f,height:p,x:d,y:u})}function ir(e,t){const n=cn(e).scrollLeft;return t?t.left+n:Ke(ye(e)).left+n}function Ya(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:ir(e,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function bf(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",s=ye(r),i=t?sn(t.floating):!1;if(r===s||i&&a)return n;let d={scrollLeft:0,scrollTop:0},u=be(1);const f=be(0),p=xe(r);if((p||!p&&!a)&&((it(r)!=="body"||Rt(s))&&(d=cn(r)),xe(r))){const v=Ke(r);u=lt(r),f.x=v.x+r.clientLeft,f.y=v.y+r.clientTop}const m=s&&!p&&!a?Ya(s,d,!0):be(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-d.scrollLeft*u.x+f.x+m.x,y:n.y*u.y-d.scrollTop*u.y+f.y+m.y}}function yf(e){return Array.from(e.getClientRects())}function xf(e){const t=ye(e),n=cn(e),r=e.ownerDocument.body,o=ie(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ie(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+ir(e);const i=-n.scrollTop;return ge(r).direction==="rtl"&&(s+=ie(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:i}}function wf(e,t){const n=ce(e),r=ye(e),o=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,i=0,d=0;if(o){a=o.width,s=o.height;const u=or();(!u||u&&t==="fixed")&&(i=o.offsetLeft,d=o.offsetTop)}return{width:a,height:s,x:i,y:d}}function Cf(e,t){const n=Ke(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=xe(e)?lt(e):be(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,d=o*a.x,u=r*a.y;return{width:s,height:i,x:d,y:u}}function Xa(e,t,n){let r;if(t==="viewport")r=wf(e,n);else if(t==="document")r=xf(ye(e));else if(me(t))r=Cf(t,n);else{const o=Ka(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return on(r)}function qa(e,t){const n=$e(e);return n===t||!me(n)||ct(n)?!1:ge(n).position==="fixed"||qa(n,t)}function Ef(e,t){const n=t.get(e);if(n)return n;let r=At(e,[],!1).filter(i=>me(i)&&it(i)!=="body"),o=null;const a=ge(e).position==="fixed";let s=a?$e(e):e;for(;me(s)&&!ct(s);){const i=ge(s),d=rr(s);!d&&i.position==="fixed"&&(o=null),(a?!d&&!o:!d&&i.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Rt(s)&&!d&&qa(e,s))?r=r.filter(f=>f!==s):o=i,s=$e(s)}return t.set(e,r),r}function Rf(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?sn(t)?[]:Ef(t,this._c):[].concat(n),r],i=s[0],d=s.reduce((u,f)=>{const p=Xa(t,f,o);return u.top=ie(p.top,u.top),u.right=Ie(p.right,u.right),u.bottom=Ie(p.bottom,u.bottom),u.left=ie(p.left,u.left),u},Xa(t,i,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Af(e){const{width:t,height:n}=Ua(e);return{width:t,height:n}}function Nf(e,t,n){const r=xe(t),o=ye(t),a=n==="fixed",s=Ke(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const d=be(0);if(r||!r&&!a)if((it(t)!=="body"||Rt(o))&&(i=cn(t)),r){const m=Ke(t,!0,a,t);d.x=m.x+t.clientLeft,d.y=m.y+t.clientTop}else o&&(d.x=ir(o));const u=o&&!r&&!a?Ya(o,i):be(0),f=s.left+i.scrollLeft-d.x-u.x,p=s.top+i.scrollTop-d.y-u.y;return{x:f,y:p,width:s.width,height:s.height}}function cr(e){return ge(e).position==="static"}function Za(e,t){if(!xe(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 Ja(e,t){const n=ce(e);if(sn(e))return n;if(!xe(e)){let o=$e(e);for(;o&&!ct(o);){if(me(o)&&!cr(o))return o;o=$e(o)}return n}let r=Za(e,t);for(;r&&mf(r)&&cr(r);)r=Za(r,t);return r&&ct(r)&&cr(r)&&!rr(r)?n:r||gf(e)||n}const Pf=async function(e){const t=this.getOffsetParent||Ja,n=this.getDimensions,r=await n(e.floating);return{reference:Nf(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Sf(e){return ge(e).direction==="rtl"}const Tf={convertOffsetParentRelativeRectToViewportRelativeRect:bf,getDocumentElement:ye,getClippingRect:Rf,getOffsetParent:Ja,getElementRects:Pf,getClientRects:yf,getDimensions:Af,getScale:lt,isElement:me,isRTL:Sf};function Mf(e,t){let n=null,r;const o=ye(e);function a(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function s(i,d){i===void 0&&(i=!1),d===void 0&&(d=1),a();const{left:u,top:f,width:p,height:m}=e.getBoundingClientRect();if(i||t(),!p||!m)return;const v=nn(f),b=nn(o.clientWidth-(u+p)),g=nn(o.clientHeight-(f+m)),x=nn(u),w={rootMargin:-v+"px "+-b+"px "+-g+"px "+-x+"px",threshold:ie(0,Ie(1,d))||1};let A=!0;function C(R){const _=R[0].intersectionRatio;if(_!==d){if(!A)return s();_?s(!1,_):r=setTimeout(()=>{s(!1,1e-7)},1e3)}A=!1}try{n=new IntersectionObserver(C,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,w)}n.observe(e)}return s(!0),a}function Df(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:d=!1}=r,u=sr(e),f=o||a?[...u?At(u):[],...At(t)]:[];f.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const p=u&&i?Mf(u,n):null;let m=-1,v=null;s&&(v=new ResizeObserver(y=>{let[w]=y;w&&w.target===u&&v&&(v.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var A;(A=v)==null||A.observe(t)})),n()}),u&&!d&&v.observe(u),v.observe(t));let b,g=d?Ke(e):null;d&&x();function x(){const y=Ke(e);g&&(y.x!==g.x||y.y!==g.y||y.width!==g.width||y.height!==g.height)&&n(),g=y,b=requestAnimationFrame(x)}return n(),()=>{var y;f.forEach(w=>{o&&w.removeEventListener("scroll",n),a&&w.removeEventListener("resize",n)}),p==null||p(),(y=v)==null||y.disconnect(),v=null,d&&cancelAnimationFrame(b)}}const _f=uf,kf=df,Of=sf,jf=pf,If=cf,Qa=af,Lf=ff,$f=(e,t,n)=>{const r=new Map,o={platform:Tf,...n},a={...o.platform,_c:r};return of(e,t,{...o,platform:a})};var ln=typeof document<"u"?I.useLayoutEffect:I.useEffect;function un(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(!un(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)&&!un(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function es(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ts(e,t){const n=es(e);return Math.round(t*n)/n}function lr(e){const t=c.useRef(e);return ln(()=>{t.current=e}),t}function Ff(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:d,open:u}=e,[f,p]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,v]=c.useState(r);un(m,r)||v(r);const[b,g]=c.useState(null),[x,y]=c.useState(null),w=c.useCallback(j=>{j!==_.current&&(_.current=j,g(j))},[]),A=c.useCallback(j=>{j!==S.current&&(S.current=j,y(j))},[]),C=a||b,R=s||x,_=c.useRef(null),S=c.useRef(null),O=c.useRef(f),G=d!=null,W=lr(d),K=lr(o),k=lr(u),H=c.useCallback(()=>{if(!_.current||!S.current)return;const j={placement:t,strategy:n,middleware:m};K.current&&(j.platform=K.current),$f(_.current,S.current,j).then(N=>{const Y={...N,isPositioned:k.current!==!1};z.current&&!un(O.current,Y)&&(O.current=Y,no.flushSync(()=>{p(Y)}))})},[m,t,n,K,k]);ln(()=>{u===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,p(j=>({...j,isPositioned:!1})))},[u]);const z=c.useRef(!1);ln(()=>(z.current=!0,()=>{z.current=!1}),[]),ln(()=>{if(C&&(_.current=C),R&&(S.current=R),C&&R){if(W.current)return W.current(C,R,H);H()}},[C,R,H,W,G]);const J=c.useMemo(()=>({reference:_,floating:S,setReference:w,setFloating:A}),[w,A]),B=c.useMemo(()=>({reference:C,floating:R}),[C,R]),X=c.useMemo(()=>{const j={position:n,left:0,top:0};if(!B.floating)return j;const N=ts(B.floating,f.x),Y=ts(B.floating,f.y);return i?{...j,transform:"translate("+N+"px, "+Y+"px)",...es(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:N,top:Y}},[n,i,B.floating,f.x,f.y]);return c.useMemo(()=>({...f,update:H,refs:J,elements:B,floatingStyles:X}),[f,H,J,B,X])}const Wf=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?Qa({element:r.current,padding:o}).fn(n):{}:r?Qa({element:r,padding:o}).fn(n):{}}}},Bf=(e,t)=>({..._f(e),options:[e,t]}),zf=(e,t)=>({...kf(e),options:[e,t]}),Gf=(e,t)=>({...Lf(e),options:[e,t]}),Vf=(e,t)=>({...Of(e),options:[e,t]}),Hf=(e,t)=>({...jf(e),options:[e,t]}),Uf=(e,t)=>({...If(e),options:[e,t]}),Kf=(e,t)=>({...Wf(e),options:[e,t]});var Yf="Arrow",ns=c.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return l.jsx(F.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});ns.displayName=Yf;var Xf=ns;function ur(e){const[t,n]=c.useState(void 0);return Ee(()=>{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 d=a.borderBoxSize,u=Array.isArray(d)?d[0]:d;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 dr="Popper",[rs,ut]=oe(dr),[qf,os]=rs(dr),as=e=>{const{__scopePopper:t,children:n}=e,[r,o]=c.useState(null);return l.jsx(qf,{scope:t,anchor:r,onAnchorChange:o,children:n})};as.displayName=dr;var ss="PopperAnchor",is=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=os(ss,n),s=c.useRef(null),i=Z(t,s);return c.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:l.jsx(F.div,{...o,ref:i})});is.displayName=ss;var fr="PopperContent",[Zf,Jf]=rs(fr),cs=c.forwardRef((e,t)=>{var de,ze,ne,Ge,It,pt;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:v="optimized",onPlaced:b,...g}=e,x=os(fr,n),[y,w]=c.useState(null),A=Z(t,Ve=>w(Ve)),[C,R]=c.useState(null),_=ur(C),S=(_==null?void 0:_.width)??0,O=(_==null?void 0:_.height)??0,G=r+(a!=="center"?"-"+a:""),W=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},K=Array.isArray(u)?u:[u],k=K.length>0,H={padding:W,boundary:K.filter(ep),altBoundary:k},{refs:z,floatingStyles:J,placement:B,isPositioned:X,middlewareData:j}=Ff({strategy:"fixed",placement:G,whileElementsMounted:(...Ve)=>Df(...Ve,{animationFrame:v==="always"}),elements:{reference:x.anchor},middleware:[Bf({mainAxis:o+O,alignmentAxis:s}),d&&zf({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Gf():void 0,...H}),d&&Vf({...H}),Hf({...H,apply:({elements:Ve,rects:mt,availableWidth:Lt,availableHeight:Qr})=>{const{width:Cn,height:En}=mt.reference,qe=Ve.floating.style;qe.setProperty("--radix-popper-available-width",`${Lt}px`),qe.setProperty("--radix-popper-available-height",`${Qr}px`),qe.setProperty("--radix-popper-anchor-width",`${Cn}px`),qe.setProperty("--radix-popper-anchor-height",`${En}px`)}}),C&&Kf({element:C,padding:i}),tp({arrowWidth:S,arrowHeight:O}),m&&Uf({strategy:"referenceHidden",...H})]}),[N,Y]=ds(B),V=se(b);Ee(()=>{X&&(V==null||V())},[X,V]);const ue=(de=j.arrow)==null?void 0:de.x,Te=(ze=j.arrow)==null?void 0:ze.y,he=((ne=j.arrow)==null?void 0:ne.centerOffset)!==0,[Xe,we]=c.useState();return Ee(()=>{y&&we(window.getComputedStyle(y).zIndex)},[y]),l.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:X?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Xe,"--radix-popper-transform-origin":[(Ge=j.transformOrigin)==null?void 0:Ge.x,(It=j.transformOrigin)==null?void 0:It.y].join(" "),...((pt=j.hide)==null?void 0:pt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx(Zf,{scope:n,placedSide:N,onArrowChange:R,arrowX:ue,arrowY:Te,shouldHideArrow:he,children:l.jsx(F.div,{"data-side":N,"data-align":Y,...g,ref:A,style:{...g.style,animation:X?void 0:"none"}})})})});cs.displayName=fr;var ls="PopperArrow",Qf={top:"bottom",right:"left",bottom:"top",left:"right"},us=c.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=Jf(ls,r),s=Qf[a.placedSide];return l.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:l.jsx(Xf,{...o,ref:n,style:{...o.style,display:"block"}})})});us.displayName=ls;function ep(e){return e!==null}var tp=e=>({name:"transformOrigin",options:e,fn(t){var x,y,w;const{placement:n,rects:r,middlewareData:o}=t,s=((x=o.arrow)==null?void 0:x.centerOffset)!==0,i=s?0:e.arrowWidth,d=s?0:e.arrowHeight,[u,f]=ds(n),p={start:"0%",center:"50%",end:"100%"}[f],m=(((y=o.arrow)==null?void 0:y.x)??0)+i/2,v=(((w=o.arrow)==null?void 0:w.y)??0)+d/2;let b="",g="";return u==="bottom"?(b=s?p:`${m}px`,g=`${-d}px`):u==="top"?(b=s?p:`${m}px`,g=`${r.floating.height+d}px`):u==="right"?(b=`${-d}px`,g=s?p:`${v}px`):u==="left"&&(b=`${r.floating.width+d}px`,g=s?p:`${v}px`),{data:{x:b,y:g}}}});function ds(e){const[t,n="center"]=e.split("-");return[t,n]}var dn=as,fn=is,pr=cs,mr=us,gr="Popover",[fs,Yg]=oe(gr,[ut]),Nt=ut(),[np,Fe]=fs(gr),ps=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,i=Nt(t),d=c.useRef(null),[u,f]=c.useState(!1),[p=!1,m]=Re({prop:r,defaultProp:o,onChange:a});return l.jsx(dn,{...i,children:l.jsx(np,{scope:t,contentId:fe(),triggerRef:d,open:p,onOpenChange:m,onOpenToggle:c.useCallback(()=>m(v=>!v),[m]),hasCustomAnchor:u,onCustomAnchorAdd:c.useCallback(()=>f(!0),[]),onCustomAnchorRemove:c.useCallback(()=>f(!1),[]),modal:s,children:n})})};ps.displayName=gr;var ms="PopoverAnchor",gs=c.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Fe(ms,n),a=Nt(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:i}=o;return c.useEffect(()=>(s(),()=>i()),[s,i]),l.jsx(fn,{...a,...r,ref:t})});gs.displayName=ms;var hs="PopoverTrigger",vs=c.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Fe(hs,n),a=Nt(n),s=Z(t,o.triggerRef),i=l.jsx(F.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Cs(o.open),...r,ref:s,onClick:D(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:l.jsx(fn,{asChild:!0,...a,children:i})});vs.displayName=hs;var hr="PopoverPortal",[rp,op]=fs(hr,{forceMount:void 0}),bs=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=Fe(hr,t);return l.jsx(rp,{scope:t,forceMount:n,children:l.jsx(ae,{present:n||a.open,children:l.jsx(wt,{asChild:!0,container:o,children:r})})})};bs.displayName=hr;var dt="PopoverContent",ys=c.forwardRef((e,t)=>{const n=op(dt,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=Fe(dt,e.__scopePopover);return l.jsx(ae,{present:r||a.open,children:a.modal?l.jsx(ap,{...o,ref:t}):l.jsx(sp,{...o,ref:t})})});ys.displayName=dt;var ap=c.forwardRef((e,t)=>{const n=Fe(dt,e.__scopePopover),r=c.useRef(null),o=Z(t,r),a=c.useRef(!1);return c.useEffect(()=>{const s=r.current;if(s)return Bn(s)},[]),l.jsx(qt,{as:Oe,allowPinchZoom:!0,children:l.jsx(xs,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:D(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),a.current||(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:D(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,d=i.button===0&&i.ctrlKey===!0,u=i.button===2||d;a.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:D(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),sp=c.forwardRef((e,t)=>{const n=Fe(dt,e.__scopePopover),r=c.useRef(!1),o=c.useRef(!1);return l.jsx(xs,{...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 d,u;(d=e.onInteractOutside)==null||d.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()}})}),xs=c.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:i,onPointerDownOutside:d,onFocusOutside:u,onInteractOutside:f,...p}=e,m=Fe(dt,n),v=Nt(n);return jn(),l.jsx(Gt,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:l.jsx(xt,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:f,onEscapeKeyDown:i,onPointerDownOutside:d,onFocusOutside:u,onDismiss:()=>m.onOpenChange(!1),children:l.jsx(pr,{"data-state":Cs(m.open),role:"dialog",id:m.contentId,...v,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),ws="PopoverClose",ip=c.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Fe(ws,n);return l.jsx(F.button,{type:"button",...r,ref:t,onClick:D(e.onClick,()=>o.onOpenChange(!1))})});ip.displayName=ws;var cp="PopoverArrow",lp=c.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Nt(n);return l.jsx(mr,{...o,...r,ref:t})});lp.displayName=cp;function Cs(e){return e?"open":"closed"}var up=ps,dp=gs,fp=vs,pp=bs,Es=ys;const Rs=up,As=fp,mp=dp,vr=c.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>l.jsx(pp,{children:l.jsx(Es,{ref:o,align:t,sideOffset:n,className:P("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",e),...r})}));vr.displayName=Es.displayName;function gp(e){const{value:t="",onChange:n,options:r,className:o,placeholder:a="Search...",emptyMessage:s="Nothing found"}=e,[i,d]=I.useState(t),[u,f]=I.useState(r),[p,m]=I.useState(-1),[v,b]=I.useState(!1),g=C=>{const R=C.target.value;d(R),n==null||n(R),m(-1),b(!0),R.trim()===""?f(r):f(r.filter(_=>_.label.toLowerCase().includes(R.toLowerCase())))},x=C=>{if(C.key==="ArrowDown")C.preventDefault(),m(R=>R<u.length-1?R+1:R);else if(C.key==="ArrowUp")C.preventDefault(),m(R=>R>0?R-1:-1);else if(C.key==="Enter"&&p>=0){const R=u[p];d(R.label),n==null||n(R.value),f([]),m(-1),b(!1)}else C.key==="Escape"&&(f([]),m(-1))},y=C=>{b(!1),d(C.label),n==null||n(C.value),f(r),m(-1)},w=()=>{b(!0)},A=()=>{b(!1)};return l.jsxs(Rs,{open:v,children:[l.jsx(As,{asChild:!0,children:l.jsx("div",{className:"relative w-full",children:l.jsx(Bt,{type:"text",placeholder:a,value:i,onChange:g,onKeyDown:x,onClick:w,onFocus:w,onBlur:A,className:P("pr-10",o),"aria-label":"Search field","aria-autocomplete":"list","aria-controls":"suggestions-list","aria-expanded":u.length>0,leftIcon:l.jsx(Yd,{className:"w-4 h-4"})})})}),l.jsx(vr,{className:"p-0 w-[var(--radix-popover-trigger-width)] max-h-96 overflow-y-auto",children:u.length>0?l.jsx("ul",{id:"suggestions-list",role:"listbox",children:u.map((C,R)=>l.jsx("li",{className:`px-4 py-2 cursor-pointer hover:bg-muted ${R===p?"bg-muted":""}`,onClick:()=>y(C),role:"option","aria-selected":R===p,children:C.label},C.value))}):l.jsx("span",{className:"px-4 py-2 block",children:s})})]})}var br="Avatar",[hp,Xg]=oe(br),[vp,Ns]=hp(br),Ps=c.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,a]=c.useState("idle");return l.jsx(vp,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:l.jsx(F.span,{...r,ref:t})})});Ps.displayName=br;var Ss="AvatarImage",Ts=c.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,s=Ns(Ss,n),i=bp(r,a.referrerPolicy),d=se(u=>{o(u),s.onImageLoadingStatusChange(u)});return Ee(()=>{i!=="idle"&&d(i)},[i,d]),i==="loaded"?l.jsx(F.img,{...a,ref:t,src:r}):null});Ts.displayName=Ss;var Ms="AvatarFallback",Ds=c.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=Ns(Ms,n),[s,i]=c.useState(r===void 0);return c.useEffect(()=>{if(r!==void 0){const d=window.setTimeout(()=>i(!0),r);return()=>window.clearTimeout(d)}},[r]),s&&a.imageLoadingStatus!=="loaded"?l.jsx(F.span,{...o,ref:t}):null});Ds.displayName=Ms;function bp(e,t){const[n,r]=c.useState("idle");return Ee(()=>{if(!e){r("error");return}let o=!0;const a=new window.Image,s=i=>()=>{o&&r(i)};return r("loading"),a.onload=s("loaded"),a.onerror=s("error"),a.src=e,t&&(a.referrerPolicy=t),()=>{o=!1}},[e,t]),n}var _s=Ps,ks=Ts,Os=Ds;const js=c.forwardRef(({className:e,...t},n)=>l.jsx(_s,{ref:n,className:P("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));js.displayName=_s.displayName;const Is=c.forwardRef(({className:e,...t},n)=>l.jsx(ks,{ref:n,className:P("aspect-square h-full w-full",e),...t}));Is.displayName=ks.displayName;const Ls=c.forwardRef(({className:e,...t},n)=>l.jsx(Os,{ref:n,className:P("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Ls.displayName=Os.displayName;const $s=Sn("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function yp({className:e,variant:t,...n}){return l.jsx("div",{className:P($s({variant:t}),e),...n})}const Fs=c.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:P("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Fs.displayName="Card";const Ws=c.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:P("flex flex-col space-y-1.5 p-6",e),...t}));Ws.displayName="CardHeader";const Bs=c.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:P("font-semibold leading-none tracking-tight pb-4",e),...t}));Bs.displayName="CardTitle";const zs=c.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:P("text-sm text-muted-foreground",e),...t}));zs.displayName="CardDescription";const Gs=c.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:P("p-6 py-0",e),...t}));Gs.displayName="CardContent";const Vs=c.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:P("flex items-center p-6 pt-6",e),...t}));Vs.displayName="CardFooter";function Hs(e){const t=c.useRef({value:e,previous:e});return c.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var yr="Checkbox",[xp,qg]=oe(yr),[wp,Cp]=xp(yr),Us=c.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:s,disabled:i,value:d="on",onCheckedChange:u,form:f,...p}=e,[m,v]=c.useState(null),b=Z(t,C=>v(C)),g=c.useRef(!1),x=m?f||!!m.closest("form"):!0,[y=!1,w]=Re({prop:o,defaultProp:a,onChange:u}),A=c.useRef(y);return c.useEffect(()=>{const C=m==null?void 0:m.form;if(C){const R=()=>w(A.current);return C.addEventListener("reset",R),()=>C.removeEventListener("reset",R)}},[m,w]),l.jsxs(wp,{scope:n,state:y,disabled:i,children:[l.jsx(F.button,{type:"button",role:"checkbox","aria-checked":We(y)?"mixed":y,"aria-required":s,"data-state":Xs(y),"data-disabled":i?"":void 0,disabled:i,value:d,...p,ref:b,onKeyDown:D(e.onKeyDown,C=>{C.key==="Enter"&&C.preventDefault()}),onClick:D(e.onClick,C=>{w(R=>We(R)?!0:!R),x&&(g.current=C.isPropagationStopped(),g.current||C.stopPropagation())})}),x&&l.jsx(Ep,{control:m,bubbles:!g.current,name:r,value:d,checked:y,required:s,disabled:i,form:f,style:{transform:"translateX(-100%)"},defaultChecked:We(a)?!1:a})]})});Us.displayName=yr;var Ks="CheckboxIndicator",Ys=c.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=Cp(Ks,n);return l.jsx(ae,{present:r||We(a.state)||a.state===!0,children:l.jsx(F.span,{"data-state":Xs(a.state),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});Ys.displayName=Ks;var Ep=e=>{const{control:t,checked:n,bubbles:r=!0,defaultChecked:o,...a}=e,s=c.useRef(null),i=Hs(n),d=ur(t);c.useEffect(()=>{const f=s.current,p=window.HTMLInputElement.prototype,v=Object.getOwnPropertyDescriptor(p,"checked").set;if(i!==n&&v){const b=new Event("click",{bubbles:r});f.indeterminate=We(n),v.call(f,We(n)?!1:n),f.dispatchEvent(b)}},[i,n,r]);const u=c.useRef(We(n)?!1:n);return l.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o??u.current,...a,tabIndex:-1,ref:s,style:{...e.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function We(e){return e==="indeterminate"}function Xs(e){return We(e)?"indeterminate":e?"checked":"unchecked"}var qs=Us,Rp=Ys;const Zs=c.forwardRef(({className:e,...t},n)=>l.jsx(qs,{ref:n,className:P("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:l.jsx(Rp,{className:P("flex items-center justify-center text-current"),children:l.jsx(La,{className:"h-4 w-4"})})}));Zs.displayName=qs.displayName;const Js=I.forwardRef((e,t)=>{const{currencySymbol:n="$",decimalSeparator:r=".",thousandSeparator:o=",",onValueChange:a,className:s,value:i=0,...d}=e,u=I.useRef(null);I.useImperativeHandle(t,()=>u.current);const[f,p]=I.useState(""),m=g=>{const x=g.toFixed(2).split("."),y=x[0].replace(/\B(?=(\d{3})+(?!\d))/g,o);return`${n} ${y}${r}${x[1]}`},v=g=>{const x=g.target.value,y=parseFloat(x.replace(/\D/g,""))/100;p(m(y)),a(y),u.current&&window.requestAnimationFrame(()=>{var w;(w=u.current)==null||w.setSelectionRange(u.current.value.length,u.current.value.length)})},b=()=>{u.current&&u.current.setSelectionRange(u.current.value.length,u.current.value.length)};return I.useEffect(()=>{p(m(+i))},[i]),l.jsx(Bt,{type:"text",inputMode:"numeric",value:f,ref:u,onChange:v,onFocus:b,onClick:b,placeholder:`${n} 0${r}00`,className:s,...d})});Js.displayName="CurrencyInput";const Qs=sa,ei=ia,ti=ca,Ap=en,xr=c.forwardRef(({className:e,...t},n)=>l.jsx(Un,{ref:n,className:P("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));xr.displayName=Un.displayName;const wr=c.forwardRef(({className:e,children:t,...n},r)=>l.jsxs(ti,{children:[l.jsx(xr,{}),l.jsxs(Kn,{ref:r,className:P("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border","bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]","sm:rounded-lg max-h-[100dvh] overflow-y-auto",e),...n,children:[t,l.jsxs(en,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[l.jsx(Xd,{className:"h-4 w-4"}),l.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));wr.displayName=Kn.displayName;const Cr=({className:e,...t})=>l.jsx("div",{className:P("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Cr.displayName="DialogHeader";const ni=({className:e,...t})=>l.jsx("div",{className:P("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ni.displayName="DialogFooter";const Er=c.forwardRef(({className:e,...t},n)=>l.jsx(Yn,{ref:n,className:P("text-lg font-semibold leading-none tracking-tight",e),...t}));Er.displayName=Yn.displayName;const Rr=c.forwardRef(({className:e,...t},n)=>l.jsx(Xn,{ref:n,className:P("text-sm text-muted-foreground",e),...t}));Rr.displayName=Xn.displayName;function ri(e){const t=e+"CollectionProvider",[n,r]=oe(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=v=>{const{scope:b,children:g}=v,x=I.useRef(null),y=I.useRef(new Map).current;return l.jsx(o,{scope:b,itemMap:y,collectionRef:x,children:g})};s.displayName=t;const i=e+"CollectionSlot",d=I.forwardRef((v,b)=>{const{scope:g,children:x}=v,y=a(i,g),w=Z(b,y.collectionRef);return l.jsx(Oe,{ref:w,children:x})});d.displayName=i;const u=e+"CollectionItemSlot",f="data-radix-collection-item",p=I.forwardRef((v,b)=>{const{scope:g,children:x,...y}=v,w=I.useRef(null),A=Z(b,w),C=a(u,g);return I.useEffect(()=>(C.itemMap.set(w,{ref:w,...y}),()=>void C.itemMap.delete(w))),l.jsx(Oe,{[f]:"",ref:A,children:x})});p.displayName=u;function m(v){const b=a(e+"CollectionConsumer",v);return I.useCallback(()=>{const x=b.collectionRef.current;if(!x)return[];const y=Array.from(x.querySelectorAll(`[${f}]`));return Array.from(b.itemMap.values()).sort((C,R)=>y.indexOf(C.ref.current)-y.indexOf(R.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:s,Slot:d,ItemSlot:p},m,r]}var Np=c.createContext(void 0);function Ar(e){const t=c.useContext(Np);return e||t||"ltr"}var Nr="rovingFocusGroup.onEntryFocus",Pp={bubbles:!1,cancelable:!0},pn="RovingFocusGroup",[Pr,oi,Sp]=ri(pn),[Tp,mn]=oe(pn,[Sp]),[Mp,Dp]=Tp(pn),ai=c.forwardRef((e,t)=>l.jsx(Pr.Provider,{scope:e.__scopeRovingFocusGroup,children:l.jsx(Pr.Slot,{scope:e.__scopeRovingFocusGroup,children:l.jsx(_p,{...e,ref:t})})}));ai.displayName=pn;var _p=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:d,onEntryFocus:u,preventScrollOnEntryFocus:f=!1,...p}=e,m=c.useRef(null),v=Z(t,m),b=Ar(a),[g=null,x]=Re({prop:s,defaultProp:i,onChange:d}),[y,w]=c.useState(!1),A=se(u),C=oi(n),R=c.useRef(!1),[_,S]=c.useState(0);return c.useEffect(()=>{const O=m.current;if(O)return O.addEventListener(Nr,A),()=>O.removeEventListener(Nr,A)},[A]),l.jsx(Mp,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:g,onItemFocus:c.useCallback(O=>x(O),[x]),onItemShiftTab:c.useCallback(()=>w(!0),[]),onFocusableItemAdd:c.useCallback(()=>S(O=>O+1),[]),onFocusableItemRemove:c.useCallback(()=>S(O=>O-1),[]),children:l.jsx(F.div,{tabIndex:y||_===0?-1:0,"data-orientation":r,...p,ref:v,style:{outline:"none",...e.style},onMouseDown:D(e.onMouseDown,()=>{R.current=!0}),onFocus:D(e.onFocus,O=>{const G=!R.current;if(O.target===O.currentTarget&&G&&!y){const W=new CustomEvent(Nr,Pp);if(O.currentTarget.dispatchEvent(W),!W.defaultPrevented){const K=C().filter(B=>B.focusable),k=K.find(B=>B.active),H=K.find(B=>B.id===g),J=[k,H,...K].filter(Boolean).map(B=>B.ref.current);ci(J,f)}}R.current=!1}),onBlur:D(e.onBlur,()=>w(!1))})})}),si="RovingFocusGroupItem",ii=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...s}=e,i=fe(),d=a||i,u=Dp(si,n),f=u.currentTabStopId===d,p=oi(n),{onFocusableItemAdd:m,onFocusableItemRemove:v}=u;return c.useEffect(()=>{if(r)return m(),()=>v()},[r,m,v]),l.jsx(Pr.ItemSlot,{scope:n,id:d,focusable:r,active:o,children:l.jsx(F.span,{tabIndex:f?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:D(e.onMouseDown,b=>{r?u.onItemFocus(d):b.preventDefault()}),onFocus:D(e.onFocus,()=>u.onItemFocus(d)),onKeyDown:D(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){u.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const g=jp(b,u.orientation,u.dir);if(g!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let y=p().filter(w=>w.focusable).map(w=>w.ref.current);if(g==="last")y.reverse();else if(g==="prev"||g==="next"){g==="prev"&&y.reverse();const w=y.indexOf(b.currentTarget);y=u.loop?Ip(y,w+1):y.slice(w+1)}setTimeout(()=>ci(y))}})})})});ii.displayName=si;var kp={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Op(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function jp(e,t,n){const r=Op(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return kp[r]}function ci(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Ip(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var li=ai,ui=ii,Sr=["Enter"," "],Lp=["ArrowDown","PageUp","Home"],di=["ArrowUp","PageDown","End"],$p=[...Lp,...di],Fp={ltr:[...Sr,"ArrowRight"],rtl:[...Sr,"ArrowLeft"]},Wp={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Pt="Menu",[St,Bp,zp]=ri(Pt),[Ye,fi]=oe(Pt,[zp,ut,mn]),Tt=ut(),pi=mn(),[mi,Be]=Ye(Pt),[Gp,Mt]=Ye(Pt),gi=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:s=!0}=e,i=Tt(t),[d,u]=c.useState(null),f=c.useRef(!1),p=se(a),m=Ar(o);return c.useEffect(()=>{const v=()=>{f.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>f.current=!1;return document.addEventListener("keydown",v,{capture:!0}),()=>{document.removeEventListener("keydown",v,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),l.jsx(dn,{...i,children:l.jsx(mi,{scope:t,open:n,onOpenChange:p,content:d,onContentChange:u,children:l.jsx(Gp,{scope:t,onClose:c.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:m,modal:s,children:r})})})};gi.displayName=Pt;var Vp="MenuAnchor",Tr=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Tt(n);return l.jsx(fn,{...o,...r,ref:t})});Tr.displayName=Vp;var Mr="MenuPortal",[Hp,hi]=Ye(Mr,{forceMount:void 0}),vi=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=Be(Mr,t);return l.jsx(Hp,{scope:t,forceMount:n,children:l.jsx(ae,{present:n||a.open,children:l.jsx(wt,{asChild:!0,container:o,children:r})})})};vi.displayName=Mr;var le="MenuContent",[Up,Dr]=Ye(le),bi=c.forwardRef((e,t)=>{const n=hi(le,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Be(le,e.__scopeMenu),s=Mt(le,e.__scopeMenu);return l.jsx(St.Provider,{scope:e.__scopeMenu,children:l.jsx(ae,{present:r||a.open,children:l.jsx(St.Slot,{scope:e.__scopeMenu,children:s.modal?l.jsx(Kp,{...o,ref:t}):l.jsx(Yp,{...o,ref:t})})})})}),Kp=c.forwardRef((e,t)=>{const n=Be(le,e.__scopeMenu),r=c.useRef(null),o=Z(t,r);return c.useEffect(()=>{const a=r.current;if(a)return Bn(a)},[]),l.jsx(_r,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:D(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Yp=c.forwardRef((e,t)=>{const n=Be(le,e.__scopeMenu);return l.jsx(_r,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),_r=c.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEntryFocus:d,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:v,disableOutsideScroll:b,...g}=e,x=Be(le,n),y=Mt(le,n),w=Tt(n),A=pi(n),C=Bp(n),[R,_]=c.useState(null),S=c.useRef(null),O=Z(t,S,x.onContentChange),G=c.useRef(0),W=c.useRef(""),K=c.useRef(0),k=c.useRef(null),H=c.useRef("right"),z=c.useRef(0),J=b?qt:c.Fragment,B=b?{as:Oe,allowPinchZoom:!0}:void 0,X=N=>{var de,ze;const Y=W.current+N,V=C().filter(ne=>!ne.disabled),ue=document.activeElement,Te=(de=V.find(ne=>ne.ref.current===ue))==null?void 0:de.textValue,he=V.map(ne=>ne.textValue),Xe=sm(he,Y,Te),we=(ze=V.find(ne=>ne.textValue===Xe))==null?void 0:ze.ref.current;(function ne(Ge){W.current=Ge,window.clearTimeout(G.current),Ge!==""&&(G.current=window.setTimeout(()=>ne(""),1e3))})(Y),we&&setTimeout(()=>we.focus())};c.useEffect(()=>()=>window.clearTimeout(G.current),[]),jn();const j=c.useCallback(N=>{var V,ue;return H.current===((V=k.current)==null?void 0:V.side)&&cm(N,(ue=k.current)==null?void 0:ue.area)},[]);return l.jsx(Up,{scope:n,searchRef:W,onItemEnter:c.useCallback(N=>{j(N)&&N.preventDefault()},[j]),onItemLeave:c.useCallback(N=>{var Y;j(N)||((Y=S.current)==null||Y.focus(),_(null))},[j]),onTriggerLeave:c.useCallback(N=>{j(N)&&N.preventDefault()},[j]),pointerGraceTimerRef:K,onPointerGraceIntentChange:c.useCallback(N=>{k.current=N},[]),children:l.jsx(J,{...B,children:l.jsx(Gt,{asChild:!0,trapped:o,onMountAutoFocus:D(a,N=>{var Y;N.preventDefault(),(Y=S.current)==null||Y.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:l.jsx(xt,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:v,children:l.jsx(li,{asChild:!0,...A,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:R,onCurrentTabStopIdChange:_,onEntryFocus:D(d,N=>{y.isUsingKeyboardRef.current||N.preventDefault()}),preventScrollOnEntryFocus:!0,children:l.jsx(pr,{role:"menu","aria-orientation":"vertical","data-state":Ii(x.open),"data-radix-menu-content":"",dir:y.dir,...w,...g,ref:O,style:{outline:"none",...g.style},onKeyDown:D(g.onKeyDown,N=>{const V=N.target.closest("[data-radix-menu-content]")===N.currentTarget,ue=N.ctrlKey||N.altKey||N.metaKey,Te=N.key.length===1;V&&(N.key==="Tab"&&N.preventDefault(),!ue&&Te&&X(N.key));const he=S.current;if(N.target!==he||!$p.includes(N.key))return;N.preventDefault();const we=C().filter(de=>!de.disabled).map(de=>de.ref.current);di.includes(N.key)&&we.reverse(),om(we)}),onBlur:D(e.onBlur,N=>{N.currentTarget.contains(N.target)||(window.clearTimeout(G.current),W.current="")}),onPointerMove:D(e.onPointerMove,_t(N=>{const Y=N.target,V=z.current!==N.clientX;if(N.currentTarget.contains(Y)&&V){const ue=N.clientX>z.current?"right":"left";H.current=ue,z.current=N.clientX}}))})})})})})})});bi.displayName=le;var Xp="MenuGroup",kr=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return l.jsx(F.div,{role:"group",...r,ref:t})});kr.displayName=Xp;var qp="MenuLabel",yi=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return l.jsx(F.div,{...r,ref:t})});yi.displayName=qp;var gn="MenuItem",xi="menu.itemSelect",hn=c.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=c.useRef(null),s=Mt(gn,e.__scopeMenu),i=Dr(gn,e.__scopeMenu),d=Z(t,a),u=c.useRef(!1),f=()=>{const p=a.current;if(!n&&p){const m=new CustomEvent(xi,{bubbles:!0,cancelable:!0});p.addEventListener(xi,v=>r==null?void 0:r(v),{once:!0}),yo(p,m),m.defaultPrevented?u.current=!1:s.onClose()}};return l.jsx(wi,{...o,ref:d,disabled:n,onClick:D(e.onClick,f),onPointerDown:p=>{var m;(m=e.onPointerDown)==null||m.call(e,p),u.current=!0},onPointerUp:D(e.onPointerUp,p=>{var m;u.current||(m=p.currentTarget)==null||m.click()}),onKeyDown:D(e.onKeyDown,p=>{const m=i.searchRef.current!=="";n||m&&p.key===" "||Sr.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});hn.displayName=gn;var wi=c.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,s=Dr(gn,n),i=pi(n),d=c.useRef(null),u=Z(t,d),[f,p]=c.useState(!1),[m,v]=c.useState("");return c.useEffect(()=>{const b=d.current;b&&v((b.textContent??"").trim())},[a.children]),l.jsx(St.ItemSlot,{scope:n,disabled:r,textValue:o??m,children:l.jsx(ui,{asChild:!0,...i,focusable:!r,children:l.jsx(F.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:u,onPointerMove:D(e.onPointerMove,_t(b=>{r?s.onItemLeave(b):(s.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:D(e.onPointerLeave,_t(b=>s.onItemLeave(b))),onFocus:D(e.onFocus,()=>p(!0)),onBlur:D(e.onBlur,()=>p(!1))})})})}),Zp="MenuCheckboxItem",Ci=c.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return l.jsx(Pi,{scope:e.__scopeMenu,checked:n,children:l.jsx(hn,{role:"menuitemcheckbox","aria-checked":vn(n)?"mixed":n,...o,ref:t,"data-state":Ir(n),onSelect:D(o.onSelect,()=>r==null?void 0:r(vn(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Ci.displayName=Zp;var Ei="MenuRadioGroup",[Jp,Qp]=Ye(Ei,{value:void 0,onValueChange:()=>{}}),Ri=c.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=se(r);return l.jsx(Jp,{scope:e.__scopeMenu,value:n,onValueChange:a,children:l.jsx(kr,{...o,ref:t})})});Ri.displayName=Ei;var Ai="MenuRadioItem",Ni=c.forwardRef((e,t)=>{const{value:n,...r}=e,o=Qp(Ai,e.__scopeMenu),a=n===o.value;return l.jsx(Pi,{scope:e.__scopeMenu,checked:a,children:l.jsx(hn,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":Ir(a),onSelect:D(r.onSelect,()=>{var s;return(s=o.onValueChange)==null?void 0:s.call(o,n)},{checkForDefaultPrevented:!1})})})});Ni.displayName=Ai;var Or="MenuItemIndicator",[Pi,em]=Ye(Or,{checked:!1}),Si=c.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=em(Or,n);return l.jsx(ae,{present:r||vn(a.checked)||a.checked===!0,children:l.jsx(F.span,{...o,ref:t,"data-state":Ir(a.checked)})})});Si.displayName=Or;var tm="MenuSeparator",Ti=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return l.jsx(F.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Ti.displayName=tm;var nm="MenuArrow",Mi=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Tt(n);return l.jsx(mr,{...o,...r,ref:t})});Mi.displayName=nm;var jr="MenuSub",[rm,Di]=Ye(jr),_i=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,a=Be(jr,t),s=Tt(t),[i,d]=c.useState(null),[u,f]=c.useState(null),p=se(o);return c.useEffect(()=>(a.open===!1&&p(!1),()=>p(!1)),[a.open,p]),l.jsx(dn,{...s,children:l.jsx(mi,{scope:t,open:r,onOpenChange:p,content:u,onContentChange:f,children:l.jsx(rm,{scope:t,contentId:fe(),triggerId:fe(),trigger:i,onTriggerChange:d,children:n})})})};_i.displayName=jr;var Dt="MenuSubTrigger",ki=c.forwardRef((e,t)=>{const n=Be(Dt,e.__scopeMenu),r=Mt(Dt,e.__scopeMenu),o=Di(Dt,e.__scopeMenu),a=Dr(Dt,e.__scopeMenu),s=c.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:d}=a,u={__scopeMenu:e.__scopeMenu},f=c.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return c.useEffect(()=>f,[f]),c.useEffect(()=>{const p=i.current;return()=>{window.clearTimeout(p),d(null)}},[i,d]),l.jsx(Tr,{asChild:!0,...u,children:l.jsx(wi,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Ii(n.open),...e,ref:zt(t,o.onTriggerChange),onClick:p=>{var m;(m=e.onClick)==null||m.call(e,p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:D(e.onPointerMove,_t(p=>{a.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:D(e.onPointerLeave,_t(p=>{var v,b;f();const m=(v=n.content)==null?void 0:v.getBoundingClientRect();if(m){const g=(b=n.content)==null?void 0:b.dataset.side,x=g==="right",y=x?-5:5,w=m[x?"left":"right"],A=m[x?"right":"left"];a.onPointerGraceIntentChange({area:[{x:p.clientX+y,y:p.clientY},{x:w,y:m.top},{x:A,y:m.top},{x:A,y:m.bottom},{x:w,y:m.bottom}],side:g}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(p),p.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:D(e.onKeyDown,p=>{var v;const m=a.searchRef.current!=="";e.disabled||m&&p.key===" "||Fp[r.dir].includes(p.key)&&(n.onOpenChange(!0),(v=n.content)==null||v.focus(),p.preventDefault())})})})});ki.displayName=Dt;var Oi="MenuSubContent",ji=c.forwardRef((e,t)=>{const n=hi(le,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Be(le,e.__scopeMenu),s=Mt(le,e.__scopeMenu),i=Di(Oi,e.__scopeMenu),d=c.useRef(null),u=Z(t,d);return l.jsx(St.Provider,{scope:e.__scopeMenu,children:l.jsx(ae,{present:r||a.open,children:l.jsx(St.Slot,{scope:e.__scopeMenu,children:l.jsx(_r,{id:i.contentId,"aria-labelledby":i.triggerId,...o,ref:u,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var p;s.isUsingKeyboardRef.current&&((p=d.current)==null||p.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:D(e.onFocusOutside,f=>{f.target!==i.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:D(e.onEscapeKeyDown,f=>{s.onClose(),f.preventDefault()}),onKeyDown:D(e.onKeyDown,f=>{var v;const p=f.currentTarget.contains(f.target),m=Wp[s.dir].includes(f.key);p&&m&&(a.onOpenChange(!1),(v=i.trigger)==null||v.focus(),f.preventDefault())})})})})})});ji.displayName=Oi;function Ii(e){return e?"open":"closed"}function vn(e){return e==="indeterminate"}function Ir(e){return vn(e)?"indeterminate":e?"checked":"unchecked"}function om(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function am(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function sm(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=am(e,Math.max(a,0));o.length===1&&(s=s.filter(u=>u!==n));const d=s.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return d!==n?d:void 0}function im(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].x,d=t[a].y,u=t[s].x,f=t[s].y;d>r!=f>r&&n<(u-i)*(r-d)/(f-d)+i&&(o=!o)}return o}function cm(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return im(n,t)}function _t(e){return t=>t.pointerType==="mouse"?e(t):void 0}var lm=gi,um=Tr,dm=vi,fm=bi,pm=kr,mm=yi,gm=hn,hm=Ci,vm=Ri,bm=Ni,ym=Si,xm=Ti,wm=Mi,Cm=_i,Em=ki,Rm=ji,Lr="DropdownMenu",[Am,Zg]=oe(Lr,[fi]),ee=fi(),[Nm,Li]=Am(Lr),$i=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:s,modal:i=!0}=e,d=ee(t),u=c.useRef(null),[f=!1,p]=Re({prop:o,defaultProp:a,onChange:s});return l.jsx(Nm,{scope:t,triggerId:fe(),triggerRef:u,contentId:fe(),open:f,onOpenChange:p,onOpenToggle:c.useCallback(()=>p(m=>!m),[p]),modal:i,children:l.jsx(lm,{...d,open:f,onOpenChange:p,dir:r,modal:i,children:n})})};$i.displayName=Lr;var Fi="DropdownMenuTrigger",Wi=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=Li(Fi,n),s=ee(n);return l.jsx(um,{asChild:!0,...s,children:l.jsx(F.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:zt(t,a.triggerRef),onPointerDown:D(e.onPointerDown,i=>{!r&&i.button===0&&i.ctrlKey===!1&&(a.onOpenToggle(),a.open||i.preventDefault())}),onKeyDown:D(e.onKeyDown,i=>{r||(["Enter"," "].includes(i.key)&&a.onOpenToggle(),i.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});Wi.displayName=Fi;var Pm="DropdownMenuPortal",Bi=e=>{const{__scopeDropdownMenu:t,...n}=e,r=ee(t);return l.jsx(dm,{...r,...n})};Bi.displayName=Pm;var zi="DropdownMenuContent",Gi=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Li(zi,n),a=ee(n),s=c.useRef(!1);return l.jsx(fm,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:D(e.onCloseAutoFocus,i=>{var d;s.current||(d=o.triggerRef.current)==null||d.focus(),s.current=!1,i.preventDefault()}),onInteractOutside:D(e.onInteractOutside,i=>{const d=i.detail.originalEvent,u=d.button===0&&d.ctrlKey===!0,f=d.button===2||u;(!o.modal||f)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Gi.displayName=zi;var Sm="DropdownMenuGroup",Vi=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return l.jsx(pm,{...o,...r,ref:t})});Vi.displayName=Sm;var Tm="DropdownMenuLabel",Hi=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return l.jsx(mm,{...o,...r,ref:t})});Hi.displayName=Tm;var Mm="DropdownMenuItem",Ui=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return l.jsx(gm,{...o,...r,ref:t})});Ui.displayName=Mm;var Dm="DropdownMenuCheckboxItem",Ki=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return l.jsx(hm,{...o,...r,ref:t})});Ki.displayName=Dm;var _m="DropdownMenuRadioGroup",Yi=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return l.jsx(vm,{...o,...r,ref:t})});Yi.displayName=_m;var km="DropdownMenuRadioItem",Xi=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return l.jsx(bm,{...o,...r,ref:t})});Xi.displayName=km;var Om="DropdownMenuItemIndicator",qi=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return l.jsx(ym,{...o,...r,ref:t})});qi.displayName=Om;var jm="DropdownMenuSeparator",Zi=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return l.jsx(xm,{...o,...r,ref:t})});Zi.displayName=jm;var Im="DropdownMenuArrow",Lm=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return l.jsx(wm,{...o,...r,ref:t})});Lm.displayName=Im;var $m=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,s=ee(t),[i=!1,d]=Re({prop:r,defaultProp:a,onChange:o});return l.jsx(Cm,{...s,open:i,onOpenChange:d,children:n})},Fm="DropdownMenuSubTrigger",Ji=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return l.jsx(Em,{...o,...r,ref:t})});Ji.displayName=Fm;var Wm="DropdownMenuSubContent",Qi=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return l.jsx(Rm,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Qi.displayName=Wm;var Bm=$i,zm=Wi,ec=Bi,tc=Gi,Gm=Vi,nc=Hi,rc=Ui,oc=Ki,Vm=Yi,ac=Xi,sc=qi,ic=Zi,Hm=$m,cc=Ji,lc=Qi;const Um=Bm,Km=zm,Ym=Gm,Xm=ec,qm=Hm,Zm=Vm,uc=c.forwardRef(({className:e,inset:t,children:n,...r},o)=>l.jsxs(cc,{ref:o,className:P("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[n,l.jsx(Zn,{className:"ml-auto"})]}));uc.displayName=cc.displayName;const dc=c.forwardRef(({className:e,...t},n)=>l.jsx(lc,{ref:n,className:P("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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",e),...t}));dc.displayName=lc.displayName;const fc=c.forwardRef(({className:e,sideOffset:t=4,...n},r)=>l.jsx(ec,{children:l.jsx(tc,{ref:r,sideOffset:t,className:P("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","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",e),...n})}));fc.displayName=tc.displayName;const pc=c.forwardRef(({className:e,inset:t,...n},r)=>l.jsx(rc,{ref:r,className:P("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...n}));pc.displayName=rc.displayName;const mc=c.forwardRef(({className:e,children:t,checked:n,...r},o)=>l.jsxs(oc,{ref:o,className:P("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[l.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:l.jsx(sc,{children:l.jsx(La,{className:"h-4 w-4"})})}),t]}));mc.displayName=oc.displayName;const gc=c.forwardRef(({className:e,children:t,...n},r)=>l.jsxs(ac,{ref:r,className:P("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[l.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:l.jsx(sc,{children:l.jsx(Vd,{className:"h-2 w-2 fill-current"})})}),t]}));gc.displayName=ac.displayName;const hc=c.forwardRef(({className:e,inset:t,...n},r)=>l.jsx(nc,{ref:r,className:P("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));hc.displayName=nc.displayName;const vc=c.forwardRef(({className:e,...t},n)=>l.jsx(ic,{ref:n,className:P("-mx-1 my-1 h-px bg-muted",e),...t}));vc.displayName=ic.displayName;const bc=({className:e,...t})=>l.jsx("span",{className:P("ml-auto text-xs tracking-widest opacity-60",e),...t});bc.displayName="DropdownMenuShortcut";const $r=({className:e,...t})=>l.jsx("nav",{role:"navigation","aria-label":"pagination",className:P("mx-auto flex w-full justify-center",e),...t});$r.displayName="Pagination";const Fr=c.forwardRef(({className:e,...t},n)=>l.jsx("ul",{ref:n,className:P("flex flex-row items-center gap-1",e),...t}));Fr.displayName="PaginationContent";const kt=c.forwardRef(({className:e,...t},n)=>l.jsx("li",{ref:n,className:P("",e),...t}));kt.displayName="PaginationItem";const Ot=({className:e,isActive:t,size:n="icon",...r})=>l.jsx(at,{"aria-current":t?"page":void 0,className:P(Ct({variant:t?"default":"outline",size:n}),t?"text-primary-foreground":"text-foreground",e),...r,children:r.children});Ot.displayName="PaginationLink";const Wr=({className:e,...t})=>l.jsx(Ot,{"aria-label":"Previous page",size:"default",className:P("gap-1",e),...t,children:l.jsx($a,{className:"h-4 w-4"})});Wr.displayName="PaginationPrevious";const Br=({className:e,...t})=>l.jsx(Ot,{"aria-label":"Next page",size:"default",className:P("gap-1",e),...t,children:l.jsx(Zn,{className:"h-4 w-4"})});Br.displayName="PaginationNext";const yc=({className:e,...t})=>l.jsxs("span",{"aria-hidden":!0,className:P("flex h-9 w-9 items-center justify-center",e),...t,children:[l.jsx(Hd,{className:"h-4 w-4"}),l.jsx("span",{className:"sr-only",children:"More pages"})]});yc.displayName="PaginationEllipsis";var zr="Progress",Gr=100,[Jm,Jg]=oe(zr),[Qm,eg]=Jm(zr),xc=c.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:a=tg,...s}=e;(o||o===0)&&!Rc(o)&&console.error(ng(`${o}`,"Progress"));const i=Rc(o)?o:Gr;r!==null&&!Ac(r,i)&&console.error(rg(`${r}`,"Progress"));const d=Ac(r,i)?r:null,u=bn(d)?a(d,i):void 0;return l.jsx(Qm,{scope:n,value:d,max:i,children:l.jsx(F.div,{"aria-valuemax":i,"aria-valuemin":0,"aria-valuenow":bn(d)?d:void 0,"aria-valuetext":u,role:"progressbar","data-state":Ec(d,i),"data-value":d??void 0,"data-max":i,...s,ref:t})})});xc.displayName=zr;var wc="ProgressIndicator",Cc=c.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,o=eg(wc,n);return l.jsx(F.div,{"data-state":Ec(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})});Cc.displayName=wc;function tg(e,t){return`${Math.round(e/t*100)}%`}function Ec(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function bn(e){return typeof e=="number"}function Rc(e){return bn(e)&&!isNaN(e)&&e>0}function Ac(e,t){return bn(e)&&!isNaN(e)&&e<=t&&e>=0}function ng(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Gr}\`.`}function rg(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
146
|
+
*/const Fp=be("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
|
147
|
+
* @license lucide-react v0.469.0 - ISC
|
|
148
|
+
*
|
|
149
|
+
* This source code is licensed under the ISC license.
|
|
150
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
+
*/const ui=be("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
152
|
+
* @license lucide-react v0.469.0 - ISC
|
|
153
|
+
*
|
|
154
|
+
* This source code is licensed under the ISC license.
|
|
155
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
+
*/const Wp=be("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
157
|
+
* @license lucide-react v0.469.0 - ISC
|
|
158
|
+
*
|
|
159
|
+
* This source code is licensed under the ISC license.
|
|
160
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
161
|
+
*/const di=be("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
|
162
|
+
* @license lucide-react v0.469.0 - ISC
|
|
163
|
+
*
|
|
164
|
+
* This source code is licensed under the ISC license.
|
|
165
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
166
|
+
*/const $p=be("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
|
|
167
|
+
* @license lucide-react v0.469.0 - ISC
|
|
168
|
+
*
|
|
169
|
+
* This source code is licensed under the ISC license.
|
|
170
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
171
|
+
*/const Lp=be("EyeOff",[["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"}]]);/**
|
|
172
|
+
* @license lucide-react v0.469.0 - ISC
|
|
173
|
+
*
|
|
174
|
+
* This source code is licensed under the ISC license.
|
|
175
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
176
|
+
*/const Bp=be("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"}]]);/**
|
|
177
|
+
* @license lucide-react v0.469.0 - ISC
|
|
178
|
+
*
|
|
179
|
+
* This source code is licensed under the ISC license.
|
|
180
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
181
|
+
*/const Vp=be("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|
182
|
+
* @license lucide-react v0.469.0 - ISC
|
|
183
|
+
*
|
|
184
|
+
* This source code is licensed under the ISC license.
|
|
185
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
186
|
+
*/const Yp=be("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
187
|
+
* @license lucide-react v0.469.0 - ISC
|
|
188
|
+
*
|
|
189
|
+
* This source code is licensed under the ISC license.
|
|
190
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
191
|
+
*/const Gp=be("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Hp=["top","right","bottom","left"],vt=Math.min,Ie=Math.max,tr=Math.round,nr=Math.floor,Xe=e=>({x:e,y:e}),zp={left:"right",right:"left",bottom:"top",top:"bottom"},Up={start:"end",end:"start"};function lo(e,t,n){return Ie(e,vt(t,n))}function at(e,t){return typeof e=="function"?e(t):e}function st(e){return e.split("-")[0]}function Yt(e){return e.split("-")[1]}function uo(e){return e==="x"?"y":"x"}function fo(e){return e==="y"?"height":"width"}function yt(e){return["top","bottom"].includes(st(e))?"y":"x"}function mo(e){return uo(yt(e))}function qp(e,t,n){n===void 0&&(n=!1);const r=Yt(e),o=mo(e),a=fo(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=rr(i)),[i,rr(i)]}function Kp(e){const t=rr(e);return[ho(e),t,ho(t)]}function ho(e){return e.replace(/start|end/g,t=>Up[t])}function Xp(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}function Qp(e,t,n,r){const o=Yt(e);let a=Xp(st(e),n==="start",r);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(ho)))),a}function rr(e){return e.replace(/left|right|bottom|top/g,t=>zp[t])}function Zp(e){return{top:0,right:0,bottom:0,left:0,...e}}function fi(e){return typeof e!="number"?Zp(e):{top:e,right:e,bottom:e,left:e}}function or(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 mi(e,t,n){let{reference:r,floating:o}=e;const a=yt(t),i=mo(t),s=fo(i),c=st(t),u=a==="y",f=r.x+r.width/2-o.width/2,m=r.y+r.height/2-o.height/2,h=r[s]/2-o[s]/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:m};break;case"left":g={x:r.x-o.width,y:m};break;default:g={x:r.x,y:r.y}}switch(Yt(t)){case"start":g[i]-=h*(n&&u?-1:1);break;case"end":g[i]+=h*(n&&u?-1:1);break}return g}const Jp=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:m}=mi(u,r,c),h=r,g={},b=0;for(let p=0;p<s.length;p++){const{name:v,fn:w}=s[p],{x:y,y:C,data:S,reset:E}=await w({x:f,y:m,initialPlacement:r,placement:h,strategy:o,middlewareData:g,rects:u,platform:i,elements:{reference:e,floating:t}});f=y??f,m=C??m,g={...g,[v]:{...g[v],...S}},E&&b<=50&&(b++,typeof E=="object"&&(E.placement&&(h=E.placement),E.rects&&(u=E.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:f,y:m}=mi(u,h,c)),p=-1)}return{x:f,y:m,placement:h,strategy:o,middlewareData:g}};async function hn(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:m="floating",altBoundary:h=!1,padding:g=0}=at(t,e),b=fi(g),v=s[h?m==="floating"?"reference":"floating":m],w=or(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(v)))==null||n?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:f,strategy:c})),y=m==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),S=await(a.isElement==null?void 0:a.isElement(C))?await(a.getScale==null?void 0:a.getScale(C))||{x:1,y:1}:{x:1,y:1},E=or(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:C,strategy:c}):y);return{top:(w.top-E.top+b.top)/S.y,bottom:(E.bottom-w.bottom+b.bottom)/S.y,left:(w.left-E.left+b.left)/S.x,right:(E.right-w.right+b.right)/S.x}}const eg=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:c}=t,{element:u,padding:f=0}=at(e,t)||{};if(u==null)return{};const m=fi(f),h={x:n,y:r},g=mo(o),b=fo(g),p=await i.getDimensions(u),v=g==="y",w=v?"top":"left",y=v?"bottom":"right",C=v?"clientHeight":"clientWidth",S=a.reference[b]+a.reference[g]-h[g]-a.floating[b],E=h[g]-a.reference[g],D=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let P=D?D[C]:0;(!P||!await(i.isElement==null?void 0:i.isElement(D)))&&(P=s.floating[C]||a.floating[b]);const O=S/2-E/2,B=P/2-p[b]/2-1,L=vt(m[w],B),V=vt(m[y],B),R=L,H=P-p[b]-V,G=P/2-p[b]/2+O,X=lo(R,G,H),j=!c.arrow&&Yt(o)!=null&&G!==X&&a.reference[b]/2-(G<R?L:V)-p[b]/2<0,z=j?G<R?G-R:G-H:0;return{[g]:h[g]+z,data:{[g]:X,centerOffset:G-X-z,...j&&{alignmentOffset:z}},reset:j}}}),tg=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:c,elements:u}=t,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:p=!0,...v}=at(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const w=st(o),y=yt(s),C=st(s)===s,S=await(c.isRTL==null?void 0:c.isRTL(u.floating)),E=h||(C||!p?[rr(s)]:Kp(s)),D=b!=="none";!h&&D&&E.push(...Qp(s,p,b,S));const P=[s,...E],O=await hn(t,v),B=[];let L=((r=a.flip)==null?void 0:r.overflows)||[];if(f&&B.push(O[w]),m){const G=qp(o,i,S);B.push(O[G[0]],O[G[1]])}if(L=[...L,{placement:o,overflows:B}],!B.every(G=>G<=0)){var V,R;const G=(((V=a.flip)==null?void 0:V.index)||0)+1,X=P[G];if(X)return{data:{index:G,overflows:L},reset:{placement:X}};let j=(R=L.filter(z=>z.overflows[0]<=0).sort((z,F)=>z.overflows[1]-F.overflows[1])[0])==null?void 0:R.placement;if(!j)switch(g){case"bestFit":{var H;const z=(H=L.filter(F=>{if(D){const T=yt(F.placement);return T===y||T==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(T=>T>0).reduce((T,Z)=>T+Z,0)]).sort((F,T)=>F[1]-T[1])[0])==null?void 0:H[0];z&&(j=z);break}case"initialPlacement":j=s;break}if(o!==j)return{reset:{placement:j}}}return{}}}};function hi(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function pi(e){return Hp.some(t=>e[t]>=0)}const ng=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=at(e,t);switch(r){case"referenceHidden":{const a=await hn(t,{...o,elementContext:"reference"}),i=hi(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:pi(i)}}}case"escaped":{const a=await hn(t,{...o,altBoundary:!0}),i=hi(a,n.floating);return{data:{escapedOffsets:i,escaped:pi(i)}}}default:return{}}}}};async function rg(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=st(n),s=Yt(n),c=yt(n)==="y",u=["left","top"].includes(i)?-1:1,f=a&&c?-1:1,m=at(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:b}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return s&&typeof b=="number"&&(g=s==="end"?b*-1:b),c?{x:g*f,y:h*u}:{x:h*u,y:g*f}}const og=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,c=await rg(t,e);return i===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:i}}}}},ag=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:i=!1,limiter:s={fn:v=>{let{x:w,y}=v;return{x:w,y}}},...c}=at(e,t),u={x:n,y:r},f=await hn(t,c),m=yt(st(o)),h=uo(m);let g=u[h],b=u[m];if(a){const v=h==="y"?"top":"left",w=h==="y"?"bottom":"right",y=g+f[v],C=g-f[w];g=lo(y,g,C)}if(i){const v=m==="y"?"top":"left",w=m==="y"?"bottom":"right",y=b+f[v],C=b-f[w];b=lo(y,b,C)}const p=s.fn({...t,[h]:g,[m]:b});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[h]:a,[m]:i}}}}}},sg=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:c=!0,crossAxis:u=!0}=at(e,t),f={x:n,y:r},m=yt(o),h=uo(m);let g=f[h],b=f[m];const p=at(s,t),v=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const C=h==="y"?"height":"width",S=a.reference[h]-a.floating[C]+v.mainAxis,E=a.reference[h]+a.reference[C]-v.mainAxis;g<S?g=S:g>E&&(g=E)}if(u){var w,y;const C=h==="y"?"width":"height",S=["top","left"].includes(st(o)),E=a.reference[m]-a.floating[C]+(S&&((w=i.offset)==null?void 0:w[m])||0)+(S?0:v.crossAxis),D=a.reference[m]+a.reference[C]+(S?0:((y=i.offset)==null?void 0:y[m])||0)-(S?v.crossAxis:0);b<E?b=E:b>D&&(b=D)}return{[h]:g,[m]:b}}}},ig=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:c=()=>{},...u}=at(e,t),f=await hn(t,u),m=st(o),h=Yt(o),g=yt(o)==="y",{width:b,height:p}=a.floating;let v,w;m==="top"||m==="bottom"?(v=m,w=h===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(w=m,v=h==="end"?"top":"bottom");const y=p-f.top-f.bottom,C=b-f.left-f.right,S=vt(p-f[v],y),E=vt(b-f[w],C),D=!t.middlewareData.shift;let P=S,O=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=y),D&&!h){const L=Ie(f.left,0),V=Ie(f.right,0),R=Ie(f.top,0),H=Ie(f.bottom,0);g?O=b-2*(L!==0||V!==0?L+V:Ie(f.left,f.right)):P=p-2*(R!==0||H!==0?R+H:Ie(f.top,f.bottom))}await c({...t,availableWidth:O,availableHeight:P});const B=await i.getDimensions(s.floating);return b!==B.width||p!==B.height?{reset:{rects:!0}}:{}}}};function ar(){return typeof window<"u"}function Gt(e){return gi(e)?(e.nodeName||"").toLowerCase():"#document"}function je(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Qe(e){var t;return(t=(gi(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function gi(e){return ar()?e instanceof Node||e instanceof je(e).Node:!1}function $e(e){return ar()?e instanceof Element||e instanceof je(e).Element:!1}function Ze(e){return ar()?e instanceof HTMLElement||e instanceof je(e).HTMLElement:!1}function vi(e){return!ar()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof je(e).ShadowRoot}function pn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Le(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function cg(e){return["table","td","th"].includes(Gt(e))}function sr(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function po(e){const t=go(),n=$e(e)?Le(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function lg(e){let t=bt(e);for(;Ze(t)&&!Ht(t);){if(po(t))return t;if(sr(t))return null;t=bt(t)}return null}function go(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ht(e){return["html","body","#document"].includes(Gt(e))}function Le(e){return je(e).getComputedStyle(e)}function ir(e){return $e(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function bt(e){if(Gt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||vi(e)&&e.host||Qe(e);return vi(t)?t.host:t}function yi(e){const t=bt(e);return Ht(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ze(t)&&pn(t)?t:yi(t)}function gn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=yi(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),i=je(o);if(a){const s=vo(i);return t.concat(i,i.visualViewport||[],pn(o)?o:[],s&&n?gn(s):[])}return t.concat(o,gn(o,[],n))}function vo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bi(e){const t=Le(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ze(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=tr(n)!==a||tr(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function yo(e){return $e(e)?e:e.contextElement}function zt(e){const t=yo(e);if(!Ze(t))return Xe(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=bi(t);let i=(a?tr(n.width):n.width)/r,s=(a?tr(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const ug=Xe(0);function wi(e){const t=je(e);return!go()||!t.visualViewport?ug:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function dg(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==je(e)?!1:t}function Tt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=yo(e);let i=Xe(1);t&&(r?$e(r)&&(i=zt(r)):i=zt(e));const s=dg(a,n,r)?wi(a):Xe(0);let c=(o.left+s.x)/i.x,u=(o.top+s.y)/i.y,f=o.width/i.x,m=o.height/i.y;if(a){const h=je(a),g=r&&$e(r)?je(r):r;let b=h,p=vo(b);for(;p&&r&&g!==b;){const v=zt(p),w=p.getBoundingClientRect(),y=Le(p),C=w.left+(p.clientLeft+parseFloat(y.paddingLeft))*v.x,S=w.top+(p.clientTop+parseFloat(y.paddingTop))*v.y;c*=v.x,u*=v.y,f*=v.x,m*=v.y,c+=C,u+=S,b=je(p),p=vo(b)}}return or({width:f,height:m,x:c,y:u})}function bo(e,t){const n=ir(e).scrollLeft;return t?t.left+n:Tt(Qe(e)).left+n}function xi(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:bo(e,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function fg(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",i=Qe(r),s=t?sr(t.floating):!1;if(r===i||s&&a)return n;let c={scrollLeft:0,scrollTop:0},u=Xe(1);const f=Xe(0),m=Ze(r);if((m||!m&&!a)&&((Gt(r)!=="body"||pn(i))&&(c=ir(r)),Ze(r))){const g=Tt(r);u=zt(r),f.x=g.x+r.clientLeft,f.y=g.y+r.clientTop}const h=i&&!m&&!a?xi(i,c,!0):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 mg(e){return Array.from(e.getClientRects())}function hg(e){const t=Qe(e),n=ir(e),r=e.ownerDocument.body,o=Ie(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Ie(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+bo(e);const s=-n.scrollTop;return Le(r).direction==="rtl"&&(i+=Ie(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}function pg(e,t){const n=je(e),r=Qe(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,c=0;if(o){a=o.width,i=o.height;const u=go();(!u||u&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:a,height:i,x:s,y:c}}function gg(e,t){const n=Tt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Ze(e)?zt(e):Xe(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,c=o*a.x,u=r*a.y;return{width:i,height:s,x:c,y:u}}function Ci(e,t,n){let r;if(t==="viewport")r=pg(e,n);else if(t==="document")r=hg(Qe(e));else if($e(t))r=gg(t,n);else{const o=wi(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return or(r)}function Si(e,t){const n=bt(e);return n===t||!$e(n)||Ht(n)?!1:Le(n).position==="fixed"||Si(n,t)}function vg(e,t){const n=t.get(e);if(n)return n;let r=gn(e,[],!1).filter(s=>$e(s)&&Gt(s)!=="body"),o=null;const a=Le(e).position==="fixed";let i=a?bt(e):e;for(;$e(i)&&!Ht(i);){const s=Le(i),c=po(i);!c&&s.position==="fixed"&&(o=null),(a?!c&&!o:!c&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||pn(i)&&!c&&Si(e,i))?r=r.filter(f=>f!==i):o=s,i=bt(i)}return t.set(e,r),r}function yg(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?sr(t)?[]:vg(t,this._c):[].concat(n),r],s=i[0],c=i.reduce((u,f)=>{const m=Ci(t,f,o);return u.top=Ie(m.top,u.top),u.right=vt(m.right,u.right),u.bottom=vt(m.bottom,u.bottom),u.left=Ie(m.left,u.left),u},Ci(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function bg(e){const{width:t,height:n}=bi(e);return{width:t,height:n}}function wg(e,t,n){const r=Ze(t),o=Qe(t),a=n==="fixed",i=Tt(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const c=Xe(0);if(r||!r&&!a)if((Gt(t)!=="body"||pn(o))&&(s=ir(t)),r){const h=Tt(t,!0,a,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else o&&(c.x=bo(o));const u=o&&!r&&!a?xi(o,s):Xe(0),f=i.left+s.scrollLeft-c.x-u.x,m=i.top+s.scrollTop-c.y-u.y;return{x:f,y:m,width:i.width,height:i.height}}function wo(e){return Le(e).position==="static"}function Mi(e,t){if(!Ze(e)||Le(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Qe(e)===n&&(n=n.ownerDocument.body),n}function Ni(e,t){const n=je(e);if(sr(e))return n;if(!Ze(e)){let o=bt(e);for(;o&&!Ht(o);){if($e(o)&&!wo(o))return o;o=bt(o)}return n}let r=Mi(e,t);for(;r&&cg(r)&&wo(r);)r=Mi(r,t);return r&&Ht(r)&&wo(r)&&!po(r)?n:r||lg(e)||n}const xg=async function(e){const t=this.getOffsetParent||Ni,n=this.getDimensions,r=await n(e.floating);return{reference:wg(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Cg(e){return Le(e).direction==="rtl"}const Sg={convertOffsetParentRelativeRectToViewportRelativeRect:fg,getDocumentElement:Qe,getClippingRect:yg,getOffsetParent:Ni,getElementRects:xg,getClientRects:mg,getDimensions:bg,getScale:zt,isElement:$e,isRTL:Cg};function Mg(e,t){let n=null,r;const o=Qe(e);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function i(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();const{left:u,top:f,width:m,height:h}=e.getBoundingClientRect();if(s||t(),!m||!h)return;const g=nr(f),b=nr(o.clientWidth-(u+m)),p=nr(o.clientHeight-(f+h)),v=nr(u),y={rootMargin:-g+"px "+-b+"px "+-p+"px "+-v+"px",threshold:Ie(0,vt(1,c))||1};let C=!0;function S(E){const D=E[0].intersectionRatio;if(D!==c){if(!C)return i();D?i(!1,D):r=setTimeout(()=>{i(!1,1e-7)},1e3)}C=!1}try{n=new IntersectionObserver(S,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,y)}n.observe(e)}return i(!0),a}function Ng(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=yo(e),f=o||a?[...u?gn(u):[],...gn(t)]:[];f.forEach(w=>{o&&w.addEventListener("scroll",n,{passive:!0}),a&&w.addEventListener("resize",n)});const m=u&&s?Mg(u,n):null;let h=-1,g=null;i&&(g=new ResizeObserver(w=>{let[y]=w;y&&y.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var C;(C=g)==null||C.observe(t)})),n()}),u&&!c&&g.observe(u),g.observe(t));let b,p=c?Tt(e):null;c&&v();function v(){const w=Tt(e);p&&(w.x!==p.x||w.y!==p.y||w.width!==p.width||w.height!==p.height)&&n(),p=w,b=requestAnimationFrame(v)}return n(),()=>{var w;f.forEach(y=>{o&&y.removeEventListener("scroll",n),a&&y.removeEventListener("resize",n)}),m==null||m(),(w=g)==null||w.disconnect(),g=null,c&&cancelAnimationFrame(b)}}const Eg=og,Pg=ag,Dg=tg,kg=ig,Tg=ng,Ei=eg,Og=sg,Ag=(e,t,n)=>{const r=new Map,o={platform:Sg,...n},a={...o.platform,_c:r};return Jp(e,t,{...o,platform:a})};var cr=typeof document<"u"?M.useLayoutEffect:M.useEffect;function lr(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(!lr(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)&&!lr(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Pi(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Di(e,t){const n=Pi(e);return Math.round(t*n)/n}function xo(e){const t=l.useRef(e);return cr(()=>{t.current=e}),t}function Rg(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[f,m]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=l.useState(r);lr(h,r)||g(r);const[b,p]=l.useState(null),[v,w]=l.useState(null),y=l.useCallback(F=>{F!==D.current&&(D.current=F,p(F))},[]),C=l.useCallback(F=>{F!==P.current&&(P.current=F,w(F))},[]),S=a||b,E=i||v,D=l.useRef(null),P=l.useRef(null),O=l.useRef(f),B=c!=null,L=xo(c),V=xo(o),R=xo(u),H=l.useCallback(()=>{if(!D.current||!P.current)return;const F={placement:t,strategy:n,middleware:h};V.current&&(F.platform=V.current),Ag(D.current,P.current,F).then(T=>{const Z={...T,isPositioned:R.current!==!1};G.current&&!lr(O.current,Z)&&(O.current=Z,Wn.flushSync(()=>{m(Z)}))})},[h,t,n,V,R]);cr(()=>{u===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,m(F=>({...F,isPositioned:!1})))},[u]);const G=l.useRef(!1);cr(()=>(G.current=!0,()=>{G.current=!1}),[]),cr(()=>{if(S&&(D.current=S),E&&(P.current=E),S&&E){if(L.current)return L.current(S,E,H);H()}},[S,E,H,L,B]);const X=l.useMemo(()=>({reference:D,floating:P,setReference:y,setFloating:C}),[y,C]),j=l.useMemo(()=>({reference:S,floating:E}),[S,E]),z=l.useMemo(()=>{const F={position:n,left:0,top:0};if(!j.floating)return F;const T=Di(j.floating,f.x),Z=Di(j.floating,f.y);return s?{...F,transform:"translate("+T+"px, "+Z+"px)",...Pi(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:T,top:Z}},[n,s,j.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:H,refs:X,elements:j,floatingStyles:z}),[f,H,X,j,z])}const _g=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?Ei({element:r.current,padding:o}).fn(n):{}:r?Ei({element:r,padding:o}).fn(n):{}}}},Ig=(e,t)=>({...Eg(e),options:[e,t]}),jg=(e,t)=>({...Pg(e),options:[e,t]}),Fg=(e,t)=>({...Og(e),options:[e,t]}),Wg=(e,t)=>({...Dg(e),options:[e,t]}),$g=(e,t)=>({...kg(e),options:[e,t]}),Lg=(e,t)=>({...Tg(e),options:[e,t]}),Bg=(e,t)=>({..._g(e),options:[e,t]});var Vg="Arrow",ki=l.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return d.jsx(W.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});ki.displayName=Vg;var Yg=ki;function ur(e){const[t,n]=l.useState(void 0);return Se(()=>{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 i,s;if("borderBoxSize"in a){const c=a.borderBoxSize,u=Array.isArray(c)?c[0]:c;i=u.inlineSize,s=u.blockSize}else i=e.offsetWidth,s=e.offsetHeight;n({width:i,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Co="Popper",[Ti,wt]=ye(Co),[Gg,Oi]=Ti(Co),Ai=e=>{const{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return d.jsx(Gg,{scope:t,anchor:r,onAnchorChange:o,children:n})};Ai.displayName=Co;var Ri="PopperAnchor",_i=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=Oi(Ri,n),i=l.useRef(null),s=J(t,i);return l.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:d.jsx(W.div,{...o,ref:s})});_i.displayName=Ri;var So="PopperContent",[Hg,zg]=Ti(So),Ii=l.forwardRef((e,t)=>{var $,ne,ae,ee,re,te;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:m="partial",hideWhenDetached:h=!1,updatePositionStrategy:g="optimized",onPlaced:b,...p}=e,v=Oi(So,n),[w,y]=l.useState(null),C=J(t,we=>y(we)),[S,E]=l.useState(null),D=ur(S),P=(D==null?void 0:D.width)??0,O=(D==null?void 0:D.height)??0,B=r+(a!=="center"?"-"+a:""),L=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},V=Array.isArray(u)?u:[u],R=V.length>0,H={padding:L,boundary:V.filter(qg),altBoundary:R},{refs:G,floatingStyles:X,placement:j,isPositioned:z,middlewareData:F}=Rg({strategy:"fixed",placement:B,whileElementsMounted:(...we)=>Ng(...we,{animationFrame:g==="always"}),elements:{reference:v.anchor},middleware:[Ig({mainAxis:o+O,alignmentAxis:i}),c&&jg({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?Fg():void 0,...H}),c&&Wg({...H}),$g({...H,apply:({elements:we,rects:Pe,availableWidth:Ye,availableHeight:dt})=>{const{width:Ge,height:rn}=Pe.reference,ft=we.floating.style;ft.setProperty("--radix-popper-available-width",`${Ye}px`),ft.setProperty("--radix-popper-available-height",`${dt}px`),ft.setProperty("--radix-popper-anchor-width",`${Ge}px`),ft.setProperty("--radix-popper-anchor-height",`${rn}px`)}}),S&&Bg({element:S,padding:s}),Kg({arrowWidth:P,arrowHeight:O}),h&&Lg({strategy:"referenceHidden",...H})]}),[T,Z]=Wi(j),U=Re(b);Se(()=>{z&&(U==null||U())},[z,U]);const ve=($=F.arrow)==null?void 0:$.x,Me=(ne=F.arrow)==null?void 0:ne.y,pe=((ae=F.arrow)==null?void 0:ae.centerOffset)!==0,[Oe,he]=l.useState();return Se(()=>{w&&he(window.getComputedStyle(w).zIndex)},[w]),d.jsx("div",{ref:G.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:z?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Oe,"--radix-popper-transform-origin":[(ee=F.transformOrigin)==null?void 0:ee.x,(re=F.transformOrigin)==null?void 0:re.y].join(" "),...((te=F.hide)==null?void 0:te.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:d.jsx(Hg,{scope:n,placedSide:T,onArrowChange:E,arrowX:ve,arrowY:Me,shouldHideArrow:pe,children:d.jsx(W.div,{"data-side":T,"data-align":Z,...p,ref:C,style:{...p.style,animation:z?void 0:"none"}})})})});Ii.displayName=So;var ji="PopperArrow",Ug={top:"bottom",right:"left",bottom:"top",left:"right"},Fi=l.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=zg(ji,r),i=Ug[a.placedSide];return d.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]: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:d.jsx(Yg,{...o,ref:n,style:{...o.style,display:"block"}})})});Fi.displayName=ji;function qg(e){return e!==null}var Kg=e=>({name:"transformOrigin",options:e,fn(t){var v,w,y;const{placement:n,rects:r,middlewareData:o}=t,i=((v=o.arrow)==null?void 0:v.centerOffset)!==0,s=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[u,f]=Wi(n),m={start:"0%",center:"50%",end:"100%"}[f],h=(((w=o.arrow)==null?void 0:w.x)??0)+s/2,g=(((y=o.arrow)==null?void 0:y.y)??0)+c/2;let b="",p="";return u==="bottom"?(b=i?m:`${h}px`,p=`${-c}px`):u==="top"?(b=i?m:`${h}px`,p=`${r.floating.height+c}px`):u==="right"?(b=`${-c}px`,p=i?m:`${g}px`):u==="left"&&(b=`${r.floating.width+c}px`,p=i?m:`${g}px`),{data:{x:b,y:p}}}});function Wi(e){const[t,n="center"]=e.split("-");return[t,n]}var vn=Ai,yn=_i,dr=Ii,fr=Fi,Mo="Popover",[$i,TM]=ye(Mo,[wt]),bn=wt(),[Xg,xt]=$i(Mo),Li=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,s=bn(t),c=l.useRef(null),[u,f]=l.useState(!1),[m=!1,h]=ke({prop:r,defaultProp:o,onChange:a});return d.jsx(vn,{...s,children:d.jsx(Xg,{scope:t,contentId:Ae(),triggerRef:c,open:m,onOpenChange:h,onOpenToggle:l.useCallback(()=>h(g=>!g),[h]),hasCustomAnchor:u,onCustomAnchorAdd:l.useCallback(()=>f(!0),[]),onCustomAnchorRemove:l.useCallback(()=>f(!1),[]),modal:i,children:n})})};Li.displayName=Mo;var Bi="PopoverAnchor",Vi=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=xt(Bi,n),a=bn(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:s}=o;return l.useEffect(()=>(i(),()=>s()),[i,s]),d.jsx(yn,{...a,...r,ref:t})});Vi.displayName=Bi;var Yi="PopoverTrigger",Gi=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=xt(Yi,n),a=bn(n),i=J(t,o.triggerRef),s=d.jsx(W.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ki(o.open),...r,ref:i,onClick:A(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:d.jsx(yn,{asChild:!0,...a,children:s})});Gi.displayName=Yi;var No="PopoverPortal",[Qg,Zg]=$i(No,{forceMount:void 0}),Hi=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=xt(No,t);return d.jsx(Qg,{scope:t,forceMount:n,children:d.jsx(Te,{present:n||a.open,children:d.jsx(dn,{asChild:!0,container:o,children:r})})})};Hi.displayName=No;var Ut="PopoverContent",zi=l.forwardRef((e,t)=>{const n=Zg(Ut,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=xt(Ut,e.__scopePopover);return d.jsx(Te,{present:r||a.open,children:a.modal?d.jsx(Jg,{...o,ref:t}):d.jsx(ev,{...o,ref:t})})});zi.displayName=Ut;var Jg=l.forwardRef((e,t)=>{const n=xt(Ut,e.__scopePopover),r=l.useRef(null),o=J(t,r),a=l.useRef(!1);return l.useEffect(()=>{const i=r.current;if(i)return Zn(i)},[]),d.jsx(fn,{as:Ue,allowPinchZoom:!0,children:d.jsx(Ui,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:A(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),a.current||(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:A(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,c=s.button===0&&s.ctrlKey===!0,u=s.button===2||c;a.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:A(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),ev=l.forwardRef((e,t)=>{const n=xt(Ut,e.__scopePopover),r=l.useRef(!1),o=l.useRef(!1);return d.jsx(Ui,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,s;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.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 i=a.target;((u=n.triggerRef.current)==null?void 0:u.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Ui=l.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:f,...m}=e,h=xt(Ut,n),g=bn(n);return Gn(),d.jsx(un,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:d.jsx(Ft,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:f,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>h.onOpenChange(!1),children:d.jsx(dr,{"data-state":Ki(h.open),role:"dialog",id:h.contentId,...g,...m,ref:t,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),qi="PopoverClose",tv=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=xt(qi,n);return d.jsx(W.button,{type:"button",...r,ref:t,onClick:A(e.onClick,()=>o.onOpenChange(!1))})});tv.displayName=qi;var nv="PopoverArrow",rv=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=bn(n);return d.jsx(fr,{...o,...r,ref:t})});rv.displayName=nv;function Ki(e){return e?"open":"closed"}var ov=Li,av=Vi,sv=Gi,iv=Hi,Xi=zi;const Qi=ov,Zi=sv,cv=av,Eo=l.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>d.jsx(iv,{children:d.jsx(Xi,{ref:o,align:t,sideOffset:n,className:k("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",e),...r})}));Eo.displayName=Xi.displayName;function lv(e){const{value:t="",onChange:n,options:r,className:o,placeholder:a="Search...",emptyMessage:i="Nothing found"}=e,[s,c]=M.useState(t),[u,f]=M.useState(r),[m,h]=M.useState(-1),[g,b]=M.useState(!1),p=S=>{const E=S.target.value;c(E),n==null||n(E),h(-1),b(!0),E.trim()===""?f(r):f(r.filter(D=>D.label.toLowerCase().includes(E.toLowerCase())))},v=S=>{if(S.key==="ArrowDown")S.preventDefault(),h(E=>E<u.length-1?E+1:E);else if(S.key==="ArrowUp")S.preventDefault(),h(E=>E>0?E-1:-1);else if(S.key==="Enter"&&m>=0){const E=u[m];c(E.label),n==null||n(E.value),f([]),h(-1),b(!1)}else S.key==="Escape"&&(f([]),h(-1))},w=S=>{b(!1),c(S.label),n==null||n(S.value),f(r),h(-1)},y=()=>{b(!0)},C=()=>{b(!1)};return d.jsxs(Qi,{open:g,children:[d.jsx(Zi,{asChild:!0,children:d.jsx("div",{className:"relative w-full",children:d.jsx(Bn,{type:"text",placeholder:a,value:s,onChange:p,onKeyDown:v,onClick:y,onFocus:y,onBlur:C,className:k("pr-10",o),"aria-label":"Search field","aria-autocomplete":"list","aria-controls":"suggestions-list","aria-expanded":u.length>0,leftIcon:d.jsx(Yp,{className:"w-4 h-4"})})})}),d.jsx(Eo,{className:"p-0 w-[var(--radix-popover-trigger-width)] max-h-96 overflow-y-auto",children:u.length>0?d.jsx("ul",{id:"suggestions-list",role:"listbox",children:u.map((S,E)=>d.jsx("li",{className:`px-4 py-2 cursor-pointer hover:bg-muted ${E===m?"bg-muted":""}`,onClick:()=>w(S),role:"option","aria-selected":E===m,children:S.label},S.value))}):d.jsx("span",{className:"px-4 py-2 block",children:i})})]})}var Po="Avatar",[uv,OM]=ye(Po),[dv,Ji]=uv(Po),ec=l.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,a]=l.useState("idle");return d.jsx(dv,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:d.jsx(W.span,{...r,ref:t})})});ec.displayName=Po;var tc="AvatarImage",nc=l.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,i=Ji(tc,n),s=fv(r,a.referrerPolicy),c=Re(u=>{o(u),i.onImageLoadingStatusChange(u)});return Se(()=>{s!=="idle"&&c(s)},[s,c]),s==="loaded"?d.jsx(W.img,{...a,ref:t,src:r}):null});nc.displayName=tc;var rc="AvatarFallback",oc=l.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=Ji(rc,n),[i,s]=l.useState(r===void 0);return l.useEffect(()=>{if(r!==void 0){const c=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(c)}},[r]),i&&a.imageLoadingStatus!=="loaded"?d.jsx(W.span,{...o,ref:t}):null});oc.displayName=rc;function fv(e,t){const[n,r]=l.useState("idle");return Se(()=>{if(!e){r("error");return}let o=!0;const a=new window.Image,i=s=>()=>{o&&r(s)};return r("loading"),a.onload=i("loaded"),a.onerror=i("error"),a.src=e,t&&(a.referrerPolicy=t),()=>{o=!1}},[e,t]),n}var ac=ec,sc=nc,ic=oc;const cc=l.forwardRef(({className:e,...t},n)=>d.jsx(ac,{ref:n,className:k("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));cc.displayName=ac.displayName;const lc=l.forwardRef(({className:e,...t},n)=>d.jsx(sc,{ref:n,className:k("aspect-square h-full w-full",e),...t}));lc.displayName=sc.displayName;const uc=l.forwardRef(({className:e,...t},n)=>d.jsx(ic,{ref:n,className:k("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));uc.displayName=ic.displayName;const dc=ln("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function mv({className:e,variant:t,...n}){return d.jsx("div",{className:k(dc({variant:t}),e),...n})}function qt(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function Je(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):i;o=e.formattingValues[s]||e.formattingValues[i]}else{const i=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[s]||e.values[i]}const a=e.argumentCallback?e.argumentCallback(t):t;return o[a]}}function et(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const i=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?pv(s,m=>m.test(i)):hv(s,m=>m.test(i));let u;u=e.valueCallback?e.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;const f=t.slice(i.length);return{value:u,rest:f}}}function hv(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function pv(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function fc(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],a=t.match(e.parsePattern);if(!a)return null;let i=e.valueCallback?e.valueCallback(a[0]):a[0];i=n.valueCallback?n.valueCallback(i):i;const s=t.slice(o.length);return{value:i,rest:s}}}const mc=6048e5,gv=864e5,hc=Symbol.for("constructDateFrom");function ge(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&hc in e?e[hc](t):e instanceof Date?new e.constructor(t):new Date(t)}function Kt(e,...t){const n=ge.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}let vv={};function wn(){return vv}function ue(e,t){return ge(t||e,e)}function Xt(e,t){var s,c,u,f;const n=wn(),r=(t==null?void 0:t.weekStartsOn)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((f=(u=n.locale)==null?void 0:u.options)==null?void 0:f.weekStartsOn)??0,o=ue(e,t==null?void 0:t.in),a=o.getDay(),i=(a<r?7:0)+a-r;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}const yv={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},bv=(e,t,n)=>{let r;const o=yv[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},wv={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},xv=(e,t,n,r)=>wv[e],Cv={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Sv={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Mv={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Nv={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Ev={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Pv={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Dv={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Je({values:Cv,defaultWidth:"wide"}),quarter:Je({values:Sv,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Je({values:Mv,defaultWidth:"wide"}),day:Je({values:Nv,defaultWidth:"wide"}),dayPeriod:Je({values:Ev,defaultWidth:"wide",formattingValues:Pv,defaultFormattingWidth:"wide"})},kv=/^(\d+)(th|st|nd|rd)?/i,Tv=/\d+/i,Ov={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Av={any:[/^b/i,/^(a|c)/i]},Rv={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},_v={any:[/1/i,/2/i,/3/i,/4/i]},Iv={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},jv={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Fv={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Wv={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},$v={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Lv={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Bv={ordinalNumber:fc({matchPattern:kv,parsePattern:Tv,valueCallback:e=>parseInt(e,10)}),era:et({matchPatterns:Ov,defaultMatchWidth:"wide",parsePatterns:Av,defaultParseWidth:"any"}),quarter:et({matchPatterns:Rv,defaultMatchWidth:"wide",parsePatterns:_v,defaultParseWidth:"any",valueCallback:e=>e+1}),month:et({matchPatterns:Iv,defaultMatchWidth:"wide",parsePatterns:jv,defaultParseWidth:"any"}),day:et({matchPatterns:Fv,defaultMatchWidth:"wide",parsePatterns:Wv,defaultParseWidth:"any"}),dayPeriod:et({matchPatterns:$v,defaultMatchWidth:"any",parsePatterns:Lv,defaultParseWidth:"any"})},Vv={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Yv={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Gv={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Hv={date:qt({formats:Vv,defaultWidth:"full"}),time:qt({formats:Yv,defaultWidth:"full"}),dateTime:qt({formats:Gv,defaultWidth:"full"})},mr={code:"en-US",formatDistance:bv,formatLong:Hv,formatRelative:xv,localize:Dv,match:Bv,options:{weekStartsOn:0,firstWeekContainsDate:1}},zv={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 mês",other:"cerca de {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},Uv=(e,t,n)=>{let r;const o=zv[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"em "+r:"há "+r:r},qv={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},Kv={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Xv={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Qv={date:qt({formats:qv,defaultWidth:"full"}),time:qt({formats:Kv,defaultWidth:"full"}),dateTime:qt({formats:Xv,defaultWidth:"full"})},Zv={lastWeek:e=>{const t=e.getDay();return"'"+(t===0||t===6?"último":"última")+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},Jv=(e,t,n,r)=>{const o=Zv[e];return typeof o=="function"?o(t):o},ey={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},ty={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},ny={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},ry={narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},oy={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"}},ay={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},sy={ordinalNumber:(e,t)=>{const n=Number(e);return(t==null?void 0:t.unit)==="week"?n+"ª":n+"º"},era:Je({values:ey,defaultWidth:"wide"}),quarter:Je({values:ty,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Je({values:ny,defaultWidth:"wide"}),day:Je({values:ry,defaultWidth:"wide"}),dayPeriod:Je({values:oy,defaultWidth:"wide",formattingValues:ay,defaultFormattingWidth:"wide"})},iy=/^(\d+)[ºªo]?/i,cy=/\d+/i,ly={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},uy={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},dy={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},fy={any:[/1/i,/2/i,/3/i,/4/i]},my={narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},hy={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},py={narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},gy={short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},vy={narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},yy={any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},by={ordinalNumber:fc({matchPattern:iy,parsePattern:cy,valueCallback:e=>parseInt(e,10)}),era:et({matchPatterns:ly,defaultMatchWidth:"wide",parsePatterns:uy,defaultParseWidth:"any"}),quarter:et({matchPatterns:dy,defaultMatchWidth:"wide",parsePatterns:fy,defaultParseWidth:"any",valueCallback:e=>e+1}),month:et({matchPatterns:my,defaultMatchWidth:"wide",parsePatterns:hy,defaultParseWidth:"any"}),day:et({matchPatterns:py,defaultMatchWidth:"wide",parsePatterns:gy,defaultParseWidth:"any"}),dayPeriod:et({matchPatterns:vy,defaultMatchWidth:"any",parsePatterns:yy,defaultParseWidth:"any"})},wy={code:"pt-BR",formatDistance:Uv,formatLong:Qv,formatRelative:Jv,localize:sy,match:by,options:{weekStartsOn:0,firstWeekContainsDate:1}};var Y;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(Y||(Y={}));var de;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(de||(de={}));var Be;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(Be||(Be={}));const Do={},xn={};function Cn(e,t){try{const r=(Do[e]||(Do[e]=new Intl.DateTimeFormat("en-GB",{timeZone:e,hour:"numeric",timeZoneName:"longOffset"}).format))(t).split("GMT")[1]||"";return r in xn?xn[r]:pc(r,r.split(":"))}catch{if(e in xn)return xn[e];const n=e==null?void 0:e.match(xy);return n?pc(e,n.slice(1)):NaN}}const xy=/([+-]\d\d):?(\d\d)?/;function pc(e,t){const n=+t[0],r=+(t[1]||0);return xn[e]=n>0?n*60+r:n*60-r}class tt extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(Cn(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),vc(this),ko(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new tt(...n,t):new tt(Date.now(),t)}withTimeZone(t){return new tt(+this,t)}getTimezoneOffset(){return-Cn(this.timeZone,this)}setTime(t){return Date.prototype.setTime.apply(this,arguments),ko(this),+this}[Symbol.for("constructDateFrom")](t){return new tt(+new Date(t),this.timeZone)}}const gc=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!gc.test(e))return;const t=e.replace(gc,"$1UTC");tt.prototype[t]&&(e.startsWith("get")?tt.prototype[e]=function(){return this.internal[t]()}:(tt.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),Cy(this),+this},tt.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),ko(this),+this}))});function ko(e){e.internal.setTime(+e),e.internal.setUTCMinutes(e.internal.getUTCMinutes()-e.getTimezoneOffset())}function Cy(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),vc(e)}function vc(e){const t=Cn(e.timeZone,e),n=new Date(+e);n.setUTCHours(n.getUTCHours()-1);const r=-new Date(+e).getTimezoneOffset(),o=-new Date(+n).getTimezoneOffset(),a=r-o,i=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&i&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);const s=r-t;s&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+s);const c=Cn(e.timeZone,e),f=-new Date(+e).getTimezoneOffset()-c,m=c!==t,h=f-s;if(m&&h){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+h);const g=Cn(e.timeZone,e),b=c-g;b&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+b),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+b))}}class Ot extends tt{static tz(t,...n){return n.length?new Ot(...n,t):new Ot(Date.now(),t)}toISOString(){const[t,n,r]=this.tzComponents(),o=`${t}${n}:${r}`;return this.internal.toISOString().slice(0,-1)+o}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,n,r,o]=this.internal.toUTCString().split(" ");return`${t==null?void 0:t.slice(0,-1)} ${r} ${n} ${o}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[n,r,o]=this.tzComponents();return`${t} GMT${n}${r}${o} (${Sy(this.timeZone,this)})`}toLocaleString(t,n){return Date.prototype.toLocaleString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}toLocaleDateString(t,n){return Date.prototype.toLocaleDateString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}toLocaleTimeString(t,n){return Date.prototype.toLocaleTimeString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),n=t>0?"-":"+",r=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),o=String(Math.abs(t)%60).padStart(2,"0");return[n,r,o]}withTimeZone(t){return new Ot(+this,t)}[Symbol.for("constructDateFrom")](t){return new Ot(+new Date(t),this.timeZone)}}function Sy(e,t){return new Intl.DateTimeFormat("en-GB",{timeZone:e,timeZoneName:"long"}).format(t).slice(12)}function yc(e,t,n){const r=ue(e,n==null?void 0:n.in);return isNaN(t)?ge(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function bc(e,t,n){const r=ue(e,n==null?void 0:n.in);if(isNaN(t))return ge(e,NaN);if(!t)return r;const o=r.getDate(),a=ge(e,r.getTime());a.setMonth(r.getMonth()+t+1,0);const i=a.getDate();return o>=i?a:(r.setFullYear(a.getFullYear(),a.getMonth(),o),r)}function Sn(e,t){return Xt(e,{...t,weekStartsOn:1})}function wc(e,t){const n=ue(e,t==null?void 0:t.in),r=n.getFullYear(),o=ge(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const a=Sn(o),i=ge(n,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const s=Sn(i);return n.getTime()>=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function xc(e){const t=ue(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Mn(e,t){const n=ue(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function Cc(e,t,n){const[r,o]=Kt(n==null?void 0:n.in,e,t),a=Mn(r),i=Mn(o),s=+a-xc(a),c=+i-xc(i);return Math.round((s-c)/gv)}function My(e,t){const n=wc(e,t),r=ge(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Sn(r)}function Ny(e,t,n){return yc(e,t*7,n)}function Ey(e,t,n){return bc(e,t*12,n)}function Py(e,t){let n,r=t==null?void 0:t.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=ge.bind(null,o));const a=ue(o,r);(!n||n<a||isNaN(+a))&&(n=a)}),ge(r,n||NaN)}function Dy(e,t){let n,r=t==null?void 0:t.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=ge.bind(null,o));const a=ue(o,r);(!n||n>a||isNaN(+a))&&(n=a)}),ge(r,n||NaN)}function ky(e,t,n){const[r,o]=Kt(n==null?void 0:n.in,e,t);return+Mn(r)==+Mn(o)}function Sc(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Ty(e){return!(!Sc(e)&&typeof e!="number"||isNaN(+ue(e)))}function Oy(e,t,n){const[r,o]=Kt(n==null?void 0:n.in,e,t),a=r.getFullYear()-o.getFullYear(),i=r.getMonth()-o.getMonth();return a*12+i}function Ay(e,t){const n=ue(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Ry(e,t){const[n,r]=Kt(e,t.start,t.end);return{start:n,end:r}}function _y(e,t){const{start:n,end:r}=Ry(t==null?void 0:t.in,e);let o=+n>+r;const a=o?+n:+r,i=o?r:n;i.setHours(0,0,0,0),i.setDate(1);let s=1;const c=[];for(;+i<=a;)c.push(ge(n,i)),i.setMonth(i.getMonth()+s);return o?c.reverse():c}function Iy(e,t){const n=ue(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function jy(e,t){const n=ue(e,t==null?void 0:t.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function Mc(e,t){const n=ue(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Nc(e,t){var s,c,u,f;const n=wn(),r=(t==null?void 0:t.weekStartsOn)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((f=(u=n.locale)==null?void 0:u.options)==null?void 0:f.weekStartsOn)??0,o=ue(e,t==null?void 0:t.in),a=o.getDay(),i=(a<r?-7:0)+6-(a-r);return o.setDate(o.getDate()+i),o.setHours(23,59,59,999),o}function Fy(e,t){return Nc(e,{...t,weekStartsOn:1})}function Wy(e,t){const n=ue(e,t==null?void 0:t.in);return Cc(n,Mc(n))+1}function Ec(e,t){const n=ue(e,t==null?void 0:t.in),r=+Sn(n)-+My(n);return Math.round(r/mc)+1}function Pc(e,t){var f,m,h,g;const n=ue(e,t==null?void 0:t.in),r=n.getFullYear(),o=wn(),a=(t==null?void 0:t.firstWeekContainsDate)??((m=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:m.firstWeekContainsDate)??o.firstWeekContainsDate??((g=(h=o.locale)==null?void 0:h.options)==null?void 0:g.firstWeekContainsDate)??1,i=ge((t==null?void 0:t.in)||e,0);i.setFullYear(r+1,0,a),i.setHours(0,0,0,0);const s=Xt(i,t),c=ge((t==null?void 0:t.in)||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);const u=Xt(c,t);return+n>=+s?r+1:+n>=+u?r:r-1}function $y(e,t){var s,c,u,f;const n=wn(),r=(t==null?void 0:t.firstWeekContainsDate)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((f=(u=n.locale)==null?void 0:u.options)==null?void 0:f.firstWeekContainsDate)??1,o=Pc(e,t),a=ge((t==null?void 0:t.in)||e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),Xt(a,t)}function Dc(e,t){const n=ue(e,t==null?void 0:t.in),r=+Xt(n,t)-+$y(n,t);return Math.round(r/mc)+1}function le(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Ct={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return le(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):le(n+1,2)},d(e,t){return le(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return le(e.getHours()%12||12,t.length)},H(e,t){return le(e.getHours(),t.length)},m(e,t){return le(e.getMinutes(),t.length)},s(e,t){return le(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return le(o,t.length)}},Qt={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},kc={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return Ct.y(e,t)},Y:function(e,t,n,r){const o=Pc(e,r),a=o>0?o:1-o;if(t==="YY"){const i=a%100;return le(i,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):le(a,t.length)},R:function(e,t){const n=wc(e);return le(n,t.length)},u:function(e,t){const n=e.getFullYear();return le(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return le(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return le(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Ct.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return le(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=Dc(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):le(o,t.length)},I:function(e,t,n){const r=Ec(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):le(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Ct.d(e,t)},D:function(e,t,n){const r=Wy(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):le(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return le(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return le(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return le(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=Qt.noon:r===0?o=Qt.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=Qt.evening:r>=12?o=Qt.afternoon:r>=4?o=Qt.morning:o=Qt.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Ct.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Ct.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):le(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):le(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ct.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Ct.s(e,t)},S:function(e,t){return Ct.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Oc(r);case"XXXX":case"XX":return At(r);case"XXXXX":case"XXX":default:return At(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Oc(r);case"xxxx":case"xx":return At(r);case"xxxxx":case"xxx":default:return At(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Tc(r,":");case"OOOO":default:return"GMT"+At(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Tc(r,":");case"zzzz":default:return"GMT"+At(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return le(r,t.length)},T:function(e,t,n){return le(+e,t.length)}};function Tc(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return a===0?n+String(o):n+String(o)+t+le(a,2)}function Oc(e,t){return e%60===0?(e>0?"-":"+")+le(Math.abs(e)/60,2):At(e,t)}function At(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=le(Math.trunc(r/60),2),a=le(r%60,2);return n+o+t+a}const Ac=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Rc=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Ly={p:Rc,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return Ac(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",Ac(r,t)).replace("{{time}}",Rc(o,t))}},By=/^D+$/,Vy=/^Y+$/,Yy=["D","DD","YY","YYYY"];function Gy(e){return By.test(e)}function Hy(e){return Vy.test(e)}function zy(e,t,n){const r=Uy(e,t,n);if(console.warn(r),Yy.includes(e))throw new RangeError(r)}function Uy(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const qy=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ky=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Xy=/^'([^]*?)'?$/,Qy=/''/g,Zy=/[a-zA-Z]/;function Jy(e,t,n){var f,m,h,g,b,p,v,w;const r=wn(),o=(n==null?void 0:n.locale)??r.locale??mr,a=(n==null?void 0:n.firstWeekContainsDate)??((m=(f=n==null?void 0:n.locale)==null?void 0:f.options)==null?void 0:m.firstWeekContainsDate)??r.firstWeekContainsDate??((g=(h=r.locale)==null?void 0:h.options)==null?void 0:g.firstWeekContainsDate)??1,i=(n==null?void 0:n.weekStartsOn)??((p=(b=n==null?void 0:n.locale)==null?void 0:b.options)==null?void 0:p.weekStartsOn)??r.weekStartsOn??((w=(v=r.locale)==null?void 0:v.options)==null?void 0:w.weekStartsOn)??0,s=ue(e,n==null?void 0:n.in);if(!Ty(s))throw new RangeError("Invalid time value");let c=t.match(Ky).map(y=>{const C=y[0];if(C==="p"||C==="P"){const S=Ly[C];return S(y,o.formatLong)}return y}).join("").match(qy).map(y=>{if(y==="''")return{isToken:!1,value:"'"};const C=y[0];if(C==="'")return{isToken:!1,value:eb(y)};if(kc[C])return{isToken:!0,value:y};if(C.match(Zy))throw new RangeError("Format string contains an unescaped latin alphabet character `"+C+"`");return{isToken:!1,value:y}});o.localize.preprocessor&&(c=o.localize.preprocessor(s,c));const u={firstWeekContainsDate:a,weekStartsOn:i,locale:o};return c.map(y=>{if(!y.isToken)return y.value;const C=y.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&Hy(C)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&Gy(C))&&zy(C,t,String(e));const S=kc[C[0]];return S(s,C,o.localize,u)}).join("")}function eb(e){const t=e.match(Xy);return t?t[1].replace(Qy,"'"):e}function tb(e,t){const n=ue(e,t==null?void 0:t.in),r=n.getFullYear(),o=n.getMonth(),a=ge(n,0);return a.setFullYear(r,o+1,0),a.setHours(0,0,0,0),a.getDate()}function nb(e,t){return ue(e,t==null?void 0:t.in).getMonth()}function rb(e,t){return ue(e,t==null?void 0:t.in).getFullYear()}function ob(e,t){return+ue(e)>+ue(t)}function ab(e,t){return+ue(e)<+ue(t)}function sb(e,t,n){const[r,o]=Kt(n==null?void 0:n.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function ib(e,t,n){const[r,o]=Kt(n==null?void 0:n.in,e,t);return r.getFullYear()===o.getFullYear()}function cb(e,t,n){const r=ue(e,n==null?void 0:n.in),o=r.getFullYear(),a=r.getDate(),i=ge(e,0);i.setFullYear(o,t,15),i.setHours(0,0,0,0);const s=tb(i);return r.setMonth(t,Math.min(a,s)),r}function lb(e,t,n){const r=ue(e,n==null?void 0:n.in);return isNaN(+r)?ge(e,NaN):(r.setFullYear(t),r)}const _c=5,ub=4;function db(e,t){const n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,o=t.addDays(e,-r+1),a=t.addDays(o,_c*7-1);return t.getMonth(e)===t.getMonth(a)?_c:ub}function Ic(e,t){const n=t.startOfMonth(e),r=n.getDay();return r===1?n:r===0?t.addDays(n,-1*6):t.addDays(n,-1*(r-1))}function fb(e,t){const n=Ic(e,t),r=db(e,t);return t.addDays(n,r*7-1)}class it{constructor(t,n){this.Date=Date,this.today=()=>{var r;return(r=this.overrides)!=null&&r.today?this.overrides.today():this.options.timeZone?Ot.tz(this.options.timeZone):new this.Date},this.newDate=(r,o,a)=>{var i;return(i=this.overrides)!=null&&i.newDate?this.overrides.newDate(r,o,a):this.options.timeZone?new Ot(r,o,a,this.options.timeZone):new Date(r,o,a)},this.addDays=(r,o)=>{var a;return(a=this.overrides)!=null&&a.addDays?this.overrides.addDays(r,o):yc(r,o)},this.addMonths=(r,o)=>{var a;return(a=this.overrides)!=null&&a.addMonths?this.overrides.addMonths(r,o):bc(r,o)},this.addWeeks=(r,o)=>{var a;return(a=this.overrides)!=null&&a.addWeeks?this.overrides.addWeeks(r,o):Ny(r,o)},this.addYears=(r,o)=>{var a;return(a=this.overrides)!=null&&a.addYears?this.overrides.addYears(r,o):Ey(r,o)},this.differenceInCalendarDays=(r,o)=>{var a;return(a=this.overrides)!=null&&a.differenceInCalendarDays?this.overrides.differenceInCalendarDays(r,o):Cc(r,o)},this.differenceInCalendarMonths=(r,o)=>{var a;return(a=this.overrides)!=null&&a.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(r,o):Oy(r,o)},this.eachMonthOfInterval=r=>{var o;return(o=this.overrides)!=null&&o.eachMonthOfInterval?this.overrides.eachMonthOfInterval(r):_y(r)},this.endOfBroadcastWeek=r=>{var o;return(o=this.overrides)!=null&&o.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(r,this):fb(r,this)},this.endOfISOWeek=r=>{var o;return(o=this.overrides)!=null&&o.endOfISOWeek?this.overrides.endOfISOWeek(r):Fy(r)},this.endOfMonth=r=>{var o;return(o=this.overrides)!=null&&o.endOfMonth?this.overrides.endOfMonth(r):Ay(r)},this.endOfWeek=r=>{var o;return(o=this.overrides)!=null&&o.endOfWeek?this.overrides.endOfWeek(r,this.options):Nc(r,this.options)},this.endOfYear=r=>{var o;return(o=this.overrides)!=null&&o.endOfYear?this.overrides.endOfYear(r):jy(r)},this.format=(r,o)=>{var i;const a=(i=this.overrides)!=null&&i.format?this.overrides.format(r,o,this.options):Jy(r,o,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(a):a},this.getISOWeek=r=>{var o;return(o=this.overrides)!=null&&o.getISOWeek?this.overrides.getISOWeek(r):Ec(r)},this.getMonth=r=>{var o;return(o=this.overrides)!=null&&o.getMonth?this.overrides.getMonth(r,this.options):nb(r,this.options)},this.getYear=r=>{var o;return(o=this.overrides)!=null&&o.getYear?this.overrides.getYear(r,this.options):rb(r,this.options)},this.getWeek=r=>{var o;return(o=this.overrides)!=null&&o.getWeek?this.overrides.getWeek(r,this.options):Dc(r,this.options)},this.isAfter=(r,o)=>{var a;return(a=this.overrides)!=null&&a.isAfter?this.overrides.isAfter(r,o):ob(r,o)},this.isBefore=(r,o)=>{var a;return(a=this.overrides)!=null&&a.isBefore?this.overrides.isBefore(r,o):ab(r,o)},this.isDate=r=>{var o;return(o=this.overrides)!=null&&o.isDate?this.overrides.isDate(r):Sc(r)},this.isSameDay=(r,o)=>{var a;return(a=this.overrides)!=null&&a.isSameDay?this.overrides.isSameDay(r,o):ky(r,o)},this.isSameMonth=(r,o)=>{var a;return(a=this.overrides)!=null&&a.isSameMonth?this.overrides.isSameMonth(r,o):sb(r,o)},this.isSameYear=(r,o)=>{var a;return(a=this.overrides)!=null&&a.isSameYear?this.overrides.isSameYear(r,o):ib(r,o)},this.max=r=>{var o;return(o=this.overrides)!=null&&o.max?this.overrides.max(r):Py(r)},this.min=r=>{var o;return(o=this.overrides)!=null&&o.min?this.overrides.min(r):Dy(r)},this.setMonth=(r,o)=>{var a;return(a=this.overrides)!=null&&a.setMonth?this.overrides.setMonth(r,o):cb(r,o)},this.setYear=(r,o)=>{var a;return(a=this.overrides)!=null&&a.setYear?this.overrides.setYear(r,o):lb(r,o)},this.startOfBroadcastWeek=r=>{var o;return(o=this.overrides)!=null&&o.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(r,this):Ic(r,this)},this.startOfDay=r=>{var o;return(o=this.overrides)!=null&&o.startOfDay?this.overrides.startOfDay(r):Mn(r)},this.startOfISOWeek=r=>{var o;return(o=this.overrides)!=null&&o.startOfISOWeek?this.overrides.startOfISOWeek(r):Sn(r)},this.startOfMonth=r=>{var o;return(o=this.overrides)!=null&&o.startOfMonth?this.overrides.startOfMonth(r):Iy(r)},this.startOfWeek=r=>{var o;return(o=this.overrides)!=null&&o.startOfWeek?this.overrides.startOfWeek(r,this.options):Xt(r,this.options)},this.startOfYear=r=>{var o;return(o=this.overrides)!=null&&o.startOfYear?this.overrides.startOfYear(r):Mc(r)},this.options={locale:mr,...t},this.overrides=n}getDigitMap(){const{numerals:t="latn"}=this.options,n=new Intl.NumberFormat("en-US",{numberingSystem:t}),r={};for(let o=0;o<10;o++)r[o.toString()]=n.format(o);return r}replaceDigits(t){const n=this.getDigitMap();return t.replace(/\d/g,r=>n[r]||r)}formatNumber(t){return this.replaceDigits(t.toString())}}const ct=new it;function mb(e,t,n={}){return Object.entries(e).filter(([,o])=>o===!0).reduce((o,[a])=>(n[a]?o.push(n[a]):t[de[a]]?o.push(t[de[a]]):t[Be[a]]&&o.push(t[Be[a]]),o),[t[Y.Day]])}function hb(e){return M.createElement("button",{...e})}function pb(e){return M.createElement("span",{...e})}function gb(e){const{size:t=24,orientation:n="left",className:r}=e;return M.createElement("svg",{className:r,width:t,height:t,viewBox:"0 0 24 24"},n==="up"&&M.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),n==="down"&&M.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),n==="left"&&M.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),n==="right"&&M.createElement("polygon",{points:"8 18.612 14.1888889 12.5 8 6.37733333 9.91111111 4.5 18 12.5 9.91111111 20.5"}))}function vb(e){const{day:t,modifiers:n,...r}=e;return M.createElement("td",{...r})}function yb(e){const{day:t,modifiers:n,...r}=e,o=M.useRef(null);return M.useEffect(()=>{var a;n.focused&&((a=o.current)==null||a.focus())},[n.focused]),M.createElement("button",{ref:o,...r})}function bb(e){const{options:t,className:n,components:r,classNames:o,...a}=e,i=[o[Y.Dropdown],n].join(" "),s=t==null?void 0:t.find(({value:c})=>c===a.value);return M.createElement("span",{"data-disabled":a.disabled,className:o[Y.DropdownRoot]},M.createElement(r.Select,{className:i,...a},t==null?void 0:t.map(({value:c,label:u,disabled:f})=>M.createElement(r.Option,{key:c,value:c,disabled:f},u))),M.createElement("span",{className:o[Y.CaptionLabel],"aria-hidden":!0},s==null?void 0:s.label,M.createElement(r.Chevron,{orientation:"down",size:18,className:o[Y.Chevron]})))}function wb(e){return M.createElement("div",{...e})}function xb(e){return M.createElement("div",{...e})}function Cb(e){const{calendarMonth:t,displayIndex:n,...r}=e;return M.createElement("div",{...r},e.children)}function Sb(e){const{calendarMonth:t,displayIndex:n,...r}=e;return M.createElement("div",{...r})}function Mb(e){return M.createElement("table",{...e})}function Nb(e){return M.createElement("div",{...e})}const jc=M.createContext(void 0);function Nn(){const e=M.useContext(jc);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function Eb(e){const{components:t}=Nn();return M.createElement(t.Dropdown,{...e})}function Pb(e){const{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:o,...a}=e,{components:i,classNames:s,labels:{labelPrevious:c,labelNext:u}}=Nn();return M.createElement("nav",{...a},M.createElement(i.PreviousMonthButton,{type:"button",className:s[Y.PreviousMonthButton],tabIndex:r?void 0:-1,disabled:r?void 0:!0,"aria-label":c(r),onClick:e.onPreviousClick},M.createElement(i.Chevron,{disabled:r?void 0:!0,className:s[Y.Chevron],orientation:"left"})),M.createElement(i.NextMonthButton,{type:"button",className:s[Y.NextMonthButton],tabIndex:o?void 0:-1,disabled:o?void 0:!0,"aria-label":u(o),onClick:e.onNextClick},M.createElement(i.Chevron,{disabled:o?void 0:!0,orientation:"right",className:s[Y.Chevron]})))}function Db(e){const{components:t}=Nn();return M.createElement(t.Button,{...e})}function kb(e){return M.createElement("option",{...e})}function Tb(e){const{components:t}=Nn();return M.createElement(t.Button,{...e})}function Ob(e){return M.createElement("div",{...e})}function Ab(e){return M.createElement("select",{...e})}function Rb(e){const{week:t,...n}=e;return M.createElement("tr",{...n})}function _b(e){return M.createElement("th",{...e})}function Ib(e){return M.createElement("thead",{"aria-hidden":!0},M.createElement("tr",{...e}))}function jb(e){const{week:t,...n}=e;return M.createElement("th",{...n})}function Fb(e){return M.createElement("th",{...e})}function Wb(e){return M.createElement("tbody",{...e})}function $b(e){const{components:t}=Nn();return M.createElement(t.Dropdown,{...e})}const Lb=Object.freeze(Object.defineProperty({__proto__:null,Button:hb,CaptionLabel:pb,Chevron:gb,Day:vb,DayButton:yb,Dropdown:bb,DropdownNav:wb,Footer:xb,Month:Cb,MonthCaption:Sb,MonthGrid:Mb,Months:Nb,MonthsDropdown:Eb,Nav:Pb,NextMonthButton:Db,Option:kb,PreviousMonthButton:Tb,Root:Ob,Select:Ab,Week:Rb,WeekNumber:jb,WeekNumberHeader:Fb,Weekday:_b,Weekdays:Ib,Weeks:Wb,YearsDropdown:$b},Symbol.toStringTag,{value:"Module"}));function Bb(e){return{...Lb,...e}}function Vb(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0};return Object.entries(e).forEach(([n,r])=>{n.startsWith("data-")&&(t[n]=r)}),t}function Yb(){const e={};for(const t in Y)e[Y[t]]=`rdp-${Y[t]}`;for(const t in de)e[de[t]]=`rdp-${de[t]}`;for(const t in Be)e[Be[t]]=`rdp-${Be[t]}`;return e}function Fc(e,t,n){return(n??new it(t)).format(e,"LLLL y")}const Gb=Fc;function Hb(e,t,n){return(n??new it(t)).format(e,"d")}function zb(e,t=ct){return t.format(e,"LLLL")}function Ub(e){return e<10?`0${e.toLocaleString()}`:`${e.toLocaleString()}`}function qb(){return""}function Kb(e,t,n){return(n??new it(t)).format(e,"cccccc")}function Wc(e,t=ct){return t.format(e,"yyyy")}const Xb=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:Fc,formatDay:Hb,formatMonthCaption:Gb,formatMonthDropdown:zb,formatWeekNumber:Ub,formatWeekNumberHeader:qb,formatWeekdayName:Kb,formatYearCaption:Wc,formatYearDropdown:Wc},Symbol.toStringTag,{value:"Module"}));function Qb(e){return e!=null&&e.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e!=null&&e.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...Xb,...e}}function Zb(e,t,n,r,o){const{startOfMonth:a,startOfYear:i,endOfYear:s,eachMonthOfInterval:c,getMonth:u}=o;return c({start:i(e),end:s(e)}).map(h=>{const g=r.formatMonthDropdown(h,o),b=u(h),p=t&&h<a(t)||n&&h>a(n)||!1;return{value:b,label:g,disabled:p}})}function Jb(e,t={},n={}){let r={...t==null?void 0:t[Y.Day]};return Object.entries(e).filter(([,o])=>o===!0).forEach(([o])=>{r={...r,...n==null?void 0:n[o]}}),r}function ew(e,t,n){const r=e.today(),o=t?e.startOfISOWeek(r):e.startOfWeek(r),a=[];for(let i=0;i<7;i++){const s=e.addDays(o,i);a.push(s)}return a}function tw(e,t,n,r){if(!e||!t)return;const{startOfYear:o,endOfYear:a,addYears:i,getYear:s,isBefore:c,isSameYear:u}=r,f=o(e),m=a(t),h=[];let g=f;for(;c(g,m)||u(g,m);)h.push(g),g=i(g,1);return h.map(b=>{const p=n.formatYearDropdown(b,r);return{value:s(b),label:p,disabled:!1}})}function $c(e,t,n){return(n??new it(t)).format(e,"LLLL y")}const nw=$c;function rw(e,t,n,r){let o=(r??new it(n)).format(e,"PPPP");return t!=null&&t.today&&(o=`Today, ${o}`),o}function Lc(e,t,n,r){let o=(r??new it(n)).format(e,"PPPP");return t.today&&(o=`Today, ${o}`),t.selected&&(o=`${o}, selected`),o}const ow=Lc;function aw(){return""}function sw(e){return"Choose the Month"}function iw(e){return"Go to the Next Month"}function cw(e){return"Go to the Previous Month"}function lw(e,t,n){return(n??new it(t)).format(e,"cccc")}function uw(e,t){return`Week ${e}`}function dw(e){return"Week Number"}function fw(e){return"Choose the Year"}const mw=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:nw,labelDay:ow,labelDayButton:Lc,labelGrid:$c,labelGridcell:rw,labelMonthDropdown:sw,labelNav:aw,labelNext:iw,labelPrevious:cw,labelWeekNumber:uw,labelWeekNumberHeader:dw,labelWeekday:lw,labelYearDropdown:fw},Symbol.toStringTag,{value:"Module"}));function hw(e,t,n,r){const o=e[0],a=e[e.length-1],{ISOWeek:i,fixedWeeks:s,broadcastCalendar:c}=n??{},{addDays:u,differenceInCalendarDays:f,differenceInCalendarMonths:m,endOfBroadcastWeek:h,endOfISOWeek:g,endOfMonth:b,endOfWeek:p,isAfter:v,startOfBroadcastWeek:w,startOfISOWeek:y,startOfWeek:C}=r,S=c?w(o,r):i?y(o):C(o),E=c?h(a,r):i?g(b(a)):p(b(a)),D=f(E,S),P=m(a,o)+1,O=[];for(let V=0;V<=D;V++){const R=u(S,V);if(t&&v(R,t))break;O.push(R)}const L=(c?35:42)*P;if(s&&O.length<L){const V=L-O.length;for(let R=0;R<V;R++){const H=u(O[O.length-1],1);O.push(H)}}return O}function pw(e){const t=[];return e.reduce((n,r)=>{const o=[],a=r.weeks.reduce((i,s)=>[...i,...s.days],o);return[...n,...a]},t)}function gw(e,t,n,r){const{numberOfMonths:o=1}=n,a=[];for(let i=0;i<o;i++){const s=r.addMonths(e,i);if(t&&s>t)break;a.push(s)}return a}function Bc(e,t){const{month:n,defaultMonth:r,today:o=t.today(),numberOfMonths:a=1,endMonth:i,startMonth:s}=e;let c=n||r||o;const{differenceInCalendarMonths:u,addMonths:f,startOfMonth:m}=t;if(i&&u(i,c)<0){const h=-1*(a-1);c=f(i,h)}return s&&u(c,s)<0&&(c=s),m(c)}class Vc{constructor(t,n,r=ct){this.date=t,this.displayMonth=n,this.outside=!!(n&&!r.isSameMonth(t,n)),this.dateLib=r}isEqualTo(t){return this.dateLib.isSameDay(t.date,this.date)&&this.dateLib.isSameMonth(t.displayMonth,this.displayMonth)}}class vw{constructor(t,n){this.date=t,this.weeks=n}}class yw{constructor(t,n){this.days=n,this.weekNumber=t}}function bw(e,t,n,r){const{addDays:o,endOfBroadcastWeek:a,endOfISOWeek:i,endOfMonth:s,endOfWeek:c,getISOWeek:u,getWeek:f,startOfBroadcastWeek:m,startOfISOWeek:h,startOfWeek:g}=r,b=e.reduce((p,v)=>{const w=n.broadcastCalendar?m(v,r):n.ISOWeek?h(v):g(v),y=n.broadcastCalendar?a(v,r):n.ISOWeek?i(s(v)):c(s(v)),C=t.filter(P=>P>=w&&P<=y),S=n.broadcastCalendar?35:42;if(n.fixedWeeks&&C.length<S){const P=t.filter(O=>{const B=S-C.length;return O>y&&O<=o(y,B)});C.push(...P)}const E=C.reduce((P,O)=>{const B=n.ISOWeek?u(O):f(O),L=P.find(R=>R.weekNumber===B),V=new Vc(O,v,r);return L?L.days.push(V):P.push(new yw(B,[V])),P},[]),D=new vw(v,E);return p.push(D),p},[]);return n.reverseMonths?b.reverse():b}function ww(e,t){let{startMonth:n,endMonth:r}=e;const{startOfYear:o,startOfDay:a,startOfMonth:i,endOfMonth:s,addYears:c,endOfYear:u,newDate:f,today:m}=t,{fromYear:h,toYear:g,fromMonth:b,toMonth:p}=e;!n&&b&&(n=b),!n&&h&&(n=t.newDate(h,0,1)),!r&&p&&(r=p),!r&&g&&(r=f(g,11,31));const v=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return n?n=i(n):h?n=f(h,0,1):!n&&v&&(n=o(c(e.today??m(),-100))),r?r=s(r):g?r=f(g,11,31):!r&&v&&(r=u(e.today??m())),[n&&a(n),r&&a(r)]}function xw(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:a=1}=n,{startOfMonth:i,addMonths:s,differenceInCalendarMonths:c}=r,u=o?a:1,f=i(e);if(!t)return s(f,u);if(!(c(t,e)<a))return s(f,u)}function Cw(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:a}=n,{startOfMonth:i,addMonths:s,differenceInCalendarMonths:c}=r,u=o?a??1:1,f=i(e);if(!t)return s(f,-u);if(!(c(f,t)<=0))return s(f,-u)}function Sw(e){const t=[];return e.reduce((n,r)=>[...n,...r.weeks],t)}function hr(e,t){const[n,r]=M.useState(e);return[t===void 0?n:t,r]}function Mw(e,t){const[n,r]=ww(e,t),{startOfMonth:o,endOfMonth:a}=t,i=Bc(e,t),[s,c]=hr(i,e.month?o(e.month):void 0);M.useEffect(()=>{const D=Bc(e,t);c(D)},[e.timeZone]);const u=gw(s,r,e,t),f=hw(u,e.endMonth?a(e.endMonth):void 0,e,t),m=bw(u,f,e,t),h=Sw(m),g=pw(m),b=Cw(s,n,e,t),p=xw(s,r,e,t),{disableNavigation:v,onMonthChange:w}=e,y=D=>h.some(P=>P.days.some(O=>O.isEqualTo(D))),C=D=>{if(v)return;let P=o(D);n&&P<o(n)&&(P=o(n)),r&&P>o(r)&&(P=o(r)),c(P),w==null||w(P)};return{months:m,weeks:h,days:g,navStart:n,navEnd:r,previousMonth:b,nextMonth:p,goToMonth:C,goToDay:D=>{y(D)||C(D.date)}}}function Nw(e,t,n,r){let o,a=0,i=!1;for(;a<e.length&&!i;){const s=e[a],c=t(s);!c[de.disabled]&&!c[de.hidden]&&!c[de.outside]&&(c[de.focused]||r!=null&&r.isEqualTo(s)||n(s.date)||c[de.today])&&(o=s,i=!0),a++}return o||(o=e.find(s=>{const c=t(s);return!c[de.disabled]&&!c[de.hidden]&&!c[de.outside]})),o}function lt(e,t,n=!1,r=ct){let{from:o,to:a}=e;const{differenceInCalendarDays:i,isSameDay:s}=r;return o&&a?(i(a,o)<0&&([o,a]=[a,o]),i(t,o)>=(n?1:0)&&i(a,t)>=(n?1:0)):!n&&a?s(a,t):!n&&o?s(o,t):!1}function Yc(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function To(e){return!!(e&&typeof e=="object"&&"from"in e)}function Gc(e){return!!(e&&typeof e=="object"&&"after"in e)}function Hc(e){return!!(e&&typeof e=="object"&&"before"in e)}function zc(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function Uc(e,t){return Array.isArray(e)&&e.every(t.isDate)}function ut(e,t,n=ct){const r=Array.isArray(t)?t:[t],{isSameDay:o,differenceInCalendarDays:a,isAfter:i}=n;return r.some(s=>{if(typeof s=="boolean")return s;if(n.isDate(s))return o(e,s);if(Uc(s,n))return s.includes(e);if(To(s))return lt(s,e,!1,n);if(zc(s))return Array.isArray(s.dayOfWeek)?s.dayOfWeek.includes(e.getDay()):s.dayOfWeek===e.getDay();if(Yc(s)){const c=a(s.before,e),u=a(s.after,e),f=c>0,m=u<0;return i(s.before,s.after)?m&&f:f||m}return Gc(s)?a(e,s.after)>0:Hc(s)?a(s.before,e)>0:typeof s=="function"?s(e):!1})}function Ew(e,t,n,r,o,a,i){const{ISOWeek:s,broadcastCalendar:c}=a,{addDays:u,addMonths:f,addWeeks:m,addYears:h,endOfBroadcastWeek:g,endOfISOWeek:b,endOfWeek:p,max:v,min:w,startOfBroadcastWeek:y,startOfISOWeek:C,startOfWeek:S}=i;let D={day:u,week:m,month:f,year:h,startOfWeek:P=>c?y(P,i):s?C(P):S(P),endOfWeek:P=>c?g(P,i):s?b(P):p(P)}[e](n,t==="after"?1:-1);return t==="before"&&r?D=v([r,D]):t==="after"&&o&&(D=w([o,D])),D}function qc(e,t,n,r,o,a,i,s=0){if(s>365)return;const c=Ew(e,t,n.date,r,o,a,i),u=!!(a.disabled&&ut(c,a.disabled,i)),f=!!(a.hidden&&ut(c,a.hidden,i)),m=c,h=new Vc(c,m,i);return!u&&!f?h:qc(e,t,h,r,o,a,i,s+1)}function Pw(e,t,n,r,o){const{autoFocus:a}=e,[i,s]=M.useState(),c=Nw(t.days,n,r||(()=>!1),i),[u,f]=M.useState(a?c:void 0);return{isFocusTarget:p=>!!(c!=null&&c.isEqualTo(p)),setFocused:f,focused:u,blur:()=>{s(u),f(void 0)},moveFocus:(p,v)=>{if(!u)return;const w=qc(p,v,u,t.navStart,t.navEnd,e,o);w&&(t.goToDay(w),f(w))}}}function Dw(e,t,n){const{disabled:r,hidden:o,modifiers:a,showOutsideDays:i,broadcastCalendar:s,today:c}=t,{isSameDay:u,isSameMonth:f,startOfMonth:m,isBefore:h,endOfMonth:g,isAfter:b}=n,p=t.startMonth&&m(t.startMonth),v=t.endMonth&&g(t.endMonth),w={[de.focused]:[],[de.outside]:[],[de.disabled]:[],[de.hidden]:[],[de.today]:[]},y={};for(const C of e){const{date:S,displayMonth:E}=C,D=!!(E&&!f(S,E)),P=!!(p&&h(S,p)),O=!!(v&&b(S,v)),B=!!(r&&ut(S,r,n)),L=!!(o&&ut(S,o,n))||P||O||!s&&!i&&D||s&&i===!1&&D,V=u(S,c??n.today());D&&w.outside.push(C),B&&w.disabled.push(C),L&&w.hidden.push(C),V&&w.today.push(C),a&&Object.keys(a).forEach(R=>{const H=a==null?void 0:a[R];H&&ut(S,H,n)&&(y[R]?y[R].push(C):y[R]=[C])})}return C=>{const S={[de.focused]:!1,[de.disabled]:!1,[de.hidden]:!1,[de.outside]:!1,[de.today]:!1},E={};for(const D in w){const P=w[D];S[D]=P.some(O=>O===C)}for(const D in y)E[D]=y[D].some(P=>P===C);return{...S,...E}}}function kw(e,t){const{selected:n,required:r,onSelect:o}=e,[a,i]=hr(n,o?n:void 0),s=o?n:a,{isSameDay:c}=t,u=g=>(s==null?void 0:s.some(b=>c(b,g)))??!1,{min:f,max:m}=e;return{selected:s,select:(g,b,p)=>{let v=[...s??[]];if(u(g)){if((s==null?void 0:s.length)===f||r&&(s==null?void 0:s.length)===1)return;v=s==null?void 0:s.filter(w=>!c(w,g))}else(s==null?void 0:s.length)===m?v=[g]:v=[...v,g];return o||i(v),o==null||o(v,g,b,p),v},isSelected:u}}function Tw(e,t,n=0,r=0,o=!1,a=ct){const{from:i,to:s}=t||{},{isSameDay:c,isAfter:u,isBefore:f}=a;let m;if(!i&&!s)m={from:e,to:n>0?void 0:e};else if(i&&!s)c(i,e)?o?m={from:i,to:void 0}:m=void 0:f(e,i)?m={from:e,to:i}:m={from:i,to:e};else if(i&&s)if(c(i,e)&&c(s,e))o?m={from:i,to:s}:m=void 0;else if(c(i,e))m={from:i,to:n>0?void 0:e};else if(c(s,e))m={from:e,to:n>0?void 0:e};else if(f(e,i))m={from:e,to:s};else if(u(e,i))m={from:i,to:e};else if(u(e,s))m={from:i,to:e};else throw new Error("Invalid range");if(m!=null&&m.from&&(m!=null&&m.to)){const h=a.differenceInCalendarDays(m.to,m.from);r>0&&h>r?m={from:e,to:void 0}:n>1&&h<n&&(m={from:e,to:void 0})}return m}function Ow(e,t,n=ct){const r=Array.isArray(t)?t:[t];let o=e.from;const a=n.differenceInCalendarDays(e.to,e.from),i=Math.min(a,6);for(let s=0;s<=i;s++){if(r.includes(o.getDay()))return!0;o=n.addDays(o,1)}return!1}function Kc(e,t,n=ct){return lt(e,t.from,!1,n)||lt(e,t.to,!1,n)||lt(t,e.from,!1,n)||lt(t,e.to,!1,n)}function Aw(e,t,n=ct){const r=Array.isArray(t)?t:[t];if(r.filter(s=>typeof s!="function").some(s=>typeof s=="boolean"?s:n.isDate(s)?lt(e,s,!1,n):Uc(s,n)?s.some(c=>lt(e,c,!1,n)):To(s)?s.from&&s.to?Kc(e,{from:s.from,to:s.to},n):!1:zc(s)?Ow(e,s.dayOfWeek,n):Yc(s)?n.isAfter(s.before,s.after)?Kc(e,{from:n.addDays(s.after,1),to:n.addDays(s.before,-1)},n):ut(e.from,s,n)||ut(e.to,s,n):Gc(s)||Hc(s)?ut(e.from,s,n)||ut(e.to,s,n):!1))return!0;const i=r.filter(s=>typeof s=="function");if(i.length){let s=e.from;const c=n.differenceInCalendarDays(e.to,e.from);for(let u=0;u<=c;u++){if(i.some(f=>f(s)))return!0;s=n.addDays(s,1)}}return!1}function Rw(e,t){const{disabled:n,excludeDisabled:r,selected:o,required:a,onSelect:i}=e,[s,c]=hr(o,i?o:void 0),u=i?o:s;return{selected:u,select:(h,g,b)=>{const{min:p,max:v}=e,w=h?Tw(h,u,p,v,a,t):void 0;return r&&n&&(w!=null&&w.from)&&w.to&&Aw({from:w.from,to:w.to},n,t)&&(w.from=h,w.to=void 0),i||c(w),i==null||i(w,h,g,b),w},isSelected:h=>u&<(u,h,!1,t)}}function _w(e,t){const{selected:n,required:r,onSelect:o}=e,[a,i]=hr(n,o?n:void 0),s=o?n:a,{isSameDay:c}=t;return{selected:s,select:(m,h,g)=>{let b=m;return!r&&s&&s&&c(m,s)&&(b=void 0),o||i(b),o==null||o(b,m,h,g),b},isSelected:m=>s?c(s,m):!1}}function Iw(e,t){const n=_w(e,t),r=kw(e,t),o=Rw(e,t);switch(e.mode){case"single":return n;case"multiple":return r;case"range":return o;default:return}}function jw(e){const{components:t,formatters:n,labels:r,dateLib:o,locale:a,classNames:i}=M.useMemo(()=>{const Q={...mr,...e.locale};return{dateLib:new it({locale:Q,weekStartsOn:e.broadcastCalendar?1:e.weekStartsOn,firstWeekContainsDate:e.firstWeekContainsDate,useAdditionalWeekYearTokens:e.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:e.useAdditionalDayOfYearTokens,timeZone:e.timeZone,numerals:e.numerals},e.dateLib),components:Bb(e.components),formatters:Qb(e.formatters),labels:{...mw,...e.labels},locale:Q,classNames:{...Yb(),...e.classNames}}},[e.locale,e.broadcastCalendar,e.weekStartsOn,e.firstWeekContainsDate,e.useAdditionalWeekYearTokens,e.useAdditionalDayOfYearTokens,e.timeZone,e.numerals,e.dateLib,e.components,e.formatters,e.labels,e.classNames]),{captionLayout:s,mode:c,onDayBlur:u,onDayClick:f,onDayFocus:m,onDayKeyDown:h,onDayMouseEnter:g,onDayMouseLeave:b,onNextClick:p,onPrevClick:v,showWeekNumber:w,styles:y}=e,{formatCaption:C,formatDay:S,formatMonthDropdown:E,formatWeekNumber:D,formatWeekNumberHeader:P,formatWeekdayName:O,formatYearDropdown:B}=n,L=Mw(e,o),{days:V,months:R,navStart:H,navEnd:G,previousMonth:X,nextMonth:j,goToMonth:z}=L,F=Dw(V,e,o),{isSelected:T,select:Z,selected:U}=Iw(e,o)??{},{blur:ve,focused:Me,isFocusTarget:pe,moveFocus:Oe,setFocused:he}=Pw(e,L,F,T??(()=>!1),o),{labelDayButton:$,labelGridcell:ne,labelGrid:ae,labelMonthDropdown:ee,labelNav:re,labelWeekday:te,labelWeekNumber:we,labelWeekNumberHeader:Pe,labelYearDropdown:Ye}=r,dt=M.useMemo(()=>ew(o,e.ISOWeek),[o,e.ISOWeek]),Ge=c!==void 0||f!==void 0,rn=M.useCallback(()=>{X&&(z(X),v==null||v(X))},[X,z,v]),ft=M.useCallback(()=>{j&&(z(j),p==null||p(j))},[z,j,p]),jr=M.useCallback((Q,ie)=>se=>{se.preventDefault(),se.stopPropagation(),he(Q),Z==null||Z(Q.date,ie,se),f==null||f(Q.date,ie,se)},[Z,f,he]),x=M.useCallback((Q,ie)=>se=>{he(Q),m==null||m(Q.date,ie,se)},[m,he]),_=M.useCallback((Q,ie)=>se=>{ve(),u==null||u(Q.date,ie,se)},[ve,u]),I=M.useCallback((Q,ie)=>se=>{const Ce={ArrowLeft:["day",e.dir==="rtl"?"after":"before"],ArrowRight:["day",e.dir==="rtl"?"before":"after"],ArrowDown:["week","after"],ArrowUp:["week","before"],PageUp:[se.shiftKey?"year":"month","before"],PageDown:[se.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(Ce[se.key]){se.preventDefault(),se.stopPropagation();const[ze,Fr]=Ce[se.key];Oe(ze,Fr)}h==null||h(Q.date,ie,se)},[Oe,h,e.dir]),oe=M.useCallback((Q,ie)=>se=>{g==null||g(Q.date,ie,se)},[g]),xe=M.useCallback((Q,ie)=>se=>{b==null||b(Q.date,ie,se)},[b]),me=M.useCallback(Q=>ie=>{const se=Number(ie.target.value),Ce=o.setMonth(o.startOfMonth(Q),se);z(Ce)},[o,z]),q=M.useCallback(Q=>ie=>{const se=Number(ie.target.value),Ce=o.setYear(o.startOfMonth(Q),se);z(Ce)},[o,z]),{className:He,style:Dt}=M.useMemo(()=>({className:[i[Y.Root],e.className].filter(Boolean).join(" "),style:{...y==null?void 0:y[Y.Root],...e.style}}),[i,e.className,e.style,y]),Ne=Vb(e),mt={dayPickerProps:e,selected:U,select:Z,isSelected:T,months:R,nextMonth:j,previousMonth:X,goToMonth:z,getModifiers:F,components:t,classNames:i,styles:y,labels:r,formatters:n};return M.createElement(jc.Provider,{value:mt},M.createElement(t.Root,{className:He,style:Dt,dir:e.dir,id:e.id,lang:e.lang,nonce:e.nonce,title:e.title,role:e.role,"aria-label":e["aria-label"],...Ne},M.createElement(t.Months,{className:i[Y.Months],style:y==null?void 0:y[Y.Months]},!e.hideNavigation&&M.createElement(t.Nav,{className:i[Y.Nav],style:y==null?void 0:y[Y.Nav],"aria-label":re(),onPreviousClick:rn,onNextClick:ft,previousMonth:X,nextMonth:j}),R.map((Q,ie)=>{const se=Zb(Q.date,H,G,n,o),Ce=tw(H,G,n,o);return M.createElement(t.Month,{className:i[Y.Month],style:y==null?void 0:y[Y.Month],key:ie,displayIndex:ie,calendarMonth:Q},M.createElement(t.MonthCaption,{className:i[Y.MonthCaption],style:y==null?void 0:y[Y.MonthCaption],calendarMonth:Q,displayIndex:ie},s!=null&&s.startsWith("dropdown")?M.createElement(t.DropdownNav,{className:i[Y.Dropdowns],style:y==null?void 0:y[Y.Dropdowns]},s==="dropdown"||s==="dropdown-months"?M.createElement(t.MonthsDropdown,{className:i[Y.MonthsDropdown],"aria-label":ee(),classNames:i,components:t,disabled:!!e.disableNavigation,onChange:me(Q.date),options:se,style:y==null?void 0:y[Y.Dropdown],value:o.getMonth(Q.date)}):M.createElement("span",{role:"status","aria-live":"polite"},E(Q.date,o)),s==="dropdown"||s==="dropdown-years"?M.createElement(t.YearsDropdown,{className:i[Y.YearsDropdown],"aria-label":Ye(o.options),classNames:i,components:t,disabled:!!e.disableNavigation,onChange:q(Q.date),options:Ce,style:y==null?void 0:y[Y.Dropdown],value:o.getYear(Q.date)}):M.createElement("span",{role:"status","aria-live":"polite"},B(Q.date,o))):M.createElement(t.CaptionLabel,{className:i[Y.CaptionLabel],role:"status","aria-live":"polite"},C(Q.date,o.options,o))),M.createElement(t.MonthGrid,{role:"grid","aria-multiselectable":c==="multiple"||c==="range","aria-label":ae(Q.date,o.options,o)||void 0,className:i[Y.MonthGrid],style:y==null?void 0:y[Y.MonthGrid]},!e.hideWeekdays&&M.createElement(t.Weekdays,{className:i[Y.Weekdays],style:y==null?void 0:y[Y.Weekdays]},w&&M.createElement(t.WeekNumberHeader,{"aria-label":Pe(o.options),className:i[Y.WeekNumberHeader],style:y==null?void 0:y[Y.WeekNumberHeader],scope:"col"},P()),dt.map((ze,Fr)=>M.createElement(t.Weekday,{"aria-label":te(ze,o.options,o),className:i[Y.Weekday],key:Fr,style:y==null?void 0:y[Y.Weekday],scope:"col"},O(ze,o.options,o)))),M.createElement(t.Weeks,{className:i[Y.Weeks],style:y==null?void 0:y[Y.Weeks]},Q.weeks.map((ze,Fr)=>M.createElement(t.Week,{className:i[Y.Week],key:ze.weekNumber,style:y==null?void 0:y[Y.Week],week:ze},w&&M.createElement(t.WeekNumber,{week:ze,style:y==null?void 0:y[Y.WeekNumber],"aria-label":we(ze.weekNumber,{locale:a}),className:i[Y.WeekNumber],scope:"row",role:"rowheader"},D(ze.weekNumber)),ze.days.map(De=>{const{date:nt}=De,ce=F(De);if(ce[de.focused]=!ce.hidden&&!!(Me!=null&&Me.isEqualTo(De)),ce[Be.selected]=!ce.disabled&&((T==null?void 0:T(nt))||ce.selected),To(U)){const{from:Na,to:Ea}=U;ce[Be.range_start]=!!(Na&&Ea&&o.isSameDay(nt,Na)),ce[Be.range_end]=!!(Na&&Ea&&o.isSameDay(nt,Ea)),ce[Be.range_middle]=lt(U,nt,!0,o)}const NM=Jb(ce,y,e.modifiersStyles),EM=mb(ce,i,e.modifiersClassNames),PM=!Ge&&!ce.hidden?ne(nt,ce,o.options,o):void 0;return M.createElement(t.Day,{key:`${o.format(nt,"yyyy-MM-dd")}_${o.format(De.displayMonth,"yyyy-MM")}`,day:De,modifiers:ce,className:EM.join(" "),style:NM,role:"gridcell","aria-selected":ce.selected||void 0,"aria-label":PM,"data-day":o.format(nt,"yyyy-MM-dd"),"data-month":De.outside?o.format(nt,"yyyy-MM"):void 0,"data-selected":ce.selected||void 0,"data-disabled":ce.disabled||void 0,"data-hidden":ce.hidden||void 0,"data-outside":De.outside||void 0,"data-focused":ce.focused||void 0,"data-today":ce.today||void 0},!ce.hidden&&Ge?M.createElement(t.DayButton,{className:i[Y.DayButton],style:y==null?void 0:y[Y.DayButton],type:"button",day:De,modifiers:ce,disabled:ce.disabled||void 0,tabIndex:pe(De)?0:-1,"aria-label":$(nt,ce,o.options,o),onClick:jr(De,ce),onBlur:_(De,ce),onFocus:x(De,ce),onKeyDown:I(De,ce),onMouseEnter:oe(De,ce),onMouseLeave:xe(De,ce)},S(nt,o.options,o)):!ce.hidden&&S(De.date,o.options,o))}))))))})),e.footer&&M.createElement(t.Footer,{className:i[Y.Footer],style:y==null?void 0:y[Y.Footer],role:"status","aria-live":"polite"},e.footer)))}function Xc(e){const{className:t,classNames:n,showOutsideDays:r=!0,...o}=e;return d.jsx(jw,{showOutsideDays:r,className:k("p-3",t),classNames:{...n},locale:wy,...o})}Xc.displayName="Calendar";const Qc=l.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,className:k("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Qc.displayName="Card";const Zc=l.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,className:k("flex flex-col space-y-1.5 p-6",e),...t}));Zc.displayName="CardHeader";const Jc=l.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,className:k("font-semibold leading-none tracking-tight pb-4",e),...t}));Jc.displayName="CardTitle";const el=l.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,className:k("text-sm text-muted-foreground",e),...t}));el.displayName="CardDescription";const tl=l.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,className:k("p-6 py-0",e),...t}));tl.displayName="CardContent";const nl=l.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,className:k("flex items-center p-6 pt-6",e),...t}));nl.displayName="CardFooter";function pr(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 Oo="Checkbox",[Fw,jM]=ye(Oo),[Ww,$w]=Fw(Oo),rl=l.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:i,disabled:s,value:c="on",onCheckedChange:u,form:f,...m}=e,[h,g]=l.useState(null),b=J(t,S=>g(S)),p=l.useRef(!1),v=h?f||!!h.closest("form"):!0,[w=!1,y]=ke({prop:o,defaultProp:a,onChange:u}),C=l.useRef(w);return l.useEffect(()=>{const S=h==null?void 0:h.form;if(S){const E=()=>y(C.current);return S.addEventListener("reset",E),()=>S.removeEventListener("reset",E)}},[h,y]),d.jsxs(Ww,{scope:n,state:w,disabled:s,children:[d.jsx(W.button,{type:"button",role:"checkbox","aria-checked":St(w)?"mixed":w,"aria-required":i,"data-state":sl(w),"data-disabled":s?"":void 0,disabled:s,value:c,...m,ref:b,onKeyDown:A(e.onKeyDown,S=>{S.key==="Enter"&&S.preventDefault()}),onClick:A(e.onClick,S=>{y(E=>St(E)?!0:!E),v&&(p.current=S.isPropagationStopped(),p.current||S.stopPropagation())})}),v&&d.jsx(Lw,{control:h,bubbles:!p.current,name:r,value:c,checked:w,required:i,disabled:s,form:f,style:{transform:"translateX(-100%)"},defaultChecked:St(a)?!1:a})]})});rl.displayName=Oo;var ol="CheckboxIndicator",al=l.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=$w(ol,n);return d.jsx(Te,{present:r||St(a.state)||a.state===!0,children:d.jsx(W.span,{"data-state":sl(a.state),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});al.displayName=ol;var Lw=e=>{const{control:t,checked:n,bubbles:r=!0,defaultChecked:o,...a}=e,i=l.useRef(null),s=pr(n),c=ur(t);l.useEffect(()=>{const f=i.current,m=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(m,"checked").set;if(s!==n&&g){const b=new Event("click",{bubbles:r});f.indeterminate=St(n),g.call(f,St(n)?!1:n),f.dispatchEvent(b)}},[s,n,r]);const u=l.useRef(St(n)?!1:n);return d.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o??u.current,...a,tabIndex:-1,ref:i,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function St(e){return e==="indeterminate"}function sl(e){return St(e)?"indeterminate":e?"checked":"unchecked"}var il=rl,Bw=al;const cl=l.forwardRef(({className:e,...t},n)=>d.jsx(il,{ref:n,className:k("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:d.jsx(Bw,{className:k("flex items-center justify-center text-current"),children:d.jsx(io,{className:"h-4 w-4"})})}));cl.displayName=il.displayName;const ll=M.forwardRef((e,t)=>{const{currencySymbol:n="$",decimalSeparator:r=".",thousandSeparator:o=",",onValueChange:a,className:i,value:s=0,...c}=e,u=M.useRef(null);M.useImperativeHandle(t,()=>u.current);const[f,m]=M.useState(""),h=p=>{const v=p.toFixed(2).split("."),w=v[0].replace(/\B(?=(\d{3})+(?!\d))/g,o);return`${n} ${w}${r}${v[1]}`},g=p=>{const v=p.target.value,w=parseFloat(v.replace(/\D/g,""))/100;m(h(w)),a(w),u.current&&window.requestAnimationFrame(()=>{var y;(y=u.current)==null||y.setSelectionRange(u.current.value.length,u.current.value.length)})},b=()=>{u.current&&u.current.setSelectionRange(u.current.value.length,u.current.value.length)};return M.useEffect(()=>{m(h(+s))},[s]),d.jsx(Bn,{type:"text",inputMode:"numeric",value:f,ref:u,onChange:g,onFocus:b,onClick:b,placeholder:`${n} 0${r}00`,className:i,...c})});ll.displayName="CurrencyInput";const Ao=Os,ul=As,dl=Rs,Vw=er,Ro=l.forwardRef(({className:e,...t},n)=>d.jsx(no,{ref:n,className:k("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Ro.displayName=no.displayName;const gr=l.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(dl,{children:[d.jsx(Ro,{}),d.jsxs(ro,{ref:r,className:k("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border","bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]","sm:rounded-lg max-h-[100dvh] overflow-y-auto",e),...n,children:[t,d.jsxs(er,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[d.jsx(Gp,{className:"h-4 w-4"}),d.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));gr.displayName=ro.displayName;const vr=({className:e,...t})=>d.jsx("div",{className:k("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});vr.displayName="DialogHeader";const fl=({className:e,...t})=>d.jsx("div",{className:k("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});fl.displayName="DialogFooter";const yr=l.forwardRef(({className:e,...t},n)=>d.jsx(oo,{ref:n,className:k("text-lg font-semibold leading-none tracking-tight",e),...t}));yr.displayName=oo.displayName;const br=l.forwardRef(({className:e,...t},n)=>d.jsx(ao,{ref:n,className:k("text-sm text-muted-foreground",e),...t}));br.displayName=ao.displayName;function _o(e){const t=e+"CollectionProvider",[n,r]=ye(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=g=>{const{scope:b,children:p}=g,v=M.useRef(null),w=M.useRef(new Map).current;return d.jsx(o,{scope:b,itemMap:w,collectionRef:v,children:p})};i.displayName=t;const s=e+"CollectionSlot",c=M.forwardRef((g,b)=>{const{scope:p,children:v}=g,w=a(s,p),y=J(b,w.collectionRef);return d.jsx(Ue,{ref:y,children:v})});c.displayName=s;const u=e+"CollectionItemSlot",f="data-radix-collection-item",m=M.forwardRef((g,b)=>{const{scope:p,children:v,...w}=g,y=M.useRef(null),C=J(b,y),S=a(u,p);return M.useEffect(()=>(S.itemMap.set(y,{ref:y,...w}),()=>void S.itemMap.delete(y))),d.jsx(Ue,{[f]:"",ref:C,children:v})});m.displayName=u;function h(g){const b=a(e+"CollectionConsumer",g);return M.useCallback(()=>{const v=b.collectionRef.current;if(!v)return[];const w=Array.from(v.querySelectorAll(`[${f}]`));return Array.from(b.itemMap.values()).sort((S,E)=>w.indexOf(S.ref.current)-w.indexOf(E.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:i,Slot:c,ItemSlot:m},h,r]}var Yw=l.createContext(void 0);function Zt(e){const t=l.useContext(Yw);return e||t||"ltr"}var Io="rovingFocusGroup.onEntryFocus",Gw={bubbles:!1,cancelable:!0},wr="RovingFocusGroup",[jo,ml,Hw]=_o(wr),[zw,Mt]=ye(wr,[Hw]),[Uw,qw]=zw(wr),hl=l.forwardRef((e,t)=>d.jsx(jo.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(jo.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(Kw,{...e,ref:t})})}));hl.displayName=wr;var Kw=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:f=!1,...m}=e,h=l.useRef(null),g=J(t,h),b=Zt(a),[p=null,v]=ke({prop:i,defaultProp:s,onChange:c}),[w,y]=l.useState(!1),C=Re(u),S=ml(n),E=l.useRef(!1),[D,P]=l.useState(0);return l.useEffect(()=>{const O=h.current;if(O)return O.addEventListener(Io,C),()=>O.removeEventListener(Io,C)},[C]),d.jsx(Uw,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:p,onItemFocus:l.useCallback(O=>v(O),[v]),onItemShiftTab:l.useCallback(()=>y(!0),[]),onFocusableItemAdd:l.useCallback(()=>P(O=>O+1),[]),onFocusableItemRemove:l.useCallback(()=>P(O=>O-1),[]),children:d.jsx(W.div,{tabIndex:w||D===0?-1:0,"data-orientation":r,...m,ref:g,style:{outline:"none",...e.style},onMouseDown:A(e.onMouseDown,()=>{E.current=!0}),onFocus:A(e.onFocus,O=>{const B=!E.current;if(O.target===O.currentTarget&&B&&!w){const L=new CustomEvent(Io,Gw);if(O.currentTarget.dispatchEvent(L),!L.defaultPrevented){const V=S().filter(j=>j.focusable),R=V.find(j=>j.active),H=V.find(j=>j.id===p),X=[R,H,...V].filter(Boolean).map(j=>j.ref.current);vl(X,f)}}E.current=!1}),onBlur:A(e.onBlur,()=>y(!1))})})}),pl="RovingFocusGroupItem",gl=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...i}=e,s=Ae(),c=a||s,u=qw(pl,n),f=u.currentTabStopId===c,m=ml(n),{onFocusableItemAdd:h,onFocusableItemRemove:g}=u;return l.useEffect(()=>{if(r)return h(),()=>g()},[r,h,g]),d.jsx(jo.ItemSlot,{scope:n,id:c,focusable:r,active:o,children:d.jsx(W.span,{tabIndex:f?0:-1,"data-orientation":u.orientation,...i,ref:t,onMouseDown:A(e.onMouseDown,b=>{r?u.onItemFocus(c):b.preventDefault()}),onFocus:A(e.onFocus,()=>u.onItemFocus(c)),onKeyDown:A(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){u.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const p=Zw(b,u.orientation,u.dir);if(p!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let w=m().filter(y=>y.focusable).map(y=>y.ref.current);if(p==="last")w.reverse();else if(p==="prev"||p==="next"){p==="prev"&&w.reverse();const y=w.indexOf(b.currentTarget);w=u.loop?Jw(w,y+1):w.slice(y+1)}setTimeout(()=>vl(w))}})})})});gl.displayName=pl;var Xw={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Qw(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Zw(e,t,n){const r=Qw(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Xw[r]}function vl(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Jw(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var xr=hl,Cr=gl,Fo=["Enter"," "],ex=["ArrowDown","PageUp","Home"],yl=["ArrowUp","PageDown","End"],tx=[...ex,...yl],nx={ltr:[...Fo,"ArrowRight"],rtl:[...Fo,"ArrowLeft"]},rx={ltr:["ArrowLeft"],rtl:["ArrowRight"]},En="Menu",[Pn,ox,ax]=_o(En),[Rt,bl]=ye(En,[ax,wt,Mt]),Dn=wt(),wl=Mt(),[xl,Nt]=Rt(En),[sx,kn]=Rt(En),Cl=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:i=!0}=e,s=Dn(t),[c,u]=l.useState(null),f=l.useRef(!1),m=Re(a),h=Zt(o);return l.useEffect(()=>{const g=()=>{f.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>f.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),d.jsx(vn,{...s,children:d.jsx(xl,{scope:t,open:n,onOpenChange:m,content:c,onContentChange:u,children:d.jsx(sx,{scope:t,onClose:l.useCallback(()=>m(!1),[m]),isUsingKeyboardRef:f,dir:h,modal:i,children:r})})})};Cl.displayName=En;var ix="MenuAnchor",Wo=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Dn(n);return d.jsx(yn,{...o,...r,ref:t})});Wo.displayName=ix;var $o="MenuPortal",[cx,Sl]=Rt($o,{forceMount:void 0}),Ml=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=Nt($o,t);return d.jsx(cx,{scope:t,forceMount:n,children:d.jsx(Te,{present:n||a.open,children:d.jsx(dn,{asChild:!0,container:o,children:r})})})};Ml.displayName=$o;var Fe="MenuContent",[lx,Lo]=Rt(Fe),Nl=l.forwardRef((e,t)=>{const n=Sl(Fe,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Nt(Fe,e.__scopeMenu),i=kn(Fe,e.__scopeMenu);return d.jsx(Pn.Provider,{scope:e.__scopeMenu,children:d.jsx(Te,{present:r||a.open,children:d.jsx(Pn.Slot,{scope:e.__scopeMenu,children:i.modal?d.jsx(ux,{...o,ref:t}):d.jsx(dx,{...o,ref:t})})})})}),ux=l.forwardRef((e,t)=>{const n=Nt(Fe,e.__scopeMenu),r=l.useRef(null),o=J(t,r);return l.useEffect(()=>{const a=r.current;if(a)return Zn(a)},[]),d.jsx(Bo,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:A(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),dx=l.forwardRef((e,t)=>{const n=Nt(Fe,e.__scopeMenu);return d.jsx(Bo,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Bo=l.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:m,onInteractOutside:h,onDismiss:g,disableOutsideScroll:b,...p}=e,v=Nt(Fe,n),w=kn(Fe,n),y=Dn(n),C=wl(n),S=ox(n),[E,D]=l.useState(null),P=l.useRef(null),O=J(t,P,v.onContentChange),B=l.useRef(0),L=l.useRef(""),V=l.useRef(0),R=l.useRef(null),H=l.useRef("right"),G=l.useRef(0),X=b?fn:l.Fragment,j=b?{as:Ue,allowPinchZoom:!0}:void 0,z=T=>{var $,ne;const Z=L.current+T,U=S().filter(ae=>!ae.disabled),ve=document.activeElement,Me=($=U.find(ae=>ae.ref.current===ve))==null?void 0:$.textValue,pe=U.map(ae=>ae.textValue),Oe=Sx(pe,Z,Me),he=(ne=U.find(ae=>ae.textValue===Oe))==null?void 0:ne.ref.current;(function ae(ee){L.current=ee,window.clearTimeout(B.current),ee!==""&&(B.current=window.setTimeout(()=>ae(""),1e3))})(Z),he&&setTimeout(()=>he.focus())};l.useEffect(()=>()=>window.clearTimeout(B.current),[]),Gn();const F=l.useCallback(T=>{var U,ve;return H.current===((U=R.current)==null?void 0:U.side)&&Nx(T,(ve=R.current)==null?void 0:ve.area)},[]);return d.jsx(lx,{scope:n,searchRef:L,onItemEnter:l.useCallback(T=>{F(T)&&T.preventDefault()},[F]),onItemLeave:l.useCallback(T=>{var Z;F(T)||((Z=P.current)==null||Z.focus(),D(null))},[F]),onTriggerLeave:l.useCallback(T=>{F(T)&&T.preventDefault()},[F]),pointerGraceTimerRef:V,onPointerGraceIntentChange:l.useCallback(T=>{R.current=T},[]),children:d.jsx(X,{...j,children:d.jsx(un,{asChild:!0,trapped:o,onMountAutoFocus:A(a,T=>{var Z;T.preventDefault(),(Z=P.current)==null||Z.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:d.jsx(Ft,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:m,onInteractOutside:h,onDismiss:g,children:d.jsx(xr,{asChild:!0,...C,dir:w.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:D,onEntryFocus:A(c,T=>{w.isUsingKeyboardRef.current||T.preventDefault()}),preventScrollOnEntryFocus:!0,children:d.jsx(dr,{role:"menu","aria-orientation":"vertical","data-state":Yl(v.open),"data-radix-menu-content":"",dir:w.dir,...y,...p,ref:O,style:{outline:"none",...p.style},onKeyDown:A(p.onKeyDown,T=>{const U=T.target.closest("[data-radix-menu-content]")===T.currentTarget,ve=T.ctrlKey||T.altKey||T.metaKey,Me=T.key.length===1;U&&(T.key==="Tab"&&T.preventDefault(),!ve&&Me&&z(T.key));const pe=P.current;if(T.target!==pe||!tx.includes(T.key))return;T.preventDefault();const he=S().filter($=>!$.disabled).map($=>$.ref.current);yl.includes(T.key)&&he.reverse(),xx(he)}),onBlur:A(e.onBlur,T=>{T.currentTarget.contains(T.target)||(window.clearTimeout(B.current),L.current="")}),onPointerMove:A(e.onPointerMove,On(T=>{const Z=T.target,U=G.current!==T.clientX;if(T.currentTarget.contains(Z)&&U){const ve=T.clientX>G.current?"right":"left";H.current=ve,G.current=T.clientX}}))})})})})})})});Nl.displayName=Fe;var fx="MenuGroup",Vo=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return d.jsx(W.div,{role:"group",...r,ref:t})});Vo.displayName=fx;var mx="MenuLabel",El=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return d.jsx(W.div,{...r,ref:t})});El.displayName=mx;var Sr="MenuItem",Pl="menu.itemSelect",Mr=l.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=l.useRef(null),i=kn(Sr,e.__scopeMenu),s=Lo(Sr,e.__scopeMenu),c=J(t,a),u=l.useRef(!1),f=()=>{const m=a.current;if(!n&&m){const h=new CustomEvent(Pl,{bubbles:!0,cancelable:!0});m.addEventListener(Pl,g=>r==null?void 0:r(g),{once:!0}),Ga(m,h),h.defaultPrevented?u.current=!1:i.onClose()}};return d.jsx(Dl,{...o,ref:c,disabled:n,onClick:A(e.onClick,f),onPointerDown:m=>{var h;(h=e.onPointerDown)==null||h.call(e,m),u.current=!0},onPointerUp:A(e.onPointerUp,m=>{var h;u.current||(h=m.currentTarget)==null||h.click()}),onKeyDown:A(e.onKeyDown,m=>{const h=s.searchRef.current!=="";n||h&&m.key===" "||Fo.includes(m.key)&&(m.currentTarget.click(),m.preventDefault())})})});Mr.displayName=Sr;var Dl=l.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,i=Lo(Sr,n),s=wl(n),c=l.useRef(null),u=J(t,c),[f,m]=l.useState(!1),[h,g]=l.useState("");return l.useEffect(()=>{const b=c.current;b&&g((b.textContent??"").trim())},[a.children]),d.jsx(Pn.ItemSlot,{scope:n,disabled:r,textValue:o??h,children:d.jsx(Cr,{asChild:!0,...s,focusable:!r,children:d.jsx(W.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:u,onPointerMove:A(e.onPointerMove,On(b=>{r?i.onItemLeave(b):(i.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:A(e.onPointerLeave,On(b=>i.onItemLeave(b))),onFocus:A(e.onFocus,()=>m(!0)),onBlur:A(e.onBlur,()=>m(!1))})})})}),hx="MenuCheckboxItem",kl=l.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return d.jsx(_l,{scope:e.__scopeMenu,checked:n,children:d.jsx(Mr,{role:"menuitemcheckbox","aria-checked":Nr(n)?"mixed":n,...o,ref:t,"data-state":Ho(n),onSelect:A(o.onSelect,()=>r==null?void 0:r(Nr(n)?!0:!n),{checkForDefaultPrevented:!1})})})});kl.displayName=hx;var Tl="MenuRadioGroup",[px,gx]=Rt(Tl,{value:void 0,onValueChange:()=>{}}),Ol=l.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=Re(r);return d.jsx(px,{scope:e.__scopeMenu,value:n,onValueChange:a,children:d.jsx(Vo,{...o,ref:t})})});Ol.displayName=Tl;var Al="MenuRadioItem",Rl=l.forwardRef((e,t)=>{const{value:n,...r}=e,o=gx(Al,e.__scopeMenu),a=n===o.value;return d.jsx(_l,{scope:e.__scopeMenu,checked:a,children:d.jsx(Mr,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":Ho(a),onSelect:A(r.onSelect,()=>{var i;return(i=o.onValueChange)==null?void 0:i.call(o,n)},{checkForDefaultPrevented:!1})})})});Rl.displayName=Al;var Yo="MenuItemIndicator",[_l,vx]=Rt(Yo,{checked:!1}),Il=l.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=vx(Yo,n);return d.jsx(Te,{present:r||Nr(a.checked)||a.checked===!0,children:d.jsx(W.span,{...o,ref:t,"data-state":Ho(a.checked)})})});Il.displayName=Yo;var yx="MenuSeparator",jl=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return d.jsx(W.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});jl.displayName=yx;var bx="MenuArrow",Fl=l.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Dn(n);return d.jsx(fr,{...o,...r,ref:t})});Fl.displayName=bx;var Go="MenuSub",[wx,Wl]=Rt(Go),$l=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,a=Nt(Go,t),i=Dn(t),[s,c]=l.useState(null),[u,f]=l.useState(null),m=Re(o);return l.useEffect(()=>(a.open===!1&&m(!1),()=>m(!1)),[a.open,m]),d.jsx(vn,{...i,children:d.jsx(xl,{scope:t,open:r,onOpenChange:m,content:u,onContentChange:f,children:d.jsx(wx,{scope:t,contentId:Ae(),triggerId:Ae(),trigger:s,onTriggerChange:c,children:n})})})};$l.displayName=Go;var Tn="MenuSubTrigger",Ll=l.forwardRef((e,t)=>{const n=Nt(Tn,e.__scopeMenu),r=kn(Tn,e.__scopeMenu),o=Wl(Tn,e.__scopeMenu),a=Lo(Tn,e.__scopeMenu),i=l.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=a,u={__scopeMenu:e.__scopeMenu},f=l.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return l.useEffect(()=>f,[f]),l.useEffect(()=>{const m=s.current;return()=>{window.clearTimeout(m),c(null)}},[s,c]),d.jsx(Wo,{asChild:!0,...u,children:d.jsx(Dl,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Yl(n.open),...e,ref:Vn(t,o.onTriggerChange),onClick:m=>{var h;(h=e.onClick)==null||h.call(e,m),!(e.disabled||m.defaultPrevented)&&(m.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:A(e.onPointerMove,On(m=>{a.onItemEnter(m),!m.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:A(e.onPointerLeave,On(m=>{var g,b;f();const h=(g=n.content)==null?void 0:g.getBoundingClientRect();if(h){const p=(b=n.content)==null?void 0:b.dataset.side,v=p==="right",w=v?-5:5,y=h[v?"left":"right"],C=h[v?"right":"left"];a.onPointerGraceIntentChange({area:[{x:m.clientX+w,y:m.clientY},{x:y,y:h.top},{x:C,y:h.top},{x:C,y:h.bottom},{x:y,y:h.bottom}],side:p}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(m),m.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:A(e.onKeyDown,m=>{var g;const h=a.searchRef.current!=="";e.disabled||h&&m.key===" "||nx[r.dir].includes(m.key)&&(n.onOpenChange(!0),(g=n.content)==null||g.focus(),m.preventDefault())})})})});Ll.displayName=Tn;var Bl="MenuSubContent",Vl=l.forwardRef((e,t)=>{const n=Sl(Fe,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Nt(Fe,e.__scopeMenu),i=kn(Fe,e.__scopeMenu),s=Wl(Bl,e.__scopeMenu),c=l.useRef(null),u=J(t,c);return d.jsx(Pn.Provider,{scope:e.__scopeMenu,children:d.jsx(Te,{present:r||a.open,children:d.jsx(Pn.Slot,{scope:e.__scopeMenu,children:d.jsx(Bo,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:u,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var m;i.isUsingKeyboardRef.current&&((m=c.current)==null||m.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:A(e.onFocusOutside,f=>{f.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:A(e.onEscapeKeyDown,f=>{i.onClose(),f.preventDefault()}),onKeyDown:A(e.onKeyDown,f=>{var g;const m=f.currentTarget.contains(f.target),h=rx[i.dir].includes(f.key);m&&h&&(a.onOpenChange(!1),(g=s.trigger)==null||g.focus(),f.preventDefault())})})})})})});Vl.displayName=Bl;function Yl(e){return e?"open":"closed"}function Nr(e){return e==="indeterminate"}function Ho(e){return Nr(e)?"indeterminate":e?"checked":"unchecked"}function xx(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Cx(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Sx(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 i=Cx(e,Math.max(a,0));o.length===1&&(i=i.filter(u=>u!==n));const c=i.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function Mx(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a].x,c=t[a].y,u=t[i].x,f=t[i].y;c>r!=f>r&&n<(u-s)*(r-c)/(f-c)+s&&(o=!o)}return o}function Nx(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Mx(n,t)}function On(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Ex=Cl,Px=Wo,Dx=Ml,kx=Nl,Tx=Vo,Ox=El,Ax=Mr,Rx=kl,_x=Ol,Ix=Rl,jx=Il,Fx=jl,Wx=Fl,$x=$l,Lx=Ll,Bx=Vl,zo="DropdownMenu",[Vx,FM]=ye(zo,[bl]),Ee=bl(),[Yx,Gl]=Vx(zo),Hl=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:i,modal:s=!0}=e,c=Ee(t),u=l.useRef(null),[f=!1,m]=ke({prop:o,defaultProp:a,onChange:i});return d.jsx(Yx,{scope:t,triggerId:Ae(),triggerRef:u,contentId:Ae(),open:f,onOpenChange:m,onOpenToggle:l.useCallback(()=>m(h=>!h),[m]),modal:s,children:d.jsx(Ex,{...c,open:f,onOpenChange:m,dir:r,modal:s,children:n})})};Hl.displayName=zo;var zl="DropdownMenuTrigger",Ul=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=Gl(zl,n),i=Ee(n);return d.jsx(Px,{asChild:!0,...i,children:d.jsx(W.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Vn(t,a.triggerRef),onPointerDown:A(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(a.onOpenToggle(),a.open||s.preventDefault())}),onKeyDown:A(e.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&a.onOpenToggle(),s.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});Ul.displayName=zl;var Gx="DropdownMenuPortal",ql=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Ee(t);return d.jsx(Dx,{...r,...n})};ql.displayName=Gx;var Kl="DropdownMenuContent",Xl=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Gl(Kl,n),a=Ee(n),i=l.useRef(!1);return d.jsx(kx,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:A(e.onCloseAutoFocus,s=>{var c;i.current||(c=o.triggerRef.current)==null||c.focus(),i.current=!1,s.preventDefault()}),onInteractOutside:A(e.onInteractOutside,s=>{const c=s.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,f=c.button===2||u;(!o.modal||f)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Xl.displayName=Kl;var Hx="DropdownMenuGroup",Ql=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ee(n);return d.jsx(Tx,{...o,...r,ref:t})});Ql.displayName=Hx;var zx="DropdownMenuLabel",Zl=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ee(n);return d.jsx(Ox,{...o,...r,ref:t})});Zl.displayName=zx;var Ux="DropdownMenuItem",Jl=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ee(n);return d.jsx(Ax,{...o,...r,ref:t})});Jl.displayName=Ux;var qx="DropdownMenuCheckboxItem",eu=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ee(n);return d.jsx(Rx,{...o,...r,ref:t})});eu.displayName=qx;var Kx="DropdownMenuRadioGroup",tu=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ee(n);return d.jsx(_x,{...o,...r,ref:t})});tu.displayName=Kx;var Xx="DropdownMenuRadioItem",nu=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ee(n);return d.jsx(Ix,{...o,...r,ref:t})});nu.displayName=Xx;var Qx="DropdownMenuItemIndicator",ru=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ee(n);return d.jsx(jx,{...o,...r,ref:t})});ru.displayName=Qx;var Zx="DropdownMenuSeparator",ou=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ee(n);return d.jsx(Fx,{...o,...r,ref:t})});ou.displayName=Zx;var Jx="DropdownMenuArrow",eC=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ee(n);return d.jsx(Wx,{...o,...r,ref:t})});eC.displayName=Jx;var tC=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,i=Ee(t),[s=!1,c]=ke({prop:r,defaultProp:a,onChange:o});return d.jsx($x,{...i,open:s,onOpenChange:c,children:n})},nC="DropdownMenuSubTrigger",au=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ee(n);return d.jsx(Lx,{...o,...r,ref:t})});au.displayName=nC;var rC="DropdownMenuSubContent",su=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ee(n);return d.jsx(Bx,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});su.displayName=rC;var oC=Hl,aC=Ul,iu=ql,cu=Xl,sC=Ql,lu=Zl,uu=Jl,du=eu,iC=tu,fu=nu,mu=ru,hu=ou,cC=tC,pu=au,gu=su;const lC=oC,uC=aC,dC=sC,fC=iu,mC=cC,hC=iC,vu=l.forwardRef(({className:e,inset:t,children:n,...r},o)=>d.jsxs(pu,{ref:o,className:k("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[n,d.jsx(co,{className:"ml-auto"})]}));vu.displayName=pu.displayName;const yu=l.forwardRef(({className:e,...t},n)=>d.jsx(gu,{ref:n,className:k("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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",e),...t}));yu.displayName=gu.displayName;const bu=l.forwardRef(({className:e,sideOffset:t=4,...n},r)=>d.jsx(iu,{children:d.jsx(cu,{ref:r,sideOffset:t,className:k("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","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",e),...n})}));bu.displayName=cu.displayName;const wu=l.forwardRef(({className:e,inset:t,...n},r)=>d.jsx(uu,{ref:r,className:k("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...n}));wu.displayName=uu.displayName;const xu=l.forwardRef(({className:e,children:t,checked:n,...r},o)=>d.jsxs(du,{ref:o,className:k("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[d.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:d.jsx(mu,{children:d.jsx(io,{className:"h-4 w-4"})})}),t]}));xu.displayName=du.displayName;const Cu=l.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(fu,{ref:r,className:k("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[d.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:d.jsx(mu,{children:d.jsx(di,{className:"h-2 w-2 fill-current"})})}),t]}));Cu.displayName=fu.displayName;const Su=l.forwardRef(({className:e,inset:t,...n},r)=>d.jsx(lu,{ref:r,className:k("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));Su.displayName=lu.displayName;const Mu=l.forwardRef(({className:e,...t},n)=>d.jsx(hu,{ref:n,className:k("-mx-1 my-1 h-px bg-muted",e),...t}));Mu.displayName=hu.displayName;const Nu=({className:e,...t})=>d.jsx("span",{className:k("ml-auto text-xs tracking-widest opacity-60",e),...t});Nu.displayName="DropdownMenuShortcut";var pC=e=>e.type==="checkbox",gC=e=>e instanceof Date,Eu=e=>e==null;const vC=e=>typeof e=="object";var Jt=e=>!Eu(e)&&!Array.isArray(e)&&vC(e)&&!gC(e),yC=e=>Jt(e)&&e.target?pC(e.target)?e.target.checked:e.target.value:e,bC=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,wC=(e,t)=>e.has(bC(t)),xC=e=>{const t=e.constructor&&e.constructor.prototype;return Jt(t)&&t.hasOwnProperty("isPrototypeOf")},CC=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Uo(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(CC&&(e instanceof Blob||r))&&(n||Jt(e)))if(t=n?[]:{},!n&&!xC(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=Uo(e[o]));else return e;return t}var Pu=e=>Array.isArray(e)?e.filter(Boolean):[],qo=e=>e===void 0,_e=(e,t,n)=>{if(!t||!Jt(e))return n;const r=Pu(t.split(/[,[\].]+?/)).reduce((o,a)=>Eu(o)?o:o[a],e);return qo(r)||r===e?qo(e[t])?n:e[t]:r},Du=e=>typeof e=="boolean",SC=e=>/^\w*$/.test(e),MC=e=>Pu(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ku=(e,t,n)=>{let r=-1;const o=SC(t)?[t]:MC(t),a=o.length,i=a-1;for(;++r<a;){const s=o[r];let c=n;if(r!==i){const u=e[s];c=Jt(u)||Array.isArray(u)?u:isNaN(+o[r+1])?{}:[]}if(s==="__proto__"||s==="constructor"||s==="prototype")return;e[s]=c,e=e[s]}return e};const Tu={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ou={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Au=M.createContext(null),Er=()=>M.useContext(Au),NC=e=>{const{children:t,...n}=e;return M.createElement(Au.Provider,{value:n},t)};var EC=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const i=a;return t._proxyFormState[i]!==Ou.all&&(t._proxyFormState[i]=!r||Ou.all),n&&(n[i]=!0),e[i]}});return o},PC=e=>Jt(e)&&!Object.keys(e).length,DC=(e,t,n,r)=>{n(e);const{name:o,...a}=e;return PC(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(i=>t[i]===!r)},kC=e=>Array.isArray(e)?e:[e],Ru=(e,t,n)=>!e||!t||e===t||kC(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function _u(e){const t=M.useRef(e);t.current=e,M.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function TC(e){const t=Er(),{control:n=t.control,disabled:r,name:o,exact:a}=e,[i,s]=M.useState(n._formState),c=M.useRef(!0),u=M.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),f=M.useRef(o);return f.current=o,_u({disabled:r,next:m=>c.current&&Ru(f.current,m.name,a)&&DC(m,u.current,n._updateFormState)&&s({...n._formState,...m}),subject:n._subjects.state}),M.useEffect(()=>(c.current=!0,u.current.isValid&&n._updateValid(!0),()=>{c.current=!1}),[n]),M.useMemo(()=>EC(i,n,u.current,!1),[i,n])}var OC=e=>typeof e=="string",AC=(e,t,n,r,o)=>OC(e)?_e(n,e,o):Array.isArray(e)?e.map(a=>_e(n,a)):n;function RC(e){const t=Er(),{control:n=t.control,name:r,defaultValue:o,disabled:a,exact:i}=e,s=M.useRef(r);s.current=r,_u({disabled:a,subject:n._subjects.values,next:f=>{Ru(s.current,f.name,i)&&u(Uo(AC(s.current,n._names,f.values||n._formValues,!1,o)))}});const[c,u]=M.useState(n._getWatch(r,o));return M.useEffect(()=>n._removeUnmounted()),c}function _C(e){const t=Er(),{name:n,disabled:r,control:o=t.control,shouldUnregister:a}=e,i=wC(o._names.array,n),s=RC({control:o,name:n,defaultValue:_e(o._formValues,n,_e(o._defaultValues,n,e.defaultValue)),exact:!0}),c=TC({control:o,name:n,exact:!0}),u=M.useRef(o.register(n,{...e.rules,value:s,...Du(e.disabled)?{disabled:e.disabled}:{}})),f=M.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!_e(c.errors,n)},isDirty:{enumerable:!0,get:()=>!!_e(c.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!_e(c.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!_e(c.validatingFields,n)},error:{enumerable:!0,get:()=>_e(c.errors,n)}}),[c,n]),m=M.useMemo(()=>({name:n,value:s,...Du(r)||c.disabled?{disabled:c.disabled||r}:{},onChange:h=>u.current.onChange({target:{value:yC(h),name:n},type:Tu.CHANGE}),onBlur:()=>u.current.onBlur({target:{value:_e(o._formValues,n),name:n},type:Tu.BLUR}),ref:h=>{const g=_e(o._fields,n);g&&h&&(g._f.ref={focus:()=>h.focus(),select:()=>h.select(),setCustomValidity:b=>h.setCustomValidity(b),reportValidity:()=>h.reportValidity()})}}),[n,o._formValues,r,c.disabled,s,o._fields]);return M.useEffect(()=>{const h=o._options.shouldUnregister||a,g=(b,p)=>{const v=_e(o._fields,b);v&&v._f&&(v._f.mount=p)};if(g(n,!0),h){const b=Uo(_e(o._options.defaultValues,n));ku(o._defaultValues,n,b),qo(_e(o._formValues,n))&&ku(o._formValues,n,b)}return!i&&o.register(n),()=>{(i?h&&!o._state.action:h)?o.unregister(n):g(n,!1)}},[n,o,i,a]),M.useEffect(()=>{o._updateDisabledField({disabled:r,fields:o._fields,name:n})},[r,n,o]),M.useMemo(()=>({field:m,formState:c,fieldState:f}),[m,c,f])}const IC=e=>e.render(_C(e));var jC="Label",Iu=l.forwardRef((e,t)=>d.jsx(W.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Iu.displayName=jC;var ju=Iu;const FC=ln("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ko=l.forwardRef(({className:e,...t},n)=>d.jsx(ju,{ref:n,className:k(FC(),e),...t}));Ko.displayName=ju.displayName;const WC=NC,Fu=l.createContext({}),$C=({...e})=>d.jsx(Fu.Provider,{value:{name:e.name},children:d.jsx(IC,{...e})}),An=()=>{const e=l.useContext(Fu),t=l.useContext(Wu),{getFieldState:n,formState:r}=Er(),o=n(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...o}},Wu=l.createContext({}),$u=l.forwardRef(({className:e,...t},n)=>{const r=l.useId();return d.jsx(Wu.Provider,{value:{id:r},children:d.jsx("div",{ref:n,className:k("space-y-2",e),...t})})});$u.displayName="FormItem";const Lu=l.forwardRef(({className:e,...t},n)=>{const{error:r,formItemId:o}=An();return d.jsx(Ko,{ref:n,className:k(r&&"text-destructive",e),htmlFor:o,...t})});Lu.displayName="FormLabel";const Bu=l.forwardRef(({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:o,formMessageId:a}=An();return d.jsx(Ue,{ref:t,id:r,"aria-describedby":n?`${o} ${a}`:`${o}`,"aria-invalid":!!n,...e})});Bu.displayName="FormControl";const Vu=l.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:r}=An();return d.jsx("p",{ref:n,id:r,className:k("text-[0.8rem] text-muted-foreground",e),...t})});Vu.displayName="FormDescription";const Yu=l.forwardRef(({className:e,children:t,...n},r)=>{const{error:o,formMessageId:a}=An(),i=o?String(o==null?void 0:o.message):t;return i?d.jsx("p",{ref:r,id:a,className:k("text-[0.8rem] font-medium text-destructive",e),...n,children:i}):null});Yu.displayName="FormMessage";const Xo=({className:e,...t})=>d.jsx("nav",{role:"navigation","aria-label":"pagination",className:k("mx-auto flex w-full justify-center",e),...t});Xo.displayName="Pagination";const Qo=l.forwardRef(({className:e,...t},n)=>d.jsx("ul",{ref:n,className:k("flex flex-row items-center gap-1",e),...t}));Qo.displayName="PaginationContent";const Rn=l.forwardRef(({className:e,...t},n)=>d.jsx("li",{ref:n,className:k("",e),...t}));Rn.displayName="PaginationItem";const _n=({className:e,isActive:t,size:n="icon",...r})=>d.jsx(Ke,{"aria-current":t?"page":void 0,className:k(mn({variant:t?"default":"outline",size:n}),t?"text-primary-foreground":"text-foreground",e),...r,children:r.children});_n.displayName="PaginationLink";const Zo=({className:e,...t})=>d.jsx(_n,{"aria-label":"Previous page",size:"default",className:k("gap-1",e),...t,children:d.jsx(li,{className:"h-4 w-4"})});Zo.displayName="PaginationPrevious";const Jo=({className:e,...t})=>d.jsx(_n,{"aria-label":"Next page",size:"default",className:k("gap-1",e),...t,children:d.jsx(co,{className:"h-4 w-4"})});Jo.displayName="PaginationNext";const Gu=({className:e,...t})=>d.jsxs("span",{"aria-hidden":!0,className:k("flex h-9 w-9 items-center justify-center",e),...t,children:[d.jsx($p,{className:"h-4 w-4"}),d.jsx("span",{className:"sr-only",children:"More pages"})]});Gu.displayName="PaginationEllipsis";var ea="Progress",ta=100,[LC,WM]=ye(ea),[BC,VC]=LC(ea),Hu=l.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:a=YC,...i}=e;(o||o===0)&&!Ku(o)&&console.error(GC(`${o}`,"Progress"));const s=Ku(o)?o:ta;r!==null&&!Xu(r,s)&&console.error(HC(`${r}`,"Progress"));const c=Xu(r,s)?r:null,u=Pr(c)?a(c,s):void 0;return d.jsx(BC,{scope:n,value:c,max:s,children:d.jsx(W.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":Pr(c)?c:void 0,"aria-valuetext":u,role:"progressbar","data-state":qu(c,s),"data-value":c??void 0,"data-max":s,...i,ref:t})})});Hu.displayName=ea;var zu="ProgressIndicator",Uu=l.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,o=VC(zu,n);return d.jsx(W.div,{"data-state":qu(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})});Uu.displayName=zu;function YC(e,t){return`${Math.round(e/t*100)}%`}function qu(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function Pr(e){return typeof e=="number"}function Ku(e){return Pr(e)&&!isNaN(e)&&e>0}function Xu(e,t){return Pr(e)&&!isNaN(e)&&e<=t&&e>=0}function GC(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${ta}\`.`}function HC(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
147
192
|
- a positive number
|
|
148
|
-
- less than the value passed to \`max\` (or ${
|
|
193
|
+
- less than the value passed to \`max\` (or ${ta} if no \`max\` prop is set)
|
|
149
194
|
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
150
195
|
|
|
151
|
-
Defaulting to \`null\`.`}var Nc=xc,og=Cc;const Vr=c.forwardRef(({className:e,value:t,...n},r)=>l.jsx(Nc,{ref:r,className:P("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),...n,children:l.jsx(og,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));Vr.displayName=Nc.displayName;function ag(e){const{showStrengthMeter:t=!0,className:n,strengthLabels:r={veryWeak:"Very weak",weak:"Weak",medium:"Medium",strong:"Strong",veryStrong:"Very strong"},showPasswordLabel:o="Show password",hidePasswordLabel:a="Hide password",strengthTitle:s="Password strength",...i}=e,[d,u]=I.useState(""),[f,p]=I.useState(!1),m=y=>{let w=0;return y.length>=8&&(w+=25),y.match(/[a-z]/)&&(w+=25),y.match(/[A-Z]/)&&(w+=25),y.match(/[0-9]/)&&(w+=25),w},v=y=>y===0?r.veryWeak:y<=25?r.weak:y<=50?r.medium:y<=75?r.strong:r.veryStrong,b=m(d),g=v(b),x=y=>{var w;u(y.target.value),(w=e.onChange)==null||w.call(e,y)};return l.jsxs("div",{className:"w-full space-y-4",children:[l.jsxs("div",{className:"relative",children:[l.jsx(Wt,{...i,type:f?"text":"password",value:d,onChange:x,className:`pr-10 ${n||""}`}),l.jsx(at,{type:"button",variant:"ghost",size:"icon",className:"absolute right-0 top-0 h-full",onClick:()=>p(!f),"aria-label":f?a:o,children:f?l.jsx(Ud,{className:"h-4 w-4"}):l.jsx(Kd,{className:"h-4 w-4"})})]}),t&&l.jsxs("div",{className:"space-y-2",children:[l.jsxs("div",{className:"flex justify-between text-sm",children:[l.jsxs("span",{children:[s,":"]}),l.jsx("span",{children:g})]}),l.jsx(Vr,{value:b,className:"h-2"})]})]})}const sg=({className:e,repeat:t=1,...n})=>l.jsx(l.Fragment,{children:Array.from({length:t??1}).map((r,o)=>l.jsx("div",{className:P("animate-pulse rounded-md bg-gray-700/10",e),...n},o))});var Hr="Switch",[ig,Qg]=oe(Hr),[cg,lg]=ig(Hr),Pc=c.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:a,required:s,disabled:i,value:d="on",onCheckedChange:u,form:f,...p}=e,[m,v]=c.useState(null),b=Z(t,A=>v(A)),g=c.useRef(!1),x=m?f||!!m.closest("form"):!0,[y=!1,w]=Re({prop:o,defaultProp:a,onChange:u});return l.jsxs(cg,{scope:n,checked:y,disabled:i,children:[l.jsx(F.button,{type:"button",role:"switch","aria-checked":y,"aria-required":s,"data-state":Mc(y),"data-disabled":i?"":void 0,disabled:i,value:d,...p,ref:b,onClick:D(e.onClick,A=>{w(C=>!C),x&&(g.current=A.isPropagationStopped(),g.current||A.stopPropagation())})}),x&&l.jsx(ug,{control:m,bubbles:!g.current,name:r,value:d,checked:y,required:s,disabled:i,form:f,style:{transform:"translateX(-100%)"}})]})});Pc.displayName=Hr;var Sc="SwitchThumb",Tc=c.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=lg(Sc,n);return l.jsx(F.span,{"data-state":Mc(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});Tc.displayName=Sc;var ug=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=c.useRef(null),s=Hs(n),i=ur(t);return c.useEffect(()=>{const d=a.current,u=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(u,"checked").set;if(s!==n&&p){const m=new Event("click",{bubbles:r});p.call(d,n),d.dispatchEvent(m)}},[s,n,r]),l.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:a,style:{...e.style,...i,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Mc(e){return e?"checked":"unchecked"}var Dc=Pc,dg=Tc;const _c=c.forwardRef(({className:e,...t},n)=>l.jsx(Dc,{className:P("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:n,children:l.jsx(dg,{className:P("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));_c.displayName=Dc.displayName;const kc=c.forwardRef(({className:e,...t},n)=>l.jsx("div",{className:"relative w-full overflow-auto",children:l.jsx("table",{ref:n,className:P("w-full caption-bottom text-sm",e),...t})}));kc.displayName="Table";const Oc=c.forwardRef(({className:e,...t},n)=>l.jsx("thead",{ref:n,className:P("[&_tr]:border-b",e),...t}));Oc.displayName="TableHeader";const jc=c.forwardRef(({className:e,...t},n)=>l.jsx("tbody",{ref:n,className:P("[&_tr:last-child]:border-0",e),...t}));jc.displayName="TableBody";const Ic=c.forwardRef(({className:e,...t},n)=>l.jsx("tfoot",{ref:n,className:P("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));Ic.displayName="TableFooter";const Lc=c.forwardRef(({className:e,...t},n)=>l.jsx("tr",{ref:n,className:P("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));Lc.displayName="TableRow";const $c=c.forwardRef(({className:e,...t},n)=>l.jsx("th",{ref:n,className:P("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));$c.displayName="TableHead";const Fc=c.forwardRef(({className:e,...t},n)=>l.jsx("td",{ref:n,className:P("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));Fc.displayName="TableCell";const Wc=c.forwardRef(({className:e,...t},n)=>l.jsx("caption",{ref:n,className:P("mt-4 text-sm text-muted-foreground",e),...t}));Wc.displayName="TableCaption";var Ur="Tabs",[fg,eh]=oe(Ur,[mn]),Bc=mn(),[pg,Kr]=fg(Ur),zc=c.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:s="horizontal",dir:i,activationMode:d="automatic",...u}=e,f=Ar(i),[p,m]=Re({prop:r,onChange:o,defaultProp:a});return l.jsx(pg,{scope:n,baseId:fe(),value:p,onValueChange:m,orientation:s,dir:f,activationMode:d,children:l.jsx(F.div,{dir:f,"data-orientation":s,...u,ref:t})})});zc.displayName=Ur;var Gc="TabsList",Vc=c.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,a=Kr(Gc,n),s=Bc(n);return l.jsx(li,{asChild:!0,...s,orientation:a.orientation,dir:a.dir,loop:r,children:l.jsx(F.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});Vc.displayName=Gc;var Hc="TabsTrigger",Uc=c.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...a}=e,s=Kr(Hc,n),i=Bc(n),d=Xc(s.baseId,r),u=qc(s.baseId,r),f=r===s.value;return l.jsx(ui,{asChild:!0,...i,focusable:!o,active:f,children:l.jsx(F.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":u,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:d,...a,ref:t,onMouseDown:D(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?s.onValueChange(r):p.preventDefault()}),onKeyDown:D(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&s.onValueChange(r)}),onFocus:D(e.onFocus,()=>{const p=s.activationMode!=="manual";!f&&!o&&p&&s.onValueChange(r)})})})});Uc.displayName=Hc;var Kc="TabsContent",Yc=c.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:a,...s}=e,i=Kr(Kc,n),d=Xc(i.baseId,r),u=qc(i.baseId,r),f=r===i.value,p=c.useRef(f);return c.useEffect(()=>{const m=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(m)},[]),l.jsx(ae,{present:o||f,children:({present:m})=>l.jsx(F.div,{"data-state":f?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":d,hidden:!m,id:u,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:m&&a})})});Yc.displayName=Kc;function Xc(e,t){return`${e}-trigger-${t}`}function qc(e,t){return`${e}-content-${t}`}var mg=zc,Zc=Vc,Jc=Uc,Qc=Yc;const gg=mg,el=c.forwardRef(({className:e,...t},n)=>l.jsx(Zc,{ref:n,className:P("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));el.displayName=Zc.displayName;const tl=c.forwardRef(({className:e,...t},n)=>l.jsx(Jc,{ref:n,className:P("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",e),...t}));tl.displayName=Jc.displayName;const nl=c.forwardRef(({className:e,...t},n)=>l.jsx(Qc,{ref:n,className:P("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));nl.displayName=Qc.displayName;const rl=c.forwardRef(({className:e,...t},n)=>l.jsx("textarea",{className:P("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));rl.displayName="Textarea";var hg="VisuallyHidden",ol=c.forwardRef((e,t)=>l.jsx(F.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));ol.displayName=hg;var vg=ol,[yn,th]=oe("Tooltip",[ut]),xn=ut(),al="TooltipProvider",bg=700,Yr="tooltip.open",[yg,Xr]=yn(al),sl=e=>{const{__scopeTooltip:t,delayDuration:n=bg,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,[s,i]=c.useState(!0),d=c.useRef(!1),u=c.useRef(0);return c.useEffect(()=>{const f=u.current;return()=>window.clearTimeout(f)},[]),l.jsx(yg,{scope:t,isOpenDelayed:s,delayDuration:n,onOpen:c.useCallback(()=>{window.clearTimeout(u.current),i(!1)},[]),onClose:c.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>i(!0),r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:c.useCallback(f=>{d.current=f},[]),disableHoverableContent:o,children:a})};sl.displayName=al;var wn="Tooltip",[xg,jt]=yn(wn),il=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,d=Xr(wn,e.__scopeTooltip),u=xn(t),[f,p]=c.useState(null),m=fe(),v=c.useRef(0),b=s??d.disableHoverableContent,g=i??d.delayDuration,x=c.useRef(!1),[y=!1,w]=Re({prop:r,defaultProp:o,onChange:S=>{S?(d.onOpen(),document.dispatchEvent(new CustomEvent(Yr))):d.onClose(),a==null||a(S)}}),A=c.useMemo(()=>y?x.current?"delayed-open":"instant-open":"closed",[y]),C=c.useCallback(()=>{window.clearTimeout(v.current),v.current=0,x.current=!1,w(!0)},[w]),R=c.useCallback(()=>{window.clearTimeout(v.current),v.current=0,w(!1)},[w]),_=c.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{x.current=!0,w(!0),v.current=0},g)},[g,w]);return c.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),l.jsx(dn,{...u,children:l.jsx(xg,{scope:t,contentId:m,open:y,stateAttribute:A,trigger:f,onTriggerChange:p,onTriggerEnter:c.useCallback(()=>{d.isOpenDelayed?_():C()},[d.isOpenDelayed,_,C]),onTriggerLeave:c.useCallback(()=>{b?R():(window.clearTimeout(v.current),v.current=0)},[R,b]),onOpen:C,onClose:R,disableHoverableContent:b,children:n})})};il.displayName=wn;var qr="TooltipTrigger",cl=c.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=jt(qr,n),a=Xr(qr,n),s=xn(n),i=c.useRef(null),d=Z(t,i,o.onTriggerChange),u=c.useRef(!1),f=c.useRef(!1),p=c.useCallback(()=>u.current=!1,[]);return c.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),l.jsx(fn,{asChild:!0,...s,children:l.jsx(F.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:d,onPointerMove:D(e.onPointerMove,m=>{m.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:D(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:D(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:D(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:D(e.onBlur,o.onClose),onClick:D(e.onClick,o.onClose)})})});cl.displayName=qr;var Zr="TooltipPortal",[wg,Cg]=yn(Zr,{forceMount:void 0}),ll=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=jt(Zr,t);return l.jsx(wg,{scope:t,forceMount:n,children:l.jsx(ae,{present:n||a.open,children:l.jsx(wt,{asChild:!0,container:o,children:r})})})};ll.displayName=Zr;var ft="TooltipContent",ul=c.forwardRef((e,t)=>{const n=Cg(ft,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,s=jt(ft,e.__scopeTooltip);return l.jsx(ae,{present:r||s.open,children:s.disableHoverableContent?l.jsx(dl,{side:o,...a,ref:t}):l.jsx(Eg,{side:o,...a,ref:t})})}),Eg=c.forwardRef((e,t)=>{const n=jt(ft,e.__scopeTooltip),r=Xr(ft,e.__scopeTooltip),o=c.useRef(null),a=Z(t,o),[s,i]=c.useState(null),{trigger:d,onClose:u}=n,f=o.current,{onPointerInTransitChange:p}=r,m=c.useCallback(()=>{i(null),p(!1)},[p]),v=c.useCallback((b,g)=>{const x=b.currentTarget,y={x:b.clientX,y:b.clientY},w=Pg(y,x.getBoundingClientRect()),A=Sg(y,w),C=Tg(g.getBoundingClientRect()),R=Dg([...A,...C]);i(R),p(!0)},[p]);return c.useEffect(()=>()=>m(),[m]),c.useEffect(()=>{if(d&&f){const b=x=>v(x,f),g=x=>v(x,d);return d.addEventListener("pointerleave",b),f.addEventListener("pointerleave",g),()=>{d.removeEventListener("pointerleave",b),f.removeEventListener("pointerleave",g)}}},[d,f,v,m]),c.useEffect(()=>{if(s){const b=g=>{const x=g.target,y={x:g.clientX,y:g.clientY},w=(d==null?void 0:d.contains(x))||(f==null?void 0:f.contains(x)),A=!Mg(y,s);w?m():A&&(m(),u())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[d,f,s,u,m]),l.jsx(dl,{...e,ref:a})}),[Rg,Ag]=yn(wn,{isInside:!1}),dl=c.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,d=jt(ft,n),u=xn(n),{onClose:f}=d;return c.useEffect(()=>(document.addEventListener(Yr,f),()=>document.removeEventListener(Yr,f)),[f]),c.useEffect(()=>{if(d.trigger){const p=m=>{const v=m.target;v!=null&&v.contains(d.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[d.trigger,f]),l.jsx(xt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:l.jsxs(pr,{"data-state":d.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:[l.jsx(Mn,{children:r}),l.jsx(Rg,{scope:n,isInside:!0,children:l.jsx(vg,{id:d.contentId,role:"tooltip",children:o||r})})]})})});ul.displayName=ft;var fl="TooltipArrow",Ng=c.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=xn(n);return Ag(fl,n).isInside?null:l.jsx(mr,{...o,...r,ref:t})});Ng.displayName=fl;function Pg(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 Sg(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 Tg(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 Mg(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].x,d=t[a].y,u=t[s].x,f=t[s].y;d>r!=f>r&&n<(u-i)*(r-d)/(f-d)+i&&(o=!o)}return o}function Dg(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),_g(t)}function _g(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 kg=sl,Og=il,jg=cl,Ig=ll,pl=ul;const Lg=kg,$g=Og,Fg=jg,ml=c.forwardRef(({className:e,sideOffset:t=4,...n},r)=>l.jsx(Ig,{children:l.jsx(pl,{ref:r,sideOffset:t,className:P("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));ml.displayName=pl.displayName;function Wg(e){const{triggerElement:t,steps:n}=e,[r,o]=I.useState(!1),[a,s]=I.useState(0),i=()=>{s(u=>u<n.length-1?u+1:u)},d=()=>{s(u=>u>0?u-1:u)};return l.jsxs(Qs,{open:r,onOpenChange:o,children:[l.jsx(ei,{asChild:!0,children:t}),l.jsxs(wr,{className:"sm:max-w-[425px]",children:[l.jsxs(Cr,{className:P(n[a].title===""&&"sr-only"),children:[l.jsx(Er,{children:n[a].title}),l.jsx(Rr,{className:"sr-only",children:n[a].title})]}),l.jsx("div",{children:n[a].description}),l.jsxs("div",{className:"flex items-center justify-between mt-4",children:[l.jsx(at,{variant:"ghost",size:"icon",onClick:d,disabled:a===0,children:l.jsx($a,{className:"h-4 w-4"})}),l.jsx("div",{className:"flex justify-center gap-1",children:n.map((u,f)=>l.jsx("div",{className:P("h-3 w-3 rounded-full",f===a?"bg-primary":"bg-gray-200")},f))}),l.jsx(at,{variant:"ghost",size:"icon",onClick:i,disabled:a===n.length-1,children:l.jsx(Zn,{className:"h-4 w-4"})})]})]})]})}function Bg({currentPage:e,totalPages:t,onPageChange:n}){const r=Array.from({length:t},(o,a)=>a+1);return l.jsx($r,{children:l.jsxs(Fr,{children:[l.jsx(kt,{children:l.jsx(Wr,{onClick:()=>n(Math.max(1,e-1)),disabled:e===1})}),r.map(o=>l.jsx(kt,{children:l.jsx(Ot,{onClick:()=>n(o),isActive:e===o,children:o})},o)),l.jsx(kt,{children:l.jsx(Br,{onClick:()=>n(Math.min(t,e+1)),disabled:e===t})})]})})}function zg(e,t=250){const[n,r]=I.useState(e);return I.useEffect(()=>{const o=setTimeout(()=>{r(e)},t);return()=>{clearTimeout(o)}},[e,t]),n}function Gg(e){const[t,n]=I.useState(!1);return I.useEffect(()=>{const r=window.matchMedia(e);r.matches!==t&&n(r.matches);const o=()=>n(r.matches);return window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[t,e]),t}const Jr=768;function Vg(){const[e,t]=c.useState(void 0);return c.useEffect(()=>{const n=window.matchMedia(`(max-width: ${Jr-1}px)`),r=()=>{t(window.innerWidth<Jr)};return n.addEventListener("change",r),t(window.innerWidth<Jr),()=>n.removeEventListener("change",r)},[]),!!e}const Hg=()=>{const[e,t]=I.useState(null),[n,r]=I.useState(!1);return I.useEffect(()=>((()=>{const s=window.matchMedia("(display-mode: standalone)").matches||window.navigator.standalone;r(s)})(),window.addEventListener("beforeinstallprompt",s=>{s.preventDefault(),t(s)}),window.addEventListener("appinstalled",()=>{r(!0)}),()=>{window.removeEventListener("appinstalled",()=>r(!0))}),[]),{isPromptReady:!!e,isInstalled:n,showInstallPrompt:()=>{e&&(e.prompt(),e.userChoice.then(a=>{console.log(`User choice: ${a.outcome}`),t(null)}))}}};E.AdaptiveInput=Bt,E.AlertDialog=Fd,E.AlertDialogAction=Oa,E.AlertDialogCancel=ja,E.AlertDialogContent=Ta,E.AlertDialogDescription=ka,E.AlertDialogFooter=Da,E.AlertDialogHeader=Ma,E.AlertDialogOverlay=qn,E.AlertDialogPortal=Sa,E.AlertDialogTitle=_a,E.AlertDialogTrigger=Wd,E.Autocomplete=gp,E.Avatar=js,E.AvatarFallback=Ls,E.AvatarImage=Is,E.Badge=yp,E.Button=at,E.Card=Fs,E.CardContent=Gs,E.CardDescription=zs,E.CardFooter=Vs,E.CardHeader=Ws,E.CardTitle=Bs,E.Checkbox=Zs,E.CurrencyInput=Js,E.Dialog=Qs,E.DialogClose=Ap,E.DialogContent=wr,E.DialogDescription=Rr,E.DialogFooter=ni,E.DialogHeader=Cr,E.DialogOverlay=xr,E.DialogPortal=ti,E.DialogTitle=Er,E.DialogTrigger=ei,E.DropdownMenu=Um,E.DropdownMenuCheckboxItem=mc,E.DropdownMenuContent=fc,E.DropdownMenuGroup=Ym,E.DropdownMenuItem=pc,E.DropdownMenuLabel=hc,E.DropdownMenuPortal=Xm,E.DropdownMenuRadioGroup=Zm,E.DropdownMenuRadioItem=gc,E.DropdownMenuSeparator=vc,E.DropdownMenuShortcut=bc,E.DropdownMenuSub=qm,E.DropdownMenuSubContent=dc,E.DropdownMenuSubTrigger=uc,E.DropdownMenuTrigger=Km,E.HelpCarousel=Wg,E.Input=Wt,E.Pagination=$r,E.PaginationContent=Fr,E.PaginationControls=Bg,E.PaginationEllipsis=yc,E.PaginationItem=kt,E.PaginationLink=Ot,E.PaginationNext=Br,E.PaginationPrevious=Wr,E.PasswordInput=ag,E.Popover=Rs,E.PopoverAnchor=mp,E.PopoverContent=vr,E.PopoverTrigger=As,E.Progress=Vr,E.Skeleton=sg,E.Switch=_c,E.Table=kc,E.TableBody=jc,E.TableCaption=Wc,E.TableCell=Fc,E.TableFooter=Ic,E.TableHead=$c,E.TableHeader=Oc,E.TableRow=Lc,E.Tabs=gg,E.TabsContent=nl,E.TabsList=el,E.TabsTrigger=tl,E.Textarea=rl,E.Tooltip=$g,E.TooltipContent=ml,E.TooltipProvider=Lg,E.TooltipTrigger=Fg,E.badgeVariants=$s,E.buttonVariants=Ct,E.cn=P,E.formatCurrency=ql,E.formatDateAndMonth=Ql,E.formatDateAndWeekday=Zl,E.formatDateAndWeekdayAndYear=Jl,E.formatLongDate=eu,E.formatShortDate=tu,E.formatWeekDayAndShortDate=ru,E.getMonthYearFromISODate=nu,E.useDebounce=zg,E.useIsMobile=Vg,E.useMediaQuery=Gg,E.usePWAInstall=Hg,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})});
|
|
196
|
+
Defaulting to \`null\`.`}var Qu=Hu,zC=Uu;const na=l.forwardRef(({className:e,value:t,...n},r)=>d.jsx(Qu,{ref:r,className:k("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),...n,children:d.jsx(zC,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));na.displayName=Qu.displayName;function UC(e){const{showStrengthMeter:t=!0,className:n,strengthLabels:r={veryWeak:"Very weak",weak:"Weak",medium:"Medium",strong:"Strong",veryStrong:"Very strong"},showPasswordLabel:o="Show password",hidePasswordLabel:a="Hide password",strengthTitle:i="Password strength",...s}=e,[c,u]=M.useState(""),[f,m]=M.useState(!1),h=w=>{let y=0;return w.length>=8&&(y+=25),w.match(/[a-z]/)&&(y+=25),w.match(/[A-Z]/)&&(y+=25),w.match(/[0-9]/)&&(y+=25),y},g=w=>w===0?r.veryWeak:w<=25?r.weak:w<=50?r.medium:w<=75?r.strong:r.veryStrong,b=h(c),p=g(b),v=w=>{var y;u(w.target.value),(y=e.onChange)==null||y.call(e,w)};return d.jsxs("div",{className:"w-full space-y-4",children:[d.jsxs("div",{className:"relative",children:[d.jsx(Ln,{...s,type:f?"text":"password",value:c,onChange:v,className:`pr-10 ${n||""}`}),d.jsx(Ke,{type:"button",variant:"ghost",size:"icon",className:"absolute right-0 top-0 h-full",onClick:()=>m(!f),"aria-label":f?a:o,children:f?d.jsx(Lp,{className:"h-4 w-4"}):d.jsx(Bp,{className:"h-4 w-4"})})]}),t&&d.jsxs("div",{className:"space-y-2",children:[d.jsxs("div",{className:"flex justify-between text-sm",children:[d.jsxs("span",{children:[i,":"]}),d.jsx("span",{children:p})]}),d.jsx(na,{value:b,className:"h-2"})]})]})}var ra="Radio",[qC,Zu]=ye(ra),[KC,XC]=qC(ra),Ju=l.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:a,disabled:i,value:s="on",onCheck:c,form:u,...f}=e,[m,h]=l.useState(null),g=J(t,v=>h(v)),b=l.useRef(!1),p=m?u||!!m.closest("form"):!0;return d.jsxs(KC,{scope:n,checked:o,disabled:i,children:[d.jsx(W.button,{type:"button",role:"radio","aria-checked":o,"data-state":nd(o),"data-disabled":i?"":void 0,disabled:i,value:s,...f,ref:g,onClick:A(e.onClick,v=>{o||c==null||c(),p&&(b.current=v.isPropagationStopped(),b.current||v.stopPropagation())})}),p&&d.jsx(QC,{control:m,bubbles:!b.current,name:r,value:s,checked:o,required:a,disabled:i,form:u,style:{transform:"translateX(-100%)"}})]})});Ju.displayName=ra;var ed="RadioIndicator",td=l.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,a=XC(ed,n);return d.jsx(Te,{present:r||a.checked,children:d.jsx(W.span,{"data-state":nd(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});td.displayName=ed;var QC=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=l.useRef(null),i=pr(n),s=ur(t);return l.useEffect(()=>{const c=a.current,u=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(u,"checked").set;if(i!==n&&m){const h=new Event("click",{bubbles:r});m.call(c,n),c.dispatchEvent(h)}},[i,n,r]),d.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:a,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function nd(e){return e?"checked":"unchecked"}var ZC=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],oa="RadioGroup",[JC,$M]=ye(oa,[Mt,Zu]),rd=Mt(),od=Zu(),[eS,tS]=JC(oa),ad=l.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:a,required:i=!1,disabled:s=!1,orientation:c,dir:u,loop:f=!0,onValueChange:m,...h}=e,g=rd(n),b=Zt(u),[p,v]=ke({prop:a,defaultProp:o,onChange:m});return d.jsx(eS,{scope:n,name:r,required:i,disabled:s,value:p,onValueChange:v,children:d.jsx(xr,{asChild:!0,...g,orientation:c,dir:b,loop:f,children:d.jsx(W.div,{role:"radiogroup","aria-required":i,"aria-orientation":c,"data-disabled":s?"":void 0,dir:b,...h,ref:t})})})});ad.displayName=oa;var sd="RadioGroupItem",id=l.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,a=tS(sd,n),i=a.disabled||r,s=rd(n),c=od(n),u=l.useRef(null),f=J(t,u),m=a.value===o.value,h=l.useRef(!1);return l.useEffect(()=>{const g=p=>{ZC.includes(p.key)&&(h.current=!0)},b=()=>h.current=!1;return document.addEventListener("keydown",g),document.addEventListener("keyup",b),()=>{document.removeEventListener("keydown",g),document.removeEventListener("keyup",b)}},[]),d.jsx(Cr,{asChild:!0,...s,focusable:!i,active:m,children:d.jsx(Ju,{disabled:i,required:a.required,checked:m,...c,...o,name:a.name,ref:f,onCheck:()=>a.onValueChange(o.value),onKeyDown:A(g=>{g.key==="Enter"&&g.preventDefault()}),onFocus:A(o.onFocus,()=>{var g;h.current&&((g=u.current)==null||g.click())})})})});id.displayName=sd;var nS="RadioGroupIndicator",cd=l.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=od(n);return d.jsx(td,{...o,...r,ref:t})});cd.displayName=nS;var ld=ad,ud=id,rS=cd;const dd=l.forwardRef(({className:e,...t},n)=>d.jsx(ld,{className:k("grid gap-2",e),...t,ref:n}));dd.displayName=ld.displayName;const fd=l.forwardRef(({className:e,...t},n)=>d.jsx(ud,{ref:n,className:k("aspect-square h-4 w-4 rounded-full border border-primary text-primary shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:d.jsx(rS,{className:"flex items-center justify-center",children:d.jsx(di,{className:"h-3.5 w-3.5 fill-primary"})})}));fd.displayName=ud.displayName;function md(e,[t,n]){return Math.min(n,Math.max(t,e))}var oS="VisuallyHidden",aa=l.forwardRef((e,t)=>d.jsx(W.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));aa.displayName=oS;var aS=aa,sS=[" ","Enter","ArrowUp","ArrowDown"],iS=[" ","Enter"],In="Select",[Dr,kr,cS]=_o(In),[en,LM]=ye(In,[cS,wt]),Tr=wt(),[lS,Et]=en(In),[uS,dS]=en(In),hd=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:i,defaultValue:s,onValueChange:c,dir:u,name:f,autoComplete:m,disabled:h,required:g,form:b}=e,p=Tr(t),[v,w]=l.useState(null),[y,C]=l.useState(null),[S,E]=l.useState(!1),D=Zt(u),[P=!1,O]=ke({prop:r,defaultProp:o,onChange:a}),[B,L]=ke({prop:i,defaultProp:s,onChange:c}),V=l.useRef(null),R=v?b||!!v.closest("form"):!0,[H,G]=l.useState(new Set),X=Array.from(H).map(j=>j.props.value).join(";");return d.jsx(vn,{...p,children:d.jsxs(lS,{required:g,scope:t,trigger:v,onTriggerChange:w,valueNode:y,onValueNodeChange:C,valueNodeHasChildren:S,onValueNodeHasChildrenChange:E,contentId:Ae(),value:B,onValueChange:L,open:P,onOpenChange:O,dir:D,triggerPointerDownPosRef:V,disabled:h,children:[d.jsx(Dr.Provider,{scope:t,children:d.jsx(uS,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback(j=>{G(z=>new Set(z).add(j))},[]),onNativeOptionRemove:l.useCallback(j=>{G(z=>{const F=new Set(z);return F.delete(j),F})},[]),children:n})}),R?d.jsxs($d,{"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:m,value:B,onChange:j=>L(j.target.value),disabled:h,form:b,children:[B===void 0?d.jsx("option",{value:""}):null,Array.from(H)]},X):null]})})};hd.displayName=In;var pd="SelectTrigger",gd=l.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=Tr(n),i=Et(pd,n),s=i.disabled||r,c=J(t,i.onTriggerChange),u=kr(n),f=l.useRef("touch"),[m,h,g]=Ld(p=>{const v=u().filter(C=>!C.disabled),w=v.find(C=>C.value===i.value),y=Bd(v,p,w);y!==void 0&&i.onValueChange(y.value)}),b=p=>{s||(i.onOpenChange(!0),g()),p&&(i.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return d.jsx(yn,{asChild:!0,...a,children:d.jsx(W.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":Wd(i.value)?"":void 0,...o,ref:c,onClick:A(o.onClick,p=>{p.currentTarget.focus(),f.current!=="mouse"&&b(p)}),onPointerDown:A(o.onPointerDown,p=>{f.current=p.pointerType;const v=p.target;v.hasPointerCapture(p.pointerId)&&v.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(b(p),p.preventDefault())}),onKeyDown:A(o.onKeyDown,p=>{const v=m.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&h(p.key),!(v&&p.key===" ")&&sS.includes(p.key)&&(b(),p.preventDefault())})})})});gd.displayName=pd;var vd="SelectValue",yd=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:i="",...s}=e,c=Et(vd,n),{onValueNodeHasChildrenChange:u}=c,f=a!==void 0,m=J(t,c.onValueNodeChange);return Se(()=>{u(f)},[u,f]),d.jsx(W.span,{...s,ref:m,style:{pointerEvents:"none"},children:Wd(c.value)?d.jsx(d.Fragment,{children:i}):a})});yd.displayName=vd;var fS="SelectIcon",bd=l.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return d.jsx(W.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});bd.displayName=fS;var _t="SelectContent",wd=l.forwardRef((e,t)=>{const n=Et(_t,e.__scopeSelect),[r,o]=l.useState();if(Se(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?Wn.createPortal(d.jsx(xd,{scope:e.__scopeSelect,children:d.jsx(Dr.Slot,{scope:e.__scopeSelect,children:d.jsx("div",{children:e.children})})}),a):null}return d.jsx(Cd,{...e,ref:t})});wd.displayName=_t;var Ve=10,[xd,Pt]=en(_t),mS="SelectContentImpl",Cd=l.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:i,side:s,sideOffset:c,align:u,alignOffset:f,arrowPadding:m,collisionBoundary:h,collisionPadding:g,sticky:b,hideWhenDetached:p,avoidCollisions:v,...w}=e,y=Et(_t,n),[C,S]=l.useState(null),[E,D]=l.useState(null),P=J(t,$=>S($)),[O,B]=l.useState(null),[L,V]=l.useState(null),R=kr(n),[H,G]=l.useState(!1),X=l.useRef(!1);l.useEffect(()=>{if(C)return Zn(C)},[C]),Gn();const j=l.useCallback($=>{const[ne,...ae]=R().map(te=>te.ref.current),[ee]=ae.slice(-1),re=document.activeElement;for(const te of $)if(te===re||(te==null||te.scrollIntoView({block:"nearest"}),te===ne&&E&&(E.scrollTop=0),te===ee&&E&&(E.scrollTop=E.scrollHeight),te==null||te.focus(),document.activeElement!==re))return},[R,E]),z=l.useCallback(()=>j([O,C]),[j,O,C]);l.useEffect(()=>{H&&z()},[H,z]);const{onOpenChange:F,triggerPointerDownPosRef:T}=y;l.useEffect(()=>{if(C){let $={x:0,y:0};const ne=ee=>{var re,te;$={x:Math.abs(Math.round(ee.pageX)-(((re=T.current)==null?void 0:re.x)??0)),y:Math.abs(Math.round(ee.pageY)-(((te=T.current)==null?void 0:te.y)??0))}},ae=ee=>{$.x<=10&&$.y<=10?ee.preventDefault():C.contains(ee.target)||F(!1),document.removeEventListener("pointermove",ne),T.current=null};return T.current!==null&&(document.addEventListener("pointermove",ne),document.addEventListener("pointerup",ae,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ne),document.removeEventListener("pointerup",ae,{capture:!0})}}},[C,F,T]),l.useEffect(()=>{const $=()=>F(!1);return window.addEventListener("blur",$),window.addEventListener("resize",$),()=>{window.removeEventListener("blur",$),window.removeEventListener("resize",$)}},[F]);const[Z,U]=Ld($=>{const ne=R().filter(re=>!re.disabled),ae=ne.find(re=>re.ref.current===document.activeElement),ee=Bd(ne,$,ae);ee&&setTimeout(()=>ee.ref.current.focus())}),ve=l.useCallback(($,ne,ae)=>{const ee=!X.current&&!ae;(y.value!==void 0&&y.value===ne||ee)&&(B($),ee&&(X.current=!0))},[y.value]),Me=l.useCallback(()=>C==null?void 0:C.focus(),[C]),pe=l.useCallback(($,ne,ae)=>{const ee=!X.current&&!ae;(y.value!==void 0&&y.value===ne||ee)&&V($)},[y.value]),Oe=r==="popper"?sa:Sd,he=Oe===sa?{side:s,sideOffset:c,align:u,alignOffset:f,arrowPadding:m,collisionBoundary:h,collisionPadding:g,sticky:b,hideWhenDetached:p,avoidCollisions:v}:{};return d.jsx(xd,{scope:n,content:C,viewport:E,onViewportChange:D,itemRefCallback:ve,selectedItem:O,onItemLeave:Me,itemTextRefCallback:pe,focusSelectedItem:z,selectedItemText:L,position:r,isPositioned:H,searchRef:Z,children:d.jsx(fn,{as:Ue,allowPinchZoom:!0,children:d.jsx(un,{asChild:!0,trapped:y.open,onMountAutoFocus:$=>{$.preventDefault()},onUnmountAutoFocus:A(o,$=>{var ne;(ne=y.trigger)==null||ne.focus({preventScroll:!0}),$.preventDefault()}),children:d.jsx(Ft,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:$=>$.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:d.jsx(Oe,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:$=>$.preventDefault(),...w,...he,onPlaced:()=>G(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...w.style},onKeyDown:A(w.onKeyDown,$=>{const ne=$.ctrlKey||$.altKey||$.metaKey;if($.key==="Tab"&&$.preventDefault(),!ne&&$.key.length===1&&U($.key),["ArrowUp","ArrowDown","Home","End"].includes($.key)){let ee=R().filter(re=>!re.disabled).map(re=>re.ref.current);if(["ArrowUp","End"].includes($.key)&&(ee=ee.slice().reverse()),["ArrowUp","ArrowDown"].includes($.key)){const re=$.target,te=ee.indexOf(re);ee=ee.slice(te+1)}setTimeout(()=>j(ee)),$.preventDefault()}})})})})})})});Cd.displayName=mS;var hS="SelectItemAlignedPosition",Sd=l.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=Et(_t,n),i=Pt(_t,n),[s,c]=l.useState(null),[u,f]=l.useState(null),m=J(t,P=>f(P)),h=kr(n),g=l.useRef(!1),b=l.useRef(!0),{viewport:p,selectedItem:v,selectedItemText:w,focusSelectedItem:y}=i,C=l.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&u&&p&&v&&w){const P=a.trigger.getBoundingClientRect(),O=u.getBoundingClientRect(),B=a.valueNode.getBoundingClientRect(),L=w.getBoundingClientRect();if(a.dir!=="rtl"){const re=L.left-O.left,te=B.left-re,we=P.left-te,Pe=P.width+we,Ye=Math.max(Pe,O.width),dt=window.innerWidth-Ve,Ge=md(te,[Ve,Math.max(Ve,dt-Ye)]);s.style.minWidth=Pe+"px",s.style.left=Ge+"px"}else{const re=O.right-L.right,te=window.innerWidth-B.right-re,we=window.innerWidth-P.right-te,Pe=P.width+we,Ye=Math.max(Pe,O.width),dt=window.innerWidth-Ve,Ge=md(te,[Ve,Math.max(Ve,dt-Ye)]);s.style.minWidth=Pe+"px",s.style.right=Ge+"px"}const V=h(),R=window.innerHeight-Ve*2,H=p.scrollHeight,G=window.getComputedStyle(u),X=parseInt(G.borderTopWidth,10),j=parseInt(G.paddingTop,10),z=parseInt(G.borderBottomWidth,10),F=parseInt(G.paddingBottom,10),T=X+j+H+F+z,Z=Math.min(v.offsetHeight*5,T),U=window.getComputedStyle(p),ve=parseInt(U.paddingTop,10),Me=parseInt(U.paddingBottom,10),pe=P.top+P.height/2-Ve,Oe=R-pe,he=v.offsetHeight/2,$=v.offsetTop+he,ne=X+j+$,ae=T-ne;if(ne<=pe){const re=V.length>0&&v===V[V.length-1].ref.current;s.style.bottom="0px";const te=u.clientHeight-p.offsetTop-p.offsetHeight,we=Math.max(Oe,he+(re?Me:0)+te+z),Pe=ne+we;s.style.height=Pe+"px"}else{const re=V.length>0&&v===V[0].ref.current;s.style.top="0px";const we=Math.max(pe,X+p.offsetTop+(re?ve:0)+he)+ae;s.style.height=we+"px",p.scrollTop=ne-pe+p.offsetTop}s.style.margin=`${Ve}px 0`,s.style.minHeight=Z+"px",s.style.maxHeight=R+"px",r==null||r(),requestAnimationFrame(()=>g.current=!0)}},[h,a.trigger,a.valueNode,s,u,p,v,w,a.dir,r]);Se(()=>C(),[C]);const[S,E]=l.useState();Se(()=>{u&&E(window.getComputedStyle(u).zIndex)},[u]);const D=l.useCallback(P=>{P&&b.current===!0&&(C(),y==null||y(),b.current=!1)},[C,y]);return d.jsx(gS,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:g,onScrollButtonChange:D,children:d.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:d.jsx(W.div,{...o,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Sd.displayName=hS;var pS="SelectPopperPosition",sa=l.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Ve,...a}=e,i=Tr(n);return d.jsx(dr,{...i,...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)"}})});sa.displayName=pS;var[gS,ia]=en(_t,{}),ca="SelectViewport",Md=l.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=Pt(ca,n),i=ia(ca,n),s=J(t,a.onViewportChange),c=l.useRef(0);return d.jsxs(d.Fragment,{children:[d.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}),d.jsx(Dr.Slot,{scope:n,children:d.jsx(W.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:A(o.onScroll,u=>{const f=u.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:h}=i;if(h!=null&&h.current&&m){const g=Math.abs(c.current-f.scrollTop);if(g>0){const b=window.innerHeight-Ve*2,p=parseFloat(m.style.minHeight),v=parseFloat(m.style.height),w=Math.max(p,v);if(w<b){const y=w+g,C=Math.min(b,y),S=y-C;m.style.height=C+"px",m.style.bottom==="0px"&&(f.scrollTop=S>0?S:0,m.style.justifyContent="flex-end")}}}c.current=f.scrollTop})})})]})});Md.displayName=ca;var Nd="SelectGroup",[vS,yS]=en(Nd),Ed=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Ae();return d.jsx(vS,{scope:n,id:o,children:d.jsx(W.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Ed.displayName=Nd;var Pd="SelectLabel",Dd=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=yS(Pd,n);return d.jsx(W.div,{id:o.id,...r,ref:t})});Dd.displayName=Pd;var Or="SelectItem",[bS,kd]=en(Or),Td=l.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...i}=e,s=Et(Or,n),c=Pt(Or,n),u=s.value===r,[f,m]=l.useState(a??""),[h,g]=l.useState(!1),b=J(t,y=>{var C;return(C=c.itemRefCallback)==null?void 0:C.call(c,y,r,o)}),p=Ae(),v=l.useRef("touch"),w=()=>{o||(s.onValueChange(r),s.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 d.jsx(bS,{scope:n,value:r,disabled:o,textId:p,isSelected:u,onItemTextChange:l.useCallback(y=>{m(C=>C||((y==null?void 0:y.textContent)??"").trim())},[]),children:d.jsx(Dr.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:d.jsx(W.div,{role:"option","aria-labelledby":p,"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,...i,ref:b,onFocus:A(i.onFocus,()=>g(!0)),onBlur:A(i.onBlur,()=>g(!1)),onClick:A(i.onClick,()=>{v.current!=="mouse"&&w()}),onPointerUp:A(i.onPointerUp,()=>{v.current==="mouse"&&w()}),onPointerDown:A(i.onPointerDown,y=>{v.current=y.pointerType}),onPointerMove:A(i.onPointerMove,y=>{var C;v.current=y.pointerType,o?(C=c.onItemLeave)==null||C.call(c):v.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:A(i.onPointerLeave,y=>{var C;y.currentTarget===document.activeElement&&((C=c.onItemLeave)==null||C.call(c))}),onKeyDown:A(i.onKeyDown,y=>{var S;((S=c.searchRef)==null?void 0:S.current)!==""&&y.key===" "||(iS.includes(y.key)&&w(),y.key===" "&&y.preventDefault())})})})})});Td.displayName=Or;var jn="SelectItemText",Od=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,i=Et(jn,n),s=Pt(jn,n),c=kd(jn,n),u=dS(jn,n),[f,m]=l.useState(null),h=J(t,w=>m(w),c.onItemTextChange,w=>{var y;return(y=s.itemTextRefCallback)==null?void 0:y.call(s,w,c.value,c.disabled)}),g=f==null?void 0:f.textContent,b=l.useMemo(()=>d.jsx("option",{value:c.value,disabled:c.disabled,children:g},c.value),[c.disabled,c.value,g]),{onNativeOptionAdd:p,onNativeOptionRemove:v}=u;return Se(()=>(p(b),()=>v(b)),[p,v,b]),d.jsxs(d.Fragment,{children:[d.jsx(W.span,{id:c.textId,...a,ref:h}),c.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Wn.createPortal(a.children,i.valueNode):null]})});Od.displayName=jn;var Ad="SelectItemIndicator",Rd=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return kd(Ad,n).isSelected?d.jsx(W.span,{"aria-hidden":!0,...r,ref:t}):null});Rd.displayName=Ad;var la="SelectScrollUpButton",_d=l.forwardRef((e,t)=>{const n=Pt(la,e.__scopeSelect),r=ia(la,e.__scopeSelect),[o,a]=l.useState(!1),i=J(t,r.onScrollButtonChange);return Se(()=>{if(n.viewport&&n.isPositioned){let s=function(){const u=c.scrollTop>0;a(u)};const c=n.viewport;return s(),c.addEventListener("scroll",s),()=>c.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?d.jsx(jd,{...e,ref:i,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=n;s&&c&&(s.scrollTop=s.scrollTop-c.offsetHeight)}}):null});_d.displayName=la;var ua="SelectScrollDownButton",Id=l.forwardRef((e,t)=>{const n=Pt(ua,e.__scopeSelect),r=ia(ua,e.__scopeSelect),[o,a]=l.useState(!1),i=J(t,r.onScrollButtonChange);return Se(()=>{if(n.viewport&&n.isPositioned){let s=function(){const u=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<u;a(f)};const c=n.viewport;return s(),c.addEventListener("scroll",s),()=>c.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?d.jsx(jd,{...e,ref:i,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=n;s&&c&&(s.scrollTop=s.scrollTop+c.offsetHeight)}}):null});Id.displayName=ua;var jd=l.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=Pt("SelectScrollButton",n),i=l.useRef(null),s=kr(n),c=l.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return l.useEffect(()=>()=>c(),[c]),Se(()=>{var f;const u=s().find(m=>m.ref.current===document.activeElement);(f=u==null?void 0:u.ref.current)==null||f.scrollIntoView({block:"nearest"})},[s]),d.jsx(W.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:A(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:A(o.onPointerMove,()=>{var u;(u=a.onItemLeave)==null||u.call(a),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:A(o.onPointerLeave,()=>{c()})})}),wS="SelectSeparator",Fd=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return d.jsx(W.div,{"aria-hidden":!0,...r,ref:t})});Fd.displayName=wS;var da="SelectArrow",xS=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Tr(n),a=Et(da,n),i=Pt(da,n);return a.open&&i.position==="popper"?d.jsx(fr,{...o,...r,ref:t}):null});xS.displayName=da;function Wd(e){return e===""||e===void 0}var $d=l.forwardRef((e,t)=>{const{value:n,...r}=e,o=l.useRef(null),a=J(t,o),i=pr(n);return l.useEffect(()=>{const s=o.current,c=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==n&&f){const m=new Event("change",{bubbles:!0});f.call(s,n),s.dispatchEvent(m)}},[i,n]),d.jsx(aa,{asChild:!0,children:d.jsx("select",{...r,ref:a,defaultValue:n})})});$d.displayName="BubbleSelect";function Ld(e){const t=Re(e),n=l.useRef(""),r=l.useRef(0),o=l.useCallback(i=>{const s=n.current+i;t(s),function c(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>c(""),1e3))}(s)},[t]),a=l.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function Bd(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 i=CS(e,Math.max(a,0));o.length===1&&(i=i.filter(u=>u!==n));const c=i.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function CS(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var SS=hd,Vd=gd,MS=yd,NS=bd,Yd=wd,ES=Md,PS=Ed,Gd=Dd,Hd=Td,DS=Od,kS=Rd,zd=_d,Ud=Id,qd=Fd;const TS=SS,OS=PS,AS=MS,Kd=l.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(Vd,{ref:r,className:k("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,d.jsx(NS,{asChild:!0,children:d.jsx(ci,{className:"h-4 w-4 opacity-50"})})]}));Kd.displayName=Vd.displayName;const fa=l.forwardRef(({className:e,...t},n)=>d.jsx(zd,{ref:n,className:k("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(Ip,{className:"h-4 w-4"})}));fa.displayName=zd.displayName;const ma=l.forwardRef(({className:e,...t},n)=>d.jsx(Ud,{ref:n,className:k("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(ci,{className:"h-4 w-4"})}));ma.displayName=Ud.displayName;const Xd=l.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>d.jsxs(Yd,{ref:o,className:k("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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",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:[d.jsx(fa,{}),d.jsx(ES,{className:k("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),d.jsx(ma,{})]}));Xd.displayName=Yd.displayName;const Qd=l.forwardRef(({className:e,...t},n)=>d.jsx(Gd,{ref:n,className:k("px-2 py-1.5 text-sm font-semibold",e),...t}));Qd.displayName=Gd.displayName;const Zd=l.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(Hd,{ref:r,className:k("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[d.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:d.jsx(kS,{children:d.jsx(io,{className:"h-4 w-4"})})}),d.jsx(DS,{children:t})]}));Zd.displayName=Hd.displayName;const Jd=l.forwardRef(({className:e,...t},n)=>d.jsx(qd,{ref:n,className:k("-mx-1 my-1 h-px bg-muted",e),...t}));Jd.displayName=qd.displayName;const RS=({className:e,repeat:t=1,...n})=>d.jsx(d.Fragment,{children:Array.from({length:t??1}).map((r,o)=>d.jsx("div",{className:k("animate-pulse rounded-md bg-gray-700/10",e),...n},o))});var ha="Switch",[_S,BM]=ye(ha),[IS,jS]=_S(ha),ef=l.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:a,required:i,disabled:s,value:c="on",onCheckedChange:u,form:f,...m}=e,[h,g]=l.useState(null),b=J(t,C=>g(C)),p=l.useRef(!1),v=h?f||!!h.closest("form"):!0,[w=!1,y]=ke({prop:o,defaultProp:a,onChange:u});return d.jsxs(IS,{scope:n,checked:w,disabled:s,children:[d.jsx(W.button,{type:"button",role:"switch","aria-checked":w,"aria-required":i,"data-state":rf(w),"data-disabled":s?"":void 0,disabled:s,value:c,...m,ref:b,onClick:A(e.onClick,C=>{y(S=>!S),v&&(p.current=C.isPropagationStopped(),p.current||C.stopPropagation())})}),v&&d.jsx(FS,{control:h,bubbles:!p.current,name:r,value:c,checked:w,required:i,disabled:s,form:f,style:{transform:"translateX(-100%)"}})]})});ef.displayName=ha;var tf="SwitchThumb",nf=l.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=jS(tf,n);return d.jsx(W.span,{"data-state":rf(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});nf.displayName=tf;var FS=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=l.useRef(null),i=pr(n),s=ur(t);return l.useEffect(()=>{const c=a.current,u=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(u,"checked").set;if(i!==n&&m){const h=new Event("click",{bubbles:r});m.call(c,n),c.dispatchEvent(h)}},[i,n,r]),d.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:a,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function rf(e){return e?"checked":"unchecked"}var of=ef,WS=nf;const af=l.forwardRef(({className:e,...t},n)=>d.jsx(of,{className:k("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:n,children:d.jsx(WS,{className:k("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));af.displayName=of.displayName;const sf=l.forwardRef(({className:e,...t},n)=>d.jsx("div",{className:"relative w-full overflow-auto",children:d.jsx("table",{ref:n,className:k("w-full caption-bottom text-sm",e),...t})}));sf.displayName="Table";const cf=l.forwardRef(({className:e,...t},n)=>d.jsx("thead",{ref:n,className:k("[&_tr]:border-b",e),...t}));cf.displayName="TableHeader";const lf=l.forwardRef(({className:e,...t},n)=>d.jsx("tbody",{ref:n,className:k("[&_tr:last-child]:border-0",e),...t}));lf.displayName="TableBody";const uf=l.forwardRef(({className:e,...t},n)=>d.jsx("tfoot",{ref:n,className:k("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));uf.displayName="TableFooter";const df=l.forwardRef(({className:e,...t},n)=>d.jsx("tr",{ref:n,className:k("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));df.displayName="TableRow";const ff=l.forwardRef(({className:e,...t},n)=>d.jsx("th",{ref:n,className:k("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));ff.displayName="TableHead";const mf=l.forwardRef(({className:e,...t},n)=>d.jsx("td",{ref:n,className:k("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));mf.displayName="TableCell";const hf=l.forwardRef(({className:e,...t},n)=>d.jsx("caption",{ref:n,className:k("mt-4 text-sm text-muted-foreground",e),...t}));hf.displayName="TableCaption";var pa="Tabs",[$S,VM]=ye(pa,[Mt]),pf=Mt(),[LS,ga]=$S(pa),gf=l.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:i="horizontal",dir:s,activationMode:c="automatic",...u}=e,f=Zt(s),[m,h]=ke({prop:r,onChange:o,defaultProp:a});return d.jsx(LS,{scope:n,baseId:Ae(),value:m,onValueChange:h,orientation:i,dir:f,activationMode:c,children:d.jsx(W.div,{dir:f,"data-orientation":i,...u,ref:t})})});gf.displayName=pa;var vf="TabsList",yf=l.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,a=ga(vf,n),i=pf(n);return d.jsx(xr,{asChild:!0,...i,orientation:a.orientation,dir:a.dir,loop:r,children:d.jsx(W.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});yf.displayName=vf;var bf="TabsTrigger",wf=l.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...a}=e,i=ga(bf,n),s=pf(n),c=Sf(i.baseId,r),u=Mf(i.baseId,r),f=r===i.value;return d.jsx(Cr,{asChild:!0,...s,focusable:!o,active:f,children:d.jsx(W.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":u,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c,...a,ref:t,onMouseDown:A(e.onMouseDown,m=>{!o&&m.button===0&&m.ctrlKey===!1?i.onValueChange(r):m.preventDefault()}),onKeyDown:A(e.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&i.onValueChange(r)}),onFocus:A(e.onFocus,()=>{const m=i.activationMode!=="manual";!f&&!o&&m&&i.onValueChange(r)})})})});wf.displayName=bf;var xf="TabsContent",Cf=l.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:a,...i}=e,s=ga(xf,n),c=Sf(s.baseId,r),u=Mf(s.baseId,r),f=r===s.value,m=l.useRef(f);return l.useEffect(()=>{const h=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(h)},[]),d.jsx(Te,{present:o||f,children:({present:h})=>d.jsx(W.div,{"data-state":f?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":c,hidden:!h,id:u,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:h&&a})})});Cf.displayName=xf;function Sf(e,t){return`${e}-trigger-${t}`}function Mf(e,t){return`${e}-content-${t}`}var BS=gf,Nf=yf,Ef=wf,Pf=Cf;const VS=BS,Df=l.forwardRef(({className:e,...t},n)=>d.jsx(Nf,{ref:n,className:k("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));Df.displayName=Nf.displayName;const kf=l.forwardRef(({className:e,...t},n)=>d.jsx(Ef,{ref:n,className:k("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",e),...t}));kf.displayName=Ef.displayName;const Tf=l.forwardRef(({className:e,...t},n)=>d.jsx(Pf,{ref:n,className:k("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));Tf.displayName=Pf.displayName;const Of=l.forwardRef(({className:e,...t},n)=>d.jsx("textarea",{className:k("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));Of.displayName="Textarea";var YS="Toggle",va=l.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r=!1,onPressedChange:o,...a}=e,[i=!1,s]=ke({prop:n,onChange:o,defaultProp:r});return d.jsx(W.button,{type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:A(e.onClick,()=>{e.disabled||s(!i)})})});va.displayName=YS;var Af=va;const ya=ln("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),Rf=l.forwardRef(({className:e,variant:t,size:n,...r},o)=>d.jsx(Af,{ref:o,className:k(ya({variant:t,size:n,className:e})),...r}));Rf.displayName=Af.displayName;var tn="ToggleGroup",[_f,YM]=ye(tn,[Mt]),If=Mt(),ba=M.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return d.jsx(GS,{...o,ref:t})}if(n==="multiple"){const o=r;return d.jsx(HS,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${tn}\``)});ba.displayName=tn;var[jf,Ff]=_f(tn),GS=M.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,s]=ke({prop:n,defaultProp:r,onChange:o});return d.jsx(jf,{scope:e.__scopeToggleGroup,type:"single",value:i?[i]:[],onItemActivate:s,onItemDeactivate:M.useCallback(()=>s(""),[s]),children:d.jsx(Wf,{...a,ref:t})})}),HS=M.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i=[],s]=ke({prop:n,defaultProp:r,onChange:o}),c=M.useCallback(f=>s((m=[])=>[...m,f]),[s]),u=M.useCallback(f=>s((m=[])=>m.filter(h=>h!==f)),[s]);return d.jsx(jf,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:c,onItemDeactivate:u,children:d.jsx(Wf,{...a,ref:t})})});ba.displayName=tn;var[zS,US]=_f(tn),Wf=M.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...c}=e,u=If(n),f=Zt(i),m={role:"group",dir:f,...c};return d.jsx(zS,{scope:n,rovingFocus:o,disabled:r,children:o?d.jsx(xr,{asChild:!0,...u,orientation:a,dir:f,loop:s,children:d.jsx(W.div,{...m,ref:t})}):d.jsx(W.div,{...m,ref:t})})}),Ar="ToggleGroupItem",$f=M.forwardRef((e,t)=>{const n=Ff(Ar,e.__scopeToggleGroup),r=US(Ar,e.__scopeToggleGroup),o=If(e.__scopeToggleGroup),a=n.value.includes(e.value),i=r.disabled||e.disabled,s={...e,pressed:a,disabled:i},c=M.useRef(null);return r.rovingFocus?d.jsx(Cr,{asChild:!0,...o,focusable:!i,active:a,ref:c,children:d.jsx(Lf,{...s,ref:t})}):d.jsx(Lf,{...s,ref:t})});$f.displayName=Ar;var Lf=M.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=Ff(Ar,n),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=a.type==="single"?i:void 0;return d.jsx(va,{...s,...o,ref:t,onPressedChange:c=>{c?a.onItemActivate(r):a.onItemDeactivate(r)}})}),Bf=ba,Vf=$f;const Yf=l.createContext({size:"default",variant:"default"}),Gf=l.forwardRef(({className:e,variant:t,size:n,children:r,...o},a)=>d.jsx(Bf,{ref:a,className:k("flex items-center justify-center gap-1",e),...o,children:d.jsx(Yf.Provider,{value:{variant:t,size:n},children:r})}));Gf.displayName=Bf.displayName;const Hf=l.forwardRef(({className:e,children:t,variant:n,size:r,...o},a)=>{const i=l.useContext(Yf);return d.jsx(Vf,{ref:a,className:k(ya({variant:i.variant||n,size:i.size||r}),e),...o,children:t})});Hf.displayName=Vf.displayName;var[Rr,GM]=ye("Tooltip",[wt]),_r=wt(),zf="TooltipProvider",qS=700,wa="tooltip.open",[KS,xa]=Rr(zf),Uf=e=>{const{__scopeTooltip:t,delayDuration:n=qS,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,[i,s]=l.useState(!0),c=l.useRef(!1),u=l.useRef(0);return l.useEffect(()=>{const f=u.current;return()=>window.clearTimeout(f)},[]),d.jsx(KS,{scope:t,isOpenDelayed:i,delayDuration:n,onOpen:l.useCallback(()=>{window.clearTimeout(u.current),s(!1)},[]),onClose:l.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:l.useCallback(f=>{c.current=f},[]),disableHoverableContent:o,children:a})};Uf.displayName=zf;var Ir="Tooltip",[XS,Fn]=Rr(Ir),qf=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:i,delayDuration:s}=e,c=xa(Ir,e.__scopeTooltip),u=_r(t),[f,m]=l.useState(null),h=Ae(),g=l.useRef(0),b=i??c.disableHoverableContent,p=s??c.delayDuration,v=l.useRef(!1),[w=!1,y]=ke({prop:r,defaultProp:o,onChange:P=>{P?(c.onOpen(),document.dispatchEvent(new CustomEvent(wa))):c.onClose(),a==null||a(P)}}),C=l.useMemo(()=>w?v.current?"delayed-open":"instant-open":"closed",[w]),S=l.useCallback(()=>{window.clearTimeout(g.current),g.current=0,v.current=!1,y(!0)},[y]),E=l.useCallback(()=>{window.clearTimeout(g.current),g.current=0,y(!1)},[y]),D=l.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{v.current=!0,y(!0),g.current=0},p)},[p,y]);return l.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),d.jsx(vn,{...u,children:d.jsx(XS,{scope:t,contentId:h,open:w,stateAttribute:C,trigger:f,onTriggerChange:m,onTriggerEnter:l.useCallback(()=>{c.isOpenDelayed?D():S()},[c.isOpenDelayed,D,S]),onTriggerLeave:l.useCallback(()=>{b?E():(window.clearTimeout(g.current),g.current=0)},[E,b]),onOpen:S,onClose:E,disableHoverableContent:b,children:n})})};qf.displayName=Ir;var Ca="TooltipTrigger",Kf=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Fn(Ca,n),a=xa(Ca,n),i=_r(n),s=l.useRef(null),c=J(t,s,o.onTriggerChange),u=l.useRef(!1),f=l.useRef(!1),m=l.useCallback(()=>u.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),d.jsx(yn,{asChild:!0,...i,children:d.jsx(W.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:A(e.onPointerMove,h=>{h.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:A(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:A(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:A(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:A(e.onBlur,o.onClose),onClick:A(e.onClick,o.onClose)})})});Kf.displayName=Ca;var Sa="TooltipPortal",[QS,ZS]=Rr(Sa,{forceMount:void 0}),Xf=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=Fn(Sa,t);return d.jsx(QS,{scope:t,forceMount:n,children:d.jsx(Te,{present:n||a.open,children:d.jsx(dn,{asChild:!0,container:o,children:r})})})};Xf.displayName=Sa;var nn="TooltipContent",Qf=l.forwardRef((e,t)=>{const n=ZS(nn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,i=Fn(nn,e.__scopeTooltip);return d.jsx(Te,{present:r||i.open,children:i.disableHoverableContent?d.jsx(Zf,{side:o,...a,ref:t}):d.jsx(JS,{side:o,...a,ref:t})})}),JS=l.forwardRef((e,t)=>{const n=Fn(nn,e.__scopeTooltip),r=xa(nn,e.__scopeTooltip),o=l.useRef(null),a=J(t,o),[i,s]=l.useState(null),{trigger:c,onClose:u}=n,f=o.current,{onPointerInTransitChange:m}=r,h=l.useCallback(()=>{s(null),m(!1)},[m]),g=l.useCallback((b,p)=>{const v=b.currentTarget,w={x:b.clientX,y:b.clientY},y=rM(w,v.getBoundingClientRect()),C=oM(w,y),S=aM(p.getBoundingClientRect()),E=iM([...C,...S]);s(E),m(!0)},[m]);return l.useEffect(()=>()=>h(),[h]),l.useEffect(()=>{if(c&&f){const b=v=>g(v,f),p=v=>g(v,c);return c.addEventListener("pointerleave",b),f.addEventListener("pointerleave",p),()=>{c.removeEventListener("pointerleave",b),f.removeEventListener("pointerleave",p)}}},[c,f,g,h]),l.useEffect(()=>{if(i){const b=p=>{const v=p.target,w={x:p.clientX,y:p.clientY},y=(c==null?void 0:c.contains(v))||(f==null?void 0:f.contains(v)),C=!sM(w,i);y?h():C&&(h(),u())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[c,f,i,u,h]),d.jsx(Zf,{...e,ref:a})}),[eM,tM]=Rr(Ir,{isInside:!1}),Zf=l.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...s}=e,c=Fn(nn,n),u=_r(n),{onClose:f}=c;return l.useEffect(()=>(document.addEventListener(wa,f),()=>document.removeEventListener(wa,f)),[f]),l.useEffect(()=>{if(c.trigger){const m=h=>{const g=h.target;g!=null&&g.contains(c.trigger)&&f()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[c.trigger,f]),d.jsx(Ft,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:m=>m.preventDefault(),onDismiss:f,children:d.jsxs(dr,{"data-state":c.stateAttribute,...u,...s,ref:t,style:{...s.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:[d.jsx(Vr,{children:r}),d.jsx(eM,{scope:n,isInside:!0,children:d.jsx(aS,{id:c.contentId,role:"tooltip",children:o||r})})]})})});Qf.displayName=nn;var Jf="TooltipArrow",nM=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=_r(n);return tM(Jf,n).isInside?null:d.jsx(fr,{...o,...r,ref:t})});nM.displayName=Jf;function rM(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 oM(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 aM(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 sM(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a].x,c=t[a].y,u=t[i].x,f=t[i].y;c>r!=f>r&&n<(u-s)*(r-c)/(f-c)+s&&(o=!o)}return o}function iM(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),cM(t)}function cM(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],i=t[t.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],i=n[n.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var lM=Uf,uM=qf,dM=Kf,fM=Xf,em=Qf;const mM=lM,hM=uM,pM=dM,tm=l.forwardRef(({className:e,sideOffset:t=4,...n},r)=>d.jsx(fM,{children:d.jsx(em,{ref:r,sideOffset:t,className:k("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));tm.displayName=em.displayName;function gM(e){const{triggerElement:t,steps:n}=e,[r,o]=M.useState(!1),[a,i]=M.useState(0),s=()=>{i(u=>u<n.length-1?u+1:u)},c=()=>{i(u=>u>0?u-1:u)};return d.jsxs(Ao,{open:r,onOpenChange:o,children:[d.jsx(ul,{asChild:!0,children:t}),d.jsxs(gr,{className:"sm:max-w-[425px]",children:[d.jsxs(vr,{className:k(n[a].title===""&&"sr-only"),children:[d.jsx(yr,{children:n[a].title}),d.jsx(br,{className:"sr-only",children:n[a].title})]}),d.jsx("div",{children:n[a].description}),d.jsxs("div",{className:"flex items-center justify-between mt-4",children:[d.jsx(Ke,{variant:"ghost",size:"icon",onClick:c,disabled:a===0,children:d.jsx(li,{className:"h-4 w-4"})}),d.jsx("div",{className:"flex justify-center gap-1",children:n.map((u,f)=>d.jsx("div",{className:k("h-3 w-3 rounded-full",f===a?"bg-primary":"bg-gray-200")},f))}),d.jsx(Ke,{variant:"ghost",size:"icon",onClick:s,disabled:a===n.length-1,children:d.jsx(co,{className:"h-4 w-4"})})]})]})]})}function vM(e){const{currentMonth:t,currentYear:n,onChangeMonthYear:r,locale:o=mr}=e,a=i=>{let s=t,c=n;i==="prev"?s===0?(s=11,c--):s--:s===11?(s=0,c++):s++,r(s,c)};return d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx(Ke,{variant:"ghost",size:"icon",onClick:()=>a("prev"),"aria-label":"Previous month",children:d.jsx(Rp,{className:"!h-8 !w-8"})}),d.jsxs("div",{className:"text-center",children:[d.jsx("h2",{className:"text-2xl font-bold capitalize",children:o.localize.month(t,{width:"wide"})}),d.jsx("p",{className:"text-sm text-muted-foreground",children:n})]}),d.jsx(Ke,{variant:"ghost",size:"icon",onClick:()=>a("next"),"aria-label":"Next month",children:d.jsx(_p,{className:"!h-8 !w-8"})})]})}function yM({currentPage:e,totalPages:t,onPageChange:n}){const r=Array.from({length:t},(o,a)=>a+1);return d.jsx(Xo,{children:d.jsxs(Qo,{children:[d.jsx(Rn,{children:d.jsx(Zo,{onClick:()=>n(Math.max(1,e-1)),disabled:e===1})}),r.map(o=>d.jsx(Rn,{children:d.jsx(_n,{onClick:()=>n(o),isActive:e===o,children:o})},o)),d.jsx(Rn,{children:d.jsx(Jo,{onClick:()=>n(Math.min(t,e+1)),disabled:e===t})})]})})}function bM(e,t=250){const[n,r]=M.useState(e);return M.useEffect(()=>{const o=setTimeout(()=>{r(e)},t);return()=>{clearTimeout(o)}},[e,t]),n}const nm=l.createContext(void 0),rm={sm:"sm:max-w-[425px]",md:"sm:max-w-[550px]",lg:"sm:max-w-[700px]",xl:"sm:max-w-[900px]"},om={info:{icon:Vp,className:"text-blue-500"},success:{icon:Fp,className:"text-green-500"},error:{icon:Wp,className:"text-red-500"},warning:{icon:jp,className:"text-yellow-500"},confirm:{icon:ui,className:"text-blue-500"},custom:{icon:ui,className:"text-gray-500"}};function wM({children:e}){var g,b,p;const[t,n]=l.useState({isOpen:!1,options:null}),r=l.useCallback(v=>{n({isOpen:!0,options:v})},[]),o=l.useCallback(()=>{n(v=>({...v,isOpen:!1}))},[]),a=l.useCallback(v=>{r({...v,type:"info"})},[r]),i=l.useCallback(v=>{r({...v,type:"success"})},[r]),s=l.useCallback(v=>{r({...v,type:"error"})},[r]),c=l.useCallback(v=>{r({...v,type:"warning"})},[r]),u=l.useCallback(v=>{r({...v,type:"custom"})},[r]),f=l.useCallback(v=>{r({...v,type:"confirm"})},[r]),m=(v,w)=>{let y=om[v].icon;return w&&(y=w),d.jsx(y,{className:k("h-24 w-24",om[v].className)})},h=l.useMemo(()=>({open:r,close:o,info:a,success:i,error:s,warning:c,custom:u,confirm:f}),[r,o,a,i,s,c,u,f]);return d.jsxs(nm.Provider,{value:h,children:[e,d.jsx(Ao,{open:t.isOpen,onOpenChange:v=>!v&&o(),modal:!0,children:d.jsxs(gr,{className:k((g=t.options)!=null&&g.size?rm[t.options.size]:rm.sm,(b=t.options)==null?void 0:b.className),children:[t.options&&d.jsxs(vr,{children:[d.jsx("div",{className:"mx-auto mb-6",children:m(t.options.type,t.options.icon)}),t.options.title&&d.jsx(yr,{className:"text-center",children:t.options.title}),d.jsx(br,{className:"text-center",children:t.options.message})]}),((p=t.options)==null?void 0:p.type)==="confirm"&&d.jsxs("div",{className:"flex justify-center gap-4 mt-4",children:[d.jsx(Ke,{onClick:()=>{var v,w;(w=(v=t.options)==null?void 0:v.onConfirm)==null||w.call(v),o()},children:t.options.confirmLabel||"Confirm"}),t.options.displayCancel&&d.jsx(Ke,{variant:"outline",onClick:o,children:t.options.cancelLabel||"Cancel"})]})]})})]})}function xM(){const e=l.useContext(nm);if(e===void 0)throw new Error("useDialog must be used within a DialogProvider");return e}function CM(e){const[t,n]=M.useState(!1);return M.useEffect(()=>{const r=window.matchMedia(e);r.matches!==t&&n(r.matches);const o=()=>n(r.matches);return window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[t,e]),t}const Ma=768;function SM(){const[e,t]=l.useState(void 0);return l.useEffect(()=>{const n=window.matchMedia(`(max-width: ${Ma-1}px)`),r=()=>{t(window.innerWidth<Ma)};return n.addEventListener("change",r),t(window.innerWidth<Ma),()=>n.removeEventListener("change",r)},[]),!!e}const MM=()=>{const[e,t]=M.useState(null),[n,r]=M.useState(!1);return M.useEffect(()=>((()=>{const i=window.matchMedia("(display-mode: standalone)").matches||window.navigator.standalone;r(i)})(),window.addEventListener("beforeinstallprompt",i=>{i.preventDefault(),t(i)}),window.addEventListener("appinstalled",()=>{r(!0)}),()=>{window.removeEventListener("appinstalled",()=>r(!0))}),[]),{isPromptReady:!!e,isInstalled:n,showInstallPrompt:()=>{e&&(e.prompt(),e.userChoice.then(a=>{console.log(`User choice: ${a.outcome}`),t(null)}))}}};N.AdaptiveInput=Bn,N.AlertDialog=Dp,N.AlertDialogAction=ai,N.AlertDialogCancel=si,N.AlertDialogContent=ei,N.AlertDialogDescription=oi,N.AlertDialogFooter=ni,N.AlertDialogHeader=ti,N.AlertDialogOverlay=so,N.AlertDialogPortal=Js,N.AlertDialogTitle=ri,N.AlertDialogTrigger=kp,N.Autocomplete=lv,N.Avatar=cc,N.AvatarFallback=uc,N.AvatarImage=lc,N.Badge=mv,N.Button=Ke,N.Calendar=Xc,N.Card=Qc,N.CardContent=tl,N.CardDescription=el,N.CardFooter=nl,N.CardHeader=Zc,N.CardTitle=Jc,N.Checkbox=cl,N.CurrencyInput=ll,N.Dialog=Ao,N.DialogClose=Vw,N.DialogContent=gr,N.DialogDescription=br,N.DialogFooter=fl,N.DialogHeader=vr,N.DialogOverlay=Ro,N.DialogPortal=dl,N.DialogProvider=wM,N.DialogTitle=yr,N.DialogTrigger=ul,N.DropdownMenu=lC,N.DropdownMenuCheckboxItem=xu,N.DropdownMenuContent=bu,N.DropdownMenuGroup=dC,N.DropdownMenuItem=wu,N.DropdownMenuLabel=Su,N.DropdownMenuPortal=fC,N.DropdownMenuRadioGroup=hC,N.DropdownMenuRadioItem=Cu,N.DropdownMenuSeparator=Mu,N.DropdownMenuShortcut=Nu,N.DropdownMenuSub=mC,N.DropdownMenuSubContent=yu,N.DropdownMenuSubTrigger=vu,N.DropdownMenuTrigger=uC,N.Form=WC,N.FormControl=Bu,N.FormDescription=Vu,N.FormField=$C,N.FormItem=$u,N.FormLabel=Lu,N.FormMessage=Yu,N.HelpCarousel=gM,N.Input=Ln,N.Label=Ko,N.MonthNavigatorComponent=vM,N.Pagination=Xo,N.PaginationContent=Qo,N.PaginationControls=yM,N.PaginationEllipsis=Gu,N.PaginationItem=Rn,N.PaginationLink=_n,N.PaginationNext=Jo,N.PaginationPrevious=Zo,N.PasswordInput=UC,N.Popover=Qi,N.PopoverAnchor=cv,N.PopoverContent=Eo,N.PopoverTrigger=Zi,N.Progress=na,N.RadioGroup=dd,N.RadioGroupItem=fd,N.Select=TS,N.SelectContent=Xd,N.SelectGroup=OS,N.SelectItem=Zd,N.SelectLabel=Qd,N.SelectScrollDownButton=ma,N.SelectScrollUpButton=fa,N.SelectSeparator=Jd,N.SelectTrigger=Kd,N.SelectValue=AS,N.Skeleton=RS,N.Switch=af,N.Table=sf,N.TableBody=lf,N.TableCaption=hf,N.TableCell=mf,N.TableFooter=uf,N.TableHead=ff,N.TableHeader=cf,N.TableRow=df,N.Tabs=VS,N.TabsContent=Tf,N.TabsList=Df,N.TabsTrigger=kf,N.Textarea=Of,N.Toggle=Rf,N.ToggleGroup=Gf,N.ToggleGroupItem=Hf,N.Tooltip=hM,N.TooltipContent=tm,N.TooltipProvider=mM,N.TooltipTrigger=pM,N.badgeVariants=dc,N.buttonVariants=mn,N.cn=k,N.formatCurrency=$m,N.formatDateAndMonth=Vm,N.formatDateAndWeekday=Lm,N.formatDateAndWeekdayAndYear=Bm,N.formatLongDate=Ym,N.formatShortDate=Gm,N.formatWeekDayAndShortDate=zm,N.getMonthYearFromISODate=Hm,N.toggleVariants=ya,N.useDebounce=bM,N.useDialog=xM,N.useFormField=An,N.useIsMobile=SM,N.useMediaQuery=CM,N.usePWAInstall=MM,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})});
|